{ "openapi": "3.1.0", "info": { "title": "Equipo person API", "version": "1.0.0" }, "servers": [ { "url": "/api/v1" } ], "security": [ { "browserSession": [] }, { "personBearer": [] } ], "paths": { "/me": { "get": { "operationId": "get_me", "parameters": [], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIMe" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } }, "/capabilities": { "get": { "operationId": "get_capabilities", "parameters": [], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPICapabilities" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } }, "/me/settings": { "get": { "operationId": "get_me_settings", "parameters": [], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Settings" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" }, "patch": { "operationId": "patch_me_settings", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Settings" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/people": { "get": { "operationId": "get_people", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } }, "/conversation": { "get": { "operationId": "get_conversation", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } }, "/conversation/messages": { "post": { "operationId": "post_conversation_messages", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": false, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIMessage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/conversation/cards": { "get": { "operationId": "get_conversation_cards", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CardPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } }, "/cards/{id}": { "get": { "operationId": "get_cards_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/Card" }, { "$ref": "#/components/schemas/PersonAPICard" } ] } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "x-earlierPersonAPI": { "when": "The id does not start with c_.", "operation": { "operationId": "get_cards_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPICard" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } }, "description": "Direct card read, independent of the snapshot window. IDs beginning `c_` select the thin store and require a device bearer; all others select the earlier person API. There is no lookup fallback. The oneOf is distinguished by the ID prefix and required shape: thin Card includes state and question; PersonAPICard includes resource_id and actions. Thin reads enforce current membership and device, current person, Coordinator lane and not held, returning the snapshot cardView projection and revision. Missing, invisible and wrong-store cards are not_found.", "security": [ { "personBearer": [] } ] } }, "/tasks": { "get": { "operationId": "get_tasks", "summary": "Read the team's tasks", "description": "A request without an `Authorization` header, that is a browser session, gets the earlier person API's answer in `x-earlierPersonAPI`.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskList" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The request has no `Authorization` header: a browser session.", "operation": { "operationId": "get_tasks", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } } }, "post": { "operationId": "post_tasks", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": false, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Plan" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/tasks/{id}": { "get": { "operationId": "get_tasks_id", "summary": "Read one task", "description": "With its steps, thread and cards. Task ids from this API start with `tk`. Any other id is a task of the earlier person API: that request gets the earlier answer in `x-earlierPersonAPI`, with a bearer or a browser session. A browser session asking for a `tk` id is 401 `unauthenticated`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The id does not start with `tk`.", "operation": { "operationId": "get_tasks_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPITask" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } } } }, "/tasks/{id}/cancel": { "post": { "operationId": "post_tasks_id_cancel", "summary": "Cancel a task", "description": "202 with the attempt the cancel applies to; 409 `task_ended` once it has ended. No body is read. Task ids from this API start with `tk`. Any other id is a task of the earlier person API: that request gets the earlier answer in `x-earlierPersonAPI`, with a bearer or a browser session. A browser session asking for a `tk` id is 401 `unauthenticated`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccepted" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The id does not start with `tk`.", "operation": { "operationId": "post_tasks_id_cancel", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } } } }, "/tasks/{id}/thread": { "get": { "operationId": "get_tasks_id_thread", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" }, "post": { "operationId": "post_tasks_id_thread", "summary": "Post to a task's thread", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ThreadEntry" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PostThread" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/thread/messages": { "post": { "operationId": "post_tasks_id_thread_messages", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": false, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIMessage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/conversation/messages/{id}/route": { "post": { "operationId": "post_conversation_messages_id_route", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIMessage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RouteInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/tasks/{id}/plan": { "get": { "operationId": "get_tasks_id_plan", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Plan" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" }, "patch": { "operationId": "patch_tasks_id_plan", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Plan" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/tasks/{id}/plan/approve": { "post": { "operationId": "post_tasks_id_plan_approve", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPITask" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/tasks/{id}/project": { "post": { "operationId": "post_tasks_id_project", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPITask" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/questions/{id}": { "get": { "operationId": "get_questions_id", "summary": "Read a question about a task", "description": "Question ids from this API start with `q_`. Any other id gets the earlier person API's answer in `x-earlierPersonAPI`, with a bearer or a browser session. A browser session asking for a `q_` id is 401 `unauthenticated`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Question" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The id does not start with `q_`.", "operation": { "operationId": "get_questions_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIQuestion" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } } } }, "/questions/{id}/answer": { "post": { "operationId": "post_questions_id_answer", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnswerInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/tasks/{id}/rendered-approval": { "post": { "operationId": "post_tasks_id_rendered_approval", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RenderedInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/tasks/{id}/acknowledge-merge": { "post": { "operationId": "post_tasks_id_acknowledge_merge", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MergeInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/journey": { "get": { "operationId": "get_journey", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } }, "/needs-you": { "get": { "operationId": "get_needs_you", "summary": "Read the tasks that need you", "description": "A request without an `Authorization` header, that is a browser session, gets the earlier person API's answer in `x-earlierPersonAPI`.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskList" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The request has no `Authorization` header: a browser session.", "operation": { "operationId": "get_needs_you", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" } } } }, "/preferences": { "get": { "operationId": "get_preferences", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreferencePage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a" }, "post": { "operationId": "post_preferences", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": false, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Preference" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreferenceInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/preferences/{id}": { "patch": { "operationId": "patch_preferences_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Preference" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreferenceInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } }, "delete": { "operationId": "delete_preferences_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/coordinator": { "get": { "operationId": "get_coordinator", "parameters": [], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPICoordinator" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "x-unconfiguredRevision": 0 }, "patch": { "operationId": "patch_coordinator", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPICoordinator" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BindingInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/coordinator/reset": { "post": { "operationId": "post_coordinator_reset", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPICoordinator" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/coordinator/retry": { "post": { "operationId": "post_coordinator_retry", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPITurn" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RetryInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/coordinator/limits": { "patch": { "operationId": "patch_coordinator_limits", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3a", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LimitsInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/auth/devices": { "post": { "operationId": "post_auth_devices", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonDeviceChallenge" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "description": "device_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" }, "429": { "description": "slow_down", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BeginDeviceInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true }, "security": [], "x-proof-audience": "equipo.person.device.v1" }, "get": { "operationId": "get_auth_devices", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DevicePage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "description": "device_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" }, "429": { "description": "slow_down", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-plan-part": "3b" } }, "/auth/devices/exchange": { "post": { "operationId": "post_auth_devices_exchange", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonCredential" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "description": "authorization_pending", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "410": { "description": "device_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" }, "429": { "description": "slow_down", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonDeviceProof" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true }, "security": [], "x-proof-audience": "equipo.person.device.v1" } }, "/auth/devices/{id}/approve": { "post": { "operationId": "post_auth_devices_id_approve", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "description": "device_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" }, "429": { "description": "slow_down", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApproveDeviceInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true }, "security": [ { "browserSession": [] } ] } }, "/auth/devices/{id}": { "delete": { "operationId": "delete_auth_devices_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "description": "device_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" }, "429": { "description": "slow_down", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/roster": { "get": { "operationId": "get_roster", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RosterMemberPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } }, "/roster/{address}": { "put": { "operationId": "put_roster_address", "parameters": [ { "name": "address", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RosterInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/budgets": { "get": { "operationId": "get_budgets", "parameters": [], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Budgets" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "put": { "operationId": "put_budgets", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BudgetsInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/teams": { "get": { "operationId": "get_teams", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamLinkPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } }, "/teams/links": { "post": { "operationId": "post_teams_links", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamLink" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamLinkInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/teams/links/{id}": { "patch": { "operationId": "patch_teams_links_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamLink" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamLinkInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } }, "delete": { "operationId": "delete_teams_links_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/accounts": { "get": { "operationId": "get_accounts", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "post": { "operationId": "post_accounts", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Account" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LabelInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/projects": { "get": { "operationId": "get_projects", "summary": "Read the team's projects", "description": "With `allowed`, the repositories your runner lets you add, and `home`, where new projects go. This route answers a device bearer only: without an `Authorization` header it is 401 `unauthenticated`.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectList" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "post": { "operationId": "post_projects", "summary": "Add a repository as a project", "description": "201 for a new project, 200 when it was already one. A repository outside your runner's allowlist is 422 `repo_not_allowed`. This route answers a device bearer only.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "201": { "description": "Created", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project" } } } }, "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddProject" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/projects/{id}": { "get": { "operationId": "get_projects_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIProject" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "patch": { "operationId": "patch_projects_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIProject" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectFields" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } }, "delete": { "operationId": "delete_projects_id", "summary": "Remove a project", "description": "200 with the project, its `state` now `removed`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/projects/{id}/settings": { "get": { "operationId": "get_projects_id_settings", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectSettings" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "patch": { "operationId": "patch_projects_id_settings", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectSettingsInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/projects/{id}/my-settings": { "patch": { "operationId": "patch_projects_id_my_settings", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectSettingsInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/specialists": { "get": { "operationId": "get_specialists", "summary": "Read the team's specialists", "description": "A request without an `Authorization` header, that is a browser session, gets the earlier person API's answer in `x-earlierPersonAPI`.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpecialistList" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The request has no `Authorization` header: a browser session.", "operation": { "operationId": "get_specialists", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpecialistPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } } }, "post": { "operationId": "post_specialists", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPISpecialist" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpecialistInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/specialists/{id}": { "get": { "operationId": "get_specialists_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPISpecialist" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "patch": { "operationId": "patch_specialists_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPISpecialist" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpecialistInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } }, "delete": { "operationId": "delete_specialists_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/playbooks": { "get": { "operationId": "get_playbooks", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaybookPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "post": { "operationId": "post_playbooks", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Playbook" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaybookInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/playbooks/{id}": { "get": { "operationId": "get_playbooks_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Playbook" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "patch": { "operationId": "patch_playbooks_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Playbook" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaybookInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } }, "delete": { "operationId": "delete_playbooks_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/templates": { "get": { "operationId": "get_templates", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplatePage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } }, "/templates/{id}": { "get": { "operationId": "get_templates_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Template" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } }, "/templates/{id}/install": { "post": { "operationId": "post_templates_id_install", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InstalledTemplate" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateInstallInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/specialists/{id}/template-diff": { "get": { "operationId": "get_specialists_id_template_diff", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateDiff" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } }, "/playbooks/{id}/template-diff": { "get": { "operationId": "get_playbooks_id_template_diff", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateDiff" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } }, "/specialists/{id}/template-update": { "post": { "operationId": "post_specialists_id_template_update", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPISpecialist" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateUpdateInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/playbooks/{id}/template-update": { "post": { "operationId": "post_playbooks_id_template_update", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Playbook" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateUpdateInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/connections": { "get": { "operationId": "get_connections", "summary": "Read your connections", "description": "Every runner's. A request without an `Authorization` header, that is a browser session, gets the earlier person API's answer in `x-earlierPersonAPI`.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConnectionList" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The request has no `Authorization` header: a browser session.", "operation": { "operationId": "get_connections", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConnectionPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } } }, "post": { "operationId": "post_connections", "summary": "Connect an account", "description": "202 with the attempt connecting. `runner_id` empty means your primary runner.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connect" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/connections/{id}": { "get": { "operationId": "get_connections_id", "summary": "Read one connection", "description": "Connection ids from this API start with `cn_`. Any other id gets the earlier person API's answer in `x-earlierPersonAPI`, with a bearer or a browser session. A browser session asking for a `cn_` id is 401 `unauthenticated`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The id does not start with `cn_`.", "operation": { "operationId": "get_connections_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIConnection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } } }, "patch": { "operationId": "patch_connections_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LabelInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } }, "delete": { "operationId": "delete_connections_id", "summary": "Sign out of a connection", "description": "202; it is signed out once the runner reports it. Connection ids from this API start with `cn_`. Any other id gets the earlier person API's answer in `x-earlierPersonAPI`, with a bearer or a browser session. A browser session asking for a `cn_` id is 401 `unauthenticated`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The id does not start with `cn_`.", "operation": { "operationId": "delete_connections_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } } } }, "/projects/{id}/connections": { "put": { "operationId": "put_projects_id_connections", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConnectionChoiceInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/tasks/{id}/steps/{key}/selection": { "post": { "operationId": "post_tasks_id_steps_key_selection", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "key", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Selected" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SelectionInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/runners": { "get": { "operationId": "get_runners", "summary": "Read your runners", "description": "Primary first. A request without an `Authorization` header, that is a browser session, gets the earlier person API's answer in `x-earlierPersonAPI`.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunnerList" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-earlierPersonAPI": { "servedWhen": "The request has no `Authorization` header: a browser session.", "operation": { "operationId": "get_runners", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunnerPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } } } }, "/runners/{id}": { "get": { "operationId": "get_runners_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonAPIRunner" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "delete": { "operationId": "delete_runners_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/runners/enrol/approve": { "post": { "operationId": "post_runners_enrol_approve", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunnerApproveInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/onboarding": { "get": { "operationId": "get_onboarding", "parameters": [], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Onboarding" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } }, "/onboarding/advance": { "post": { "operationId": "post_onboarding_advance", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OnboardingResult" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OnboardingInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/account-setups": { "post": { "operationId": "post_account_setups", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountSetup" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountSetupInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/account-setups/{id}": { "get": { "operationId": "get_account_setups_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountSetup" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "delete": { "operationId": "delete_account_setups_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/invites": { "post": { "operationId": "post_invites", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Invitation" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InviteInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/invites/{id}": { "get": { "operationId": "get_invites_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Invitation" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" }, "delete": { "operationId": "delete_invites_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/invites/{id}/accept": { "post": { "operationId": "post_invites_id_accept", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RosterMember" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AcceptInviteInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true }, "security": [ { "browserSession": [] } ] } }, "/notifications": { "get": { "operationId": "get_notifications", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationPage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "description": "cursor_expired or subscription_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b" } }, "/notification-subscriptions": { "post": { "operationId": "post_notification_subscriptions", "parameters": [ { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationSubscription" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "description": "cursor_expired or subscription_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubscribeNotificationsInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/notification-subscriptions/{id}": { "delete": { "operationId": "delete_notification_subscriptions_id", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "description": "cursor_expired or subscription_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/notification-subscriptions/{id}/ack": { "post": { "operationId": "post_notification_subscriptions_id_ack", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 256, "x-maxBytes": 256 } }, { "name": "If-Match", "in": "header", "required": true, "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } } ], "responses": { "200": { "description": "OK", "headers": { "ETag": { "schema": { "type": "string", "pattern": "^\"(0|[1-9][0-9]*)\"$" } }, "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ack" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "405": { "$ref": "#/components/responses/method_not_allowed" }, "409": { "$ref": "#/components/responses/revision_conflict" }, "410": { "description": "cursor_expired or subscription_expired", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "428": { "$ref": "#/components/responses/precondition_required" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-plan-part": "3b", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AcknowledgeNotificationInput" } } }, "x-maxBytes": 65536, "x-rejectDuplicateKeys": true, "x-rejectUnknownFields": true } } }, "/assistant/snapshot": { "get": { "operationId": "get_assistant_snapshot", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "job_states", "in": "query", "required": false, "description": "Job card states this client knows beyond the first five, comma-separated: `paused`. Without it a paused job card comes as `working`.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantSnapshot" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } } } }, "/assistant/messages": { "get": { "operationId": "get_assistant_messages", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "before", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 200 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantMessagePage" } } } }, "404": { "$ref": "#/components/responses/not_found" }, "422": { "$ref": "#/components/responses/invalid_input" }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } } }, "post": { "operationId": "post_assistant_messages", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantSent" } } } }, "201": { "description": "Created", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantSent" } } } }, "409": { "description": "idempotency_conflict, no_runner, runner_too_old or attachments_unavailable", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantError" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantSendInput" } } }, "x-maxBytes": 32768, "x-rejectDuplicateKeys": false, "x-rejectUnknownFields": true } } }, "/assistant/turns/{id}/cancel": { "post": { "operationId": "post_assistant_turns_id_cancel", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantCancelAccepted" } } } }, "404": { "$ref": "#/components/responses/not_found" }, "409": { "description": "turn_ended", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantError" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } }, "requestBody": { "required": false, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 32768, "x-rejectDuplicateKeys": false, "x-rejectUnknownFields": true } } }, "/assistant/cards/{id}/answer": { "post": { "operationId": "post_assistant_cards_id_answer", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantAnswered" } } } }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "409": { "description": "card_stale, card_answered, no_runner or runner_too_old", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/AssistantConflict" }, { "$ref": "#/components/schemas/AssistantError" } ] } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantAnswerInput" } } }, "x-maxBytes": 32768, "x-rejectDuplicateKeys": false, "x-rejectUnknownFields": true } } }, "/assistant/cards/{id}/carry_on": { "post": { "operationId": "post_assistant_cards_id_carry_on", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantCarriedOn" } } } }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/not_found" }, "409": { "description": "card_stale, not_paused or carry_on_unavailable", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantConflict" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantCarryOnInput" } } }, "x-maxBytes": 32768, "x-rejectDuplicateKeys": false, "x-rejectUnknownFields": true } } }, "/assistant/events": { "get": { "operationId": "get_assistant_events", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "after", "in": "query", "schema": { "type": "integer", "format": "int64", "minimum": 0 } }, { "name": "Last-Event-ID", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "job_states", "in": "query", "required": false, "description": "Job card states this client knows beyond the first five, comma-separated: `paused`. Without it a paused job card comes as `working`.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/AssistantEvent" } } } }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } }, "x-eventTypes": [ "message", "turn", "delta", "glance", "card", "activity", "ping" ], "x-retryMs": 2000, "x-pingSeconds": 20 } }, "/assistant/host": { "put": { "operationId": "put_assistant_host", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantHost" } } } }, "403": { "description": "host_not_allowed", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantError" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" }, "409": { "description": "host_unverified, host_elsewhere", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantError" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantHostInput" } } }, "x-maxBytes": 32768, "x-rejectDuplicateKeys": false, "x-rejectUnknownFields": true } } }, "/assistant/time-zone": { "put": { "operationId": "put_assistant_time_zone", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TimeZone" } } } }, "422": { "$ref": "#/components/responses/invalid_input" }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantTimeZoneInput" } } }, "x-maxBytes": 32768, "x-rejectDuplicateKeys": false, "x-rejectUnknownFields": true } } }, "/advice": { "get": { "operationId": "get_advice", "summary": "Read your advice", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdviceList" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/advice/{id}/act": { "post": { "operationId": "post_advice_id_act", "summary": "Act on advice", "description": "At the advice's revision. 409 `revision_conflict`, with `current_revision`, when it moved, was answered, or its facts no longer hold.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Advice" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdviceAction" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/advice/{id}/dismiss": { "post": { "operationId": "post_advice_id_dismiss", "summary": "Dismiss advice for now", "description": "Not now, at the advice's revision. 409 as for act.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Advice" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdviceAction" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/attachments": { "post": { "operationId": "post_attachments", "summary": "Upload an image or file for a message", "description": "The body is the file's bytes, its type in `Content-Type` and its name in `Content-Disposition` (`filename`). At most 10 MiB. The answer is 201 with the attachment; send its `id` in a message's `attachments`. Too large is 413 `attachment_too_large` or `attachment_pixels`; a type Equipo does not take is 415 `attachment_type` or `attachment_heic`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "Content-Disposition", "in": "header", "required": false, "schema": { "type": "string" }, "description": "The file's name, as `filename`." } ], "responses": { "201": { "description": "Created", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageAttachment" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "*/*": { "schema": { "type": "string", "contentMediaType": "application/octet-stream" } } }, "x-maxBytes": 10485760 } } }, "/attachments/{id}": { "get": { "operationId": "get_attachments_id", "summary": "Read the bytes of one of your attachments", "description": "Served with its sniffed type, `X-Content-Type-Options: nosniff` and a sandboxing `Content-Security-Policy`. An image is inline; every other file is an attachment download. `Cache-Control` is `private, max-age=86400`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "private, max-age=86400" } }, "Content-Disposition": { "schema": { "type": "string" } }, "X-Content-Type-Options": { "schema": { "const": "nosniff" } }, "Content-Security-Policy": { "schema": { "type": "string" } } }, "content": { "*/*": { "schema": { "type": "string", "contentMediaType": "application/octet-stream" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "delete": { "operationId": "delete_attachments_id", "summary": "Delete one of your uploads you have not sent", "description": "Removes the upload and its bytes, so it no longer counts towards the 20 unsent uploads you may hold. `404 not_found` when it is not yours or no longer exists: treat that as done. `409 attachment_sent` when it is on a message already; sent files stay.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "204": { "description": "Deleted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/attachments/{id}/preview": { "get": { "operationId": "get_attachments_id_preview", "summary": "Read an image attachment's thumbnail", "description": "At most 1024 pixels on its longer side, served as the attachment is.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "private, max-age=86400" } }, "Content-Disposition": { "schema": { "type": "string" } }, "X-Content-Type-Options": { "schema": { "const": "nosniff" } }, "Content-Security-Policy": { "schema": { "type": "string" } } }, "content": { "*/*": { "schema": { "type": "string", "contentMediaType": "application/octet-stream" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/cards/{id}/answer": { "post": { "operationId": "post_cards_id_answer", "summary": "Answer a card", "description": "Send one of the card's `options` as `choice`, with the card's current `revision`. The answer is 200 with the card, your answer as a message, and its turn. A stale revision is 409 with `code` `card_stale`; a card that is answered, changed or removed is 409 with `code` `card_answered`. Both carry the card as it is now. A named placement card includes optional `remember_name`, the suggested private name. Card answers accept optional `remember_name`: only an explicit nonempty string confirms a name. An empty string or omission skips learning. The field is honoured only on a card that already carries a suggestion. An optional idempotency_key enables seven-day device/person-scoped receipts when notification_actions_v1 is enabled; a changed body under the same key is 409 idempotency_conflict. No duplicate answer text is retained in the receipt.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Answered" } } } }, "409": { "description": "Conflict: the resource as it is now", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/CardConflict" }, { "$ref": "#/components/schemas/Error" } ] } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnswerCard" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/connections/preference": { "get": { "operationId": "get_connections_preference", "summary": "Read your preferred provider", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Preferences" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "put": { "operationId": "put_connections_preference", "summary": "Set your preferred provider", "description": "409 `revision_conflict` when the revision moved.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Preferences" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreferencesInput" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/connections/{id}/budget": { "put": { "operationId": "put_connections_id_budget", "summary": "Set a connection's budget", "description": "202; applied when the runner confirms. 409 `revision_conflict` when the revision moved.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetBudget" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/connections/{id}/cancel": { "post": { "operationId": "post_connections_id_cancel", "summary": "Cancel a connection attempt", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/connections/{id}/check": { "post": { "operationId": "post_connections_id_check", "summary": "Check a connection", "description": "202; the runner checks it and the state follows in the event stream.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/connections/{id}/forget": { "post": { "operationId": "post_connections_id_forget", "summary": "Forget a signed-out connection", "description": "A signed-out record, or an attempt that ended, goes from the list. 204.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "204": { "description": "No Content", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/connections/{id}/model": { "post": { "operationId": "post_connections_id_model", "summary": "Pick a model for a connecting account", "description": "The connecting card's pick, from the list the runner read. 202.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChooseModel" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/connections/{id}/models": { "put": { "operationId": "put_connections_id_models", "summary": "Set a connection's allowed models", "description": "202; applied when the runner confirms. 409 when the revision moved or the runner is too old; 422 `models_not_allowed` when a model cannot be allowed or none is.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetModels" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/connections/{id}/resume": { "post": { "operationId": "post_connections_id_resume", "summary": "Resume spending after a pause", "description": "202; 409 when that pause is not the connection's now.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResumeSpend" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/connections/{id}/secret": { "post": { "operationId": "post_connections_id_secret", "summary": "Send a token attempt's sealed secret", "description": "202 with the attempt waiting for its runner. The box is never given back.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Connection" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Sealed" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/events": { "get": { "operationId": "get_events", "summary": "Follow your conversation's events", "description": "A stream of Server-Sent Events. It opens with `retry: 2000`, then sends each event as `id: `, `event: ` and `data:` with the event as JSON (`StreamEvent`). A `ping` event, whose data is only `{\"type\":\"ping\"}`, comes every 20 seconds. `after` wins over `Last-Event-ID`; with neither, the stream starts at the newest event. A cursor older than the kept events (24 hours) is 410 `cursor_expired`: read `GET /snapshot` again and follow from its cursor. Apply an event only when its `revision` is newer than what you hold; a `delta` applies only when its `offset` equals the length of the draft you hold, and `delta` and `activity` events have revision 0. Roster removal or device revocation closes the stream. This route alone also takes a browser session, from a same-origin fetch only; any other request without a bearer is 403 `forbidden`.", "security": [ { "personBearer": [] }, { "browserSession": [] } ], "parameters": [ { "name": "after", "in": "query", "schema": { "type": "integer", "format": "int64", "minimum": 0 } }, { "name": "Last-Event-ID", "in": "header", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/StreamEvent" } } } }, "403": { "$ref": "#/components/responses/forbidden" }, "410": { "$ref": "#/components/responses/cursor_expired" }, "422": { "$ref": "#/components/responses/invalid_input" }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "x-eventTypes": [ "activity", "card", "connection", "coordinator", "delta", "housekeeping", "message", "ping", "preference", "project", "question", "runner", "step", "task", "thinking", "turn" ], "x-retryMs": 2000, "x-pingSeconds": 20 } }, "/housekeeping": { "get": { "operationId": "get_housekeeping", "summary": "Read your housekeeping", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Housekeeping" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "put": { "operationId": "put_housekeeping", "summary": "Pause housekeeping, or set its quiet hours", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Housekeeping" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetHousekeeping" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/housekeeping/actions": { "get": { "operationId": "get_housekeeping_actions", "summary": "Read housekeeping's actions", "description": "Newest first, at most `limit` (1 to 100, default 50) before the action `before`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "before", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HousekeepingActions" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/housekeeping/actions/{id}/undo": { "post": { "operationId": "post_housekeeping_actions_id_undo", "summary": "Undo a housekeeping action", "description": "409 with `code` `not_undoable` and the action as it is now when Undo no longer applies. No body is read.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HousekeepingAction" } } } }, "409": { "description": "Conflict: the resource as it is now", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionConflict" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/housekeeping/detectors/{id}": { "put": { "operationId": "put_housekeeping_detectors_id", "summary": "Turn one housekeeping detector on or off", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Housekeeping" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetDetector" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/messages": { "get": { "operationId": "get_messages", "summary": "Read your conversation's messages", "description": "Oldest first, at most `limit` (1 to 200, default 50) before the message `before`. The response's `before` is the cursor for the page before; it is empty at the start of the conversation.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "before", "in": "query", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 200, "default": 50 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessagePage" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "post": { "operationId": "post_messages", "summary": "Send a message to your Coordinator", "description": "A new message is 201 with the message and the turn that carries it. The same `idempotency_key` and text again is 200 with the same result; the same key with other text is 409 `idempotency_conflict`. `attachments` are ids from `POST /attachments`, at most five, and the text may then be empty. An open typed placement card can also take a composer message in that same conversation as its answer. Messages with `project_id` or attachments always follow normal send behavior. Cards that are set aside, answered or closed never consume composer messages. An open card never causes a composer message to return 422. Composer answers skip learning. See the Projects and starting a request section of equipo-v1.md for the exact matching rules.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "201": { "description": "Created", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Sent" } } } }, "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Sent" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SendMessage" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/notebook": { "get": { "operationId": "get_notebook", "summary": "Read your Coordinator's notebook", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Notebook" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/notebook/corrections/{id}": { "delete": { "operationId": "delete_notebook_corrections_id", "summary": "Remove one placement correction from the notebook", "description": "204.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "204": { "description": "No Content", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/notebook/reset": { "post": { "operationId": "post_notebook_reset", "summary": "Clear the notebook and start your Coordinator afresh", "description": "202 with the Coordinator; 409 `coordinator_busy` while a turn runs.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Coordinator" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/projects/{id}/merge-policy": { "get": { "operationId": "get_projects_id_merge_policy", "summary": "Read a project's merge policy", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MergePolicy" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "put": { "operationId": "put_projects_id_merge_policy", "summary": "Set a project's merge policy", "description": "The whole policy at its revision; 409 `revision_conflict` when it moved.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MergePolicy" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetMergePolicy" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/questions/{id}/cancel": { "post": { "operationId": "post_questions_id_cancel", "summary": "Cancel a question", "description": "202 with the attempt; 409 `question_ended` once it has ended.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccepted" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/snapshot": { "get": { "operationId": "get_snapshot", "summary": "Read everything a client shows, in one transaction", "description": "Start here, then follow `GET /events` from the snapshot's `cursor`.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Snapshot" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/specialists/{id}/revoke": { "post": { "operationId": "post_specialists_id_revoke", "summary": "Revoke a specialist", "description": "At the specialist's current revision.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Specialist" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevokeSpecialist" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/steps/{id}/log": { "get": { "operationId": "get_steps_id_log", "summary": "Read the tail of a step's log", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StepLog" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/tasks/{id}/duplicate": { "post": { "operationId": "post_tasks_id_duplicate", "summary": "Fold a task into another", "description": "The creator folds the task into `of`, an open task in the same project. The task is cancelled and its brief goes on the other task's thread.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MarkDuplicate" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/files/{file}": { "get": { "operationId": "get_tasks_id_files_file", "summary": "Read an image a Research step kept", "description": "PNG, served as an attachment is.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "file", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "private, max-age=86400" } }, "Content-Disposition": { "schema": { "type": "string" } }, "X-Content-Type-Options": { "schema": { "const": "nosniff" } }, "Content-Security-Policy": { "schema": { "type": "string" } } }, "content": { "image/png": { "schema": { "type": "string", "contentMediaType": "image/png" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/tasks/{id}/kind": { "post": { "operationId": "post_tasks_id_kind", "summary": "Switch a task between a change and an exploration", "description": "The creator's switch, at the task's current revision.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetKind" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/merge": { "post": { "operationId": "post_tasks_id_merge", "summary": "Merge a task left at Ready to merge", "description": "The creator's Merge. 202 with the attempt; 409 `not_mergeable` or `task_merging`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccepted" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/tasks/{id}/move": { "post": { "operationId": "post_tasks_id_move", "summary": "Move a task to another project", "description": "An owner's correction at the task's revision. `abandon` drops a pending move, and `new_project` asks the Coordinator to make a project for it. 202 with `accepted`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "type": "object", "properties": { "accepted": { "type": "boolean" } }, "required": [ "accepted" ], "additionalProperties": false } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MoveTask" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/priority": { "put": { "operationId": "put_tasks_id_priority", "summary": "Set a task's priority", "description": "The task creator's own choice, at the task's revision; 409 `revision_conflict` when it moved.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetPriority" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/questions": { "post": { "operationId": "post_tasks_id_questions", "summary": "Ask a question about a task", "description": "202 with the question. The same key with another body is 409 `idempotency_conflict`; 409 `not_askable` when the task takes no questions.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Question" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AskQuestion" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/recover": { "post": { "operationId": "post_tasks_id_recover", "summary": "Recover a task", "description": "202 with the attempt.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccepted" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/tasks/{id}/retry": { "post": { "operationId": "post_tasks_id_retry", "summary": "Retry a task that stopped", "description": "202 with the attempt; 409 `not_retryable` when it cannot be retried. With notification_actions_v1, an optional bound body pins task revision and failed step ID/revision/attempt. Every field is required when any is present. Empty/no body remains the legacy request. Same device/person/key/body returns the original attempt for seven days; changed body is 409 idempotency_conflict.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccepted" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": false, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RetryTask" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/round": { "post": { "operationId": "post_tasks_id_round", "summary": "Try another round", "description": "After the automatic rounds. 202 with the attempt.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccepted" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/tasks/{id}/run-now": { "post": { "operationId": "post_tasks_id_run_now", "summary": "Run a held step now", "description": "The task creator's leave for the held step at the revision its hold shows. 202 with the release; 409 when the step is not held at that revision, when the hold is a spending bar (`hold_bar`), or when the runner is too old.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunNowAccepted" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunNow" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/uncombine": { "post": { "operationId": "post_tasks_id_uncombine", "summary": "Undo a combination", "description": "Undo on a task Equipo combined into another. 200 with the task.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/tasks/{id}/undo-merge": { "post": { "operationId": "post_tasks_id_undo_merge", "summary": "Undo Equipo's own merge", "description": "201 with the revert task it starts; 409 `not_undoable`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "201": { "description": "Created", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UndoMerge" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/thinking": { "get": { "operationId": "get_thinking", "summary": "Read your thinking words", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ThinkingWords" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "put": { "operationId": "put_thinking", "summary": "Choose your thinking words", "description": "409 `revision_conflict` when the revision moved.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ThinkingWords" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ThinkingChoiceInput" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/turns/{id}": { "get": { "operationId": "get_turns_id", "summary": "Read one turn", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Turn" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/turns/{id}/cancel": { "post": { "operationId": "post_turns_id_cancel", "summary": "Cancel a turn in flight", "description": "202 with the turn's `attempt`, or 409 `turn_ended` with the turn's `current_revision` once it has ended. No body is read.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CancelAccepted" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/turns/{id}/retry": { "post": { "operationId": "post_turns_id_retry", "summary": "Try a failed turn again", "description": "202 with a new turn, the failed turn's next attempt. The failed turn's messages move to it: each message's `turn_id` becomes the new turn's, with a `message` event, and the failed turn keeps its `reason` with no `message_ids`. What the failed attempt already did is not done again. Asked again, it is the same turn. Only your latest turn in the conversation can be tried again, once it has failed: 409 `not_retryable` when it did not fail, failed with `attachment_unavailable`, `runner_storage_full` or `runner_too_old`, or a newer turn followed it. No body is read.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Turn" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/usage": { "get": { "operationId": "get_usage", "summary": "Read your usage", "description": "Your own usage for the `period`, summed by `by`.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "period", "in": "query", "schema": { "type": "string", "enum": [ "day", "week", "month" ], "default": "month" } }, { "name": "by", "in": "query", "schema": { "type": "string", "enum": [ "connection", "role", "project", "task", "model" ], "default": "connection" } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UsageTotals" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/assistant/oficina/connect": { "post": { "operationId": "post_assistant_oficina_connect", "summary": "Start connecting your Oficina apps", "description": "Only when the instance has Oficina connect. `return_to` must be an address on an origin in `EQUIPO_ASSISTANT_HOSTS`, or the answer is 422 `invalid_input`. Send the browser to the `url` in the answer.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "type": "object", "properties": { "url": { "type": "string" } }, "required": [ "url" ], "additionalProperties": false } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "return_to": { "type": "string" } }, "required": [ "return_to" ], "additionalProperties": false } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/assistant/oficina/connect/finish": { "post": { "operationId": "post_assistant_oficina_connect_finish", "summary": "Finish connecting your Oficina apps", "description": "Only when the instance has Oficina connect. Pass the `oficina_state` and `oficina_code` the browser came back with, within two minutes, with the same person's bearer. 403 `forbidden` when someone else started the consent.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "enum": [ "connected", "denied", "expired", "unavailable" ] } }, "required": [ "status" ], "additionalProperties": false } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "state": { "type": "string" }, "code": { "type": "string" } }, "required": [ "state", "code" ], "additionalProperties": false } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/cards/{id}/visibility": { "post": { "operationId": "post_cards_id_visibility", "summary": "Set a card aside, or bring it back", "description": "Send `aside` and the card's current `revision`. Setting a card aside never answers, cancels or starts anything: it stays in Needs you, and the card's `aside` says it is set aside for you. The answer is 200 with the card. A stale revision, or a card that no longer waits on you, is 409 with `code` `card_stale` and the card as it is now.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Card" } } } }, "409": { "description": "Conflict: the resource as it is now", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CardConflict" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetCardVisibility" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/push-registrations": { "post": { "operationId": "post_push_registrations", "summary": "Register this device for push notifications", "description": "A device bearer only (a browser session is 401). Send the APNs device `token` (hex), its `environment` (`production` or `development`), the app's `platform` (`ios` or `macos`) and, on iPhone, the Live Activity push-to-start `start_token`. The registration belongs to the paired device credential that sends it and replaces its earlier one; a token belongs to one credential at a time, so registering it removes it from any other (with what waited for that credential). It is deleted when the device is revoked, when its person leaves the team, or when Apple reports the token `Unregistered`, `ExpiredToken`, `BadDeviceToken` or `DeviceTokenNotForTopic`. Tokens are never echoed, logged or audited. The answer is 200 with the registration, without its tokens. Pushes: an alert when a card waits on you (collapse ID the card, `equipo.card_id` to open it), when the coordinator replies while no `/events` stream is open (the reply's first line, `equipo.turn_id`), and a passive alert when a task you started ends or a step of it stops (`equipo.task_id`); the badge is your Needs you count, sent when the device registers and whenever it changes; for each task you started, at most three, a Live Activity (`attributes-type` `EquipoTaskAttributes`, attributes `{task_id}`, content state `LiveActivityState`) starts when work starts, updates on its stage, step or needs-you change (urgent, without an alert, when it starts needing you) and at most once a minute for its activity line, and ends with the outcome.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PushRegistration" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterPush" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/push-registrations/activities": { "post": { "operationId": "post_push_registrations_activities", "summary": "Register a running Live Activity's update token", "description": "A device bearer only. Send the `task_id` the Live Activity follows (a task you started; another's is 404) and the activity's own push `token` (hex). The activity then gets the task's current state in full. Once the task ended, the token is accepted only while the activity's end waits to be sent (the end then goes at once), else 409 `task_ended`. Updates and the end go to it; the server forgets it when the activity ends. 204.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "204": { "description": "No Content", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterActivity" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/auth/devices/native": { "post": { "operationId": "post_auth_devices_native", "description": "Register a device using only its own live home-assertion-native session cookie and same-origin request evidence (send the exact instance Origin). JSON only. Idempotency-Key is not required; each success creates a new credential. The credential expires seven days after the source session was minted, and is revoked when that session is deleted. Paired credentials retain thirty days. public_key is canonical unpadded base64url of the 32-byte Curve25519 signing public key; label is 1–128 UTF-8 bytes without NUL, CR or LF.", "security": [ { "browserSession": [] } ], "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BeginDeviceInput" } } } }, "responses": { "200": { "description": "JSON response; Cache-Control: no-store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonCredential" } } } }, "401": { "description": "unauthenticated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "403": { "description": "forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "422": { "description": "invalid_input", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "503": { "description": "unavailable", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/native/oficina-id": { "post": { "operationId": "post_native_oficina_id", "description": "Exchange an assertion and canonical 43-character verifier for a native session. JSON only; Origin and Sec-Fetch-Site headers refused; no cookies set. Only explicitly linked active roster members are admitted. Every unlinked subject, including choice:new, gets byte-identical 403 {\"state\":\"unknown\"}. No allocation or 409 choose in this slice. expires_at is Unix seconds. Errors: 400 invalid, 401 failed, 503 unavailable.", "security": [], "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NativeRequest" } } } }, "responses": { "200": { "description": "JSON response; Cache-Control: no-store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NativeSession" } } } }, "400": { "description": "JSON response; Cache-Control: no-store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NativeState" } } } }, "401": { "description": "JSON response; Cache-Control: no-store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NativeState" } } } }, "403": { "description": "JSON response; Cache-Control: no-store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NativeState" } } } }, "503": { "description": "JSON response; Cache-Control: no-store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NativeState" } } } } }, "servers": [ { "url": "/" } ] } }, "/projects/{id}/star": { "put": { "operationId": "put_projects_id_star", "summary": "Set your star on a project", "description": "Any current member; only their own star changes. Repeated values are idempotent.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetProjectStar" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/projects/{id}/details": { "put": { "operationId": "put_projects_id_details", "summary": "Edit the team project details", "description": "Owner only. Supply the current project revision; stale edits return 409 idempotency_conflict. Names belong to the team.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EditProject" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/projects/{id}/names": { "delete": { "operationId": "delete_projects_id_names", "summary": "Remove your learned project name", "description": "Remove only the authenticated person's learned name. Idempotent 204; an unknown project returns 404. No revision is required.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "204": { "description": "Name removed or already absent" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgetProjectName" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/time-zone": { "put": { "operationId": "put_time_zone", "summary": "Set your time zone", "description": "The IANA zone the instance words your times in, `Europe/Dublin` until you set one. 422 `invalid_input` for a zone Equipo does not know.", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TimeZone" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TimeZoneInput" } } }, "x-maxBytes": 32768, "x-rejectUnknownFields": true } } }, "/tasks/{id}/preview-pass": { "post": { "operationId": "post_tasks_id_preview_pass", "summary": "Mint a one-use preview pass", "description": "Device bearer only. Returns an opaque 32-byte pass bound to the current person, device, task, candidate and preview deployment. Expires in at most 60 seconds. Exchange only by POST body at /native/preview/exchange on the instance origin; never put the pass in a URL. The exchange issues a host-only, Secure, HttpOnly, SameSite=Strict __Host-equipo-preview-{id} cookie with Path=/, server-authorized only for GET /tasks/{id}/preview, expiring at grant_expires_at (at most 15 minutes, no renewal). No general browser sign-in. Unknown or wrong bindings are indistinguishable; valid-bound stale and expired states use preview_changed and preview_expired. Both device and IP are rate limited.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "responses": { "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "201": { "description": "Created", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreviewPass" } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "additionalProperties": false, "required": [ "candidate_sha" ], "properties": { "candidate_sha": { "type": "string", "pattern": "^[0-9a-f]{40}$" } } } } }, "x-maxBytes": 4096, "x-rejectUnknownFields": true } } }, "/tasks/{id}/changes/diff": { "get": { "summary": "Read one bounded display patch for the current candidate", "description": "Device-only, no-store. Same visibility as GET /tasks/{id}. At most 64 KiB and 2,000 lines of patch text, 128 KiB encoded response. Whole-file withholding on secrets or incomplete scanning. Accepted collections expire after seven days. No patch bytes in task lists or Coordinator tools.", "security": [ { "personBearer": [] } ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "candidate_sha", "in": "query", "required": true, "schema": { "type": "string", "pattern": "^[0-9a-f]{40}$" } }, { "name": "path", "in": "query", "required": true, "schema": { "type": "string", "maxLength": 4096 } } ], "responses": { "200": { "description": "Bounded patch or withholding reason", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangeDiff" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "default": { "description": "An error, with one of the codes in `Error`", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "409": { "description": "The candidate changed", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } }, "/assistant/abilities": { "get": { "operationId": "get_assistant_abilities", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantAbilities" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } } } }, "/assistant/abilities/refresh": { "post": { "operationId": "post_assistant_abilities_refresh", "security": [ { "personBearer": [] } ], "parameters": [], "responses": { "200": { "description": "OK", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantAbilitiesRefreshed" } } } }, "202": { "description": "Accepted", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } } }, "401": { "$ref": "#/components/responses/unauthenticated" }, "503": { "$ref": "#/components/responses/unavailable" } }, "requestBody": { "required": false, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Empty" } } }, "x-maxBytes": 32768, "x-rejectDuplicateKeys": false, "x-rejectUnknownFields": true } } } }, "components": { "securitySchemes": { "browserSession": { "type": "apiKey", "in": "cookie", "name": "rastrillo_session" }, "personBearer": { "type": "http", "scheme": "bearer", "bearerFormat": "equipo.person.v1" } }, "schemas": { "Error": { "type": "object", "properties": { "code": { "type": "string", "enum": [ "unauthenticated", "forbidden", "not_found", "method_not_allowed", "revision_conflict", "cursor_expired", "invalid_input", "precondition_required", "unavailable", "device_expired", "slow_down", "authorization_pending", "subscription_expired", "idempotency_conflict", "repo_not_allowed", "coordinator_busy", "task_ended", "task_busy", "not_retryable", "not_mergeable", "not_undoable", "task_merging", "not_askable", "runner_offline", "confirmation_required", "hold_bar", "runner_too_old", "no_runner", "models_not_allowed", "not_active", "attachment_too_large", "attachment_type", "attachment_heic", "attachment_pixels", "attachment_limit", "turn_ended", "question_ended", "host_not_allowed", "already_running", "offer_changed", "preview_changed", "preview_expired", "attachments_unavailable", "attachment_sent", "host_unverified", "host_elsewhere", "ability_off" ] }, "copy_key": { "type": "string", "enum": [ "api.unauthenticated", "api.forbidden", "api.not_found", "api.method_not_allowed", "api.revision_conflict", "api.cursor_expired", "api.invalid_input", "api.precondition_required", "api.unavailable", "api.device_expired", "api.slow_down", "api.authorization_pending", "api.idempotency_conflict", "api.repo_not_allowed", "api.coordinator_busy", "api.task_ended", "api.task_busy", "api.not_retryable", "api.not_mergeable", "api.not_undoable", "api.task_merging", "api.not_askable", "api.runner_offline", "api.confirmation_required", "api.hold_bar", "api.runner_too_old", "api.no_runner", "api.models_not_allowed", "api.not_active", "api.attachment_too_large", "api.attachment_type", "api.attachment_heic", "api.attachment_pixels", "api.attachment_limit", "api.turn_ended", "api.question_ended", "api.host_not_allowed", "notifications.subscription_expired", "notifications.cursor_expired", "roster.invalid_input", "roster.forbidden", "roster.revision_conflict", "budgets.invalid_input", "budgets.forbidden", "budgets.revision_conflict", "api.already_running", "api.offer_changed", "api.attachments_unavailable", "api.attachment_sent", "api.host_unverified", "api.host_elsewhere", "api.ability_off" ] }, "request_id": { "type": "string" }, "current_revision": { "anyOf": [ { "type": "integer", "format": "int64" }, { "type": "null" } ] } }, "required": [ "code", "copy_key", "request_id" ], "additionalProperties": false }, "PersonAPIPerson": { "type": "object", "properties": { "address": { "type": "string" }, "display_identity": { "type": "string" }, "active": { "type": "boolean" }, "role": { "type": "string", "enum": [ "owner", "member" ] } }, "required": [ "address", "display_identity", "active", "role" ], "additionalProperties": false }, "PersonAPIMe": { "type": "object", "properties": { "person": { "$ref": "#/components/schemas/PersonAPIPerson" }, "team_id": { "type": "string" }, "team_name": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "person", "team_id", "team_name", "revision" ], "additionalProperties": false }, "Settings": { "type": "object", "properties": { "landing": { "type": "string", "enum": [ "conversation", "work" ] }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "landing", "revision" ], "additionalProperties": false }, "PersonAPIMessage": { "type": "object", "properties": { "id": { "type": "string" }, "conversation_id": { "type": "string" }, "thread_id": { "type": "string" }, "author_kind": { "type": "string" }, "author_id": { "type": "string" }, "body": { "type": "string" }, "sequence": { "type": "integer", "format": "int64" }, "revision": { "type": "integer", "format": "int64" }, "created_at": { "type": "string", "format": "date-time" }, "sources": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/SourceRef" } } }, "required": [ "id", "conversation_id", "thread_id", "author_kind", "author_id", "body", "sequence", "revision", "created_at", "sources" ], "additionalProperties": false }, "PersonAPICard": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string" }, "resource_id": { "type": "string" }, "task_id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "copy_key": { "type": "string" }, "actions": { "type": [ "array", "null" ], "items": { "type": "string" } }, "waiting_task_id": { "type": "string" } }, "required": [ "id", "kind", "resource_id", "task_id", "revision", "copy_key", "actions", "waiting_task_id" ], "additionalProperties": false }, "ConversationPage": { "type": "object", "properties": { "messages": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/PersonAPIMessage" } }, "cards": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/PersonAPICard" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "messages", "cards", "next_cursor", "revision" ], "additionalProperties": false }, "Preference": { "type": "object", "properties": { "id": { "type": "string" }, "text": { "type": "string" }, "status": { "type": "string" }, "source_message_id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "id", "text", "status", "source_message_id", "revision" ], "additionalProperties": false }, "PersonAPITask": { "type": "object", "properties": { "id": { "type": "string" }, "project_id": { "type": "integer", "format": "int64" }, "requester": { "type": "string" }, "description": { "type": "string" }, "kind": { "type": "string", "enum": [ "bug", "feature", "rendered_change", "recommendation", "investigation" ] }, "state": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "plan_revision": { "type": "integer", "format": "int64" }, "replacement_id": { "type": "string" }, "can_cancel": { "type": "boolean" }, "can_merge": { "type": "boolean" }, "needs_you": { "type": "boolean" }, "steps": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/PersonAPIStep" } }, "usage": { "anyOf": [ { "$ref": "#/components/schemas/Usage" }, { "type": "null" } ] } }, "required": [ "id", "project_id", "requester", "description", "kind", "state", "revision", "plan_revision", "replacement_id", "can_cancel", "can_merge", "needs_you", "steps", "usage" ], "additionalProperties": false }, "Usage": { "type": "object", "properties": { "calls": { "type": "integer", "format": "int64" }, "input_tokens": { "type": "integer", "format": "int64" }, "output_tokens": { "type": "integer", "format": "int64" } }, "required": [ "calls", "input_tokens", "output_tokens" ], "additionalProperties": false }, "PersonAPIStep": { "type": "object", "properties": { "key": { "type": "string" }, "category": { "type": "string" }, "action": { "type": "string" }, "state": { "type": "string" }, "model": { "type": "string" }, "account": { "type": "string" }, "actual": { "type": "string" }, "reason": { "type": "string" }, "usage": { "anyOf": [ { "$ref": "#/components/schemas/Usage" }, { "type": "null" } ] }, "allowance_remaining": { "anyOf": [ { "type": "integer", "format": "int64" }, { "type": "null" } ] } }, "required": [ "key", "category", "action", "state", "model", "account", "actual", "reason", "usage", "allowance_remaining" ], "additionalProperties": false }, "PersonAPICoordinator": { "type": "object", "properties": { "id": { "type": "string" }, "runner_id": { "type": "string" }, "connection_id": { "type": "string" }, "generation": { "type": "integer", "format": "int64" }, "revision": { "type": "integer", "format": "int64" }, "waiting_task_id": { "type": "string" }, "turns": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/PersonAPITurn" } }, "limits": { "anyOf": [ { "$ref": "#/components/schemas/Limits" }, { "type": "null" } ] }, "limits_revision": { "type": "integer", "format": "int64" } }, "required": [ "id", "runner_id", "connection_id", "generation", "revision", "waiting_task_id", "turns", "limits", "limits_revision" ], "additionalProperties": false }, "PersonAPITurn": { "type": "object", "properties": { "id": { "type": "string" }, "state": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "id", "state", "revision" ], "additionalProperties": false }, "Option": { "type": "object", "properties": { "id": { "type": "string" }, "label": { "type": "string" } }, "required": [ "id", "label" ], "additionalProperties": false }, "Field": { "type": "object", "properties": { "key": { "type": "string" }, "prompt": { "type": "string" } }, "required": [ "key", "prompt" ], "additionalProperties": false }, "Ack": { "type": "object", "properties": { "revision": { "type": "integer", "format": "int64" } }, "required": [ "revision" ], "additionalProperties": false }, "MessageInput": { "type": "object", "properties": { "body": { "type": "string", "minLength": 1, "x-maxBytes": 16384 } }, "required": [ "body" ], "additionalProperties": false }, "SettingsInput": { "type": "object", "properties": { "landing": { "type": "string", "enum": [ "conversation", "work" ] } }, "required": [ "landing" ], "additionalProperties": false }, "RouteInput": { "type": "object", "properties": { "task_id": { "type": "string" } }, "required": [ "task_id" ], "additionalProperties": false }, "ProjectInput": { "type": "object", "properties": { "project_id": { "type": "integer", "format": "int64" } }, "required": [ "project_id" ], "additionalProperties": false }, "PreferenceInput": { "type": "object", "properties": { "text": { "type": "string", "minLength": 1, "x-maxBytes": 8192 }, "source_message_id": { "type": "string" } }, "required": [ "text" ], "additionalProperties": false }, "BindingInput": { "type": "object", "properties": { "runner_id": { "type": "string" }, "connection_id": { "type": "string" } }, "required": [ "runner_id", "connection_id" ], "additionalProperties": false }, "RetryInput": { "type": "object", "properties": { "turn_id": { "type": "string" } }, "required": [ "turn_id" ], "additionalProperties": false }, "Limits": { "type": "object", "properties": { "calls": { "type": "integer", "format": "int64" }, "input_tokens": { "type": "integer", "format": "int64" }, "output_tokens": { "type": "integer", "format": "int64" }, "seconds": { "type": "integer", "format": "int64" } }, "required": [ "calls", "input_tokens", "output_tokens", "seconds" ], "additionalProperties": false }, "LimitsInput": { "type": "object", "properties": { "person": { "type": "string" }, "limits": { "$ref": "#/components/schemas/Limits" } }, "required": [ "person", "limits" ], "additionalProperties": false }, "RenderedInput": { "type": "object", "properties": { "candidate_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "diff_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "render_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "decision": { "type": "string", "enum": [ "copy", "design" ] } }, "required": [ "candidate_hash", "diff_hash", "render_hash", "decision" ], "additionalProperties": false }, "MergeInput": { "type": "object", "properties": { "reference": { "type": "string", "format": "uri", "maxLength": 2048, "pattern": "^https://amadan\\.net/" } }, "required": [ "reference" ], "additionalProperties": false }, "AnswerInput": { "oneOf": [ { "type": "object", "properties": { "kind": { "const": "clarification" }, "option_id": { "type": "string", "minLength": 1 }, "text": { "type": "string", "minLength": 1, "x-maxBytes": 8192 } }, "required": [ "kind" ], "additionalProperties": false, "oneOf": [ { "required": [ "option_id" ], "not": { "required": [ "text" ] } }, { "required": [ "text" ], "not": { "required": [ "option_id" ] } } ] }, { "type": "object", "properties": { "kind": { "const": "native" }, "behavior": { "const": "allow" }, "updated_input": { "type": "object", "properties": { "answers": { "type": "object", "minProperties": 1, "additionalProperties": { "type": "string", "maxLength": 8192 } } }, "required": [ "answers" ], "additionalProperties": false } }, "required": [ "kind", "behavior" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "native" }, "behavior": { "const": "deny" } }, "required": [ "kind", "behavior" ], "additionalProperties": false } ], "discriminator": { "propertyName": "kind" } }, "PlanInput": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "bug", "feature", "rendered_change", "recommendation", "investigation" ] }, "project_id": { "type": "integer", "format": "int64" }, "steps": { "type": "array", "items": { "$ref": "#/components/schemas/PlanStep" }, "minItems": 1 }, "playbook_id": { "type": "string" }, "playbook_revision": { "type": "integer", "format": "int64" } }, "required": [ "kind", "project_id", "steps" ], "additionalProperties": false }, "PlanStep": { "type": "object", "properties": { "depends_on": { "type": "array", "items": { "type": "string" } }, "key": { "type": "string" }, "specialist": { "type": "string" }, "action": { "type": "string" }, "instructions": { "type": "string" }, "connection_id": { "type": "string" }, "model": { "type": "string" }, "selection_reason": { "type": "string" } }, "required": [ "key", "action" ], "additionalProperties": false }, "Plan": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "bug", "feature", "rendered_change", "recommendation", "investigation" ] }, "project_id": { "type": "integer", "format": "int64" }, "steps": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/PlanStep" } }, "playbook_id": { "type": "string" }, "playbook_revision": { "type": "integer", "format": "int64" }, "task_id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "required_steps": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "required": [ "kind", "project_id", "steps", "playbook_id", "playbook_revision", "task_id", "revision", "required_steps" ], "additionalProperties": false }, "SourceRef": { "type": "object", "properties": { "kind": { "type": "string" }, "id": { "type": "string" }, "hash": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "kind", "id", "hash", "revision" ], "additionalProperties": false }, "Empty": { "type": "object", "maxProperties": 0, "additionalProperties": false }, "PersonAPICapabilities": { "type": "object", "properties": { "version": { "const": "1.0.0" }, "browser_session": { "const": true }, "device_bearer": { "const": true }, "part": { "const": "3b" }, "notification_actions_v1": { "type": "boolean", "default": false, "description": "Disabled unless EQUIPO_NOTIFICATION_ACTIONS=1. Enable in production only after physical-device unlock and privacy checks." } }, "required": [ "version", "browser_session", "device_bearer", "part" ], "additionalProperties": false }, "PersonPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/PersonAPIPerson" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "minimum": 1 } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "TaskPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/PersonAPITask" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "minimum": 1 } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "CardPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/PersonAPICard" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "minimum": 1 } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "PreferencePage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Preference" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "minimum": 1 } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "ClarificationQuestion": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "const": "clarification" }, "task_id": { "type": "string" }, "text": { "type": "string" }, "state": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "can_answer": { "type": "boolean" }, "can_allow": { "type": "boolean" }, "options": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Option" } }, "fields": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Field" } }, "allow_text": { "type": "boolean" }, "expires_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ] } }, "required": [ "id", "kind", "task_id", "text", "state", "revision", "can_answer", "can_allow", "options", "fields", "allow_text", "expires_at" ], "additionalProperties": false }, "NativeQuestion": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "const": "native" }, "task_id": { "type": "string" }, "text": { "type": "string" }, "state": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "can_answer": { "type": "boolean" }, "can_allow": { "type": "boolean" }, "options": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Option" } }, "fields": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Field" } }, "allow_text": { "const": false }, "expires_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ] } }, "required": [ "id", "kind", "task_id", "text", "state", "revision", "can_answer", "can_allow", "options", "fields", "allow_text", "expires_at" ], "additionalProperties": false }, "PersonAPIQuestion": { "oneOf": [ { "$ref": "#/components/schemas/ClarificationQuestion" }, { "$ref": "#/components/schemas/NativeQuestion" } ], "discriminator": { "propertyName": "kind" } }, "BeginDeviceInput": { "type": "object", "properties": { "public_key": { "type": "string" }, "label": { "type": "string" } }, "required": [ "public_key", "label" ], "additionalProperties": false, "x-go-type": "personapi.BeginDeviceInput" }, "ApproveDeviceInput": { "additionalProperties": false, "properties": { "typed_code": { "type": "string" } }, "required": [ "typed_code" ], "type": "object" }, "LabelInput": { "additionalProperties": false, "properties": { "label": { "type": "string" } }, "required": [ "label" ], "type": "object" }, "RosterInput": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "role": { "type": "string" } }, "required": [ "role", "active" ], "type": "object" }, "RosterMember": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "address": { "type": "string" }, "display_identity": { "type": "string" }, "revision": { "format": "int64", "type": "integer" }, "role": { "type": "string" } }, "required": [ "address", "display_identity", "active", "role", "revision" ], "type": "object" }, "PeriodLimits": { "additionalProperties": false, "properties": { "calls": { "format": "int64", "type": "integer" }, "input_tokens": { "format": "int64", "type": "integer" }, "output_tokens": { "format": "int64", "type": "integer" }, "seconds": { "format": "int64", "type": "integer" } }, "required": [ "calls", "input_tokens", "output_tokens", "seconds" ], "type": "object" }, "BudgetsInput": { "additionalProperties": false, "properties": { "projects": { "additionalProperties": { "$ref": "#/components/schemas/PeriodLimits" }, "type": "object" }, "team": { "$ref": "#/components/schemas/PeriodLimits" } }, "required": [ "team", "projects" ], "type": "object" }, "Budgets": { "additionalProperties": false, "properties": { "projects": { "additionalProperties": { "$ref": "#/components/schemas/PeriodLimits" }, "type": "object" }, "revision": { "format": "int64", "type": "integer" }, "team": { "$ref": "#/components/schemas/PeriodLimits" } }, "required": [ "team", "projects", "revision" ], "type": "object" }, "TeamLinkInput": { "additionalProperties": false, "properties": { "name": { "type": "string" }, "origin": { "type": "string" } }, "required": [ "origin", "name" ], "type": "object" }, "TeamLink": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "last_signed_in_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ] }, "name": { "type": "string" }, "needs_you": { "anyOf": [ { "format": "int64", "type": "integer" }, { "type": "null" } ] }, "origin": { "type": "string" }, "revision": { "format": "int64", "type": "integer" } }, "required": [ "id", "origin", "name", "last_signed_in_at", "needs_you", "revision" ], "type": "object" }, "Account": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "label": { "type": "string" }, "revision": { "format": "int64", "type": "integer" } }, "required": [ "id", "label", "revision" ], "type": "object" }, "DecisionOwner": { "additionalProperties": false, "properties": { "address": { "type": "string" }, "decision": { "type": "string" } }, "required": [ "decision", "address" ], "type": "object" }, "ProjectFields": { "additionalProperties": false, "properties": { "account_id": { "format": "int64", "type": "integer" }, "app_name": { "type": "string" }, "default_branch": { "type": "string" }, "kind": { "type": "string" }, "name": { "type": "string" }, "owners": { "items": { "$ref": "#/components/schemas/DecisionOwner" }, "type": "array" }, "repository": { "type": "string" } }, "required": [ "account_id", "name", "repository", "default_branch", "kind", "owners" ], "type": "object" }, "PersonAPIProject": { "additionalProperties": false, "properties": { "account_id": { "format": "int64", "type": "integer" }, "app_name": { "type": "string" }, "default_branch": { "type": "string" }, "id": { "type": "string" }, "kind": { "type": "string" }, "name": { "type": "string" }, "owners": { "items": { "$ref": "#/components/schemas/DecisionOwner" }, "type": [ "array", "null" ] }, "repository": { "type": "string" }, "revision": { "format": "int64", "type": "integer" } }, "required": [ "id", "account_id", "name", "repository", "app_name", "default_branch", "kind", "owners", "revision" ], "type": "object" }, "ProjectSettingsInput": { "additionalProperties": false, "properties": { "action": { "type": "string" }, "approval_mode": { "type": "string" }, "kind": { "enum": [ "bug", "feature", "rendered_change", "recommendation", "investigation" ], "type": "string" }, "playbook_id": { "type": "string" }, "rules": { "type": "string" } }, "required": [ "action" ], "type": "object" }, "ProjectSettings": { "additionalProperties": false, "properties": { "approval_mode": { "type": "string" }, "approval_revision": { "format": "int64", "type": "integer" }, "connections": { "$ref": "#/components/schemas/ConnectionChoiceInput" }, "connections_revision": { "format": "int64", "type": "integer" }, "defaults": { "items": { "$ref": "#/components/schemas/PlaybookDefault" }, "type": [ "array", "null" ] }, "my_approval_mode": { "type": "string" }, "my_approval_revision": { "format": "int64", "type": "integer" }, "rules": { "type": "string" }, "rules_revision": { "format": "int64", "type": "integer" } }, "required": [ "approval_mode", "approval_revision", "my_approval_mode", "my_approval_revision", "defaults", "connections", "connections_revision", "rules", "rules_revision" ], "type": "object" }, "PlaybookDefault": { "additionalProperties": false, "properties": { "kind": { "enum": [ "bug", "feature", "rendered_change", "recommendation", "investigation" ], "type": "string" }, "playbook_id": { "type": "string" }, "revision": { "format": "int64", "type": "integer" } }, "required": [ "kind", "playbook_id", "revision" ], "type": "object" }, "ModelRef": { "additionalProperties": false, "properties": { "family": { "type": "string" }, "model": { "type": "string" }, "provider": { "type": "string" } }, "required": [ "provider", "family", "model" ], "type": "object" }, "SpecialistInput": { "additionalProperties": false, "properties": { "allowed_models": { "items": { "$ref": "#/components/schemas/ModelRef" }, "type": "array" }, "icon": { "type": "string" }, "instructions": { "type": "string" }, "max_concurrent": { "format": "int64", "type": "integer" }, "name": { "type": "string" }, "project_ids": { "items": { "format": "int64", "type": "integer" }, "type": "array" }, "tools": { "items": { "type": "string" }, "type": "array" } }, "required": [ "name", "icon", "max_concurrent" ], "type": "object" }, "PersonAPISpecialist": { "additionalProperties": false, "properties": { "allowed_models": { "items": { "$ref": "#/components/schemas/ModelRef" }, "type": [ "array", "null" ] }, "archived": { "type": "boolean" }, "creator": { "type": "string" }, "icon": { "type": "string" }, "id": { "type": "string" }, "instructions": { "type": "string" }, "max_concurrent": { "format": "int64", "type": "integer" }, "name": { "type": "string" }, "project_ids": { "items": { "format": "int64", "type": "integer" }, "type": [ "array", "null" ] }, "required": { "type": "boolean" }, "revision": { "format": "int64", "type": "integer" }, "template": { "$ref": "#/components/schemas/TemplateRef" }, "tools": { "items": { "type": "string" }, "type": [ "array", "null" ] }, "work_count": { "anyOf": [ { "format": "int64", "type": "integer" }, { "type": "null" } ] } }, "required": [ "id", "name", "icon", "instructions", "allowed_models", "tools", "project_ids", "max_concurrent", "creator", "required", "archived", "revision", "template", "work_count" ], "type": "object" }, "PlaybookInput": { "additionalProperties": false, "properties": { "kind": { "enum": [ "bug", "feature", "rendered_change", "recommendation", "investigation" ], "type": "string" }, "name": { "type": "string" }, "project_ids": { "items": { "format": "int64", "type": "integer" }, "type": "array" }, "steps": { "items": { "$ref": "#/components/schemas/PlanStep" }, "type": "array" }, "template": { "$ref": "#/components/schemas/TemplateRef" } }, "required": [ "name", "kind", "steps" ], "type": "object" }, "Playbook": { "additionalProperties": false, "properties": { "archived": { "type": "boolean" }, "creator": { "type": "string" }, "id": { "type": "string" }, "kind": { "enum": [ "bug", "feature", "rendered_change", "recommendation", "investigation" ], "type": "string" }, "name": { "type": "string" }, "project_ids": { "items": { "format": "int64", "type": "integer" }, "type": [ "array", "null" ] }, "revision": { "format": "int64", "type": "integer" }, "steps": { "items": { "$ref": "#/components/schemas/PlanStep" }, "type": [ "array", "null" ] }, "template": { "$ref": "#/components/schemas/TemplateRef" } }, "required": [ "id", "template", "name", "kind", "steps", "project_ids", "creator", "archived", "revision" ], "type": "object" }, "TemplateRef": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "version": { "format": "int64", "type": "integer" } }, "required": [ "id", "version" ], "type": "object" }, "Template": { "additionalProperties": false, "properties": { "description_key": { "type": "string" }, "group_key": { "type": "string" }, "icon": { "type": "string" }, "id": { "type": "string" }, "instructions_key": { "type": "string" }, "kind": { "type": "string" }, "name_key": { "type": "string" }, "version": { "format": "int64", "type": "integer" } }, "required": [ "id", "version", "kind", "group_key", "name_key", "description_key", "instructions_key", "icon" ], "type": "object" }, "TemplateInstallInput": { "additionalProperties": false, "properties": { "version": { "format": "int64", "type": "integer" } }, "required": [ "version" ], "type": "object" }, "TemplateDiff": { "additionalProperties": false, "properties": { "current": { "additionalProperties": {}, "type": "object" }, "current_revision": { "format": "int64", "type": "integer" }, "from": { "$ref": "#/components/schemas/TemplateRef" }, "old": { "additionalProperties": {}, "type": "object" }, "suggested": { "additionalProperties": {}, "type": "object" }, "to": { "$ref": "#/components/schemas/TemplateRef" } }, "required": [ "from", "to", "current_revision", "old", "current", "suggested" ], "type": "object" }, "TemplateUpdateInput": { "additionalProperties": false, "properties": { "diff": { "$ref": "#/components/schemas/TemplateDiff" }, "fields": { "items": { "type": "string" }, "type": "array" } }, "required": [ "diff", "fields" ], "type": "object" }, "PersonAPIConnection": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "label": { "type": "string" }, "models": { "items": { "$ref": "#/components/schemas/PersonAPIConnectionModel" }, "type": [ "array", "null" ] }, "revision": { "format": "int64", "type": "integer" }, "revoked_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ] }, "runner_id": { "type": "string" } }, "required": [ "id", "runner_id", "label", "revision", "revoked_at", "models" ], "type": "object" }, "PersonAPIConnectionModel": { "additionalProperties": false, "properties": { "allowance_remaining": { "anyOf": [ { "format": "int64", "type": "integer" }, { "type": "null" } ] }, "available": { "type": "boolean" }, "family": { "type": "string" }, "kind": { "type": "string" }, "model": { "type": "string" }, "provider": { "type": "string" } }, "required": [ "provider", "family", "model", "kind", "available", "allowance_remaining" ], "type": "object" }, "ConnectionChoiceInput": { "additionalProperties": false, "properties": { "connection_ids": { "items": { "type": "string" }, "type": "array" }, "mode": { "type": "string" }, "pinned_id": { "type": "string" } }, "required": [ "connection_ids", "mode" ], "type": "object" }, "SelectionInput": { "additionalProperties": false, "properties": { "connection_id": { "type": "string" }, "model": { "type": "string" } }, "required": [ "connection_id", "model" ], "type": "object" }, "PersonAPIRunner": { "additionalProperties": false, "properties": { "created_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ] }, "id": { "type": "string" }, "label": { "type": "string" }, "last_seen": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ] }, "revision": { "format": "int64", "type": "integer" }, "revoked_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ] } }, "required": [ "id", "label", "revision", "revoked_at" ], "type": "object" }, "RunnerApproveInput": { "additionalProperties": false, "properties": { "typed_code": { "type": "string" } }, "required": [ "typed_code" ], "type": "object" }, "OnboardingInput": { "additionalProperties": false, "properties": { "project_id": { "format": "int64", "type": "integer" }, "provider": { "type": "string" }, "step": { "type": "string" } }, "required": [ "step" ], "type": "object" }, "Onboarding": { "additionalProperties": false, "properties": { "account_setup_id": { "type": "string" }, "completed": { "additionalProperties": { "type": "boolean" }, "type": "object" }, "current_step": { "type": "string" }, "provider_choice": { "type": "string" }, "revision": { "format": "int64", "type": "integer" }, "runner_id": { "type": "string" } }, "required": [ "current_step", "provider_choice", "runner_id", "account_setup_id", "completed", "revision" ], "type": "object" }, "AccountSetupInput": { "additionalProperties": false, "properties": { "label": { "type": "string" }, "provider": { "type": "string" }, "runner_id": { "type": "string" } }, "required": [ "runner_id", "provider", "label" ], "type": "object" }, "AccountSetup": { "additionalProperties": false, "properties": { "command": { "type": "string" }, "id": { "type": "string" }, "mode": { "type": "string" }, "state": { "type": "string" } }, "required": [ "id", "state", "mode", "command" ], "type": "object" }, "InviteInput": { "additionalProperties": false, "properties": { "address": { "type": "string" }, "role": { "type": "string" } }, "required": [ "address", "role" ], "type": "object" }, "AcceptInviteInput": { "additionalProperties": false, "properties": { "secret": { "type": "string" } }, "required": [ "secret" ], "type": "object" }, "Invitation": { "additionalProperties": false, "properties": { "address": { "type": "string" }, "expires_at": { "format": "date-time", "type": "string" }, "id": { "type": "string" }, "link": { "type": "string" }, "revision": { "format": "int64", "type": "integer" }, "role": { "type": "string" }, "state": { "type": "string" } }, "required": [ "id", "address", "role", "state", "expires_at", "revision" ], "type": "object" }, "Selected": { "additionalProperties": false, "properties": { "connection_id": { "type": "string" }, "model": { "type": "string" }, "reason": { "type": "string" }, "revision": { "format": "int64", "type": "integer" } }, "required": [ "connection_id", "model", "reason", "revision" ], "type": "object" }, "PersonDeviceChallenge": { "additionalProperties": false, "properties": { "challenge": { "type": "string" }, "device_secret": { "type": "string" }, "expires_at": { "format": "date-time", "type": "string" }, "id": { "type": "string" }, "poll_interval_seconds": { "const": 5 }, "user_code": { "type": "string" }, "verification_uri": { "type": "string" } }, "required": [ "id", "device_secret", "user_code", "challenge", "verification_uri", "expires_at", "poll_interval_seconds" ], "type": "object" }, "PersonDeviceProof": { "additionalProperties": false, "properties": { "challenge": { "type": "string" }, "device_secret": { "type": "string" }, "id": { "type": "string" }, "nonce": { "type": "string" }, "signature": { "type": "string" } }, "required": [ "id", "device_secret", "challenge", "nonce", "signature" ], "type": "object" }, "PersonCredential": { "type": "object", "properties": { "id": { "type": "string" }, "token": { "type": "string" }, "audience": { "type": "string" }, "instance_id": { "type": "string" }, "expires_at": { "type": "string", "format": "date-time" } }, "required": [ "id", "token", "audience", "instance_id", "expires_at" ], "additionalProperties": false, "x-go-type": "personapi.PersonCredential" }, "Device": { "additionalProperties": false, "properties": { "created_at": { "format": "date-time", "type": "string" }, "expires_at": { "format": "date-time", "type": "string" }, "id": { "type": "string" }, "label": { "type": "string" }, "revision": { "format": "int64", "type": "integer" }, "revoked_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ] }, "last_used_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ] } }, "required": [ "id", "label", "created_at", "expires_at", "revoked_at", "revision", "last_used_at" ], "type": "object" }, "DevicePage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Device" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "RosterMemberPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/RosterMember" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "TeamLinkPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/TeamLink" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "AccountPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Account" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "SpecialistPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/PersonAPISpecialist" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "PlaybookPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Playbook" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "TemplatePage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Template" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "ConnectionPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/PersonAPIConnection" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "RunnerPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/PersonAPIRunner" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ], "additionalProperties": false }, "InstalledTemplate": { "oneOf": [ { "$ref": "#/components/schemas/PersonAPISpecialist" }, { "$ref": "#/components/schemas/Playbook" } ] }, "OnboardingResult": { "oneOf": [ { "$ref": "#/components/schemas/Onboarding" }, { "$ref": "#/components/schemas/Plan" } ] }, "Notification": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": [ "question", "task_ready", "interrupted", "card" ] }, "resource_id": { "type": "string" }, "deep_link": { "type": "string", "pattern": "^/[^/]" }, "resource_revision": { "type": "integer", "format": "int64" }, "created_at": { "type": "string", "format": "date-time" }, "state": { "type": "string", "enum": [ "unread", "acknowledged", "superseded" ] } }, "required": [ "id", "kind", "resource_id", "deep_link", "resource_revision", "created_at", "state" ] }, "NotificationSubscription": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "device_id": { "type": "string" }, "cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "active": { "type": "boolean" }, "expires_at": { "type": "string", "format": "date-time" } }, "required": [ "id", "device_id", "cursor", "revision", "active", "expires_at" ] }, "NotificationPage": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Notification" } }, "next_cursor": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "items", "next_cursor", "revision" ] }, "SubscribeNotificationsInput": { "type": "object", "additionalProperties": false, "properties": { "device_id": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": [ "device_id" ] }, "AcknowledgeNotificationInput": { "type": "object", "additionalProperties": false, "properties": { "notification_id": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": [ "notification_id" ] }, "AssistantError": { "type": "object", "properties": { "code": { "type": "string", "enum": [ "unauthenticated", "forbidden", "not_found", "invalid_input", "cursor_expired", "unavailable", "idempotency_conflict", "no_runner", "runner_too_old", "turn_ended", "host_not_allowed", "attachments_unavailable", "host_unverified", "host_elsewhere", "ability_off" ] }, "copy_key": { "type": "string", "enum": [ "api.unauthenticated", "api.forbidden", "api.not_found", "api.invalid_input", "api.cursor_expired", "api.unavailable", "api.idempotency_conflict", "api.no_runner", "api.runner_too_old", "api.turn_ended", "api.host_not_allowed", "api.attachments_unavailable", "api.host_unverified", "api.host_elsewhere", "api.ability_off" ] }, "request_id": { "type": "string" }, "current_revision": { "anyOf": [ { "type": "integer", "format": "int64" }, { "type": "null" } ] } }, "required": [ "code", "copy_key", "request_id" ], "additionalProperties": false }, "AssistantMember": { "type": "object", "properties": { "address": { "type": "string" }, "display_identity": { "type": "string" }, "active": { "type": "boolean" }, "role": { "type": "string", "enum": [ "owner", "member" ] } }, "required": [ "address", "display_identity", "active", "role" ], "additionalProperties": false }, "AssistantMe": { "type": "object", "properties": { "id": { "type": "string" }, "address": { "type": "string" }, "role": { "type": "string", "enum": [ "owner", "member" ] }, "person": { "$ref": "#/components/schemas/AssistantMember" }, "team_id": { "type": "string" }, "team_name": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "id", "address", "role", "person", "team_id", "team_name", "revision" ], "additionalProperties": false }, "AssistantSwitched": { "type": "object", "properties": { "from": { "type": "string" }, "to": { "type": "string" }, "window": { "type": "string" }, "resets_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "from", "to", "window", "resets_at" ], "additionalProperties": false }, "AssistantMessage": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "role": { "type": "string", "enum": [ "person", "assistant" ] }, "text": { "type": "string" }, "turn_id": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "switched": { "anyOf": [ { "$ref": "#/components/schemas/AssistantSwitched" }, { "type": "null" } ] }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/MessageAttachment" } }, "lookups": { "items": { "$ref": "#/components/schemas/AssistantLookup" }, "maxItems": 2, "type": "array" } }, "required": [ "id", "revision", "role", "text", "turn_id", "created_at", "switched" ], "additionalProperties": false }, "AssistantTurnTiming": { "type": "object", "properties": { "queued_ms": { "type": "integer", "format": "int64" }, "start_ms": { "type": "integer", "format": "int64" }, "first_event_ms": { "type": "integer", "format": "int64" }, "first_thinking_ms": { "type": "integer", "format": "int64" }, "first_tool_ms": { "type": "integer", "format": "int64" }, "first_text_ms": { "type": "integer", "format": "int64" }, "last_text_ms": { "type": "integer", "format": "int64" }, "result_ms": { "type": "integer", "format": "int64" }, "cold": { "type": "boolean" } }, "required": [ "queued_ms", "start_ms", "first_event_ms", "first_thinking_ms", "first_tool_ms", "first_text_ms", "last_text_ms", "result_ms", "cold" ], "additionalProperties": false }, "AssistantTurn": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "kind": { "type": "string", "enum": [ "", "team_update" ] }, "state": { "type": "string", "enum": [ "queued", "running", "waiting", "replied", "failed", "cancelled" ] }, "reason": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "message_ids": { "type": "array", "items": { "type": "string" } }, "reply_id": { "type": "string" }, "connection": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "timing": { "anyOf": [ { "$ref": "#/components/schemas/AssistantTurnTiming" }, { "type": "null" } ] } }, "required": [ "id", "revision", "kind", "state", "reason", "attempt", "message_ids", "reply_id", "connection", "created_at", "updated_at", "timing" ], "additionalProperties": false }, "AssistantCardOption": { "type": "object", "properties": { "value": { "type": "string" }, "label": { "type": "string" } }, "required": [ "value", "label" ], "additionalProperties": false }, "AssistantCardLink": { "type": "object", "properties": { "label": { "type": "string" }, "url": { "type": "string" }, "rel": { "type": "string", "enum": [ "equipo" ] } }, "required": [ "label", "url" ], "additionalProperties": false }, "AssistantCard": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "kind": { "type": "string", "enum": [ "question", "confirm", "outcome", "connect", "job" ] }, "state": { "type": "string", "enum": [ "open", "answered", "resolved", "working", "asking", "ready", "done", "stopped", "paused" ] }, "question": { "type": "string" }, "options": { "type": "array", "items": { "$ref": "#/components/schemas/AssistantCardOption" } }, "links": { "type": "array", "items": { "$ref": "#/components/schemas/AssistantCardLink" } }, "result": { "type": "string" }, "job": { "type": "string" }, "detail": { "type": "string" }, "started_at": { "type": "string", "format": "date-time" }, "carry_on": { "type": "boolean" } }, "required": [ "id", "revision", "kind", "state", "question", "options", "links", "result" ], "additionalProperties": false }, "AssistantSnapshot": { "type": "object", "properties": { "me": { "$ref": "#/components/schemas/AssistantMe" }, "messages": { "type": "array", "items": { "$ref": "#/components/schemas/AssistantMessage" } }, "turns": { "type": "array", "items": { "$ref": "#/components/schemas/AssistantTurn" } }, "cards": { "type": "array", "items": { "$ref": "#/components/schemas/AssistantCard" } }, "cursor": { "type": "integer", "format": "int64" }, "available": { "type": "boolean" }, "can_attach": { "type": "boolean", "description": "A message with attachments would be taken now: your runner was last seen on protocol 33 or later. Offer files only when true." } }, "required": [ "me", "messages", "turns", "cards", "cursor", "available", "can_attach" ], "additionalProperties": false }, "AssistantMessagePage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/AssistantMessage" } }, "before": { "type": "string" } }, "required": [ "items", "before" ], "additionalProperties": false }, "AssistantSendInput": { "type": "object", "properties": { "text": { "type": "string", "x-maxBytes": 16384 }, "idempotency_key": { "type": "string", "minLength": 1, "x-maxBytes": 128 }, "attachments": { "type": "array", "maxItems": 5, "items": { "type": "string" } } }, "required": [ "idempotency_key" ], "additionalProperties": false }, "AssistantSent": { "type": "object", "properties": { "message": { "$ref": "#/components/schemas/AssistantMessage" }, "turn": { "$ref": "#/components/schemas/AssistantTurn" } }, "required": [ "message", "turn" ], "additionalProperties": false }, "AssistantCancelAccepted": { "type": "object", "properties": { "attempt": { "type": "integer", "format": "int64" } }, "required": [ "attempt" ], "additionalProperties": false }, "AssistantAnswerInput": { "type": "object", "properties": { "choice": { "type": "string", "minLength": 1, "x-maxBytes": 16384 }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "choice", "revision" ], "additionalProperties": false }, "AssistantAnswered": { "type": "object", "properties": { "card": { "$ref": "#/components/schemas/AssistantCard" }, "message": { "$ref": "#/components/schemas/AssistantMessage" }, "turn": { "$ref": "#/components/schemas/AssistantTurn" } }, "required": [ "card", "message", "turn" ], "additionalProperties": false }, "AssistantConflict": { "type": "object", "properties": { "code": { "type": "string", "enum": [ "card_stale", "card_answered", "not_paused", "carry_on_unavailable" ] }, "copy_key": { "type": "string", "enum": [ "api.card_stale", "api.card_answered", "api.not_paused", "api.carry_on_unavailable" ] }, "request_id": { "type": "string" }, "card": { "$ref": "#/components/schemas/AssistantCard" } }, "required": [ "code", "copy_key", "request_id", "card" ], "additionalProperties": false }, "AssistantHostInput": { "type": "object", "properties": { "origin": { "type": "string", "maxLength": 300 }, "token": { "type": "string", "pattern": "^[!-~]{20,512}$" } }, "required": [ "origin", "token" ], "additionalProperties": false }, "AssistantHost": { "type": "object", "properties": { "origin": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "origin", "revision" ], "additionalProperties": false }, "AssistantEvent": { "type": "object", "properties": { "cursor": { "type": "integer", "format": "int64" }, "type": { "type": "string", "enum": [ "message", "turn", "delta", "glance", "card", "activity" ] }, "resource": { "type": "string" }, "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "turn_id": { "type": "string" }, "message_id": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "data": { "oneOf": [ { "$ref": "#/components/schemas/AssistantMessage" }, { "$ref": "#/components/schemas/AssistantTurn" }, { "$ref": "#/components/schemas/AssistantDelta" }, { "$ref": "#/components/schemas/AssistantGlance" }, { "$ref": "#/components/schemas/AssistantCard" }, { "$ref": "#/components/schemas/AssistantActivity" } ] } }, "required": [ "cursor", "type", "resource", "id", "revision", "data" ], "additionalProperties": false }, "AssistantDelta": { "type": "object", "properties": { "turn_id": { "type": "string" }, "offset": { "type": "integer", "format": "int64" }, "text": { "type": "string" } }, "required": [ "turn_id", "offset", "text" ], "additionalProperties": false }, "AssistantGlance": { "type": "object", "properties": { "turn_id": { "type": "string" }, "text": { "type": "string", "maxLength": 60 } }, "required": [ "turn_id", "text" ], "additionalProperties": false }, "AssistantActivity": { "type": "object", "properties": { "turn_id": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "kind": { "type": "string" }, "tool": { "type": "string" }, "repo": { "type": "string" }, "label": { "type": "string" } }, "required": [ "turn_id", "attempt", "kind", "tool", "repo", "label" ], "additionalProperties": false }, "AccessRequest": { "type": "object", "properties": { "approval_opened": { "type": "boolean" }, "target": { "type": "string" }, "role": { "type": "string" }, "reason": { "type": "string" }, "state": { "type": "string" }, "request_id": { "type": "string" }, "approve_url": { "type": "string" }, "expires": { "type": "integer", "format": "int64" } }, "required": [ "target", "reason" ], "additionalProperties": false, "x-go-type": "wire.AccessRequest" }, "ActionConflict": { "type": "object", "properties": { "code": { "type": "string", "enum": [ "not_undoable" ] }, "copy_key": { "type": "string" }, "request_id": { "type": "string" }, "action": { "$ref": "#/components/schemas/HousekeepingAction" } }, "required": [ "code", "copy_key", "request_id", "action" ], "additionalProperties": false, "x-go-type": "wire.ActionConflict" }, "Activity": { "type": "object", "properties": { "turn_id": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "kind": { "type": "string", "enum": [ "thinking", "tool" ] }, "tool": { "type": "string" }, "repo": { "type": "string" }, "label": { "type": "string" } }, "required": [ "turn_id", "attempt", "kind", "tool", "repo", "label" ], "additionalProperties": false, "x-go-type": "wire.Activity" }, "ActivityLine": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "read", "search", "edit", "run", "other" ] }, "subject": { "type": "string" }, "at": { "type": "string", "format": "date-time" } }, "required": [ "kind", "subject", "at" ], "additionalProperties": false, "x-go-type": "wire.ActivityLine" }, "ActivityQuestionEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "activity" }, "resource": { "const": "question" }, "data": { "$ref": "#/components/schemas/Activity" } } } ] }, "ActivityStepEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "activity" }, "resource": { "const": "step" }, "data": { "$ref": "#/components/schemas/StepActivity" } } } ] }, "ActivityTurnEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "activity" }, "resource": { "const": "turn" }, "data": { "$ref": "#/components/schemas/Activity" } } } ] }, "AddProject": { "type": "object", "properties": { "repo": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.AddProject" }, "Advice": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": [ "budget_near", "prefer_switch", "defer_tasks", "held_long" ] }, "key": { "type": "string" }, "state": { "type": "string", "enum": [ "open", "acted", "dismissed", "withdrawn" ] }, "subject": { "$ref": "#/components/schemas/AdviceSubject" }, "text": { "type": "string" }, "act": { "type": "string" }, "dismiss": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "created_at": { "type": "string", "format": "date-time" }, "visible_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "id", "kind", "key", "state", "subject", "text", "act", "dismiss", "revision", "created_at", "visible_at" ], "additionalProperties": false, "x-go-type": "wire.Advice" }, "AdviceAction": { "type": "object", "properties": { "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.AdviceAction" }, "AdviceList": { "type": "object", "properties": { "items": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Advice" } } }, "required": [ "items" ], "additionalProperties": false, "x-go-type": "wire.AdviceList" }, "AdviceSubject": { "type": "object", "properties": { "connection": { "type": "string" }, "role": { "type": "string" }, "tasks": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false, "x-go-type": "wire.AdviceSubject" }, "AnswerCard": { "type": "object", "properties": { "idempotency_key": { "type": "string" }, "remember_name": { "type": "string" }, "choice": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "note": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.AnswerCard" }, "Answered": { "type": "object", "properties": { "card": { "$ref": "#/components/schemas/Card" }, "message": { "$ref": "#/components/schemas/Message" }, "turn": { "$ref": "#/components/schemas/Turn" } }, "required": [ "card", "message", "turn" ], "additionalProperties": false, "x-go-type": "wire.Answered" }, "AskQuestion": { "type": "object", "properties": { "text": { "type": "string" }, "idempotency_key": { "type": "string" }, "specialist": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.AskQuestion" }, "Attachment": { "type": "object", "properties": { "kind": { "type": "string" }, "ref": { "type": "string" }, "name": { "type": "string" }, "default_branch": { "type": "string" }, "head_sha": { "type": "string" }, "head_subject": { "type": "string" }, "head_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "kind", "ref", "name", "default_branch", "head_sha", "head_subject", "head_at" ], "additionalProperties": false, "x-go-type": "wire.Attachment" }, "Budget": { "type": "object", "properties": { "day": { "type": "integer", "format": "int64" }, "month": { "type": "integer", "format": "int64" }, "currency": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "day", "month", "currency", "revision" ], "additionalProperties": false, "x-go-type": "wire.Budget" }, "BudgetInput": { "type": "object", "properties": { "day": { "type": "integer", "format": "int64" }, "month": { "type": "integer", "format": "int64" }, "currency": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.Budget" }, "BudgetMeter": { "type": "object", "properties": { "reserved": { "type": "integer", "format": "int64" }, "charged": { "type": "integer", "format": "int64" }, "limit": { "type": "integer", "format": "int64" } }, "required": [ "reserved", "charged", "limit" ], "additionalProperties": false, "x-go-type": "wire.BudgetMeter" }, "CancelAccepted": { "type": "object", "properties": { "attempt": { "type": "integer", "format": "int64" } }, "required": [ "attempt" ], "additionalProperties": false, "x-go-type": "wire.CancelAccepted" }, "Capabilities": { "type": "object", "properties": { "xcode": { "$ref": "#/components/schemas/Xcode" }, "simulators": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Simulator" } }, "toolchains": { "$ref": "#/components/schemas/Toolchains" }, "harness": { "$ref": "#/components/schemas/Harness" }, "tags": { "type": [ "array", "null" ], "items": { "type": "string" } }, "probes": { "type": "array", "items": { "$ref": "#/components/schemas/Probe" } }, "tainted": { "type": "boolean" }, "previews": { "type": "boolean" }, "preview_host": { "$ref": "#/components/schemas/PreviewHost" }, "research": { "$ref": "#/components/schemas/ResearchCapability" }, "sites": { "type": "boolean" }, "tools": { "$ref": "#/components/schemas/ToolHealth" }, "reach": { "$ref": "#/components/schemas/Reach" }, "engineering": { "$ref": "#/components/schemas/EngineeringStatus" }, "unproven": { "type": "string" }, "unproven_count": { "type": "integer", "format": "int64" }, "model_hold": { "type": "boolean" }, "holding_items": { "type": "array", "items": { "type": "string" } }, "runner_user": { "type": "string" } }, "required": [ "xcode", "simulators", "toolchains", "harness", "tags" ], "additionalProperties": false, "x-go-type": "wire.Capabilities" }, "EngineeringStatus": { "type": "object", "properties": { "state": { "type": "string" }, "reason": { "type": "string" } }, "required": [ "state", "reason" ], "additionalProperties": false, "x-go-type": "wire.EngineeringStatus" }, "Card": { "type": "object", "properties": { "placement_by_name": { "type": "boolean" }, "placement_question": { "type": "boolean" }, "remember_name": { "type": "string" }, "access": { "$ref": "#/components/schemas/AccessRequest" }, "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "kind": { "type": "string" }, "state": { "type": "string" }, "turn_id": { "type": "string" }, "project_id": { "type": "string" }, "name": { "type": "string" }, "question": { "type": "string" }, "options": { "type": [ "array", "null" ], "items": { "type": "string" } }, "choice": { "type": "string" }, "task_id": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "action_id": { "type": "string" }, "visible_at": { "type": "string", "format": "date-time" }, "specialist": { "$ref": "#/components/schemas/CardSpecialistView" }, "research": { "$ref": "#/components/schemas/CardResearchView" }, "inventory": { "$ref": "#/components/schemas/CardInventoryView" }, "preview_url": { "type": "string" }, "site": { "$ref": "#/components/schemas/CardSite" }, "place": { "$ref": "#/components/schemas/CardPlaceView" }, "advice": { "$ref": "#/components/schemas/Advice" }, "aside": { "type": "boolean" } }, "required": [ "id", "revision", "kind", "state", "turn_id", "project_id", "name", "question", "options", "choice", "task_id", "created_at", "updated_at" ], "additionalProperties": false, "x-go-type": "wire.Card" }, "CardConflict": { "type": "object", "properties": { "code": { "type": "string", "enum": [ "card_stale", "card_answered", "direction_note" ] }, "copy_key": { "type": "string" }, "request_id": { "type": "string" }, "card": { "$ref": "#/components/schemas/Card" } }, "required": [ "code", "copy_key", "request_id", "card" ], "additionalProperties": false, "x-go-type": "wire.CardConflict" }, "CardEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "card" }, "resource": { "const": "card" }, "data": { "$ref": "#/components/schemas/Card" } } } ] }, "CardInventoryView": { "type": "object", "properties": { "runner_id": { "type": "string" }, "addresses": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "required": [ "runner_id", "addresses" ], "additionalProperties": false, "x-go-type": "wire.CardInventoryView" }, "CardResearchView": { "type": "object", "properties": { "step_id": { "type": "string" }, "question": { "type": "string" }, "urls": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "required": [ "step_id", "question", "urls" ], "additionalProperties": false, "x-go-type": "wire.CardResearchView" }, "CardSite": { "type": "object", "properties": { "app": { "type": "string" }, "sha": { "type": "string" }, "state": { "type": "string" }, "url": { "type": "string" } }, "required": [ "app", "sha", "state" ], "additionalProperties": false, "x-go-type": "wire.CardSite" }, "CardSpecialistView": { "type": "object", "properties": { "id": { "type": "string" }, "profile": { "type": "string" }, "name": { "type": "string" }, "brief": { "type": "string" }, "state": { "type": "string" }, "capabilities": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/SpecialistCapability" } } }, "required": [ "id", "profile", "name", "brief", "state", "capabilities" ], "additionalProperties": false, "x-go-type": "wire.CardSpecialistView" }, "ChooseModel": { "type": "object", "properties": { "model": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.ChooseModel" }, "Connect": { "type": "object", "properties": { "provider": { "type": "string" }, "kind": { "type": "string" }, "runner_id": { "type": "string" }, "same_machine": { "type": "boolean" }, "limit_confirmed": { "type": "boolean" }, "payg_off_confirmed": { "type": "boolean" }, "budget": { "$ref": "#/components/schemas/BudgetInput" } }, "additionalProperties": false, "x-go-type": "wire.Connect" }, "ConnectPrompt": { "type": "object", "properties": { "kind": { "type": "string" }, "url": { "type": "string" }, "code": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "wrong_code": { "type": "boolean" }, "models": { "type": "array", "items": { "type": "string" } }, "choices": { "type": "array", "items": { "$ref": "#/components/schemas/ModelChoice" } } }, "required": [ "kind", "url", "code" ], "additionalProperties": false, "x-go-type": "wire.ConnectPrompt" }, "Connection": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "runner_id": { "type": "string" }, "local_id": { "type": "string" }, "provider": { "type": "string" }, "kind": { "type": "string" }, "label": { "type": "string" }, "state": { "type": "string", "enum": [ "connecting", "healthy", "limited", "sign_in_again", "error", "signed_out", "forgotten" ] }, "reason": { "type": "string" }, "plan": { "type": "string" }, "headroom": { "anyOf": [ { "$ref": "#/components/schemas/Headroom" }, { "type": "null" } ] }, "prompt": { "anyOf": [ { "$ref": "#/components/schemas/ConnectPrompt" }, { "type": "null" } ] }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "expires_at": { "type": [ "string", "null" ], "format": "date-time" }, "expires_estimated": { "type": "boolean" }, "harness": { "type": "string" }, "upstream": { "type": "string" }, "billing": { "type": "string" }, "model": { "type": "string" }, "limit_confirmed_at": { "type": "string", "format": "date-time" }, "payg_off_confirmed_at": { "type": "string", "format": "date-time" }, "budget": { "$ref": "#/components/schemas/Budget" }, "spend": { "$ref": "#/components/schemas/Spend" }, "budget_pending": { "type": "boolean" }, "models": { "type": "array", "items": { "$ref": "#/components/schemas/ConnectionModel" } }, "models_revision": { "type": "integer", "format": "int64" }, "models_pending": { "type": "boolean" }, "models_too_old": { "type": "boolean" } }, "required": [ "id", "revision", "runner_id", "local_id", "provider", "kind", "label", "state", "reason", "plan", "headroom", "prompt", "created_at", "updated_at", "expires_at", "expires_estimated" ], "additionalProperties": false, "x-go-type": "wire.Connection" }, "ConnectionEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "connection" }, "resource": { "const": "connection" }, "data": { "$ref": "#/components/schemas/Connection" } } } ] }, "ConnectionList": { "type": "object", "properties": { "items": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Connection" } } }, "required": [ "items" ], "additionalProperties": false, "x-go-type": "wire.ConnectionList" }, "ConnectionModel": { "type": "object", "properties": { "id": { "type": "string" }, "eligible": { "type": "boolean" }, "allowed": { "type": "boolean" }, "applied": { "type": "boolean" }, "state": { "type": "string" }, "reason": { "type": "string" }, "failed_at": { "type": "string", "format": "date-time" }, "family": { "type": "string" }, "tier": { "type": "string" } }, "required": [ "id", "eligible", "allowed", "applied" ], "additionalProperties": false, "x-go-type": "wire.ConnectionModel" }, "Coordinator": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "state": { "type": "string", "enum": [ "new", "moving_in", "ready" ] }, "turn_id": { "type": "string" }, "moved_in_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "id", "revision", "state", "turn_id", "moved_in_at" ], "additionalProperties": false, "x-go-type": "wire.Coordinator" }, "CoordinatorEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "coordinator" }, "resource": { "const": "coordinator" }, "data": { "$ref": "#/components/schemas/Coordinator" } } } ] }, "CopyAttempt": { "type": "object", "properties": { "step": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "candidate": { "type": "string" } }, "required": [ "step", "attempt", "candidate" ], "additionalProperties": false, "x-go-type": "wire.CopyAttempt" }, "CopyFlag": { "type": "object", "properties": { "id": { "type": "string" }, "key": { "type": "string" }, "text": { "type": "string" }, "flag": { "type": "string" } }, "required": [ "id", "key", "text", "flag" ], "additionalProperties": false, "x-go-type": "wire.CopyFlag" }, "CopyRepeat": { "type": "object", "properties": { "before": { "$ref": "#/components/schemas/CopyAttempt" }, "after": { "$ref": "#/components/schemas/CopyAttempt" }, "signature": { "$ref": "#/components/schemas/Signature" } }, "required": [ "before", "after", "signature" ], "additionalProperties": false, "x-go-type": "wire.CopyRepeat" }, "Delta": { "type": "object", "properties": { "turn_id": { "type": "string" }, "offset": { "type": "integer", "format": "int64" }, "text": { "type": "string" } }, "required": [ "turn_id", "offset", "text" ], "additionalProperties": false, "x-go-type": "wire.Delta" }, "DeltaQuestionEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "delta" }, "resource": { "const": "question" }, "data": { "$ref": "#/components/schemas/Delta" } } } ] }, "DeltaTurnEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "delta" }, "resource": { "const": "turn" }, "data": { "$ref": "#/components/schemas/Delta" } } } ] }, "Event": { "type": "object", "properties": { "cursor": { "type": "integer", "format": "int64" }, "type": { "type": "string", "enum": [ "activity", "card", "connection", "coordinator", "delta", "housekeeping", "message", "preference", "project", "question", "runner", "step", "task", "thinking", "turn" ] }, "resource": { "type": "string", "enum": [ "question", "step", "turn", "card", "connection", "coordinator", "action", "housekeeping", "message", "preference", "project", "runner", "task", "thinking" ] }, "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "turn_id": { "type": "string" }, "message_id": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "data": {} }, "required": [ "cursor", "type", "resource", "id", "revision", "data" ], "additionalProperties": false, "x-go-type": "wire.Event" }, "Failure": { "type": "object", "properties": { "unit": { "type": "string" }, "test": { "type": "string" }, "code": { "type": "string" }, "subject": { "type": "string" }, "category": { "type": "string" } }, "required": [ "unit", "test", "code", "subject", "category" ], "additionalProperties": false, "x-go-type": "copydesk.Failure" }, "Finding": { "type": "object", "properties": { "id": { "type": "string" }, "headline": { "type": "string" }, "text": { "type": "string" }, "repo": { "type": "string" }, "path": { "type": "string" }, "line": { "type": "integer", "format": "int64" }, "at": { "type": "string", "format": "date-time" } }, "required": [ "id", "headline", "text", "repo", "path", "line", "at" ], "additionalProperties": false, "x-go-type": "wire.Finding" }, "Harness": { "type": "object", "properties": { "claude": { "type": "string" }, "codex": { "type": "string" }, "srt": { "type": "string" } }, "required": [ "claude", "codex", "srt" ], "additionalProperties": false, "x-go-type": "wire.Harness" }, "Headroom": { "type": "object", "properties": { "utilization": { "type": [ "number", "null" ], "format": "double" }, "resets_at": { "type": [ "string", "null" ], "format": "date-time" }, "windows": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Window" } }, "checked_at": { "type": "string", "format": "date-time" }, "fetched": { "type": "boolean" }, "unavailable": { "type": "boolean" } }, "required": [ "utilization", "resets_at", "windows" ], "additionalProperties": false, "x-go-type": "wire.Headroom" }, "Housekeeping": { "type": "object", "properties": { "paused": { "type": "boolean" }, "quiet": { "$ref": "#/components/schemas/QuietHours" }, "budget": { "$ref": "#/components/schemas/HousekeepingBudget" }, "detectors": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/HousekeepingDetector" } }, "actions": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/HousekeepingAction" } }, "refusals": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/HousekeepingAction" } }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "paused", "quiet", "budget", "detectors", "actions", "refusals", "revision" ], "additionalProperties": false, "x-go-type": "wire.Housekeeping" }, "HousekeepingAction": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "detector": { "type": "string" }, "class": { "type": "string" }, "state": { "type": "string", "enum": [ "claimed", "held", "done", "undone", "refused", "failed", "vetoed", "expired" ] }, "reason": { "type": "string" }, "subject": { "$ref": "#/components/schemas/HousekeepingSubject" }, "evidence": { "$ref": "#/components/schemas/HousekeepingEvidence" }, "undoable": { "type": "boolean" }, "undo_until": { "type": [ "string", "null" ], "format": "date-time" }, "visible_at": { "type": [ "string", "null" ], "format": "date-time" }, "at": { "type": "string", "format": "date-time" }, "undone_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "id", "revision", "detector", "class", "state", "reason", "subject", "evidence", "undoable", "undo_until", "visible_at", "at", "undone_at" ], "additionalProperties": false, "x-go-type": "wire.HousekeepingAction" }, "HousekeepingActionEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "housekeeping" }, "resource": { "const": "action" }, "data": { "$ref": "#/components/schemas/HousekeepingAction" } } } ] }, "HousekeepingActions": { "type": "object", "properties": { "items": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/HousekeepingAction" } }, "before": { "type": "string" } }, "required": [ "items", "before" ], "additionalProperties": false, "x-go-type": "wire.HousekeepingActions" }, "HousekeepingBudget": { "type": "object", "properties": { "turns": { "$ref": "#/components/schemas/BudgetMeter" }, "tokens": { "$ref": "#/components/schemas/BudgetMeter" }, "retries": { "$ref": "#/components/schemas/BudgetMeter" } }, "required": [ "turns", "tokens", "retries" ], "additionalProperties": false, "x-go-type": "wire.HousekeepingBudget" }, "HousekeepingDetector": { "type": "object", "properties": { "id": { "type": "string" }, "class": { "type": "string" }, "enabled": { "type": "boolean" }, "disabled_reason": { "type": "string" }, "disabled_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "id", "class", "enabled", "disabled_reason", "disabled_at" ], "additionalProperties": false, "x-go-type": "wire.HousekeepingDetector" }, "HousekeepingEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "housekeeping" }, "resource": { "const": "housekeeping" }, "data": { "$ref": "#/components/schemas/HousekeepingSummary" } } } ] }, "HousekeepingEvidence": { "type": "object", "properties": { "tasks": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/TaskRef" } }, "similarity": { "type": "number", "format": "double" }, "shared": { "type": "integer", "format": "int64" } }, "required": [ "tasks", "similarity", "shared" ], "additionalProperties": false, "x-go-type": "wire.HousekeepingEvidence" }, "HousekeepingSubject": { "type": "object", "properties": { "kind": { "type": "string" }, "id": { "type": "string" } }, "required": [ "kind", "id" ], "additionalProperties": false, "x-go-type": "wire.HousekeepingSubject" }, "HousekeepingSummary": { "type": "object", "properties": { "open_suggestions": { "type": "integer", "format": "int64" }, "paused": { "type": "boolean" }, "disabled": { "type": [ "array", "null" ], "items": { "type": "string" } }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "open_suggestions", "paused", "disabled", "revision" ], "additionalProperties": false, "x-go-type": "wire.HousekeepingSummary" }, "MarkDuplicate": { "type": "object", "properties": { "of": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.MarkDuplicate" }, "Me": { "type": "object", "properties": { "id": { "type": "string" }, "address": { "type": "string" }, "role": { "type": "string" }, "person": { "$ref": "#/components/schemas/Person" }, "team_id": { "type": "string" }, "team_name": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "id", "address", "role", "person", "team_id", "team_name", "revision" ], "additionalProperties": false, "x-go-type": "wire.Me" }, "MergeCriterion": { "type": "object", "properties": { "name": { "type": "string" }, "ok": { "type": "boolean" }, "value": { "type": "string" } }, "required": [ "name", "ok" ], "additionalProperties": false, "x-go-type": "wire.MergeCriterion" }, "MergeDecision": { "type": "object", "properties": { "class": { "type": "string" }, "stance": { "type": "string" }, "decided_by": { "type": "string" }, "reasons": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/MergeCriterion" } }, "at": { "type": "string", "format": "date-time" } }, "required": [ "class", "reasons", "at" ], "additionalProperties": false, "x-go-type": "wire.MergeDecision" }, "MergePolicy": { "type": "object", "properties": { "project_id": { "type": "string" }, "mode": { "type": "string" }, "mode_reason": { "type": "string" }, "max_lines": { "type": "integer", "format": "int64" }, "max_files": { "type": "integer", "format": "int64" }, "main_ships": { "type": "string" }, "extra_sensitive": { "type": [ "array", "null" ], "items": { "type": "string" } }, "words": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "editable": { "type": "boolean" }, "decisions": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/MergeDecision" } } }, "required": [ "project_id", "mode", "mode_reason", "max_lines", "max_files", "main_ships", "extra_sensitive", "words", "revision", "editable", "decisions" ], "additionalProperties": false, "x-go-type": "wire.MergePolicy" }, "Merged": { "type": "object", "properties": { "sha": { "type": "string" }, "into": { "type": "string" }, "strategy": { "type": "string" }, "without_checks": { "type": "boolean" }, "at": { "type": "string", "format": "date-time" } }, "required": [ "sha", "into", "strategy", "without_checks", "at" ], "additionalProperties": false, "x-go-type": "wire.Merged" }, "Message": { "additionalProperties": false, "properties": { "attachments": { "items": { "$ref": "#/components/schemas/MessageAttachment" }, "type": "array" }, "created_at": { "format": "date-time", "type": "string" }, "id": { "type": "string" }, "lookups": { "items": { "$ref": "#/components/schemas/AssistantLookup" }, "type": "array" }, "project_id": { "type": "string" }, "revision": { "format": "int64", "type": "integer" }, "role": { "enum": [ "", "person", "coordinator" ], "type": "string" }, "switched": { "anyOf": [ { "$ref": "#/components/schemas/Switched" }, { "type": "null" } ] }, "text": { "type": "string" }, "turn_id": { "type": "string" } }, "required": [ "id", "revision", "role", "text", "turn_id", "created_at", "switched" ], "type": "object", "x-go-type": "wire.Message" }, "MessageAttachment": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "kind": { "type": "string", "enum": [ "image", "file" ] }, "name": { "type": "string" }, "media_type": { "type": "string" }, "size": { "type": "integer", "format": "int64" }, "sha256": { "type": "string" }, "width": { "type": "integer", "format": "int64" }, "height": { "type": "integer", "format": "int64" }, "message_id": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" } }, "required": [ "id", "revision", "kind", "name", "media_type", "size", "sha256", "width", "height", "message_id", "created_at" ], "additionalProperties": false, "x-go-type": "wire.MessageAttachment" }, "MessageEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "message" }, "resource": { "const": "message" }, "data": { "$ref": "#/components/schemas/Message" } } } ] }, "MessagePage": { "type": "object", "properties": { "items": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Message" } }, "before": { "type": "string" } }, "required": [ "items", "before" ], "additionalProperties": false, "x-go-type": "wire.MessagePage" }, "ModelChoice": { "type": "object", "properties": { "id": { "type": "string" }, "eligible": { "type": "boolean" }, "family": { "type": "string" }, "tier": { "type": "string" } }, "required": [ "id", "eligible" ], "additionalProperties": false, "x-go-type": "wire.ModelChoice" }, "MoveTask": { "type": "object", "properties": { "abandon": { "type": "boolean" }, "new_project": { "type": "boolean" }, "repo": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.MoveTask" }, "Notebook": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "entries": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/NotebookEntry" } }, "updated_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "id", "revision", "entries", "updated_at" ], "additionalProperties": false, "x-go-type": "wire.Notebook" }, "NotebookEntry": { "type": "object", "properties": { "id": { "type": "string" }, "source": { "type": "string" }, "repo": { "type": "string" }, "path": { "type": "string" }, "text": { "type": "string" }, "at": { "type": "string", "format": "date-time" } }, "required": [ "id", "source", "repo", "path", "text", "at" ], "additionalProperties": false, "x-go-type": "wire.NotebookEntry" }, "Person": { "type": "object", "properties": { "address": { "type": "string" }, "display_identity": { "type": "string" }, "active": { "type": "boolean" }, "role": { "type": "string" } }, "required": [ "address", "display_identity", "active", "role" ], "additionalProperties": false, "x-go-type": "wire.Person" }, "PersonRef": { "type": "object", "properties": { "address": { "type": "string" }, "name": { "type": "string" }, "initials": { "type": "string" } }, "required": [ "address", "name", "initials" ], "additionalProperties": false, "x-go-type": "wire.PersonRef" }, "PingEvent": { "type": "object", "properties": { "type": { "const": "ping" } }, "required": [ "type" ], "additionalProperties": false }, "Platform": { "type": "object", "properties": { "os": { "type": "string" }, "arch": { "type": "string" } }, "required": [ "os", "arch" ], "additionalProperties": false, "x-go-type": "wire.Platform" }, "PostThread": { "type": "object", "properties": { "text": { "type": "string" }, "idempotency_key": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.PostThread" }, "PreferenceEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "preference" }, "resource": { "const": "preference" }, "data": { "$ref": "#/components/schemas/Preferences" } } } ] }, "Preferences": { "type": "object", "properties": { "provider": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "until": { "type": "string", "format": "date-time" } }, "required": [ "provider", "revision" ], "additionalProperties": false, "x-go-type": "wire.Preferences" }, "PreferencesInput": { "type": "object", "properties": { "provider": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "until": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "x-go-type": "wire.Preferences" }, "PreviewHost": { "type": "object", "properties": { "kind": { "type": "string" }, "domain": { "type": "string" } }, "required": [ "kind" ], "additionalProperties": false, "x-go-type": "wire.PreviewHost" }, "PreviewResult": { "type": "object", "properties": { "unsafe": { "type": "boolean" }, "phase": { "type": "string" }, "app": { "type": "string" }, "url": { "type": "string" }, "version": { "type": "string" }, "digest": { "type": "string" }, "files": { "type": "integer", "format": "int64" }, "bytes": { "type": "integer", "format": "int64" }, "expires_at": { "type": "string", "format": "date-time" }, "outcome": { "type": "string" } }, "required": [ "phase", "digest", "files", "bytes" ], "additionalProperties": false, "x-go-type": "wire.PreviewResult" }, "PriceSource": { "type": "object", "properties": { "connection": { "type": "string" }, "price_version": { "type": "string" }, "tier_version": { "type": "string" } }, "required": [ "connection", "price_version" ], "additionalProperties": false, "x-go-type": "wire.PriceSource" }, "Probe": { "type": "object", "properties": { "id": { "type": "string" }, "verdict": { "type": "string" }, "detail": { "type": "string" } }, "required": [ "id", "verdict", "detail" ], "additionalProperties": false, "x-go-type": "wire.Probe" }, "Project": { "type": "object", "properties": { "starred": { "type": "boolean" }, "names": { "type": "array", "items": { "type": "string" } }, "personal_names": { "type": "array", "items": { "type": "string" } }, "title_source": { "type": "string" }, "description_source": { "type": "string" }, "forge": { "type": "string" }, "connection_id": { "type": "string" }, "autonomy": { "$ref": "#/components/schemas/ProjectAutonomy" }, "copy_owner": { "type": "string" }, "copy_revision": { "type": "integer", "format": "int64" }, "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "repo": { "type": "string" }, "name": { "type": "string" }, "title": { "type": "string" }, "attachments": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Attachment" } }, "state": { "type": "string", "enum": [ "active", "removed" ] }, "added_by": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "description": { "type": "string" }, "stack": { "type": [ "array", "null" ], "items": { "type": "string" } }, "checks": { "anyOf": [ { "$ref": "#/components/schemas/ProjectChecks" }, { "type": "null" } ] }, "people": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/PersonRef" } } }, "required": [ "id", "revision", "repo", "name", "title", "attachments", "state", "added_by", "created_at", "updated_at", "description", "stack", "checks", "people" ], "additionalProperties": false, "x-go-type": "wire.Project" }, "ProjectChecks": { "type": "object", "properties": { "here": { "type": "boolean" }, "gate": { "type": "string" }, "reason": { "type": "string" } }, "required": [ "here", "gate", "reason" ], "additionalProperties": false, "x-go-type": "wire.ProjectChecks" }, "ProjectEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "project" }, "resource": { "const": "project" }, "data": { "$ref": "#/components/schemas/Project" } } } ] }, "ProjectList": { "type": "object", "properties": { "cursor": { "type": "integer", "format": "int64" }, "connections": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectConnection" } }, "can_add": { "type": "array", "items": { "$ref": "#/components/schemas/ReachableProject" } }, "items": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Project" } }, "allowed": { "type": [ "array", "null" ], "items": { "type": "string" } }, "home": { "type": "string" } }, "required": [ "cursor", "items", "allowed", "home" ], "additionalProperties": false, "x-go-type": "wire.ProjectList" }, "PublishResult": { "type": "object", "properties": { "phase": { "type": "string" }, "app": { "type": "string" }, "url": { "type": "string" }, "version": { "type": "string" }, "digest": { "type": "string" }, "files": { "type": "integer", "format": "int64" }, "bytes": { "type": "integer", "format": "int64" }, "outcome": { "type": "string" }, "deploy_held": { "type": "boolean" } }, "required": [ "phase", "digest", "files", "bytes" ], "additionalProperties": false, "x-go-type": "wire.PublishResult" }, "Question": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "task_id": { "type": "string" }, "step_id": { "type": "string" }, "specialist": { "type": "string" }, "asker": { "type": "string" }, "text": { "type": "string" }, "state": { "type": "string", "enum": [ "queued", "running", "answered", "failed", "cancelled" ] }, "reason": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "answer": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "timing": { "anyOf": [ { "$ref": "#/components/schemas/TurnTiming" }, { "type": "null" } ] } }, "required": [ "id", "revision", "task_id", "step_id", "specialist", "asker", "text", "state", "reason", "attempt", "answer", "created_at", "updated_at", "timing" ], "additionalProperties": false, "x-go-type": "wire.Question" }, "QuestionEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "question" }, "resource": { "const": "question" }, "data": { "$ref": "#/components/schemas/Question" } } } ] }, "QuietHours": { "type": "object", "properties": { "from": { "type": "integer", "format": "int64" }, "until": { "type": "integer", "format": "int64" } }, "required": [ "from", "until" ], "additionalProperties": false, "x-go-type": "wire.QuietHours" }, "QuietHoursInput": { "type": "object", "properties": { "from": { "type": "integer", "format": "int64" }, "until": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.QuietHours" }, "ResearchCapability": { "type": "object", "properties": { "addresses": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "required": [ "addresses" ], "additionalProperties": false, "x-go-type": "wire.ResearchCapability" }, "ResearchFact": { "type": "object", "properties": { "label": { "type": "string" }, "value": { "type": "string" }, "sources": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "required": [ "label", "value", "sources" ], "additionalProperties": false, "x-go-type": "wire.ResearchFact" }, "ResearchFetch": { "type": "object", "properties": { "source_id": { "type": "string" }, "origin": { "type": "string" }, "parent": { "type": "string" }, "url": { "type": "string" }, "hops": { "type": "array", "items": { "$ref": "#/components/schemas/ResearchHop" } }, "address": { "type": "string" }, "status": { "type": "integer", "format": "int64" }, "type": { "type": "string" }, "bytes": { "type": "integer", "format": "int64" }, "sha256": { "type": "string" }, "millis": { "type": "integer", "format": "int64" }, "reason": { "type": "string" } }, "required": [ "source_id", "origin", "url", "millis" ], "additionalProperties": false, "x-go-type": "wire.ResearchFetch" }, "ResearchFindings": { "type": "object", "properties": { "summary": { "type": "string" }, "facts": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ResearchFact" } }, "images": { "type": [ "array", "null" ], "items": { "type": "string" } }, "gaps": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "required": [ "summary", "facts", "images", "gaps" ], "additionalProperties": false, "x-go-type": "wire.ResearchFindings" }, "ResearchHop": { "type": "object", "properties": { "url": { "type": "string" }, "address": { "type": "string" }, "status": { "type": "integer", "format": "int64" } }, "required": [ "url" ], "additionalProperties": false, "x-go-type": "wire.ResearchHop" }, "ResumeSpend": { "type": "object", "properties": { "pause_revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.ResumeSpend" }, "RevokeSpecialist": { "type": "object", "properties": { "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.RevokeSpecialist" }, "RunNow": { "type": "object", "properties": { "step": { "type": "string" }, "step_revision": { "type": "integer", "format": "int64" }, "offer": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.RunNow" }, "RunNowAccepted": { "type": "object", "properties": { "release": { "type": "string" } }, "required": [ "release" ], "additionalProperties": false, "x-go-type": "wire.RunNowAccepted" }, "Runner": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "online": { "type": "boolean" }, "label": { "type": "string" }, "role": { "type": "string", "enum": [ "", "primary", "worker" ] }, "since": { "type": [ "string", "null" ], "format": "date-time" }, "platform": { "anyOf": [ { "$ref": "#/components/schemas/Platform" }, { "type": "null" } ] }, "capabilities": { "anyOf": [ { "$ref": "#/components/schemas/Capabilities" }, { "type": "null" } ] }, "removing": { "type": "boolean" }, "seal_key": { "type": "string" } }, "required": [ "id", "revision", "online", "label", "role", "since", "platform", "capabilities", "removing", "seal_key" ], "additionalProperties": false, "x-go-type": "wire.Runner" }, "RunnerEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "runner" }, "resource": { "const": "runner" }, "data": { "$ref": "#/components/schemas/Runner" } } } ] }, "RunnerList": { "type": "object", "properties": { "items": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Runner" } } }, "required": [ "items" ], "additionalProperties": false, "x-go-type": "wire.RunnerList" }, "Sealed": { "type": "object", "properties": { "box": { "type": "string" }, "runner_id": { "type": "string" }, "connection_id": { "type": "string" }, "provider": { "type": "string" }, "endpoint": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "expires_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "x-go-type": "wire.Sealed" }, "SendMessage": { "type": "object", "properties": { "project_id": { "type": "string" }, "text": { "type": "string" }, "idempotency_key": { "type": "string" }, "attachments": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false, "x-go-type": "wire.SendMessage" }, "Sent": { "type": "object", "properties": { "message": { "$ref": "#/components/schemas/Message" }, "turn": { "$ref": "#/components/schemas/Turn" } }, "required": [ "message", "turn" ], "additionalProperties": false, "x-go-type": "wire.Sent" }, "SetBudget": { "type": "object", "properties": { "day": { "type": "integer", "format": "int64" }, "month": { "type": "integer", "format": "int64" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.SetBudget" }, "SetDetector": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.SetDetector" }, "SetHousekeeping": { "type": "object", "properties": { "paused": { "type": "boolean" }, "quiet": { "$ref": "#/components/schemas/QuietHoursInput" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.SetHousekeeping" }, "SetKind": { "type": "object", "properties": { "kind": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.SetKind" }, "SetMergePolicy": { "type": "object", "properties": { "mode": { "type": "string" }, "max_lines": { "type": "integer", "format": "int64" }, "max_files": { "type": "integer", "format": "int64" }, "main_ships": { "type": "string" }, "extra_sensitive": { "type": [ "array", "null" ], "items": { "type": "string" } }, "words": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.SetMergePolicy" }, "SetModels": { "type": "object", "properties": { "allowed": { "type": [ "array", "null" ], "items": { "type": "string" } }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.SetModels" }, "SetPriority": { "type": "object", "properties": { "priority": { "type": "string", "enum": [ "urgent", "normal", "low" ] }, "by": { "type": [ "string", "null" ], "format": "date-time" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.SetPriority" }, "Signature": { "type": "object", "properties": { "version": { "type": "integer", "format": "int64" }, "complete": { "type": "boolean" }, "adapter": { "type": "string" }, "hash": { "type": "string" }, "failures": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Failure" } } }, "required": [ "version", "complete", "adapter", "hash", "failures" ], "additionalProperties": false, "x-go-type": "copydesk.Signature" }, "Simulator": { "type": "object", "properties": { "name": { "type": "string" }, "runtime": { "type": "string" }, "udid": { "type": "string" }, "state": { "type": "string" } }, "required": [ "name", "runtime", "udid", "state" ], "additionalProperties": false, "x-go-type": "wire.Simulator" }, "Snapshot": { "type": "object", "properties": { "me": { "$ref": "#/components/schemas/Me" }, "messages": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Message" } }, "turns": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Turn" } }, "runner": { "$ref": "#/components/schemas/Runner" }, "projects": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Project" } }, "cards": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Card" } }, "tasks": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Task" } }, "coordinator": { "$ref": "#/components/schemas/Coordinator" }, "connections": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Connection" } }, "housekeeping_summary": { "$ref": "#/components/schemas/HousekeepingSummary" }, "cursor": { "type": "integer", "format": "int64" }, "runners": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Runner" } } }, "required": [ "me", "messages", "turns", "runner", "projects", "cards", "tasks", "coordinator", "connections", "housekeeping_summary", "cursor", "runners" ], "additionalProperties": false, "x-go-type": "wire.Snapshot" }, "Specialist": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "profile": { "type": "string" }, "project": { "type": "string" }, "name": { "type": "string" }, "brief": { "type": "string" }, "model": { "type": "string" }, "state": { "type": "string", "enum": [ "proposed", "active", "declined", "revoked" ] }, "capabilities": { "type": [ "array", "null" ], "items": { "type": "string" } }, "tools": { "type": [ "array", "null" ], "items": { "type": "string" } }, "proposed_by": { "type": "string" }, "approver": { "type": "string" }, "approved_at": { "type": [ "string", "null" ], "format": "date-time" }, "revoked_by": { "type": "string" }, "revoked_at": { "type": [ "string", "null" ], "format": "date-time" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" } }, "required": [ "id", "revision", "profile", "project", "name", "brief", "model", "state", "capabilities", "tools", "proposed_by", "approver", "approved_at", "revoked_by", "revoked_at", "created_at", "updated_at" ], "additionalProperties": false, "x-go-type": "wire.Specialist" }, "SpecialistCapability": { "type": "object", "properties": { "id": { "type": "string" }, "words": { "type": "string" } }, "required": [ "id", "words" ], "additionalProperties": false, "x-go-type": "wire.SpecialistCapability" }, "SpecialistList": { "type": "object", "properties": { "items": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Specialist" } } }, "required": [ "items" ], "additionalProperties": false, "x-go-type": "wire.SpecialistList" }, "Spend": { "type": "object", "properties": { "day": { "type": "integer", "format": "int64" }, "month": { "type": "integer", "format": "int64" }, "currency": { "type": "string" }, "unknown": { "type": "boolean" }, "pause_revision": { "type": "integer", "format": "int64" }, "running": { "type": "boolean" } }, "required": [ "day", "month", "currency", "unknown", "pause_revision", "running" ], "additionalProperties": false, "x-go-type": "wire.Spend" }, "Step": { "type": "object", "properties": { "change_files": { "$ref": "#/components/schemas/ChangeFiles", "description": "Bounded presentation facts, included only on GET /tasks/{id} detail reads. Absent from task lists, snapshots, events and Coordinator tools." }, "base_checks": { "type": "string" }, "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "task_id": { "type": "string" }, "index": { "type": "integer", "format": "int64" }, "specialist": { "type": "string" }, "state": { "type": "string", "enum": [ "queued", "running", "done", "failed", "cancelled" ] }, "reason": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "base_sha": { "type": "string" }, "candidate_sha": { "type": "string" }, "pushed": { "type": "boolean" }, "terminated": { "type": "boolean" }, "summary": { "type": "string" }, "headline": { "type": "string" }, "log_tail": { "type": "string" }, "started_at": { "type": [ "string", "null" ], "format": "date-time" }, "finished_at": { "type": [ "string", "null" ], "format": "date-time" }, "round": { "type": "integer", "format": "int64" }, "family": { "type": "string" }, "account": { "type": "string" }, "model": { "type": "string" }, "verdict": { "type": "string" }, "review_label": { "type": "string" }, "findings": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Finding" } }, "checks": { "type": "string" }, "gate": { "type": "string" }, "exit_code": { "type": [ "integer", "null" ], "format": "int64" }, "hosted": { "$ref": "#/components/schemas/StepHosted" }, "askable": { "type": "boolean" }, "rebase": { "type": "boolean" }, "merge_sha": { "type": "string" }, "into": { "type": "string" }, "strategy": { "type": "string" }, "without_checks": { "type": "boolean" }, "switched": { "anyOf": [ { "$ref": "#/components/schemas/Switched" }, { "type": "null" } ] }, "activity": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ActivityLine" } }, "runner_id": { "type": "string" }, "runner_label": { "type": "string" }, "engineering_status": { "$ref": "#/components/schemas/EngineeringStatus" }, "sandbox_choice": { "type": "string" }, "waiting_for": { "type": "string" }, "made_on": { "type": "string" }, "xcode_access": { "type": "string" }, "needs": { "type": [ "array", "null" ], "items": { "type": "string" } }, "placement": { "type": "string" }, "publication": { "type": "string" }, "termination_kind": { "type": "string" }, "checks_sandbox": { "type": "string" }, "preview": { "$ref": "#/components/schemas/PreviewResult" }, "research": { "$ref": "#/components/schemas/StepResearch" }, "design": { "$ref": "#/components/schemas/StepDesign" }, "maker": { "$ref": "#/components/schemas/Maker" }, "hold": { "$ref": "#/components/schemas/StepHold" }, "paused": { "$ref": "#/components/schemas/StepPaused" }, "publish": { "$ref": "#/components/schemas/PublishResult" }, "retried_by": { "type": "string" } }, "required": [ "id", "revision", "task_id", "index", "specialist", "state", "reason", "attempt", "base_sha", "candidate_sha", "pushed", "terminated", "summary", "headline", "log_tail", "started_at", "finished_at", "round", "family", "account", "verdict", "review_label", "findings", "checks", "gate", "exit_code", "askable", "rebase", "merge_sha", "into", "strategy", "without_checks", "switched", "activity", "runner_id", "runner_label", "needs", "placement", "publication", "termination_kind" ], "additionalProperties": false, "x-go-type": "wire.Step" }, "StepActivity": { "type": "object", "properties": { "task_id": { "type": "string" }, "step_id": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "activity": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ActivityLine" } } }, "required": [ "task_id", "step_id", "attempt", "activity" ], "additionalProperties": false, "x-go-type": "wire.StepActivity" }, "StepEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "step" }, "resource": { "const": "step" }, "data": { "$ref": "#/components/schemas/Step" } } } ] }, "StepHold": { "type": "object", "properties": { "reason": { "type": "string" }, "connection": { "type": "string" }, "provider": { "type": "string" }, "resets_at": { "type": "string", "format": "date-time" }, "wake_at": { "type": [ "string", "null" ], "format": "date-time" }, "needs_person": { "type": "string" }, "step_revision": { "type": "integer", "format": "int64" } }, "required": [ "reason", "wake_at", "step_revision" ], "additionalProperties": false, "x-go-type": "wire.StepHold" }, "StepLog": { "type": "object", "properties": { "step_id": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "tail": { "type": "string" } }, "required": [ "step_id", "attempt", "tail" ], "additionalProperties": false, "x-go-type": "wire.StepLog" }, "StepResearch": { "type": "object", "properties": { "attempt": { "type": "integer", "format": "int64" }, "findings": { "$ref": "#/components/schemas/ResearchFindings" }, "fetches": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ResearchFetch" } }, "images": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/StepResearchImage" } } }, "required": [ "attempt", "findings", "fetches", "images" ], "additionalProperties": false, "x-go-type": "wire.StepResearch" }, "StepResearchImage": { "type": "object", "properties": { "id": { "type": "string" }, "image_id": { "type": "string" }, "source_id": { "type": "string" }, "role": { "type": "string" }, "description": { "type": "string" }, "size": { "type": "integer", "format": "int64" }, "width": { "type": "integer", "format": "int64" }, "height": { "type": "integer", "format": "int64" } }, "required": [ "id", "image_id", "source_id", "role", "description", "size", "width", "height" ], "additionalProperties": false, "x-go-type": "wire.StepResearchImage" }, "StepDesign": { "type": "object", "properties": { "attempt": { "type": "integer", "format": "int64" }, "options": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/StepDesignOption" } } }, "required": [ "attempt", "options" ], "additionalProperties": false, "x-go-type": "wire.StepDesign" }, "StepDesignOption": { "type": "object", "properties": { "name": { "type": "string" }, "captures": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/StepCapture" } } }, "required": [ "name", "captures" ], "additionalProperties": false, "x-go-type": "wire.StepDesignOption" }, "StepCapture": { "type": "object", "properties": { "id": { "type": "string" }, "capture_id": { "type": "string" }, "size": { "type": "integer", "format": "int64" }, "width": { "type": "integer", "format": "int64" }, "height": { "type": "integer", "format": "int64" } }, "required": [ "id", "capture_id", "size", "width", "height" ], "additionalProperties": false, "x-go-type": "wire.StepCapture" }, "StreamEvent": { "oneOf": [ { "$ref": "#/components/schemas/ActivityQuestionEvent" }, { "$ref": "#/components/schemas/ActivityStepEvent" }, { "$ref": "#/components/schemas/ActivityTurnEvent" }, { "$ref": "#/components/schemas/CardEvent" }, { "$ref": "#/components/schemas/ConnectionEvent" }, { "$ref": "#/components/schemas/CoordinatorEvent" }, { "$ref": "#/components/schemas/DeltaQuestionEvent" }, { "$ref": "#/components/schemas/DeltaTurnEvent" }, { "$ref": "#/components/schemas/HousekeepingActionEvent" }, { "$ref": "#/components/schemas/HousekeepingEvent" }, { "$ref": "#/components/schemas/MessageEvent" }, { "$ref": "#/components/schemas/PreferenceEvent" }, { "$ref": "#/components/schemas/ProjectEvent" }, { "$ref": "#/components/schemas/QuestionEvent" }, { "$ref": "#/components/schemas/RunnerEvent" }, { "$ref": "#/components/schemas/StepEvent" }, { "$ref": "#/components/schemas/TaskEvent" }, { "$ref": "#/components/schemas/ThinkingEvent" }, { "$ref": "#/components/schemas/TurnEvent" }, { "$ref": "#/components/schemas/PingEvent" } ] }, "Switched": { "type": "object", "properties": { "from": { "type": "string" }, "to": { "type": "string" }, "window": { "type": "string" }, "resets_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "from", "to", "window", "resets_at" ], "additionalProperties": false, "x-go-type": "wire.Switched" }, "Task": { "type": "object", "properties": { "stopping": { "type": "boolean" }, "move_hold_reason": { "type": "string" }, "preparing_project": { "type": "boolean" }, "moving": { "type": "boolean" }, "earlier_steps": { "type": "array", "items": { "$ref": "#/components/schemas/Step" } }, "copy_can_skip": { "type": "boolean" }, "copy_hold": { "type": "boolean" }, "copy_repeat": { "$ref": "#/components/schemas/CopyRepeat" }, "copy_flags": { "type": "array", "items": { "$ref": "#/components/schemas/CopyFlag" } }, "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "project_id": { "type": "string" }, "project": { "type": "string" }, "repo": { "type": "string" }, "title": { "type": "string" }, "brief": { "type": "string" }, "stage": { "type": "string", "enum": [ "noted", "investigated", "in_progress", "in_review", "ready_to_merge", "merging", "done", "cancelled" ] }, "branch": { "type": "string" }, "base_sha": { "type": "string" }, "url": { "type": "string" }, "creator": { "type": "string" }, "turn_id": { "type": "string" }, "findings": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Finding" } }, "steps": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Step" } }, "thread": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ThreadEntry" } }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "done_at": { "type": "string", "format": "date-time" }, "candidate_sha": { "type": "string" }, "checks": { "type": "string" }, "checks_reason": { "type": "string" }, "checks_sandbox": { "type": "string" }, "verdict": { "type": "string" }, "review_label": { "type": "string" }, "needs_you": { "type": "string" }, "fix_rounds": { "type": "integer", "format": "int64" }, "branch_head": { "type": "string" }, "questions": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Question" } }, "merged": { "anyOf": [ { "$ref": "#/components/schemas/Merged" }, { "type": "null" } ] }, "reports": { "type": "integer", "format": "int64" }, "ask_open": { "type": "boolean" }, "merge_offered": { "type": "boolean" }, "merge_decision": { "$ref": "#/components/schemas/MergeDecision" }, "merge_hold": { "type": "string" }, "revert_of": { "type": "string" }, "undo_offered": { "type": "boolean" }, "creator_name": { "type": "string" }, "source_message_id": { "type": "string" }, "source_at": { "type": [ "string", "null" ], "format": "date-time" }, "duplicate_of": { "anyOf": [ { "$ref": "#/components/schemas/TaskRef" }, { "type": "null" } ] }, "coordinator": { "anyOf": [ { "$ref": "#/components/schemas/TaskActivity" }, { "type": "null" } ] }, "folded": { "anyOf": [ { "$ref": "#/components/schemas/TaskFold" }, { "type": "null" } ] }, "combined": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/TaskRef" } }, "engineering_runner": { "type": "string" }, "triage": { "$ref": "#/components/schemas/TaskTriage" }, "kind": { "type": "string", "enum": [ "change", "explore" ] }, "explored_from": { "$ref": "#/components/schemas/TaskRef" }, "maker": { "$ref": "#/components/schemas/Maker" }, "built_as": { "$ref": "#/components/schemas/TaskRef" }, "direction": { "$ref": "#/components/schemas/TaskDirection" }, "priority": { "$ref": "#/components/schemas/TaskPriority" }, "preview_url": { "type": "string" }, "site": { "$ref": "#/components/schemas/TaskSite" } }, "required": [ "id", "revision", "project_id", "project", "repo", "title", "brief", "stage", "branch", "base_sha", "url", "creator", "turn_id", "findings", "steps", "thread", "created_at", "updated_at", "candidate_sha", "checks", "checks_reason", "verdict", "review_label", "needs_you", "fix_rounds", "branch_head", "questions", "merged", "reports", "ask_open", "merge_offered", "creator_name", "source_message_id", "source_at", "duplicate_of", "coordinator", "folded", "combined", "engineering_runner" ], "additionalProperties": false, "x-go-type": "wire.Task" }, "TaskAccepted": { "type": "object", "properties": { "attempt": { "type": "integer", "format": "int64" } }, "required": [ "attempt" ], "additionalProperties": false, "x-go-type": "wire.TaskAccepted" }, "TaskActivity": { "type": "object", "properties": { "kind": { "type": "string" }, "since": { "type": "string", "format": "date-time" } }, "required": [ "kind", "since" ], "additionalProperties": false, "x-go-type": "wire.TaskActivity" }, "TaskDirection": { "type": "object", "properties": { "preview_url": { "type": "string" }, "branch_url": { "type": "string" }, "previews_off": { "type": "boolean" }, "options": { "type": "array", "items": { "$ref": "#/components/schemas/StepDesignOption" } }, "note_needed": { "type": "boolean" } }, "required": [ "branch_url" ], "additionalProperties": false, "x-go-type": "wire.TaskDirection" }, "TaskEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "task" }, "resource": { "const": "task" }, "data": { "$ref": "#/components/schemas/Task" } } } ] }, "TaskFold": { "type": "object", "properties": { "into": { "$ref": "#/components/schemas/TaskRef" }, "at": { "type": "string", "format": "date-time" } }, "required": [ "into", "at" ], "additionalProperties": false, "x-go-type": "wire.TaskFold" }, "TaskList": { "type": "object", "properties": { "items": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/Task" } } }, "required": [ "items" ], "additionalProperties": false, "x-go-type": "wire.TaskList" }, "TaskPriority": { "type": "object", "properties": { "priority": { "type": "string", "enum": [ "urgent", "normal", "low" ] }, "by": { "type": [ "string", "null" ], "format": "date-time" }, "set_by": { "type": "string", "enum": [ "coordinator", "person" ] } }, "required": [ "priority", "by", "set_by" ], "additionalProperties": false, "x-go-type": "wire.TaskPriority" }, "TaskRef": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "stage": { "type": "string" }, "creator": { "type": "string" } }, "required": [ "id", "title", "stage", "creator" ], "additionalProperties": false, "x-go-type": "wire.TaskRef" }, "TaskSite": { "type": "object", "properties": { "app": { "type": "string" }, "sha": { "type": "string" }, "state": { "type": "string" }, "url": { "type": "string" }, "at": { "type": "string", "format": "date-time" } }, "required": [ "app", "sha", "state" ], "additionalProperties": false, "x-go-type": "wire.TaskSite" }, "TaskTriage": { "type": "object", "properties": { "kind": { "type": "string" }, "reason": { "type": "string" }, "since": { "type": "string", "format": "date-time" }, "said": { "type": "string" }, "failed": { "type": "array", "items": { "type": "string" } }, "recommend": { "type": "string" }, "why": { "type": "string" } }, "required": [ "kind" ], "additionalProperties": false, "x-go-type": "wire.TaskTriage" }, "ThinkingChoice": { "type": "object", "properties": { "set": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "set", "revision" ], "additionalProperties": false, "x-go-type": "wire.ThinkingChoice" }, "ThinkingChoiceInput": { "type": "object", "properties": { "set": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.ThinkingChoice" }, "ThinkingEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "thinking" }, "resource": { "const": "thinking" }, "data": { "$ref": "#/components/schemas/ThinkingChoice" } } } ] }, "ThinkingSet": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "phrases": { "type": [ "object", "null" ], "additionalProperties": { "type": [ "array", "null" ], "items": { "type": "string" } } } }, "required": [ "id", "name", "description", "phrases" ], "additionalProperties": false, "x-go-type": "wire.ThinkingSet" }, "ThinkingWords": { "type": "object", "properties": { "set": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "sets": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ThinkingSet" } } }, "required": [ "set", "revision", "sets" ], "additionalProperties": false, "x-go-type": "wire.ThinkingWords" }, "ThreadEntry": { "type": "object", "properties": { "id": { "type": "string" }, "author": { "type": "string" }, "text": { "type": "string" }, "at": { "type": "string", "format": "date-time" } }, "required": [ "id", "author", "text", "at" ], "additionalProperties": false, "x-go-type": "wire.ThreadEntry" }, "Toolchains": { "type": "object", "properties": { "go": { "type": "string" }, "swift": { "type": "string" }, "node": { "type": "string" } }, "required": [ "go", "swift", "node" ], "additionalProperties": false, "x-go-type": "wire.Toolchains" }, "Turn": { "type": "object", "properties": { "id": { "type": "string" }, "revision": { "type": "integer", "format": "int64" }, "kind": { "type": "string", "enum": [ "", "move_in", "explore", "housekeeping", "specialist_added" ] }, "state": { "type": "string", "enum": [ "", "queued", "running", "waiting", "replied", "failed", "cancelled" ] }, "reason": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "message_ids": { "type": [ "array", "null" ], "items": { "type": "string" } }, "reply_id": { "type": "string" }, "connection": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "timing": { "anyOf": [ { "$ref": "#/components/schemas/TurnTiming" }, { "type": "null" } ] } }, "required": [ "id", "revision", "kind", "state", "reason", "attempt", "message_ids", "reply_id", "connection", "created_at", "updated_at", "timing" ], "additionalProperties": false, "x-go-type": "wire.Turn" }, "TurnEvent": { "allOf": [ { "$ref": "#/components/schemas/Event" }, { "properties": { "type": { "const": "turn" }, "resource": { "const": "turn" }, "data": { "$ref": "#/components/schemas/Turn" } } } ] }, "TurnTiming": { "type": "object", "properties": { "queued_ms": { "type": "integer", "format": "int64" }, "start_ms": { "type": "integer", "format": "int64" }, "first_event_ms": { "type": "integer", "format": "int64" }, "first_thinking_ms": { "type": "integer", "format": "int64" }, "first_tool_ms": { "type": "integer", "format": "int64" }, "first_text_ms": { "type": "integer", "format": "int64" }, "last_text_ms": { "type": "integer", "format": "int64" }, "result_ms": { "type": "integer", "format": "int64" }, "cold": { "type": "boolean" } }, "required": [ "queued_ms", "start_ms", "first_event_ms", "first_thinking_ms", "first_tool_ms", "first_text_ms", "last_text_ms", "result_ms", "cold" ], "additionalProperties": false, "x-go-type": "wire.TurnTiming" }, "UndoMerge": { "type": "object", "properties": { "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.UndoMerge" }, "UsageRow": { "type": "object", "properties": { "id": { "type": "string" }, "label": { "type": "string" }, "input": { "type": "integer", "format": "int64" }, "cached_input": { "type": "integer", "format": "int64" }, "output": { "type": "integer", "format": "int64" }, "partial": { "type": "boolean" }, "cost": { "type": [ "integer", "null" ], "format": "int64" }, "currency": { "type": "string" }, "attempts": { "type": "integer", "format": "int64" } }, "required": [ "id", "label", "input", "cached_input", "output", "partial", "cost", "currency", "attempts" ], "additionalProperties": false, "x-go-type": "wire.UsageRow" }, "UsageTotals": { "type": "object", "properties": { "period": { "type": "string", "enum": [ "day", "week", "month" ] }, "by": { "type": "string", "enum": [ "connection", "role", "project", "task", "model" ] }, "from": { "type": "string", "format": "date-time" }, "to": { "type": "string", "format": "date-time" }, "rows": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/UsageRow" } }, "left_out": { "type": "boolean" }, "prices": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/PriceSource" } } }, "required": [ "period", "by", "from", "to", "rows", "left_out", "prices" ], "additionalProperties": false, "x-go-type": "wire.UsageTotals" }, "Window": { "type": "object", "properties": { "name": { "type": "string" }, "used_percent": { "type": "number", "format": "double" }, "minutes": { "type": "integer", "format": "int64" }, "resets_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "name", "used_percent", "minutes", "resets_at" ], "additionalProperties": false, "x-go-type": "wire.Window" }, "Xcode": { "type": "object", "properties": { "version": { "type": "string" }, "build": { "type": "string" } }, "required": [ "version", "build" ], "additionalProperties": false, "x-go-type": "wire.Xcode" }, "ProjectAutonomy": { "type": "object", "properties": { "public_previews_since": { "type": "string", "format": "date-time" }, "auto_merge_sensitive": { "type": "boolean" }, "auto_merge_ci": { "type": "boolean" }, "public_previews": { "type": "boolean" }, "owner": { "type": "string" }, "revision": { "type": "integer", "format": "int64" } }, "required": [ "auto_merge_ci", "public_previews", "revision" ], "additionalProperties": false, "x-go-type": "wire.ProjectAutonomy" }, "PushRegistration": { "type": "object", "properties": { "environment": { "type": "string", "enum": [ "production", "development" ] }, "platform": { "type": "string", "enum": [ "ios", "macos" ] }, "live_activities": { "type": "boolean" }, "updated_at": { "type": "string", "format": "date-time" } }, "required": [ "environment", "platform", "live_activities", "updated_at" ], "additionalProperties": false, "x-go-type": "wire.PushRegistration" }, "RegisterActivity": { "type": "object", "properties": { "task_id": { "type": "string" }, "token": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.RegisterActivity" }, "RegisterPush": { "type": "object", "properties": { "actions_version": { "type": "integer", "format": "int64" }, "binding_id": { "type": "string" }, "token": { "type": "string" }, "environment": { "type": "string", "enum": [ "production", "development" ] }, "platform": { "type": "string", "enum": [ "ios", "macos" ] }, "start_token": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.RegisterPush" }, "SetCardVisibility": { "type": "object", "properties": { "aside": { "type": "boolean" }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false, "x-go-type": "wire.SetCardVisibility" }, "NativeRequest": { "type": "object", "properties": { "assertion": { "type": "string" }, "verifier": { "type": "string" }, "choice": { "type": "string" } }, "required": [ "assertion", "verifier" ], "additionalProperties": false, "x-go-type": "oficinaid.NativeRequest" }, "NativeSession": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" }, "expires_at": { "type": "integer", "format": "int64" } }, "required": [ "name", "value", "expires_at" ], "additionalProperties": false, "x-go-type": "oficinaid.NativeSession" }, "NativeState": { "type": "object", "properties": { "state": { "type": "string" } }, "required": [ "state" ], "additionalProperties": false, "x-go-type": "oficinaid.NativeState" }, "EditProject": { "type": "object", "properties": { "use_title": { "type": "boolean" }, "revision": { "type": "integer", "format": "int64" }, "title": { "type": "string" }, "description": { "type": "string" }, "names": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "additionalProperties": false, "x-go-type": "wire.EditProject" }, "ProjectConnection": { "type": "object", "properties": { "id": { "type": "string" }, "forge": { "type": "string" }, "title": { "type": "string" }, "state": { "type": "string" }, "can_add": { "type": "boolean" } }, "required": [ "id", "forge", "title", "state", "can_add" ], "additionalProperties": false, "x-go-type": "wire.ProjectConnection" }, "ReachableProject": { "type": "object", "properties": { "repo": { "type": "string" }, "name": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "description_source": { "type": "string" }, "forge": { "type": "string" }, "connection_id": { "type": "string" } }, "required": [ "repo", "name", "title", "description", "description_source", "forge", "connection_id" ], "additionalProperties": false, "x-go-type": "wire.ReachableProject" }, "SetProjectStar": { "type": "object", "properties": { "starred": { "type": "boolean" } }, "additionalProperties": false, "x-go-type": "wire.SetProjectStar" }, "ForgetProjectName": { "type": "object", "properties": { "name": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.ForgetProjectName" }, "RunNowOffer": { "type": "object", "properties": { "connection": { "type": "string" }, "provider": { "type": "string" }, "name": { "type": "string" }, "billing": { "type": "string" }, "same": { "type": "boolean" }, "left_percent": { "type": "integer", "format": "int64" }, "plain": { "type": "boolean" }, "may_bill": { "type": "boolean" } }, "additionalProperties": false, "x-go-type": "wire.RunNowOffer" }, "StepPaused": { "type": "object", "properties": { "since": { "type": "string", "format": "date-time" }, "offline": { "type": "boolean" }, "used_percent": { "type": "integer", "format": "int64" }, "run_now": { "$ref": "#/components/schemas/RunNowOffer" } }, "additionalProperties": false, "x-go-type": "wire.StepPaused" }, "TimeZone": { "type": "object", "properties": { "time_zone": { "type": "string" } }, "required": [ "time_zone" ], "additionalProperties": false, "x-go-type": "wire.TimeZone" }, "TimeZoneInput": { "type": "object", "properties": { "time_zone": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.TimeZone" }, "AssistantCarryOnInput": { "type": "object", "properties": { "revision": { "type": "integer", "format": "int64" }, "idempotency_key": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": [ "revision", "idempotency_key" ], "additionalProperties": false }, "AssistantCarriedOn": { "type": "object", "properties": { "card": { "$ref": "#/components/schemas/AssistantCard" } }, "required": [ "card" ], "additionalProperties": false }, "AssistantTimeZoneInput": { "type": "object", "properties": { "time_zone": { "type": "string" }, "only_if_unset": { "type": "boolean" } }, "required": [ "time_zone" ], "additionalProperties": false }, "ToolHealth": { "type": "object", "properties": { "scanner": { "type": "string" }, "renderer": { "type": "string" }, "carlos": { "type": "string" }, "carlos_version": { "type": "string" } }, "required": [ "scanner" ], "additionalProperties": false, "x-go-type": "wire.ToolHealth" }, "StepHosted": { "type": "object", "properties": { "failed": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "required": [ "failed" ], "additionalProperties": false, "x-go-type": "wire.StepHosted" }, "PreviewPass": { "type": "object", "additionalProperties": false, "required": [ "pass", "expires_at", "grant_expires_at", "expires_in", "grant_expires_in" ], "properties": { "pass": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "expires_at": { "type": "string", "format": "date-time" }, "grant_expires_at": { "type": "string", "format": "date-time" }, "expires_in": { "type": "integer", "minimum": 1, "maximum": 60, "description": "Whole seconds from server mint time, rounded down. Subtract elapsed request time before starting the local deadline. Absolute timestamps do not constrain the device clock." }, "grant_expires_in": { "type": "integer", "minimum": 1, "maximum": 900, "description": "Whole seconds from server mint time, rounded down; at least expires_in. Subtract elapsed request time. Never renew or extend this deadline." } } }, "ChangeFiles": { "type": "object", "properties": { "base": { "type": "string" }, "sha": { "type": "string" }, "files": { "type": "integer", "format": "int64", "minimum": 0 }, "additions": { "type": "integer", "format": "int64", "minimum": 0 }, "deletions": { "type": "integer", "format": "int64", "minimum": 0 }, "binary": { "type": "integer", "format": "int64", "minimum": 0 }, "entries": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ChangedFile" }, "maxItems": 200, "description": "At most 200 entries. Totals cover the complete bounded scan; truncated is true when entries were omitted. The encoded facts are bounded to 96 KiB." }, "truncated": { "type": "boolean" } }, "required": [ "base", "sha", "files", "additions", "deletions", "binary", "entries", "truncated" ], "additionalProperties": false, "x-go-type": "wire.ChangeFiles" }, "ChangedFile": { "type": "object", "properties": { "path": { "type": "string" }, "old_path": { "type": "string" }, "status": { "type": "string", "enum": [ "added", "modified", "deleted", "renamed" ] }, "additions": { "type": "integer", "format": "int64", "minimum": 0 }, "deletions": { "type": "integer", "format": "int64", "minimum": 0 }, "binary": { "type": "boolean" } }, "required": [ "path", "status", "additions", "deletions", "binary" ], "additionalProperties": false, "x-go-type": "wire.ChangedFile" }, "RetryTask": { "type": "object", "properties": { "revision": { "type": "integer", "format": "int64" }, "step_id": { "type": "string" }, "step_revision": { "type": "integer", "format": "int64" }, "attempt": { "type": "integer", "format": "int64" }, "idempotency_key": { "type": "string" } }, "additionalProperties": false, "x-go-type": "wire.RetryTask" }, "CardPlaceView": { "type": "object", "properties": { "kind": { "type": "string" }, "project": { "type": "string" }, "candidates": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/PlaceCandidate" } } }, "required": [ "kind", "project", "candidates" ], "additionalProperties": false, "x-go-type": "wire.CardPlaceView" }, "PlaceCandidate": { "type": "object", "properties": { "id": { "type": "string" }, "console": { "type": "string" }, "console_label": { "type": "string" }, "account": { "type": "string" }, "sqid": { "type": "string" } }, "required": [ "id", "console", "console_label", "account", "sqid" ], "additionalProperties": false, "x-go-type": "wire.PlaceCandidate" }, "Reach": { "type": "object", "properties": { "logins": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ReachLogin" } }, "deploys": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ReachDeploy" } } }, "required": [ "logins", "deploys" ], "additionalProperties": false, "x-go-type": "wire.Reach" }, "ReachAccount": { "type": "object", "properties": { "name": { "type": "string" }, "sqid": { "type": "string" } }, "required": [ "name", "sqid" ], "additionalProperties": false, "x-go-type": "wire.ReachAccount" }, "ReachDeploy": { "type": "object", "properties": { "console": { "type": "string" }, "account": { "type": "string" }, "app": { "type": "string" }, "name": { "type": "string" }, "fingerprint": { "type": "string" }, "lost": { "type": "boolean" } }, "required": [ "console", "account", "app", "name" ], "additionalProperties": false, "x-go-type": "wire.ReachDeploy" }, "ReachLogin": { "type": "object", "properties": { "console": { "type": "string" }, "accounts": { "type": [ "array", "null" ], "items": { "$ref": "#/components/schemas/ReachAccount" } } }, "required": [ "console", "accounts" ], "additionalProperties": false, "x-go-type": "wire.ReachLogin" }, "ChangeDiff": { "type": "object", "properties": { "task_id": { "type": "string" }, "step_id": { "type": "string" }, "attempt": { "type": "integer", "format": "int64" }, "base": { "type": "string" }, "candidate_sha": { "type": "string" }, "status": { "type": "string" }, "old_path": { "type": "string" }, "path": { "type": "string" }, "patch": { "type": "string", "maxLength": 65536, "description": "Plain unified patch, at most 64 KiB UTF-8 and 2,000 complete lines, only after whole-file scanning. Not HTML." }, "reason": { "type": "string", "enum": [ "binary", "too_large", "withheld", "unavailable", "expired" ] }, "truncated": { "type": "boolean" }, "hidden_characters": { "type": "boolean", "description": "True when patch contains Unicode Cf, Default_Ignorable_Code_Point, U+2028/U+2029, or Cc except TAB and LF. FE0E/FE0F immediately after a Unicode 17 Emoji and Extended_Pictographic base are exempt, excluding bases below U+00FF and U+203C/U+2049/U+2122. Keycaps remain marked. Native shows visible code-point markers; LF remains structural and patch bytes are preserved." } }, "required": [ "hidden_characters", "task_id", "step_id", "attempt", "base", "candidate_sha", "status", "path", "truncated" ], "additionalProperties": false, "x-go-type": "wire.ChangeDiff" }, "AssistantAbilities": { "type": "object", "properties": { "abilities": { "type": "object", "additionalProperties": { "type": "boolean" } }, "fixed": { "type": "array", "items": { "type": "string" } }, "ask": { "type": "string" } }, "required": [ "abilities", "fixed", "ask" ], "additionalProperties": false }, "AssistantAbilitiesRefreshed": { "type": "object", "properties": { "revision": { "type": "integer", "format": "int64" } }, "required": [ "revision" ], "additionalProperties": false }, "AssistantLookup": { "additionalProperties": false, "properties": { "answer": { "type": "string" }, "sources": { "items": { "$ref": "#/components/schemas/LookupSource" }, "type": [ "array", "null" ] } }, "required": [ "answer", "sources" ], "type": "object", "x-go-type": "wire.AssistantLookup" }, "LookupSource": { "additionalProperties": false, "properties": { "title": { "type": "string" }, "url": { "type": "string" } }, "required": [ "url", "title" ], "type": "object", "x-go-type": "wire.LookupSource" }, "Maker": { "type": "object", "properties": { "id": { "type": "string" }, "profile": { "type": "string" } }, "required": [ "id", "profile" ], "additionalProperties": false, "x-go-type": "wire.Maker" } }, "responses": { "unauthenticated": { "description": "unauthenticated", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "forbidden": { "description": "forbidden", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "not_found": { "description": "not_found", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "method_not_allowed": { "description": "method_not_allowed", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "revision_conflict": { "description": "revision_conflict", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "cursor_expired": { "description": "cursor_expired", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "invalid_input": { "description": "invalid_input", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "precondition_required": { "description": "precondition_required", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "unavailable": { "description": "unavailable", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "subscription_expired": { "description": "subscription_expired", "headers": { "Cache-Control": { "schema": { "const": "no-store" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "x-nativeBearerProduction": "revocable-person-devices", "x-sameOriginBrowserWrites": true, "x-requestReplayScope": [ "authenticated_person", "operation", "resource", "Idempotency-Key" ], "x-requestCanonicalInputIncludes": "original_revision", "x-copyReview": "COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)", "x-device-proof-message": "Decode challenge as unpadded base64url JSON [instance_id, random]. Sign the UTF-8 compact JSON array [\"equipo.person.device.v1\", instance_id, id, challenge, nonce] with Ed25519. Public key and signature are unpadded base64url.", "x-apns-schemas": { "PushData": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string" }, "card_id": { "type": "string" }, "task_id": { "type": "string" }, "turn_id": { "type": "string" }, "actions": { "$ref": "#/x-apns-schemas/PushActions" } }, "required": [ "kind" ] }, "PushActions": { "type": "object", "additionalProperties": false, "description": "APNs routing metadata only. No option text or authority. Missing/unknown/incomplete metadata means open-only.", "properties": { "version": { "type": "integer", "const": 1 }, "binding_id": { "type": "string" }, "notification_id": { "type": "string" }, "card_kind": { "type": "string" }, "card_revision": { "type": "integer", "format": "int64" }, "task_revision": { "type": "integer", "format": "int64" }, "step_id": { "type": "string" }, "step_revision": { "type": "integer", "format": "int64" }, "attempt": { "type": "integer", "format": "int64" } }, "required": [ "version", "binding_id", "notification_id" ] } } }