Files
ai-agent/frontend/openapi.json
gabrielvidalandClaude Opus 5.5 af80c5bf27 feat(i18n): French leaves the core — a translation kind of plugin
The core speaks English only; every other language is a kind: "translation" plugin
(translation-<lang>; the French one is translation-fr in ai-agent-plugins, seeded once at start).

- plugins: kind translation (typed_manifest.parse_translation: lang, name, englishName, flag,
  locale, promptLine, ui/backend JSON dictionaries — strict, operator-only, in the fingerprint);
  a top-level "languages" field on any plugin (default ["en"]) shown on its page; seeding takes
  translation-*; plugins/translations.py reads the enabled ones (first by id wins a code).
- core/i18n: tr / langs / localized / clean_pref / effective_lang read the installed
  translations; a pick whose translation is gone reads English and is kept; browserLang records
  any base code. core/i18n_fr.py and FRENCH_LINE are gone (language_line = the plugin's promptLine).
- The owner picks a language too (users.json ownerLang, PUT /api/me {lang}; English by default).
- Public GET /api/i18n/languages and /api/i18n/{lang} (ETag/304), guest host and sign-in included.
- Coverage: backend/core/i18n_keys/{ui,backend}.json (kept by the two i18n tests,
  UPDATE_I18N_KEYS=1); a translation's page shows translated / missing / stale / placeholder
  mismatches.
- Frontend: frontend/src/i18n/fr removed; the dictionary comes from the hub, cached in
  localStorage and revalidated in the background (first boot in a language waits <= 4 s, any
  failure is English); Lang is a string; number/currency style from the translation's locale;
  LanguageSelect lists English + installed translations (hidden when none); Settings → Plugins
  has a Translations kind (tab, catalog filter, group) and a Translation section with the
  missing-strings count; mock is English only.
- Tests: test_i18n.py rewritten on a made-up translation; i18n_testkit.speaking() for the
  tests that need a second language. authz golden, openapi.json + src/generated regenerated;
  docs/plugins.md (Translations), CLAUDE.md, i18n README, docs/settings.md.

Changelog
- Added: languages are plugins — Settings → Plugins → Translations; the owner can pick a language.
- Changed: French moved to the translation-fr plugin (seeded at start: nothing changes for guests).
- Removed: the core's built-in French dictionaries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:07:22 +01:00

39286 lines
965 KiB
JSON

{
"openapi": "3.1.0",
"info": {
"title": "ai-agent",
"version": "0.1.0"
},
"paths": {
"/api/ui-state/{key}": {
"get": {
"summary": "Get Ui State",
"operationId": "get_ui_state_api_ui_state__key__get",
"parameters": [
{
"name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Key"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UiStateValue"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"summary": "Put Ui State",
"operationId": "put_ui_state_api_ui_state__key__put",
"parameters": [
{
"name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Key"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UiStateBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Delete Ui State",
"operationId": "delete_ui_state_api_ui_state__key__delete",
"parameters": [
{
"name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Key"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/claude-hooks": {
"get": {
"summary": "Claude Hooks",
"description": "The native Claude Code hooks registered in the workspace repo, flattened\nto one entry per (event, matcher, command). A missing or unparseable\nsettings file is an empty list, not an error (standalone has no repo).",
"operationId": "claude_hooks_api_claude_hooks_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClaudeHooksResponse"
}
}
}
}
}
}
},
"/api/fresh-context": {
"get": {
"summary": "Fresh Context Get",
"description": "When the reply box nudges toward a fresh context, what compacts, and\nthe measured assumptions its estimate runs on.",
"operationId": "fresh_context_get_api_fresh_context_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FreshContextSettings"
}
}
}
}
}
},
"put": {
"summary": "Fresh Context Put",
"operationId": "fresh_context_put_api_fresh_context_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FreshContextBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FreshContextSettings"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/stats": {
"get": {
"summary": "Me Stats",
"description": "The guest's Stats page: what they spent, how long Claude worked for\nthem, on which projects and models, over ``days`` (7 / 30 / 0 = all).",
"operationId": "me_stats_api_me_stats_get",
"parameters": [
{
"name": "days",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 30,
"title": "Days"
}
},
{
"name": "tzOffset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0,
"title": "Tzoffset"
}
},
{
"name": "shared",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Shared"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestStats"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/stats": {
"get": {
"summary": "User Stats",
"description": "The same page for the owner, on a guest's Settings \u2192 Users page.",
"operationId": "user_stats_api_users__uid__stats_get",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
},
{
"name": "days",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 30,
"title": "Days"
}
},
{
"name": "tzOffset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0,
"title": "Tzoffset"
}
},
{
"name": "shared",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Shared"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestStats"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/stats/perf": {
"get": {
"summary": "Me Stats Perf",
"description": "The guest's Stats page, Performance and Storage: what their runs cost\nthe machine and what their conversations keep on disk, over ``days``.",
"operationId": "me_stats_perf_api_me_stats_perf_get",
"parameters": [
{
"name": "days",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 30,
"title": "Days"
}
},
{
"name": "shared",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Shared"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestPerfStats"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/stats/perf": {
"get": {
"summary": "User Stats Perf",
"description": "The same sections for the owner, on a guest's Settings \u2192 Users page.",
"operationId": "user_stats_perf_api_users__uid__stats_perf_get",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
},
{
"name": "days",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 30,
"title": "Days"
}
},
{
"name": "shared",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Shared"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestPerfStats"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/skills": {
"get": {
"summary": "Skills List",
"description": "Card metadata + usage/cost stats for every skill, last-used first.\n\nThe list is the **union** of the skills on disk and the ones the transcripts\nsaw invoked: a built-in or plugin skill (``code-review``, ``artifact-design``)\nhas no ``SKILL.md`` in this repo but still earned its calls, so it appears\nwith ``sourceKind: \"builtin\"`` and no editor link.\n\n``account`` scopes the usage/spend to one Claude account (``all`` = every\none); unset = the aggregated view, without the excluded accounts.",
"operationId": "skills_list_api_skills_get",
"parameters": [
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/skills/{name}/prompt": {
"get": {
"summary": "Skill Prompt",
"description": "The newest prompt ``name`` injected into any transcript \u2014 how a built-in\nskill, which has no SKILL.md to open, is read. Kept by the indexer as it\nparses transcripts (``skill_prompts``), so this is one row, not a scan.",
"operationId": "skill_prompt_api_skills__name__prompt_get",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillPrompt"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversations": {
"get": {
"summary": "Conversations List",
"description": "List parsed transcripts (newest first) for the conversation viewer.\n\nPaginated: ``limit`` caps the page (0 = everything), ``before`` is the\n``endedAt`` cursor of the previous page's last card, and ``archived``\nfilters hidden conversations server-side (``false`` \u2014 the default view \u2014\nexcludes them; ``all`` includes them). ``full=1`` adds the per-card\n``usage``/``byToolSub`` blocks the analytics dashboard aggregates.\n\n``sessions`` (comma-separated session ids) resolves a specific handful of\nconversations instead of a page \u2014 what the home page's \"waiting for\nfeedback\" cards use to join a pending form/ask back to the session that\nposted it, without pulling the whole (~MB) list for one title. An explicit\nid lookup ignores the archived filter and the cursor. With ``waiter`` (the\n`ai-agent wait` loop's own session) a child it finds ended is claimed:\nits parent read the answer, so the hub doesn't report it back\n(runs/children.py).\n\n``account`` keeps one Claude account's conversations (``totals`` = the\nones counted in totals), or one profile's (``profile:<id>`` \u2014 all of\nthem, whatever seat they billed). Unlike the cost endpoints, a *list* is unfiltered\nby default \u2014 every conversation is listed; only the sums leave work out.",
"operationId": "conversations_list_api_conversations_get",
"parameters": [
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 50,
"title": "Limit"
}
},
{
"name": "before",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Before"
}
},
{
"name": "archived",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "false",
"title": "Archived"
}
},
{
"name": "full",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Full"
}
},
{
"name": "sessions",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Sessions"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
},
{
"name": "waiter",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Waiter"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/subagents": {
"get": {
"summary": "Subagents List",
"description": "Every subagent (sidechain) transcript as a flat lite ref carrying its\nparent conversation id. The top-level conversation list hides sidechains;\nthis is the one place they're enumerated \u2014 the Graph plugin's node source\n(``graph.read``, plugins/graphdata.py).\nAll from the in-process summaries cache (+ cached meta.json reads).",
"operationId": "subagents_list_api_subagents_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubagentsResponse"
}
}
}
}
}
}
},
"/api/conversation-summary": {
"get": {
"summary": "Conversation Summary",
"description": "One conversation's list card \u2014 what an SSE `transcript` ping patches\ninto the cached list, so a live turn costs a few KB instead of a full\nlist refetch.",
"operationId": "conversation_summary_api_conversation_summary_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationSummary"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/search-index": {
"get": {
"summary": "Search Index",
"description": "Full-text search corpus: every conversation's user/assistant text blocks.\n\nShipped once to the client, which runs a fuzzy search (Fuse.js) over it. Each\nmessage carries its ordinal `i`, which matches the `mi` on the detail thread's\ntext items, so a hit can deep-link to `/conversation/<id>?m=<i>` and scroll to\nthe exact message.",
"operationId": "search_index_api_search_index_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchIndexResponse"
}
}
}
}
}
}
},
"/api/conversation": {
"get": {
"summary": "Conversation Detail",
"description": "Full parsed thread (tools collapsible client-side) + per-turn usage.\n\n``since=<rev>`` (the ``rev`` of the response the client already holds)\nturns it into a delta: ``thread`` then carries only the items from\n``threadFrom`` on \u2014 the client keeps its items before that index and\nappends \u2014 while every other field is sent whole. A rev the backend no\nlonger knows (restart, evicted, another process) yields the full thread\n(``threadFrom`` 0).",
"operationId": "conversation_detail_api_conversation_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "since",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Since"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationDetail"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-full-text": {
"get": {
"summary": "Conversation Full Text",
"description": "The whole of a thread item's clipped fields \u2014 what its *Show more*\nunfolds. ``clip`` is the item's ``clipId``: ids follow the transcript's\norder, so they hold across the detail cache's re-parses.",
"operationId": "conversation_full_text_api_conversation_full_text_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "clip",
"in": "query",
"required": true,
"schema": {
"type": "integer",
"title": "Clip"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FullText"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-image": {
"get": {
"summary": "Conversation Image",
"description": "The image a tool call handed the model, out of the transcript\n(toolimage.py) \u2014 an image Read shows even when its file isn't on this\ndisk (a Mac worker's run, a cleared scratchpad). The call may be a\nsubagent's, rendered in its parent's thread.\n\n``original=1``: the file the call read, at full size, from the worker the\nconversation ran on (a lab run's files have their own routes).",
"operationId": "conversation_image_api_conversation_image_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "toolUseId",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Tooluseid"
}
},
{
"name": "i",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0,
"title": "I"
}
},
{
"name": "original",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Original"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/past-conversations": {
"get": {
"summary": "Past Conversations",
"description": "Earlier conversations on a subject (past.py) \u2014 ``ai-agent past``.\n``keys``: Linear keys, PR links or numbers, branches, comma-separated;\n``session``: the asking conversation (left out; its profile's repo reads\na bare PR number). A worker's run asks through its outbox instead.",
"operationId": "past_conversations_api_past_conversations_get",
"parameters": [
{
"name": "keys",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Keys"
}
},
{
"name": "session",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PastConversationsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-refs": {
"get": {
"summary": "Conversation Refs",
"description": "A card per conversation a prompt names (refs.py): the conv-ref prompt\nhook's lab path (a worker's asks through its outbox). ``ids``: conversation\nor session ids, \u2265 6-char prefixes, viewer links, comma-separated;\n``session``: the asking run, never its own reference.",
"operationId": "conversation_refs_api_conversation_refs_get",
"parameters": [
{
"name": "ids",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Ids"
}
},
{
"name": "session",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationRefsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversations/{id}/scaffold": {
"get": {
"summary": "Conversation Scaffold",
"description": "The completion scaffold for one conversation, as markdown.",
"operationId": "conversation_scaffold_api_conversations__id__scaffold_get",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversations/{id}/summary": {
"put": {
"summary": "Conversation Summary Put",
"description": "Publish a filled-in scaffold as the conversation's summary. Rejects an\nuntouched one \u2014 an unedited scaffold is a report of nothing.",
"operationId": "conversation_summary_put_api_conversations__id__summary_put",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SummaryBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-meta": {
"get": {
"summary": "Conversation Meta",
"description": "The raw action-metadata sidecar (keyed by session id).",
"operationId": "conversation_meta_api_conversation_meta_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationMetaResponse"
}
}
}
}
}
},
"post": {
"summary": "Update Conversation Meta",
"operationId": "update_conversation_meta_api_conversation_meta_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MetaPatch"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MetaUpdateResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/look/color": {
"post": {
"summary": "Set Look Color",
"description": "The card menu's colour pick. A conversation about an issue / PR /\nthread re-colours that whole subject \u2014 every card on INS-2171 + #13497\nfollows; any other conversation gets its own ``look.color``.",
"operationId": "set_look_color_api_look_color_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LookColorBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MetaUpdateResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/look/pending": {
"get": {
"summary": "Look Pending",
"description": "The conversations still without an action label, newest first\n(``conversations/look_pending.py`` \u2014 the conversation-labels plugin reads\nthe same list through its bridge), for ``scripts/look-backfill.py`` to send\nthrough the Batch API: their user turn built like the plugin's, plus the\nsystem prompt. ``exclude`` = comma-separated accounts left out (the work\nseat).",
"operationId": "look_pending_api_look_pending_get",
"parameters": [
{
"name": "days",
"in": "query",
"required": false,
"schema": {
"type": "number",
"default": 7,
"title": "Days"
}
},
{
"name": "exclude",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Exclude"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 2000,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/look/auto": {
"post": {
"summary": "Look Auto",
"description": "Record labels decided elsewhere (the Batch API backfill) \u2014 the same\n``meta.lookAuto`` the labeller writes; an unknown action is stored as\nNone so the conversation isn't asked again.",
"operationId": "look_auto_api_look_auto_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LookAutoBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversations/auto-archive": {
"post": {
"summary": "Auto Archive Now",
"description": "Run the auto-archive sweep now (conversations/autoarchive.py): the cron\nruns that finished successfully and the finished test conversations.\n``backfill`` applies the rules to the whole archive, not only to what\nstarted since the sweep first ran.",
"operationId": "auto_archive_now_api_conversations_auto_archive_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/AutoArchiveBody"
},
{
"type": "null"
}
],
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AutoArchiveResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversations/archive-old": {
"post": {
"summary": "Archive Old Conversations",
"description": "Archive (hide) every conversation that ended before the start of yesterday.\n\nBulk cleanup for the drawer: keeps today's and yesterday's transcripts\nvisible and folds everything older behind the \"show archived\" toggle.\n``keep`` spares the conversations the drawer has pinned.",
"operationId": "archive_old_conversations_api_conversations_archive_old_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/ArchiveOldBody"
},
{
"type": "null"
}
],
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ArchiveOldResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notifications": {
"get": {
"summary": "Notifications Feed",
"description": "Feed source for the notification history: every conversation that\nrecorded a push **the caller hears** (its audience \u2014 users/access.py),\nwith just the fields the feed needs. Replaces walking the whole\nconversation list client-side.\n\nNewest first by each conversation's **newest push** (then its id), so\npages never interleave: every push newer than a page's cursor is on that\npage or before it. ``limit`` caps a page (0 = everything, the old\nunpaged call); ``before`` is the previous page's ``nextBefore``\n(``<at>|<convId>``, or a bare ``<at>``); ``nextBefore`` is null on the\nlast page. ``total``: the conversations across every page; ``count``:\nthe ones in this page.\n\n``new=1`` (the home's New list) keeps the conversations with a push still\non the owner's New list \u2014 not dismissed in the read ledger, its\n``baseline`` included \u2014 so scrolling the home pages through what's new,\nnot the whole history. A guest's New list lives in their ui-state: the\nflag is ignored for them.",
"operationId": "notifications_feed_api_notifications_get",
"parameters": [
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0,
"title": "Limit"
}
},
{
"name": "before",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Before"
}
},
{
"name": "new",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "New"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotificationsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notifications/unread": {
"get": {
"summary": "Notifications Unread",
"description": "Unread notifications (not yet opened in the UI), newest first.\n\nPure read: fetching this NEVER marks anything read \u2014 the phone can list and\nread these aloud without \"consuming\" them; only the UI (or an explicit\n``POST /api/notifications/seen``) advances the read ledger. This is the\nendpoint the desk phone hits with its read-only API key.",
"operationId": "notifications_unread_api_notifications_unread_get",
"parameters": [
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 20,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnreadNotificationsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notifications/audio": {
"post": {
"summary": "Notification Audio",
"description": "Render a notification's sound as a WAV so the UI can replay it.\n\nThe desk phone plays a per-type jazz jingle and then reads the French\n`spoken` line; the notification card's play button asks for those same\nbytes. The owner's `notify.audio` plugin (`desk-phone`) renders them\n(`notifications/channels.render_audio`); 503 when there is none or it\nfails.",
"operationId": "notification_audio_api_notifications_audio_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifAudioBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notifications/seen": {
"post": {
"summary": "Notifications Mark Seen",
"description": "The pre-state API (a PWA still on the old build): mark notification\nids read. Mutating \u2014 refused to a read-only API-key caller by the gate, so\nthe phone can't use it. Passing no ids with ``all=true`` marks the whole\ncurrent feed read. The ledger is the owner's (what the desk phone reads\naloud): a guest's seen-state lives in their own ui-state, so it isn't\ntouched for them. New clients use ``POST /api/notifications/state``.\n\nWhat someone reads by name (a card opened or swiped \u2014 not ``all``) is\nalso taken off their other devices: their web push devices, and the\nphone for the owner.",
"operationId": "notifications_mark_seen_api_notifications_seen_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifSeenBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notifications/state": {
"get": {
"summary": "Notifications State",
"description": "The owner's per-notification state (``notifications/read_ledger.py``):\n``read`` / ``dismissed`` by id \u2014 an id not listed is unread, unless the\ncap dropped it (its push time at or before ``floor``) or it predates the\nledger (its push time before ``baseline``): then dismissed. Every\nopen PWA hydrates its New / unread lists from this and patches them from\nSSE ``notif-state``. A guest gets ``enabled: false``: their lists stay in\ntheir own ui-state.",
"operationId": "notifications_state_api_notifications_state_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifStateResponse"
}
}
}
}
}
},
"post": {
"summary": "Notifications Set State",
"description": "Mark ids ``read`` or ``dismissed`` (never backwards: a dismissed id\nstays dismissed). What moved is taken off the reader's other devices \u2014 their\nweb push devices, and the phone for the owner \u2014 and published as SSE\n``notif-state`` to the owner's open PWAs. Refused to a read-only API-key\ncaller by the gate. A guest: their devices are cleared, nothing recorded\n(their state lives in their ui-state).",
"operationId": "notifications_set_state_api_notifications_state_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifStateBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifStateChange"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notifications/state/migrate": {
"post": {
"summary": "Notifications Migrate State",
"description": "Import a PWA's old lists once (``read``: on New but opened; ``unread``:\non New, not opened; ``dismissed``: known, off New) \u2014 authoritative over the\nold seen-only ledger, never over a state set since through the live API.\nWith nothing to import, an unseeded ledger adopts the whole current feed as\ndismissed instead. Only the first call counts; every call answers the\nresulting state (as ``GET /api/notifications/state``), and the first one\ntells the other open PWAs to reload it (``notif-state`` with ``reload``).",
"operationId": "notifications_migrate_state_api_notifications_state_migrate_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifMigrateBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifStateResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notifications/dismissed": {
"post": {
"summary": "Notifications Dismissed",
"description": "A push swiped away on the owner's phone (the HA integration's\n``mobile_app_notification_cleared``): dismissed in the app too \u2014 the\nledger, the open PWAs (SSE ``notif-state``, plus the older ``notif-seen``\na PWA on the previous build still listens for) \u2014 and off the owner's web\npush devices. Nothing goes back to the phone: it's already gone there.",
"operationId": "notifications_dismissed_api_notifications_dismissed_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DismissedBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notifications/seed": {
"post": {
"summary": "Notifications Seed",
"description": "Adopt the given ids (or the whole current feed) as the dismissed\nbaseline \u2014 the first-sync op so history isn't reported as unread. Once:\na seeded ledger is left alone. The owner's ledger (see ``state``): a no-op\nfor a guest.",
"operationId": "notifications_seed_api_notifications_seed_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifSeenBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notify": {
"post": {
"summary": "Notify Push",
"description": "Record a push notification and deliver it to its audience's channels.",
"operationId": "notify_push_api_notify_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifyBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifyResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notify/{notify_id}/image": {
"get": {
"summary": "Notify Image",
"description": "A push's picture, from the app (notifications/image_proxy.py) \u2014 what\na web push's ``image`` points at.",
"operationId": "notify_image_api_notify__notify_id__image_get",
"parameters": [
{
"name": "notify_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Notify Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notify/{notify_id}": {
"get": {
"summary": "Notify Get",
"description": "A recorded push; ``waitSecs`` long-polls for one of its action buttons\n(``notify send --action-cmd``) to be tapped.",
"operationId": "notify_get_api_notify__notify_id__get",
"parameters": [
{
"name": "notify_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Notify Id"
}
},
{
"name": "waitSecs",
"in": "query",
"required": false,
"schema": {
"type": "number",
"default": 0,
"title": "Waitsecs"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notify/{notify_id}/action": {
"post": {
"summary": "Notify Action",
"description": "Callback for the HA integration, the browsers' service worker and the\napp's Waiting for feedback: which extra button of a push was tapped.\n\nThe buttons are on every device the push reached, so the first tap wins:\na later one (the phone after the desk) is answered with the push as it\nstands and goes nowhere \u2014 a plugin never hears the same push twice.",
"operationId": "notify_action_api_notify__notify_id__action_post",
"parameters": [
{
"name": "notify_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Notify Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifyActionBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask": {
"post": {
"summary": "Ask Push",
"description": "Create an ask (choice question), deliver it to the channels, return its\nid. The HA integration renders the tappable notification and POSTs the\nanswer back to /api/ask/{id}/answer; callers long-poll GET /api/ask/{id}.",
"operationId": "ask_push_api_ask_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifyResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask/{ask_id}": {
"get": {
"summary": "Ask Get",
"description": "The ask's current state; ``waitSecs`` long-polls for the answer.",
"operationId": "ask_get_api_ask__ask_id__get",
"parameters": [
{
"name": "ask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Ask Id"
}
},
{
"name": "waitSecs",
"in": "query",
"required": false,
"schema": {
"type": "number",
"default": 0,
"title": "Waitsecs"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask/{ask_id}/answer": {
"post": {
"summary": "Ask Answer",
"description": "Callback for the HA integration: record which button was tapped.",
"operationId": "ask_answer_api_ask__ask_id__answer_post",
"parameters": [
{
"name": "ask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Ask Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskAnswerBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/notify-log": {
"get": {
"summary": "Notify Log",
"description": "The first-class notification/ask log, newest first \u2014 the entries the\ncaller hears (the owner too: a guest's conversation they don't follow\nisn't theirs to be notified about).",
"operationId": "notify_log_api_notify_log_get",
"parameters": [
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 200,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifyLogResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-commits": {
"get": {
"summary": "Conversation Commits",
"description": "The commits a conversation made \u2014 its own record (exact, workers\nincluded), else the time-window guess for an older lab conversation.",
"operationId": "conversation_commits_api_conversation_commits_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationCommits"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-commit-diff": {
"get": {
"summary": "Conversation Commit Diff",
"description": "One of the conversation's commits: from the lab's git, the patch the\ntranscript carries, or the worker it ran on (cached once read).\n\n``root``: the repo root a path shim's report named (the commits plugin),\nfor a commit the transcript never showed \u2014 read from the lab's repo at\nthat root, or the worker the conversation ran on. A guest: a lab repo of\ntheir projects only, a worker only when it is their own computer.",
"operationId": "conversation_commit_diff_api_conversation_commit_diff_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "sha",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Sha"
}
},
{
"name": "root",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Root"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/commit-diff": {
"get": {
"summary": "Commit Diff",
"description": "Structured per-file hunk diff of a single commit within a repo token.",
"operationId": "commit_diff_api_commit_diff_get",
"parameters": [
{
"name": "repo",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Repo"
}
},
{
"name": "sha",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Sha"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/diff-blob": {
"get": {
"summary": "Diff Blob",
"description": "Raw bytes of a file inside a diff \u2014 the image side rendered in the viewer.\n\n``repo`` is a diff repo token (``project:`` / ``service:`` / ``super:_``),\n``path`` is repo-relative. With ``sha`` the file is read at that rev (e.g. the\ncommit's tip for an added image, or ``<sha>^`` for a deleted one); without it\nthe current working-tree copy is served (conversation / uncommitted diffs).\n``wt`` names a worktree directory \u2014 the file is then read from that worktree\ninstead of the canonical checkout (see worktreediff).",
"operationId": "diff_blob_api_diff_blob_get",
"parameters": [
{
"name": "repo",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Repo"
}
},
{
"name": "path",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
},
{
"name": "sha",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sha"
}
},
{
"name": "wt",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Wt"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-uncommitted-diff": {
"get": {
"summary": "Conversation Uncommitted Diff",
"description": "The conversation's current not-yet-committed changes.\n\nWhen it worked in a git worktree that still exists, this is a **real**\n``git diff HEAD`` (+ untracked files) read from that worktree \u2014 see\nworktreediff. Otherwise (or for edits made outside it) the changes are\nreplayed from the transcript's accumulated edits/creates/deletes (editsdiff).\n``stats`` strips the hunks \u2014 the detail panel only needs paths and +/\u2212 counts.",
"operationId": "conversation_uncommitted_diff_api_conversation_uncommitted_diff_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "stats",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Stats"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-diff": {
"get": {
"summary": "Conversation Diff",
"description": "The net diff across the conversation's commits (merges left out).",
"operationId": "conversation_diff_api_conversation_diff_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/accounts": {
"get": {
"summary": "List Accounts",
"description": "The accounts (the provider plugins' \u2014 accounts/profiles.py) a session\ncan run on \u2014 Claude logins, the ChatGPT / Google seats, the OpenRouter\nkey and the EVOX2's keyless account (``vendor``; ``harness`` = what it is\na login of). ``health=1``\nadds each account's login status from the sidecar (``claude auth status``\nunder that config dir, or the credential in the opencode database \u2014 who,\nwhich org, which plan); an account the sidecar doesn't know reports\n``configured: false``.",
"operationId": "list_accounts_api_accounts_get",
"parameters": [
{
"name": "health",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Health"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/accounts/health": {
"get": {
"summary": "Accounts Health",
"description": "Each account's login health (accounts/health.py), kept current by a\nbackground poll and pushed as an ``accounts`` SSE event when it moves.\nA guest sees the default account's status only \u2014 the one their runs\nbill \u2014 without who it is or which conversations failed.",
"operationId": "accounts_health_api_accounts_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountsHealthResponse"
}
}
}
}
}
}
},
"/api/accounts/{account_id}/check": {
"post": {
"summary": "Account Check",
"description": "*Check again*: a one-turn Haiku probe on the account (``auth status``\ncan't see a dead OAuth session), then a fresh read of its health. A pass\nclears a signed-out state; an auth failure confirms it.",
"operationId": "account_check_api_accounts__account_id__check_post",
"parameters": [
{
"name": "account_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Account Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountCheckResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/accounts/{account_id}/login": {
"post": {
"summary": "Account Login Start",
"description": "Start a subscription login for the account. A Claude account: the\nsidecar runs ``claude auth login`` under the account's config dir and\nanswers the sign-in URL \u2014 open it (any device), sign in, and post the code\nthe page ends on to ``/login/code``. An opencode account: OpenAI's device\nflow \u2014 the answer carries ``userCode`` + ``url`` (enter the code there,\nfrom any device) and ``GET \u2026/login`` reports when it went through. A new\nstart replaces a pending one. ``worker``: that worker's own login\n(``_own_login_worker``).",
"operationId": "account_login_start_api_accounts__account_id__login_post",
"parameters": [
{
"name": "account_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Account Id"
}
},
{
"name": "worker",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/AccountLoginBody"
},
{
"type": "null"
}
],
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PendingLogin"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"get": {
"summary": "Account Login State",
"description": "Where an opencode account's device-code login stands \u2014 ``pending``\n(the code is still waiting to be entered), ``complete``, ``failed`` (the\nCLI's last line) or ``none``. The Settings card polls it; ``complete``\nrefreshes the login health.",
"operationId": "account_login_state_api_accounts__account_id__login_get",
"parameters": [
{
"name": "account_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Account Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginState"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Account Login Cancel",
"operationId": "account_login_cancel_api_accounts__account_id__login_delete",
"parameters": [
{
"name": "account_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Account Id"
}
},
{
"name": "worker",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/accounts/{account_id}/login/code": {
"post": {
"summary": "Account Login Code",
"description": "Finish the pending login with the pasted ``code#state``. A malformed or\nforeign code is a 400 and the login stays pending (paste again); a failed\nexchange ends it (start again). ``worker``: the one the login started on.",
"operationId": "account_login_code_api_accounts__account_id__login_code_post",
"parameters": [
{
"name": "account_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Account Id"
}
},
{
"name": "worker",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountLoginCodeBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginCodeResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/accounts/{account_id}/logout": {
"post": {
"summary": "Account Logout",
"description": "``claude auth logout`` for the account \u2014 new runs on it fail with an\n``auth`` error until it logs back in. ``worker``: an agy account's login\non that machine (each machine holds its own).",
"operationId": "account_logout_api_accounts__account_id__logout_post",
"parameters": [
{
"name": "account_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Account Id"
}
},
{
"name": "worker",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginCodeResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/claude/login": {
"post": {
"summary": "Claude Login Start",
"description": "Start signing the guest's own Claude account in: answers the sign-in\nURL; the ``code#state`` the page ends on goes to ``/login/code``.",
"operationId": "claude_login_start_api_me_claude_login_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/ClaudeLoginBody"
},
{
"type": "null"
}
],
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PendingLogin"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Claude Login Cancel",
"operationId": "claude_login_cancel_api_me_claude_login_delete",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
}
}
}
},
"/api/me/claude/login/code": {
"post": {
"summary": "Claude Login Code",
"description": "Finish the sign-in. Once the CLI reports the login, the guest's runs\ngo to it (their own plan) from the next send on.",
"operationId": "claude_login_code_api_me_claude_login_code_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClaudeLoginCodeBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestClaude"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/usage": {
"get": {
"summary": "My Usage",
"description": "The 5-hour and weekly /usage % of the guest's own Claude \u2014 the owner's\n``/api/usage/limits`` shape with their login only (none while it isn't\nconnected or hasn't been read yet): their home page's gauges and their\ncomposers' rings. Refreshed by the SSE ``usage`` ping.",
"operationId": "my_usage_api_me_usage_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsageLimitsResponse"
}
}
}
}
}
}
},
"/api/me/claude/bill": {
"put": {
"summary": "Claude Bill",
"description": "Which login the guest's runs bill \u2014 the account chip of their\ncomposers (new conversation and reply alike): ``own`` = their own Claude\nfirst, the owner's account when it is signed out or at its limit (the\ndefault); ``host`` = the owner's account, within their budget and allowed\nmodels (``users/runs.run_as_guest``). From the next send on. On their\nown computers ``own`` is the computer's own login\n(``users/runs.run_on_computer``) \u2014 so a guest with a computer may pick\nwithout a Claude connected here.",
"operationId": "claude_bill_api_me_claude_bill_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClaudeBillBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestClaude"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/claude/logout": {
"post": {
"summary": "Claude Logout",
"description": "Disconnect: ``claude auth logout`` on their login; their runs go back\nto the owner's account (budget and allowed models apply again).",
"operationId": "claude_logout_api_me_claude_logout_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestClaude"
}
}
}
}
}
}
},
"/api/workers": {
"get": {
"summary": "List Workers",
"description": "Paired remote runners with their live status (online / offline /\nunauthorized), last seen, running-run count and mirror progress.",
"operationId": "list_workers_api_workers_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkersResponse"
}
}
}
}
}
},
"post": {
"summary": "Pair Worker",
"description": "Pair with a worker from the string its installer printed. It bills\n``claudeAccounts`` through the hub's Claude proxy \u2014 unset, the account its\nown Claude login matches (if the string names one), else the default.\nRe-pairing a known machine replaces its record.",
"operationId": "pair_worker_api_workers_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PairWorkerBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Worker"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/enroll": {
"post": {
"summary": "Enroll Worker",
"description": "A one-time code (an hour) and the line that installs a worker which\n**dials out** to the hub instead of listening on the tailnet \u2014 a machine\nthe hub can't reach (a company devbox on another tailnet, a cloud VM).\nIt runs on its own Claude login (``account``) and joins ``profile`` once\nits pairing comes through the link (workers/link.py).",
"operationId": "enroll_worker_api_workers_enroll_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EnrollWorkerBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ComputerEnroll"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}": {
"patch": {
"summary": "Patch Worker",
"operationId": "patch_worker_api_workers__worker_id__patch",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkerPatchBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Worker"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Unpair Worker",
"description": "Forget a worker (and tell it to drop the bearer, if it's reachable).\nIts mirrored conversations stay in the archive, read-only. On a guest's\ncomputer this is *Revoke*: its tokens stop working at once.",
"operationId": "unpair_worker_api_workers__worker_id__delete",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}/skills": {
"get": {
"summary": "Worker Skills",
"description": "The skills a run on that worker can use \u2014 its sidecar's ``/skills``\n(user-level + default-cwd skills on *that* machine), cached a minute. The\ncomposer lists these instead of the lab catalog when \"Runs on\" resolves\nto the worker. An offline or pre-``/skills`` worker answers an empty list\nrather than an error: the chips simply don't show.",
"operationId": "worker_skills_api_workers__worker_id__skills_get",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
},
{
"name": "fresh",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Fresh"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}/probe": {
"post": {
"summary": "Probe Worker",
"description": "Health-check one worker now instead of waiting for the next poll.",
"operationId": "probe_worker_api_workers__worker_id__probe_post",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Worker"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}/update": {
"post": {
"summary": "Update Worker",
"description": "*Update now*: move the worker to the hub's own commit, whatever its\nauto-update setting or retry delay. It reports back through its /health\n(the next probes): updating, then current \u2014 or failed / rolled back.",
"operationId": "update_worker_api_workers__worker_id__update_post",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Worker"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}/labsync": {
"get": {
"summary": "Get Worker Labsync",
"description": "The worker's *Lab skills & agents* checklist and where its copy stands.",
"operationId": "get_worker_labsync_api_workers__worker_id__labsync_get",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkerLabSync"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"summary": "Put Worker Labsync",
"description": "Save the overrides, then push the new bundle at once when it's online.",
"operationId": "put_worker_labsync_api_workers__worker_id__labsync_put",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LabSyncBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkerLabSync"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}/labsync/push": {
"post": {
"summary": "Push Worker Labsync",
"description": "*Sync now*: send the bundle whatever the probe's retry delay.",
"operationId": "push_worker_labsync_api_workers__worker_id__labsync_push_post",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkerLabSync"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/repo-plugins": {
"get": {
"summary": "Get Repo Plugins",
"description": "Settings \u2192 Skills & agents: every plugin the\nworkers' repos offer \u00d7 every worker, and the account picks.",
"operationId": "get_repo_plugins_api_repo_plugins_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RepoPluginsView"
}
}
}
}
}
}
},
"/api/repo-plugins/accounts/{account}": {
"put": {
"summary": "Put Repo Plugin Picks",
"description": "An account's picks; its online workers get them at once.",
"operationId": "put_repo_plugin_picks_api_repo_plugins_accounts__account__put",
"parameters": [
{
"name": "account",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Account"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RepoPluginPicksBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RepoPluginsView"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}/repo-plugins": {
"put": {
"summary": "Put Worker Repo Plugins",
"description": "Save the worker's overrides, then apply them at once when it's online.",
"operationId": "put_worker_repo_plugins_api_workers__worker_id__repo_plugins_put",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RepoPluginOverridesBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RepoPluginsView"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/profiles": {
"get": {
"summary": "List Profiles",
"description": "The profiles (Personal, Work, then the built-in Guests), default first:\neach runner profile's runners \u2014\n``\"local\"`` (the Homelab) and paired workers, its default runner first \u2014\nwith each runner's \u2605 login per harness, start dir and the logins its\nmachine holds right now (``logins``), plus its projects.",
"operationId": "list_profiles_api_profiles_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProfilesResponse"
}
}
}
}
}
}
},
"/api/profiles/{profile_id}": {
"put": {
"summary": "Patch Profile",
"description": "Edit a profile. A project or runner claimed here leaves the profile\nthat had it; a runner always sits in one profile, so dropping one without\nanother profile claiming it is a 400. ``accounts`` sets the profile's \u2605\nlogin per provider vendor (merged; an empty value clears one).",
"operationId": "patch_profile_api_profiles__profile_id__put",
"parameters": [
{
"name": "profile_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Profile Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProfilePatchBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Profile"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"patch": {
"summary": "Patch Profile",
"description": "Edit a profile. A project or runner claimed here leaves the profile\nthat had it; a runner always sits in one profile, so dropping one without\nanother profile claiming it is a 400. ``accounts`` sets the profile's \u2605\nlogin per provider vendor (merged; an empty value clears one).",
"operationId": "patch_profile_api_profiles__profile_id__patch",
"parameters": [
{
"name": "profile_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Profile Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProfilePatchBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Profile"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/profiles/runners/{runner_id}": {
"patch": {
"summary": "Patch Runner",
"description": "Edit one runner within its profile \u2014 the worker page of Settings \u2192\nProfiles: its \u2605 login per harness (one the machine holds), its start dir,\ndefault-runner status, or move it to another profile. Answers the\nprofile it ends up in.",
"operationId": "patch_runner_api_profiles_runners__runner_id__patch",
"parameters": [
{
"name": "runner_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Runner Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RunnerPatchBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Profile"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/models": {
"get": {
"summary": "List Models",
"description": "The models a session can be spawned/resumed on (a tag each in the composer).\n\nFetched from the Anthropic API and cached in-process (see models.py), so the\npicker follows new releases without a redeploy. `default` is what a run uses\nwhen no model tag is picked. An OpenRouter pi model carries `unavailable`\n(the reason) while the host's OpenRouter key is refused; an agy (Gemini)\nmodel while no machine hosts agy \u2014 and a guest gets no agy model at all.",
"operationId": "list_models_api_models_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelsResponse"
}
}
}
}
}
}
},
"/api/model-presets": {
"patch": {
"summary": "Patch Model Preset",
"description": "Settings \u2192 Models: change one model's preset (None clears a field back\nto its default). Switching ``guests`` on adds the model to every guest's\nown list \u2014 the pool is what they get; Settings \u2192 Users can untick it per\nguest \u2014 and off leaves their lists alone (the pool alone gates it).",
"operationId": "patch_model_preset_api_model_presets_patch",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PresetPatchBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelPresetResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/models/openrouter": {
"get": {
"summary": "List Openrouter Models",
"description": "Every model a pi.dev session can run on OpenRouter, cheapest first.\n\nNot part of `/api/models` on purpose: that endpoint is the composer's short\npickable list (one chip per Claude family + the curated pi entries), while\nthis is a few hundred models the model browser searches through. Prices\n($/Mtok in / out / cache), context window and parameter size all come from\nAPPE's catalogue \u2014 the homelab's model-data source of truth, declared by\nthe provider-openrouter plugin (``plugins/providers.appe_catalogue``).",
"operationId": "list_openrouter_models_api_models_openrouter_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OpenRouterModelsResponse"
}
}
}
}
}
}
},
"/api/spawn": {
"post": {
"summary": "Spawn Conversation",
"description": "Kick off a new headless agent session on the host (see _send_message).\n\nA guest's spawn is pinned server-side (users/runs.py): one granted\nproject as cwd, the host sidecar, the claude harness, the guest's write\nscope \u2014 whatever the composer sent. It runs on their own Claude login\nwhen they connected one (any model, no budget), else \u2014 or when that one\nis signed out or at its limit \u2014 on the default account, under their\nallowed models and budget (``run_as_guest``).",
"operationId": "spawn_conversation_api_spawn_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SpawnBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SpawnResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/code-mode": {
"get": {
"summary": "Code Mode Status",
"description": "Where a conversation can start in Claude Code's Code Mode (beta) \u2014 the\ncomposer's *Code \u03b2* chip, per runner (runs/codemode.py): ``local`` (the\nlab) and, for the owner, each paired worker. ``allowed``: may the caller\nuse it at all (a guest's Access switch).",
"operationId": "code_mode_status_api_code_mode_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CodeModeStatus"
}
}
}
}
}
}
},
"/api/resume": {
"post": {
"summary": "Resume Conversation",
"description": "Continue an existing conversation with a new user turn (see\n:func:`_resume`). A turn its parent sent (``parent``, the `ai-agent` CLI's\nown session \u2014 a guest's only from their own run) re-arms the child's report\nback once it is in (runs/children.py ``rearm``).",
"operationId": "resume_conversation_api_resume_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResumeBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SpawnResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/fork": {
"post": {
"summary": "Fork Conversation",
"description": "Branch a new conversation off an existing one at a user message.\n\nThe new session's history is the source transcript up to (excluding) user\nmessage ``mi``; ``prompt`` (the edited message) is then sent as its next\nturn. Neither CLI can truncate at a message (`claude --fork-session` only\nclones whole sessions), so the host sidecar does transcript surgery: it\ncopies the first ``cutLine`` lines of the source session file under a\nfresh session id and resumes that \u2014 see sidecar ``/fork``. ``cutText`` and\n``cutUserOrd`` let the sidecar/runner verify they're slicing the same\nmessage this viewer showed (the archive is an append-only copy of the\nlive file, so the line indices match; the canary catches drift).",
"operationId": "fork_conversation_api_fork_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForkBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SpawnResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/interrupt": {
"post": {
"summary": "Interrupt Conversation",
"description": "Stop a running Claude session this viewer spawned.\n\nProxies to the host sidecar, which sends the run's process group a SIGINT \u2014\nexactly like pressing Esc in a terminal. Claude aborts the turn and records a\n``[Request interrupted by user]`` marker in the transcript, which the parser\nthen surfaces as the ``interrupted`` state. We also stamp the metadata\nimmediately so the UI flips before that marker has synced.",
"operationId": "interrupt_conversation_api_interrupt_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InterruptBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InterruptResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/cron-runs/discuss": {
"post": {
"summary": "Cron Run Discuss",
"description": "A run of a scheduled job is read-only to its guest; \u00ab Discuter \u00bb\nstarts a conversation of their own about its result, in the job's place\nwith its confinement (``meta.cronChat``). Guests only \u2014 the owner writes\nin any conversation.",
"operationId": "cron_run_discuss_api_cron_runs_discuss_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiscussBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SpawnResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/agents": {
"get": {
"summary": "Agents List",
"description": "Card metadata + run/cost stats for every agent, last-run first.\n\nThe **union** of the agent definitions on disk and the types the transcripts\nsaw run \u2014 same shape as `/api/skills`, but the money here is real spend.\n``account`` scopes the runs to one Claude account (unset = the totals).",
"operationId": "agents_list_api_agents_get",
"parameters": [
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/agents/{name}": {
"get": {
"summary": "Agent Detail",
"description": "One agent: its definition, its stats, its recent runs and its schedule.\n\n404s only when the name is neither on disk nor in any transcript \u2014 an agent\nthat exists but has never run is a perfectly good (empty) page.",
"operationId": "agent_detail_api_agents__name__get",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentDetail"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/agents/{name}/run": {
"post": {
"summary": "Agent Run",
"description": "Run an agent now, as a top-level session \u2014 the agent page's \"Run now\".\n\nSame machinery as a cron firing (the cron-jobs plugin's): the definition's body is\nthe prompt and its frontmatter picks the harness/model/effort, so a \"Run\nnow\" and a scheduled run are the same run. The session is stamped\n`agentRun` in the metadata sidecar, which is both what puts it in this\nagent's history and what makes the conversation card say where it came from.",
"operationId": "agent_run_api_agents__name__run_post",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentRunBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SpawnResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask-form/forms": {
"get": {
"summary": "Askform List",
"description": "Mirrored forms, newest first \u2014 no field specs (a card fetches its own\nrecord). A guest sees the forms of the conversations they can see.",
"operationId": "askform_list_api_ask_form_forms_get",
"parameters": [
{
"name": "session",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Session"
}
},
{
"name": "status",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Status"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 100,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskFormsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask-form/forms/{fid}": {
"get": {
"summary": "Askform Get",
"description": "One form with its field spec (read off its machine the first time).",
"operationId": "askform_get_api_ask_form_forms__fid__get",
"parameters": [
{
"name": "fid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Fid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskFormRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask-form/forms/{fid}/revoke": {
"post": {
"summary": "Askform Revoke",
"operationId": "askform_revoke_api_ask_form_forms__fid__revoke_post",
"parameters": [
{
"name": "fid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Fid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskFormRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask-form/forms/{fid}/close": {
"post": {
"summary": "Askform Close",
"operationId": "askform_close_api_ask_form_forms__fid__close_post",
"parameters": [
{
"name": "fid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Fid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskFormRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask-form/forms/{fid}/recheck": {
"post": {
"summary": "Askform Recheck",
"description": "Read the form off its machine now (service.recheck): the app's frame\nheard it answered, or the app came back from the form's own tab. Anyone\nwho may see the form may ask; it only ever reads.",
"operationId": "askform_recheck_api_ask_form_forms__fid__recheck_post",
"parameters": [
{
"name": "fid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Fid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskFormRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask-form/events": {
"post": {
"summary": "Askform Events",
"description": "`ask-form serve`'s events webhook \u2014 the lab's serve posts here directly\n(ASK_FORM_EVENTS_URL=http://127.0.0.1:8096/api/ask-form/events). Owner\ncallers only: the host, never a browser or a guest.",
"operationId": "askform_events_api_ask_form_events_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskFormEventBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AskFormRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/ask-form/health": {
"get": {
"summary": "Askform Health",
"description": "Each machine's ask-form: installed, version, relay \u2014 live.",
"operationId": "askform_health_api_ask_form_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/projects": {
"get": {
"summary": "Projects List",
"description": "Card metadata for every directory under projects/ (newest commit first).\n\nEach card carries a compact ``costs`` rollup (total $/tokens + conversation\ncount) aggregated from every conversation attributed to the project \u2014\nwithin the ``account`` view (unset = the totals; see ``_project_costs``).",
"operationId": "projects_list_api_projects_get",
"parameters": [
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/project": {
"get": {
"summary": "Project Detail",
"description": "Full metadata + key-file contents (README/CLAUDE.md/index meta/og) for one project.\n\nAlso attaches a ``costs`` block: total/mean/median spend across the project's\nconversations, a per-token-type breakdown, and mean cost per line of code.",
"operationId": "project_detail_api_project_get",
"parameters": [
{
"name": "slug",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Slug"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectDetail"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/project-merges": {
"get": {
"summary": "Project Merges",
"description": "``{merges: {lab slug: worker project slug}}``.",
"operationId": "project_merges_api_project_merges_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
},
"put": {
"summary": "Project Merges Set",
"description": "Fold a lab project into a worker project (or undo it with no ``into``).",
"operationId": "project_merges_set_api_project_merges_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MergeBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/project-asset": {
"get": {
"summary": "Project Asset",
"description": "Serve a whitelisted image asset (e.g. og-image) from a project dir.",
"operationId": "project_asset_api_project_asset_get",
"parameters": [
{
"name": "slug",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Slug"
}
},
{
"name": "path",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/artefact": {
"get": {
"summary": "Artefact Asset",
"description": "Serve one generated artefact from a project/service's `.ai/artefacts/`\ntree (``path`` is ``<date>/<sessionId>/<file>``, relative to that tree).",
"operationId": "artefact_asset_api_artefact_get",
"parameters": [
{
"name": "kind",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Kind"
}
},
{
"name": "slug",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Slug"
}
},
{
"name": "path",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/screenshot": {
"get": {
"summary": "Screenshot Asset",
"description": "Serve a captured screenshot image from docs/screenshots/ (read-only).\n\n``path`` is the image's location relative to the screenshots root\n(``<project>/<name>_<ts>.jpeg``). A leading ``docs/screenshots/`` prefix,\nif present, is stripped so the raw path printed by the skill also works.",
"operationId": "screenshot_asset_api_screenshot_get",
"parameters": [
{
"name": "path",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/data-asset": {
"get": {
"summary": "Data Asset",
"description": "Serve an image or video artifact from the repo's root `data/` tree (read-only).\n\n``path`` is the file's location relative to ``data/`` (a leading ``data/``\nprefix, if present, is stripped so the raw repo-relative path also works).\nUsed to preview media the agent ``Read`` from under ``data/`` inline in the\nconversation viewer \u2014 see the CLAUDE.md convention to write artifacts there.",
"operationId": "data_asset_api_data_asset_get",
"parameters": [
{
"name": "path",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/scratchpad-asset": {
"get": {
"summary": "Scratchpad Asset",
"description": "Serve an image or video from Claude Code's session scratchpad tree.\n\n``path`` is relative to the scratchpad root \u2014 ``<encoded-cwd>/<sessionId>/\nscratchpad/<file>`` \u2014 so a run's throwaway media previews inline in the\nthread without having to be copied into a project's ``.ai/artefacts/``.\nThe mount is read-only and only media extensions are served.",
"operationId": "scratchpad_asset_api_scratchpad_asset_get",
"parameters": [
{
"name": "path",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/upload": {
"post": {
"summary": "Upload Files",
"description": "Store one or more composer attachments and describe where they landed.\n\nEach upload is written to ``UPLOADS_DIR/<batch>/<safe-name>``. The returned\n``repoPath`` is what the composer injects into the prompt (the session reads\nit from the repo working dir); ``url`` is the backend serve route the thread\nviewer renders the file from.",
"operationId": "upload_files_api_upload_post",
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/Body_upload_files_api_upload_post"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UploadResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/upload-file": {
"get": {
"summary": "Upload File Asset",
"description": "Serve a previously uploaded composer attachment (raw bytes, inline).",
"operationId": "upload_file_asset_api_upload_file_get",
"parameters": [
{
"name": "path",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/host-file/raw": {
"get": {
"summary": "Host File Raw",
"description": "The file's bytes: images and videos inline, everything else a download.",
"operationId": "host_file_raw_api_host_file_raw_get",
"parameters": [
{
"name": "path",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/usage/limits": {
"get": {
"summary": "Usage Limits",
"description": "The latest /usage % per account, with the rate in force \u2014 and each\nguest's own Claude login's (``guest-<uid>``, the reading only).",
"operationId": "usage_limits_api_usage_limits_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsageLimitsResponse"
}
}
}
}
}
}
},
"/api/usage/plans": {
"get": {
"summary": "Usage Plans",
"description": "The plans (tier + limit windows) an account has been on, oldest first \u2014\nread off its login and its rate-limits.json (usage/plans.py).",
"operationId": "usage_plans_api_usage_plans_get",
"parameters": [
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "personal",
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanHistory"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"post": {
"summary": "Usage Plans Edit",
"description": "Correct an account's plan history by hand: record that it went on\n``tier`` at ``since`` (a past the tracker couldn't see), or ``delete`` a\nsegment. Refits nothing by itself \u2014 POST /api/usage/calibrate does.",
"operationId": "usage_plans_edit_api_usage_plans_post",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanHistory"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/usage/budget": {
"get": {
"summary": "Usage Budget",
"description": "What is left of the account's week before it resets: the free %, units,\n$ and tokens per model once the crons and scheduled conversations due\nbefore the reset are paid for, the pace, and how many nonstop runs would\nuse it all (usage/budget.py).",
"operationId": "usage_budget_api_usage_budget_get",
"parameters": [
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "personal",
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsageBudget"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/usage/burn": {
"get": {
"summary": "Usage Burn",
"description": "How fast each account with a week target spends its week right now\n(the last 60 min, list $ / plan units / % per hour) against the pace that\nreaches the target at the reset \u2014 the home page's burn-rate tile\n(usage/burn.py).",
"operationId": "usage_burn_api_usage_burn_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsageBurnResponse"
}
}
}
}
}
}
},
"/api/usage/calibrate": {
"post": {
"summary": "Usage Calibrate",
"description": "Fit every account now (``backfill``: also the weekly fits over the whole\nhistory, for the $/% over time chart).",
"operationId": "usage_calibrate_api_usage_calibrate_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/CalibrateBody"
},
{
"type": "null"
}
],
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CalibrateResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/usage/import": {
"post": {
"summary": "Usage Import",
"description": "Backfill historical % points (scripts/usage-backfill-ha.py).",
"operationId": "usage_import_api_usage_import_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ImportBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsageImportResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/auth/request-link": {
"post": {
"summary": "Request Link",
"description": "Mail a one-time sign-in link. Always answers ok \u2014 whether the address\nis a user is nobody's business but the owner's. The minting and the SMTP\nexchange happen off the request, so how long the answer takes doesn't\ntell a guest's address from a stranger's either.",
"operationId": "request_link_api_auth_request_link_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LinkRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/auth/login": {
"post": {
"summary": "Login",
"operationId": "login_api_auth_login_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Me"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/auth/logout": {
"post": {
"summary": "Logout",
"operationId": "logout_api_auth_logout_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
}
}
}
},
"/api/me": {
"get": {
"summary": "Me",
"operationId": "me_api_me_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Me"
}
}
}
}
}
},
"put": {
"summary": "Me Update",
"description": "A guest's own preferences: display name, notification channels and\nthe language the app speaks to them. The owner: their language only (the\nrest of their settings live in Settings).",
"operationId": "me_update_api_me_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MePatch"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Me"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/push": {
"get": {
"summary": "Me Push",
"description": "The key a browser subscribes with and the caller's devices.",
"operationId": "me_push_api_me_push_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushDevices"
}
}
}
}
}
},
"post": {
"summary": "Me Push Add",
"description": "This browser turned push on: record it, and switch a guest's\n``webpush`` channel on \u2014 subscribing is them saying yes.",
"operationId": "me_push_add_api_me_push_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushSubscribeBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushDevices"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/push/{device}": {
"delete": {
"summary": "Me Push Remove",
"operationId": "me_push_remove_api_me_push__device__delete",
"parameters": [
{
"name": "device",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Device"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushDevices"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/push/prefs": {
"put": {
"summary": "Me Push Prefs",
"description": "What each group of push kinds does on the caller's devices \u2014 the\nbrowser's one notification channel, split by kind in the app.",
"operationId": "me_push_prefs_api_me_push_prefs_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushPrefsBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushDevices"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/push/test": {
"post": {
"summary": "Me Push Test",
"description": "A test notification on every device of the caller.",
"operationId": "me_push_test_api_me_push_test_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushTestResult"
}
}
}
}
}
}
},
"/api/users": {
"get": {
"summary": "Users List",
"operationId": "users_list_api_users_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
}
}
},
"post": {
"summary": "Users Create",
"operationId": "users_create_api_users_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestUser"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}": {
"put": {
"summary": "Users Update",
"operationId": "users_update_api_users__uid__put",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestUser"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Users Delete",
"description": "Delete a guest for good (*disable* is the reversible one): the record,\ntheir sessions and pending links, their ui-state, their place in the\nconversations shared with them, and their own Claude login on the host.\nTheir conversations, transcripts and projects stay, still ``owner: <id>``\n\u2014 the id is retired, so no later user inherits them.",
"operationId": "users_delete_api_users__uid__delete",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/idp-sync": {
"post": {
"summary": "Users Idp Sync",
"description": "Mirror every guest into the identity provider now (the migration, or\nafter Pocket ID lost its data): ``{uid: {ok, error, at}}``.",
"operationId": "users_idp_sync_api_users_idp_sync_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IdpSyncResult"
}
}
}
}
}
}
},
"/api/users/{uid}/activity": {
"get": {
"summary": "Users Activity",
"description": "One guest's page: spend per day (30 days) and per project (this\nmonth), their latest conversations \u2014 all from the memoized cards.",
"operationId": "users_activity_api_users__uid__activity_get",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 50,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserActivity"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/push-test": {
"post": {
"summary": "Users Push Test",
"description": "The owner checks a guest's push: a test on every device of theirs.",
"operationId": "users_push_test_api_users__uid__push_test_post",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushTestResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/login-link": {
"post": {
"summary": "Users Login Link",
"description": "An invitation link \u2014 to copy into a message, or mailed (``send``) with\nan invitation note. Lives ``INVITE_TTL_S`` (days), unlike the quarter-hour\nlink a guest asks for on the login page; still single-use.",
"operationId": "users_login_link_api_users__uid__login_link_post",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LinkBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginLink"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/sessions": {
"delete": {
"summary": "Users Revoke",
"operationId": "users_revoke_api_users__uid__sessions_delete",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/impersonate": {
"post": {
"summary": "Users Impersonate",
"description": "Look at the app as this guest: a short-lived session for them, set on\n*this* (the admin) host. Every request then is the guest's \u2014 their\nroutes, their conversations, their composer \u2014 until ``/api/auth/logout``\n(the PWA's *Back to admin*) or ``IMPERSONATE_TTL_S``. It only ever\nnarrows what the browser can do, and the cookie is host-only: the guest\nhost never sees it.",
"operationId": "users_impersonate_api_users__uid__impersonate_post",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/guest-defaults": {
"get": {
"summary": "Guest Defaults Get",
"operationId": "guest_defaults_get_api_guest_defaults_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestDefaults"
}
}
}
}
}
},
"put": {
"summary": "Guest Defaults Put",
"description": "What every guest gets: the skills every guest run is handed (sidecar\n``shared_skills`` \u2014 a skill toggle in the catalog sends the whole list)\nand the computer limits. (Their prompt shortcuts are the\nprompt-shortcuts plugin's since 2026-11-27, the New projects policy \u2014\nquota, templates, visibility, level, domain \u2014 the new-project plugin's,\nand their scheduled jobs' limits the cron-jobs plugin's since 2026-11-28.)",
"operationId": "guest_defaults_put_api_guest_defaults_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestDefaultsBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestDefaults"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/guest-skills": {
"get": {
"summary": "Guest Skills",
"description": "The skills the caller's runs can use, for the composer's mentions: the\nowner's shared ones (as ``shared:<name>``, the plugin's namespace) and\nthe granted projects' own ``.claude/skills``.",
"operationId": "guest_skills_api_guest_skills_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuestSkillsResponse"
}
}
}
}
}
}
},
"/api/conversation-share": {
"get": {
"summary": "Share Get",
"operationId": "share_get_api_conversation_share_get",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationShare"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"summary": "Share Put",
"description": "Who else may read and write this conversation. The owner can share\nanything with anyone; the guest who started a conversation can share it\nwith users who already have access to its project.",
"operationId": "share_put_api_conversation_share_put",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ShareBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationShare"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/conversation-follow": {
"put": {
"summary": "Follow Put",
"description": "Turn the caller's notifications for one conversation on or off \u2014 the\nbell in its header. On for the owner on a guest's conversation means\n*follow it*; off for anyone means *mute it* (users/access.audience).",
"operationId": "follow_put_api_conversation_follow_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FollowBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConversationShare"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/domain": {
"get": {
"summary": "User Domain Status",
"description": "Where a guest's own root domain stands at the public edge: DNS,\nrouting, zipgo folder, certificate. ``cached`` answers with the last\ncheck when there is one (instant) instead of checking again.",
"operationId": "user_domain_status_api_users__uid__domain_get",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
},
{
"name": "cached",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Cached"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DomainStatus"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/domain/setup": {
"post": {
"summary": "User Domain Setup",
"description": "Wire a guest's own root domain into the public edge \u2014 again: saving it\nalready did, this finishes the job once the DNS has propagated.\nIdempotent.",
"operationId": "user_domain_setup_api_users__uid__domain_setup_post",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DomainStatus"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/roles": {
"get": {
"summary": "Roles List",
"operationId": "roles_list_api_roles_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RolesResponse"
}
}
}
}
}
},
"post": {
"summary": "Roles Clone",
"operationId": "roles_clone_api_roles_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RoleClone"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RoleView"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/roles/{rid}": {
"put": {
"summary": "Roles Update",
"operationId": "roles_update_api_roles__rid__put",
"parameters": [
{
"name": "rid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Rid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RolePatch"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RoleView"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Roles Delete",
"operationId": "roles_delete_api_roles__rid__delete",
"parameters": [
{
"name": "rid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Rid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/roles/{rid}/reset": {
"post": {
"summary": "Roles Reset",
"operationId": "roles_reset_api_roles__rid__reset_post",
"parameters": [
{
"name": "rid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Rid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RoleView"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/auth/methods": {
"get": {
"summary": "Methods",
"description": "How the login page signs people in: the provider's button (and the\nother apps the same account opens, for its one-line explainer), or the mail.",
"operationId": "methods_api_auth_methods_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthMethods"
}
}
}
}
}
}
},
"/api/auth/oidc/start": {
"get": {
"summary": "Start",
"description": "Off to the provider: ``next`` is where to land afterwards. ``lc`` is a\none-time Pocket ID login code (an invitation): it signs them in at the\nprovider first, which then carries on to this sign-in's consent step\n(:func:`_through_code_page`).",
"operationId": "start_api_auth_oidc_start_get",
"parameters": [
{
"name": "next",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "/",
"title": "Next"
}
},
{
"name": "lc",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Lc"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/auth/oidc/callback": {
"get": {
"summary": "Callback",
"description": "Back from the provider: check the state this browser started with,\ntrade the code for tokens, check the ID token, open the guest's session.",
"operationId": "callback_api_auth_oidc_callback_get",
"parameters": [
{
"name": "code",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Code"
}
},
{
"name": "state",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "State"
}
},
{
"name": "error",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Error"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/computers": {
"get": {
"summary": "My Computers",
"description": "The caller's own computers, whether they may add one, and the limits.",
"operationId": "my_computers_api_me_computers_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ComputersResponse"
}
}
}
}
}
},
"post": {
"summary": "Add Computer",
"description": "A one-time code (an hour) and the install line that uses it.",
"operationId": "add_computer_api_me_computers_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ComputerEnroll"
}
}
}
}
}
}
},
"/api/me/computers/{wid}": {
"patch": {
"summary": "Rename Computer",
"operationId": "rename_computer_api_me_computers__wid__patch",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ComputerPatch"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Computer"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Remove Computer",
"operationId": "remove_computer_api_me_computers__wid__delete",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/computers/{wid}/sessions": {
"get": {
"summary": "Computer Sessions",
"description": "The computer's recent Claude Code sessions \u2014 read from it now, never\nkept \u2014 and how the app has each.",
"operationId": "computer_sessions_api_me_computers__wid__sessions_get",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TerminalSessions"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/computers/{wid}/sessions/{sid}/sync": {
"post": {
"summary": "Sync Session",
"description": "Share one of the computer's sessions: the next mirror pass takes it.",
"operationId": "sync_session_api_me_computers__wid__sessions__sid__sync_post",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
},
{
"name": "sid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Unsync Session",
"description": "Stop syncing it: what the app already has stays.",
"operationId": "unsync_session_api_me_computers__wid__sessions__sid__sync_delete",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
},
{
"name": "sid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/computers": {
"get": {
"summary": "User Computers",
"description": "A guest's computers, for their page (Settings \u2192 Users).",
"operationId": "user_computers_api_users__uid__computers_get",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ComputersResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/users/{uid}/computers/{wid}": {
"delete": {
"summary": "User Remove Computer",
"operationId": "user_remove_computer_api_users__uid__computers__wid__delete",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
},
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/computers/{wid}/tools": {
"post": {
"summary": "Install Computer Tools",
"description": "Install claude / gh / pi on the guest's own computer (workers/tools.py:\nthe hub names the tools, the computer's own checkout holds the recipes).",
"operationId": "install_computer_tools_api_me_computers__wid__tools_post",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ComputerToolsBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Computer"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/computers/{wid}/gh-login": {
"post": {
"summary": "Computer Gh Login",
"description": "gh's sign-in on their computer, to their own GitHub account.",
"operationId": "computer_gh_login_api_me_computers__wid__gh_login_post",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GhLogin"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"get": {
"summary": "Computer Gh Login State",
"operationId": "computer_gh_login_state_api_me_computers__wid__gh_login_get",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GhLogin"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Computer Gh Login Cancel",
"operationId": "computer_gh_login_cancel_api_me_computers__wid__gh_login_delete",
"parameters": [
{
"name": "wid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Wid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/security/log": {
"get": {
"summary": "Security Log",
"operationId": "security_log_api_security_log_get",
"parameters": [
{
"name": "kind",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind"
}
},
{
"name": "who",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Who"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 200,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecurityLog"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/security/state": {
"get": {
"summary": "Security State",
"operationId": "security_state_api_security_state_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecurityState"
}
}
}
}
}
}
},
"/api/security/settings": {
"put": {
"summary": "Security Settings",
"operationId": "security_settings_api_security_settings_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecuritySettingsBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecurityState"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/security/lock-guests": {
"post": {
"summary": "Security Lock Guests",
"operationId": "security_lock_guests_api_security_lock_guests_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LockBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecurityLockResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/security/stop-runs": {
"post": {
"summary": "Security Stop Runs",
"operationId": "security_stop_runs_api_security_stop_runs_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecurityStopResult"
}
}
}
}
}
}
},
"/api/security/events": {
"post": {
"summary": "Security Event",
"description": "From the hook, on the host: the owner's caller by construction (it runs\noutside any sandbox, over loopback).",
"operationId": "security_event_api_security_events_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuardEvent"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/remote": {
"get": {
"summary": "Remote State",
"operationId": "remote_state_api_remote_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoteAccess"
}
}
}
}
}
}
},
"/api/remote/lock": {
"post": {
"summary": "Remote Lock",
"description": "Off from anywhere (one tap, even on the internet address itself \u2014 that\nsigns this browser out too); back on only from the admin host, signed in\nthrough Authelia, so a session that was dropped (or a run it started)\ncan't undo its own cut-off.",
"operationId": "remote_lock_api_remote_lock_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoteLockBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoteAccess"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/remote/sessions/{sid}": {
"delete": {
"summary": "Remote Sign Out",
"operationId": "remote_sign_out_api_remote_sessions__sid__delete",
"parameters": [
{
"name": "sid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoteAccess"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/remote/passkey/login/options": {
"post": {
"summary": "Passkey Login Options",
"operationId": "passkey_login_options_api_remote_passkey_login_options_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PasskeyOptions"
}
}
}
}
}
}
},
"/api/remote/passkey/login": {
"post": {
"summary": "Passkey Login",
"operationId": "passkey_login_api_remote_passkey_login_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssertionBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/remote/passkey/add/options": {
"post": {
"summary": "Passkey Add Options",
"operationId": "passkey_add_options_api_remote_passkey_add_options_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InviteBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PasskeyOptions"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/remote/passkey/add": {
"post": {
"summary": "Passkey Add",
"operationId": "passkey_add_api_remote_passkey_add_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AttestationBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/remote/passkeys/invite": {
"post": {
"summary": "Passkey Invite",
"description": "A one-time link that adds a passkey \u2014 made on the admin host only: a\nsession on the internet address can't give itself a lasting way back in.",
"operationId": "passkey_invite_api_remote_passkeys_invite_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PasskeyInvite"
}
}
}
}
}
},
"delete": {
"summary": "Passkey Invite Cancel",
"operationId": "passkey_invite_cancel_api_remote_passkeys_invite_delete",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoteAccess"
}
}
}
}
}
}
},
"/api/remote/passkeys/{pid}": {
"delete": {
"summary": "Passkey Remove",
"operationId": "passkey_remove_api_remote_passkeys__pid__delete",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoteAccess"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/live": {
"get": {
"summary": "Perf Live",
"description": "Every machine's CPU / memory now, its running agents with their process\ntrees, and the leftovers of ended conversations. ``account``: the profile\nswitch (``profile:<id>``; unset / ``all`` = every profile \u2014 perf/scope.py).",
"operationId": "perf_live_api_perf_live_get",
"parameters": [
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfLive"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/history": {
"get": {
"summary": "Perf History",
"description": "CPU and memory over time: each machine, and stacked per conversation.",
"operationId": "perf_history_api_perf_history_get",
"parameters": [
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "24h",
"title": "Range"
}
},
{
"name": "runner",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Runner"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfHistory"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/conversations": {
"get": {
"summary": "Perf Conversations",
"description": "Per conversation: CPU time, peaks, and its heaviest command.",
"operationId": "perf_conversations_api_perf_conversations_get",
"parameters": [
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "7d",
"title": "Range"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfConversations"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/commands": {
"get": {
"summary": "Perf Commands",
"description": "The heaviest commands (Bash-tool calls with everything they ran) or\nprograms (each process on its own), grouped by label.",
"operationId": "perf_commands_api_perf_commands_get",
"parameters": [
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "7d",
"title": "Range"
}
},
{
"name": "kind",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "tool",
"title": "Kind"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfCommands"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/conversation/{sid}": {
"get": {
"summary": "Perf Conversation",
"description": "One conversation's numbers \u2014 the header chip and the drawer's cards:\nlive now with its process tree, totals, each Bash command it ran, what\nit left running.",
"operationId": "perf_conversation_api_perf_conversation__sid__get",
"parameters": [
{
"name": "sid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfConversation"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/conversation/{sid}/series": {
"get": {
"summary": "Perf Conversation Series",
"description": "Its CPU and memory over time \u2014 its whole life, or the last 10 min.",
"operationId": "perf_conversation_series_api_perf_conversation__sid__series_get",
"parameters": [
{
"name": "sid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sid"
}
},
{
"name": "window",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "life",
"title": "Window"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfSeriesOne"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/conversation/{sid}/calls": {
"get": {
"summary": "Perf Conversation Calls",
"description": "Every Bash call the conversation (and its subagents) made, as the call\nprobe measured it \u2014 the Bash cards' cost strip and parts \u2014 plus the plan\nand usage reading at each turn boundary.\n\n``since`` (a delta): only the calls ingested after it (``delta: true``).\nRead whole once (no ``since``), then poll with ``since = cursor - 30`` \u2014\nan overlap, because two runners' ingests can commit out of order \u2014 and\nmerge ``calls`` into what you hold by ``toolUseId``. ``cursor`` is the\nnewest ingest time the answer saw (``since`` itself when nothing changed;\nnull on a whole read of a conversation without calls). ``marks`` and\n``storage`` always come whole (``perf/calls.py`` ``calls_since``).",
"operationId": "perf_conversation_calls_api_perf_conversation__sid__calls_get",
"parameters": [
{
"name": "sid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sid"
}
},
{
"name": "since",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Since"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfCalls"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/kill": {
"post": {
"summary": "Perf Kill",
"description": "Stop an ended conversation's leftover processes (SIGTERM, then SIGKILL).",
"operationId": "perf_kill_api_perf_kill_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/KillBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/keep": {
"post": {
"summary": "Perf Keep",
"description": "Exempt one leftover from the auto-kill (or take the exemption back).",
"operationId": "perf_keep_api_perf_keep_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/KeepBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/settings": {
"get": {
"summary": "Perf Settings",
"operationId": "perf_settings_api_perf_settings_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfSettings"
}
}
}
}
}
},
"put": {
"summary": "Perf Settings Put",
"operationId": "perf_settings_put_api_perf_settings_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Body"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfSettings"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/storage": {
"get": {
"summary": "Perf Storage",
"description": "Every runner's filesystems, what each kind of item holds there, and the\nbiggest items with their conversations and a cleanup verdict. ``account``:\nthe profile switch (perf/scope.py) \u2014 the machines it shows, and the items\nof its conversations.",
"operationId": "perf_storage_api_perf_storage_get",
"parameters": [
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfStorage"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/storage/history": {
"get": {
"summary": "Perf Storage History",
"description": "One filesystem's free space and the tracked items' share over time.",
"operationId": "perf_storage_history_api_perf_storage_history_get",
"parameters": [
{
"name": "runner",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Runner"
}
},
{
"name": "mount",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Mount"
}
},
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "7d",
"title": "Range"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfStorageHistory"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/storage/writers": {
"get": {
"summary": "Perf Storage Writers",
"description": "The calls that left the most on disk, net \u2014 exact, every write\n(agent-probe on Linux).",
"operationId": "perf_storage_writers_api_perf_storage_writers_get",
"parameters": [
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "7d",
"title": "Range"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfStorageWriters"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/conversation/{sid}/storage": {
"get": {
"summary": "Perf Conversation Storage",
"description": "What one conversation keeps on disk \u2014 its scratchpad, the worktrees it\nmade or worked in, its transcript \u2014 and what each of its calls added.",
"operationId": "perf_conversation_storage_api_perf_conversation__sid__storage_get",
"parameters": [
{
"name": "sid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfConversationStorage"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/storage/rm": {
"post": {
"summary": "Perf Storage Rm",
"description": "Remove a scratch dir or a worktree on its runner. agent-probe re-checks\nit there: refused (``unsafe``) when it would lose work or a session is\nusing it, unless ``force``.",
"operationId": "perf_storage_rm_api_perf_storage_rm_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoveBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfStorageRmResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/storage/scan": {
"post": {
"summary": "Perf Storage Scan",
"description": "Measure everything on a runner now (a full pass: a minute or two).",
"operationId": "perf_storage_scan_api_perf_storage_scan_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScanBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfStorageScanResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/perf/storage/config": {
"get": {
"summary": "Perf Storage Config",
"description": "A runner's agent-probe storage settings: auto-clean, the agent nudge.",
"operationId": "perf_storage_config_api_perf_storage_config_get",
"parameters": [
{
"name": "runner",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "lab",
"title": "Runner"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfStorageConfig"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"summary": "Perf Storage Config Set",
"operationId": "perf_storage_config_set_api_perf_storage_config_put",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConfigBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PerfStorageConfig"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/telemetry": {
"post": {
"summary": "Telemetry Beacon",
"description": "What a browser measured and which features it used (telemetry/ingest.py).\nSent with ``navigator.sendBeacon``; a batch from an owner impersonating a\nguest is dropped \u2014 it would count his clicks as theirs.",
"operationId": "telemetry_beacon_api_telemetry_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TelemetryIngestResult"
}
}
}
}
}
}
},
"/api/telemetry/hub": {
"get": {
"summary": "Telemetry Hub",
"description": "The hub's own performance over ``range``: API latency and errors, the\nevent loop's lag, the slowest routes, and what browsers measured.",
"operationId": "telemetry_hub_api_telemetry_hub_get",
"parameters": [
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "24h",
"title": "Range"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TelemetryHub"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/composer-shortcuts": {
"get": {
"summary": "List Plugin Composer Shortcuts",
"description": "Additive prompt shortcuts contributed by active plugins\n(``provides: composer.shortcuts``).",
"operationId": "list_plugin_composer_shortcuts_api_plugins_composer_shortcuts_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/plugins/keymap": {
"get": {
"summary": "Plugin Keymap",
"description": "The caller's keyboard shortcuts from the plugin providing\n``app.keymap`` (``plugins/keymap.py``): ``{enabled, bindings: [{command,\nkeys}], pluginId}`` \u2014 ``enabled: false`` and no bindings without one.",
"operationId": "plugin_keymap_api_plugins_keymap_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/plugins/commands": {
"get": {
"summary": "List Plugin Commands",
"description": "The ``ai-agent`` CLI commands and MCP tools of the plugins active for\nthe caller (``commands`` in their manifests \u2014 ``plugins/commands.py``):\nwhat ``ai-agent plugin <id> <command>`` and the MCP server's\n``plugin_<id>_<command>`` tools are built from.",
"operationId": "list_plugin_commands_api_plugins_commands_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PluginCommandsResponse"
}
}
}
}
}
}
},
"/api/plugins/services-index": {
"get": {
"summary": "Plugin Services Index",
"description": "The homelab services catalogue from the plugin providing\n``services.index`` (``plugins/services_bridge.py``, cached 30 s): what the\ntag registry, the composer's service chips and ``ai-agent tags`` read \u2014\n``[]`` without the plugin (``/api/services`` left the core on 2026-11-28).",
"operationId": "plugin_services_index_api_plugins_services_index_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServicesIndexResponse"
}
}
}
}
}
}
},
"/api/plugins/composer-modes": {
"get": {
"summary": "List Plugin Composer Modes",
"description": "Composer mode descriptors contributed by active plugins\n(``provides: composer.mode``).",
"operationId": "list_plugin_composer_modes_api_plugins_composer_modes_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/plugins/home-tiles": {
"get": {
"summary": "List Plugin Home Tiles",
"description": "Declarative tiles for the home usage strip from active plugins\n(``provides: home.tiles`` \u2014 ``plugins/home_tiles.py``).",
"operationId": "list_plugin_home_tiles_api_plugins_home_tiles_get",
"parameters": [
{
"name": "scope",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "all",
"title": "Scope"
}
},
{
"name": "profileScope",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "personal",
"title": "Profilescope"
}
},
{
"name": "composerHarness",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Composerharness"
}
},
{
"name": "tzOffset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0,
"title": "Tzoffset"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HomeTilesResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/app-launch": {
"get": {
"summary": "Plugin App Launch",
"description": "What the caller's active plugins open on their own as the app opens\n(``provides: app.launch`` \u2014 ``plugins/launch.py``): a load, or the app back\nin the foreground. Each item is one of the plugin's ``app.modal`` slots.",
"operationId": "plugin_app_launch_api_plugins_app_launch_get",
"parameters": [
{
"name": "reason",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "load",
"title": "Reason"
}
},
{
"name": "path",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "/",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AppLaunchResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/inbox/waiting": {
"get": {
"summary": "List Inbox Waiting",
"description": "Pending questions contributed by active plugins\n(``provides: inbox.waiting``), filtered to what ``caller`` may see.",
"operationId": "list_inbox_waiting_api_inbox_waiting_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/app-banner": {
"get": {
"summary": "App Banner",
"description": "The owner's floating status banner from the plugin providing\n``app.banner`` (``plugins/banner.py``), or ``null``. Owner only \u2014 never a\nguest's (``lab.read``). Its ``sessionId`` resolves to the conversation's\nin-app id and title (:func:`_attach_conversation`).",
"operationId": "app_banner_api_app_banner_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BannerStatus"
}
}
}
}
}
}
},
"/api/machines/attention": {
"get": {
"summary": "Machines Attention",
"description": "What waits for the owner on each of his machines, from the plugins\nproviding ``machine.attention`` (``plugins/machine_attention.py``),\ncached 30 s \u2014 the machine pages' *Needs you* rows and a worker card's\nSetup checklist. Owner only (``lab.read``).",
"operationId": "machines_attention_api_machines_attention_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MachineAttention"
}
}
}
}
}
}
},
"/api/machines/wakeable": {
"get": {
"summary": "Machines Wakeable",
"description": "Which of the owner's workers the plugin providing ``machine.wake`` can\nwake (Wake-on-LAN), cached 30 s (``plugins/machine_wake.py``) \u2014 the \u26a1 Wake\nbutton on an offline worker's card. Owner only (``lab.read``).",
"operationId": "machines_wakeable_api_machines_wakeable_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MachinesWakeable"
}
}
}
}
}
}
},
"/api/machines/{worker_id}/wake": {
"post": {
"summary": "Machine Wake Now",
"description": "*\u26a1 Wake*: the ``machine.wake`` plugin sends the worker its magic packet;\nthen it is probed every 3 s for a minute so the ``workers`` SSE flips its\ncard online by itself. Owner only (``workers.manage``).",
"operationId": "machine_wake_now_api_machines__worker_id__wake_post",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MachineWakeResult"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins": {
"get": {
"summary": "List Plugins",
"description": "Caller's installed plugins, managed plugins (for guests), available hub\ncatalog, permissions and live UI/resource descriptors.",
"operationId": "list_plugins_api_plugins_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/plugins/ui": {
"get": {
"summary": "List Plugins Ui",
"description": "What the app draws plugins with outside Settings \u2192 Plugins: the live UI\ndescriptors (pages, tool cards, slots, overlays, prefs, resource kinds),\nthe active ``provides`` keys and each active plugin's glyph, name and\nnon-secret config. A few KB, where ``GET /api/plugins`` (every install's\nfull manifest, the catalog \u2014 ~250 KB) is only for the Settings pages.",
"operationId": "list_plugins_ui_api_plugins_ui_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/providers": {
"get": {
"summary": "List Providers",
"description": "Every model provider and agent harness the hub runs (the owner's\nenabled ``kind: provider|harness`` plugins): harnesses, vendors, model\nfamilies, price books and accounts. A guest gets the harnesses their\ncomputers may run and no accounts.",
"operationId": "list_providers_api_providers_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/plugins/validate": {
"post": {
"summary": "Validate Plugin",
"description": "Preview a plugin source (local path or git URL) before installing.",
"operationId": "validate_plugin_api_plugins_validate_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Body"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/install": {
"post": {
"summary": "Install Plugin",
"description": "Install (or re-approve) a plugin live for the caller.",
"operationId": "install_plugin_api_plugins_install_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Body"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/reload": {
"post": {
"summary": "Reload Plugin",
"description": "Re-read a plugin from its source; keeps approval if capabilities didn't widen.",
"operationId": "reload_plugin_api_plugins__pid__reload_post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}": {
"put": {
"summary": "Update Plugin",
"description": "Toggle enabled or update non-secret config fields.",
"operationId": "update_plugin_api_plugins__pid__put",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Uninstall Plugin",
"operationId": "uninstall_plugin_api_plugins__pid__delete",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "purge",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Purge"
}
},
{
"name": "force",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Force"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/catalog": {
"post": {
"summary": "Promote Catalog Plugin",
"operationId": "promote_catalog_plugin_api_plugins_catalog_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Body"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/catalog/{pid}": {
"delete": {
"summary": "Remove Catalog Plugin",
"operationId": "remove_catalog_plugin_api_plugins_catalog__pid__delete",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/managed/grants/{uid}": {
"get": {
"summary": "List User Managed Grants",
"description": "Every owner-managed plugin with guest ``uid``'s current grant, config,\nper-plugin monthly budget and this month's usage.",
"operationId": "list_user_managed_grants_api_plugins_managed_grants__uid__get",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/managed/grants/{uid}/{pid}": {
"put": {
"summary": "Update User Managed Grant",
"description": "Toggle or configure guest ``uid``'s grant for managed plugin ``pid``.",
"operationId": "update_user_managed_grant_api_plugins_managed_grants__uid___pid__put",
"parameters": [
{
"name": "uid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Uid"
}
},
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/settings": {
"get": {
"summary": "Plugin Settings",
"operationId": "plugin_settings_api_plugins__pid__settings_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/secrets/{key}": {
"put": {
"summary": "Set Plugin Secret",
"operationId": "set_plugin_secret_api_plugins__pid__secrets__key__put",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Key"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Delete Plugin Secret",
"operationId": "delete_plugin_secret_api_plugins__pid__secrets__key__delete",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Key"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/spend": {
"get": {
"summary": "Plugin Key Spend",
"description": "The hub key of a ``managed.keyHealth`` plugin: its health and hint,\nthe alert settings, this month, by caller / model, 30 days, recent calls.",
"operationId": "plugin_key_spend_api_plugins__pid__spend_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/key-settings": {
"put": {
"summary": "Update Plugin Key Settings",
"description": "The owner's alert line (``alertLimit`` + ``currency``), the % it pushes\nat (and 100 %), and whether a break / recovery pushes.",
"operationId": "update_plugin_key_settings_api_plugins__pid__key_settings_put",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/test": {
"post": {
"summary": "Test Plugin",
"operationId": "test_plugin_api_plugins__pid__test_post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/actions/{action}": {
"post": {
"summary": "Invoke Plugin Action",
"operationId": "invoke_plugin_action_api_plugins__pid__actions__action__post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "action",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Action"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"get": {
"summary": "Read Plugin Action",
"description": "The same action by GET, for actions the manifest marks ``readOnly`` \u2014\nwhat lets a read-only account (the screenshot bot, which may only use\nsafe methods) load a plugin page's data.",
"operationId": "read_plugin_action_api_plugins__pid__actions__action__get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "action",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Action"
}
},
{
"name": "payload",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Payload"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/batch-read": {
"post": {
"summary": "Batch Read Post",
"description": "Up to 32 ``readOnly`` actions at once \u2014 ``{items: [{key, pluginId,\naction, payload?, fresh?}], fresh?}`` \u2192 ``{results: {key: \u2026}}``, each\nitem answered on its own (plugins/batch.py).",
"operationId": "batch_read_post_api_plugins_batch_read_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
},
"get": {
"summary": "Batch Read Get",
"description": "The same by GET (``?items=<JSON array>``), for a caller limited to safe\nmethods (the screenshot bot).",
"operationId": "batch_read_get_api_plugins_batch_read_get",
"parameters": [
{
"name": "items",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "[]",
"title": "Items"
}
},
{
"name": "fresh",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Fresh"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/ui-bundle": {
"get": {
"summary": "Plugin Ui Bundle",
"description": "Every active slot document for ``where`` in one body \u2014\n``{where, version, docs: {\"<pid>:<slot>\": html}}``, ETag'd (304).",
"operationId": "plugin_ui_bundle_api_plugins_ui_bundle_get",
"parameters": [
{
"name": "where",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Where"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/ui/{kind}/{sub_id}": {
"get": {
"summary": "Plugin Ui Html",
"description": "Return the raw HTML document a sandboxed frame renders (never served as\ntext/html on the app origin \u2014 fetched by React and handed to\n``/sandbox-frame.html`` via postMessage).",
"operationId": "plugin_ui_html_api_plugins__pid__ui__kind___sub_id__get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "kind",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Kind"
}
},
{
"name": "sub_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sub Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/asset/{kind}": {
"get": {
"summary": "Plugin Asset",
"description": "A plugin's SVG icon or illustration (``kind`` = icon | illustration).",
"operationId": "plugin_asset_api_plugins__pid__asset__kind__get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "kind",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Kind"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/{pid}/info": {
"get": {
"summary": "Plugin Info",
"description": "The plugin's info page: what it does (README), what it can reach,\nits jobs, webhooks, actions and pages, version, author and source.",
"operationId": "plugin_info_api_plugins__pid__info_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/plugins/create-session": {
"post": {
"summary": "Create Plugin Session",
"description": "Scaffold a starter plugin directory and start a conversation using the\n``create-plugin`` skill.",
"operationId": "create_plugin_session_api_plugins_create_session_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Body"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/i18n/languages": {
"get": {
"summary": "Languages",
"operationId": "languages_api_i18n_languages_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/i18n/{lang}": {
"get": {
"summary": "Dictionary",
"operationId": "dictionary_api_i18n__lang__get",
"parameters": [
{
"name": "lang",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Lang"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/data": {
"get": {
"summary": "Plugin Data List",
"operationId": "plugin_data_list_proxy_tools_plugins__pid__data_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/data/{path}": {
"get": {
"summary": "Plugin Data Get",
"operationId": "plugin_data_get_proxy_tools_plugins__pid__data__path__get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"summary": "Plugin Data Put",
"operationId": "plugin_data_put_proxy_tools_plugins__pid__data__path__put",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Plugin Data Delete",
"operationId": "plugin_data_delete_proxy_tools_plugins__pid__data__path__delete",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/config": {
"get": {
"summary": "Plugin Config Get",
"operationId": "plugin_config_get_proxy_tools_plugins__pid__config_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/actions/{action}": {
"post": {
"summary": "Plugin Proxy Action",
"operationId": "plugin_proxy_action_proxy_tools_plugins__pid__actions__action__post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "action",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Action"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/emit": {
"post": {
"summary": "Plugin Hub Emit",
"description": "Emit a declared plugin event (``emits[]``) to every enabled plugin\nsubscribing to ``plugin:<pid>:<event>`` (and declaring ``pid`` in\n``requires`` or ``optionalRequires``).\nOnly the plugin's own handler token may emit its events.",
"operationId": "plugin_hub_emit_proxy_tools_plugins__pid__hub_emit_post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/conversations": {
"get": {
"summary": "Plugin Hub Conversations",
"description": "The caller's conversations that ended in the last ``days`` (newest\nfirst), or the specific comma-separated ``sids`` when given. With\n``metrics=1``, also returns ``tokens``, ``costUsd`` and ``durationMs``;\nwith ``memories=1``, ``memoriesRead`` (the memory slugs recalled into it)\nand ``model``. ``memory=<slug>`` returns, from the whole archive (no\n``days`` window), the conversations that read that memory; ``service=<dir>``\nlikewise the conversations tagged with that service (the services\nplugin's *Linked conversations*). Every row names its ``services``.",
"operationId": "plugin_hub_conversations_proxy_tools_plugins__pid__hub_conversations_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "days",
"in": "query",
"required": false,
"schema": {
"type": "number",
"default": 30.0,
"title": "Days"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 200,
"title": "Limit"
}
},
{
"name": "sids",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Sids"
}
},
{
"name": "metrics",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Metrics"
}
},
{
"name": "memories",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Memories"
}
},
{
"name": "memory",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Memory"
}
},
{
"name": "service",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Service"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/conversations/{sid}": {
"get": {
"summary": "Plugin Hub Conversation One",
"description": "One conversation of the caller's, with its final answer (the newest\ntranscript of the session \u2014 a resumed one may have several).",
"operationId": "plugin_hub_conversation_one_proxy_tools_plugins__pid__hub_conversations__sid__get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "sid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Sid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/goals": {
"get": {
"summary": "Plugin Hub Goals",
"operationId": "plugin_hub_goals_proxy_tools_plugins__pid__hub_goals_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/graph": {
"get": {
"summary": "Plugin Hub Graph",
"description": "``graph.read``: projects, services, conversations, plans, memories and\nsubagents as the Graph plugin draws them (``plugins/graphdata.py``).",
"operationId": "plugin_hub_graph_proxy_tools_plugins__pid__hub_graph_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/graph/related": {
"get": {
"summary": "Plugin Hub Graph Related",
"description": "``graph.read``: the other conversations sharing a resource with\nconversation ``id`` (a conversation or session id) \u2014 the Graph plugin's\n*Related conversations* card in the Details drawer, a core card until\n2026-11-27 (``plugins/graphdata.related``).",
"operationId": "plugin_hub_graph_related_proxy_tools_plugins__pid__hub_graph_related_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "id",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/services/commits": {
"get": {
"summary": "Plugin Hub Services Commits",
"description": "``services.read``: each service dir's recent commits off one bucketed\n``git log`` walk of the repo's ``services/`` (cached on HEAD,\n:mod:`githist` \u2014 never a fork per service): ``{services: {<dir>:\n{updatedAt, commits: [{hash, date, subject}]}}}``, or ``{updatedAt,\ncommits}`` for ``slug=<dir>`` (none yet: ``null`` / ``[]``).",
"operationId": "plugin_hub_services_commits_proxy_tools_plugins__pid__hub_services_commits_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "slug",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Slug"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/footprint": {
"get": {
"summary": "Plugin Hub Footprint",
"description": "``footprint.read``: each conversation's estimated carbon, water and\nenergy in a profile scope and date range (``plugins/footprintdata.py``).",
"operationId": "plugin_hub_footprint_proxy_tools_plugins__pid__hub_footprint_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Account"
}
},
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "sub",
"title": "Range"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/telemetry/usage": {
"get": {
"summary": "Plugin Hub Telemetry Usage",
"description": "``telemetry.read``: ``telemetry/views.usage`` (which features\nwere used, by whom, on what device; What's new seen; where conversations\nstarted) plus ``registry``, the app's feature registry\n(``telemetry/features.json``, generated from lib/telemetry/features.ts).",
"operationId": "plugin_hub_telemetry_usage_proxy_tools_plugins__pid__hub_telemetry_usage_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "30d",
"title": "Range"
}
},
{
"name": "who",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "all",
"title": "Who"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/analytics": {
"get": {
"summary": "Plugin Hub Analytics",
"description": "``analytics.read``: each top-level conversation's start, working time,\nturns and breakdown keys in a profile scope and range \u2014 usage, never cost\n(``plugins/analyticsdata.py``).",
"operationId": "plugin_hub_analytics_proxy_tools_plugins__pid__hub_analytics_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Account"
}
},
{
"name": "range",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "30d",
"title": "Range"
}
},
{
"name": "tzOffset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0,
"title": "Tzoffset"
}
},
{
"name": "cron",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Cron"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/activity": {
"get": {
"summary": "Plugin Hub Activity",
"description": "``activity.read``: the Activity rollup \u2014 per local day, per 5-minute\nbin per model (distinct agents working), per model (runs, active time,\ntokens, cost) \u2014 in a profile scope, plus the scope switch's ``profiles``\n(``plugins/activitydata.py``). Owner only.",
"operationId": "plugin_hub_activity_proxy_tools_plugins__pid__hub_activity_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "account",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Account"
}
},
{
"name": "tzOffset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0,
"title": "Tzoffset"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/usage/overview": {
"get": {
"summary": "Plugin Hub Usage Overview",
"description": "``usage.read``: one scope's Plan usage \u2014 the accounts it shows (with\ntheir Settings \u2192 Logins subscription), each one's ``/api/usage/limits``\nentry, ``history`` over ``days``, ``plans`` and ``calibration``, and the\nscope switch's ``profiles`` (``plugins/usagedata.py``). Owner only.",
"operationId": "plugin_hub_usage_overview_proxy_tools_plugins__pid__hub_usage_overview_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "scope",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Scope"
}
},
{
"name": "days",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 14,
"title": "Days"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/usage/home": {
"get": {
"summary": "Plugin Hub Usage Home",
"description": "``usage.read``: what the home usage strip draws \u2014 ``limits`` (as\n``GET /api/usage/limits``), ``burn`` (as ``GET /api/usage/burn``), the\n``accounts`` list (``GET /api/accounts``) and the ``profiles``\n(``GET /api/profiles``); a ``home.tiles`` action turns it into tiles.\n``profileScope`` / ``composerHarness`` are echoed back for the handler.\nOwner only.",
"operationId": "plugin_hub_usage_home_proxy_tools_plugins__pid__hub_usage_home_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "profileScope",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Profilescope"
}
},
{
"name": "composerHarness",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Composerharness"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/activity/daily": {
"get": {
"summary": "Plugin Hub Activity Daily",
"description": "``activity.read``: the last ``days`` local days ``{date, cost, tokens,\nconversations}`` in the ``scope`` profile scope \u2014 ``GET /api/usage/daily``'s\nbody. Owner only.",
"operationId": "plugin_hub_activity_daily_proxy_tools_plugins__pid__hub_activity_daily_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "days",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 7,
"title": "Days"
}
},
{
"name": "scope",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Scope"
}
},
{
"name": "tzOffset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0,
"title": "Tzoffset"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/usage/calibrate": {
"post": {
"summary": "Plugin Hub Usage Calibrate",
"description": "``usage.calibrate``: fit every account now, as ``POST\n/api/usage/calibrate`` (``{backfill}``: the weekly fits over the whole\nhistory first). Owner only.",
"operationId": "plugin_hub_usage_calibrate_proxy_tools_plugins__pid__hub_usage_calibrate_post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/goals/work": {
"post": {
"summary": "Plugin Hub Goals Work",
"operationId": "plugin_hub_goals_work_proxy_tools_plugins__pid__hub_goals_work_post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/notify": {
"post": {
"summary": "Plugin Hub Notify",
"operationId": "plugin_hub_notify_proxy_tools_plugins__pid__hub_notify_post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/changed": {
"post": {
"summary": "Plugin Hub Changed",
"description": "The plugin's data changed (a handler or job wrote it): the app's open\nframes of this plugin read it again \u2014 SSE ``{\"type\": \"plugin-data\", id}``,\nto its installer only. No capability: it only says *look again*.",
"operationId": "plugin_hub_changed_proxy_tools_plugins__pid__hub_changed_post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/title": {
"post": {
"summary": "Plugin Hub Title",
"description": "``conversations.title`` (owner only): a prompt's title and one\nsentence from the plugin that ``provides: {\"conversation.title\": \u2026}``\n(plugins/labels_bridge.py) \u2014 ``{}`` when there is none or it couldn't\nanswer (the caller falls back on the prompt's first words).",
"operationId": "plugin_hub_title_proxy_tools_plugins__pid__hub_title_post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/webhook/{hook_id}": {
"post": {
"summary": "Plugin Inbound Webhook",
"description": "Per-install token-authenticated inbound webhook: notifies, spawns a\nconversation (when ``conversations.spawn`` is approved), or runs a v3\naction.",
"operationId": "plugin_inbound_webhook_proxy_tools_plugins__pid__webhook__hook_id__post",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
},
{
"name": "hook_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Hook Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/proxy/tools/plugins/{pid}/hub/context-cost": {
"get": {
"summary": "Plugin Hub Context Cost",
"description": "``contextcost.read``: the token cost of the context files, the skills'\nusage and estimated spend, the most expensive files. Owner only.",
"operationId": "plugin_hub_context_cost_proxy_tools_plugins__pid__hub_context_cost_get",
"parameters": [
{
"name": "pid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Pid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Dashboard"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/oauth/consent/{rid}": {
"get": {
"summary": "Consent",
"description": "The consent page's poll: the request, and once decided, where to go.",
"operationId": "consent_oauth_consent__rid__get",
"parameters": [
{
"name": "rid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Rid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpRequest"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"post": {
"summary": "Consent Action",
"description": "From the public consent page: send the approval to the owner's phone,\nallow it as the signed-in guest, or say no. The owner approves only on\nthe admin host or by tapping, on his phone, the number this page shows\n(``matchNumber``, in this answer only) \u2014 never here.",
"operationId": "consent_action_oauth_consent__rid__post",
"parameters": [
{
"name": "rid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Rid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConsentAction"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpRequest"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/mcp/pending/{rid}": {
"get": {
"summary": "Owner Pending",
"operationId": "owner_pending_api_mcp_pending__rid__get",
"parameters": [
{
"name": "rid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Rid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpRequest"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"post": {
"summary": "Owner Decide",
"operationId": "owner_decide_api_mcp_pending__rid__post",
"parameters": [
{
"name": "rid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Rid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Decision"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpRequest"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/mcp": {
"get": {
"summary": "Mcp Overview",
"operationId": "mcp_overview_api_mcp_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpOverview"
}
}
}
}
}
}
},
"/api/mcp/settings": {
"put": {
"summary": "Mcp Settings",
"operationId": "mcp_settings_api_mcp_settings_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SettingsPatch"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpSettings"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/mcp/connections/{gid}": {
"patch": {
"summary": "Mcp Connection Patch",
"operationId": "mcp_connection_patch_api_mcp_connections__gid__patch",
"parameters": [
{
"name": "gid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Gid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GrantPatch"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpConnection"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Mcp Connection Revoke",
"operationId": "mcp_connection_revoke_api_mcp_connections__gid__delete",
"parameters": [
{
"name": "gid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Gid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/me/ai-apps": {
"get": {
"summary": "My Ai Apps",
"description": "The endpoint to paste into an app and their own connections. ``allowed``\nfalse: the owner hasn't switched AI apps on for them.",
"operationId": "my_ai_apps_api_me_ai_apps_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MyAiApps"
}
}
}
}
}
}
},
"/api/me/ai-apps/{gid}": {
"delete": {
"summary": "My Ai App Revoke",
"operationId": "my_ai_app_revoke_api_me_ai_apps__gid__delete",
"parameters": [
{
"name": "gid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Gid"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}/tools": {
"post": {
"summary": "Install Tools",
"description": "*Install* / *Update* / *Install all missing* on the worker page \u2014\nasynchronous: ``toolJobs`` follows the batch on the next probes.",
"operationId": "install_tools_api_workers__worker_id__tools_post",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ToolsBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Worker"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workers/{worker_id}/gh-login": {
"post": {
"summary": "Gh Login Start",
"description": "Start gh's sign-in on the worker: a code to enter at github.com/login/device.",
"operationId": "gh_login_start_api_workers__worker_id__gh_login_post",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GhLogin"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"get": {
"summary": "Gh Login State",
"description": "``state``: pending (the code is still waiting) | complete | failed | none.",
"operationId": "gh_login_state_api_workers__worker_id__gh_login_get",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GhLogin"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Gh Login Cancel",
"operationId": "gh_login_cancel_api_workers__worker_id__gh_login_delete",
"parameters": [
{
"name": "worker_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Worker Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tag-meta": {
"get": {
"summary": "Tag Meta Get",
"operationId": "tag_meta_get_api_tag_meta_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TagMetaSnapshot"
}
}
}
}
}
}
},
"/api/tag-meta/tag": {
"patch": {
"summary": "Tag Meta Patch",
"operationId": "tag_meta_patch_api_tag_meta_tag_patch",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TagPatchBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TagMetaEntryResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Tag Meta Reset",
"operationId": "tag_meta_reset_api_tag_meta_tag_delete",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tag-meta/icons": {
"post": {
"summary": "Tag Icon Add",
"description": "Store an icon (an identical one is reused) and say which colour a tag\nwearing it would take (``color``: its most used saturated colour, or null).",
"operationId": "tag_icon_add_api_tag_meta_icons_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IconBody"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TagIconResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tag-meta/icons/{icon_id}": {
"patch": {
"summary": "Tag Icon Patch",
"operationId": "tag_icon_patch_api_tag_meta_icons__icon_id__patch",
"parameters": [
{
"name": "icon_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Icon Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IconPatchBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TagIconResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Tag Icon Delete",
"operationId": "tag_icon_delete_api_tag_meta_icons__icon_id__delete",
"parameters": [
{
"name": "icon_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Icon Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/drafts": {
"get": {
"summary": "List Drafts",
"operationId": "list_drafts_api_drafts_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DraftsResponse"
}
}
}
}
}
}
},
"/api/drafts/{key}": {
"get": {
"summary": "Get Draft",
"operationId": "get_draft_api_drafts__key__get",
"parameters": [
{
"name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Key"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DraftRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"summary": "Put Draft",
"operationId": "put_draft_api_drafts__key__put",
"parameters": [
{
"name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Key"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DraftBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DraftRecord"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Delete Draft",
"operationId": "delete_draft_api_drafts__key__delete",
"parameters": [
{
"name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Key"
}
},
{
"name": "device",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Device"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OkResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/events": {
"get": {
"summary": "Events",
"description": "Server-Sent Events: ``meta`` / ``transcript`` change pings for the UI.\n\nEvery event carries an ``id``; a reconnect with ``Last-Event-ID`` gets the\nevents published since (the hub keeps a ring of recent ones). When that id\nis unknown \u2014 too old, or from a previous backend process \u2014 the stream\nopens with a ``resync`` event, and the client refetches instead.",
"operationId": "events_api_events_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/gen-progress": {
"get": {
"summary": "Gen Progress",
"description": "Every live local-model run's llm-server reading (``runs/genprogress.py``),\nthe conversations the caller can see only. The ``gen-progress`` SSE event\ncarries the same map whenever it moves.",
"operationId": "gen_progress_api_gen_progress_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GenProgressSnapshot"
}
}
}
}
}
}
},
"/api/health": {
"get": {
"summary": "Health",
"operationId": "health_api_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/share": {
"post": {
"summary": "Share",
"operationId": "share_share_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/{full_path}": {
"get": {
"summary": "Spa",
"operationId": "spa__full_path__get",
"parameters": [
{
"name": "full_path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Full Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Account": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"label": {
"type": "string",
"title": "Label"
},
"description": {
"type": "string",
"title": "Description"
},
"color": {
"type": "string",
"title": "Color"
},
"harness": {
"type": "string",
"title": "Harness",
"default": "claude"
},
"provider": {
"type": "string",
"title": "Provider",
"default": "anthropic"
},
"keyless": {
"type": "boolean",
"title": "Keyless",
"default": false
},
"planWindows": {
"items": {
"type": "string"
},
"type": "array",
"title": "Planwindows",
"default": []
},
"planLabel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Planlabel"
},
"planTier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Plantier"
},
"excludeFromTotals": {
"type": "boolean",
"title": "Excludefromtotals"
},
"default": {
"type": "boolean",
"title": "Default"
},
"status": {
"anyOf": [
{
"$ref": "#/components/schemas/AccountStatus"
},
{
"type": "null"
}
]
},
"runner": {
"anyOf": [
{
"$ref": "#/components/schemas/AccountRunner"
},
{
"type": "null"
}
]
},
"hosts": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/AccountHost"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Hosts"
}
},
"type": "object",
"required": [
"id",
"label",
"description",
"color",
"excludeFromTotals",
"default"
],
"title": "Account",
"description": "An account a session can run on (backend/accounts \u2014 hard-coded;\nSettings only owns its plan/price presentation): a Claude login, a\nChatGPT one the opencode harness runs on, or a Google one agy runs on."
},
"AccountCheckResult": {
"properties": {
"ok": {
"type": "boolean",
"title": "Ok"
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
},
"health": {
"$ref": "#/components/schemas/AccountHealth"
}
},
"type": "object",
"required": [
"ok",
"health"
],
"title": "AccountCheckResult",
"description": "*Check again*: the probe's verdict and the account's health after it."
},
"AccountHealth": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"status": {
"type": "string",
"enum": [
"ok",
"signed_out",
"unknown"
],
"title": "Status"
},
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"expired",
"logged_out"
]
},
{
"type": "null"
}
],
"title": "Reason"
},
"since": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Since"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
},
"failedRuns": {
"type": "integer",
"title": "Failedruns",
"default": 0
},
"conversations": {
"items": {
"$ref": "#/components/schemas/AccountHealthConversation"
},
"type": "array",
"title": "Conversations",
"default": []
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"subscriptionType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subscriptiontype"
},
"refreshExpiresAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Refreshexpiresat"
},
"pendingLogin": {
"type": "boolean",
"title": "Pendinglogin",
"default": false
},
"limited": {
"type": "boolean",
"title": "Limited",
"default": false
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"checkedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Checkedat"
},
"hosts": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/AccountHost"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Hosts"
}
},
"type": "object",
"required": [
"id",
"status"
],
"title": "AccountHealth",
"description": "Can the account run a prompt right now (accounts/health.py)? ``status``\n``signed_out`` locks the composers that would bill it; ``reason``\n``expired`` = runs fail on a dead OAuth session, ``logged_out`` = the CLI\nhas no login at all."
},
"AccountHealthConversation": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Owner"
}
},
"type": "object",
"required": [
"sessionId"
],
"title": "AccountHealthConversation",
"description": "A conversation whose run failed on the signed-out account."
},
"AccountHost": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"online": {
"type": "boolean",
"title": "Online",
"default": true
},
"loggedIn": {
"type": "boolean",
"title": "Loggedin",
"default": false
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"pendingLogin": {
"anyOf": [
{
"$ref": "#/components/schemas/PendingLogin"
},
{
"type": "null"
}
]
},
"credentialsAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Credentialsat"
}
},
"type": "object",
"required": [
"id",
"name"
],
"title": "AccountHost",
"description": "One machine's own login of an account several machines declare (agy:\nthe lab and the personal Mac each sign the same Google account in) \u2014\n``id`` \"local\" = the lab, else the worker id; pass it as ``?worker=`` to\nthe login / logout routes."
},
"AccountLimits": {
"properties": {
"account": {
"type": "string",
"title": "Account"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"weekTarget": {
"anyOf": [
{
"$ref": "#/components/schemas/WeekTarget"
},
{
"type": "null"
}
]
},
"windows": {
"additionalProperties": {
"$ref": "#/components/schemas/LimitWindow"
},
"type": "object",
"title": "Windows",
"default": {}
},
"updatedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"stale": {
"type": "boolean",
"title": "Stale",
"default": true
},
"calibration": {
"anyOf": [
{
"$ref": "#/components/schemas/Calibration"
},
{
"type": "null"
}
]
},
"plan": {
"anyOf": [
{
"$ref": "#/components/schemas/PlanSegment"
},
{
"type": "null"
}
]
},
"billing": {
"anyOf": [
{
"$ref": "#/components/schemas/Billing"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"account"
],
"title": "AccountLimits"
},
"AccountLoginBody": {
"properties": {
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
}
},
"type": "object",
"title": "AccountLoginBody"
},
"AccountLoginCodeBody": {
"properties": {
"code": {
"type": "string",
"title": "Code"
}
},
"type": "object",
"required": [
"code"
],
"title": "AccountLoginCodeBody"
},
"AccountRunner": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
}
},
"type": "object",
"title": "AccountRunner"
},
"AccountSplit": {
"properties": {
"cost": {
"type": "number",
"title": "Cost",
"default": 0.0
},
"tokens": {
"type": "integer",
"title": "Tokens",
"default": 0
},
"conversations": {
"type": "integer",
"title": "Conversations",
"default": 0
}
},
"type": "object",
"title": "AccountSplit",
"description": "One account's share of an aggregate (the ``byAccount`` maps)."
},
"AccountStatus": {
"properties": {
"configured": {
"type": "boolean",
"title": "Configured"
},
"loggedIn": {
"type": "boolean",
"title": "Loggedin"
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"orgName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Orgname"
},
"subscriptionType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subscriptiontype"
},
"authMethod": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authmethod"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"pendingLogin": {
"anyOf": [
{
"$ref": "#/components/schemas/PendingLogin"
},
{
"type": "null"
}
]
},
"usageTracking": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Usagetracking"
},
"usage": {
"anyOf": [
{
"$ref": "#/components/schemas/UsageRead"
},
{
"type": "null"
}
]
},
"credentialsAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Credentialsat"
}
},
"type": "object",
"required": [
"configured",
"loggedIn"
],
"title": "AccountStatus",
"description": "An account's live login, from ``claude auth status`` under its config\ndir (via the sidecar). ``configured`` False \u21d2 the sidecar doesn't declare\nthe account (or couldn't be reached \u2014 then ``error`` says so)."
},
"AccountsHealthResponse": {
"properties": {
"accounts": {
"items": {
"$ref": "#/components/schemas/AccountHealth"
},
"type": "array",
"title": "Accounts"
},
"workers": {
"items": {
"$ref": "#/components/schemas/WorkerLoginHealth"
},
"type": "array",
"title": "Workers",
"default": []
}
},
"type": "object",
"required": [
"accounts"
],
"title": "AccountsHealthResponse"
},
"AccountsResponse": {
"properties": {
"accounts": {
"items": {
"$ref": "#/components/schemas/Account"
},
"type": "array",
"title": "Accounts"
},
"default": {
"type": "string",
"title": "Default"
}
},
"type": "object",
"required": [
"accounts",
"default"
],
"title": "AccountsResponse"
},
"AgentCronJob": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"schedule": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Schedule"
},
"enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Enabled"
},
"nextRun": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Nextrun"
},
"lastStatus": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Laststatus"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
}
},
"type": "object",
"required": [
"id"
],
"title": "AgentCronJob",
"description": "The cron job scheduled on an agent's definition file \u2014 the cron-jobs\nplugin's (``plugins/cron_bridge.py`` ``index``)."
},
"AgentDay": {
"properties": {
"date": {
"type": "string",
"title": "Date"
},
"runs": {
"type": "integer",
"title": "Runs"
},
"cost": {
"type": "number",
"title": "Cost"
}
},
"type": "object",
"required": [
"date",
"runs",
"cost"
],
"title": "AgentDay",
"description": "One day of the detail page's run sparkline."
},
"AgentDetail": {
"properties": {
"agent": {
"$ref": "#/components/schemas/AgentSummary"
},
"content": {
"type": "string",
"title": "Content"
},
"runs": {
"items": {
"$ref": "#/components/schemas/AgentRun"
},
"type": "array",
"title": "Runs"
},
"daily": {
"items": {
"$ref": "#/components/schemas/AgentDay"
},
"type": "array",
"title": "Daily"
},
"cron": {
"anyOf": [
{
"$ref": "#/components/schemas/AgentCronJob"
},
{
"type": "null"
}
]
},
"canSchedule": {
"type": "boolean",
"title": "Canschedule"
}
},
"type": "object",
"required": [
"agent",
"content",
"runs",
"daily",
"canSchedule"
],
"title": "AgentDetail"
},
"AgentRun": {
"properties": {
"agent": {
"type": "string",
"title": "Agent"
},
"origin": {
"type": "string",
"title": "Origin"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
},
"cost": {
"type": "number",
"title": "Cost"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"subConversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subconversationid"
}
},
"type": "object",
"required": [
"agent",
"origin",
"cost",
"tokens"
],
"title": "AgentRun",
"description": "One recorded run of an agent."
},
"AgentRunBody": {
"properties": {
"prompt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Prompt"
}
},
"type": "object",
"title": "AgentRunBody"
},
"AgentRunRef": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"required": [
"name"
],
"title": "AgentRunRef",
"description": "The agent definition a conversation was launched from by the agent\npage's \"Run now\" \u2014 the manual sibling of :class:`CronRef`, rendered as a\ntag linking back to ``/agents/<name>``."
},
"AgentSummary": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"title": {
"type": "string",
"title": "Title"
},
"description": {
"type": "string",
"title": "Description"
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Path"
},
"dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Dir"
},
"source": {
"type": "string",
"title": "Source"
},
"sourceKind": {
"type": "string",
"title": "Sourcekind"
},
"tools": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tools"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"updatedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"effort": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Effort"
},
"thinking": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Thinking"
},
"runs": {
"type": "integer",
"title": "Runs"
},
"taskRuns": {
"type": "integer",
"title": "Taskruns"
},
"sessionRuns": {
"type": "integer",
"title": "Sessionruns"
},
"lastRun": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastrun"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"cost": {
"type": "number",
"title": "Cost"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"avgCost": {
"type": "number",
"title": "Avgcost"
},
"contextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Contexttokens"
},
"contextCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Contextcost"
}
},
"type": "object",
"required": [
"name",
"title",
"description",
"source",
"sourceKind",
"tools",
"bytes",
"runs",
"taskRuns",
"sessionRuns",
"conversations",
"cost",
"tokens",
"avgCost"
],
"title": "AgentSummary",
"description": "One agent card: the definition on disk + what its runs actually cost.\n\nThe skills catalog can only *estimate* spend (context size \u00d7 invocations);\nan agent run is a whole conversation, so `cost`/`tokens` here are measured."
},
"AgentsResponse": {
"properties": {
"agents": {
"items": {
"$ref": "#/components/schemas/AgentSummary"
},
"type": "array",
"title": "Agents"
},
"totals": {
"$ref": "#/components/schemas/AgentsTotals"
}
},
"type": "object",
"required": [
"agents",
"totals"
],
"title": "AgentsResponse"
},
"AgentsTotals": {
"properties": {
"agents": {
"type": "integer",
"title": "Agents"
},
"used": {
"type": "integer",
"title": "Used"
},
"runs": {
"type": "integer",
"title": "Runs"
},
"cost": {
"type": "number",
"title": "Cost"
},
"tokens": {
"type": "integer",
"title": "Tokens"
}
},
"type": "object",
"required": [
"agents",
"used",
"runs",
"cost",
"tokens"
],
"title": "AgentsTotals"
},
"AnimationCurve": {
"properties": {
"points": {
"items": {
"$ref": "#/components/schemas/CurvePoint"
},
"type": "array",
"title": "Points"
},
"easings": {
"items": {
"items": {
"type": "number"
},
"type": "array"
},
"type": "array",
"title": "Easings"
}
},
"type": "object",
"required": [
"points",
"easings"
],
"title": "AnimationCurve",
"description": "``@gabvdl/ui``'s ``AnimationCurve``: keyframes joined by cubic-b\u00e9zier\nsegments (``easings[i]`` = the CSS ``cubic-bezier(x1, y1, x2, y2)`` from\n``points[i]`` to ``points[i + 1]``)."
},
"AppLaunchModal": {
"properties": {
"pluginId": {
"type": "string",
"title": "Pluginid"
},
"slotId": {
"type": "string",
"title": "Slotid"
},
"init": {
"additionalProperties": true,
"type": "object",
"title": "Init",
"default": {}
},
"closeAction": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Closeaction"
}
},
"type": "object",
"required": [
"pluginId",
"slotId"
],
"title": "AppLaunchModal",
"description": "One of a plugin's ``app.modal`` slots to open now (plugins/launch.py)."
},
"AppLaunchResponse": {
"properties": {
"open": {
"items": {
"$ref": "#/components/schemas/AppLaunchModal"
},
"type": "array",
"title": "Open",
"default": []
}
},
"type": "object",
"title": "AppLaunchResponse"
},
"ArchiveOldBody": {
"properties": {
"keep": {
"items": {
"type": "string"
},
"type": "array",
"title": "Keep",
"default": []
}
},
"type": "object",
"title": "ArchiveOldBody"
},
"ArchiveOldResult": {
"properties": {
"archived": {
"type": "integer",
"title": "Archived"
},
"cutoff": {
"type": "string",
"title": "Cutoff"
}
},
"type": "object",
"required": [
"archived",
"cutoff"
],
"title": "ArchiveOldResult"
},
"ArtefactItem": {
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"slug": {
"type": "string",
"title": "Slug"
},
"name": {
"type": "string",
"title": "Name"
},
"date": {
"type": "string",
"title": "Date"
},
"path": {
"type": "string",
"title": "Path"
},
"url": {
"type": "string",
"title": "Url"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"mtime": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Mtime"
},
"video": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Video"
}
},
"type": "object",
"required": [
"kind",
"slug",
"name",
"date",
"path",
"url",
"bytes"
],
"title": "ArtefactItem",
"description": "One generated artefact (screenshot, render, export) found under a\nproject/service's ``.ai/artefacts/<date>/<sessionId>/`` folder."
},
"AskAnswerBody": {
"properties": {
"index": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Index"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
}
},
"type": "object",
"title": "AskAnswerBody"
},
"AskBody": {
"properties": {
"question": {
"type": "string",
"title": "Question"
},
"options": {
"items": {
"type": "string"
},
"type": "array",
"title": "Options"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Type"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Image"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Icon"
},
"color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Color"
},
"timeoutSecs": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Timeoutsecs"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id"
}
},
"type": "object",
"required": [
"question",
"options"
],
"title": "AskBody"
},
"AskFormEventBody": {
"properties": {
"event": {
"type": "string",
"title": "Event"
},
"form": {
"additionalProperties": true,
"type": "object",
"title": "Form"
},
"machine": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Machine"
}
},
"type": "object",
"required": [
"event",
"form"
],
"title": "AskFormEventBody"
},
"AskFormRecord": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"machine": {
"type": "string",
"title": "Machine"
},
"title": {
"type": "string",
"title": "Title"
},
"status": {
"type": "string",
"title": "Status"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"createdAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"expiresAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expiresat"
},
"closedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Closedat"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"publicUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Publicurl"
},
"embedOrigins": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Embedorigins"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"forYou": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Foryou"
},
"multi": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Multi"
},
"maxAnswers": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Maxanswers"
},
"hideCount": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Hidecount"
},
"answerCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Answercount"
},
"answers": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Answers"
},
"reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reason"
},
"reasonFiles": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Reasonfiles"
},
"responses": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Responses"
},
"fields": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Fields"
},
"fieldCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Fieldcount"
},
"pushed": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Pushed"
},
"seenAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Seenat"
},
"warning": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Warning"
}
},
"type": "object",
"required": [
"id",
"machine",
"title",
"status"
],
"title": "AskFormRecord",
"description": "One form of the standalone ask-form tool, as the hub mirrors it. Ids\nare ask-form's (``<kebab-title>_<6 chars>``); ``status`` is one of\n``pending | submitted | declined | revoked | expired | closed``."
},
"AskFormsResponse": {
"properties": {
"forms": {
"items": {
"$ref": "#/components/schemas/AskFormRecord"
},
"type": "array",
"title": "Forms"
},
"count": {
"type": "integer",
"title": "Count"
}
},
"type": "object",
"required": [
"forms",
"count"
],
"title": "AskFormsResponse"
},
"AskRecord": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"kind": {
"type": "string",
"const": "ask",
"title": "Kind"
},
"title": {
"type": "string",
"title": "Title"
},
"body": {
"type": "string",
"title": "Body"
},
"type": {
"type": "string",
"title": "Type"
},
"url": {
"type": "string",
"title": "Url"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Image"
},
"at": {
"type": "string",
"title": "At"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"delivered": {
"items": {
"$ref": "#/components/schemas/DeliveryStatus"
},
"type": "array",
"title": "Delivered"
},
"options": {
"items": {
"type": "string"
},
"type": "array",
"title": "Options"
},
"status": {
"type": "string",
"enum": [
"pending",
"answered",
"expired"
],
"title": "Status"
},
"answer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Answer"
},
"answerIndex": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Answerindex"
},
"answeredAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Answeredat"
},
"expiresAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expiresat"
}
},
"type": "object",
"required": [
"id",
"kind",
"title",
"body",
"type",
"url",
"at",
"sessionId",
"delivered",
"options",
"status"
],
"title": "AskRecord",
"description": "An ask (choice question) with its lifecycle state."
},
"AssertionBody": {
"properties": {
"ticket": {
"type": "string",
"maxLength": 64,
"title": "Ticket"
},
"id": {
"type": "string",
"maxLength": 2048,
"title": "Id"
},
"clientDataJSON": {
"type": "string",
"maxLength": 8192,
"title": "Clientdatajson"
},
"authenticatorData": {
"type": "string",
"maxLength": 8192,
"title": "Authenticatordata"
},
"signature": {
"type": "string",
"maxLength": 2048,
"title": "Signature"
},
"userHandle": {
"anyOf": [
{
"type": "string",
"maxLength": 256
},
{
"type": "null"
}
],
"title": "Userhandle"
}
},
"type": "object",
"required": [
"ticket",
"id",
"clientDataJSON",
"authenticatorData",
"signature"
],
"title": "AssertionBody"
},
"AttestationBody": {
"properties": {
"ticket": {
"type": "string",
"maxLength": 64,
"title": "Ticket"
},
"invite": {
"type": "string",
"maxLength": 128,
"title": "Invite"
},
"id": {
"type": "string",
"maxLength": 2048,
"title": "Id"
},
"clientDataJSON": {
"type": "string",
"maxLength": 8192,
"title": "Clientdatajson"
},
"attestationObject": {
"type": "string",
"maxLength": 32768,
"title": "Attestationobject"
},
"name": {
"type": "string",
"maxLength": 60,
"title": "Name",
"default": ""
}
},
"type": "object",
"required": [
"ticket",
"invite",
"id",
"clientDataJSON",
"attestationObject"
],
"title": "AttestationBody"
},
"AudienceMember": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
}
},
"type": "object",
"required": [
"id",
"name"
],
"title": "AudienceMember"
},
"AuthMethods": {
"properties": {
"oidc": {
"type": "boolean",
"title": "Oidc"
},
"provider": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Provider"
},
"apps": {
"items": {
"type": "string"
},
"type": "array",
"title": "Apps",
"default": []
},
"passkey": {
"type": "boolean",
"title": "Passkey",
"default": false
},
"locked": {
"type": "boolean",
"title": "Locked",
"default": false
}
},
"type": "object",
"required": [
"oidc"
],
"title": "AuthMethods",
"description": "How the login page signs a guest in: through the identity provider\n(its button, ``provider``), or with a mailed link and code."
},
"AutoArchiveBody": {
"properties": {
"backfill": {
"type": "boolean",
"title": "Backfill",
"default": false
},
"dryRun": {
"type": "boolean",
"title": "Dryrun",
"default": false
}
},
"type": "object",
"title": "AutoArchiveBody"
},
"AutoArchiveItem": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id"
},
"kind": {
"type": "string",
"enum": [
"cron",
"test"
],
"title": "Kind"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
}
},
"type": "object",
"required": [
"sessionId",
"kind"
],
"title": "AutoArchiveItem"
},
"AutoArchiveResult": {
"properties": {
"archived": {
"type": "integer",
"title": "Archived"
},
"items": {
"items": {
"$ref": "#/components/schemas/AutoArchiveItem"
},
"type": "array",
"title": "Items"
}
},
"type": "object",
"required": [
"archived",
"items"
],
"title": "AutoArchiveResult"
},
"AutoArchived": {
"properties": {
"kind": {
"type": "string",
"enum": [
"cron",
"test"
],
"title": "Kind"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"required": [
"kind"
],
"title": "AutoArchived",
"description": "Why the hub archived a conversation by itself\n(conversations/autoarchive.py): ``cron`` \u2014 a cron run that finished\nsuccessfully; ``test`` \u2014 a conversation started to test something\n(``ai-agent new --test``, or one run from a scratchpad / temp dir)."
},
"BannerStatus": {
"properties": {
"active": {
"type": "boolean",
"title": "Active"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"status": {
"type": "string",
"enum": [
"running",
"done",
"failed",
"info"
],
"title": "Status"
},
"phaseNum": {
"type": "integer",
"title": "Phasenum",
"default": 0
},
"totalPhases": {
"type": "integer",
"title": "Totalphases",
"default": 0
},
"phase": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Phase"
},
"steps": {
"items": {
"$ref": "#/components/schemas/BannerStep"
},
"type": "array",
"title": "Steps",
"default": []
},
"startedAt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"updatedAt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"convTitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Convtitle"
},
"convUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Convurl"
},
"maintenance": {
"type": "boolean",
"title": "Maintenance",
"default": false
}
},
"type": "object",
"required": [
"active",
"status"
],
"title": "BannerStatus",
"description": "The owner's floating status banner, answered by the plugin providing\n``app.banner`` (``plugins/banner.py``), or ``null`` \u2014 e.g. the\n``blue-green-deploy`` plugin's deploy timeline; ``conversationId`` /\n``convTitle`` / ``convUrl`` are resolved by the host from ``sessionId``."
},
"BannerStep": {
"properties": {
"n": {
"type": "integer",
"title": "N"
},
"label": {
"type": "string",
"title": "Label"
},
"state": {
"type": "string",
"enum": [
"pending",
"active",
"done",
"failed"
],
"title": "State"
}
},
"type": "object",
"required": [
"n",
"label",
"state"
],
"title": "BannerStep"
},
"BashDiff": {
"properties": {
"source": {
"type": "string",
"enum": [
"hook",
"claude"
],
"title": "Source"
},
"additions": {
"type": "integer",
"title": "Additions"
},
"deletions": {
"type": "integer",
"title": "Deletions"
},
"fileCount": {
"type": "integer",
"title": "Filecount"
},
"files": {
"items": {
"$ref": "#/components/schemas/FileDiff"
},
"type": "array",
"title": "Files"
},
"paths": {
"items": {
"type": "string"
},
"type": "array",
"title": "Paths",
"default": []
},
"truncated": {
"type": "boolean",
"title": "Truncated"
},
"shared": {
"type": "boolean",
"title": "Shared"
},
"ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Ms"
}
},
"type": "object",
"required": [
"source",
"additions",
"deletions",
"fileCount",
"files",
"truncated",
"shared"
],
"title": "BashDiff",
"description": "What a Bash call changed on disk (``conversations/bashdiff.py``)."
},
"Billing": {
"properties": {
"subscriptionStartedAt": {
"type": "number",
"title": "Subscriptionstartedat"
},
"periodStart": {
"type": "number",
"title": "Periodstart"
},
"previousPeriodStart": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Previousperiodstart"
},
"nextBillingAt": {
"type": "number",
"title": "Nextbillingat"
},
"estimated": {
"type": "boolean",
"title": "Estimated",
"default": true
},
"weeks": {
"items": {
"$ref": "#/components/schemas/BillingWeek"
},
"type": "array",
"title": "Weeks",
"default": []
}
},
"type": "object",
"required": [
"subscriptionStartedAt",
"periodStart",
"nextBillingAt"
],
"title": "Billing",
"description": "A paid plan's billing cycle (usage/billing.py). The dates are an\nestimate: a monthly renewal on the day the subscription started."
},
"BillingWeek": {
"properties": {
"resetsAt": {
"type": "number",
"title": "Resetsat"
},
"peak": {
"type": "number",
"title": "Peak"
},
"current": {
"type": "boolean",
"title": "Current",
"default": false
},
"inCycle": {
"type": "boolean",
"title": "Incycle",
"default": true
}
},
"type": "object",
"required": [
"resetsAt",
"peak"
],
"title": "BillingWeek",
"description": "One weekly window of the billing cycle and the highest % it reached."
},
"Body_upload_files_api_upload_post": {
"properties": {
"files": {
"items": {
"type": "string",
"contentMediaType": "application/octet-stream"
},
"type": "array",
"title": "Files"
}
},
"type": "object",
"required": [
"files"
],
"title": "Body_upload_files_api_upload_post"
},
"BudgetAmount": {
"properties": {
"pct": {
"type": "number",
"title": "Pct"
},
"units": {
"type": "number",
"title": "Units"
},
"usd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Usd"
}
},
"type": "object",
"required": [
"pct",
"units"
],
"title": "BudgetAmount",
"description": "A share of the week: %, plan units, list $ (None without a $ rate)."
},
"BudgetFamily": {
"properties": {
"tokensPerPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Tokensperpct"
},
"freeTokens": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Freetokens"
},
"unitsPerHour": {
"type": "number",
"title": "Unitsperhour"
},
"rateRuns": {
"type": "integer",
"title": "Rateruns",
"default": 0
},
"streams": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Streams"
}
},
"type": "object",
"required": [
"unitsPerHour"
],
"title": "BudgetFamily",
"description": "What the free part buys in one model family (fable/opus/sonnet/haiku)."
},
"BudgetItem": {
"properties": {
"kind": {
"type": "string",
"enum": [
"cron",
"scheduled"
],
"title": "Kind"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"runs": {
"type": "integer",
"title": "Runs"
},
"next": {
"type": "number",
"title": "Next"
},
"unitsPerRun": {
"type": "number",
"title": "Unitsperrun"
},
"sampled": {
"type": "integer",
"title": "Sampled",
"default": 0
},
"units": {
"type": "number",
"title": "Units"
}
},
"type": "object",
"required": [
"kind",
"name",
"runs",
"next",
"unitsPerRun",
"units"
],
"title": "BudgetItem",
"description": "Spend already due before the reset: an enabled cron job's firings\n(priced at the median of its last runs) or a scheduled conversation."
},
"BudgetPace": {
"properties": {
"last6h": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Last6H"
},
"last24h": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Last24H"
},
"projected": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Projected"
},
"needed": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Needed"
}
},
"type": "object",
"title": "BudgetPace",
"description": "% of the week per hour: observed (None after a reset or without an old\nenough reading), the % it reaches at the reset at that pace, and the pace\nthat would use every free % by then."
},
"BudgetRate": {
"properties": {
"unitsPerPct": {
"type": "number",
"title": "Unitsperpct"
},
"usdPerPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Usdperpct"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source"
},
"trusted": {
"type": "boolean",
"title": "Trusted",
"default": false
}
},
"type": "object",
"required": [
"unitsPerPct"
],
"title": "BudgetRate"
},
"BudgetUpcoming": {
"properties": {
"pct": {
"type": "number",
"title": "Pct"
},
"units": {
"type": "number",
"title": "Units"
},
"items": {
"items": {
"$ref": "#/components/schemas/BudgetItem"
},
"type": "array",
"title": "Items",
"default": []
}
},
"type": "object",
"required": [
"pct",
"units"
],
"title": "BudgetUpcoming"
},
"BurnRate": {
"properties": {
"account": {
"type": "string",
"title": "Account"
},
"windowMinutes": {
"type": "integer",
"title": "Windowminutes",
"default": 60
},
"usdPerHour": {
"type": "number",
"title": "Usdperhour",
"default": 0.0
},
"unitsPerHour": {
"type": "number",
"title": "Unitsperhour",
"default": 0.0
},
"pctPerHour": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Pctperhour"
},
"goal": {
"type": "number",
"title": "Goal",
"default": 100.0
},
"pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Pct"
},
"resetsAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Resetsat"
},
"hoursLeft": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Hoursleft"
},
"neededPctPerHour": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Neededpctperhour"
},
"neededUsdPerHour": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Neededusdperhour"
},
"projected": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Projected"
},
"stale": {
"type": "boolean",
"title": "Stale",
"default": true
},
"at": {
"type": "number",
"title": "At",
"default": 0.0
}
},
"type": "object",
"required": [
"account"
],
"title": "BurnRate",
"description": "One account's burn rate (usage/burn.py): the last ``windowMinutes`` of\nspend per hour against the pace that reaches ``goal`` % at the reset."
},
"CalibrateBody": {
"properties": {
"backfill": {
"type": "boolean",
"title": "Backfill",
"default": false
}
},
"type": "object",
"title": "CalibrateBody"
},
"CalibrateResult": {
"properties": {
"calibrations": {
"additionalProperties": {
"$ref": "#/components/schemas/Calibration"
},
"type": "object",
"title": "Calibrations"
},
"shifted": {
"items": {
"type": "string"
},
"type": "array",
"title": "Shifted",
"default": []
}
},
"type": "object",
"required": [
"calibrations"
],
"title": "CalibrateResult"
},
"Calibration": {
"properties": {
"account": {
"type": "string",
"title": "Account"
},
"fittedAt": {
"type": "number",
"title": "Fittedat"
},
"days": {
"type": "integer",
"title": "Days"
},
"source": {
"type": "string",
"enum": [
"fit",
"default",
"carried",
"scaled"
],
"title": "Source"
},
"trusted": {
"type": "boolean",
"title": "Trusted",
"default": false
},
"week": {
"$ref": "#/components/schemas/WindowFit"
},
"h5": {
"anyOf": [
{
"$ref": "#/components/schemas/WindowFit"
},
{
"type": "null"
}
]
},
"plan": {
"anyOf": [
{
"$ref": "#/components/schemas/PlanSegment"
},
{
"type": "null"
}
]
},
"scale": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Scale"
},
"basedOn": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Basedon"
}
},
"type": "object",
"required": [
"account",
"fittedAt",
"days",
"source",
"week"
],
"title": "Calibration"
},
"ClaudeBillBody": {
"properties": {
"bill": {
"type": "string",
"title": "Bill"
}
},
"type": "object",
"required": [
"bill"
],
"title": "ClaudeBillBody"
},
"ClaudeHookEntry": {
"properties": {
"event": {
"type": "string",
"title": "Event"
},
"matcher": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Matcher"
},
"type": {
"type": "string",
"title": "Type",
"default": "command"
},
"command": {
"type": "string",
"title": "Command"
}
},
"type": "object",
"required": [
"event",
"command"
],
"title": "ClaudeHookEntry",
"description": "One native Claude Code hook from the workspace's .claude/settings.json,\nflattened to a single command."
},
"ClaudeHooksResponse": {
"properties": {
"path": {
"type": "string",
"title": "Path"
},
"exists": {
"type": "boolean",
"title": "Exists"
},
"entries": {
"items": {
"$ref": "#/components/schemas/ClaudeHookEntry"
},
"type": "array",
"title": "Entries"
}
},
"type": "object",
"required": [
"path",
"exists",
"entries"
],
"title": "ClaudeHooksResponse",
"description": "The repo's native hooks \u2014 read-only: editing .claude/settings.json from\nthe container would be host-level code execution."
},
"ClaudeLoginBody": {
"properties": {
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
}
},
"type": "object",
"title": "ClaudeLoginBody"
},
"ClaudeLoginCodeBody": {
"properties": {
"code": {
"type": "string",
"title": "Code"
}
},
"type": "object",
"required": [
"code"
],
"title": "ClaudeLoginCodeBody"
},
"ClosingNotify": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Type"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Image"
},
"spoken": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spoken"
}
},
"type": "object",
"title": "ClosingNotify",
"description": "The ```notify block a run ended its final message on (the push the hub\nsent for it)."
},
"CodeModeRunner": {
"properties": {
"ok": {
"type": "boolean",
"title": "Ok"
},
"cli": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cli"
},
"reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reason"
}
},
"type": "object",
"required": [
"ok"
],
"title": "CodeModeRunner",
"description": "Can a run on this runner start in Claude Code's Code Mode (runs/codemode.py)."
},
"CodeModeStatus": {
"properties": {
"allowed": {
"type": "boolean",
"title": "Allowed"
},
"runners": {
"additionalProperties": {
"$ref": "#/components/schemas/CodeModeRunner"
},
"type": "object",
"title": "Runners"
}
},
"type": "object",
"required": [
"allowed",
"runners"
],
"title": "CodeModeStatus",
"description": "``GET /api/code-mode`` \u2014 the composer's *Code \u03b2* chip."
},
"CommitFileStat": {
"properties": {
"path": {
"type": "string",
"title": "Path"
},
"status": {
"type": "string",
"enum": [
"added",
"deleted",
"modified",
"renamed"
],
"title": "Status"
},
"additions": {
"type": "integer",
"title": "Additions"
},
"deletions": {
"type": "integer",
"title": "Deletions"
},
"binary": {
"type": "boolean",
"title": "Binary",
"default": false
}
},
"type": "object",
"required": [
"path",
"status",
"additions",
"deletions"
],
"title": "CommitFileStat"
},
"CommitRef": {
"properties": {
"sha": {
"type": "string",
"title": "Sha"
},
"short": {
"type": "string",
"title": "Short"
},
"date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Date"
},
"author": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Author"
},
"subject": {
"type": "string",
"title": "Subject"
},
"additions": {
"type": "integer",
"title": "Additions"
},
"deletions": {
"type": "integer",
"title": "Deletions"
},
"files": {
"type": "integer",
"title": "Files"
},
"repo": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Repo"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"hook",
"output",
"window"
]
},
{
"type": "null"
}
],
"title": "Source"
},
"branch": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Branch"
},
"parents": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Parents"
},
"merge": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Merge"
},
"pushed": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Pushed"
},
"root": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Root"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
},
"toolUseId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tooluseid"
},
"truncated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Truncated"
},
"shared": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Shared"
},
"fileStats": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/CommitFileStat"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Filestats"
}
},
"type": "object",
"required": [
"sha",
"short",
"subject",
"additions",
"deletions",
"files"
],
"title": "CommitRef"
},
"CompactInfo": {
"properties": {
"trigger": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Trigger"
},
"preTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Pretokens"
},
"postTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Posttokens"
},
"durationMs": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Durationms"
},
"saved": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Saved"
}
},
"type": "object",
"title": "CompactInfo",
"description": "A compaction's ``compact_boundary``: what triggered it (\"manual\" \u2014 a\n`/compact`, the fresh-context nudge's too \u2014 or \"auto\" at the context\nlimit) and the context it left (``preTokens`` \u2192 ``postTokens``, messages\nonly; the injected context comes on top)."
},
"Computer": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"hostname": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Hostname"
},
"platform": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Platform"
},
"machine": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Machine"
},
"status": {
"type": "string",
"title": "Status",
"default": "unknown"
},
"lastSeen": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastseen"
},
"running": {
"type": "integer",
"title": "Running",
"default": 0
},
"pairedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pairedat"
},
"enrolledAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Enrolledat"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"lastError": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lasterror"
},
"spentUsd": {
"type": "number",
"title": "Spentusd",
"default": 0
},
"paused": {
"type": "boolean",
"title": "Paused",
"default": false
},
"mirroredMb": {
"type": "number",
"title": "Mirroredmb",
"default": 0
},
"launcher": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Launcher"
},
"syncedSessions": {
"type": "integer",
"title": "Syncedsessions",
"default": 0
},
"ownClaude": {
"anyOf": [
{
"$ref": "#/components/schemas/ComputerOwnClaude"
},
{
"type": "null"
}
]
},
"tools": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/WorkerTool"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Tools"
},
"toolsCheckedAt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Toolscheckedat"
},
"toolInstall": {
"anyOf": [
{
"$ref": "#/components/schemas/WorkerToolInstall"
},
{
"type": "null"
}
]
},
"toolJobs": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/WorkerToolJob"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Tooljobs"
}
},
"type": "object",
"required": [
"id"
],
"title": "Computer",
"description": "A guest's own computer, paired as a worker (users/computers.py)."
},
"ComputerEnroll": {
"properties": {
"code": {
"type": "string",
"title": "Code"
},
"expiresAt": {
"type": "integer",
"title": "Expiresat"
},
"command": {
"type": "string",
"title": "Command"
}
},
"type": "object",
"required": [
"code",
"expiresAt",
"command"
],
"title": "ComputerEnroll",
"description": "``POST /api/me/computers`` \u2014 the one-time code and the line to run."
},
"ComputerLimits": {
"properties": {
"fiveHourPct": {
"type": "integer",
"title": "Fivehourpct",
"default": 80
},
"sevenDayPct": {
"type": "integer",
"title": "Sevendaypct",
"default": 85
},
"inFlight": {
"type": "integer",
"title": "Inflight",
"default": 10
},
"perMinute": {
"type": "integer",
"title": "Perminute",
"default": 60
},
"rotateDays": {
"type": "integer",
"title": "Rotatedays",
"default": 7
},
"mirrorMb": {
"type": "integer",
"title": "Mirrormb",
"default": 500
}
},
"type": "object",
"title": "ComputerLimits",
"description": "What the Claude proxy holds every guest's computers to: the owner's\nplan utilization past which their calls wait, and the calls one computer\nmay have in flight (claudeproxy/limits.py)."
},
"ComputerOwnClaude": {
"properties": {
"signedIn": {
"type": "boolean",
"title": "Signedin",
"default": false
},
"subscriptionType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subscriptiontype"
},
"usable": {
"type": "boolean",
"title": "Usable",
"default": false
},
"hold": {
"anyOf": [
{
"type": "string",
"enum": [
"limited",
"signed_out"
]
},
{
"type": "null"
}
],
"title": "Hold"
}
},
"type": "object",
"title": "ComputerOwnClaude",
"description": "A guest computer's own Claude login (its ``/health`` ``ownLogin``)."
},
"ComputerPatch": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"paused": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Paused"
},
"launcher": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Launcher"
}
},
"type": "object",
"title": "ComputerPatch"
},
"ComputerPolicy": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"default": false
},
"max": {
"type": "integer",
"title": "Max",
"default": 3
},
"count": {
"type": "integer",
"title": "Count",
"default": 0
}
},
"type": "object",
"title": "ComputerPolicy"
},
"ComputerToolsBody": {
"properties": {
"tools": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tools"
},
"action": {
"type": "string",
"title": "Action",
"default": "install"
}
},
"type": "object",
"required": [
"tools"
],
"title": "ComputerToolsBody"
},
"ComputersResponse": {
"properties": {
"computers": {
"items": {
"$ref": "#/components/schemas/Computer"
},
"type": "array",
"title": "Computers"
},
"enabled": {
"type": "boolean",
"title": "Enabled"
},
"max": {
"type": "integer",
"title": "Max"
},
"limits": {
"$ref": "#/components/schemas/ComputerLimits"
},
"spentUsd": {
"type": "number",
"title": "Spentusd",
"default": 0
},
"monthUsd": {
"type": "number",
"title": "Monthusd",
"default": 0
},
"budgetUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Budgetusd"
},
"waiting": {
"anyOf": [
{
"$ref": "#/components/schemas/ComputersWaiting"
},
{
"type": "null"
}
]
},
"enrolling": {
"type": "boolean",
"title": "Enrolling",
"default": false
}
},
"type": "object",
"required": [
"computers",
"enabled",
"max",
"limits"
],
"title": "ComputersResponse"
},
"ComputersWaiting": {
"properties": {
"kind": {
"type": "string",
"enum": [
"budget",
"plan"
],
"title": "Kind"
},
"message": {
"type": "string",
"title": "Message"
}
},
"type": "object",
"required": [
"kind",
"message"
],
"title": "ComputersWaiting",
"description": "Why a guest's computers can't call Claude right now."
},
"ConfigBody": {
"properties": {
"runner": {
"type": "string",
"title": "Runner",
"default": "lab"
},
"autoCleanDays": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Autocleandays"
},
"nudgeAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Nudgeat"
}
},
"type": "object",
"title": "ConfigBody"
},
"ConsentAction": {
"properties": {
"action": {
"type": "string",
"title": "Action"
},
"scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scope"
}
},
"type": "object",
"required": [
"action"
],
"title": "ConsentAction"
},
"ConvLook": {
"properties": {
"color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Color"
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subject"
},
"action": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Action"
},
"actionSource": {
"anyOf": [
{
"type": "string",
"enum": [
"set",
"haiku"
]
},
{
"type": "null"
}
],
"title": "Actionsource"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Icon"
},
"linear": {
"anyOf": [
{
"$ref": "#/components/schemas/LinearInfo"
},
{
"type": "null"
}
]
},
"set": {
"items": {
"type": "string"
},
"type": "array",
"title": "Set",
"default": []
}
},
"type": "object",
"title": "ConvLook",
"description": "The colour + action badge a conversation's cards wear\n(``conversations/look.py``): what the session set (``conv look``) over\nwhat derives from its Linear issue and its title."
},
"ConvMeta": {
"properties": {
"state": {
"type": "string",
"title": "State"
},
"tools": {
"anyOf": [
{
"$ref": "#/components/schemas/ConvTools"
},
{
"type": "null"
}
]
},
"held": {
"anyOf": [
{
"$ref": "#/components/schemas/HeldTurn"
},
{
"type": "null"
}
]
},
"taskStops": {
"anyOf": [
{
"additionalProperties": {
"type": "number"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Taskstops"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"titleSource": {
"anyOf": [
{
"type": "string",
"enum": [
"user",
"agent",
"resources"
]
},
{
"type": "null"
}
],
"title": "Titlesource"
},
"resources": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/Resource"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Resources"
},
"resourceTitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Resourcetitle"
},
"look": {
"anyOf": [
{
"$ref": "#/components/schemas/ConvLook"
},
{
"type": "null"
}
]
},
"projects": {
"items": {
"type": "string"
},
"type": "array",
"title": "Projects"
},
"services": {
"items": {
"type": "string"
},
"type": "array",
"title": "Services"
},
"worktrees": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/WorktreeInfo"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Worktrees"
},
"committed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Committed"
},
"pushed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pushed"
},
"merged": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Merged"
},
"deployed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Deployed"
},
"notified": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Notified"
},
"notifications": {
"items": {
"$ref": "#/components/schemas/ConvNotification"
},
"type": "array",
"title": "Notifications"
},
"archived": {
"type": "boolean",
"title": "Archived",
"default": false
},
"autoArchived": {
"anyOf": [
{
"$ref": "#/components/schemas/AutoArchived"
},
{
"type": "null"
}
]
},
"test": {
"type": "boolean",
"title": "Test",
"default": false
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
},
"terminal": {
"anyOf": [
{
"type": "string",
"enum": [
"proxy",
"local"
]
},
{
"type": "null"
}
],
"title": "Terminal"
},
"chrome": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Chrome"
},
"codeMode": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Codemode"
},
"codeModeOff": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Codemodeoff"
},
"thinking": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Thinking"
},
"effort": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Effort"
},
"forkedFrom": {
"anyOf": [
{
"$ref": "#/components/schemas/ForkedFrom"
},
{
"type": "null"
}
]
},
"cronChat": {
"anyOf": [
{
"$ref": "#/components/schemas/CronChatRef"
},
{
"type": "null"
}
]
},
"spawnedBy": {
"anyOf": [
{
"$ref": "#/components/schemas/SpawnedBy"
},
{
"type": "null"
}
]
},
"via": {
"anyOf": [
{
"$ref": "#/components/schemas/ConvVia"
},
{
"type": "null"
}
]
},
"cron": {
"anyOf": [
{
"$ref": "#/components/schemas/CronRef"
},
{
"type": "null"
}
]
},
"scheduled": {
"anyOf": [
{
"$ref": "#/components/schemas/ScheduledRef"
},
{
"type": "null"
}
]
},
"agentRun": {
"anyOf": [
{
"$ref": "#/components/schemas/AgentRunRef"
},
{
"type": "null"
}
]
},
"completedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Completedat"
},
"summary": {
"anyOf": [
{
"$ref": "#/components/schemas/ConvSummary"
},
{
"type": "null"
}
]
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Owner"
},
"participants": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Participants"
},
"scratch": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Scratch"
}
},
"type": "object",
"required": [
"state",
"projects",
"services",
"notifications"
],
"title": "ConvMeta"
},
"ConvNotification": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Body"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Type"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Image"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
},
"spoken": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spoken"
},
"resources": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/Resource"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Resources"
}
},
"type": "object",
"title": "ConvNotification"
},
"ConvSummary": {
"properties": {
"markdown": {
"type": "string",
"title": "Markdown"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"required": [
"markdown"
],
"title": "ConvSummary",
"description": "A conversation's published summary: the filled-in scaffold markdown (see\nscaffold.py) plus when it was published."
},
"ConvTools": {
"properties": {
"usd": {
"type": "number",
"title": "Usd",
"default": 0.0
},
"calls": {
"type": "integer",
"title": "Calls",
"default": 0
},
"tools": {
"additionalProperties": {
"type": "integer"
},
"type": "object",
"title": "Tools",
"default": {}
}
},
"type": "object",
"title": "ConvTools",
"description": "What the lab's paid tools cost a conversation (toolproxy/): Nano Banana\nat Google's price, the lab's own jobs free but counted."
},
"ConvVia": {
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"app": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "App"
},
"connection": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Connection"
}
},
"type": "object",
"required": [
"kind"
],
"title": "ConvVia",
"description": "Which AI app started a conversation through the MCP server."
},
"ConversationCommits": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"commits": {
"items": {
"$ref": "#/components/schemas/CommitRef"
},
"type": "array",
"title": "Commits"
},
"repos": {
"items": {
"type": "string"
},
"type": "array",
"title": "Repos"
},
"filesChanged": {
"type": "integer",
"title": "Fileschanged"
},
"additions": {
"type": "integer",
"title": "Additions"
},
"deletions": {
"type": "integer",
"title": "Deletions"
},
"exact": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Exact"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
}
},
"type": "object",
"required": [
"id",
"commits",
"repos",
"filesChanged",
"additions",
"deletions"
],
"title": "ConversationCommits"
},
"ConversationDetail": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"gitBranch": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Gitbranch"
},
"model": {
"type": "string",
"title": "Model"
},
"models": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Models"
},
"efforts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Efforts"
},
"title": {
"type": "string",
"title": "Title"
},
"userTurns": {
"type": "integer",
"title": "Userturns"
},
"assistantTurns": {
"type": "integer",
"title": "Assistantturns"
},
"messages": {
"type": "integer",
"title": "Messages"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"cost": {
"type": "number",
"title": "Cost"
},
"usage": {
"$ref": "#/components/schemas/Usage"
},
"byTool": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/ToolUsage"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Bytool"
},
"byToolSub": {
"anyOf": [
{
"additionalProperties": {
"additionalProperties": {
"$ref": "#/components/schemas/ToolUsage"
},
"type": "object"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Bytoolsub"
},
"subagentCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Subagentcount"
},
"subagentTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Subagenttokens"
},
"subagentCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Subagentcost"
},
"childCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Childcount"
},
"childCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Childcost"
},
"childRunning": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Childrunning"
},
"planUnits": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Planunits"
},
"subagentPlanUnits": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Subagentplanunits"
},
"planPct": {
"anyOf": [
{
"$ref": "#/components/schemas/PlanPct"
},
{
"type": "null"
}
]
},
"byModel": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/ModelUsage"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Bymodel"
},
"priceBook": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pricebook"
},
"fastCalls": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Fastcalls"
},
"local": {
"anyOf": [
{
"$ref": "#/components/schemas/LocalEnergy"
},
{
"type": "null"
}
]
},
"runningAgents": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/RunningAgent"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Runningagents"
},
"deploying": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Deploying"
},
"stoppedOn": {
"anyOf": [
{
"$ref": "#/components/schemas/StoppedOn"
},
{
"type": "null"
}
]
},
"queued": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/QueuedFollowup"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Queued"
},
"stepSince": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Stepsince"
},
"contextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Contexttokens"
},
"contextModel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Contextmodel"
},
"lastCallAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastcallat"
},
"cacheTtl": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Cachettl"
},
"compactions": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Compactions"
},
"firstContextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Firstcontexttokens"
},
"firstMessageTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Firstmessagetokens"
},
"tasks": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/Task"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tasks"
},
"skillsUsed": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Skillsused"
},
"agentsUsed": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Agentsused"
},
"meta": {
"anyOf": [
{
"$ref": "#/components/schemas/ConvMeta"
},
{
"type": "null"
}
]
},
"thread": {
"items": {
"$ref": "#/components/schemas/ThreadItem"
},
"type": "array",
"title": "Thread"
},
"rev": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Rev"
},
"threadFrom": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Threadfrom"
},
"threadPatch": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/ThreadItem"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Threadpatch"
},
"turns": {
"items": {
"$ref": "#/components/schemas/TurnUsage"
},
"type": "array",
"title": "Turns"
},
"subagents": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/SubagentRef"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Subagents"
},
"parentConversation": {
"anyOf": [
{
"$ref": "#/components/schemas/ParentConvRef"
},
{
"type": "null"
}
]
},
"parentChain": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/ParentConvRef"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Parentchain"
},
"spawnDepth": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Spawndepth"
},
"spawnedByConversation": {
"anyOf": [
{
"$ref": "#/components/schemas/SpawnedConvRef"
},
{
"type": "null"
}
]
},
"spawnedChildren": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/SpawnedConvRef"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Spawnedchildren"
},
"spawnedByChain": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/SpawnedConvRef"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Spawnedbychain"
},
"pluginData": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Plugindata"
},
"shortTitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Shorttitle"
},
"artefacts": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/ArtefactItem"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Artefacts"
},
"continuedIn": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Continuedin"
},
"transcript": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Transcript"
}
},
"type": "object",
"required": [
"id",
"model",
"title",
"userTurns",
"assistantTurns",
"messages",
"tokens",
"cost",
"usage",
"thread",
"turns"
],
"title": "ConversationDetail"
},
"ConversationMetaResponse": {
"properties": {
"meta": {
"additionalProperties": {
"$ref": "#/components/schemas/ConvMeta"
},
"type": "object",
"title": "Meta"
}
},
"type": "object",
"required": [
"meta"
],
"title": "ConversationMetaResponse"
},
"ConversationRefAmbiguous": {
"properties": {
"ref": {
"type": "string",
"title": "Ref"
},
"count": {
"type": "integer",
"title": "Count"
}
},
"type": "object",
"required": [
"ref",
"count"
],
"title": "ConversationRefAmbiguous"
},
"ConversationRefCard": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"machine": {
"type": "string",
"title": "Machine"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"projects": {
"items": {
"type": "string"
},
"type": "array",
"title": "Projects",
"default": []
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"url": {
"type": "string",
"title": "Url"
},
"firstPrompt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Firstprompt"
},
"lastAnswer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastanswer"
}
},
"type": "object",
"required": [
"id",
"machine",
"url"
],
"title": "ConversationRefCard",
"description": "A conversation a prompt names (``conversations/refs.py``): what the\nconv-ref prompt hook and the composer's conversation pill show."
},
"ConversationRefsResponse": {
"properties": {
"cards": {
"items": {
"$ref": "#/components/schemas/ConversationRefCard"
},
"type": "array",
"title": "Cards"
},
"unknown": {
"items": {
"type": "string"
},
"type": "array",
"title": "Unknown"
},
"ambiguous": {
"items": {
"$ref": "#/components/schemas/ConversationRefAmbiguous"
},
"type": "array",
"title": "Ambiguous"
}
},
"type": "object",
"required": [
"cards",
"unknown",
"ambiguous"
],
"title": "ConversationRefsResponse"
},
"ConversationShare": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Owner"
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"participants": {
"items": {
"type": "string"
},
"type": "array",
"title": "Participants"
},
"candidates": {
"items": {
"$ref": "#/components/schemas/ShareCandidate"
},
"type": "array",
"title": "Candidates"
},
"notifying": {
"type": "boolean",
"title": "Notifying",
"default": false
},
"audience": {
"items": {
"$ref": "#/components/schemas/AudienceMember"
},
"type": "array",
"title": "Audience",
"default": []
}
},
"type": "object",
"required": [
"sessionId",
"participants",
"candidates"
],
"title": "ConversationShare"
},
"ConversationSummary": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"gitBranch": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Gitbranch"
},
"model": {
"type": "string",
"title": "Model"
},
"models": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Models"
},
"efforts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Efforts"
},
"title": {
"type": "string",
"title": "Title"
},
"userTurns": {
"type": "integer",
"title": "Userturns"
},
"assistantTurns": {
"type": "integer",
"title": "Assistantturns"
},
"messages": {
"type": "integer",
"title": "Messages"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"cost": {
"type": "number",
"title": "Cost"
},
"usage": {
"anyOf": [
{
"$ref": "#/components/schemas/Usage"
},
{
"type": "null"
}
]
},
"byTool": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/ToolUsage"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Bytool"
},
"byToolSub": {
"anyOf": [
{
"additionalProperties": {
"additionalProperties": {
"$ref": "#/components/schemas/ToolUsage"
},
"type": "object"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Bytoolsub"
},
"subagentCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Subagentcount"
},
"subagentTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Subagenttokens"
},
"subagentCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Subagentcost"
},
"childCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Childcount"
},
"childCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Childcost"
},
"childRunning": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Childrunning"
},
"planUnits": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Planunits"
},
"subagentPlanUnits": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Subagentplanunits"
},
"planPct": {
"anyOf": [
{
"$ref": "#/components/schemas/PlanPct"
},
{
"type": "null"
}
]
},
"byModel": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/ModelUsage"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Bymodel"
},
"priceBook": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pricebook"
},
"fastCalls": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Fastcalls"
},
"local": {
"anyOf": [
{
"$ref": "#/components/schemas/LocalEnergy"
},
{
"type": "null"
}
]
},
"runningAgents": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/RunningAgent"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Runningagents"
},
"deploying": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Deploying"
},
"stoppedOn": {
"anyOf": [
{
"$ref": "#/components/schemas/StoppedOn"
},
{
"type": "null"
}
]
},
"queued": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/QueuedFollowup"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Queued"
},
"stepSince": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Stepsince"
},
"contextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Contexttokens"
},
"contextModel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Contextmodel"
},
"lastCallAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastcallat"
},
"cacheTtl": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Cachettl"
},
"compactions": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Compactions"
},
"firstContextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Firstcontexttokens"
},
"firstMessageTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Firstmessagetokens"
},
"tasks": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/Task"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tasks"
},
"skillsUsed": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Skillsused"
},
"agentsUsed": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Agentsused"
},
"meta": {
"anyOf": [
{
"$ref": "#/components/schemas/ConvMeta"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"id",
"model",
"title",
"userTurns",
"assistantTurns",
"messages",
"tokens",
"cost"
],
"title": "ConversationSummary"
},
"ConversationsResponse": {
"properties": {
"conversations": {
"items": {
"$ref": "#/components/schemas/ConversationSummary"
},
"type": "array",
"title": "Conversations"
},
"count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Count"
},
"nextBefore": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Nextbefore"
},
"pricing": {
"$ref": "#/components/schemas/Pricing"
}
},
"type": "object",
"required": [
"conversations",
"pricing"
],
"title": "ConversationsResponse"
},
"CronChatRef": {
"properties": {
"id": {
"type": "string",
"title": "Id"
}
},
"type": "object",
"required": [
"id"
],
"title": "CronChatRef",
"description": "A guest's \u00ab Discuter \u00bb conversation about a run of one of their\nscheduled jobs (runs/guestjob.py ``discuss``)."
},
"CronRef": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"delivered": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Delivered"
},
"fallback": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fallback"
}
},
"type": "object",
"required": [
"id"
],
"title": "CronRef",
"description": "The cron job that spawned a conversation (the cron-jobs plugin) \u2014 rendered as a\ntag on the card/detail linking back to the cron-jobs plugin's page."
},
"CurvePoint": {
"properties": {
"x": {
"type": "number",
"title": "X"
},
"y": {
"type": "number",
"title": "Y"
}
},
"type": "object",
"required": [
"x",
"y"
],
"title": "CurvePoint",
"description": "A keyframe of an animation curve: time fraction ``x``, progress ``y``."
},
"Dashboard": {
"properties": {
"pricing": {
"$ref": "#/components/schemas/Pricing"
},
"totals": {
"$ref": "#/components/schemas/DashboardTotals"
},
"skills": {
"items": {
"$ref": "#/components/schemas/SkillStat"
},
"type": "array",
"title": "Skills"
},
"topFiles": {
"items": {
"$ref": "#/components/schemas/TopFile"
},
"type": "array",
"title": "Topfiles"
}
},
"type": "object",
"required": [
"pricing",
"totals",
"skills",
"topFiles"
],
"title": "Dashboard"
},
"DashboardTotals": {
"properties": {
"files": {
"type": "integer",
"title": "Files"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"cost": {
"type": "number",
"title": "Cost"
},
"estimated": {
"type": "integer",
"title": "Estimated"
},
"skills": {
"type": "integer",
"title": "Skills"
},
"invocations": {
"type": "integer",
"title": "Invocations"
},
"skillSpend": {
"type": "number",
"title": "Skillspend"
}
},
"type": "object",
"required": [
"files",
"tokens",
"cost",
"estimated",
"skills",
"invocations",
"skillSpend"
],
"title": "DashboardTotals"
},
"DaySpend": {
"properties": {
"date": {
"type": "string",
"title": "Date"
},
"usd": {
"type": "number",
"title": "Usd"
},
"ownUsd": {
"type": "number",
"title": "Ownusd",
"default": 0
}
},
"type": "object",
"required": [
"date",
"usd"
],
"title": "DaySpend"
},
"Decision": {
"properties": {
"approve": {
"type": "boolean",
"title": "Approve"
},
"scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scope"
}
},
"type": "object",
"required": [
"approve"
],
"title": "Decision"
},
"DeliveryStatus": {
"properties": {
"channel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Channel"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"webhook": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Webhook"
},
"target": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Target"
},
"ok": {
"type": "boolean",
"title": "Ok"
},
"status": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Status"
},
"user": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "User"
}
},
"type": "object",
"required": [
"ok"
],
"title": "DeliveryStatus",
"description": "One delivery outcome: a channel plugin's (``channel``: its id \u2014\n``home-assistant-push`` = the owner's phone; ``error`` when it failed),\nor the app's own (``target``: in_app / webpush). ``webhook`` is a record\nfrom before the channel plugins (2026-11-25)."
},
"DeployCall": {
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"target": {
"type": "string",
"title": "Target"
}
},
"type": "object",
"required": [
"kind",
"target"
],
"title": "DeployCall",
"description": "A tool call that runs a deploy (``conversations/deploycmd.py``)."
},
"DiffHunk": {
"properties": {
"header": {
"type": "string",
"title": "Header"
},
"oldStart": {
"type": "integer",
"title": "Oldstart"
},
"oldLines": {
"type": "integer",
"title": "Oldlines"
},
"newStart": {
"type": "integer",
"title": "Newstart"
},
"newLines": {
"type": "integer",
"title": "Newlines"
},
"lines": {
"items": {
"$ref": "#/components/schemas/DiffLine"
},
"type": "array",
"title": "Lines"
}
},
"type": "object",
"required": [
"header",
"oldStart",
"oldLines",
"newStart",
"newLines",
"lines"
],
"title": "DiffHunk"
},
"DiffLine": {
"properties": {
"type": {
"type": "string",
"enum": [
"add",
"del",
"ctx"
],
"title": "Type"
},
"oldNo": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Oldno"
},
"newNo": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Newno"
},
"text": {
"type": "string",
"title": "Text"
}
},
"type": "object",
"required": [
"type",
"text"
],
"title": "DiffLine"
},
"DiffResult": {
"properties": {
"title": {
"type": "string",
"title": "Title"
},
"subtitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subtitle"
},
"files": {
"items": {
"$ref": "#/components/schemas/FileDiff"
},
"type": "array",
"title": "Files"
},
"additions": {
"type": "integer",
"title": "Additions"
},
"deletions": {
"type": "integer",
"title": "Deletions"
},
"commits": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/CommitRef"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Commits"
},
"approx": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Approx"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"worktree",
"transcript",
"git",
"worker"
]
},
{
"type": "null"
}
],
"title": "Source"
},
"worktrees": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/WorktreeRef"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Worktrees"
},
"unavailable": {
"anyOf": [
{
"$ref": "#/components/schemas/DiffUnavailable"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"title",
"files",
"additions",
"deletions"
],
"title": "DiffResult"
},
"DiffUnavailable": {
"properties": {
"message": {
"type": "string",
"title": "Message"
},
"kind": {
"type": "string",
"title": "Kind"
}
},
"type": "object",
"required": [
"message",
"kind"
],
"title": "DiffUnavailable"
},
"DiscussBody": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"prompt": {
"type": "string",
"title": "Prompt"
}
},
"type": "object",
"required": [
"sessionId",
"prompt"
],
"title": "DiscussBody"
},
"DismissedBody": {
"properties": {
"tag": {
"type": "string",
"title": "Tag"
}
},
"type": "object",
"required": [
"tag"
],
"title": "DismissedBody"
},
"DomainDns": {
"properties": {
"apex": {
"items": {
"type": "string"
},
"type": "array",
"title": "Apex",
"default": []
},
"wildcard": {
"items": {
"type": "string"
},
"type": "array",
"title": "Wildcard",
"default": []
},
"ok": {
"type": "boolean",
"title": "Ok",
"default": false
}
},
"type": "object",
"title": "DomainDns"
},
"DomainStatus": {
"properties": {
"domain": {
"type": "string",
"title": "Domain"
},
"publicIp": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Publicip"
},
"dns": {
"anyOf": [
{
"$ref": "#/components/schemas/DomainDns"
},
{
"type": "null"
}
]
},
"routed": {
"type": "boolean",
"title": "Routed",
"default": false
},
"folder": {
"type": "boolean",
"title": "Folder",
"default": false
},
"https": {
"type": "boolean",
"title": "Https",
"default": false
},
"ready": {
"type": "boolean",
"title": "Ready",
"default": false
},
"steps": {
"items": {
"type": "string"
},
"type": "array",
"title": "Steps",
"default": []
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"checkedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Checkedat"
}
},
"type": "object",
"required": [
"domain"
],
"title": "DomainStatus",
"description": "A guest's own root domain at the zipgo host's public edge\n(users/edge.py): ready once the DNS points at the lab, the edge\npasses it through, zipgo has its folder and the certificate verifies."
},
"DraftBody": {
"properties": {
"value": {
"type": "string",
"title": "Value"
},
"device": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Device"
}
},
"type": "object",
"required": [
"value"
],
"title": "DraftBody"
},
"DraftRecord": {
"properties": {
"key": {
"type": "string",
"title": "Key"
},
"value": {
"type": "string",
"title": "Value"
},
"updatedAt": {
"type": "integer",
"title": "Updatedat"
},
"device": {
"type": "string",
"title": "Device",
"default": ""
}
},
"type": "object",
"required": [
"key",
"value",
"updatedAt"
],
"title": "DraftRecord",
"description": "One stored draft: ``key`` = ``draft:<draftKey>`` (the live draft) or\n``drafts:<draftKey>`` (the saved-drafts shelf); ``value`` = the composer's\nJSON string; ``updatedAt`` = epoch ms (server clock); ``device`` = the tab\nthat wrote it."
},
"DraftsResponse": {
"properties": {
"drafts": {
"items": {
"$ref": "#/components/schemas/DraftRecord"
},
"type": "array",
"title": "Drafts"
}
},
"type": "object",
"required": [
"drafts"
],
"title": "DraftsResponse"
},
"EffortUsage": {
"properties": {
"turns": {
"type": "integer",
"title": "Turns"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"output": {
"type": "integer",
"title": "Output"
},
"cost": {
"type": "number",
"title": "Cost"
},
"planUnits": {
"type": "number",
"title": "Planunits"
}
},
"type": "object",
"required": [
"turns",
"tokens",
"output",
"cost",
"planUnits"
],
"title": "EffortUsage",
"description": "One model's share at one `--effort` level (\"none\" = unstamped turns)."
},
"EnrollWorkerBody": {
"properties": {
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"opencode": {
"type": "boolean",
"title": "Opencode",
"default": false
},
"account": {
"type": "string",
"title": "Account"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile"
},
"default": {
"type": "boolean",
"title": "Default",
"default": false
}
},
"type": "object",
"required": [
"account"
],
"title": "EnrollWorkerBody",
"description": "*Pair a worker* \u2192 *It dials out*: the installer's answers, and what the\nworker becomes once its pairing comes through the link."
},
"FeedNotification": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"convId": {
"type": "string",
"title": "Convid"
},
"convTitle": {
"type": "string",
"title": "Convtitle"
},
"title": {
"type": "string",
"title": "Title"
},
"body": {
"type": "string",
"title": "Body"
},
"type": {
"type": "string",
"title": "Type"
},
"url": {
"type": "string",
"title": "Url"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Image"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
},
"projects": {
"items": {
"type": "string"
},
"type": "array",
"title": "Projects"
},
"services": {
"items": {
"type": "string"
},
"type": "array",
"title": "Services"
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind"
},
"spoken": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spoken"
}
},
"type": "object",
"required": [
"id",
"convId",
"convTitle",
"title",
"body",
"type",
"url",
"projects",
"services"
],
"title": "FeedNotification",
"description": "A flat notification feed item (the server-side mirror of the frontend's\nFeedNotif), as returned by ``/api/notifications/unread``."
},
"FileDiff": {
"properties": {
"path": {
"type": "string",
"title": "Path"
},
"oldPath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Oldpath"
},
"status": {
"type": "string",
"enum": [
"added",
"deleted",
"modified",
"renamed"
],
"title": "Status"
},
"additions": {
"type": "integer",
"title": "Additions"
},
"deletions": {
"type": "integer",
"title": "Deletions"
},
"binary": {
"type": "boolean",
"title": "Binary"
},
"truncated": {
"type": "boolean",
"title": "Truncated"
},
"hunks": {
"items": {
"$ref": "#/components/schemas/DiffHunk"
},
"type": "array",
"title": "Hunks"
},
"repo": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Repo"
},
"wt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Wt"
},
"commit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Commit"
}
},
"type": "object",
"required": [
"path",
"status",
"additions",
"deletions",
"binary",
"truncated",
"hunks"
],
"title": "FileDiff"
},
"FollowBody": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"on": {
"type": "boolean",
"title": "On"
}
},
"type": "object",
"required": [
"id",
"on"
],
"title": "FollowBody"
},
"ForkBody": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"mi": {
"type": "integer",
"title": "Mi"
},
"prompt": {
"type": "string",
"title": "Prompt"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
}
},
"type": "object",
"required": [
"id",
"mi",
"prompt"
],
"title": "ForkBody"
},
"ForkedFrom": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"mi": {
"type": "integer",
"title": "Mi"
}
},
"type": "object",
"required": [
"id",
"mi"
],
"title": "ForkedFrom",
"description": "Where a forked conversation branched off: the source conversation and\nthe user-message ordinal (``mi``) whose edit created the fork."
},
"FreshContextAssumptions": {
"properties": {
"scenarios": {
"items": {
"$ref": "#/components/schemas/FreshContextScenario"
},
"type": "array",
"title": "Scenarios"
},
"summaryTokens": {
"type": "integer",
"title": "Summarytokens"
},
"compactInputShare": {
"type": "number",
"title": "Compactinputshare"
},
"compactOutputTokens": {
"type": "integer",
"title": "Compactoutputtokens"
},
"compactSeconds": {
"type": "integer",
"title": "Compactseconds"
},
"baseTokens": {
"type": "integer",
"title": "Basetokens"
},
"warmPrefixTokens": {
"type": "integer",
"title": "Warmprefixtokens",
"default": 0
}
},
"type": "object",
"required": [
"scenarios",
"summaryTokens",
"compactInputShare",
"compactOutputTokens",
"compactSeconds",
"baseTokens"
],
"title": "FreshContextAssumptions",
"description": "What the fresh-context estimate assumes, measured on the lab's own\ntranscripts (runs/fresh.py ``ASSUMPTIONS``, docs/fresh-context.md)."
},
"FreshContextBody": {
"properties": {
"enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Enabled"
},
"minSavingsUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Minsavingsusd"
},
"minSavingsPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Minsavingspct"
},
"coldUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Coldusd"
},
"countdown": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Countdown"
},
"confirm": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Confirm"
},
"autoFresh": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Autofresh"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"pointer": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Pointer"
}
},
"type": "object",
"title": "FreshContextBody"
},
"FreshContextScenario": {
"properties": {
"key": {
"type": "string",
"title": "Key"
},
"minCalls": {
"type": "integer",
"title": "Mincalls"
},
"maxCalls": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Maxcalls"
},
"calls": {
"type": "integer",
"title": "Calls"
},
"share": {
"type": "number",
"title": "Share"
},
"laterCold": {
"type": "number",
"title": "Latercold"
}
},
"type": "object",
"required": [
"key",
"minCalls",
"calls",
"share",
"laterCold"
],
"title": "FreshContextScenario",
"description": "One follow-up size after a reply on an expired cache: the API calls\nleft (``maxCalls`` null = no ceiling), its share of past follow-ups, the\ncalls it averages and its later cold resumes."
},
"FreshContextSettings": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled"
},
"minSavingsUsd": {
"type": "number",
"title": "Minsavingsusd"
},
"minSavingsPct": {
"type": "number",
"title": "Minsavingspct"
},
"coldUsd": {
"type": "number",
"title": "Coldusd"
},
"countdown": {
"type": "boolean",
"title": "Countdown"
},
"confirm": {
"type": "boolean",
"title": "Confirm"
},
"autoFresh": {
"type": "boolean",
"title": "Autofresh",
"default": false
},
"model": {
"type": "string",
"title": "Model"
},
"pointer": {
"type": "boolean",
"title": "Pointer"
},
"assumptions": {
"anyOf": [
{
"$ref": "#/components/schemas/FreshContextAssumptions"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"enabled",
"minSavingsUsd",
"minSavingsPct",
"coldUsd",
"countdown",
"confirm",
"model",
"pointer"
],
"title": "FreshContextSettings",
"description": "Settings \u2192 Fresh context (runs/fresh.py): when the reply box nudges\ntoward compacting instead of replaying the whole thread, and how."
},
"FullText": {
"properties": {
"clipId": {
"type": "integer",
"title": "Clipid"
},
"fields": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Fields"
}
},
"type": "object",
"required": [
"clipId",
"fields"
],
"title": "FullText",
"description": "The whole of a thread item's clipped fields (``ThreadItem.clipped``)."
},
"GenProgress": {
"properties": {
"phase": {
"type": "string",
"enum": [
"loading",
"prefill",
"decode",
"idle",
"unreachable"
],
"title": "Phase"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"since": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Since"
},
"promptTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Prompttokens"
},
"promptCached": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Promptcached"
},
"promptDone": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Promptdone"
},
"decoded": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Decoded"
},
"cap": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Cap"
},
"tokPerS": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Tokpers"
},
"tool": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tool"
},
"toolRunning": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Toolrunning"
},
"idleSince": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Idlesince"
},
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
},
"trail": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/GenProgressPoint"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Trail"
}
},
"type": "object",
"required": [
"phase"
],
"title": "GenProgress",
"description": "What a live local-model run's llm-server slot is doing (sidecar\nprovider-evox2's ``gen_progress.py`` \u2192 ``runs/genprogress.py``): its transcript stays silent\nwhile the model streams, this doesn't."
},
"GenProgressPoint": {
"properties": {
"phase": {
"type": "string",
"enum": [
"loading",
"prefill",
"decode",
"idle",
"unreachable"
],
"title": "Phase"
},
"since": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Since"
},
"promptTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Prompttokens"
},
"promptCached": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Promptcached"
},
"promptDone": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Promptdone"
},
"decoded": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Decoded"
},
"cap": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Cap"
},
"tokPerS": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Tokpers"
},
"tool": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tool"
},
"toolRunning": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Toolrunning"
},
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"required": [
"phase"
],
"title": "GenProgressPoint",
"description": "One earlier llm-server reading of a run, in its ``trail`` \u2014 the keys that\nmove from one poll to the next."
},
"GenProgressSnapshot": {
"properties": {
"progress": {
"additionalProperties": {
"$ref": "#/components/schemas/GenProgress"
},
"type": "object",
"title": "Progress"
}
},
"type": "object",
"required": [
"progress"
],
"title": "GenProgressSnapshot",
"description": "Every live local-model run's reading, by session id \u2014 also the payload\nof the ``gen-progress`` SSE event."
},
"GhLogin": {
"properties": {
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"userCode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Usercode"
},
"flow": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Flow"
},
"startedAt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"expiresAt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Expiresat"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
}
},
"type": "object",
"title": "GhLogin",
"description": "gh's device-code sign-in on a worker (workers/tools.py): enter\n``userCode`` at ``url``; GET follows it \u2014 pending | complete | failed | none."
},
"GoalChecklistItem": {
"properties": {
"text": {
"type": "string",
"title": "Text"
},
"plain": {
"type": "string",
"title": "Plain"
},
"checked": {
"type": "boolean",
"title": "Checked"
}
},
"type": "object",
"required": [
"text",
"plain",
"checked"
],
"title": "GoalChecklistItem"
},
"GoalClaim": {
"properties": {
"text": {
"type": "string",
"title": "Text"
},
"since": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Since"
},
"stale": {
"type": "boolean",
"title": "Stale"
}
},
"type": "object",
"required": [
"text",
"stale"
],
"title": "GoalClaim"
},
"GoalDetail": {
"properties": {
"done": {
"type": "integer",
"title": "Done"
},
"total": {
"type": "integer",
"title": "Total"
},
"content": {
"type": "string",
"title": "Content"
},
"items": {
"items": {
"$ref": "#/components/schemas/GoalChecklistItem"
},
"type": "array",
"title": "Items"
},
"claims": {
"items": {
"$ref": "#/components/schemas/GoalClaim"
},
"type": "array",
"title": "Claims"
}
},
"type": "object",
"required": [
"done",
"total",
"content",
"items",
"claims"
],
"title": "GoalDetail"
},
"GoalSummary": {
"properties": {
"done": {
"type": "integer",
"title": "Done"
},
"total": {
"type": "integer",
"title": "Total"
}
},
"type": "object",
"required": [
"done",
"total"
],
"title": "GoalSummary"
},
"GrantPatch": {
"properties": {
"scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scope"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
}
},
"type": "object",
"title": "GrantPatch"
},
"GuardEvent": {
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"tool": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tool"
},
"rule": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Rule"
},
"reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reason"
},
"input": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Input"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
}
},
"type": "object",
"required": [
"kind"
],
"title": "GuardEvent",
"description": "What the guard hook (sidecar/guard.py) saw: a rule a tool call\ntripped, or a sandbox denial in a Bash result."
},
"GuestClaude": {
"properties": {
"connected": {
"type": "boolean",
"title": "Connected"
},
"account": {
"type": "string",
"title": "Account"
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"subscriptionType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subscriptiontype"
},
"connectedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Connectedat"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status"
},
"reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reason"
},
"since": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Since"
},
"limited": {
"type": "boolean",
"title": "Limited",
"default": false
},
"pendingLogin": {
"type": "boolean",
"title": "Pendinglogin",
"default": false
},
"bill": {
"type": "string",
"title": "Bill",
"default": "own"
},
"spentUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Spentusd"
},
"totalSpentUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Totalspentusd"
},
"conversations": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Conversations"
}
},
"type": "object",
"required": [
"connected",
"account"
],
"title": "GuestClaude",
"description": "A guest's own Claude login (accounts/guest.py) \u2014 what it is, whether it\nworks (``status`` from accounts/health.py; ``limited`` = at its usage\nlimit, runs fall back to the owner's account), and what ran on it this\nmonth (``spentUsd`` \u2014 a list-price estimate, never capped)."
},
"GuestDefaults": {
"properties": {
"sharedSkills": {
"items": {
"type": "string"
},
"type": "array",
"title": "Sharedskills"
},
"domain": {
"type": "string",
"title": "Domain",
"default": "gabvdl.xyz"
},
"computerLimits": {
"$ref": "#/components/schemas/ComputerLimits",
"default": {
"fiveHourPct": 80,
"sevenDayPct": 85,
"inFlight": 10,
"perMinute": 60,
"rotateDays": 7,
"mirrorMb": 500
}
}
},
"type": "object",
"required": [
"sharedSkills"
],
"title": "GuestDefaults",
"description": "What the owner sets for every guest at once (Settings \u2192 Users)."
},
"GuestDefaultsBody": {
"properties": {
"sharedSkills": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Sharedskills"
},
"computerLimits": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Computerlimits"
}
},
"type": "object",
"title": "GuestDefaultsBody"
},
"GuestIdp": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id"
},
"ok": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Ok"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"title": "GuestIdp",
"description": "A guest's mirror in the identity provider: its id there (the OIDC\n``sub``) and how the last sync went."
},
"GuestPerfCommand": {
"properties": {
"label": {
"type": "string",
"title": "Label"
},
"count": {
"type": "integer",
"title": "Count"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"maxCpuSeconds": {
"type": "number",
"title": "Maxcpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"avgDuration": {
"type": "number",
"title": "Avgduration"
},
"lastSeen": {
"type": "number",
"title": "Lastseen"
},
"example": {
"anyOf": [
{
"$ref": "#/components/schemas/GuestPerfExample"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"label",
"count",
"conversations",
"cpuSeconds",
"maxCpuSeconds",
"peakRss",
"avgDuration",
"lastSeen"
],
"title": "GuestPerfCommand"
},
"GuestPerfConversation": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"peakProcs": {
"type": "integer",
"title": "Peakprocs"
},
"runs": {
"type": "integer",
"title": "Runs"
},
"firstSeen": {
"type": "number",
"title": "Firstseen"
},
"lastSeen": {
"type": "number",
"title": "Lastseen"
},
"live": {
"type": "boolean",
"title": "Live"
},
"heaviest": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfHeaviest"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"sessionId",
"cpuSeconds",
"peakRss",
"peakProcs",
"runs",
"firstSeen",
"lastSeen",
"live"
],
"title": "GuestPerfConversation"
},
"GuestPerfExample": {
"properties": {
"cmd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cmd"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"duration": {
"type": "number",
"title": "Duration"
}
},
"type": "object",
"required": [
"sessionId",
"cpuSeconds",
"peakRss",
"duration"
],
"title": "GuestPerfExample",
"description": "The command's heaviest run."
},
"GuestPerfPeriod": {
"properties": {
"days": {
"type": "integer",
"title": "Days"
}
},
"type": "object",
"required": [
"days"
],
"title": "GuestPerfPeriod"
},
"GuestPerfStats": {
"properties": {
"period": {
"$ref": "#/components/schemas/GuestPerfPeriod"
},
"totals": {
"$ref": "#/components/schemas/GuestPerfTotals"
},
"conversations": {
"items": {
"$ref": "#/components/schemas/GuestPerfConversation"
},
"type": "array",
"title": "Conversations"
},
"commands": {
"items": {
"$ref": "#/components/schemas/GuestPerfCommand"
},
"type": "array",
"title": "Commands"
},
"storage": {
"$ref": "#/components/schemas/GuestStorage"
}
},
"type": "object",
"required": [
"period",
"totals",
"conversations",
"commands",
"storage"
],
"title": "GuestPerfStats",
"description": "A guest's Performance + Storage (``GET /api/me/stats/perf``)."
},
"GuestPerfTotals": {
"properties": {
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"runs": {
"type": "integer",
"title": "Runs"
},
"live": {
"type": "integer",
"title": "Live",
"default": 0
}
},
"type": "object",
"required": [
"cpuSeconds",
"peakRss",
"conversations",
"runs"
],
"title": "GuestPerfTotals"
},
"GuestSkill": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description",
"default": ""
},
"triggerWords": {
"items": {
"type": "string"
},
"type": "array",
"title": "Triggerwords",
"default": []
},
"source": {
"type": "string",
"title": "Source"
}
},
"type": "object",
"required": [
"name",
"source"
],
"title": "GuestSkill",
"description": "A skill a guest's run can use \u2014 the composer's `/` mentions."
},
"GuestSkillsResponse": {
"properties": {
"skills": {
"items": {
"$ref": "#/components/schemas/GuestSkill"
},
"type": "array",
"title": "Skills"
}
},
"type": "object",
"required": [
"skills"
],
"title": "GuestSkillsResponse"
},
"GuestStats": {
"properties": {
"period": {
"$ref": "#/components/schemas/StatsPeriod"
},
"tzOffset": {
"type": "integer",
"title": "Tzoffset"
},
"totals": {
"$ref": "#/components/schemas/StatsTotals"
},
"month": {
"$ref": "#/components/schemas/StatsMonth"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"conversationsThisWeek": {
"type": "integer",
"title": "Conversationsthisweek"
},
"firstDay": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Firstday"
},
"daily": {
"items": {
"$ref": "#/components/schemas/StatsDay"
},
"type": "array",
"title": "Daily"
},
"calendar": {
"items": {
"$ref": "#/components/schemas/StatsCalendarDay"
},
"type": "array",
"title": "Calendar"
},
"byProject": {
"items": {
"$ref": "#/components/schemas/StatsProject"
},
"type": "array",
"title": "Byproject"
},
"byModel": {
"items": {
"$ref": "#/components/schemas/StatsModel"
},
"type": "array",
"title": "Bymodel"
},
"footprint": {
"$ref": "#/components/schemas/StatsFootprint"
}
},
"type": "object",
"required": [
"period",
"tzOffset",
"totals",
"month",
"conversations",
"conversationsThisWeek",
"daily",
"calendar",
"byProject",
"byModel",
"footprint"
],
"title": "GuestStats",
"description": "A guest's own dashboard (``GET /api/me/stats``, the owner's\n``/api/users/{id}/stats``): their conversations over ``period``."
},
"GuestStorage": {
"properties": {
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
},
"totals": {
"$ref": "#/components/schemas/GuestStorageTotals"
},
"kinds": {
"items": {
"$ref": "#/components/schemas/GuestStorageKind"
},
"type": "array",
"title": "Kinds"
},
"items": {
"items": {
"$ref": "#/components/schemas/GuestStorageItem"
},
"type": "array",
"title": "Items"
}
},
"type": "object",
"required": [
"totals",
"kinds",
"items"
],
"title": "GuestStorage"
},
"GuestStorageConv": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
}
},
"type": "object",
"required": [
"sessionId"
],
"title": "GuestStorageConv"
},
"GuestStorageEntry": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"own": {
"type": "integer",
"title": "Own"
},
"files": {
"type": "integer",
"title": "Files",
"default": 0
}
},
"type": "object",
"required": [
"name",
"bytes",
"own"
],
"title": "GuestStorageEntry"
},
"GuestStorageGit": {
"properties": {
"branch": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Branch"
},
"base": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Base"
},
"merged": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Merged"
},
"ahead": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Ahead"
},
"dirty": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Dirty"
}
},
"type": "object",
"title": "GuestStorageGit"
},
"GuestStorageItem": {
"properties": {
"path": {
"type": "string",
"title": "Path"
},
"kind": {
"type": "string",
"title": "Kind"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"agent": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent"
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"own": {
"type": "integer",
"title": "Own"
},
"files": {
"type": "integer",
"title": "Files"
},
"newestAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Newestat"
},
"idleS": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Idles"
},
"ram": {
"type": "boolean",
"title": "Ram",
"default": false
},
"partial": {
"type": "boolean",
"title": "Partial",
"default": false
},
"running": {
"type": "boolean",
"title": "Running",
"default": false
},
"top": {
"items": {
"$ref": "#/components/schemas/GuestStorageEntry"
},
"type": "array",
"title": "Top",
"default": []
},
"git": {
"anyOf": [
{
"$ref": "#/components/schemas/GuestStorageGit"
},
{
"type": "null"
}
]
},
"conversations": {
"items": {
"$ref": "#/components/schemas/GuestStorageConv"
},
"type": "array",
"title": "Conversations",
"default": []
}
},
"type": "object",
"required": [
"path",
"kind",
"bytes",
"own",
"files"
],
"title": "GuestStorageItem"
},
"GuestStorageKind": {
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"items": {
"type": "integer",
"title": "Items"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"own": {
"type": "integer",
"title": "Own"
}
},
"type": "object",
"required": [
"kind",
"items",
"bytes",
"own"
],
"title": "GuestStorageKind"
},
"GuestStorageTotals": {
"properties": {
"items": {
"type": "integer",
"title": "Items"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"own": {
"type": "integer",
"title": "Own"
}
},
"type": "object",
"required": [
"items",
"bytes",
"own"
],
"title": "GuestStorageTotals"
},
"GuestUser": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"email": {
"type": "string",
"title": "Email"
},
"name": {
"type": "string",
"title": "Name"
},
"role": {
"type": "string",
"title": "Role"
},
"allow": {
"items": {
"type": "string"
},
"type": "array",
"title": "Allow",
"default": []
},
"deny": {
"items": {
"type": "string"
},
"type": "array",
"title": "Deny",
"default": []
},
"perms": {
"items": {
"type": "string"
},
"type": "array",
"title": "Perms",
"default": []
},
"projects": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Projects"
},
"models": {
"items": {
"type": "string"
},
"type": "array",
"title": "Models"
},
"budgetUsd": {
"type": "number",
"title": "Budgetusd"
},
"notify": {
"$ref": "#/components/schemas/NotifyPrefs"
},
"disabled": {
"type": "boolean",
"title": "Disabled"
},
"createdAt": {
"type": "string",
"title": "Createdat"
},
"lastLoginAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastloginat"
},
"sessions": {
"type": "integer",
"title": "Sessions",
"default": 0
},
"spentUsd": {
"type": "number",
"title": "Spentusd",
"default": 0
},
"totalSpentUsd": {
"type": "number",
"title": "Totalspentusd",
"default": 0
},
"conversations": {
"type": "integer",
"title": "Conversations",
"default": 0
},
"computersSpentUsd": {
"type": "number",
"title": "Computersspentusd",
"default": 0
},
"creditUsd": {
"type": "number",
"title": "Creditusd",
"default": 0
},
"claude": {
"anyOf": [
{
"$ref": "#/components/schemas/GuestClaude"
},
{
"type": "null"
}
]
},
"bucket": {
"type": "string",
"title": "Bucket",
"default": ""
},
"domain": {
"type": "string",
"title": "Domain",
"default": ""
},
"cli": {
"type": "boolean",
"title": "Cli",
"default": false
},
"mcp": {
"type": "boolean",
"title": "Mcp",
"default": false
},
"pushDevices": {
"items": {
"$ref": "#/components/schemas/PushDevice"
},
"type": "array",
"title": "Pushdevices",
"default": []
},
"autoFresh": {
"type": "boolean",
"title": "Autofresh",
"default": true
},
"scratchBash": {
"type": "boolean",
"title": "Scratchbash",
"default": true
},
"codeMode": {
"type": "boolean",
"title": "Codemode",
"default": true
},
"lang": {
"type": "string",
"title": "Lang",
"default": "auto"
},
"browserLang": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Browserlang"
},
"computers": {
"anyOf": [
{
"$ref": "#/components/schemas/ComputerPolicy"
},
{
"type": "null"
}
]
},
"apps": {
"additionalProperties": {
"type": "boolean"
},
"type": "object",
"title": "Apps",
"default": {}
},
"idp": {
"anyOf": [
{
"$ref": "#/components/schemas/GuestIdp"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"id",
"email",
"name",
"role",
"projects",
"models",
"budgetUsd",
"notify",
"disabled",
"createdAt"
],
"title": "GuestUser"
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"HeldTurn": {
"properties": {
"since": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Since"
},
"tasks": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tasks",
"default": []
}
},
"type": "object",
"title": "HeldTurn",
"description": "The run's turn ended, but the runner's Stop guard keeps it alive until\nthe background shell(s) it waits on end (harness-claude's sidecar/stop_guard.py)."
},
"HomeTile": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"pluginId": {
"type": "string",
"title": "Pluginid"
},
"kind": {
"type": "string",
"enum": [
"arc",
"burn",
"stat",
"sparkline",
"bar"
],
"title": "Kind"
},
"label": {
"type": "string",
"title": "Label"
},
"stashLabel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Stashlabel"
},
"fixed": {
"type": "boolean",
"title": "Fixed",
"default": false
},
"defaultBench": {
"type": "boolean",
"title": "Defaultbench",
"default": false
},
"stale": {
"type": "boolean",
"title": "Stale",
"default": false
},
"to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "To"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"sub": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sub"
},
"pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Pct"
},
"resetsAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Resetsat"
},
"goal": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Goal"
},
"usdPerHour": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Usdperhour"
},
"pctPerHour": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Pctperhour"
},
"neededUsdPerHour": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Neededusdperhour"
},
"neededPctPerHour": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Neededpctperhour"
},
"projected": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Projected"
},
"windowMinutes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Windowminutes"
},
"noReading": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Noreading"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Value"
},
"valueUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Valueusd"
},
"subUsdPerDay": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Subusdperday"
},
"days": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/HomeTileDay"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Days"
},
"isCost": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Iscost"
},
"max": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Max"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
},
"over": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Over"
}
},
"type": "object",
"required": [
"id",
"pluginId",
"kind",
"label"
],
"title": "HomeTile",
"description": "One declarative tile of the home usage strip, from a plugin's\n``home.tiles`` action (``plugins/home_tiles.py``). Which fields are set\ndepends on ``kind``: ``arc`` (pct, resetsAt, goal), ``burn`` (usdPerHour,\npctPerHour, neededUsdPerHour, neededPctPerHour, projected, goal,\nwindowMinutes, noReading), ``stat`` (value, valueUsd, subUsdPerDay),\n``sparkline`` (days, isCost), ``bar`` (value as a number, max, text,\nover). ``to`` is the tile's link (none: no link), ``stashLabel`` its name\non the bench when that differs from ``label``."
},
"HomeTileDay": {
"properties": {
"date": {
"type": "string",
"title": "Date"
},
"value": {
"type": "number",
"title": "Value"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
}
},
"type": "object",
"required": [
"date",
"value"
],
"title": "HomeTileDay"
},
"HomeTilesResponse": {
"properties": {
"tiles": {
"items": {
"$ref": "#/components/schemas/HomeTile"
},
"type": "array",
"title": "Tiles",
"default": []
}
},
"type": "object",
"title": "HomeTilesResponse"
},
"HubNow": {
"properties": {
"sse": {
"type": "integer",
"title": "Sse"
}
},
"type": "object",
"required": [
"sse"
],
"title": "HubNow"
},
"HubPoint": {
"properties": {
"t": {
"type": "integer",
"title": "T"
},
"n": {
"type": "integer",
"title": "N"
},
"err": {
"type": "integer",
"title": "Err"
},
"p50": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "P50"
},
"p95": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "P95"
},
"lagP95": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lagp95"
},
"lagMax": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lagmax"
},
"sse": {
"type": "integer",
"title": "Sse",
"default": 0
},
"rss": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Rss"
},
"cpu": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cpu"
}
},
"type": "object",
"required": [
"t",
"n",
"err"
],
"title": "HubPoint"
},
"HubRoute": {
"properties": {
"route": {
"type": "string",
"title": "Route"
},
"n": {
"type": "integer",
"title": "N"
},
"err": {
"type": "integer",
"title": "Err"
},
"p50": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "P50"
},
"p95": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "P95"
},
"max": {
"type": "number",
"title": "Max",
"default": 0
},
"sumMs": {
"type": "integer",
"title": "Summs",
"default": 0
}
},
"type": "object",
"required": [
"route",
"n",
"err"
],
"title": "HubRoute"
},
"HubTotals": {
"properties": {
"n": {
"type": "integer",
"title": "N"
},
"err": {
"type": "integer",
"title": "Err"
},
"p50": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "P50"
},
"p95": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "P95"
},
"max": {
"type": "number",
"title": "Max",
"default": 0
},
"lagP95": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lagp95"
},
"lagMax": {
"type": "number",
"title": "Lagmax",
"default": 0
}
},
"type": "object",
"required": [
"n",
"err"
],
"title": "HubTotals"
},
"HubVital": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"device": {
"type": "string",
"title": "Device"
},
"n": {
"type": "integer",
"title": "N"
},
"p75": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "P75"
}
},
"type": "object",
"required": [
"name",
"device",
"n"
],
"title": "HubVital"
},
"HubWebError": {
"properties": {
"message": {
"type": "string",
"title": "Message"
},
"page": {
"type": "string",
"title": "Page"
},
"n": {
"type": "integer",
"title": "N"
},
"last": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Last"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source"
}
},
"type": "object",
"required": [
"message",
"page",
"n"
],
"title": "HubWebError"
},
"IconBody": {
"properties": {
"name": {
"type": "string",
"title": "Name",
"default": "icon"
},
"svg": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Svg"
},
"data": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Data"
},
"tint": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Tint"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id"
}
},
"type": "object",
"title": "IconBody"
},
"IconPatchBody": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"tint": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Tint"
}
},
"type": "object",
"title": "IconPatchBody"
},
"IdpApp": {
"properties": {
"group": {
"type": "string",
"title": "Group"
},
"label": {
"type": "string",
"title": "Label"
},
"url": {
"type": "string",
"title": "Url",
"default": ""
}
},
"type": "object",
"required": [
"group",
"label"
],
"title": "IdpApp",
"description": "An app the identity provider signs guests in to besides this one\n(users/idp.py ``IDP_APPS``): membership of ``group`` lets them in."
},
"IdpStatus": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"default": false
},
"login": {
"type": "boolean",
"title": "Login",
"default": false
},
"issuer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Issuer"
},
"apps": {
"items": {
"$ref": "#/components/schemas/IdpApp"
},
"type": "array",
"title": "Apps",
"default": []
}
},
"type": "object",
"title": "IdpStatus",
"description": "The guests' identity provider (users/idp.py, users/oidc.py): mirrored\ninto (``enabled``: the admin API key is set) and signed in through\n(``login``: the OIDC client is set \u2014 the mailed link login is off then)."
},
"IdpSyncResult": {
"properties": {
"results": {
"additionalProperties": {
"$ref": "#/components/schemas/GuestIdp"
},
"type": "object",
"title": "Results"
}
},
"type": "object",
"required": [
"results"
],
"title": "IdpSyncResult"
},
"ImportBody": {
"properties": {
"account": {
"type": "string",
"title": "Account"
},
"source": {
"type": "string",
"title": "Source",
"default": "ha"
},
"points": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Points"
}
},
"type": "object",
"required": [
"account",
"points"
],
"title": "ImportBody"
},
"IndexMeta": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"ogImage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ogimage"
},
"ogUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ogurl"
},
"themeColor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Themecolor"
}
},
"type": "object",
"title": "IndexMeta"
},
"InterruptBody": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
}
},
"type": "object",
"required": [
"sessionId"
],
"title": "InterruptBody"
},
"InterruptResult": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"ok": {
"type": "boolean",
"title": "Ok"
}
},
"type": "object",
"required": [
"sessionId",
"ok"
],
"title": "InterruptResult"
},
"InviteBody": {
"properties": {
"invite": {
"type": "string",
"maxLength": 128,
"title": "Invite"
}
},
"type": "object",
"required": [
"invite"
],
"title": "InviteBody"
},
"KeepBody": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"pid": {
"type": "integer",
"title": "Pid"
},
"startedAt": {
"type": "number",
"title": "Startedat"
},
"kept": {
"type": "boolean",
"title": "Kept",
"default": true
}
},
"type": "object",
"required": [
"runner",
"pid",
"startedAt"
],
"title": "KeepBody"
},
"KeyFile": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"bytes": {
"type": "integer",
"title": "Bytes"
}
},
"type": "object",
"required": [
"name",
"bytes"
],
"title": "KeyFile"
},
"KillBody": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"processes": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Processes"
}
},
"type": "object",
"required": [
"runner",
"sessionId"
],
"title": "KillBody"
},
"LabSyncBody": {
"properties": {
"overrides": {
"additionalProperties": {
"type": "boolean"
},
"type": "object",
"title": "Overrides"
}
},
"type": "object",
"required": [
"overrides"
],
"title": "LabSyncBody"
},
"LabSyncItem": {
"properties": {
"key": {
"type": "string",
"title": "Key"
},
"kind": {
"type": "string",
"title": "Kind"
},
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description",
"default": ""
},
"portable": {
"type": "boolean",
"title": "Portable",
"default": false
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"default": {
"type": "boolean",
"title": "Default",
"default": false
},
"override": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Override"
},
"enabled": {
"type": "boolean",
"title": "Enabled",
"default": false
}
},
"type": "object",
"required": [
"key",
"kind",
"name"
],
"title": "LabSyncItem",
"description": "One homelab skill or agent on a worker's *Lab skills & agents* list."
},
"LimitWindow": {
"properties": {
"pct": {
"type": "number",
"title": "Pct"
},
"resetsAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Resetsat"
}
},
"type": "object",
"required": [
"pct"
],
"title": "LimitWindow"
},
"LinearInfo": {
"properties": {
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"labels": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Labels"
},
"team": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Team"
}
},
"type": "object",
"title": "LinearInfo",
"description": "What a Linear lookup (get_issue) said about an issue."
},
"LinkBody": {
"properties": {
"send": {
"type": "boolean",
"title": "Send",
"default": false
},
"mail": {
"type": "string",
"enum": [
"invite",
"moved",
"sso"
],
"title": "Mail",
"default": "invite"
}
},
"type": "object",
"title": "LinkBody"
},
"LinkRequest": {
"properties": {
"email": {
"type": "string",
"title": "Email"
}
},
"type": "object",
"required": [
"email"
],
"title": "LinkRequest"
},
"LocalEnergy": {
"properties": {
"seconds": {
"type": "number",
"title": "Seconds"
},
"wh": {
"type": "number",
"title": "Wh"
},
"electricity": {
"type": "number",
"title": "Electricity"
},
"hardware": {
"type": "number",
"title": "Hardware"
}
},
"type": "object",
"required": [
"seconds",
"wh",
"electricity",
"hardware"
],
"title": "LocalEnergy",
"description": "The EVOX2's time behind a conversation's cost: busy seconds, Wh drawn\nand the cost (USD) split into electricity and hardware amortisation\n(pricing.local_call)."
},
"LockBody": {
"properties": {
"locked": {
"type": "boolean",
"title": "Locked"
}
},
"type": "object",
"required": [
"locked"
],
"title": "LockBody"
},
"LoginBody": {
"properties": {
"token": {
"type": "string",
"maxLength": 200,
"title": "Token",
"default": ""
},
"email": {
"type": "string",
"maxLength": 320,
"title": "Email",
"default": ""
},
"code": {
"type": "string",
"maxLength": 20,
"title": "Code",
"default": ""
}
},
"type": "object",
"title": "LoginBody",
"description": "The mailed link's ``token``, or the mail's ``email`` + ``code`` (what a\nhome-screen app types in: the link itself opens in the browser)."
},
"LoginCodeResult": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"loggedIn": {
"type": "boolean",
"title": "Loggedin"
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"orgName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Orgname"
},
"subscriptionType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subscriptiontype"
},
"authMethod": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authmethod"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
}
},
"type": "object",
"required": [
"id",
"loggedIn"
],
"title": "LoginCodeResult",
"description": "The account's fresh login after a code/logout (``claude auth status``)."
},
"LoginLink": {
"properties": {
"url": {
"type": "string",
"title": "Url"
},
"sent": {
"type": "boolean",
"title": "Sent"
},
"expiresInS": {
"type": "integer",
"title": "Expiresins"
}
},
"type": "object",
"required": [
"url",
"sent",
"expiresInS"
],
"title": "LoginLink"
},
"LoginState": {
"properties": {
"state": {
"type": "string",
"title": "State"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"userCode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Usercode"
},
"loggedIn": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Loggedin"
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
}
},
"type": "object",
"required": [
"state"
],
"title": "LoginState",
"description": "Where a device-code login stands (``GET /api/accounts/{id}/login``)."
},
"LookAutoBody": {
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/LookAutoItem"
},
"type": "array",
"title": "Items"
},
"source": {
"type": "string",
"title": "Source",
"default": "batch"
}
},
"type": "object",
"required": [
"items"
],
"title": "LookAutoBody"
},
"LookAutoItem": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"action": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Action"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
}
},
"type": "object",
"required": [
"id"
],
"title": "LookAutoItem"
},
"LookColorBody": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"color": {
"type": "string",
"title": "Color"
}
},
"type": "object",
"required": [
"id",
"color"
],
"title": "LookColorBody"
},
"MachineAttention": {
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/MachineAttentionItem"
},
"type": "array",
"title": "Items",
"default": []
}
},
"type": "object",
"title": "MachineAttention"
},
"MachineAttentionItem": {
"properties": {
"pluginId": {
"type": "string",
"title": "Pluginid"
},
"machine": {
"type": "string",
"title": "Machine"
},
"key": {
"type": "string",
"title": "Key"
},
"title": {
"type": "string",
"title": "Title"
},
"detail": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Detail"
},
"tone": {
"type": "string",
"enum": [
"warn",
"error"
],
"title": "Tone",
"default": "warn"
}
},
"type": "object",
"required": [
"pluginId",
"machine",
"key",
"title"
],
"title": "MachineAttentionItem",
"description": "One thing on one of the owner's machines that waits for him, from the\nplugin providing ``machine.attention`` (``plugins/machine_attention.py``)\n\u2014 e.g. the ``mcp-servers`` plugin's \"2 MCP servers need a sign-in\"."
},
"MachineWakeResult": {
"properties": {
"ok": {
"type": "boolean",
"title": "Ok",
"default": false
},
"sent": {
"type": "boolean",
"title": "Sent",
"default": false
},
"configured": {
"type": "boolean",
"title": "Configured",
"default": false
},
"autoWake": {
"type": "boolean",
"title": "Autowake",
"default": false
},
"timeoutSec": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Timeoutsec"
},
"machineId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Machineid"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
}
},
"type": "object",
"title": "MachineWakeResult",
"description": "``POST /api/machines/{id}/wake``: the plugin's answer (extra keys kept)."
},
"MachinesWakeable": {
"properties": {
"machines": {
"additionalProperties": {
"$ref": "#/components/schemas/WakeableMachine"
},
"type": "object",
"title": "Machines",
"default": {}
}
},
"type": "object",
"title": "MachinesWakeable",
"description": "``GET /api/machines/wakeable``: worker id \u2192 what the plugin says."
},
"McpConnection": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"user": {
"type": "string",
"title": "User"
},
"userName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Username"
},
"scope": {
"type": "string",
"title": "Scope"
},
"created": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Created"
},
"lastUsed": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lastused"
},
"redirectHost": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Redirecthost"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
},
"workerName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Workername"
}
},
"type": "object",
"required": [
"id",
"name",
"user",
"scope"
],
"title": "McpConnection",
"description": "An app someone let in (an OAuth grant)."
},
"McpGroup": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"tools": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tools"
}
},
"type": "object",
"required": [
"id",
"tools"
],
"title": "McpGroup"
},
"McpGuest": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"allowed": {
"type": "boolean",
"title": "Allowed"
}
},
"type": "object",
"required": [
"name",
"allowed"
],
"title": "McpGuest",
"description": "The guest signed in on the consent page's browser (guest host)."
},
"McpOverview": {
"properties": {
"endpoint": {
"type": "string",
"title": "Endpoint"
},
"settings": {
"$ref": "#/components/schemas/McpSettings"
},
"groups": {
"items": {
"$ref": "#/components/schemas/McpGroup"
},
"type": "array",
"title": "Groups"
},
"connections": {
"items": {
"$ref": "#/components/schemas/McpConnection"
},
"type": "array",
"title": "Connections"
},
"pending": {
"items": {
"$ref": "#/components/schemas/McpRequest"
},
"type": "array",
"title": "Pending"
}
},
"type": "object",
"required": [
"endpoint",
"settings",
"groups",
"connections",
"pending"
],
"title": "McpOverview",
"description": "Settings \u2192 AI apps (owner)."
},
"McpRequest": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"app": {
"type": "string",
"title": "App"
},
"redirectHost": {
"type": "string",
"title": "Redirecthost"
},
"knownHost": {
"type": "boolean",
"title": "Knownhost"
},
"scope": {
"type": "string",
"title": "Scope"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status"
},
"createdAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"expiresAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Expiresat"
},
"pushed": {
"type": "boolean",
"title": "Pushed",
"default": false
},
"matchNumber": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Matchnumber"
},
"ownerUrl": {
"type": "string",
"title": "Ownerurl"
},
"redirect": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Redirect"
},
"guest": {
"anyOf": [
{
"$ref": "#/components/schemas/McpGuest"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"id",
"app",
"redirectHost",
"knownHost",
"scope",
"ownerUrl"
],
"title": "McpRequest",
"description": "An app asking to connect (``/connect/<id>``): who, where it returns\nto, and \u2014 once decided \u2014 where the browser goes next."
},
"McpSettings": {
"properties": {
"groups": {
"items": {
"type": "string"
},
"type": "array",
"title": "Groups"
},
"maxWaitS": {
"type": "integer",
"title": "Maxwaits"
}
},
"type": "object",
"required": [
"groups",
"maxWaitS"
],
"title": "McpSettings"
},
"Me": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"role": {
"type": "string",
"title": "Role"
},
"name": {
"type": "string",
"title": "Name"
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"readonly": {
"type": "boolean",
"title": "Readonly",
"default": false
},
"roleId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Roleid"
},
"perms": {
"items": {
"type": "string"
},
"type": "array",
"title": "Perms",
"default": []
},
"readPerms": {
"items": {
"type": "string"
},
"type": "array",
"title": "Readperms",
"default": []
},
"projects": {
"items": {
"$ref": "#/components/schemas/ProjectGrant"
},
"type": "array",
"title": "Projects"
},
"models": {
"items": {
"type": "string"
},
"type": "array",
"title": "Models"
},
"budgetUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Budgetusd"
},
"spentUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Spentusd"
},
"notify": {
"anyOf": [
{
"$ref": "#/components/schemas/NotifyPrefs"
},
{
"type": "null"
}
]
},
"mail": {
"type": "boolean",
"title": "Mail",
"default": false
},
"surface": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Surface"
},
"unsendCurve": {
"anyOf": [
{
"$ref": "#/components/schemas/AnimationCurve"
},
{
"type": "null"
}
]
},
"impersonating": {
"type": "boolean",
"title": "Impersonating",
"default": false
},
"newProjects": {
"anyOf": [
{
"$ref": "#/components/schemas/NewProjectAccess"
},
{
"type": "null"
}
]
},
"claude": {
"anyOf": [
{
"$ref": "#/components/schemas/GuestClaude"
},
{
"type": "null"
}
]
},
"lang": {
"type": "string",
"title": "Lang",
"default": "auto"
},
"autoFresh": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Autofresh"
},
"codeMode": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Codemode"
},
"hubName": {
"type": "string",
"title": "Hubname",
"default": "Homelab"
}
},
"type": "object",
"required": [
"id",
"role",
"name",
"projects",
"models"
],
"title": "Me",
"description": "Who the browser is: the owner, or a guest with their grants."
},
"MePatch": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"notify": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Notify"
},
"lang": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lang"
},
"autoFresh": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Autofresh"
}
},
"type": "object",
"title": "MePatch"
},
"MergeBody": {
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"into": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Into"
}
},
"type": "object",
"required": [
"slug"
],
"title": "MergeBody"
},
"MetaPatch": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"projects": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Projects"
},
"services": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Services"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"committed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Committed"
},
"pushed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pushed"
},
"merged": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Merged"
},
"deployed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Deployed"
},
"notified": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Notified"
},
"notification": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Notification"
},
"worktree": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Worktree"
},
"archived": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Archived"
},
"test": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Test"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"titleSource": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Titlesource"
},
"resources": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Resources"
},
"resourcesRemove": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Resourcesremove"
},
"profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile"
},
"look": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Look"
}
},
"type": "object",
"required": [
"id"
],
"title": "MetaPatch"
},
"MetaUpdateResult": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"meta": {
"$ref": "#/components/schemas/ConvMeta"
}
},
"type": "object",
"required": [
"id",
"meta"
],
"title": "MetaUpdateResult"
},
"ModelInfo": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"displayName": {
"type": "string",
"title": "Displayname"
},
"family": {
"type": "string",
"title": "Family"
},
"version": {
"type": "string",
"title": "Version"
},
"alias": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Alias"
},
"latest": {
"type": "boolean",
"title": "Latest",
"default": false
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"provider": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Provider"
},
"efforts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Efforts"
},
"fast": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Fast"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"contextWindow": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Contextwindow"
},
"unavailable": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unavailable"
},
"key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Key"
},
"vendor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Vendor"
},
"fastMode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fastmode"
}
},
"type": "object",
"required": [
"id",
"displayName",
"family",
"version"
],
"title": "ModelInfo",
"description": "One pickable model (a model tag in the composer)."
},
"ModelPreset": {
"properties": {
"harness": {
"type": "string",
"title": "Harness"
},
"effort": {
"type": "string",
"title": "Effort",
"default": ""
},
"thinking": {
"type": "boolean",
"title": "Thinking",
"default": true
},
"fast": {
"type": "string",
"title": "Fast",
"default": ""
},
"favorite": {
"type": "boolean",
"title": "Favorite",
"default": false
},
"guests": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Guests"
}
},
"type": "object",
"required": [
"harness"
],
"title": "ModelPreset",
"description": "What a run on a model starts with (Settings \u2192 Models, models/presets.py)."
},
"ModelPresetResponse": {
"properties": {
"key": {
"type": "string",
"title": "Key"
},
"preset": {
"$ref": "#/components/schemas/ModelPreset"
}
},
"type": "object",
"required": [
"key",
"preset"
],
"title": "ModelPresetResponse"
},
"ModelUsage": {
"properties": {
"turns": {
"type": "integer",
"title": "Turns"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"cost": {
"type": "number",
"title": "Cost"
},
"planUnits": {
"type": "number",
"title": "Planunits"
},
"usage": {
"anyOf": [
{
"$ref": "#/components/schemas/Usage"
},
{
"type": "null"
}
]
},
"efforts": {
"additionalProperties": {
"$ref": "#/components/schemas/EffortUsage"
},
"type": "object",
"title": "Efforts",
"default": {}
}
},
"type": "object",
"required": [
"turns",
"tokens",
"cost",
"planUnits"
],
"title": "ModelUsage",
"description": "Everything one model id produced in a conversation (per API call,\npriced at that exact version's list price \u2014 see pricing.MODEL_PRICES)."
},
"ModelsResponse": {
"properties": {
"models": {
"items": {
"$ref": "#/components/schemas/ModelInfo"
},
"type": "array",
"title": "Models"
},
"default": {
"type": "string",
"title": "Default"
},
"presets": {
"additionalProperties": {
"$ref": "#/components/schemas/ModelPreset"
},
"type": "object",
"title": "Presets",
"default": {}
}
},
"type": "object",
"required": [
"models",
"default"
],
"title": "ModelsResponse"
},
"MyAiApps": {
"properties": {
"endpoint": {
"type": "string",
"title": "Endpoint"
},
"allowed": {
"type": "boolean",
"title": "Allowed"
},
"connections": {
"items": {
"$ref": "#/components/schemas/McpConnection"
},
"type": "array",
"title": "Connections"
}
},
"type": "object",
"required": [
"endpoint",
"allowed",
"connections"
],
"title": "MyAiApps",
"description": "A guest's (or the owner's) own connections and the URL to paste."
},
"NewProjectAccess": {
"properties": {
"allowed": {
"type": "boolean",
"title": "Allowed"
},
"reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reason"
},
"remaining": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Remaining"
},
"bucket": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Bucket"
},
"domain": {
"type": "string",
"title": "Domain",
"default": "gabvdl.xyz"
}
},
"type": "object",
"required": [
"allowed"
],
"title": "NewProjectAccess",
"description": "Whether the caller may start a project from a template now (the\ncomposer's *\uff0b New project* pick), and where it would be hosted."
},
"NotifAudioBody": {
"properties": {
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Type"
},
"spoken": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spoken"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
},
"audio": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Audio"
}
},
"type": "object",
"title": "NotifAudioBody",
"description": "What a notification sounded like: its type (\u2192 jingle) and spoken line."
},
"NotifConversation": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"title": {
"type": "string",
"title": "Title"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"projects": {
"items": {
"type": "string"
},
"type": "array",
"title": "Projects"
},
"services": {
"items": {
"type": "string"
},
"type": "array",
"title": "Services"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Owner"
},
"resources": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/Resource"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Resources"
},
"look": {
"anyOf": [
{
"$ref": "#/components/schemas/ConvLook"
},
{
"type": "null"
}
]
},
"notifications": {
"items": {
"$ref": "#/components/schemas/ConvNotification"
},
"type": "array",
"title": "Notifications"
}
},
"type": "object",
"required": [
"id",
"title",
"projects",
"services",
"notifications"
],
"title": "NotifConversation",
"description": "A conversation that recorded notify-done pushes, feed-relevant bits only."
},
"NotifMigrateBody": {
"properties": {
"read": {
"items": {
"type": "string"
},
"type": "array",
"title": "Read",
"default": []
},
"unread": {
"items": {
"type": "string"
},
"type": "array",
"title": "Unread",
"default": []
},
"dismissed": {
"items": {
"type": "string"
},
"type": "array",
"title": "Dismissed",
"default": []
},
"by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "By"
}
},
"type": "object",
"title": "NotifMigrateBody",
"description": "A PWA's one-time import of the lists it kept in its ui-state before\nthe server held per-notification state."
},
"NotifSeenBody": {
"properties": {
"ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Ids"
},
"all": {
"type": "boolean",
"title": "All",
"default": false
}
},
"type": "object",
"title": "NotifSeenBody"
},
"NotifStateBody": {
"properties": {
"ids": {
"items": {
"type": "string"
},
"type": "array",
"title": "Ids"
},
"state": {
"type": "string",
"enum": [
"read",
"dismissed"
],
"title": "State"
},
"by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "By"
}
},
"type": "object",
"required": [
"ids",
"state"
],
"title": "NotifStateBody",
"description": "Move notifications forward: ``read`` (expanded \u2014 stays on New) or\n``dismissed`` (swiped \u2014 off New). ``by``: the posting tab's id, echoed on\nthe ``notif-state`` event so that tab can skip it."
},
"NotifStateChange": {
"properties": {
"ok": {
"type": "boolean",
"title": "Ok"
},
"ids": {
"items": {
"type": "string"
},
"type": "array",
"title": "Ids"
},
"state": {
"type": "string",
"enum": [
"read",
"dismissed"
],
"title": "State"
}
},
"type": "object",
"required": [
"ok",
"ids",
"state"
],
"title": "NotifStateChange",
"description": "What ``POST /api/notifications/state`` moved (``ids``: only the ones\nthat changed \u2014 a state never goes backwards)."
},
"NotifStateResponse": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled"
},
"seeded": {
"type": "boolean",
"title": "Seeded"
},
"migrated": {
"type": "boolean",
"title": "Migrated"
},
"floor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Floor"
},
"baseline": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Baseline"
},
"states": {
"additionalProperties": {
"type": "string",
"enum": [
"read",
"dismissed"
]
},
"type": "object",
"title": "States"
}
},
"type": "object",
"required": [
"enabled",
"seeded",
"migrated",
"states"
],
"title": "NotifStateResponse",
"description": "The owner's per-notification state (``notifications/read_ledger.py``):\n``read`` (expanded \u2014 still on New) or ``dismissed`` (swiped \u2014 off New) by\nid; an id not listed is unread, unless its push time is at or before\n``floor`` (the newest one the ledger's cap dropped) or before\n``baseline`` (older than anything the ledger speaks for) \u2014 then\ndismissed. ``enabled`` is false for a guest, whose lists stay in their\nui-state."
},
"NotificationsResponse": {
"properties": {
"conversations": {
"items": {
"$ref": "#/components/schemas/NotifConversation"
},
"type": "array",
"title": "Conversations"
},
"count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Count"
},
"total": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Total"
},
"nextBefore": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Nextbefore"
}
},
"type": "object",
"required": [
"conversations"
],
"title": "NotificationsResponse",
"description": "A page of the feed, newest push first (``GET /api/notifications``)."
},
"NotifyActionBody": {
"properties": {
"index": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Index"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
}
},
"type": "object",
"title": "NotifyActionBody"
},
"NotifyBody": {
"properties": {
"title": {
"type": "string",
"title": "Title"
},
"message": {
"type": "string",
"title": "Message"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Type"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Image"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Icon"
},
"color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Color"
},
"channel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Channel"
},
"importance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Importance"
},
"vibrationPattern": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Vibrationpattern"
},
"tag": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tag"
},
"persistent": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Persistent"
},
"actions": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Actions"
},
"spoken": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spoken"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id"
},
"final": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Final"
}
},
"type": "object",
"required": [
"title",
"message"
],
"title": "NotifyBody"
},
"NotifyLogEntry": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"kind": {
"type": "string",
"enum": [
"notify",
"ask"
],
"title": "Kind"
},
"title": {
"type": "string",
"title": "Title"
},
"body": {
"type": "string",
"title": "Body"
},
"type": {
"type": "string",
"title": "Type"
},
"url": {
"type": "string",
"title": "Url"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Image"
},
"at": {
"type": "string",
"title": "At"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"to": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "To"
},
"delivered": {
"items": {
"$ref": "#/components/schemas/DeliveryStatus"
},
"type": "array",
"title": "Delivered"
},
"spoken": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Spoken"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile"
},
"options": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Options"
},
"status": {
"anyOf": [
{
"type": "string",
"enum": [
"pending",
"answered",
"expired",
"sent",
"acted"
]
},
{
"type": "null"
}
],
"title": "Status"
},
"answer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Answer"
},
"answerIndex": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Answerindex"
},
"answeredAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Answeredat"
},
"expiresAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expiresat"
},
"actions": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Actions"
},
"actionIndex": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Actionindex"
},
"actionTitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Actiontitle"
},
"actedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Actedat"
}
},
"type": "object",
"required": [
"id",
"kind",
"title",
"body",
"type",
"url",
"at",
"sessionId",
"delivered"
],
"title": "NotifyLogEntry",
"description": "One recorded notification (kind \"notify\") or ask (kind \"ask\")."
},
"NotifyLogResponse": {
"properties": {
"notifications": {
"items": {
"$ref": "#/components/schemas/NotifyLogEntry"
},
"type": "array",
"title": "Notifications"
},
"count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Count"
}
},
"type": "object",
"required": [
"notifications"
],
"title": "NotifyLogResponse"
},
"NotifyPrefs": {
"properties": {
"channels": {
"items": {
"type": "string"
},
"type": "array",
"title": "Channels"
}
},
"type": "object",
"required": [
"channels"
],
"title": "NotifyPrefs"
},
"NotifyResult": {
"properties": {
"ok": {
"type": "boolean",
"title": "Ok"
},
"id": {
"type": "string",
"title": "Id"
},
"delivered": {
"items": {
"$ref": "#/components/schemas/DeliveryStatus"
},
"type": "array",
"title": "Delivered"
}
},
"type": "object",
"required": [
"ok",
"id",
"delivered"
],
"title": "NotifyResult"
},
"OgImage": {
"properties": {
"kind": {
"type": "string",
"enum": [
"url",
"asset"
],
"title": "Kind"
},
"src": {
"type": "string",
"title": "Src"
}
},
"type": "object",
"required": [
"kind",
"src"
],
"title": "OgImage"
},
"OkResponse": {
"properties": {
"ok": {
"type": "boolean",
"title": "Ok"
}
},
"type": "object",
"required": [
"ok"
],
"title": "OkResponse"
},
"OpenRouterModel": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"vendor": {
"type": "string",
"title": "Vendor"
},
"description": {
"type": "string",
"title": "Description",
"default": ""
},
"inputCost": {
"type": "number",
"title": "Inputcost"
},
"outputCost": {
"type": "number",
"title": "Outputcost"
},
"cacheCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cachecost"
},
"contextWindow": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Contextwindow"
},
"modelSize": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Modelsize"
},
"tags": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tags",
"default": []
},
"tier": {
"type": "string",
"title": "Tier",
"default": ""
},
"license": {
"type": "string",
"title": "License",
"default": ""
},
"speedTps": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Speedtps"
}
},
"type": "object",
"required": [
"id",
"name",
"vendor",
"inputCost",
"outputCost"
],
"title": "OpenRouterModel",
"description": "One OpenRouter model a pi.dev session can be spawned on.\n\nThe catalogue behind it is APPE's (models.dev, synced daily) \u2014 see\n`backend/plugins/providers.py` (`appe_catalogue`). Prices are USD per **million** tokens."
},
"OpenRouterModelsResponse": {
"properties": {
"models": {
"items": {
"$ref": "#/components/schemas/OpenRouterModel"
},
"type": "array",
"title": "Models"
},
"source": {
"type": "string",
"title": "Source"
},
"generatedAt": {
"type": "string",
"title": "Generatedat",
"default": ""
}
},
"type": "object",
"required": [
"models",
"source"
],
"title": "OpenRouterModelsResponse"
},
"PairWorkerBody": {
"properties": {
"pairing": {
"type": "string",
"title": "Pairing"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"claudeMode": {
"type": "string",
"title": "Claudemode",
"default": "proxy"
},
"claudeAccounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Claudeaccounts"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile"
},
"default": {
"type": "boolean",
"title": "Default",
"default": false
},
"autoRoute": {
"type": "boolean",
"title": "Autoroute",
"default": false
}
},
"type": "object",
"required": [
"pairing"
],
"title": "PairWorkerBody"
},
"ParentConvRef": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"toolUseId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tooluseid"
},
"agentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agenttype"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
}
},
"type": "object",
"required": [
"id"
],
"title": "ParentConvRef"
},
"PasskeyInvite": {
"properties": {
"url": {
"type": "string",
"title": "Url"
},
"expiresAt": {
"type": "number",
"title": "Expiresat"
}
},
"type": "object",
"required": [
"url",
"expiresAt"
],
"title": "PasskeyInvite",
"description": "A one-time link that adds a passkey (15 min)."
},
"PasskeyOptions": {
"properties": {
"ticket": {
"type": "string",
"title": "Ticket"
},
"publicKey": {
"additionalProperties": true,
"type": "object",
"title": "Publickey"
}
},
"type": "object",
"required": [
"ticket",
"publicKey"
],
"title": "PasskeyOptions",
"description": "A passkey ceremony to run in the browser: ``publicKey`` goes to\n``navigator.credentials.get/create`` (binary fields base64url), ``ticket``\ncomes back with the result."
},
"PastConversation": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"primary": {
"type": "boolean",
"title": "Primary",
"default": false
},
"url": {
"type": "string",
"title": "Url"
},
"excerpt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Excerpt"
},
"excerptUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Excerpturl"
}
},
"type": "object",
"required": [
"id",
"url"
],
"title": "PastConversation",
"description": "An earlier conversation on the subject (conversations/past.py)."
},
"PastConversationsResponse": {
"properties": {
"subjects": {
"items": {
"$ref": "#/components/schemas/PastSubject"
},
"type": "array",
"title": "Subjects"
},
"skipped": {
"items": {
"type": "string"
},
"type": "array",
"title": "Skipped"
},
"maxAgeDays": {
"type": "integer",
"title": "Maxagedays"
}
},
"type": "object",
"required": [
"subjects",
"skipped",
"maxAgeDays"
],
"title": "PastConversationsResponse"
},
"PastRunning": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"url": {
"type": "string",
"title": "Url"
}
},
"type": "object",
"required": [
"id",
"url"
],
"title": "PastRunning"
},
"PastSubject": {
"properties": {
"key": {
"type": "string",
"title": "Key"
},
"kind": {
"type": "string",
"title": "Kind"
},
"id": {
"type": "string",
"title": "Id"
},
"label": {
"type": "string",
"title": "Label"
},
"sources": {
"items": {
"type": "string"
},
"type": "array",
"title": "Sources"
},
"running": {
"items": {
"$ref": "#/components/schemas/PastRunning"
},
"type": "array",
"title": "Running"
},
"past": {
"items": {
"$ref": "#/components/schemas/PastConversation"
},
"type": "array",
"title": "Past"
},
"more": {
"type": "integer",
"title": "More"
}
},
"type": "object",
"required": [
"key",
"kind",
"id",
"label",
"sources",
"running",
"past",
"more"
],
"title": "PastSubject",
"description": "One subject asked about: a Linear issue (a PR or a branch counts as\nits issue), else the PR or branch itself."
},
"PendingLogin": {
"properties": {
"loginId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Loginid"
},
"account": {
"type": "string",
"title": "Account"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"userCode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Usercode"
},
"flow": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Flow"
},
"startedAt": {
"type": "integer",
"title": "Startedat"
},
"expiresAt": {
"type": "integer",
"title": "Expiresat"
}
},
"type": "object",
"required": [
"account",
"startedAt",
"expiresAt"
],
"title": "PendingLogin",
"description": "A headless login waiting on the user: ``claude auth login`` waiting for\nthe code its sign-in page shows (sidecar/claude_cli.py), or \u2014 ``flow:\n\"device\"`` \u2014 opencode's ChatGPT device flow waiting for ``userCode`` to be\nentered at ``url`` (sidecar/opencode_cli.py)."
},
"PerfAgentsNow": {
"properties": {
"count": {
"type": "integer",
"title": "Count"
},
"cpu": {
"type": "number",
"title": "Cpu"
},
"rss": {
"type": "integer",
"title": "Rss"
},
"procs": {
"type": "integer",
"title": "Procs"
}
},
"type": "object",
"required": [
"count",
"cpu",
"rss",
"procs"
],
"title": "PerfAgentsNow"
},
"PerfCall": {
"properties": {
"toolUseId": {
"type": "string",
"title": "Tooluseid"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"agentId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agentid"
},
"agentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agenttype"
},
"promptId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Promptid"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status"
},
"source": {
"type": "string",
"title": "Source"
},
"background": {
"type": "boolean",
"title": "Background",
"default": false
},
"seen": {
"type": "boolean",
"title": "Seen",
"default": false
},
"startedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"endedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"wall": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Wall"
},
"exitCode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Exitcode"
},
"signal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Signal"
},
"cpu": {
"type": "number",
"title": "Cpu",
"default": 0
},
"peakRss": {
"type": "integer",
"title": "Peakrss",
"default": 0
},
"readBytes": {
"type": "integer",
"title": "Readbytes",
"default": 0
},
"writeBytes": {
"type": "integer",
"title": "Writebytes",
"default": 0
},
"gpuSeconds": {
"type": "number",
"title": "Gpuseconds",
"default": 0
},
"gpuMem": {
"type": "integer",
"title": "Gpumem",
"default": 0
},
"procs": {
"type": "integer",
"title": "Procs",
"default": 0
},
"liveProcs": {
"type": "integer",
"title": "Liveprocs",
"default": 0
},
"ran": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ran"
},
"overflow": {
"type": "integer",
"title": "Overflow",
"default": 0
},
"components": {
"items": {
"$ref": "#/components/schemas/PerfCallPart"
},
"type": "array",
"title": "Components",
"default": []
},
"processes": {
"items": {
"$ref": "#/components/schemas/PerfCallProc"
},
"type": "array",
"title": "Processes",
"default": []
},
"tool": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tool"
},
"filePath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Filepath"
},
"agent": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent"
},
"adopted": {
"type": "boolean",
"title": "Adopted",
"default": false
},
"files": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfCallFiles"
},
{
"type": "null"
}
]
},
"command": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Command"
},
"script": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Script"
},
"scriptGuess": {
"type": "boolean",
"title": "Scriptguess",
"default": false
}
},
"type": "object",
"required": [
"toolUseId",
"source"
],
"title": "PerfCall"
},
"PerfCallFileDir": {
"properties": {
"dir": {
"type": "string",
"title": "Dir"
},
"net": {
"type": "integer",
"title": "Net"
},
"files": {
"type": "integer",
"title": "Files"
}
},
"type": "object",
"required": [
"dir",
"net",
"files"
],
"title": "PerfCallFileDir"
},
"PerfCallFileTop": {
"properties": {
"path": {
"type": "string",
"title": "Path"
},
"delta": {
"type": "integer",
"title": "Delta"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Size"
},
"op": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Op"
},
"created": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Created"
},
"deleted": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Deleted"
}
},
"type": "object",
"required": [
"path",
"delta"
],
"title": "PerfCallFileTop"
},
"PerfCallFiles": {
"properties": {
"written": {
"type": "integer",
"title": "Written"
},
"freed": {
"type": "integer",
"title": "Freed"
},
"net": {
"type": "integer",
"title": "Net"
},
"logical": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Logical"
},
"created": {
"type": "integer",
"title": "Created",
"default": 0
},
"deleted": {
"type": "integer",
"title": "Deleted",
"default": 0
},
"files": {
"type": "integer",
"title": "Files",
"default": 0
},
"events": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Events"
},
"exact": {
"type": "boolean",
"title": "Exact",
"default": true
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source"
},
"top": {
"items": {
"$ref": "#/components/schemas/PerfCallFileTop"
},
"type": "array",
"title": "Top",
"default": []
},
"dirs": {
"items": {
"$ref": "#/components/schemas/PerfCallFileDir"
},
"type": "array",
"title": "Dirs",
"default": []
}
},
"type": "object",
"required": [
"written",
"freed",
"net"
],
"title": "PerfCallFiles",
"description": "What the call left on disk \u2014 exact: agent-probe's eBPF follows every\nfile its processes write, unlink or rename over (a Write / Edit: the\nhook's stat before and after)."
},
"PerfCallPart": {
"properties": {
"text": {
"type": "string",
"title": "Text"
},
"program": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Program"
},
"op": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Op"
},
"background": {
"type": "boolean",
"title": "Background",
"default": false
},
"depth": {
"type": "integer",
"title": "Depth",
"default": 0
},
"builtin": {
"type": "boolean",
"title": "Builtin",
"default": false
},
"other": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Other"
},
"pids": {
"items": {
"type": "integer"
},
"type": "array",
"title": "Pids",
"default": []
},
"cpu": {
"type": "number",
"title": "Cpu",
"default": 0
},
"peakRss": {
"type": "integer",
"title": "Peakrss",
"default": 0
},
"exitCode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Exitcode"
},
"startedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"endedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Endedat"
}
},
"type": "object",
"required": [
"text"
],
"title": "PerfCallPart",
"description": "A part of the command line (``a && b | c``) and what it ran."
},
"PerfCallProc": {
"properties": {
"pid": {
"type": "integer",
"title": "Pid"
},
"ppid": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Ppid"
},
"depth": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Depth"
},
"label": {
"type": "string",
"title": "Label"
},
"argv": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Argv"
},
"startedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"endedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"cpu": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cpu"
},
"cpuOwn": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cpuown"
},
"peakRss": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Peakrss"
},
"exitCode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Exitcode"
},
"signal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Signal"
},
"exact": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Exact"
},
"cpuUnseen": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cpuunseen"
},
"gpuS": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Gpus"
},
"gpuMem": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Gpumem"
},
"readBytes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Readbytes"
},
"writeBytes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Writebytes"
}
},
"type": "object",
"required": [
"pid",
"label"
],
"title": "PerfCallProc",
"description": "One process a call started \u2014 exact (``exact``) when the kernel\nreported its exit, sampled otherwise."
},
"PerfCalls": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"calls": {
"items": {
"$ref": "#/components/schemas/PerfCall"
},
"type": "array",
"title": "Calls"
},
"cursor": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cursor"
},
"delta": {
"type": "boolean",
"title": "Delta",
"default": false
},
"marks": {
"items": {
"$ref": "#/components/schemas/PerfMark"
},
"type": "array",
"title": "Marks",
"default": []
},
"storage": {
"additionalProperties": {
"$ref": "#/components/schemas/PerfStorageGrow"
},
"type": "object",
"title": "Storage",
"default": {}
}
},
"type": "object",
"required": [
"sessionId",
"calls"
],
"title": "PerfCalls",
"description": "``GET /api/perf/conversation/{sid}/calls[?since=]``: whole, or only the\ncalls ingested after ``since`` (``delta``) \u2014 merge those by ``toolUseId``.\nPoll with ``since = cursor - 30``."
},
"PerfCommand": {
"properties": {
"label": {
"type": "string",
"title": "Label"
},
"count": {
"type": "integer",
"title": "Count"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"maxCpuSeconds": {
"type": "number",
"title": "Maxcpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"avgDuration": {
"type": "number",
"title": "Avgduration"
},
"lastSeen": {
"type": "number",
"title": "Lastseen"
},
"example": {
"$ref": "#/components/schemas/PerfCommandExample"
},
"top": {
"items": {
"$ref": "#/components/schemas/PerfCommandTop"
},
"type": "array",
"title": "Top"
},
"guests": {
"items": {
"type": "string"
},
"type": "array",
"title": "Guests",
"default": []
}
},
"type": "object",
"required": [
"label",
"count",
"conversations",
"cpuSeconds",
"maxCpuSeconds",
"peakRss",
"avgDuration",
"lastSeen",
"example",
"top"
],
"title": "PerfCommand"
},
"PerfCommandExample": {
"properties": {
"cmd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cmd"
},
"runner": {
"type": "string",
"title": "Runner"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"duration": {
"type": "number",
"title": "Duration"
},
"toolUseId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tooluseid"
}
},
"type": "object",
"required": [
"runner",
"sessionId",
"cpuSeconds",
"peakRss",
"duration"
],
"title": "PerfCommandExample"
},
"PerfCommandRun": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"pid": {
"type": "integer",
"title": "Pid"
},
"startedAt": {
"type": "number",
"title": "Startedat"
},
"label": {
"type": "string",
"title": "Label"
},
"cmd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cmd"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"duration": {
"type": "number",
"title": "Duration"
},
"toolUseId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tooluseid"
},
"exitCode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Exitcode"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source"
},
"agentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agenttype"
}
},
"type": "object",
"required": [
"runner",
"pid",
"startedAt",
"label",
"cpuSeconds",
"peakRss",
"duration"
],
"title": "PerfCommandRun",
"description": "One Bash command a conversation ran (it and everything under it)."
},
"PerfCommandTop": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
}
},
"type": "object",
"required": [
"sessionId",
"cpuSeconds"
],
"title": "PerfCommandTop"
},
"PerfCommands": {
"properties": {
"range": {
"type": "string",
"title": "Range"
},
"kind": {
"type": "string",
"title": "Kind"
},
"rows": {
"items": {
"$ref": "#/components/schemas/PerfCommand"
},
"type": "array",
"title": "Rows"
}
},
"type": "object",
"required": [
"range",
"kind",
"rows"
],
"title": "PerfCommands"
},
"PerfConversation": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"tracked": {
"type": "boolean",
"title": "Tracked"
},
"live": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfLiveNow"
},
{
"type": "null"
}
]
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"peakProcs": {
"type": "integer",
"title": "Peakprocs"
},
"peakCpu": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Peakcpu"
},
"runs": {
"type": "integer",
"title": "Runs",
"default": 0
},
"firstSeen": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Firstseen"
},
"lastSeen": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lastseen"
},
"heaviest": {
"items": {
"$ref": "#/components/schemas/PerfHeaviest"
},
"type": "array",
"title": "Heaviest"
},
"commands": {
"items": {
"$ref": "#/components/schemas/PerfCommandRun"
},
"type": "array",
"title": "Commands",
"default": []
},
"processes": {
"items": {
"$ref": "#/components/schemas/PerfProcess"
},
"type": "array",
"title": "Processes",
"default": []
},
"leftovers": {
"items": {
"$ref": "#/components/schemas/PerfLeftover"
},
"type": "array",
"title": "Leftovers",
"default": []
}
},
"type": "object",
"required": [
"sessionId",
"tracked",
"cpuSeconds",
"peakRss",
"peakProcs",
"heaviest"
],
"title": "PerfConversation"
},
"PerfConversationRow": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source"
},
"firstSeen": {
"type": "number",
"title": "Firstseen"
},
"lastSeen": {
"type": "number",
"title": "Lastseen"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"peakCpu": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Peakcpu"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
},
"peakProcs": {
"type": "integer",
"title": "Peakprocs"
},
"runs": {
"type": "integer",
"title": "Runs"
},
"live": {
"type": "boolean",
"title": "Live"
},
"heaviest": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfHeaviest"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"runner",
"sessionId",
"firstSeen",
"lastSeen",
"cpuSeconds",
"peakRss",
"peakProcs",
"runs",
"live"
],
"title": "PerfConversationRow"
},
"PerfConversationStorage": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"items": {
"items": {
"$ref": "#/components/schemas/PerfStorageItem"
},
"type": "array",
"title": "Items"
},
"left": {
"type": "integer",
"title": "Left"
},
"transcript": {
"type": "integer",
"title": "Transcript"
},
"grows": {
"additionalProperties": {
"$ref": "#/components/schemas/PerfStorageGrow"
},
"type": "object",
"title": "Grows",
"default": {}
},
"writes": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfStorageWrites"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"sessionId",
"items",
"left",
"transcript"
],
"title": "PerfConversationStorage"
},
"PerfConversations": {
"properties": {
"range": {
"type": "string",
"title": "Range"
},
"rows": {
"items": {
"$ref": "#/components/schemas/PerfConversationRow"
},
"type": "array",
"title": "Rows"
}
},
"type": "object",
"required": [
"range",
"rows"
],
"title": "PerfConversations"
},
"PerfDisk": {
"properties": {
"mount": {
"type": "string",
"title": "Mount"
},
"fsType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fstype"
},
"ram": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Ram"
},
"total": {
"type": "integer",
"title": "Total"
},
"free": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Free"
},
"avail": {
"type": "integer",
"title": "Avail"
},
"device": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Device"
},
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
},
"agents": {
"additionalProperties": {
"$ref": "#/components/schemas/PerfStorageKind"
},
"type": "object",
"title": "Agents",
"default": {}
},
"emptyScratch": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Emptyscratch"
}
},
"type": "object",
"required": [
"mount",
"total",
"avail"
],
"title": "PerfDisk"
},
"PerfHeaviest": {
"properties": {
"label": {
"type": "string",
"title": "Label"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"peakRss": {
"type": "integer",
"title": "Peakrss"
}
},
"type": "object",
"required": [
"label",
"cpuSeconds",
"peakRss"
],
"title": "PerfHeaviest"
},
"PerfHistory": {
"properties": {
"range": {
"type": "string",
"title": "Range"
},
"step": {
"type": "integer",
"title": "Step"
},
"t": {
"items": {
"type": "number"
},
"type": "array",
"title": "T"
},
"machines": {
"items": {
"$ref": "#/components/schemas/PerfMachineSeries"
},
"type": "array",
"title": "Machines"
},
"series": {
"items": {
"$ref": "#/components/schemas/PerfSeries"
},
"type": "array",
"title": "Series"
},
"other": {
"$ref": "#/components/schemas/PerfOther"
}
},
"type": "object",
"required": [
"range",
"step",
"t",
"machines",
"series",
"other"
],
"title": "PerfHistory"
},
"PerfHost": {
"properties": {
"cpus": {
"type": "integer",
"title": "Cpus"
},
"cpu": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cpu"
},
"memTotal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Memtotal"
},
"memAvailable": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Memavailable"
},
"swapTotal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Swaptotal"
},
"swapUsed": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Swapused"
},
"load": {
"anyOf": [
{
"items": {
"type": "number"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Load"
}
},
"type": "object",
"required": [
"cpus"
],
"title": "PerfHost"
},
"PerfLeftover": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"procs": {
"type": "integer",
"title": "Procs"
},
"rss": {
"type": "integer",
"title": "Rss"
},
"cpu": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cpu"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"processes": {
"items": {
"$ref": "#/components/schemas/PerfProcess"
},
"type": "array",
"title": "Processes"
}
},
"type": "object",
"required": [
"runner",
"sessionId",
"procs",
"rss",
"cpuSeconds",
"processes"
],
"title": "PerfLeftover"
},
"PerfLive": {
"properties": {
"at": {
"type": "number",
"title": "At"
},
"machines": {
"items": {
"$ref": "#/components/schemas/PerfMachine"
},
"type": "array",
"title": "Machines"
},
"sessions": {
"items": {
"$ref": "#/components/schemas/PerfSession"
},
"type": "array",
"title": "Sessions"
},
"leftovers": {
"items": {
"$ref": "#/components/schemas/PerfLeftover"
},
"type": "array",
"title": "Leftovers"
},
"settings": {
"$ref": "#/components/schemas/PerfSettings"
}
},
"type": "object",
"required": [
"at",
"machines",
"sessions",
"leftovers",
"settings"
],
"title": "PerfLive"
},
"PerfLiveNow": {
"properties": {
"cpu": {
"type": "number",
"title": "Cpu"
},
"rss": {
"type": "integer",
"title": "Rss"
},
"procs": {
"type": "integer",
"title": "Procs"
}
},
"type": "object",
"required": [
"cpu",
"rss",
"procs"
],
"title": "PerfLiveNow"
},
"PerfMachine": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"platform": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Platform"
},
"online": {
"type": "boolean",
"title": "Online"
},
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"unsupported": {
"type": "boolean",
"title": "Unsupported",
"default": false
},
"host": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfHost"
},
{
"type": "null"
}
]
},
"scanMs": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Scanms"
},
"agents": {
"$ref": "#/components/schemas/PerfAgentsNow"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Owner"
}
},
"type": "object",
"required": [
"id",
"name",
"online",
"agents"
],
"title": "PerfMachine"
},
"PerfMachineSeries": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"platform": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Platform"
},
"memTotal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Memtotal"
},
"cpus": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Cpus"
},
"cpu": {
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"type": "array",
"title": "Cpu"
},
"mem": {
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"type": "array",
"title": "Mem"
}
},
"type": "object",
"required": [
"id",
"name",
"cpu",
"mem"
],
"title": "PerfMachineSeries"
},
"PerfMark": {
"properties": {
"event": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Event"
},
"promptId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Promptid"
},
"agentId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agentid"
},
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
},
"plan": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Plan"
},
"usage": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Usage"
},
"derived": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Derived"
}
},
"type": "object",
"title": "PerfMark",
"description": "A turn or subagent boundary: the plan and the official usage reading\n(account-wide, whole percents) at that moment \u2014 recorded by claude-probe,\nderived from the usage history for agent-probe's."
},
"PerfOther": {
"properties": {
"cpu": {
"items": {
"type": "number"
},
"type": "array",
"title": "Cpu"
},
"rss": {
"items": {
"type": "integer"
},
"type": "array",
"title": "Rss"
}
},
"type": "object",
"required": [
"cpu",
"rss"
],
"title": "PerfOther"
},
"PerfProcess": {
"properties": {
"pid": {
"type": "integer",
"title": "Pid"
},
"ppid": {
"type": "integer",
"title": "Ppid"
},
"depth": {
"type": "integer",
"title": "Depth"
},
"label": {
"type": "string",
"title": "Label"
},
"cmd": {
"type": "string",
"title": "Cmd"
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind"
},
"cpu": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cpu"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"rss": {
"type": "integer",
"title": "Rss"
},
"threads": {
"type": "integer",
"title": "Threads"
},
"treeCpuSeconds": {
"type": "number",
"title": "Treecpuseconds"
},
"treeRss": {
"type": "integer",
"title": "Treerss"
},
"startedAt": {
"type": "number",
"title": "Startedat"
},
"detached": {
"type": "boolean",
"title": "Detached",
"default": false
},
"leftoverSince": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Leftoversince"
},
"kept": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Kept"
},
"keptByLabel": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Keptbylabel"
},
"autoKillAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Autokillat"
}
},
"type": "object",
"required": [
"pid",
"ppid",
"depth",
"label",
"cmd",
"cpuSeconds",
"rss",
"threads",
"treeCpuSeconds",
"treeRss",
"startedAt"
],
"title": "PerfProcess"
},
"PerfSeries": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"cpu": {
"items": {
"type": "number"
},
"type": "array",
"title": "Cpu"
},
"rss": {
"items": {
"type": "integer"
},
"type": "array",
"title": "Rss"
}
},
"type": "object",
"required": [
"runner",
"sessionId",
"cpu",
"rss"
],
"title": "PerfSeries"
},
"PerfSeriesOne": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"step": {
"type": "integer",
"title": "Step"
},
"t": {
"items": {
"type": "number"
},
"type": "array",
"title": "T"
},
"cpu": {
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"type": "array",
"title": "Cpu"
},
"rss": {
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"type": "array",
"title": "Rss"
}
},
"type": "object",
"required": [
"sessionId",
"step",
"t",
"cpu",
"rss"
],
"title": "PerfSeriesOne"
},
"PerfSession": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"rootPid": {
"type": "integer",
"title": "Rootpid"
},
"startedAt": {
"type": "number",
"title": "Startedat"
},
"cpu": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cpu"
},
"cpuSeconds": {
"type": "number",
"title": "Cpuseconds"
},
"rss": {
"type": "integer",
"title": "Rss"
},
"procs": {
"type": "integer",
"title": "Procs"
},
"threads": {
"type": "integer",
"title": "Threads"
},
"processes": {
"items": {
"$ref": "#/components/schemas/PerfProcess"
},
"type": "array",
"title": "Processes"
}
},
"type": "object",
"required": [
"runner",
"sessionId",
"rootPid",
"startedAt",
"cpuSeconds",
"rss",
"procs",
"threads",
"processes"
],
"title": "PerfSession"
},
"PerfSettings": {
"properties": {
"autoKill": {
"type": "boolean",
"title": "Autokill"
},
"autoKillHours": {
"type": "integer",
"title": "Autokillhours"
},
"keepLabels": {
"items": {
"type": "string"
},
"type": "array",
"title": "Keeplabels"
}
},
"type": "object",
"required": [
"autoKill",
"autoKillHours",
"keepLabels"
],
"title": "PerfSettings"
},
"PerfStorage": {
"properties": {
"at": {
"type": "number",
"title": "At"
},
"runners": {
"items": {
"$ref": "#/components/schemas/PerfStorageRunner"
},
"type": "array",
"title": "Runners"
}
},
"type": "object",
"required": [
"at",
"runners"
],
"title": "PerfStorage"
},
"PerfStorageConfig": {
"properties": {
"roots": {
"items": {
"$ref": "#/components/schemas/PerfStorageRoot"
},
"type": "array",
"title": "Roots",
"default": []
},
"autoCleanDays": {
"type": "number",
"title": "Autocleandays"
},
"nudgeAt": {
"type": "number",
"title": "Nudgeat"
}
},
"type": "object",
"required": [
"autoCleanDays",
"nudgeAt"
],
"title": "PerfStorageConfig"
},
"PerfStorageConv": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
}
},
"type": "object",
"required": [
"sessionId"
],
"title": "PerfStorageConv"
},
"PerfStorageEntry": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"own": {
"type": "integer",
"title": "Own"
},
"files": {
"type": "integer",
"title": "Files",
"default": 0
}
},
"type": "object",
"required": [
"name",
"bytes",
"own"
],
"title": "PerfStorageEntry"
},
"PerfStorageGit": {
"properties": {
"repo": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Repo"
},
"branch": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Branch"
},
"head": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Head"
},
"base": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Base"
},
"merged": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Merged"
},
"ahead": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Ahead"
},
"dirty": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Dirty"
},
"locked": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Locked"
},
"native": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Native"
},
"idleS": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Idles"
},
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"title": "PerfStorageGit"
},
"PerfStorageGrow": {
"properties": {
"toolUseId": {
"type": "string",
"title": "Tooluseid"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"agentId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agentid"
},
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
},
"items": {
"items": {
"$ref": "#/components/schemas/PerfStorageGrowItem"
},
"type": "array",
"title": "Items",
"default": []
}
},
"type": "object",
"required": [
"toolUseId"
],
"title": "PerfStorageGrow"
},
"PerfStorageGrowItem": {
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"path": {
"type": "string",
"title": "Path"
},
"delta": {
"type": "integer",
"title": "Delta"
},
"own": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Own"
},
"new": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "New"
}
},
"type": "object",
"required": [
"kind",
"path",
"delta"
],
"title": "PerfStorageGrowItem"
},
"PerfStorageHistory": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"mount": {
"type": "string",
"title": "Mount"
},
"range": {
"type": "string",
"title": "Range"
},
"points": {
"items": {
"$ref": "#/components/schemas/PerfStorageHistoryPoint"
},
"type": "array",
"title": "Points"
}
},
"type": "object",
"required": [
"runner",
"mount",
"range",
"points"
],
"title": "PerfStorageHistory"
},
"PerfStorageHistoryPoint": {
"properties": {
"t": {
"type": "number",
"title": "T"
},
"total": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Total"
},
"avail": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Avail"
},
"claude": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Claude"
}
},
"type": "object",
"required": [
"t"
],
"title": "PerfStorageHistoryPoint"
},
"PerfStorageItem": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"path": {
"type": "string",
"title": "Path"
},
"kind": {
"type": "string",
"title": "Kind"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"agent": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"sessions": {
"items": {
"type": "string"
},
"type": "array",
"title": "Sessions",
"default": []
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"own": {
"type": "integer",
"title": "Own"
},
"files": {
"type": "integer",
"title": "Files"
},
"newestAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Newestat"
},
"idleS": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Idles"
},
"mount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Mount"
},
"ram": {
"type": "boolean",
"title": "Ram",
"default": false
},
"partial": {
"type": "boolean",
"title": "Partial",
"default": false
},
"top": {
"items": {
"$ref": "#/components/schemas/PerfStorageEntry"
},
"type": "array",
"title": "Top",
"default": []
},
"git": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfStorageGit"
},
{
"type": "null"
}
]
},
"createdBy": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfStorageOrigin"
},
{
"type": "null"
}
]
},
"scannedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Scannedat"
},
"gone": {
"type": "boolean",
"title": "Gone",
"default": false
},
"goneAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Goneat"
},
"running": {
"type": "boolean",
"title": "Running",
"default": false
},
"verdict": {
"type": "string",
"title": "Verdict"
},
"conversations": {
"items": {
"$ref": "#/components/schemas/PerfStorageConv"
},
"type": "array",
"title": "Conversations",
"default": []
},
"guests": {
"items": {
"type": "string"
},
"type": "array",
"title": "Guests",
"default": []
}
},
"type": "object",
"required": [
"runner",
"path",
"kind",
"bytes",
"own",
"files",
"verdict"
],
"title": "PerfStorageItem"
},
"PerfStorageKind": {
"properties": {
"items": {
"type": "integer",
"title": "Items"
},
"bytes": {
"type": "integer",
"title": "Bytes"
},
"own": {
"type": "integer",
"title": "Own"
}
},
"type": "object",
"required": [
"items",
"bytes",
"own"
],
"title": "PerfStorageKind"
},
"PerfStorageOrigin": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"toolUseId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tooluseid"
},
"agentId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agentid"
},
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"required": [
"sessionId"
],
"title": "PerfStorageOrigin"
},
"PerfStorageRemoval": {
"properties": {
"path": {
"type": "string",
"title": "Path"
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind"
},
"freed": {
"type": "integer",
"title": "Freed",
"default": 0
},
"branch": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Branch"
},
"note": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Note"
},
"dry": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Dry"
}
},
"type": "object",
"required": [
"path"
],
"title": "PerfStorageRemoval"
},
"PerfStorageRmResult": {
"properties": {
"ok": {
"type": "boolean",
"title": "Ok"
},
"removal": {
"anyOf": [
{
"$ref": "#/components/schemas/PerfStorageRemoval"
},
{
"type": "null"
}
]
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"unsafe": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Unsafe"
}
},
"type": "object",
"required": [
"ok"
],
"title": "PerfStorageRmResult"
},
"PerfStorageRoot": {
"properties": {
"path": {
"type": "string",
"title": "Path"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"worktrees": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Worktrees"
}
},
"type": "object",
"required": [
"path"
],
"title": "PerfStorageRoot"
},
"PerfStorageRunner": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"disks": {
"items": {
"$ref": "#/components/schemas/PerfDisk"
},
"type": "array",
"title": "Disks"
},
"kinds": {
"additionalProperties": {
"$ref": "#/components/schemas/PerfStorageKind"
},
"type": "object",
"title": "Kinds"
},
"items": {
"items": {
"$ref": "#/components/schemas/PerfStorageItem"
},
"type": "array",
"title": "Items"
},
"emptyScratch": {
"type": "integer",
"title": "Emptyscratch"
},
"stale": {
"$ref": "#/components/schemas/PerfStorageStale"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Owner"
}
},
"type": "object",
"required": [
"runner",
"disks",
"kinds",
"items",
"emptyScratch",
"stale"
],
"title": "PerfStorageRunner"
},
"PerfStorageScanResult": {
"properties": {
"done": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Done"
},
"extra": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Extra"
}
},
"type": "object",
"title": "PerfStorageScanResult"
},
"PerfStorageStale": {
"properties": {
"items": {
"type": "integer",
"title": "Items"
},
"own": {
"type": "integer",
"title": "Own"
}
},
"type": "object",
"required": [
"items",
"own"
],
"title": "PerfStorageStale"
},
"PerfStorageWriter": {
"properties": {
"toolUseId": {
"type": "string",
"title": "Tooluseid"
},
"runner": {
"type": "string",
"title": "Runner"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"tool": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tool"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"command": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Command"
},
"startedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"net": {
"type": "integer",
"title": "Net"
},
"written": {
"type": "integer",
"title": "Written"
},
"freed": {
"type": "integer",
"title": "Freed"
},
"files": {
"type": "integer",
"title": "Files"
},
"top": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Top",
"default": []
},
"dirs": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Dirs",
"default": []
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"guest": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guest"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
}
},
"type": "object",
"required": [
"toolUseId",
"runner",
"sessionId",
"net",
"written",
"freed",
"files"
],
"title": "PerfStorageWriter"
},
"PerfStorageWriters": {
"properties": {
"range": {
"type": "string",
"title": "Range"
},
"rows": {
"items": {
"$ref": "#/components/schemas/PerfStorageWriter"
},
"type": "array",
"title": "Rows"
}
},
"type": "object",
"required": [
"range",
"rows"
],
"title": "PerfStorageWriters"
},
"PerfStorageWrites": {
"properties": {
"calls": {
"type": "integer",
"title": "Calls"
},
"written": {
"type": "integer",
"title": "Written"
},
"freed": {
"type": "integer",
"title": "Freed"
},
"net": {
"type": "integer",
"title": "Net"
}
},
"type": "object",
"required": [
"calls",
"written",
"freed",
"net"
],
"title": "PerfStorageWrites",
"description": "What the conversation's calls wrote and freed, exact (agent-probe, Linux)."
},
"PermissionDef": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"group": {
"type": "string",
"title": "Group"
},
"label": {
"type": "string",
"title": "Label"
},
"help": {
"type": "string",
"title": "Help"
},
"tier": {
"type": "string",
"title": "Tier"
},
"kind": {
"type": "string",
"title": "Kind"
},
"core": {
"type": "boolean",
"title": "Core",
"default": false
}
},
"type": "object",
"required": [
"id",
"group",
"label",
"help",
"tier",
"kind"
],
"title": "PermissionDef"
},
"PermissionGroup": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"label": {
"type": "string",
"title": "Label"
}
},
"type": "object",
"required": [
"id",
"label"
],
"title": "PermissionGroup"
},
"PlanBody": {
"properties": {
"account": {
"type": "string",
"title": "Account"
},
"since": {
"type": "number",
"title": "Since"
},
"tier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tier"
},
"windows": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Windows"
},
"delete": {
"type": "boolean",
"title": "Delete",
"default": false
}
},
"type": "object",
"required": [
"account",
"since"
],
"title": "PlanBody"
},
"PlanHistory": {
"properties": {
"account": {
"type": "string",
"title": "Account"
},
"current": {
"anyOf": [
{
"$ref": "#/components/schemas/PlanSegment"
},
{
"type": "null"
}
]
},
"history": {
"items": {
"$ref": "#/components/schemas/PlanSegment"
},
"type": "array",
"title": "History",
"default": []
}
},
"type": "object",
"required": [
"account"
],
"title": "PlanHistory"
},
"PlanPct": {
"properties": {
"week": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Week"
},
"h5": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "H5"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"calibratedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Calibratedat"
}
},
"type": "object",
"title": "PlanPct",
"description": "How much of the subscription's windows this conversation used: its\nplan units divided by the account's current calibration (usage/)."
},
"PlanSegment": {
"properties": {
"account": {
"type": "string",
"title": "Account"
},
"since": {
"type": "number",
"title": "Since"
},
"until": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Until"
},
"tier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tier"
},
"label": {
"type": "string",
"title": "Label"
},
"multiplier": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Multiplier"
},
"displayName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Displayname"
},
"subscriptionType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subscriptiontype"
},
"windows": {
"items": {
"type": "string"
},
"type": "array",
"title": "Windows",
"default": []
},
"source": {
"type": "string",
"enum": [
"detected",
"assumed",
"manual"
],
"title": "Source",
"default": "detected"
},
"reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reason"
}
},
"type": "object",
"required": [
"account",
"since",
"label"
],
"title": "PlanSegment",
"description": "A stretch of time an account spent on one plan (usage/plans.py): its\nlogin's rate-limit tier and the limit windows it enforced. Each segment is\ncalibrated on its own hours."
},
"PluginCommand": {
"properties": {
"plugin": {
"type": "string",
"title": "Plugin"
},
"pluginName": {
"type": "string",
"title": "Pluginname"
},
"name": {
"type": "string",
"title": "Name"
},
"summary": {
"type": "string",
"title": "Summary"
},
"description": {
"type": "string",
"title": "Description",
"default": ""
},
"action": {
"type": "string",
"title": "Action"
},
"readOnly": {
"type": "boolean",
"title": "Readonly",
"default": false
},
"args": {
"items": {
"$ref": "#/components/schemas/PluginCommandArg"
},
"type": "array",
"title": "Args",
"default": []
},
"output": {
"anyOf": [
{
"$ref": "#/components/schemas/PluginCommandOutput"
},
{
"type": "null"
}
]
},
"mcp": {
"type": "boolean",
"title": "Mcp",
"default": false
},
"destructive": {
"type": "boolean",
"title": "Destructive",
"default": false
},
"tool": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tool"
}
},
"type": "object",
"required": [
"plugin",
"pluginName",
"name",
"summary",
"action"
],
"title": "PluginCommand",
"description": "``ai-agent plugin <plugin> <name> \u2026``; with ``mcp`` also the MCP tool\n``tool``. ``readOnly`` (the action's) = called by GET."
},
"PluginCommandArg": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"type": {
"type": "string",
"enum": [
"string",
"integer",
"number",
"boolean",
"array"
],
"title": "Type"
},
"help": {
"type": "string",
"title": "Help",
"default": ""
},
"required": {
"type": "boolean",
"title": "Required",
"default": false
},
"positional": {
"type": "boolean",
"title": "Positional",
"default": false
},
"enum": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Enum"
},
"default": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "number"
},
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Default"
}
},
"type": "object",
"required": [
"name",
"type"
],
"title": "PluginCommandArg"
},
"PluginCommandOutput": {
"properties": {
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
},
"rows": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Rows"
},
"columns": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Columns"
}
},
"type": "object",
"title": "PluginCommandOutput",
"description": "How to print the action's answer: one text field, or a list field as\nrows of ``columns``; absent = the JSON answer."
},
"PluginCommandsResponse": {
"properties": {
"commands": {
"items": {
"$ref": "#/components/schemas/PluginCommand"
},
"type": "array",
"title": "Commands",
"default": []
}
},
"type": "object",
"title": "PluginCommandsResponse"
},
"PluginReportSummary": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"ts": {
"type": "integer",
"title": "Ts"
},
"event": {
"type": "string",
"title": "Event"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"summary": {
"additionalProperties": true,
"type": "object",
"title": "Summary"
},
"hasBlob": {
"type": "boolean",
"title": "Hasblob",
"default": false
}
},
"type": "object",
"required": [
"id",
"ts",
"event",
"summary"
],
"title": "PluginReportSummary",
"description": "One path-shim report as a thread item / ``conversations.reports`` carry\nit \u2014 never its blob (``hub/conversations/{cid}/reports/{id}/blob``)."
},
"PresetPatchBody": {
"properties": {
"key": {
"type": "string",
"title": "Key"
},
"patch": {
"additionalProperties": true,
"type": "object",
"title": "Patch"
}
},
"type": "object",
"required": [
"key",
"patch"
],
"title": "PresetPatchBody"
},
"Pricing": {
"properties": {
"model": {
"type": "string",
"title": "Model"
},
"inputPerMTok": {
"type": "number",
"title": "Inputpermtok"
}
},
"type": "object",
"required": [
"model",
"inputPerMTok"
],
"title": "Pricing"
},
"Profile": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"label": {
"type": "string",
"title": "Label"
},
"icon": {
"type": "string",
"title": "Icon"
},
"color": {
"type": "string",
"title": "Color"
},
"workers": {
"items": {
"$ref": "#/components/schemas/ProfileRunner"
},
"type": "array",
"title": "Workers"
},
"retired": {
"items": {
"type": "string"
},
"type": "array",
"title": "Retired",
"default": []
},
"projects": {
"items": {
"type": "string"
},
"type": "array",
"title": "Projects"
},
"default": {
"type": "boolean",
"title": "Default"
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind"
},
"enabled": {
"type": "boolean",
"title": "Enabled",
"default": true
},
"members": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Members"
}
},
"type": "object",
"required": [
"id",
"label",
"icon",
"color",
"workers",
"projects",
"default"
],
"title": "Profile",
"description": "A profile (backend/profiles/): which runners its conversations run on\n\u2014 a conversation belongs to its runner's profile \u2014 its default runner\n(the first), each runner's \u2605 logins and start dir, and its projects."
},
"ProfilePatchBody": {
"properties": {
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Color"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Icon"
},
"projects": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Projects"
},
"workers": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
],
"title": "Workers"
},
"enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Enabled"
},
"accounts": {
"anyOf": [
{
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Accounts"
}
},
"type": "object",
"title": "ProfilePatchBody"
},
"ProfileRunner": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"accounts": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Accounts"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"logins": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"type": "object",
"title": "Logins",
"default": {}
}
},
"type": "object",
"required": [
"id",
"accounts"
],
"title": "ProfileRunner",
"description": "One runner of a profile: the Homelab (``local``) or a paired worker,\nwith what a run there defaults to within the profile."
},
"ProfilesResponse": {
"properties": {
"profiles": {
"items": {
"$ref": "#/components/schemas/Profile"
},
"type": "array",
"title": "Profiles"
},
"default": {
"type": "string",
"title": "Default"
}
},
"type": "object",
"required": [
"profiles",
"default"
],
"title": "ProfilesResponse"
},
"ProjectByType": {
"properties": {
"input": {
"$ref": "#/components/schemas/TokenTypeSpend"
},
"output": {
"$ref": "#/components/schemas/TokenTypeSpend"
},
"cacheRead": {
"$ref": "#/components/schemas/TokenTypeSpend"
},
"cacheWrite": {
"$ref": "#/components/schemas/TokenTypeSpend"
}
},
"type": "object",
"required": [
"input",
"output",
"cacheRead",
"cacheWrite"
],
"title": "ProjectByType"
},
"ProjectCommit": {
"properties": {
"hash": {
"type": "string",
"title": "Hash"
},
"date": {
"type": "string",
"title": "Date"
},
"subject": {
"type": "string",
"title": "Subject"
}
},
"type": "object",
"required": [
"hash",
"date",
"subject"
],
"title": "ProjectCommit"
},
"ProjectCostDetail": {
"properties": {
"cost": {
"type": "number",
"title": "Cost"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"excludeFromTotals": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Excludefromtotals"
},
"byAccount": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/AccountSplit"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Byaccount"
},
"meanCost": {
"type": "number",
"title": "Meancost"
},
"medianCost": {
"type": "number",
"title": "Mediancost"
},
"meanTokens": {
"type": "number",
"title": "Meantokens"
},
"medianTokens": {
"type": "number",
"title": "Mediantokens"
},
"byType": {
"$ref": "#/components/schemas/ProjectByType"
},
"loc": {
"type": "integer",
"title": "Loc"
},
"meanCostPerLoc": {
"type": "number",
"title": "Meancostperloc"
}
},
"type": "object",
"required": [
"cost",
"tokens",
"conversations",
"meanCost",
"medianCost",
"meanTokens",
"medianTokens",
"byType",
"loc",
"meanCostPerLoc"
],
"title": "ProjectCostDetail"
},
"ProjectCostSummary": {
"properties": {
"cost": {
"type": "number",
"title": "Cost"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"excludeFromTotals": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Excludefromtotals"
},
"byAccount": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/AccountSplit"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Byaccount"
}
},
"type": "object",
"required": [
"cost",
"tokens",
"conversations"
],
"title": "ProjectCostSummary"
},
"ProjectDetail": {
"properties": {
"dir": {
"type": "string",
"title": "Dir"
},
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description"
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Version"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"stack": {
"items": {
"type": "string"
},
"type": "array",
"title": "Stack"
},
"keywords": {
"items": {
"type": "string"
},
"type": "array",
"title": "Keywords"
},
"hasPackageJson": {
"type": "boolean",
"title": "Haspackagejson"
},
"goal": {
"anyOf": [
{
"$ref": "#/components/schemas/GoalDetail"
},
{
"type": "null"
}
]
},
"updatedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"costs": {
"anyOf": [
{
"$ref": "#/components/schemas/ProjectCostDetail"
},
{
"type": "null"
}
]
},
"isRoot": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Isroot"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"worker": {
"anyOf": [
{
"$ref": "#/components/schemas/ProjectWorker"
},
{
"type": "null"
}
]
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Path"
},
"mergedFrom": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Mergedfrom"
},
"readme": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Readme"
},
"claudeMd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Claudemd"
},
"indexMeta": {
"anyOf": [
{
"$ref": "#/components/schemas/IndexMeta"
},
{
"type": "null"
}
]
},
"ogImage": {
"anyOf": [
{
"$ref": "#/components/schemas/OgImage"
},
{
"type": "null"
}
]
},
"scripts": {
"items": {
"type": "string"
},
"type": "array",
"title": "Scripts"
},
"keyFiles": {
"items": {
"$ref": "#/components/schemas/KeyFile"
},
"type": "array",
"title": "Keyfiles"
},
"commits": {
"items": {
"$ref": "#/components/schemas/ProjectCommit"
},
"type": "array",
"title": "Commits"
},
"seenAt": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Seenat"
}
},
"type": "object",
"required": [
"dir",
"name",
"description",
"stack",
"keywords",
"hasPackageJson",
"scripts",
"keyFiles",
"commits"
],
"title": "ProjectDetail"
},
"ProjectGrant": {
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"level": {
"type": "string",
"title": "Level"
}
},
"type": "object",
"required": [
"slug",
"level"
],
"title": "ProjectGrant"
},
"ProjectSpend": {
"properties": {
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"usd": {
"type": "number",
"title": "Usd"
},
"ownUsd": {
"type": "number",
"title": "Ownusd",
"default": 0
},
"conversations": {
"type": "integer",
"title": "Conversations",
"default": 0
}
},
"type": "object",
"required": [
"usd"
],
"title": "ProjectSpend"
},
"ProjectSummary": {
"properties": {
"dir": {
"type": "string",
"title": "Dir"
},
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description"
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Version"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"stack": {
"items": {
"type": "string"
},
"type": "array",
"title": "Stack"
},
"keywords": {
"items": {
"type": "string"
},
"type": "array",
"title": "Keywords"
},
"hasPackageJson": {
"type": "boolean",
"title": "Haspackagejson"
},
"goal": {
"anyOf": [
{
"$ref": "#/components/schemas/GoalSummary"
},
{
"type": "null"
}
]
},
"updatedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"costs": {
"anyOf": [
{
"$ref": "#/components/schemas/ProjectCostSummary"
},
{
"type": "null"
}
]
},
"isRoot": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Isroot"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"worker": {
"anyOf": [
{
"$ref": "#/components/schemas/ProjectWorker"
},
{
"type": "null"
}
]
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Path"
},
"mergedFrom": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Mergedfrom"
}
},
"type": "object",
"required": [
"dir",
"name",
"description",
"stack",
"keywords",
"hasPackageJson"
],
"title": "ProjectSummary"
},
"ProjectWorker": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Owner"
},
"platform": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Platform"
}
},
"type": "object",
"required": [
"id",
"name"
],
"title": "ProjectWorker",
"description": "The worker a project lives on (projects/worker_projects.py)."
},
"ProjectsResponse": {
"properties": {
"projects": {
"items": {
"$ref": "#/components/schemas/ProjectSummary"
},
"type": "array",
"title": "Projects"
}
},
"type": "object",
"required": [
"projects"
],
"title": "ProjectsResponse"
},
"PushDevice": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"createdAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"lastOkAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastokat"
},
"lastError": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lasterror"
}
},
"type": "object",
"required": [
"id"
],
"title": "PushDevice",
"description": "A browser a guest turned push on from (users/webpush.py) \u2014 ``id`` is\na hash of its push endpoint."
},
"PushDevices": {
"properties": {
"publicKey": {
"type": "string",
"title": "Publickey"
},
"devices": {
"items": {
"$ref": "#/components/schemas/PushDevice"
},
"type": "array",
"title": "Devices"
},
"prefs": {
"items": {
"$ref": "#/components/schemas/PushPref"
},
"type": "array",
"title": "Prefs",
"default": []
}
},
"type": "object",
"required": [
"publicKey",
"devices"
],
"title": "PushDevices"
},
"PushPref": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"label": {
"type": "string",
"title": "Label"
},
"level": {
"type": "string",
"title": "Level"
},
"default": {
"type": "string",
"title": "Default"
}
},
"type": "object",
"required": [
"id",
"label",
"level",
"default"
],
"title": "PushPref",
"description": "One group of push kinds and what it does on the user's devices\n(users/push_style.py GROUPS) \u2014 the PWA's stand-in for Android channels."
},
"PushPrefsBody": {
"properties": {
"levels": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Levels"
}
},
"type": "object",
"required": [
"levels"
],
"title": "PushPrefsBody"
},
"PushSendResult": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"ok": {
"type": "boolean",
"title": "Ok"
},
"status": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Status"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"dropped": {
"type": "boolean",
"title": "Dropped",
"default": false
}
},
"type": "object",
"required": [
"id",
"ok"
],
"title": "PushSendResult"
},
"PushSubscribeBody": {
"properties": {
"subscription": {
"additionalProperties": true,
"type": "object",
"title": "Subscription"
},
"label": {
"type": "string",
"title": "Label",
"default": ""
}
},
"type": "object",
"required": [
"subscription"
],
"title": "PushSubscribeBody"
},
"PushTestResult": {
"properties": {
"results": {
"items": {
"$ref": "#/components/schemas/PushSendResult"
},
"type": "array",
"title": "Results"
},
"devices": {
"items": {
"$ref": "#/components/schemas/PushDevice"
},
"type": "array",
"title": "Devices"
}
},
"type": "object",
"required": [
"results",
"devices"
],
"title": "PushTestResult"
},
"QueuedFollowup": {
"properties": {
"text": {
"type": "string",
"title": "Text"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"required": [
"text"
],
"title": "QueuedFollowup"
},
"RemoteAccess": {
"properties": {
"hosts": {
"items": {
"type": "string"
},
"type": "array",
"title": "Hosts"
},
"locked": {
"type": "boolean",
"title": "Locked"
},
"lockedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lockedat"
},
"sessions": {
"items": {
"$ref": "#/components/schemas/RemoteSession"
},
"type": "array",
"title": "Sessions"
},
"passkeys": {
"items": {
"$ref": "#/components/schemas/RemotePasskey"
},
"type": "array",
"title": "Passkeys",
"default": []
},
"ttlS": {
"type": "integer",
"title": "Ttls"
},
"idleS": {
"type": "integer",
"title": "Idles"
},
"here": {
"type": "boolean",
"title": "Here",
"default": false
}
},
"type": "object",
"required": [
"hosts",
"locked",
"sessions",
"ttlS",
"idleS"
],
"title": "RemoteAccess",
"description": "Settings \u2192 Security \u2192 *Internet access* (remoteaccess/)."
},
"RemoteLockBody": {
"properties": {
"locked": {
"type": "boolean",
"title": "Locked"
}
},
"type": "object",
"required": [
"locked"
],
"title": "RemoteLockBody"
},
"RemotePasskey": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"created": {
"type": "number",
"title": "Created"
},
"lastUsed": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lastused"
},
"synced": {
"type": "boolean",
"title": "Synced",
"default": false
}
},
"type": "object",
"required": [
"id",
"name",
"created"
],
"title": "RemotePasskey",
"description": "One of the owner's passkeys for the internet address."
},
"RemoteSession": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"created": {
"type": "number",
"title": "Created"
},
"seen": {
"type": "number",
"title": "Seen"
},
"exp": {
"type": "number",
"title": "Exp"
},
"ip": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ip"
},
"ua": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ua"
},
"via": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Via"
},
"current": {
"type": "boolean",
"title": "Current",
"default": false
}
},
"type": "object",
"required": [
"id",
"created",
"seen",
"exp"
],
"title": "RemoteSession",
"description": "One of the owner's sessions on the internet address."
},
"RemoveBody": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
},
"path": {
"type": "string",
"title": "Path"
},
"force": {
"type": "boolean",
"title": "Force",
"default": false
},
"dry": {
"type": "boolean",
"title": "Dry",
"default": false
}
},
"type": "object",
"required": [
"runner",
"path"
],
"title": "RemoveBody"
},
"RepoPlugin": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"marketplace": {
"type": "string",
"title": "Marketplace"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"repo": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Repo"
}
},
"type": "object",
"required": [
"id",
"name",
"marketplace"
],
"title": "RepoPlugin",
"description": "A Claude Code plugin some worker's repo offers through its own\nmarketplace (``<repo>/.claude-plugin/marketplace.json``)."
},
"RepoPluginCell": {
"properties": {
"installed": {
"type": "boolean",
"title": "Installed",
"default": false
},
"enabled": {
"type": "boolean",
"title": "Enabled",
"default": false
},
"desired": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Desired"
},
"override": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Override"
}
},
"type": "object",
"title": "RepoPluginCell",
"description": "One plugin on one worker."
},
"RepoPluginOverridesBody": {
"properties": {
"overrides": {
"additionalProperties": {
"type": "boolean"
},
"type": "object",
"title": "Overrides"
}
},
"type": "object",
"required": [
"overrides"
],
"title": "RepoPluginOverridesBody"
},
"RepoPluginPicksBody": {
"properties": {
"plugins": {
"items": {
"type": "string"
},
"type": "array",
"title": "Plugins"
}
},
"type": "object",
"required": [
"plugins"
],
"title": "RepoPluginPicksBody"
},
"RepoPluginWorker": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"status": {
"type": "string",
"title": "Status",
"default": "unknown"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"repo": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Repo"
},
"marketplace": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Marketplace"
},
"checkedAt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Checkedat"
},
"cells": {
"additionalProperties": {
"$ref": "#/components/schemas/RepoPluginCell"
},
"type": "object",
"title": "Cells",
"default": {}
}
},
"type": "object",
"required": [
"id"
],
"title": "RepoPluginWorker"
},
"RepoPluginsView": {
"properties": {
"plugins": {
"items": {
"$ref": "#/components/schemas/RepoPlugin"
},
"type": "array",
"title": "Plugins"
},
"workers": {
"items": {
"$ref": "#/components/schemas/RepoPluginWorker"
},
"type": "array",
"title": "Workers"
},
"accounts": {
"items": {
"type": "string"
},
"type": "array",
"title": "Accounts"
},
"picks": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"type": "object",
"title": "Picks"
}
},
"type": "object",
"required": [
"plugins",
"workers",
"accounts",
"picks"
],
"title": "RepoPluginsView",
"description": "Repo plugins \u00d7 workers, and each account's picks."
},
"Resource": {
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"label": {
"type": "string",
"title": "Label"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"checks": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Checks"
},
"reviewDecision": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reviewdecision"
},
"primary": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Primary"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"agent",
"user"
]
},
{
"type": "null"
}
],
"title": "Source"
},
"via": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Via"
},
"firstSeen": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Firstseen"
},
"firstTurn": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Firstturn"
}
},
"type": "object",
"required": [
"kind",
"id",
"label"
],
"title": "Resource",
"description": "Something a conversation is about \u2014 a branch, a link, or a plugin's\nkind (a pull request, an issue, a thread) \u2014 merged from the transcript\n(``source: auto``) and what the session recorded (``agent``, ``conv\nadd``) or the owner added (``user``). ``kind:id`` is its identity\n(``pr:orus-tech/orus-monorepo#13722``, ``slack:C02\u2026/1791878511.818179``)."
},
"ResumeBody": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"prompt": {
"type": "string",
"title": "Prompt"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"thinking": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Thinking"
},
"effort": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Effort"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"takeover": {
"type": "boolean",
"title": "Takeover",
"default": false
},
"now": {
"type": "boolean",
"title": "Now",
"default": false
},
"inboxOnly": {
"type": "boolean",
"title": "Inboxonly",
"default": false
},
"chrome": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Chrome"
},
"fresh": {
"type": "boolean",
"title": "Fresh",
"default": false
},
"parent": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Parent"
}
},
"type": "object",
"required": [
"sessionId",
"prompt"
],
"title": "ResumeBody"
},
"RoleClone": {
"properties": {
"clonedFrom": {
"type": "string",
"title": "Clonedfrom"
},
"name": {
"type": "string",
"title": "Name"
}
},
"type": "object",
"required": [
"clonedFrom",
"name"
],
"title": "RoleClone"
},
"RolePatch": {
"properties": {
"perms": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Perms"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
}
},
"type": "object",
"title": "RolePatch"
},
"RoleView": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description"
},
"perms": {
"items": {
"type": "string"
},
"type": "array",
"title": "Perms"
},
"ceiling": {
"items": {
"type": "string"
},
"type": "array",
"title": "Ceiling"
},
"builtin": {
"type": "boolean",
"title": "Builtin"
},
"assignable": {
"type": "boolean",
"title": "Assignable"
},
"editable": {
"type": "boolean",
"title": "Editable"
},
"edited": {
"type": "boolean",
"title": "Edited",
"default": false
},
"clonedFrom": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Clonedfrom"
},
"members": {
"type": "integer",
"title": "Members",
"default": 0
}
},
"type": "object",
"required": [
"id",
"name",
"description",
"perms",
"ceiling",
"builtin",
"assignable",
"editable"
],
"title": "RoleView"
},
"RolesResponse": {
"properties": {
"groups": {
"items": {
"$ref": "#/components/schemas/PermissionGroup"
},
"type": "array",
"title": "Groups"
},
"permissions": {
"items": {
"$ref": "#/components/schemas/PermissionDef"
},
"type": "array",
"title": "Permissions"
},
"roles": {
"items": {
"$ref": "#/components/schemas/RoleView"
},
"type": "array",
"title": "Roles"
},
"tiers": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tiers"
}
},
"type": "object",
"required": [
"groups",
"permissions",
"roles",
"tiers"
],
"title": "RolesResponse"
},
"RunnerPatchBody": {
"properties": {
"accounts": {
"anyOf": [
{
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Accounts"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"default": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Default"
},
"profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile"
}
},
"type": "object",
"title": "RunnerPatchBody"
},
"RunningAgent": {
"properties": {
"toolUseId": {
"type": "string",
"title": "Tooluseid"
},
"agentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agenttype"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
}
},
"type": "object",
"required": [
"toolUseId"
],
"title": "RunningAgent",
"description": "A Task/Agent call that hasn't returned \u2014 i.e. a subagent still running."
},
"ScanBody": {
"properties": {
"runner": {
"type": "string",
"title": "Runner"
}
},
"type": "object",
"required": [
"runner"
],
"title": "ScanBody"
},
"ScheduledRef": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"scheduledAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scheduledat"
},
"shouldStartAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Shouldstartat"
},
"manual": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Manual"
}
},
"type": "object",
"required": [
"id"
],
"title": "ScheduledRef",
"description": "The scheduled conversation (\"Send later\", the scheduled-conversations plugin) that\nstarted a session: when it was scheduled and when it was meant to start \u2014\nthe badge on its card."
},
"SearchConv": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"title": {
"type": "string",
"title": "Title"
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"model": {
"type": "string",
"title": "Model"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
},
"projects": {
"items": {
"type": "string"
},
"type": "array",
"title": "Projects",
"default": []
},
"msgs": {
"items": {
"$ref": "#/components/schemas/SearchMsg"
},
"type": "array",
"title": "Msgs"
}
},
"type": "object",
"required": [
"id",
"title",
"model",
"msgs"
],
"title": "SearchConv"
},
"SearchIndexResponse": {
"properties": {
"conversations": {
"items": {
"$ref": "#/components/schemas/SearchConv"
},
"type": "array",
"title": "Conversations"
},
"count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Count"
}
},
"type": "object",
"required": [
"conversations"
],
"title": "SearchIndexResponse"
},
"SearchMsg": {
"properties": {
"i": {
"type": "integer",
"title": "I"
},
"role": {
"type": "string",
"enum": [
"user",
"assistant"
],
"title": "Role"
},
"text": {
"type": "string",
"title": "Text"
}
},
"type": "object",
"required": [
"i",
"role",
"text"
],
"title": "SearchMsg"
},
"SecurityEvent": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"at": {
"type": "string",
"title": "At"
},
"kind": {
"type": "string",
"title": "Kind"
},
"who": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Who"
},
"sid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sid"
},
"detail": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Detail"
},
"ip": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ip"
},
"ua": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ua"
},
"data": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Data"
}
},
"type": "object",
"required": [
"id",
"at",
"kind"
],
"title": "SecurityEvent",
"description": "One line of the security log (security/store.py)."
},
"SecurityLockResult": {
"properties": {
"guestsLocked": {
"type": "boolean",
"title": "Guestslocked"
},
"lockedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lockedat"
},
"remoteLocked": {
"type": "boolean",
"title": "Remotelocked",
"default": false
},
"remoteLockedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Remotelockedat"
},
"pushKinds": {
"items": {
"type": "string"
},
"type": "array",
"title": "Pushkinds"
},
"pushable": {
"items": {
"type": "string"
},
"type": "array",
"title": "Pushable"
},
"counts24h": {
"additionalProperties": {
"type": "integer"
},
"type": "object",
"title": "Counts24H"
},
"guestRunsLive": {
"type": "integer",
"title": "Guestrunslive"
},
"guard": {
"type": "boolean",
"title": "Guard"
},
"sandbox": {
"type": "boolean",
"title": "Sandbox"
},
"sessionsDropped": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Sessionsdropped"
},
"runsStopped": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Runsstopped"
}
},
"type": "object",
"required": [
"guestsLocked",
"pushKinds",
"pushable",
"counts24h",
"guestRunsLive",
"guard",
"sandbox"
],
"title": "SecurityLockResult"
},
"SecurityLog": {
"properties": {
"events": {
"items": {
"$ref": "#/components/schemas/SecurityEvent"
},
"type": "array",
"title": "Events"
}
},
"type": "object",
"required": [
"events"
],
"title": "SecurityLog"
},
"SecuritySettingsBody": {
"properties": {
"pushKinds": {
"items": {
"type": "string"
},
"type": "array",
"title": "Pushkinds"
}
},
"type": "object",
"required": [
"pushKinds"
],
"title": "SecuritySettingsBody"
},
"SecurityState": {
"properties": {
"guestsLocked": {
"type": "boolean",
"title": "Guestslocked"
},
"lockedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lockedat"
},
"remoteLocked": {
"type": "boolean",
"title": "Remotelocked",
"default": false
},
"remoteLockedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Remotelockedat"
},
"pushKinds": {
"items": {
"type": "string"
},
"type": "array",
"title": "Pushkinds"
},
"pushable": {
"items": {
"type": "string"
},
"type": "array",
"title": "Pushable"
},
"counts24h": {
"additionalProperties": {
"type": "integer"
},
"type": "object",
"title": "Counts24H"
},
"guestRunsLive": {
"type": "integer",
"title": "Guestrunslive"
},
"guard": {
"type": "boolean",
"title": "Guard"
},
"sandbox": {
"type": "boolean",
"title": "Sandbox"
}
},
"type": "object",
"required": [
"guestsLocked",
"pushKinds",
"pushable",
"counts24h",
"guestRunsLive",
"guard",
"sandbox"
],
"title": "SecurityState",
"description": "Settings \u2192 Security: the switches, and what the last 24 h held."
},
"SecurityStopResult": {
"properties": {
"runsStopped": {
"items": {
"type": "string"
},
"type": "array",
"title": "Runsstopped"
}
},
"type": "object",
"required": [
"runsStopped"
],
"title": "SecurityStopResult"
},
"ServiceGoal": {
"properties": {
"done": {
"type": "integer",
"title": "Done"
},
"total": {
"type": "integer",
"title": "Total"
}
},
"type": "object",
"required": [
"done",
"total"
],
"title": "ServiceGoal"
},
"ServiceIndexEntry": {
"properties": {
"dir": {
"type": "string",
"title": "Dir"
},
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description",
"default": ""
},
"goal": {
"anyOf": [
{
"$ref": "#/components/schemas/ServiceGoal"
},
{
"type": "null"
}
]
},
"updatedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Icon"
},
"group": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Group"
},
"urls": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Urls"
},
"containers": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Containers"
},
"containerCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Containercount"
},
"images": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Images"
},
"profiles": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Profiles"
},
"auth": {
"anyOf": [
{
"type": "string",
"enum": [
"auth",
"public",
"api",
"mixed"
]
},
{
"type": "null"
}
],
"title": "Auth"
},
"hasCompose": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Hascompose"
},
"hasTraefik": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Hastraefik"
},
"routerCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Routercount"
}
},
"type": "object",
"required": [
"dir",
"name"
],
"title": "ServiceIndexEntry",
"description": "One ``services/<dir>`` as the services plugin indexes it\n(``plugins/services_bridge.py``) \u2014 everything but ``dir`` / ``name`` /\n``description`` is optional (a dir with no compose file has no containers)."
},
"ServicesIndexResponse": {
"properties": {
"services": {
"items": {
"$ref": "#/components/schemas/ServiceIndexEntry"
},
"type": "array",
"title": "Services",
"default": []
}
},
"type": "object",
"title": "ServicesIndexResponse"
},
"SettingsPatch": {
"properties": {
"groups": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Groups"
},
"maxWaitS": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Maxwaits"
}
},
"type": "object",
"title": "SettingsPatch"
},
"ShareBody": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"participants": {
"items": {
"type": "string"
},
"type": "array",
"title": "Participants"
}
},
"type": "object",
"required": [
"id",
"participants"
],
"title": "ShareBody"
},
"ShareCandidate": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"level": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Level"
}
},
"type": "object",
"required": [
"id",
"name"
],
"title": "ShareCandidate"
},
"SkillCopy": {
"properties": {
"source": {
"type": "string",
"title": "Source"
},
"sourceKind": {
"type": "string",
"title": "Sourcekind"
},
"dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Dir"
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Path"
},
"updatedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"shareRef": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Shareref"
},
"sharedWithGuests": {
"type": "boolean",
"title": "Sharedwithguests",
"default": false
}
},
"type": "object",
"required": [
"source",
"sourceKind"
],
"title": "SkillCopy",
"description": "Another on-disk copy of a skill that shares the card's name."
},
"SkillPrompt": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"prompt": {
"type": "string",
"title": "Prompt"
},
"seenAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Seenat"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
},
"conversationTitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationtitle"
},
"baseDir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Basedir"
}
},
"type": "object",
"required": [
"name",
"prompt"
],
"title": "SkillPrompt",
"description": "The newest prompt a skill injected into any transcript \u2014 read-only,\nfor a skill with no SKILL.md to open."
},
"SkillStat": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"count": {
"type": "integer",
"title": "Count"
},
"lastUsed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastused"
},
"contextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Contexttokens"
},
"contextCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Contextcost"
},
"estSpend": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Estspend"
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Path"
}
},
"type": "object",
"required": [
"name",
"count"
],
"title": "SkillStat"
},
"SkillSummary": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"title": {
"type": "string",
"title": "Title"
},
"description": {
"type": "string",
"title": "Description"
},
"dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Dir"
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Path"
},
"source": {
"type": "string",
"title": "Source"
},
"sourceKind": {
"type": "string",
"title": "Sourcekind"
},
"triggerWords": {
"items": {
"type": "string"
},
"type": "array",
"title": "Triggerwords",
"default": []
},
"files": {
"type": "integer",
"title": "Files"
},
"updatedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"count": {
"type": "integer",
"title": "Count"
},
"lastUsed": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastused"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"contextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Contexttokens"
},
"contextCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Contextcost"
},
"estSpend": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Estspend"
},
"sessionCost": {
"type": "number",
"title": "Sessioncost"
},
"sessionTokens": {
"type": "integer",
"title": "Sessiontokens"
},
"shareRef": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Shareref"
},
"sharedWithGuests": {
"type": "boolean",
"title": "Sharedwithguests",
"default": false
},
"copies": {
"items": {
"$ref": "#/components/schemas/SkillCopy"
},
"type": "array",
"title": "Copies",
"default": []
},
"promptAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Promptat"
}
},
"type": "object",
"required": [
"name",
"title",
"description",
"source",
"sourceKind",
"files",
"count",
"conversations",
"sessionCost",
"sessionTokens"
],
"title": "SkillSummary",
"description": "One skill card: what it is on disk + what its use has cost."
},
"SkillsResponse": {
"properties": {
"skills": {
"items": {
"$ref": "#/components/schemas/SkillSummary"
},
"type": "array",
"title": "Skills"
},
"totals": {
"$ref": "#/components/schemas/SkillsTotals"
}
},
"type": "object",
"required": [
"skills",
"totals"
],
"title": "SkillsResponse"
},
"SkillsTotals": {
"properties": {
"skills": {
"type": "integer",
"title": "Skills"
},
"used": {
"type": "integer",
"title": "Used"
},
"invocations": {
"type": "integer",
"title": "Invocations"
},
"contextCost": {
"type": "number",
"title": "Contextcost"
},
"estSpend": {
"type": "number",
"title": "Estspend"
}
},
"type": "object",
"required": [
"skills",
"used",
"invocations",
"contextCost",
"estSpend"
],
"title": "SkillsTotals"
},
"SpawnBody": {
"properties": {
"prompt": {
"type": "string",
"title": "Prompt"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"thinking": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Thinking"
},
"effort": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Effort"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"projects": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Projects"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
},
"profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile"
},
"newProject": {
"type": "boolean",
"title": "Newproject",
"default": false
},
"chrome": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Chrome"
},
"codeMode": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Codemode"
},
"parent": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Parent"
},
"report": {
"type": "boolean",
"title": "Report",
"default": true
},
"test": {
"type": "boolean",
"title": "Test",
"default": false
}
},
"type": "object",
"required": [
"prompt"
],
"title": "SpawnBody"
},
"SpawnResult": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"pid": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Pid"
},
"delivered": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Delivered"
}
},
"type": "object",
"required": [
"sessionId"
],
"title": "SpawnResult"
},
"SpawnedBy": {
"properties": {
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"depth": {
"type": "integer",
"title": "Depth",
"default": 1
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
}
},
"type": "object",
"required": [
"sessionId"
],
"title": "SpawnedBy",
"description": "The conversation whose run started this one with the ``ai-agent`` CLI\n(runs/children.py): its session id, how deep this one sits in the chain\n(1 = a direct child of a top-level conversation) and when."
},
"SpawnedConvRef": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"type": "string",
"title": "Sessionid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"cost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cost"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"messages": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Messages"
},
"tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Tokens"
},
"subagentCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Subagentcount"
},
"shortTitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Shorttitle"
},
"prompt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Prompt"
},
"report": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Report"
}
},
"type": "object",
"required": [
"id",
"sessionId"
],
"title": "SpawnedConvRef",
"description": "A conversation on the other end of an ``ai-agent`` CLI spawn link\n(conversations/spawned.py): the parent a child was started by, or one of\nthe children a parent started \u2014 those carry their state and spend."
},
"StatsCalendarDay": {
"properties": {
"date": {
"type": "string",
"title": "Date"
},
"conversations": {
"type": "integer",
"title": "Conversations",
"default": 0
},
"activeMinutes": {
"type": "integer",
"title": "Activeminutes",
"default": 0
}
},
"type": "object",
"required": [
"date"
],
"title": "StatsCalendarDay"
},
"StatsDay": {
"properties": {
"date": {
"type": "string",
"title": "Date"
},
"usd": {
"type": "number",
"title": "Usd"
},
"ownUsd": {
"type": "number",
"title": "Ownusd",
"default": 0
},
"conversations": {
"type": "integer",
"title": "Conversations",
"default": 0
},
"activeMinutes": {
"type": "integer",
"title": "Activeminutes",
"default": 0
}
},
"type": "object",
"required": [
"date",
"usd"
],
"title": "StatsDay"
},
"StatsFootprint": {
"properties": {
"tokens": {
"items": {
"$ref": "#/components/schemas/StatsTokens"
},
"type": "array",
"title": "Tokens"
},
"localWh": {
"type": "number",
"title": "Localwh",
"default": 0
}
},
"type": "object",
"required": [
"tokens"
],
"title": "StatsFootprint",
"description": "What ``lib/footprint.ts`` estimates carbon, water and energy from."
},
"StatsModel": {
"properties": {
"model": {
"type": "string",
"title": "Model"
},
"conversations": {
"type": "integer",
"title": "Conversations",
"default": 0
},
"usd": {
"type": "number",
"title": "Usd",
"default": 0
},
"activeMinutes": {
"type": "integer",
"title": "Activeminutes",
"default": 0
}
},
"type": "object",
"required": [
"model"
],
"title": "StatsModel"
},
"StatsMonth": {
"properties": {
"usd": {
"type": "number",
"title": "Usd"
},
"ownUsd": {
"type": "number",
"title": "Ownusd",
"default": 0
}
},
"type": "object",
"required": [
"usd"
],
"title": "StatsMonth"
},
"StatsPeriod": {
"properties": {
"days": {
"type": "integer",
"title": "Days"
},
"start": {
"type": "string",
"title": "Start"
},
"end": {
"type": "string",
"title": "End"
}
},
"type": "object",
"required": [
"days",
"start",
"end"
],
"title": "StatsPeriod"
},
"StatsProject": {
"properties": {
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"usd": {
"type": "number",
"title": "Usd"
},
"ownUsd": {
"type": "number",
"title": "Ownusd",
"default": 0
},
"conversations": {
"type": "integer",
"title": "Conversations",
"default": 0
},
"activeMinutes": {
"type": "integer",
"title": "Activeminutes",
"default": 0
}
},
"type": "object",
"required": [
"usd"
],
"title": "StatsProject"
},
"StatsTokens": {
"properties": {
"model": {
"type": "string",
"title": "Model"
},
"input": {
"type": "integer",
"title": "Input",
"default": 0
},
"output": {
"type": "integer",
"title": "Output",
"default": 0
},
"cacheRead": {
"type": "integer",
"title": "Cacheread",
"default": 0
},
"cacheWriteTokens": {
"type": "integer",
"title": "Cachewritetokens",
"default": 0
}
},
"type": "object",
"required": [
"model"
],
"title": "StatsTokens"
},
"StatsTotals": {
"properties": {
"usd": {
"type": "number",
"title": "Usd"
},
"ownUsd": {
"type": "number",
"title": "Ownusd",
"default": 0
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"activeMinutes": {
"type": "integer",
"title": "Activeminutes"
},
"activeDays": {
"type": "integer",
"title": "Activedays"
}
},
"type": "object",
"required": [
"usd",
"conversations",
"activeMinutes",
"activeDays"
],
"title": "StatsTotals"
},
"StoppedOn": {
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"resetsAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Resetsat"
}
},
"type": "object",
"required": [
"kind"
],
"title": "StoppedOn"
},
"SubagentFormRef": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
},
"agentId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agentid"
},
"agentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agenttype"
}
},
"type": "object",
"required": [
"id"
],
"title": "SubagentFormRef",
"description": "A form asked somewhere in an agent's subtree (the clarifier's, chiefly)."
},
"SubagentListItem": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"parentId": {
"type": "string",
"title": "Parentid"
},
"rootId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Rootid"
},
"depth": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Depth"
},
"agentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agenttype"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Tokens"
},
"cost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cost"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
}
},
"type": "object",
"required": [
"id",
"parentId"
],
"title": "SubagentListItem",
"description": "A flat subagent (sidechain) ref with its parent ids \u2014 the graph view's\nnode source (the top-level conversation list hides these). Agents nest:\n``parentId`` is the transcript holding the Task card that spawned it (a\nsidechain itself for a nested agent), ``rootId`` the top-level\nconversation, ``depth`` 1 for a direct child of the root."
},
"SubagentRef": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"agentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agenttype"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Tokens"
},
"cost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cost"
},
"messages": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Messages"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"endedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Endedat"
},
"subagentCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Subagentcount"
},
"shortTitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Shorttitle"
},
"forms": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Forms"
},
"formRefs": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/SubagentFormRef"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Formrefs"
},
"harness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harness"
}
},
"type": "object",
"required": [
"id"
],
"title": "SubagentRef"
},
"SubagentsResponse": {
"properties": {
"subagents": {
"items": {
"$ref": "#/components/schemas/SubagentListItem"
},
"type": "array",
"title": "Subagents"
}
},
"type": "object",
"required": [
"subagents"
],
"title": "SubagentsResponse"
},
"SummaryBody": {
"properties": {
"markdown": {
"type": "string",
"title": "Markdown"
}
},
"type": "object",
"required": [
"markdown"
],
"title": "SummaryBody"
},
"TagIcon": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"svg": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Svg"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Image"
},
"tint": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Tint"
}
},
"type": "object",
"required": [
"id",
"name"
],
"title": "TagIcon",
"description": "An uploaded glyph: cleaned SVG markup, or a PNG data: URL (raster)."
},
"TagIconResponse": {
"properties": {
"icon": {
"$ref": "#/components/schemas/TagIcon"
},
"color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Color"
}
},
"type": "object",
"required": [
"icon"
],
"title": "TagIconResponse"
},
"TagMeta": {
"properties": {
"color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Color"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Icon"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"triggers": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Triggers"
},
"mutedTriggers": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Mutedtriggers"
},
"iconSource": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Iconsource"
},
"updatedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
}
},
"type": "object",
"title": "TagMeta",
"description": "What a human (or `ai-agent tags`) says about one derived tag."
},
"TagMetaEntryResponse": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"meta": {
"anyOf": [
{
"$ref": "#/components/schemas/TagMeta"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"id"
],
"title": "TagMetaEntryResponse"
},
"TagMetaSnapshot": {
"properties": {
"tags": {
"additionalProperties": {
"$ref": "#/components/schemas/TagMeta"
},
"type": "object",
"title": "Tags"
},
"icons": {
"additionalProperties": {
"$ref": "#/components/schemas/TagIcon"
},
"type": "object",
"title": "Icons"
}
},
"type": "object",
"required": [
"tags",
"icons"
],
"title": "TagMetaSnapshot"
},
"TagPatchBody": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"patch": {
"additionalProperties": true,
"type": "object",
"title": "Patch"
}
},
"type": "object",
"required": [
"id",
"patch"
],
"title": "TagPatchBody"
},
"Task": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"subject": {
"type": "string",
"title": "Subject"
},
"status": {
"type": "string",
"title": "Status"
}
},
"type": "object",
"required": [
"id",
"subject",
"status"
],
"title": "Task",
"description": "One task from the conversation's task list (TaskCreate/TaskUpdate, or the\nolder TodoWrite). ``status`` is one of pending / in_progress / completed /\ncancelled."
},
"TaskEvent": {
"properties": {
"ts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ts"
},
"kind": {
"type": "string",
"title": "Kind"
},
"text": {
"type": "string",
"title": "Text"
}
},
"type": "object",
"required": [
"kind",
"text"
],
"title": "TaskEvent",
"description": "One `<task-notification>` folded into the card that started the task."
},
"TaskRef": {
"properties": {
"toolUseId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tooluseid"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"native": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Native"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"agentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agenttype"
}
},
"type": "object",
"title": "TaskRef",
"description": "The card a ``shell_kill`` / ``shell_output`` / ``claude:SendMessage``\nnames: the call that started the background task, or the ``agent`` call\nthat spawned the agent (``name``: its neutral tool name)."
},
"TelemetryHub": {
"properties": {
"range": {
"type": "string",
"title": "Range"
},
"step": {
"type": "integer",
"title": "Step"
},
"series": {
"items": {
"$ref": "#/components/schemas/HubPoint"
},
"type": "array",
"title": "Series"
},
"totals": {
"$ref": "#/components/schemas/HubTotals"
},
"routes": {
"items": {
"$ref": "#/components/schemas/HubRoute"
},
"type": "array",
"title": "Routes"
},
"web": {
"items": {
"$ref": "#/components/schemas/HubVital"
},
"type": "array",
"title": "Web"
},
"errors": {
"items": {
"$ref": "#/components/schemas/HubWebError"
},
"type": "array",
"title": "Errors"
},
"now": {
"$ref": "#/components/schemas/HubNow"
}
},
"type": "object",
"required": [
"range",
"step",
"series",
"totals",
"routes",
"web",
"errors",
"now"
],
"title": "TelemetryHub"
},
"TelemetryIngestResult": {
"properties": {
"vitals": {
"type": "integer",
"title": "Vitals"
},
"errors": {
"type": "integer",
"title": "Errors"
},
"events": {
"type": "integer",
"title": "Events"
}
},
"type": "object",
"required": [
"vitals",
"errors",
"events"
],
"title": "TelemetryIngestResult"
},
"TerminalSession": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"title": {
"type": "string",
"title": "Title"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": ""
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"mtime": {
"type": "number",
"title": "Mtime"
},
"synced": {
"type": "boolean",
"title": "Synced",
"default": false
},
"inApp": {
"anyOf": [
{
"type": "string",
"enum": [
"run",
"proxy",
"local"
]
},
{
"type": "null"
}
],
"title": "Inapp"
},
"conversationId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversationid"
}
},
"type": "object",
"required": [
"id",
"title",
"mtime"
],
"title": "TerminalSession",
"description": "One of a guest computer's own Claude Code sessions, as its portal\nlists them (``GET /api/me/computers/{id}/sessions``)."
},
"TerminalSessions": {
"properties": {
"sessions": {
"items": {
"$ref": "#/components/schemas/TerminalSession"
},
"type": "array",
"title": "Sessions"
},
"launcher": {
"type": "boolean",
"title": "Launcher",
"default": true
}
},
"type": "object",
"required": [
"sessions"
],
"title": "TerminalSessions"
},
"ThreadCommit": {
"properties": {
"sha": {
"type": "string",
"title": "Sha"
},
"short": {
"type": "string",
"title": "Short"
},
"date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Date"
},
"author": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Author"
},
"subject": {
"type": "string",
"title": "Subject"
},
"additions": {
"type": "integer",
"title": "Additions"
},
"deletions": {
"type": "integer",
"title": "Deletions"
},
"files": {
"type": "integer",
"title": "Files"
},
"repo": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Repo"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"hook",
"output",
"window"
]
},
{
"type": "null"
}
],
"title": "Source"
},
"branch": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Branch"
},
"parents": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Parents"
},
"merge": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Merge"
},
"pushed": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Pushed"
},
"root": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Root"
},
"worker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Worker"
},
"toolUseId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tooluseid"
},
"truncated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Truncated"
},
"shared": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Shared"
},
"fileStats": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/CommitFileStat"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Filestats"
},
"diffFiles": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/FileDiff"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Difffiles"
}
},
"type": "object",
"required": [
"sha",
"short",
"subject",
"additions",
"deletions",
"files"
],
"title": "ThreadCommit"
},
"ThreadItem": {
"properties": {
"role": {
"type": "string",
"enum": [
"user",
"assistant",
"tool"
],
"title": "Role"
},
"kind": {
"type": "string",
"enum": [
"text",
"thinking",
"tool_use",
"tool_result",
"interrupted",
"paused",
"held",
"turn",
"compact",
"form"
],
"title": "Kind"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"native": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Native"
},
"input": {
"anyOf": [
{},
{
"type": "null"
}
],
"title": "Input"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
},
"compact": {
"anyOf": [
{
"$ref": "#/components/schemas/CompactInfo"
},
{
"type": "null"
}
]
},
"author": {
"anyOf": [
{
"$ref": "#/components/schemas/TurnAuthor"
},
{
"type": "null"
}
]
},
"midTurn": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Midturn"
},
"cancelled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Cancelled"
},
"isError": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Iserror"
},
"result": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Result"
},
"out": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Out"
},
"turnTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Turntokens"
},
"turnCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Turncost"
},
"turnCacheTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Turncachetokens"
},
"turnCacheCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Turncachecost"
},
"turnBucket": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Turnbucket"
},
"turnContextCost": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Turncontextcost"
},
"turnContextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Turncontexttokens"
},
"firstContextTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Firstcontexttokens"
},
"firstMessageTokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Firstmessagetokens"
},
"mi": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Mi"
},
"ts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ts"
},
"apiError": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Apierror"
},
"resetsAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Resetsat"
},
"notify": {
"anyOf": [
{
"$ref": "#/components/schemas/ClosingNotify"
},
{
"type": "null"
}
]
},
"toolUseId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tooluseid"
},
"subagent": {
"anyOf": [
{
"$ref": "#/components/schemas/SubagentRef"
},
{
"type": "null"
}
]
},
"childConvs": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/SpawnedConvRef"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Childconvs"
},
"form": {
"anyOf": [
{
"$ref": "#/components/schemas/SubagentFormRef"
},
{
"type": "null"
}
]
},
"agentRunning": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Agentrunning"
},
"durationMs": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Durationms"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"resultChars": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Resultchars"
},
"clipped": {
"anyOf": [
{
"additionalProperties": {
"type": "integer"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Clipped"
},
"clipId": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Clipid"
},
"resultLines": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Resultlines"
},
"skillBody": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Skillbody"
},
"skillPath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Skillpath"
},
"deploy": {
"anyOf": [
{
"$ref": "#/components/schemas/DeployCall"
},
{
"type": "null"
}
]
},
"deployedUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Deployedurl"
},
"bashDiff": {
"anyOf": [
{
"$ref": "#/components/schemas/BashDiff"
},
{
"type": "null"
}
]
},
"commits": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/ThreadCommit"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Commits"
},
"reports": {
"anyOf": [
{
"additionalProperties": {
"items": {
"$ref": "#/components/schemas/PluginReportSummary"
},
"type": "array"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Reports"
},
"taskId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Taskid"
},
"taskState": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Taskstate"
},
"taskEvents": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/TaskEvent"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Taskevents"
},
"taskEventsDropped": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Taskeventsdropped"
},
"taskExitCode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Taskexitcode"
},
"taskUnreadAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Taskunreadat"
},
"taskReadAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Taskreadat"
},
"taskRef": {
"anyOf": [
{
"$ref": "#/components/schemas/TaskRef"
},
{
"type": "null"
}
]
},
"evalId": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Evalid"
},
"codeResult": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Coderesult"
},
"codeMs": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Codems"
},
"script": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Script"
}
},
"type": "object",
"required": [
"role",
"kind"
],
"title": "ThreadItem"
},
"TokenTypeSpend": {
"properties": {
"tokens": {
"type": "integer",
"title": "Tokens"
},
"cost": {
"type": "number",
"title": "Cost"
}
},
"type": "object",
"required": [
"tokens",
"cost"
],
"title": "TokenTypeSpend"
},
"ToolUsage": {
"properties": {
"tokens": {
"type": "integer",
"title": "Tokens"
},
"cost": {
"type": "number",
"title": "Cost"
},
"output": {
"type": "integer",
"title": "Output"
}
},
"type": "object",
"required": [
"tokens",
"cost",
"output"
],
"title": "ToolUsage"
},
"ToolsBody": {
"properties": {
"tools": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tools"
},
"action": {
"type": "string",
"enum": [
"install",
"update"
],
"title": "Action",
"default": "install"
}
},
"type": "object",
"required": [
"tools"
],
"title": "ToolsBody"
},
"TopFile": {
"properties": {
"path": {
"type": "string",
"title": "Path"
},
"tokens": {
"type": "integer",
"title": "Tokens"
},
"cost": {
"type": "number",
"title": "Cost"
},
"estimated": {
"type": "boolean",
"title": "Estimated"
}
},
"type": "object",
"required": [
"path",
"tokens",
"cost",
"estimated"
],
"title": "TopFile"
},
"TurnAuthor": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"role": {
"type": "string",
"title": "Role"
}
},
"type": "object",
"required": [
"id",
"name",
"role"
],
"title": "TurnAuthor",
"description": "Who wrote a user turn in a shared conversation (``users/runs.py``)."
},
"TurnUsage": {
"properties": {
"input": {
"type": "integer",
"title": "Input"
},
"output": {
"type": "integer",
"title": "Output"
},
"cacheRead": {
"type": "integer",
"title": "Cacheread"
},
"cacheWriteTokens": {
"type": "integer",
"title": "Cachewritetokens"
},
"cacheWriteUnits": {
"type": "integer",
"title": "Cachewriteunits"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
}
},
"type": "object",
"required": [
"input",
"output",
"cacheRead",
"cacheWriteTokens",
"cacheWriteUnits"
],
"title": "TurnUsage"
},
"UiStateBody": {
"properties": {
"value": {
"type": "string",
"title": "Value"
}
},
"type": "object",
"required": [
"value"
],
"title": "UiStateBody"
},
"UiStateValue": {
"properties": {
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Value"
}
},
"type": "object",
"title": "UiStateValue"
},
"UnreadNotificationsResponse": {
"properties": {
"notifications": {
"items": {
"$ref": "#/components/schemas/FeedNotification"
},
"type": "array",
"title": "Notifications"
},
"count": {
"type": "integer",
"title": "Count"
},
"total": {
"type": "integer",
"title": "Total"
}
},
"type": "object",
"required": [
"notifications",
"count",
"total"
],
"title": "UnreadNotificationsResponse"
},
"UploadResult": {
"properties": {
"files": {
"items": {
"$ref": "#/components/schemas/UploadedFile"
},
"type": "array",
"title": "Files"
}
},
"type": "object",
"required": [
"files"
],
"title": "UploadResult"
},
"UploadedFile": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"size": {
"type": "integer",
"title": "Size"
},
"contentType": {
"type": "string",
"title": "Contenttype"
},
"repoPath": {
"type": "string",
"title": "Repopath"
},
"url": {
"type": "string",
"title": "Url"
}
},
"type": "object",
"required": [
"name",
"size",
"contentType",
"repoPath",
"url"
],
"title": "UploadedFile"
},
"Usage": {
"properties": {
"input": {
"type": "integer",
"title": "Input"
},
"output": {
"type": "integer",
"title": "Output"
},
"cacheRead": {
"type": "integer",
"title": "Cacheread"
},
"cacheWriteTokens": {
"type": "integer",
"title": "Cachewritetokens"
},
"cacheWriteUnits": {
"type": "integer",
"title": "Cachewriteunits"
}
},
"type": "object",
"required": [
"input",
"output",
"cacheRead",
"cacheWriteTokens",
"cacheWriteUnits"
],
"title": "Usage"
},
"UsageBudget": {
"properties": {
"account": {
"type": "string",
"title": "Account"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Label"
},
"plan": {
"anyOf": [
{
"$ref": "#/components/schemas/PlanSegment"
},
{
"type": "null"
}
]
},
"window": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Window"
},
"pct": {
"type": "number",
"title": "Pct",
"default": 0.0
},
"resetsAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Resetsat"
},
"hoursLeft": {
"type": "number",
"title": "Hoursleft",
"default": 0.0
},
"stale": {
"type": "boolean",
"title": "Stale",
"default": false
},
"rate": {
"anyOf": [
{
"$ref": "#/components/schemas/BudgetRate"
},
{
"type": "null"
}
]
},
"left": {
"anyOf": [
{
"$ref": "#/components/schemas/BudgetAmount"
},
{
"type": "null"
}
]
},
"upcoming": {
"anyOf": [
{
"$ref": "#/components/schemas/BudgetUpcoming"
},
{
"type": "null"
}
]
},
"free": {
"anyOf": [
{
"$ref": "#/components/schemas/BudgetAmount"
},
{
"type": "null"
}
]
},
"pace": {
"anyOf": [
{
"$ref": "#/components/schemas/BudgetPace"
},
{
"type": "null"
}
]
},
"families": {
"additionalProperties": {
"$ref": "#/components/schemas/BudgetFamily"
},
"type": "object",
"title": "Families",
"default": {}
}
},
"type": "object",
"required": [
"account"
],
"title": "UsageBudget",
"description": "GET /api/usage/budget \u2014 what is left of an account's week before its\nreset, what is already due before it, and what the rest buys."
},
"UsageBurnResponse": {
"properties": {
"accounts": {
"additionalProperties": {
"$ref": "#/components/schemas/BurnRate"
},
"type": "object",
"title": "Accounts"
}
},
"type": "object",
"required": [
"accounts"
],
"title": "UsageBurnResponse",
"description": "GET /api/usage/burn \u2014 every account with a week target."
},
"UsageImportResult": {
"properties": {
"imported": {
"type": "integer",
"title": "Imported"
}
},
"type": "object",
"required": [
"imported"
],
"title": "UsageImportResult"
},
"UsageLimitsResponse": {
"properties": {
"accounts": {
"additionalProperties": {
"$ref": "#/components/schemas/AccountLimits"
},
"type": "object",
"title": "Accounts"
}
},
"type": "object",
"required": [
"accounts"
],
"title": "UsageLimitsResponse"
},
"UsageRead": {
"properties": {
"at": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "At"
},
"ok": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Ok"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"planType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Plantype"
},
"limitReached": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Limitreached"
},
"groups": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Groups"
}
},
"type": "object",
"title": "UsageRead",
"description": "The sidecar's last read of an opencode account's ChatGPT usage (or an\nagy account's Antigravity quota)."
},
"UserActivity": {
"properties": {
"dailySpend": {
"items": {
"$ref": "#/components/schemas/DaySpend"
},
"type": "array",
"title": "Dailyspend"
},
"spendByProject": {
"items": {
"$ref": "#/components/schemas/ProjectSpend"
},
"type": "array",
"title": "Spendbyproject"
},
"recentConversations": {
"items": {
"$ref": "#/components/schemas/UserConversation"
},
"type": "array",
"title": "Recentconversations"
},
"conversations": {
"type": "integer",
"title": "Conversations"
},
"conversationsThisWeek": {
"type": "integer",
"title": "Conversationsthisweek"
}
},
"type": "object",
"required": [
"dailySpend",
"spendByProject",
"recentConversations",
"conversations",
"conversationsThisWeek"
],
"title": "UserActivity",
"description": "One guest's page in Settings \u2192 Users (``GET /api/users/{id}/activity``)."
},
"UserBody": {
"properties": {
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"projects": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Projects"
},
"models": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Models"
},
"budgetUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Budgetusd"
},
"notify": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Notify"
},
"disabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Disabled"
},
"role": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Role"
},
"allow": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Allow"
},
"deny": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Deny"
},
"cli": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Cli"
},
"mcp": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Mcp"
},
"bucket": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Bucket"
},
"domain": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Domain"
},
"lang": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lang"
},
"computers": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Computers"
},
"autoFresh": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Autofresh"
},
"scratchBash": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Scratchbash"
},
"codeMode": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Codemode"
},
"apps": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Apps"
},
"budgetCredit": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Budgetcredit"
}
},
"type": "object",
"title": "UserBody"
},
"UserConversation": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"sessionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sessionid"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"costUsd": {
"type": "number",
"title": "Costusd",
"default": 0
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "At"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"own": {
"type": "boolean",
"title": "Own",
"default": false
}
},
"type": "object",
"required": [
"id"
],
"title": "UserConversation"
},
"UsersResponse": {
"properties": {
"users": {
"items": {
"$ref": "#/components/schemas/GuestUser"
},
"type": "array",
"title": "Users"
},
"levels": {
"items": {
"type": "string"
},
"type": "array",
"title": "Levels"
},
"channels": {
"items": {
"type": "string"
},
"type": "array",
"title": "Channels"
},
"defaultModels": {
"items": {
"type": "string"
},
"type": "array",
"title": "Defaultmodels"
},
"mail": {
"type": "boolean",
"title": "Mail"
},
"guestUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Guesturl"
},
"idp": {
"anyOf": [
{
"$ref": "#/components/schemas/IdpStatus"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"users",
"levels",
"channels",
"defaultModels",
"mail"
],
"title": "UsersResponse"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
},
"input": {
"title": "Input"
},
"ctx": {
"type": "object",
"title": "Context"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"WakeableMachine": {
"properties": {
"configured": {
"type": "boolean",
"title": "Configured",
"default": false
},
"mac": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Mac"
},
"broadcast": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Broadcast"
},
"autoWake": {
"type": "boolean",
"title": "Autowake",
"default": false
},
"timeoutSec": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Timeoutsec"
},
"lastWokenAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastwokenat"
}
},
"type": "object",
"title": "WakeableMachine",
"description": "One worker the plugin providing ``machine.wake`` can wake\n(``plugins/machine_wake.py``) \u2014 the ``wake-on-lan`` plugin's settings."
},
"WeekTarget": {
"properties": {
"goal": {
"type": "number",
"title": "Goal"
},
"behindAlert": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Behindalert"
}
},
"type": "object",
"required": [
"goal"
],
"title": "WeekTarget",
"description": "The week an account wants maxed out (usage/target.py): a straight\nline from 0 % when the window opens to ``goal`` % at its reset."
},
"WindowFit": {
"properties": {
"unitsPerPct": {
"type": "number",
"title": "Unitsperpct"
},
"usdPerPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Usdperpct"
},
"r2": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "R2"
},
"n": {
"type": "integer",
"title": "N",
"default": 0
},
"interceptPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Interceptpct"
}
},
"type": "object",
"required": [
"unitsPerPct"
],
"title": "WindowFit",
"description": "One window's exchange rate: plan units (and list $) per 1 %."
},
"Worker": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"host": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Host"
},
"port": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Port"
},
"url": {
"type": "string",
"title": "Url"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Owner"
},
"link": {
"type": "boolean",
"title": "Link",
"default": false
},
"pending": {
"type": "boolean",
"title": "Pending",
"default": false
},
"paused": {
"type": "boolean",
"title": "Paused",
"default": false
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"orgName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Orgname"
},
"hostname": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Hostname"
},
"platform": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Platform"
},
"machine": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Machine"
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Version"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwd"
},
"permissionMode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Permissionmode"
},
"pairedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pairedat"
},
"autoRoute": {
"type": "boolean",
"title": "Autoroute",
"default": false
},
"opencodeAccounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Opencodeaccounts"
},
"agyAccounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Agyaccounts"
},
"commit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Commit"
},
"updatable": {
"type": "boolean",
"title": "Updatable",
"default": false
},
"autoUpdate": {
"type": "boolean",
"title": "Autoupdate",
"default": true
},
"hubCommit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Hubcommit"
},
"updateStatus": {
"type": "string",
"title": "Updatestatus",
"default": "unknown"
},
"update": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Update"
},
"updateError": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updateerror"
},
"status": {
"type": "string",
"title": "Status"
},
"lastSeen": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastseen"
},
"lastError": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lasterror"
},
"running": {
"type": "integer",
"title": "Running",
"default": 0
},
"mirrored": {
"type": "integer",
"title": "Mirrored",
"default": 0
},
"syncing": {
"type": "boolean",
"title": "Syncing",
"default": false
},
"labSyncStatus": {
"type": "string",
"title": "Labsyncstatus",
"default": "unknown"
},
"labSync": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Labsync"
},
"labSyncError": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Labsyncerror"
},
"claudeMode": {
"type": "string",
"title": "Claudemode",
"default": "own"
},
"claudeAccounts": {
"items": {
"type": "string"
},
"type": "array",
"title": "Claudeaccounts",
"default": []
},
"claudeProxy": {
"anyOf": [
{
"$ref": "#/components/schemas/WorkerClaudeProxy"
},
{
"type": "null"
}
]
},
"opencodeProxyAccounts": {
"items": {
"type": "string"
},
"type": "array",
"title": "Opencodeproxyaccounts",
"default": []
},
"opencodeProxy": {
"anyOf": [
{
"$ref": "#/components/schemas/WorkerOpencodeProxy"
},
{
"type": "null"
}
]
},
"tools": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/WorkerTool"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Tools"
},
"toolsCheckedAt": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Toolscheckedat"
},
"toolInstall": {
"anyOf": [
{
"$ref": "#/components/schemas/WorkerToolInstall"
},
{
"type": "null"
}
]
},
"toolJobs": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/components/schemas/WorkerToolJob"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Tooljobs"
},
"repoPlugins": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Repoplugins"
},
"repoPluginsStatus": {
"type": "string",
"title": "Repopluginsstatus",
"default": "unknown"
},
"repoPluginsError": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Repopluginserror"
}
},
"type": "object",
"required": [
"id",
"name",
"url",
"status"
],
"title": "Worker",
"description": "A paired remote runner (backend/workers.py): the same sidecar on\nanother machine, driven over the tailnet. No token here \u2014 it never leaves\nthe backend."
},
"WorkerClaudeProxy": {
"properties": {
"mode": {
"type": "string",
"title": "Mode",
"default": "own"
},
"accounts": {
"items": {
"type": "string"
},
"type": "array",
"title": "Accounts",
"default": []
},
"default": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Default"
},
"status": {
"type": "string",
"title": "Status",
"default": "unknown"
},
"held": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Held"
},
"settingsDefault": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Settingsdefault"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"lastUsedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastusedat"
}
},
"type": "object",
"title": "WorkerClaudeProxy",
"description": "Where the worker's copy of the Claude proxy config stands."
},
"WorkerLabSync": {
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/LabSyncItem"
},
"type": "array",
"title": "Items"
},
"hash": {
"type": "string",
"title": "Hash"
},
"skipped": {
"items": {
"type": "string"
},
"type": "array",
"title": "Skipped",
"default": []
},
"status": {
"type": "string",
"title": "Status",
"default": "unknown"
},
"held": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Held"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
}
},
"type": "object",
"required": [
"items",
"hash"
],
"title": "WorkerLabSync",
"description": "A worker's lab sync (workers/labsync.py): the checklist, the bundle the\nhub would send it, and the worker's own report of what it holds."
},
"WorkerLoginHealth": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"status": {
"type": "string",
"enum": [
"ok",
"signed_out",
"unknown"
],
"title": "Status"
},
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"expired",
"logged_out"
]
},
{
"type": "null"
}
],
"title": "Reason"
},
"since": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Since"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
},
"failedRuns": {
"type": "integer",
"title": "Failedruns",
"default": 0
},
"conversations": {
"items": {
"$ref": "#/components/schemas/AccountHealthConversation"
},
"type": "array",
"title": "Conversations",
"default": []
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Email"
},
"subscriptionType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Subscriptiontype"
},
"credentialsAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Credentialsat"
},
"refreshExpiresAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Refreshexpiresat"
},
"reported": {
"type": "boolean",
"title": "Reported",
"default": false
},
"checkedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Checkedat"
}
},
"type": "object",
"required": [
"id",
"name",
"status"
],
"title": "WorkerLoginHealth",
"description": "A worker in ``own`` mode runs on its machine's own Claude login (a\nMac's Keychain), not the hub's copy of the account: its health, from its\nruns' auth errors and its ``/health`` ``ownLogin`` (accounts/health.py\n``_compute_workers``). Fixed by signing in on that machine \u2014\n``POST /api/accounts/{account}/login?worker=<id>``."
},
"WorkerOpencodeProxy": {
"properties": {
"accounts": {
"items": {
"type": "string"
},
"type": "array",
"title": "Accounts",
"default": []
},
"status": {
"type": "string",
"title": "Status",
"default": "unknown"
},
"held": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Held"
},
"available": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Available"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"lastUsedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastusedat"
}
},
"type": "object",
"title": "WorkerOpencodeProxy",
"description": "Where the worker's copy of the opencode proxy config stands."
},
"WorkerPatchBody": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"claudeMode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Claudemode"
},
"claudeAccounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Claudeaccounts"
},
"opencodeProxyAccounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Opencodeproxyaccounts"
},
"autoRoute": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Autoroute"
},
"autoUpdate": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Autoupdate"
}
},
"type": "object",
"title": "WorkerPatchBody"
},
"WorkerTool": {
"properties": {
"installed": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Installed"
},
"signedIn": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Signedin"
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Path"
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Version"
},
"login": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Login"
},
"proxied": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Proxied"
},
"loggedIn": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Loggedin"
},
"configured": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Configured"
},
"running": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Running"
},
"harness": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Harness"
},
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account"
},
"managed": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Managed"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
}
},
"type": "object",
"title": "WorkerTool",
"description": "One row of a worker's *Setup* checklist (its ``/health`` ``tools``,\nsidecar tools_check.py): a CLI there, installed and signed in."
},
"WorkerToolInstall": {
"properties": {
"tools": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tools",
"default": []
},
"update": {
"items": {
"type": "string"
},
"type": "array",
"title": "Update",
"default": []
}
},
"type": "object",
"title": "WorkerToolInstall",
"description": "What the Setup checklist may install / update on this machine (None:\na sidecar from before \u2014 no buttons)."
},
"WorkerToolJob": {
"properties": {
"action": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Action"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
},
"startedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Startedat"
},
"finishedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Finishedat"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"tail": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tail"
}
},
"type": "object",
"title": "WorkerToolJob",
"description": "The last install / update of one tool from the Setup checklist (the\nworker's /health ``toolJobs``, sidecar tools_install.py)."
},
"WorkersResponse": {
"properties": {
"workers": {
"items": {
"$ref": "#/components/schemas/Worker"
},
"type": "array",
"title": "Workers"
}
},
"type": "object",
"required": [
"workers"
],
"title": "WorkersResponse"
},
"WorktreeInfo": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Dir"
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project"
},
"createdAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"removedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Removedat"
}
},
"type": "object",
"required": [
"name"
],
"title": "WorktreeInfo"
},
"WorktreeRef": {
"properties": {
"dir": {
"type": "string",
"title": "Dir"
},
"branch": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Branch"
},
"repo": {
"type": "string",
"title": "Repo"
}
},
"type": "object",
"required": [
"dir",
"repo"
],
"title": "WorktreeRef",
"description": "A live git worktree a conversation's diff was read from."
}
}
}
}