{"openapi":"3.0.0","info":{"title":"Superplane Organizations API","description":"API for managing organizations in the Superplane service","version":"1.0.0-rc7","contact":{"name":"API Support","email":"support@superplane.com"}},"tags":[{"name":"Organizations"},{"name":"Integrations"},{"name":"Factories"},{"name":"Secrets"},{"name":"Users"},{"name":"Groups"},{"name":"Roles"},{"name":"Me"},{"name":"Actions"},{"name":"Triggers"},{"name":"Widgets"},{"name":"Canvases"},{"name":"ApiKeys"},{"name":"Agents"},{"name":"Files"},{"name":"Runners"},{"name":"Keys"}],"paths":{"/admin/api/installation/fleets":{"get":{"operationId":"Runners_ListFleets","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersListFleetsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Runners"]},"post":{"operationId":"Runners_CreateFleet","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersCreateFleetResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersCreateFleetRequest"}}},"required":true},"tags":["Runners"]}},"/admin/api/installation/fleets/{fleetId}":{"get":{"operationId":"Runners_DescribeFleet","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersDescribeFleetResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"fleetId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Runners"]},"patch":{"operationId":"Runners_UpdateFleet","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersUpdateFleetResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"fleetId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersUpdateFleetBody"}}},"required":true},"tags":["Runners"]}},"/admin/api/installation/fleets/{fleetId}/capacity":{"get":{"operationId":"Runners_GetFleetCapacity","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersGetFleetCapacityResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"fleetId","in":"path","required":true,"schema":{"type":"string"}},{"name":"generation","in":"query","required":false,"schema":{"type":"string"}},{"name":"waitSeconds","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"tags":["Runners"]}},"/admin/api/installation/fleets/{fleetId}/runners":{"get":{"operationId":"Runners_ListRunners","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersListRunnersResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"fleetId","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"afterId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Runners"]},"post":{"operationId":"Runners_CreateRunner","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersCreateRunnerResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"fleetId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersCreateRunnerBody"}}},"required":true},"tags":["Runners"]}},"/admin/api/installation/fleets/{fleetId}/runners/{runnerId}":{"get":{"operationId":"Runners_DescribeRunner","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersDescribeRunnerResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"fleetId","in":"path","required":true,"schema":{"type":"string"}},{"name":"runnerId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Runners"]},"delete":{"operationId":"Runners_DeleteRunner","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersDeleteRunnerResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"fleetId","in":"path","required":true,"schema":{"type":"string"}},{"name":"runnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","description":"When nonempty, delete only if the current state is in this list.\nA mismatch returns a conflict without changing the runner or task.","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}}],"tags":["Runners"]}},"/admin/api/installation/fleets/{fleetId}/tasks":{"get":{"operationId":"Runners_ListFleetTasks","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnersListFleetTasksResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"fleetId","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"afterId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Runners"]}},"/admin/api/installation/keys":{"get":{"operationId":"Keys_ListKeys","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysListKeysResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Keys"]},"post":{"operationId":"Keys_CreateDataKey","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysCreateDataKeyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysCreateDataKeyRequest"}}},"required":true},"tags":["Keys"]}},"/admin/api/installation/keys/migrations":{"get":{"operationId":"Keys_ListMigrations","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysListMigrationsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Keys"]},"post":{"operationId":"Keys_StartMigration","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysMigrationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysStartMigrationRequest"}}},"required":true},"tags":["Keys"]}},"/admin/api/installation/keys/migrations/{id}":{"get":{"operationId":"Keys_GetMigration","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysMigrationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Keys"]}},"/admin/api/installation/keys/rewrap":{"post":{"operationId":"Keys_RewrapKeys","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysRewrapKeysResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysRewrapKeysRequest"}}},"required":true},"tags":["Keys"]}},"/api/v1/actions":{"get":{"summary":"List actions","description":"Returns a list of all actions","operationId":"Actions_ListActions","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionsListActionsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Action"]}},"/api/v1/actions/{name}":{"get":{"summary":"Describe action","description":"Returns an action by its name","operationId":"Actions_DescribeAction","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionsDescribeActionResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Action"]}},"/api/v1/agents/canvases/{canvasId}/chat":{"get":{"summary":"Get or create the user's chat for a canvas","description":"Returns the user's single chat session for the given canvas, provisioning it on first call. The session is permanent.","operationId":"Agents_GetCanvasAgentChat","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsGetCanvasAgentChatResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Agent"]}},"/api/v1/agents/canvases/{canvasId}/chat/reset":{"post":{"summary":"Reset the user's chat for a canvas","description":"Deletes the current chat session and messages, then provisions a brand-new session. Used by the `/clear` command.","operationId":"Agents_ResetCanvasAgentChat","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsResetCanvasAgentChatResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Agent"]}},"/api/v1/agents/chats/{chatId}/interrupt":{"post":{"summary":"Interrupt agent execution","description":"Sends a user.interrupt event to stop the agent mid-execution.","operationId":"Agents_InterruptAgentChat","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsInterruptAgentChatResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Agent"]}},"/api/v1/agents/chats/{chatId}/messages":{"get":{"summary":"List messages older than a cursor","description":"Returns up to `limit` messages strictly older than `before_id`, oldest-first. Omit `before_id` to fetch the most recent page.","operationId":"Agents_ListAgentChatMessages","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsListAgentChatMessagesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}},{"name":"beforeId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"tags":["Agent"]},"post":{"summary":"Send a user message to the chat","description":"Persists the user message, forwards it to the upstream provider, and triggers an async stream of assistant events broadcast over the chat's websocket topic.","operationId":"Agents_SendAgentChatMessage","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsSendAgentChatMessageResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsSendAgentChatMessageBody"}}},"required":true},"tags":["Agent"]}},"/api/v1/agents/chats/{chatId}/outcome":{"post":{"summary":"Define outcome for agent","description":"Sends a user.define_outcome event with a rubric. The agent works toward the rubric with a grader evaluating each iteration.","operationId":"Agents_DefineAgentOutcome","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsDefineAgentOutcomeResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsDefineAgentOutcomeBody"}}},"required":true},"tags":["Agent"]}},"/api/v1/api-keys":{"get":{"summary":"List API keys","description":"Returns all API keys in the organization","operationId":"ApiKeys_ListAPIKeys","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysListAPIKeysResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["ApiKeys"]},"post":{"summary":"Create an API key","description":"Creates a new API key in the organization","operationId":"ApiKeys_CreateAPIKey","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysCreateAPIKeyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysCreateAPIKeyRequest"}}},"required":true},"tags":["ApiKeys"]}},"/api/v1/api-keys/{id}":{"get":{"summary":"Describe an API key","description":"Returns details of a specific API key","operationId":"ApiKeys_DescribeAPIKey","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysDescribeAPIKeyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["ApiKeys"]},"delete":{"summary":"Delete an API key","description":"Deletes an API key and removes its RBAC policies","operationId":"ApiKeys_DeleteAPIKey","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysDeleteAPIKeyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["ApiKeys"]},"patch":{"summary":"Update an API key","description":"Updates the name, description, expiration, or app scope of an API key","operationId":"ApiKeys_UpdateAPIKey","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysUpdateAPIKeyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysUpdateAPIKeyBody"}}},"required":true},"tags":["ApiKeys"]}},"/api/v1/api-keys/{id}/token":{"post":{"summary":"Regenerate API key token","description":"Regenerates the token for an API key","operationId":"ApiKeys_RegenerateAPIKeyToken","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysRegenerateAPIKeyTokenResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeysRegenerateAPIKeyTokenBody"}}},"required":true},"tags":["ApiKeys"]}},"/api/v1/canvases":{"get":{"summary":"List canvases","description":"Returns a list of canvases. Set include_graph to include node positions and edges.","operationId":"Canvases_ListCanvases","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesListCanvasesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"includeGraph","description":"When true, each summary includes node positions and edges.","in":"query","required":false,"schema":{"type":"boolean"}}],"tags":["Canvas"]},"post":{"summary":"Create canvas","description":"Creates a new canvas","operationId":"Canvases_CreateCanvas","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCreateCanvasResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCreateCanvasRequest"}}},"required":true},"tags":["Canvas"]}},"/api/v1/canvases/{canvasId}/events/{eventId}/executions":{"get":{"summary":"List event executions","description":"Returns a list of all node executions triggered by a root event","operationId":"Canvases_ListEventExecutions","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesListEventExecutionsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["CanvasEvent"]}},"/api/v1/canvases/{canvasId}/executions/resolve":{"patch":{"summary":"Resolve execution errors","description":"Marks canvas node execution errors as resolved","operationId":"Canvases_ResolveExecutionErrors","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesResolveExecutionErrorsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesResolveExecutionErrorsBody"}}},"required":true},"tags":["CanvasNodeExecution"]}},"/api/v1/canvases/{canvasId}/executions/{executionId}/cancel":{"patch":{"summary":"Cancel execution","description":"Cancels a running canvas node execution","operationId":"Canvases_CancelExecution","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCancelExecutionResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCancelExecutionBody"}}},"required":true},"tags":["CanvasNodeExecution"]}},"/api/v1/canvases/{canvasId}/executions/{executionId}/hooks/{hookName}":{"post":{"summary":"Invoke execution hook","description":"Invokes a custom hook on a canvas node execution","operationId":"Canvases_InvokeNodeExecutionHook","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesInvokeNodeExecutionHookResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"hookName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesInvokeNodeExecutionHookBody"}}},"required":true},"tags":["CanvasNodeExecution"]}},"/api/v1/canvases/{canvasId}/memory":{"get":{"summary":"List canvas memories","description":"Returns append-only memory records for a canvas","operationId":"Canvases_ListCanvasMemories","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesListCanvasMemoriesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Canvas"]}},"/api/v1/canvases/{canvasId}/memory/namespaces":{"post":{"summary":"Create manual canvas memory namespace","description":"Creates a manually-managed memory namespace with the provided entries. Rejected if the namespace already has any entries.","operationId":"Canvases_CreateCanvasMemoryNamespace","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCreateCanvasMemoryNamespaceResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCreateCanvasMemoryNamespaceBody"}}},"required":true},"tags":["Canvas"]}},"/api/v1/canvases/{canvasId}/memory/namespaces/{namespace}":{"put":{"summary":"Update manual canvas memory namespace","description":"Replaces the entries of a manually-managed memory namespace, optionally renaming it. Rejected if the namespace is node-managed.","operationId":"Canvases_UpdateCanvasMemoryNamespace","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesUpdateCanvasMemoryNamespaceResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesUpdateCanvasMemoryNamespaceBody"}}},"required":true},"tags":["Canvas"]}},"/api/v1/canvases/{canvasId}/memory/{memoryId}":{"delete":{"summary":"Delete canvas memory entry","description":"Deletes one memory record by ID from a canvas","operationId":"Canvases_DeleteCanvasMemory","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesDeleteCanvasMemoryResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"memoryId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Canvas"]}},"/api/v1/canvases/{canvasId}/nodes/{nodeId}/events":{"get":{"summary":"List node events","description":"Returns a list of events for a specific canvas node","operationId":"Canvases_ListNodeEvents","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesListNodeEventsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"tags":["CanvasNode"]}},"/api/v1/canvases/{canvasId}/nodes/{nodeId}/executions":{"get":{"summary":"List node executions","description":"Returns a list of executions for a specific canvas node","operationId":"Canvases_ListNodeExecutions","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesListNodeExecutionsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string","enum":["STATE_UNKNOWN","STATE_PENDING","STATE_STARTED","STATE_FINISHED","STATE_CANCELLING"]}}},{"name":"results","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string","enum":["RESULT_UNKNOWN","RESULT_PASSED","RESULT_FAILED","RESULT_CANCELLED"]}}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"tags":["CanvasNode"]}},"/api/v1/canvases/{canvasId}/nodes/{nodeId}/queue":{"get":{"summary":"List items in a node's queue","description":"Returns a list of items in a node's queue","operationId":"Canvases_ListNodeQueueItems","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesListNodeQueueItemsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"tags":["CanvasNode"]}},"/api/v1/canvases/{canvasId}/nodes/{nodeId}/queue/{itemId}":{"delete":{"summary":"Delete item from a node's queue","description":"Deletes a specific item in a node's queue","operationId":"Canvases_DeleteNodeQueueItem","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesDeleteNodeQueueItemResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["CanvasNode"]}},"/api/v1/canvases/{canvasId}/preference":{"put":{"summary":"Update canvas preference","description":"Updates the current user's canvas preference","operationId":"Canvases_UpdateCanvasPreference","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesUpdateCanvasPreferenceResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesUpdateCanvasPreferenceBody"}}},"required":true},"tags":["Canvas"]}},"/api/v1/canvases/{canvasId}/runs":{"get":{"summary":"List canvas runs","description":"Returns a list of runs for a canvas. Set include_task to include the task id, key, and title.","operationId":"Canvases_ListRuns","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesListRunsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"states","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string","enum":["STATE_UNKNOWN","STATE_PENDING","STATE_STARTED","STATE_CANCELLING","STATE_FINISHED"]}}},{"name":"results","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string","enum":["RESULT_UNKNOWN","RESULT_PASSED","RESULT_FAILED","RESULT_CANCELLED"]}}},{"name":"includeTask","in":"query","required":false,"schema":{"type":"boolean"}}],"tags":["CanvasRun"]}},"/api/v1/canvases/{canvasId}/runs/{runId}":{"get":{"summary":"Describe a run","description":"Returns a description of a run. Set include_task to include the task id, key, and title.","operationId":"Canvases_DescribeRun","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesDescribeRunResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string"}},{"name":"includeTask","in":"query","required":false,"schema":{"type":"boolean"}}],"tags":["CanvasRun"]}},"/api/v1/canvases/{canvasId}/runs/{runId}/cancel":{"patch":{"summary":"Cancel a run","description":"Requests cancellation of a run and its active work","operationId":"Canvases_CancelRun","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCancelRunResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCancelRunBody"}}},"required":true},"tags":["CanvasRun"]}},"/api/v1/canvases/{canvasId}/staging":{"get":{"summary":"Get canvas staging","description":"Returns the current user's staged edits for a canvas","operationId":"Canvases_GetCanvasStaging","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesGetCanvasStagingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["CanvasStaging"]},"delete":{"summary":"Discard canvas staging","description":"Discards the current user's staged edits for a canvas","operationId":"Canvases_DeleteCanvasStaging","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesDeleteCanvasStagingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"paths","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}}],"tags":["CanvasStaging"]},"put":{"summary":"Stage canvas spec files","description":"Writes staged canvas.yaml and console.yaml edits for the current user without creating a new version","operationId":"Canvases_PutCanvasStaging","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesPutCanvasStagingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesPutCanvasStagingBody"}}},"required":true},"tags":["CanvasStaging"]}},"/api/v1/canvases/{canvasId}/staging/commit":{"post":{"summary":"Commit canvas staging","description":"Commits the current user's staged canvas.yaml and console.yaml edits as a new canvas version","operationId":"Canvases_CommitCanvasStaging","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCommitCanvasStagingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesCommitCanvasStagingBody"}}},"required":true},"tags":["CanvasStaging"]}},"/api/v1/canvases/{canvasId}/triggers/{nodeId}/events/{eventId}/reemit":{"post":{"summary":"Re-emit trigger event","description":"Re-emits an existing root event from a trigger node","operationId":"Canvases_ReemitTriggerEvent","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesReemitTriggerEventResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["CanvasNode"]}},"/api/v1/canvases/{canvasId}/triggers/{nodeId}/hooks/{hookName}":{"post":{"summary":"Invoke trigger hook","description":"Invokes a custom hook on a canvas node trigger","operationId":"Canvases_InvokeNodeTriggerHook","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesInvokeNodeTriggerHookResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"hookName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesInvokeNodeTriggerHookBody"}}},"required":true},"tags":["CanvasNode"]}},"/api/v1/canvases/{canvasId}/versions":{"get":{"summary":"List canvas versions","description":"Lists all versions for a canvas","operationId":"Canvases_ListCanvasVersions","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesListCanvasVersionsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"tags":["CanvasVersion"]}},"/api/v1/canvases/{canvasId}/versions/{versionId}":{"get":{"summary":"Describe canvas version","description":"Returns one canvas version by ID, including its workflow spec","operationId":"Canvases_DescribeCanvasVersion","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesDescribeCanvasVersionResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"canvasId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["CanvasVersion"]}},"/api/v1/canvases/{id}":{"get":{"summary":"Describe canvas","description":"Returns a canvas by ID","operationId":"Canvases_DescribeCanvas","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesDescribeCanvasResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Canvas"]},"delete":{"summary":"Delete canvas","description":"Deletes an existing canvas","operationId":"Canvases_DeleteCanvas","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesDeleteCanvasResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Canvas"]},"put":{"summary":"Update canvas","description":"Updates canvas metadata","operationId":"Canvases_UpdateCanvas","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesUpdateCanvasResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasesUpdateCanvasBody"}}},"required":true},"tags":["Canvas"]}},"/api/v1/factories":{"get":{"summary":"List factories","description":"Returns a list of factories","operationId":"Factories_ListFactories","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoriesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Factory"]},"post":{"summary":"Create factory","description":"Creates a new factory","operationId":"Factories_CreateFactory","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryRequest"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/agent-resources":{"get":{"summary":"List workspace agent resources","description":"Returns MCP connections for a workspace. Skills are reserved for a later release.","operationId":"Factories_ListFactoryAgentResources","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryAgentResourcesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["KIND_UNSPECIFIED","KIND_MCP_SERVER","KIND_SKILL","KIND_SETUP_COMMAND","KIND_CONTEXT_REPO"],"default":"KIND_UNSPECIFIED"}}],"tags":["Factory"]},"post":{"summary":"Create a workspace agent resource","description":"Adds an MCP connection to the workspace catalog.","operationId":"Factories_CreateFactoryAgentResource","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryAgentResourceResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryAgentResourceBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/agent-resources/{resourceId}":{"delete":{"summary":"Delete a workspace agent resource","description":"Removes an MCP connection and its OAuth tokens.","operationId":"Factories_DeleteFactoryAgentResource","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDeleteFactoryAgentResourceResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"patch":{"summary":"Update a workspace agent resource","description":"Updates name, enabled state, or MCP configuration.","operationId":"Factories_UpdateFactoryAgentResource","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryAgentResourceResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryAgentResourceBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/agent-resources/{resourceId}/oauth:disconnect":{"post":{"summary":"Disconnect MCP OAuth","description":"Revokes stored tokens when the vendor advertises a revoke endpoint.","operationId":"Factories_DisconnectFactoryAgentResourceOAuth","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDisconnectFactoryAgentResourceOAuthResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDisconnectFactoryAgentResourceOAuthBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/agent-resources/{resourceId}/oauth:start":{"post":{"summary":"Start MCP OAuth","description":"Discovers the MCP authorization server and returns the browser URL.","operationId":"Factories_StartFactoryAgentResourceOAuth","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesStartFactoryAgentResourceOAuthResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesStartFactoryAgentResourceOAuthBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/agent-resources/{resourceId}/restore":{"post":{"summary":"Restore a system skill to the latest SuperPlane version","operationId":"Factories_RestoreFactorySystemSkill","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesRestoreFactorySystemSkillResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesRestoreFactorySystemSkillBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/agent-resources/{resourceId}/tools":{"get":{"summary":"List MCP tools","description":"Calls tools/list on a connected MCP server. The result is read-only.","operationId":"Factories_ListFactoryAgentResourceTools","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryAgentResourceToolsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/app-templates/{templateId}:materialize":{"post":{"summary":"Materialize a factory app template","description":"Builds a bundled factory app template with its installation settings","operationId":"Factories_MaterializeFactoryAppTemplate","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesMaterializeFactoryAppTemplateResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"templateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesMaterializeFactoryAppTemplateBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/automations":{"get":{"summary":"List factory automations","description":"Returns canvases owned by a factory","operationId":"Factories_ListFactoryAutomations","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryAutomationsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"skillName","description":"When set, list only automations whose saved prompts mention this skill command.","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Factory"]},"post":{"summary":"Create factory automation","description":"Creates a blank factory canvas and optionally attaches it to Verify or Done","operationId":"Factories_CreateFactoryAutomation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryAutomationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryAutomationBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/automations/{automationId}":{"delete":{"summary":"Delete factory automation","description":"Deletes a factory canvas","operationId":"Factories_DeleteFactoryAutomation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDeleteFactoryAutomationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"automationId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/automations/{automationId}:defaults":{"post":{"summary":"Materialize factory automation defaults","description":"Builds the bundled defaults for an installed factory automation and preserves its connections","operationId":"Factories_MaterializeFactoryAutomationDefaults","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesMaterializeFactoryAutomationDefaultsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"automationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesMaterializeFactoryAutomationDefaultsBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/backlog/refresh":{"post":{"summary":"Refresh the backlog","description":"Archives backlog work orders whose intake items are closed or no longer available","operationId":"Factories_RefreshBacklog","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesRefreshBacklogResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesRefreshBacklogBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/dependabot-intake-setup-items":{"get":{"summary":"Preview Dependabot packages for intake setup","description":"Lists open alert packages before the Dependabot intake exists","operationId":"Factories_SearchDependabotIntakeSetupItems","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSearchFactoryIntakeItemsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"dependabotSeverities","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/files":{"get":{"summary":"List workspace files","description":"Returns ready files scoped to a workspace","operationId":"Files_ListFactoryFiles","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesListFactoryFilesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Files"]},"post":{"summary":"Create a workspace file","description":"Creates a pending workspace-scoped file. Upload bytes with PUT /api/v1/files/{file_id}/content.","operationId":"Files_CreateFactoryFile","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesCreateFactoryFileResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesCreateFactoryFileBody"}}},"required":true},"tags":["Files"]}},"/api/v1/factories/{factoryId}/intakes":{"get":{"summary":"List factory intakes","description":"Returns the intakes of a factory","operationId":"Factories_ListFactoryIntakes","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryIntakesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"post":{"summary":"Create factory intake","description":"Creates an intake and the canvas that runs it","operationId":"Factories_CreateFactoryIntake","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryIntakeResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryIntakeBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/intakes/{intakeId}":{"delete":{"summary":"Delete factory intake","description":"Deletes an intake and its canvas","operationId":"Factories_DeleteFactoryIntake","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDeleteFactoryIntakeResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"intakeId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"patch":{"summary":"Update factory intake","description":"Updates the name and settings of an intake","operationId":"Factories_UpdateFactoryIntake","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryIntakeResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"intakeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryIntakeBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/intakes/{intakeId}/imports":{"post":{"summary":"Import factory intake item","description":"Creates a backlog work order from an intake item","operationId":"Factories_ImportFactoryIntakeItem","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesImportFactoryIntakeItemResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"intakeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesImportFactoryIntakeItemBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/intakes/{intakeId}/items":{"get":{"summary":"Search factory intake items","description":"Returns recent or matching items from the intake source","operationId":"Factories_SearchFactoryIntakeItems","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSearchFactoryIntakeItemsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"intakeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/intakes/{intakeId}/runs":{"get":{"summary":"List factory intake runs","description":"Returns what an intake received, how it scored, and where it went","operationId":"Factories_ListFactoryIntakeRuns","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryIntakeRunsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"intakeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"before","description":"Page backwards from this timestamp.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/line-runner-models":{"get":{"summary":"List line runner models","description":"Returns the models a draft task can pick for the runner agents on one factory line","operationId":"Factories_ListFactoryLineRunnerModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryLineRunnerModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"lineName","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/lines":{"post":{"summary":"Create factory line","description":"Creates a new line for a factory","operationId":"Factories_CreateFactoryLine","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryLineResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryLineBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/lines/{lineId}":{"patch":{"summary":"Update factory line","description":"Updates a factory line","operationId":"Factories_UpdateFactoryLine","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryLineResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"lineId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryLineBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/llm-models":{"get":{"summary":"List factory LLM models","description":"Returns the parent model list and the workspace subset for one provider","operationId":"Factories_ListFactoryLLMModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryLLMModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string"}},{"name":"fundingSource","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Factory"]},"put":{"summary":"Update factory LLM models","description":"Sets the workspace subset of parent models. An empty list inherits the parent list.","operationId":"Factories_UpdateFactoryLLMModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryLLMModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryLLMModelsBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/mcp-clients":{"get":{"summary":"List SuperPlane MCP clients","description":"Returns MCP clients that signed in to this workspace.","operationId":"Factories_ListFactoryMCPClients","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryMCPClientsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/mcp-clients/{clientId}":{"delete":{"summary":"Revoke a SuperPlane MCP client","description":"Disconnects an MCP client from this workspace. The client must sign in again.","operationId":"Factories_RevokeFactoryMCPClient","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesRevokeFactoryMCPClientResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders":{"get":{"summary":"List factory work orders","description":"Returns one page of work orders for a factory. The default page size is 100. Pass before_id to return orders older than that id.","operationId":"Factories_ListWorkOrders","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListWorkOrdersResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string","enum":["STATE_UNSPECIFIED","STATE_DRAFT","STATE_OPEN","STATE_CLOSED"]}}},{"name":"results","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string","enum":["RESULT_UNSPECIFIED","RESULT_COMPLETED","RESULT_REJECTED","RESULT_FAILED","RESULT_ARCHIVED","RESULT_PR_CLOSED"]}}},{"name":"unassigned","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"userId","description":"Returns orders assigned to this user or created by them.","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","description":"Page size. Zero or omitted uses 100.","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"beforeId","description":"Return orders older than this id in updated_at DESC, id DESC order.","in":"query","required":false,"schema":{"type":"string"}},{"name":"lineId","description":"When set, return orders that ran on this line, plus orders with no line.","in":"query","required":false,"schema":{"type":"string"}},{"name":"sourceUrl","description":"Recorded external issue URL. Match that issue, not a text fragment.\nGitHub matches the repository and issue number. Archived tasks stay hidden.","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeArchived","description":"Include archived tasks when resolving historical run identities.","in":"query","required":false,"schema":{"type":"boolean"}}],"tags":["Factory"]},"post":{"summary":"Create factory work order","description":"Creates a new work order for a factory","operationId":"Factories_CreateWorkOrder","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateWorkOrderResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateWorkOrderBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}":{"get":{"summary":"Describe factory work order","description":"Returns a work order by ID, number, or key","operationId":"Factories_DescribeWorkOrder","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDescribeWorkOrderResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","description":"Factory UUID or workspace key. Workspace names are not accepted:\nthey are not unique and can contain spaces.","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","description":"Work order UUID, sequence number, or display key (for example `SP-42`).","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"patch":{"summary":"Update factory work order","description":"Updates the title and description of a work order","operationId":"Factories_UpdateWorkOrder","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateWorkOrderResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateWorkOrderBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/artifacts":{"get":{"summary":"List work order artifacts","description":"Returns artifacts attached to a work order","operationId":"Factories_ListWorkOrderArtifacts","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListWorkOrderArtifactsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"post":{"summary":"Create work order artifact","description":"Attaches a typed artifact to a work order","operationId":"Factories_CreateWorkOrderArtifact","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateWorkOrderArtifactResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateWorkOrderArtifactBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/assignees":{"patch":{"summary":"Update a work order's assignees","description":"Updates the assignees of a work order","operationId":"Factories_UpdateWorkOrderAssignees","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateWorkOrderAssigneesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateWorkOrderAssigneesBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/backlog":{"patch":{"summary":"Send work order to backlog","description":"Moves a closed work order to draft and optionally closes pull requests and clears artifacts","operationId":"Factories_SendWorkOrderToBacklog","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSendWorkOrderToBacklogResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSendWorkOrderToBacklogBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/close":{"patch":{"summary":"Close factory work order","description":"Closes a work order","operationId":"Factories_CloseWorkOrder","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCloseWorkOrderResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCloseWorkOrderBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/comments":{"post":{"summary":"Add work order comment","description":"Appends a comment to the work order timeline","operationId":"Factories_AddWorkOrderComment","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesAddWorkOrderCommentResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesAddWorkOrderCommentBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/dispatch":{"patch":{"summary":"Dispatch a work order","description":"Dispatches a work order to a factory line","operationId":"Factories_DispatchWorkOrder","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDispatchWorkOrderResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDispatchWorkOrderBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/events":{"get":{"summary":"List factory work order events","description":"Returns a list of events for a work order","operationId":"Factories_ListWorkOrderEvents","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListWorkOrderEventsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/files":{"get":{"summary":"List task files","description":"Returns ready files scoped to a task","operationId":"Files_ListWorkOrderFiles","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesListWorkOrderFilesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Files"]},"post":{"summary":"Create a task file","description":"Creates a pending task-scoped file. Upload bytes with PUT /api/v1/files/{file_id}/content.","operationId":"Files_CreateWorkOrderFile","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesCreateWorkOrderFileResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesCreateWorkOrderFileBody"}}},"required":true},"tags":["Files"]}},"/api/v1/factories/{factoryId}/orders/{orderId}/status":{"patch":{"summary":"Update work order status","description":"Transitions a work order between lifecycle states","operationId":"Factories_UpdateWorkOrderStatus","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateWorkOrderStatusResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateWorkOrderStatusBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/planning-sessions/{sessionId}":{"get":{"summary":"Describe planning session","description":"Returns a planning session","operationId":"Factories_DescribePlanningSession","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDescribePlanningSessionResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/planning-sessions/{sessionId}/end":{"post":{"summary":"End planning session","description":"Stops the planning session machine","operationId":"Factories_EndPlanningSession","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesEndPlanningSessionResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesEndPlanningSessionBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/planning-sessions/{sessionId}/messages":{"post":{"summary":"Send planning session message","description":"Sends a user message in a planning session","operationId":"Factories_SendPlanningSessionMessage","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSendPlanningSessionMessageResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSendPlanningSessionMessageBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/planning-sessions/{sessionId}/survey-answer":{"post":{"summary":"Answer planning session survey","description":"Sends the user's survey answer to an analysis planning session","operationId":"Factories_AnswerPlanningSessionSurvey","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesAnswerPlanningSessionSurveyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesAnswerPlanningSessionSurveyBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/pr-feedback-handlers":{"get":{"summary":"List factory PR feedback handlers","description":"Returns the PR feedback handlers of a factory","operationId":"Factories_ListFactoryPRFeedbackHandlers","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryPRFeedbackHandlersResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"post":{"summary":"Create factory PR feedback handler","description":"Creates a PR feedback handler and the canvas that runs it","operationId":"Factories_CreateFactoryPRFeedbackHandler","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryPRFeedbackHandlerResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryPRFeedbackHandlerBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/pr-feedback-handlers/{handlerId}":{"delete":{"summary":"Delete factory PR feedback handler","description":"Deletes a PR feedback handler and its canvas","operationId":"Factories_DeleteFactoryPRFeedbackHandler","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDeleteFactoryPRFeedbackHandlerResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"handlerId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"patch":{"summary":"Update factory PR feedback handler","description":"Updates the name and settings of a PR feedback handler","operationId":"Factories_UpdateFactoryPRFeedbackHandler","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryPRFeedbackHandlerResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"handlerId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryPRFeedbackHandlerBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/prs":{"post":{"summary":"Create factory pull request","description":"Tracks a pull request on a work order","operationId":"Factories_CreateFactoryPullRequest","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryPullRequestResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesCreateFactoryPullRequestBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/prs/{prId}":{"get":{"summary":"Describe factory pull request","description":"Returns a factory pull request by its ID","operationId":"Factories_DescribeFactoryPullRequest","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDescribeFactoryPullRequestResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"prId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"patch":{"summary":"Update factory pull request","description":"Updates a tracked factory pull request","operationId":"Factories_UpdateFactoryPullRequest","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryPullRequestResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"prId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryPullRequestBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/prs/{prId}/continue-fixes":{"post":{"summary":"Continue factory pull request fixes","description":"Resumes paused automatic fixes for a tracked pull request with a fresh attempt budget","operationId":"Factories_ContinueFactoryPullRequestFixes","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesContinueFactoryPullRequestFixesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"prId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesContinueFactoryPullRequestFixesBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/prs/{prId}/merge":{"post":{"summary":"Merge factory pull request","description":"Merges a tracked GitHub pull request with a method the repository allows","operationId":"Factories_MergeFactoryPullRequest","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesMergeFactoryPullRequestResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"prId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesMergeFactoryPullRequestBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/prs/{prId}/mergeability":{"get":{"summary":"Describe factory pull request mergeability","description":"Returns whether a tracked factory pull request can merge from SuperPlane","operationId":"Factories_DescribeFactoryPullRequestMergeability","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDescribeFactoryPullRequestMergeabilityResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"prId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/scheduled-intake/preview":{"post":{"summary":"Preview a scheduled intake","description":"Validate schedule settings and return the next run without creating an automation","operationId":"Factories_PreviewFactorySchedule","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesPreviewFactoryScheduleResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesPreviewFactoryScheduleBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/usage":{"get":{"summary":"Describe factory LLM spend","description":"Returns token and estimated dollar spend for a workspace, grouped by model","operationId":"Factories_DescribeFactoryUsage","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDescribeFactoryUsageResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"periodDays","description":"Period window in days. Defaults to 30. Maximum is 90.","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/usage-history":{"get":{"summary":"List factory work-order run usage","description":"Returns paginated task-run spend for a workspace from the usage ledger","operationId":"Factories_ListFactoryWorkOrderRunUsage","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesListFactoryWorkOrderRunUsageResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"startTime","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/usage-history.csv":{"get":{"summary":"Export factory work-order run usage","description":"Returns the full task-run spend ledger for a workspace as CSV, with no date window","operationId":"Factories_ExportFactoryWorkOrderRunUsage","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesExportFactoryWorkOrderRunUsageResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/velocity":{"get":{"summary":"Describe factory velocity","description":"Returns SuperPlane vs People merge counts and waste for a factory over a period","operationId":"Factories_DescribeFactoryVelocity","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"periodDays","description":"Period window in days. Only 14 and 30 are supported by the UI today; any\nother positive value is clamped server-side.","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"repository","description":"Optional `owner/repo` the report is limited to. When it is empty the\nresponse returns SuperPlane data only and sets `has_people_cohort = false`\nso the UI can hide the People series.","in":"query","required":false,"schema":{"type":"string"}},{"name":"peopleSort","description":"Column the People table sorts on. Defaults to PEOPLE_SORT_TOTAL.\n\n - PEOPLE_SORT_UNSPECIFIED: Same as PEOPLE_SORT_TOTAL.\n - PEOPLE_SORT_TOTAL: authored_merged + factory_merged.\n - PEOPLE_SORT_COST_USD: Sorts on cost_cents.\n - PEOPLE_SORT_FACTORY_WASTE: SuperPlane tasks this person opened that closed without a merge.","in":"query","required":false,"schema":{"type":"string","enum":["PEOPLE_SORT_UNSPECIFIED","PEOPLE_SORT_TOTAL","PEOPLE_SORT_FACTORY_MERGED","PEOPLE_SORT_AUTHORED_MERGED","PEOPLE_SORT_MEDIAN_CYCLE_HOURS","PEOPLE_SORT_COST_USD","PEOPLE_SORT_FACTORY_WASTE"],"default":"PEOPLE_SORT_UNSPECIFIED"}},{"name":"peopleSortDirection","description":"Defaults to SORT_DIRECTION_DESC.\n\n - SORT_DIRECTION_UNSPECIFIED: Same as SORT_DIRECTION_DESC.","in":"query","required":false,"schema":{"type":"string","enum":["SORT_DIRECTION_UNSPECIFIED","SORT_DIRECTION_ASC","SORT_DIRECTION_DESC"],"default":"SORT_DIRECTION_UNSPECIFIED"}},{"name":"peoplePageSize","description":"Rows per page of the People table. Defaults to 5, and is capped\nserver-side so a client cannot request the whole table in one call.","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"peopleOffset","description":"0-based row offset into the sorted People table, for \"Load more\" paging.","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"tags":["Factory"]}},"/api/v1/factories/{factoryId}/velocity/sync":{"post":{"summary":"Sync factory velocity","description":"Starts a repository merge sync for a factory and returns before it finishes","operationId":"Factories_SyncFactoryVelocity","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSyncFactoryVelocityResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSyncFactoryVelocityBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{factoryId}/work-orders/{workOrderId}/planning-session":{"get":{"summary":"Find planning session by work order","description":"Returns the analysis planning session for a draft work order","operationId":"Factories_FindPlanningSessionByWorkOrder","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesFindPlanningSessionByWorkOrderResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"factoryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"workOrderId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]}},"/api/v1/factories/{id}":{"get":{"summary":"Describe factory","description":"Returns a factory by ID or workspace key. Workspace names are not accepted: they are not unique and can contain spaces.","operationId":"Factories_DescribeFactory","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDescribeFactoryResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","description":"Factory UUID or workspace key. Workspace names are not accepted:\nthey are not unique and can contain spaces.","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"delete":{"summary":"Delete factory","description":"Soft-deletes an existing factory","operationId":"Factories_DeleteFactory","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesDeleteFactoryResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Factory"]},"put":{"summary":"Update factory","description":"Updates factory metadata","operationId":"Factories_UpdateFactory","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{id}/model-source":{"post":{"summary":"Switch factory model source","description":"Saves a provider key, updates the workspace agent harness, and rewrites agent nodes on workspace canvases","operationId":"Factories_SwitchFactoryModelSource","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSwitchFactoryModelSourceResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSwitchFactoryModelSourceBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{id}/onboarding":{"patch":{"summary":"Update factory onboarding","description":"Saves workspace onboarding progress and optionally marks setup complete","operationId":"Factories_UpdateFactoryOnboarding","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryOnboardingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryOnboardingBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{id}/onboarding/vcs-repository":{"post":{"summary":"Select a Factory VCS repository","description":"Selects an accessible VCS repository and creates the organization integration reference","operationId":"Factories_SelectFactoryVCSProviderRepository","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSelectFactoryVCSProviderRepositoryResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSelectFactoryVCSProviderRepositoryBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{id}/repository":{"patch":{"summary":"Update factory repository","description":"Updates the repository used by a factory workspace","operationId":"Factories_UpdateFactoryRepository","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryRepositoryResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesUpdateFactoryRepositoryBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/factories/{id}/visibility":{"put":{"summary":"Set factory visibility","description":"Makes a workspace board public or private. Requires factories publish permission.","operationId":"Factories_SetFactoryVisibility","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSetFactoryVisibilityResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactoriesSetFactoryVisibilityBody"}}},"required":true},"tags":["Factory"]}},"/api/v1/groups":{"get":{"summary":"List groups","description":"Returns a list of groups within a domain","operationId":"Groups_ListGroups","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsListGroupsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Groups"]},"post":{"summary":"Create group","description":"Creates a new group within a domain with a specific role","operationId":"Groups_CreateGroup","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsCreateGroupResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsCreateGroupRequest"}}},"required":true},"tags":["Groups"]}},"/api/v1/groups/{groupName}":{"get":{"summary":"Get group","description":"Returns details of a specific group within a domain","operationId":"Groups_DescribeGroup","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsDescribeGroupResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"groupName","in":"path","required":true,"schema":{"type":"string"}},{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Groups"]},"delete":{"summary":"Delete group","description":"Deletes an existing group within a domain","operationId":"Groups_DeleteGroup","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsDeleteGroupResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"groupName","in":"path","required":true,"schema":{"type":"string"}},{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Groups"]},"put":{"summary":"Update group","description":"Updates an existing group within a domain","operationId":"Groups_UpdateGroup","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsUpdateGroupResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"groupName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsUpdateGroupBody"}}},"required":true},"tags":["Groups"]}},"/api/v1/groups/{groupName}/users":{"get":{"summary":"Get group users","description":"Returns users that belong to a specific group within a domain","operationId":"Groups_ListGroupUsers","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsListGroupUsersResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"groupName","in":"path","required":true,"schema":{"type":"string"}},{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Groups"]},"post":{"summary":"Add user to group","description":"Adds a user to a group within a domain","operationId":"Groups_AddUserToGroup","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsAddUserToGroupResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"groupName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsAddUserToGroupBody"}}},"required":true},"tags":["Groups"]}},"/api/v1/groups/{groupName}/users/remove":{"patch":{"summary":"Remove user from group","description":"Removes a user from a group within a domain","operationId":"Groups_RemoveUserFromGroup","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsRemoveUserFromGroupResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"groupName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsRemoveUserFromGroupBody"}}},"required":true},"tags":["Groups"]}},"/api/v1/integrations":{"get":{"summary":"List available integrations","description":"List available integrations","operationId":"Integrations_ListIntegrations","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuperplaneIntegrationsListIntegrationsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Integration"]}},"/api/v1/invitations/{token}/accept":{"post":{"operationId":"Organizations_AcceptInvitation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organizations"]}},"/api/v1/invite-links/{token}/accept":{"post":{"summary":"Accept an invite link","description":"Accepts an organization invite link for the authenticated account","operationId":"Organizations_AcceptInviteLink","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"organizationId","in":"query","required":false,"schema":{"type":"string"}},{"name":"enabled","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"createdAt","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"updatedAt","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"tags":["Organization"]}},"/api/v1/me":{"get":{"summary":"Get current user","description":"Returns the currently authenticated user","operationId":"Me_Me","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeMeResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"includePermissions","in":"query","required":false,"schema":{"type":"boolean"}}],"tags":["Me"]}},"/api/v1/me/last-location":{"get":{"summary":"Describe last location","description":"Returns the last in-app screen the calling user visited, if any was saved","operationId":"Me_DescribeLastLocation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeDescribeLastLocationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Me"]},"put":{"summary":"Save last location","description":"Saves the last in-app screen the calling user visited","operationId":"Me_SaveLastLocation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeSaveLastLocationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeSaveLastLocationRequest"}}},"required":true},"tags":["Me"]}},"/api/v1/me/notification-settings":{"get":{"summary":"Describe notification settings","description":"Returns the calling user's work order notification settings","operationId":"Me_DescribeNotificationSettings","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeDescribeNotificationSettingsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Me"]},"put":{"summary":"Update notification settings","description":"Updates the calling user's work order notification settings","operationId":"Me_UpdateNotificationSettings","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeUpdateNotificationSettingsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeUpdateNotificationSettingsRequest"}}},"required":true},"tags":["Me"]}},"/api/v1/me/token":{"post":{"summary":"Regenerate API token","description":"Regenerates the currently authencated user's API token","operationId":"Me_RegenerateToken","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeRegenerateTokenResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Me"]}},"/api/v1/me/tokens":{"get":{"summary":"List personal API tokens","description":"Returns the calling user's personal API tokens, without their secrets","operationId":"Me_ListTokens","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeListTokensResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Me"]},"post":{"summary":"Create a personal API token","description":"Creates a new named personal API token and returns its plaintext secret once","operationId":"Me_CreateToken","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeCreateTokenResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeCreateTokenRequest"}}},"required":true},"tags":["Me"]}},"/api/v1/me/tokens/{id}":{"delete":{"summary":"Revoke a personal API token","description":"Revokes a personal API token without affecting the caller's other tokens","operationId":"Me_RevokeToken","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeRevokeTokenResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Me"]}},"/api/v1/me/vcs/{provider}/identity":{"put":{"summary":"Select a VCS provider identity","description":"Selects the linked identity that supplies repositories during onboarding","operationId":"Me_SelectVCSProviderOnboardingIdentity","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeSelectVCSProviderOnboardingIdentityResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeSelectVCSProviderOnboardingIdentityBody"}}},"required":true},"tags":["Me"]}},"/api/v1/me/vcs/{provider}/installations/{installationId}:configure":{"post":{"summary":"Configure a VCS provider installation","description":"Returns the settings URL for an existing VCS provider installation","operationId":"Me_ConfigureVCSProviderInstallation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeConfigureVCSProviderInstallationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}},{"name":"installationId","in":"path","required":true,"schema":{"type":"string","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeConfigureVCSProviderInstallationBody"}}},"required":true},"tags":["Me"]}},"/api/v1/me/vcs/{provider}/installations:start":{"post":{"summary":"Start a VCS provider installation","description":"Returns the installation URL for the selected VCS provider","operationId":"Me_StartVCSProviderInstallation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeStartVCSProviderInstallationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeStartVCSProviderInstallationBody"}}},"required":true},"tags":["Me"]}},"/api/v1/me/vcs/{provider}/installations:verify":{"post":{"summary":"Verify VCS provider installations","description":"Checks with the VCS provider that the installations the user can see still exist, and removes the installations that were uninstalled","operationId":"Me_VerifyVCSProviderInstallations","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeVerifyVCSProviderInstallationsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeVerifyVCSProviderInstallationsBody"}}},"required":true},"tags":["Me"]}},"/api/v1/me/vcs/{provider}/onboarding":{"get":{"summary":"Describe VCS provider onboarding","description":"Returns linked identities, the active identity, accessible repositories, and pending installation requests for a VCS provider","operationId":"Me_DescribeVCSProviderOnboarding","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeDescribeVCSProviderOnboardingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Me"]}},"/api/v1/me/vcs/{provider}/repositories:refresh":{"post":{"summary":"Refresh VCS provider repositories","description":"Queues catalog reconciliation and collaborator synchronization for the selected VCS provider","operationId":"Me_RefreshVCSProviderOnboarding","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeRefreshVCSProviderOnboardingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeRefreshVCSProviderOnboardingBody"}}},"required":true},"tags":["Me"]}},"/api/v1/organizations/{id}":{"get":{"summary":"Get organization details","description":"Returns the details of a specific organization (can be referenced by ID or slug)","operationId":"Organizations_DescribeOrganization","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDescribeOrganizationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]},"delete":{"summary":"Delete an organization","description":"Deletes the specified organization (can be referenced by ID or name)","operationId":"Organizations_DeleteOrganization","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDeleteOrganizationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]},"patch":{"summary":"Update an organization","description":"Updates the specified organization (can be referenced by ID or slug). Set metadata.slug to change the organization's URL slug.","operationId":"Organizations_UpdateOrganization","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateOrganizationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateOrganizationBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/billing":{"get":{"summary":"Describe organization billing","description":"Returns the organization plan, trial window, and hosted-credit remaining amounts","operationId":"Organizations_DescribeOrganizationBilling","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDescribeOrganizationBillingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/billing-portal-session":{"post":{"summary":"Create billing portal session","description":"Creates a customer portal session for invoices and receipts","operationId":"Organizations_CreateBillingPortalSession","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateBillingPortalSessionResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateBillingPortalSessionBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/billing/cancel":{"post":{"summary":"Cancel organization subscription","description":"Cancels the Polar Business subscription at the end of the current period","operationId":"Organizations_CancelOrganizationSubscription","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDescribeOrganizationBillingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCancelOrganizationSubscriptionBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/billing/payment-method-session":{"post":{"summary":"Set up payment method","description":"Opens Polar payment settings without creating a charge or subscription","operationId":"Organizations_CreatePaymentMethodSession","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateBillingPortalSessionResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreatePaymentMethodSessionBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/billing/resume":{"post":{"summary":"Resume organization subscription","description":"Clears a scheduled Polar Business cancellation so the subscription renews","operationId":"Organizations_ResumeOrganizationSubscription","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDescribeOrganizationBillingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsResumeOrganizationSubscriptionBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/billing/seats/preview":{"post":{"summary":"Preview seat purchase","description":"Estimates the prorated charge for additional seats without charging or changing the subscription","operationId":"Organizations_PreviewSeatPurchase","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsPreviewSeatPurchaseResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsPreviewSeatPurchaseBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/billing/seats/purchase":{"post":{"summary":"Purchase seats","description":"Charges the prorated amount for additional seats at once. Seats are added only after the payment succeeds","operationId":"Organizations_PurchaseSeats","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsPurchaseSeatsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsPurchaseSeatsBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/billing/select-plan":{"post":{"summary":"Select billing plan","description":"Activates a plan without a base fee or starts checkout for a paid subscription","operationId":"Organizations_SelectBillingPlan","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateBusinessCheckoutResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsSelectBillingPlanBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/billing/sync":{"post":{"summary":"Sync organization billing","description":"Reads the Polar Business subscription for the organization and updates the local plan","operationId":"Organizations_SyncOrganizationBilling","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDescribeOrganizationBillingResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsSyncOrganizationBillingBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/business-checkout":{"post":{"summary":"Create Business checkout","description":"Creates a Polar checkout session for the Business subscription","operationId":"Organizations_CreateBusinessCheckout","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateBusinessCheckoutResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateBusinessCheckoutBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/byok-models":{"get":{"summary":"List BYOK LLM models","description":"Returns the organization selected-model list and candidate models from the connected provider key","operationId":"Organizations_ListBYOKLLMModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListBYOKLLMModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string"}},{"name":"factoryId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Organization"]},"put":{"summary":"Update BYOK LLM models","description":"Replaces the organization selected-model list for one BYOK provider","operationId":"Organizations_UpdateBYOKLLMModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateBYOKLLMModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateBYOKLLMModelsBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/credit-grants":{"get":{"summary":"List organization credit grants","description":"Returns hosted-credit grants for an organization, newest first","operationId":"Organizations_ListOrganizationCreditGrants","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListOrganizationCreditGrantsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/fleets":{"get":{"summary":"List organization runner fleets","description":"Returns the runner fleets that the organization can select","operationId":"Organizations_ListOrganizationRunnerFleets","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListOrganizationRunnerFleetsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/hosted-credit-checkout":{"post":{"summary":"Create hosted credit checkout","description":"Creates a checkout session for a prepaid hosted-credit pack","operationId":"Organizations_CreateHostedCreditCheckout","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateHostedCreditCheckoutResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateHostedCreditCheckoutBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/hosted-credit-checkout-quote":{"get":{"summary":"Quote hosted credit checkout","description":"Returns hosted credit, processing fee, and subtotal before tax","operationId":"Organizations_QuoteHostedCreditCheckout","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsQuoteHostedCreditCheckoutResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"productId","in":"query","required":false,"schema":{"type":"string"}},{"name":"creditAmountCents","description":"Required for custom packs. Zero uses the catalog amount for a fixed pack.","in":"query","required":false,"schema":{"type":"string","format":"int64"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/hosted-credit-products":{"get":{"summary":"List hosted credit products","description":"Returns prepaid hosted-credit packs when billing is configured","operationId":"Organizations_ListHostedCreditProducts","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListHostedCreditProductsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/hosted-llm-models":{"get":{"summary":"List hosted LLM models","description":"Returns the SuperPlane-hosted model allowlist for one provider","operationId":"Organizations_ListHostedLLMModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListHostedLLMModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string"}},{"name":"factoryId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/hosted-models":{"get":{"summary":"List organization hosted models","description":"Returns installation model candidates and the organization selection for every hosted provider","operationId":"Organizations_ListOrganizationHostedLLMModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListOrganizationHostedLLMModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]},"put":{"summary":"Update organization hosted models","description":"Replaces the organization selection for every hosted provider","operationId":"Organizations_UpdateOrganizationHostedLLMModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateOrganizationHostedLLMModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateOrganizationHostedLLMModelsBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/integrations":{"get":{"summary":"List integrations in an organization","description":"Returns a list of integrations in an organization","operationId":"Organizations_ListIntegrations","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuperplaneOrganizationsListIntegrationsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]},"post":{"summary":"Create organization integration","description":"Create an organization integration","operationId":"Organizations_CreateIntegration","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateIntegrationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateIntegrationBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/integrations/{integrationId}":{"get":{"summary":"Describe an integration in an organization","description":"Returns details of a specific integration in an organization","operationId":"Organizations_DescribeIntegration","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDescribeIntegrationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]},"delete":{"summary":"Delete organization integration","description":"Deletes an integration from an organization","operationId":"Organizations_DeleteIntegration","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDeleteIntegrationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]},"patch":{"summary":"Update integration","description":"Updates the configuration for an organization integration","operationId":"Organizations_UpdateIntegration","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateIntegrationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateIntegrationBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/integrations/{integrationId}/capabilities":{"put":{"summary":"Update integration capabilities","description":"Update integration capabilities","operationId":"Organizations_UpdateIntegrationCapabilities","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateIntegrationCapabilitiesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateIntegrationCapabilitiesBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/integrations/{integrationId}/next":{"patch":{"summary":"Submit an integration setup step and go to the next","description":"Submit an integration setup step and go to the next","operationId":"Organizations_NextIntegrationSetupStep","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsNextIntegrationSetupStepResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsNextIntegrationSetupStepBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/integrations/{integrationId}/previous":{"patch":{"summary":"Revert the current integration setup step and go to the previous","description":"Revert the current integration setup step and go to the previous","operationId":"Organizations_PreviousIntegrationSetupStep","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsPreviousIntegrationSetupStepResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsPreviousIntegrationSetupStepBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/integrations/{integrationId}/properties":{"put":{"summary":"Update integration property","description":"Update integration property","operationId":"Organizations_UpdateIntegrationProperty","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateIntegrationPropertyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateIntegrationPropertyBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/integrations/{integrationId}/resources":{"get":{"summary":"List integration resources","description":"Lists resources for an integration","operationId":"Organizations_ListIntegrationResources","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListIntegrationResourcesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"parameters","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/integrations/{integrationId}/secrets":{"put":{"summary":"Update integration secret","description":"Update integration secret","operationId":"Organizations_UpdateIntegrationSecret","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateIntegrationSecretResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateIntegrationSecretBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/invitations":{"get":{"operationId":"Organizations_ListInvitations","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListInvitationsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organizations"]},"post":{"operationId":"Organizations_CreateInvitation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateInvitationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCreateInvitationBody"}}},"required":true},"tags":["Organizations"]}},"/api/v1/organizations/{id}/invitations/{invitationId}":{"delete":{"operationId":"Organizations_CancelInvitation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsCancelInvitationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"invitationId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organizations"]}},"/api/v1/organizations/{id}/invitations/{invitationId}/resend":{"post":{"operationId":"Organizations_ResendInvitation","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsResendInvitationResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"invitationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsResendInvitationBody"}}},"required":true},"tags":["Organizations"]}},"/api/v1/organizations/{id}/invite-link":{"get":{"summary":"Get an organization invite link","description":"Returns the invite link for an organization","operationId":"Organizations_GetInviteLink","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsGetInviteLinkResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]},"patch":{"summary":"Update an organization invite link","description":"Enables or disables the invite link for an organization","operationId":"Organizations_UpdateInviteLink","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateInviteLinkResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsUpdateInviteLinkBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/invite-link/reset":{"post":{"summary":"Reset an organization invite link","description":"Generates a new invite link token for an organization","operationId":"Organizations_ResetInviteLink","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsResetInviteLinkResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/selectable-llm-models":{"get":{"summary":"List selectable LLM models","description":"Returns SuperPlane-hosted and selected BYOK models a picker may show","operationId":"Organizations_ListSelectableLLMModels","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsListSelectableLLMModelsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"factoryId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/spending-report":{"get":{"summary":"Describe organization spending report","description":"Returns aggregated spending KPIs, chart series, and breakdown rows for the organization spending explorer","operationId":"Organizations_DescribeOrganizationSpendingReport","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDescribeOrganizationSpendingReportResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"startTime","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"factoryId","in":"query","required":false,"schema":{"type":"string"}},{"name":"model","in":"query","required":false,"schema":{"type":"string"}},{"name":"machineType","in":"query","required":false,"schema":{"type":"string"}},{"name":"taskOwnerId","in":"query","required":false,"schema":{"type":"string"}},{"name":"groupBy","in":"query","required":false,"schema":{"type":"string"}},{"name":"timeGrain","in":"query","required":false,"schema":{"type":"string"}},{"name":"usageKind","in":"query","required":false,"schema":{"type":"string"}},{"name":"fundingSource","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/users/{userId}":{"delete":{"summary":"Remove a user from an organization","description":"Removes a user from an organization (can be referenced by ID or name)","operationId":"Organizations_RemoveUser","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsRemoveUserResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Organization"]}},"/api/v1/organizations/{id}/users/{userId}/owner":{"patch":{"summary":"Set organization owner flag","description":"Sets or clears the owner flag for a member. The organization must keep at least one owner.","operationId":"Organizations_SetUserOwner","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsSetUserOwnerResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsSetUserOwnerBody"}}},"required":true},"tags":["Organization"]}},"/api/v1/organizations/{id}/workspace-usage":{"get":{"summary":"Describe organization workspace usage","description":"Returns token, VM seconds, and estimated dollar spend for factory runs, grouped by model and machine type","operationId":"Organizations_DescribeOrganizationWorkspaceUsage","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsDescribeOrganizationWorkspaceUsageResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"periodDays","description":"Period window in days. Defaults to 30. Maximum is 90.","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"tags":["Organization"]}},"/api/v1/roles":{"get":{"summary":"List roles","description":"Returns available roles for a specific domain type with their permissions and inheritance","operationId":"Roles_ListRoles","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesListRolesResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Roles"]},"post":{"summary":"Create role","description":"Creates a new custom role with specified permissions","operationId":"Roles_CreateRole","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesCreateRoleResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesCreateRoleRequest"}}},"required":true},"tags":["Roles"]}},"/api/v1/roles/{roleName}":{"get":{"summary":"Describe role","description":"Returns detailed information about a specific role including permissions and inheritance","operationId":"Roles_DescribeRole","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesDescribeRoleResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"roleName","in":"path","required":true,"schema":{"type":"string"}},{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Roles"]},"delete":{"summary":"Delete role","description":"Deletes an existing custom role","operationId":"Roles_DeleteRole","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesDeleteRoleResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"roleName","in":"path","required":true,"schema":{"type":"string"}},{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Roles"]},"put":{"summary":"Update role","description":"Updates an existing custom role with new permissions","operationId":"Roles_UpdateRole","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesUpdateRoleResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"roleName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesUpdateRoleBody"}}},"required":true},"tags":["Roles"]}},"/api/v1/roles/{roleName}/users":{"post":{"summary":"Assign role","description":"Assigns a role to a user within a domain","operationId":"Roles_AssignRole","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesAssignRoleResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"roleName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesAssignRoleBody"}}},"required":true},"tags":["Roles"]}},"/api/v1/secrets":{"get":{"summary":"List secrets","description":"Returns the list of secrets","operationId":"Secrets_ListSecrets","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsListSecretsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Secret"]},"post":{"summary":"Create a new secret","description":"Creates a new secret","operationId":"Secrets_CreateSecret","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsCreateSecretResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsCreateSecretRequest"}}},"required":true},"tags":["Secret"]}},"/api/v1/secrets/{idOrName}":{"get":{"summary":"Get secret details","description":"Returns the details of a specific secret","operationId":"Secrets_DescribeSecret","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsDescribeSecretResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"idOrName","in":"path","required":true,"schema":{"type":"string"}},{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Secret"]},"delete":{"summary":"Deletes a secret","description":"Deletes the specified secret","operationId":"Secrets_DeleteSecret","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsDeleteSecretResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"idOrName","in":"path","required":true,"schema":{"type":"string"}},{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Secret"]},"patch":{"summary":"Updates a secret","description":"Updates the specified secret","operationId":"Secrets_UpdateSecret","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsUpdateSecretResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"idOrName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsUpdateSecretBody"}}},"required":true},"tags":["Secret"]}},"/api/v1/secrets/{idOrName}/keys/{keyName}":{"delete":{"summary":"Remove a key from a secret","description":"Removes one key from the secret. Secret must have at least one key remaining.","operationId":"Secrets_DeleteSecretKey","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsDeleteSecretKeyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"idOrName","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyName","in":"path","required":true,"schema":{"type":"string"}},{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}}],"tags":["Secret"]},"put":{"summary":"Set or overwrite a single key in a secret","description":"Sets the value for one key. Creates the key if missing, overwrites if present.","operationId":"Secrets_SetSecretKey","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsSetSecretKeyResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"idOrName","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsSetSecretKeyBody"}}},"required":true},"tags":["Secret"]}},"/api/v1/secrets/{idOrName}/name":{"patch":{"summary":"Update secret name","description":"Updates only the name of the secret. Name must be unique within the domain.","operationId":"Secrets_UpdateSecretName","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsUpdateSecretNameResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"idOrName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretsUpdateSecretNameBody"}}},"required":true},"tags":["Secret"]}},"/api/v1/triggers":{"get":{"summary":"List triggers","description":"Returns a list of all available triggers","operationId":"Triggers_ListTriggers","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggersListTriggersResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Trigger"]}},"/api/v1/triggers/{name}":{"get":{"summary":"Describe trigger","description":"Returns a trigger by its name","operationId":"Triggers_DescribeTrigger","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggersDescribeTriggerResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Trigger"]}},"/api/v1/users":{"get":{"summary":"List users","description":"Returns all users that have roles within a domain","operationId":"Users_ListUsers","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersListUsersResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"domainType","in":"query","required":false,"schema":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED"}},{"name":"domainId","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeRoles","in":"query","required":false,"schema":{"type":"boolean"}}],"tags":["Users"]}},"/api/v1/widgets":{"get":{"summary":"List widgets","description":"Returns a list of all available widgets","operationId":"Widgets_ListWidgets","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetsListWidgetsResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"tags":["Widget"]}},"/api/v1/widgets/{name}":{"get":{"summary":"Describe widget","description":"Returns a widget by its name","operationId":"Widgets_DescribeWidget","responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetsDescribeWidgetResponse"}}}},"default":{"description":"An unexpected error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/googleRpcStatus"}}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"tags":["Widget"]}}},"components":{"schemas":{"ActionsAction":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"configuration":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationField"}},"outputChannels":{"type":"array","items":{"$ref":"#/components/schemas/ActionsOutputChannel"}},"icon":{"type":"string"},"color":{"type":"string"},"exampleOutput":{"type":"object"}}},"ActionsDescribeActionResponse":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/ActionsAction"}}},"ActionsListActionsResponse":{"type":"object","properties":{"actions":{"type":"array","items":{"$ref":"#/components/schemas/ActionsAction"}}}},"ActionsOutputChannel":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}}},"AgentsAgentChatImage":{"type":"object","properties":{"mediaType":{"$ref":"#/components/schemas/AgentsAgentChatImageMediaType"},"data":{"type":"string","format":"byte"}}},"AgentsAgentChatImageMediaType":{"type":"string","enum":["MEDIA_TYPE_UNSPECIFIED","MEDIA_TYPE_PNG","MEDIA_TYPE_JPEG","MEDIA_TYPE_GIF","MEDIA_TYPE_WEBP"],"default":"MEDIA_TYPE_UNSPECIFIED"},"AgentsAgentChatInfo":{"type":"object","properties":{"id":{"type":"string"},"canvasId":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"AgentsAgentChatMessage":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"content":{"type":"string"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"toolStatus":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"images":{"type":"array","items":{"$ref":"#/components/schemas/AgentsAgentChatImage"}}}},"AgentsAgentMode":{"type":"string","enum":["MODE_UNSPECIFIED","MODE_BUILDER","MODE_OPERATOR","MODE_ARCHITECT"],"default":"MODE_UNSPECIFIED"},"AgentsDefineAgentOutcomeBody":{"type":"object","properties":{"description":{"type":"string"},"rubric":{"type":"string"},"maxIterations":{"type":"integer","format":"int32"}}},"AgentsDefineAgentOutcomeResponse":{"type":"object"},"AgentsGetCanvasAgentChatResponse":{"type":"object","properties":{"chat":{"$ref":"#/components/schemas/AgentsAgentChatInfo"}}},"AgentsInterruptAgentChatResponse":{"type":"object"},"AgentsListAgentChatMessagesResponse":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/AgentsAgentChatMessage"}},"hasMore":{"type":"boolean"}}},"AgentsResetCanvasAgentChatResponse":{"type":"object","properties":{"chat":{"$ref":"#/components/schemas/AgentsAgentChatInfo"}}},"AgentsSendAgentChatMessageBody":{"type":"object","properties":{"content":{"type":"string"},"mode":{"$ref":"#/components/schemas/AgentsAgentMode"},"images":{"type":"array","items":{"$ref":"#/components/schemas/AgentsAgentChatImage"}},"autoLayoutOnUpdateEnabled":{"type":"boolean"}}},"AgentsSendAgentChatMessageResponse":{"type":"object","properties":{"message":{"$ref":"#/components/schemas/AgentsAgentChatMessage"}}},"ApiKeysAPIKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"type":"string"},"hasToken":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdByName":{"type":"string"},"createdByEmail":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"canvasIds":{"type":"array","items":{"type":"string"}}}},"ApiKeysCreateAPIKeyRequest":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"role":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"canvasIds":{"type":"array","items":{"type":"string"}}}},"ApiKeysCreateAPIKeyResponse":{"type":"object","properties":{"apiKey":{"$ref":"#/components/schemas/ApiKeysAPIKey"},"token":{"type":"string"}}},"ApiKeysDeleteAPIKeyResponse":{"type":"object"},"ApiKeysDescribeAPIKeyResponse":{"type":"object","properties":{"apiKey":{"$ref":"#/components/schemas/ApiKeysAPIKey"}}},"ApiKeysListAPIKeysResponse":{"type":"object","properties":{"apiKeys":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeysAPIKey"}}}},"ApiKeysRegenerateAPIKeyTokenBody":{"type":"object"},"ApiKeysRegenerateAPIKeyTokenResponse":{"type":"object","properties":{"token":{"type":"string"}}},"ApiKeysUpdateAPIKeyBody":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"canvasIds":{"type":"array","items":{"type":"string"}},"clearExpiresAt":{"type":"boolean"}}},"ApiKeysUpdateAPIKeyResponse":{"type":"object","properties":{"apiKey":{"$ref":"#/components/schemas/ApiKeysAPIKey"}}},"AuthorizationDomainType":{"type":"string","enum":["DOMAIN_TYPE_UNSPECIFIED","DOMAIN_TYPE_ORGANIZATION"],"default":"DOMAIN_TYPE_UNSPECIFIED","title":"Enums"},"AuthorizationPermission":{"type":"object","properties":{"resource":{"type":"string"},"action":{"type":"string"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"}},"title":"Common data structures"},"CanvasNodeExecutionResultReason":{"type":"string","enum":["RESULT_REASON_OK","RESULT_REASON_ERROR","RESULT_REASON_ERROR_RESOLVED"],"default":"RESULT_REASON_OK"},"CanvasesCancelExecutionBody":{"type":"object"},"CanvasesCancelExecutionResponse":{"type":"object"},"CanvasesCancelRunBody":{"type":"object"},"CanvasesCancelRunResponse":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/CanvasesCanvasRun"}}},"CanvasesCanvas":{"type":"object","properties":{"metadata":{"$ref":"#/components/schemas/CanvasesCanvasMetadata"},"spec":{"$ref":"#/components/schemas/CanvasesCanvasSpec"},"status":{"$ref":"#/components/schemas/CanvasesCanvasStatus"}}},"CanvasesCanvasEvent":{"type":"object","properties":{"id":{"type":"string"},"canvasId":{"type":"string"},"nodeId":{"type":"string"},"channel":{"type":"string"},"customName":{"type":"string"},"data":{"type":"object"},"createdAt":{"type":"string","format":"date-time"},"root":{"type":"boolean"},"runId":{"type":"string"}}},"CanvasesCanvasMemory":{"type":"object","properties":{"id":{"type":"string"},"namespace":{"type":"string"},"values":{},"source":{"$ref":"#/components/schemas/CanvasesCanvasMemorySource"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"CanvasesCanvasMemorySource":{"type":"string","enum":["SOURCE_UNKNOWN","SOURCE_NODE","SOURCE_MANUAL"],"default":"SOURCE_UNKNOWN"},"CanvasesCanvasMetadata":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"$ref":"#/components/schemas/SuperplaneCanvasesUserRef"},"liveVersionId":{"type":"string"},"dismissedAgentSuggestionIds":{"type":"array","items":{"type":"string"}},"factoryId":{"type":"string"}}},"CanvasesCanvasNodeExecution":{"type":"object","properties":{"id":{"type":"string"},"canvasId":{"type":"string"},"nodeId":{"type":"string"},"previousExecutionId":{"type":"string"},"state":{"$ref":"#/components/schemas/CanvasesCanvasNodeExecutionState"},"result":{"$ref":"#/components/schemas/CanvasesCanvasNodeExecutionResult"},"resultReason":{"$ref":"#/components/schemas/CanvasNodeExecutionResultReason"},"resultMessage":{"type":"string"},"outputs":{"type":"object"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"metadata":{"type":"object"},"configuration":{"type":"object"},"rootEvent":{"$ref":"#/components/schemas/CanvasesCanvasEvent"},"cancelledBy":{"$ref":"#/components/schemas/SuperplaneCanvasesUserRef"},"runId":{"type":"string"},"cancelledAt":{"type":"string","format":"date-time"}},"description":"Full description of a canvas node execution.\nShould only be used for endpoints specific to executions."},"CanvasesCanvasNodeExecutionRef":{"type":"object","properties":{"id":{"type":"string"},"nodeId":{"type":"string"},"state":{"$ref":"#/components/schemas/CanvasesCanvasNodeExecutionState"},"result":{"$ref":"#/components/schemas/CanvasesCanvasNodeExecutionResult"},"resultReason":{"$ref":"#/components/schemas/CanvasNodeExecutionResultReason"},"resultMessage":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"runs":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasRunRef"}},"outputChannels":{"type":"array","items":{"type":"string"},"description":"Recorded output channels only; payloads remain on execution detail endpoints."},"componentName":{"type":"string","description":"Historical component identity. Do not use the current canvas to interpret old runs."},"existingTaskId":{"type":"string","description":"Task identified by a recorded duplicate-task decision, not inferred from source identity."}},"description":"More succint description of a canvas node execution.\nNo input, outputs, or root event.\nUsed to embed execution information into other messages."},"CanvasesCanvasNodeExecutionResult":{"type":"string","enum":["RESULT_UNKNOWN","RESULT_PASSED","RESULT_FAILED","RESULT_CANCELLED"],"default":"RESULT_UNKNOWN"},"CanvasesCanvasNodeExecutionState":{"type":"string","enum":["STATE_UNKNOWN","STATE_PENDING","STATE_STARTED","STATE_FINISHED","STATE_CANCELLING"],"default":"STATE_UNKNOWN"},"CanvasesCanvasNodeQueueItem":{"type":"object","properties":{"id":{"type":"string"},"canvasId":{"type":"string"},"nodeId":{"type":"string"},"input":{"type":"object"},"rootEvent":{"$ref":"#/components/schemas/CanvasesCanvasEvent"},"createdAt":{"type":"string","format":"date-time"}}},"CanvasesCanvasPreference":{"type":"object","properties":{"canvasId":{"type":"string"},"starred":{"type":"boolean"},"starredAt":{"type":"string","format":"date-time"}}},"CanvasesCanvasRepositoryFileOperation":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string","format":"byte"},"delete":{"type":"boolean"}}},"CanvasesCanvasRun":{"type":"object","properties":{"id":{"type":"string"},"canvasId":{"type":"string"},"rootEvent":{"$ref":"#/components/schemas/CanvasesCanvasEvent"},"state":{"$ref":"#/components/schemas/CanvasesCanvasRunState"},"result":{"$ref":"#/components/schemas/CanvasesCanvasRunResult"},"executions":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasNodeExecutionRef"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"versionId":{"type":"string"},"queueItems":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasNodeQueueItem"}},"cancelledAt":{"type":"string","format":"date-time"},"parent":{"$ref":"#/components/schemas/CanvasesCanvasRunRef"},"errors":{"type":"array","items":{"type":"string"}},"cancelledBy":{"$ref":"#/components/schemas/SuperplaneCanvasesUserRef"},"totalTokens":{"type":"string","format":"int64","description":"Ledger totals for this run tree. UI hides zero values."},"costCents":{"type":"string","format":"int64"},"models":{"type":"array","items":{"type":"string"},"description":"Models that recorded spend on this run tree."},"task":{"$ref":"#/components/schemas/CanvasesCanvasRunTask"}}},"CanvasesCanvasRunRef":{"type":"object","properties":{"id":{"type":"string"},"canvasId":{"type":"string"},"state":{"$ref":"#/components/schemas/CanvasesCanvasRunState"},"result":{"$ref":"#/components/schemas/CanvasesCanvasRunResult"},"errors":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"description":{"type":"string"}}},"CanvasesCanvasRunResult":{"type":"string","enum":["RESULT_UNKNOWN","RESULT_PASSED","RESULT_FAILED","RESULT_CANCELLED"],"default":"RESULT_UNKNOWN"},"CanvasesCanvasRunState":{"type":"string","enum":["STATE_UNKNOWN","STATE_PENDING","STATE_STARTED","STATE_CANCELLING","STATE_FINISHED"],"default":"STATE_UNKNOWN"},"CanvasesCanvasRunTask":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"}}},"CanvasesCanvasSpec":{"type":"object","properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneComponentsNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/ComponentsEdge"}}}},"CanvasesCanvasStatus":{"type":"object","properties":{"lastExecutions":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasNodeExecution"}},"lastEvents":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasEvent"}}}},"CanvasesCanvasSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"$ref":"#/components/schemas/SuperplaneCanvasesUserRef"},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasSummaryNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/ComponentsEdge"}},"starred":{"type":"boolean"},"starredAt":{"type":"string","format":"date-time"},"factoryId":{"type":"string"}}},"CanvasesCanvasSummaryNode":{"type":"object","properties":{"id":{"type":"string"},"position":{"$ref":"#/components/schemas/ComponentsPosition"}}},"CanvasesCanvasVersion":{"type":"object","properties":{"metadata":{"$ref":"#/components/schemas/CanvasesCanvasVersionMetadata"},"spec":{"$ref":"#/components/schemas/CanvasesCanvasSpec"}}},"CanvasesCanvasVersionMetadata":{"type":"object","properties":{"id":{"type":"string"},"canvasId":{"type":"string"},"owner":{"$ref":"#/components/schemas/SuperplaneCanvasesUserRef"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"commitMessage":{"type":"string"}}},"CanvasesCommitCanvasStagingBody":{"type":"object","properties":{"commitMessage":{"type":"string"}}},"CanvasesCommitCanvasStagingResponse":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/CanvasesCanvasVersion"},"stagingSummary":{"$ref":"#/components/schemas/CanvasesStagingSummary"}}},"CanvasesCreateCanvasMemoryNamespaceBody":{"type":"object","properties":{"namespace":{"type":"string"},"entries":{"type":"array","items":{}}}},"CanvasesCreateCanvasMemoryNamespaceResponse":{"type":"object","properties":{"namespace":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasMemory"}}}},"CanvasesCreateCanvasRequest":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"factoryId":{"type":"string"}}},"CanvasesCreateCanvasResponse":{"type":"object","properties":{"canvas":{"$ref":"#/components/schemas/CanvasesCanvas"}}},"CanvasesDeleteCanvasMemoryResponse":{"type":"object"},"CanvasesDeleteCanvasResponse":{"type":"object"},"CanvasesDeleteCanvasStagingResponse":{"type":"object","properties":{"stagingSummary":{"$ref":"#/components/schemas/CanvasesStagingSummary"}}},"CanvasesDeleteNodeQueueItemResponse":{"type":"object"},"CanvasesDescribeCanvasResponse":{"type":"object","properties":{"canvas":{"$ref":"#/components/schemas/CanvasesCanvas"}}},"CanvasesDescribeCanvasVersionResponse":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/CanvasesCanvasVersion"}}},"CanvasesDescribeRunResponse":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/CanvasesCanvasRun"}}},"CanvasesGetCanvasStagingResponse":{"type":"object","properties":{"stagingSummary":{"$ref":"#/components/schemas/CanvasesStagingSummary"}}},"CanvasesInvokeNodeExecutionHookBody":{"type":"object","properties":{"parameters":{"type":"object"}}},"CanvasesInvokeNodeExecutionHookResponse":{"type":"object"},"CanvasesInvokeNodeTriggerHookBody":{"type":"object","properties":{"parameters":{"type":"object"}}},"CanvasesInvokeNodeTriggerHookResponse":{"type":"object","properties":{"result":{"type":"object"}}},"CanvasesListCanvasMemoriesResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasMemory"}}}},"CanvasesListCanvasVersionsResponse":{"type":"object","properties":{"versions":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasVersionMetadata"}},"totalCount":{"type":"integer","format":"int64"},"hasNextPage":{"type":"boolean"},"lastTimestamp":{"type":"string","format":"date-time"}}},"CanvasesListCanvasesResponse":{"type":"object","properties":{"canvases":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasSummary"}}}},"CanvasesListEventExecutionsResponse":{"type":"object","properties":{"executions":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasNodeExecution"}}}},"CanvasesListNodeEventsResponse":{"type":"object","properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasEvent"}},"totalCount":{"type":"integer","format":"int64"},"hasNextPage":{"type":"boolean"},"lastTimestamp":{"type":"string","format":"date-time"}}},"CanvasesListNodeExecutionsResponse":{"type":"object","properties":{"executions":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasNodeExecution"}},"totalCount":{"type":"integer","format":"int64"},"hasNextPage":{"type":"boolean"},"lastTimestamp":{"type":"string","format":"date-time"}}},"CanvasesListNodeQueueItemsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasNodeQueueItem"}},"totalCount":{"type":"integer","format":"int64"},"hasNextPage":{"type":"boolean"},"lastTimestamp":{"type":"string","format":"date-time"}}},"CanvasesListRunsResponse":{"type":"object","properties":{"runs":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasRun"}},"totalCount":{"type":"integer","format":"int64"},"hasNextPage":{"type":"boolean"},"lastTimestamp":{"type":"string","format":"date-time"}}},"CanvasesPutCanvasStagingBody":{"type":"object","properties":{"operations":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasRepositoryFileOperation"}},"replaceIfStale":{"type":"boolean","description":"Replaces staged files only when they still use an older live version.\nA current draft is left unchanged."},"expectedCanvasYaml":{"type":"string","format":"byte","description":"When set, rejects the update if canvas.yaml no longer matches this value.\nAn empty value does not check content."}}},"CanvasesPutCanvasStagingResponse":{"type":"object","properties":{"stagingSummary":{"$ref":"#/components/schemas/CanvasesStagingSummary"}}},"CanvasesReemitTriggerEventResponse":{"type":"object","properties":{"eventId":{"type":"string"}}},"CanvasesResolveExecutionErrorsBody":{"type":"object","properties":{"executionIds":{"type":"array","items":{"type":"string"}}}},"CanvasesResolveExecutionErrorsResponse":{"type":"object"},"CanvasesStagingSummary":{"type":"object","properties":{"hasStaging":{"type":"boolean"},"baseVersionId":{"type":"string"},"stagedPaths":{"type":"array","items":{"type":"string"}},"stale":{"type":"boolean"}},"description":"StagingSummary reports the uncommitted spec edits held in workflow_staged_files for the current user."},"CanvasesUpdateCanvasBody":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"dismissAgentSuggestionId":{"type":"string","description":"When set, appends this id to the canvas's dismissed Agent suggestion ids."}}},"CanvasesUpdateCanvasMemoryNamespaceBody":{"type":"object","properties":{"newNamespace":{"type":"string"},"entries":{"type":"array","items":{}}}},"CanvasesUpdateCanvasMemoryNamespaceResponse":{"type":"object","properties":{"namespace":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CanvasesCanvasMemory"}}}},"CanvasesUpdateCanvasPreferenceBody":{"type":"object","properties":{"starred":{"type":"boolean"}}},"CanvasesUpdateCanvasPreferenceResponse":{"type":"object","properties":{"preference":{"$ref":"#/components/schemas/CanvasesCanvasPreference"}}},"CanvasesUpdateCanvasResponse":{"type":"object","properties":{"canvas":{"$ref":"#/components/schemas/CanvasesCanvas"}}},"ComponentsConcurrencySpec":{"type":"object","properties":{"key":{"type":"string","title":"template: :2: missing value for command"},"max":{"type":"integer","format":"int32","description":"Maximum number of concurrent executions per key value. Absent\nmeans 1. Must be 1 or greater when set."}},"description":"ConcurrencySpec is a node's inline concurrency configuration."},"ComponentsEdge":{"type":"object","properties":{"sourceId":{"type":"string"},"targetId":{"type":"string"},"channel":{"type":"string"}}},"ComponentsIntegrationRef":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"ComponentsNodeType":{"type":"string","enum":["TYPE_ACTION","TYPE_TRIGGER","TYPE_WIDGET"],"default":"TYPE_ACTION"},"ComponentsPosition":{"type":"object","properties":{"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"}}},"ConfigurationAnyPredicateListTypeOptions":{"type":"object","properties":{"operators":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationSelectOption"}}}},"ConfigurationAppCanvasNodeTypeOptions":{"type":"object","properties":{"nodeTypes":{"type":"array","items":{"type":"string"}},"componentTypes":{"type":"array","items":{"type":"string"}},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationParameterRef"}}}},"ConfigurationAppTypeOptions":{"type":"object","properties":{"allowSelf":{"type":"boolean"}}},"ConfigurationDateTimeTypeOptions":{"type":"object","properties":{"format":{"type":"string"}}},"ConfigurationDateTypeOptions":{"type":"object","properties":{"format":{"type":"string"}}},"ConfigurationExpressionTypeOptions":{"type":"object","properties":{"minLength":{"type":"integer","format":"int32"},"maxLength":{"type":"integer","format":"int32"}}},"ConfigurationField":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"description":{"type":"string"},"required":{"type":"boolean"},"defaultValue":{"type":"string"},"label":{"type":"string"},"visibilityConditions":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationVisibilityCondition"}},"typeOptions":{"$ref":"#/components/schemas/ConfigurationTypeOptions"},"requiredConditions":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationRequiredCondition"}},"placeholder":{"type":"string"},"sensitive":{"type":"boolean"},"togglable":{"type":"boolean"}}},"ConfigurationHostedModelTypeOptions":{"type":"object","properties":{"provider":{"type":"string"}}},"ConfigurationIntegrationTypeOptions":{"type":"object","properties":{"integration":{"type":"string"}}},"ConfigurationListItemDefinition":{"type":"object","properties":{"type":{"type":"string"},"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationField"}}}},"ConfigurationListTypeOptions":{"type":"object","properties":{"itemDefinition":{"$ref":"#/components/schemas/ConfigurationListItemDefinition"},"itemLabel":{"type":"string"},"maxItems":{"type":"integer","format":"int32"},"accordion":{"type":"boolean"},"reorderable":{"type":"boolean"}}},"ConfigurationMultiSelectTypeOptions":{"type":"object","properties":{"options":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationSelectOption"}},"useCheckboxes":{"type":"boolean"}}},"ConfigurationNumberTypeOptions":{"type":"object","properties":{"min":{"type":"integer","format":"int32"},"max":{"type":"integer","format":"int32"}}},"ConfigurationObjectTypeOptions":{"type":"object","properties":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationField"}}}},"ConfigurationParameterRef":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"valueFrom":{"$ref":"#/components/schemas/ConfigurationParameterValueFrom"}}},"ConfigurationParameterValueFrom":{"type":"object","properties":{"field":{"type":"string"}}},"ConfigurationRequiredCondition":{"type":"object","properties":{"field":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}}},"ConfigurationResourceTypeOptions":{"type":"object","properties":{"type":{"type":"string"},"useNameAsValue":{"type":"boolean"},"multi":{"type":"boolean"},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationParameterRef"}}}},"ConfigurationSelectOption":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"}}},"ConfigurationSelectTypeOptions":{"type":"object","properties":{"options":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationSelectOption"}}}},"ConfigurationStringTypeOptions":{"type":"object","properties":{"minLength":{"type":"integer","format":"int32"},"maxLength":{"type":"integer","format":"int32"},"allowExpressions":{"type":"boolean"}}},"ConfigurationTextTypeOptions":{"type":"object","properties":{"minLength":{"type":"integer","format":"int32"},"maxLength":{"type":"integer","format":"int32"},"language":{"type":"string"},"allowExpressions":{"type":"boolean"}}},"ConfigurationTimeTypeOptions":{"type":"object","properties":{"format":{"type":"string"}}},"ConfigurationTypeOptions":{"type":"object","properties":{"number":{"$ref":"#/components/schemas/ConfigurationNumberTypeOptions"},"select":{"$ref":"#/components/schemas/ConfigurationSelectTypeOptions"},"multiSelect":{"$ref":"#/components/schemas/ConfigurationMultiSelectTypeOptions"},"list":{"$ref":"#/components/schemas/ConfigurationListTypeOptions"},"object":{"$ref":"#/components/schemas/ConfigurationObjectTypeOptions"},"resource":{"$ref":"#/components/schemas/ConfigurationResourceTypeOptions"},"time":{"$ref":"#/components/schemas/ConfigurationTimeTypeOptions"},"date":{"$ref":"#/components/schemas/ConfigurationDateTypeOptions"},"datetime":{"$ref":"#/components/schemas/ConfigurationDateTimeTypeOptions"},"anyPredicateList":{"$ref":"#/components/schemas/ConfigurationAnyPredicateListTypeOptions"},"string":{"$ref":"#/components/schemas/ConfigurationStringTypeOptions"},"expression":{"$ref":"#/components/schemas/ConfigurationExpressionTypeOptions"},"text":{"$ref":"#/components/schemas/ConfigurationTextTypeOptions"},"appCanvasNode":{"$ref":"#/components/schemas/ConfigurationAppCanvasNodeTypeOptions"},"app":{"$ref":"#/components/schemas/ConfigurationAppTypeOptions"},"integration":{"$ref":"#/components/schemas/ConfigurationIntegrationTypeOptions"},"hostedModel":{"$ref":"#/components/schemas/ConfigurationHostedModelTypeOptions"}}},"ConfigurationVisibilityCondition":{"type":"object","properties":{"field":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}}},"DescribeFactoryVelocityRequestPeopleSort":{"type":"string","enum":["PEOPLE_SORT_UNSPECIFIED","PEOPLE_SORT_TOTAL","PEOPLE_SORT_FACTORY_MERGED","PEOPLE_SORT_AUTHORED_MERGED","PEOPLE_SORT_MEDIAN_CYCLE_HOURS","PEOPLE_SORT_COST_USD","PEOPLE_SORT_FACTORY_WASTE"],"default":"PEOPLE_SORT_UNSPECIFIED","description":"How the People table is ordered. Values name the column the table sorts\non; the UI's sort keys map to these one-to-one.\n\n - PEOPLE_SORT_UNSPECIFIED: Same as PEOPLE_SORT_TOTAL.\n - PEOPLE_SORT_TOTAL: authored_merged + factory_merged.\n - PEOPLE_SORT_COST_USD: Sorts on cost_cents.\n - PEOPLE_SORT_FACTORY_WASTE: SuperPlane tasks this person opened that closed without a merge."},"DescribeFactoryVelocityRequestSortDirection":{"type":"string","enum":["SORT_DIRECTION_UNSPECIFIED","SORT_DIRECTION_ASC","SORT_DIRECTION_DESC"],"default":"SORT_DIRECTION_UNSPECIFIED","description":" - SORT_DIRECTION_UNSPECIFIED: Same as SORT_DIRECTION_DESC."},"FactoriesAddWorkOrderCommentBody":{"type":"object","properties":{"body":{"type":"string"},"mentionedUserIds":{"type":"array","items":{"type":"string"}}}},"FactoriesAddWorkOrderCommentResponse":{"type":"object","properties":{"comment":{"$ref":"#/components/schemas/FactoriesWorkOrderComment"}}},"FactoriesAnswerPlanningSessionSurveyBody":{"type":"object","properties":{"text":{"type":"string"}}},"FactoriesAnswerPlanningSessionSurveyResponse":{"type":"object","properties":{"session":{"$ref":"#/components/schemas/FactoriesPlanningSession"}}},"FactoriesAutomationRef":{"type":"object","properties":{"nodeId":{"type":"string"},"nodeName":{"type":"string"},"appId":{"type":"string"},"appName":{"type":"string"}}},"FactoriesCloseWorkOrderBody":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/FactoriesWorkOrderResult"}}},"FactoriesCloseWorkOrderResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesContinueFactoryPullRequestFixesBody":{"type":"object","properties":{"runId":{"type":"string","description":"Run of the paused activity that reached the attempt limit."}}},"FactoriesContinueFactoryPullRequestFixesResponse":{"type":"object","properties":{"eventId":{"type":"string","description":"Root event that restarts the checks automation."}}},"FactoriesCreateFactoryAgentResourceBody":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/FactoriesFactoryAgentResourceKind"},"name":{"type":"string"},"enabled":{"type":"boolean"},"url":{"type":"string"},"auth":{"$ref":"#/components/schemas/FactoryAgentResourceAuth"},"headers":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryAgentResourceHeader"}},"markdown":{"type":"string"},"repository":{"type":"string"},"commands":{"type":"array","items":{"type":"string"}},"vcsProvider":{"type":"string"}}},"FactoriesCreateFactoryAgentResourceResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/FactoriesFactoryAgentResource"}}},"FactoriesCreateFactoryAutomationBody":{"type":"object","properties":{"name":{"type":"string","description":"Defaults to \"Custom automation\" when empty."},"columnKey":{"type":"string","description":"Attach the canvas to Verify or Done. Empty leaves it off the board."},"templateId":{"type":"string","description":"Optional bundled template. Currently supports scheduled-intake."},"installParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Template configuration: type, hour, minute, timezone (UTC offset), cronExpression, and prompt."}}},"FactoriesCreateFactoryAutomationResponse":{"type":"object","properties":{"automation":{"$ref":"#/components/schemas/FactoryAutomation"}}},"FactoriesCreateFactoryIntakeBody":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/FactoriesFactoryIntakeSource"},"name":{"type":"string","description":"Defaults to a name derived from the source when empty."},"confidencePct":{"type":"integer","format":"int32"},"integrationId":{"type":"string","description":"Optional integration and source resource selected during guided setup."},"resourceId":{"type":"string"},"skipInitialImport":{"type":"boolean","description":"When true, SuperPlane does not import existing issues. The intake still\nlistens for new issues."},"settings":{"$ref":"#/components/schemas/FactoriesFactoryIntakeSettings"}}},"FactoriesCreateFactoryIntakeResponse":{"type":"object","properties":{"intake":{"$ref":"#/components/schemas/FactoriesFactoryIntake"}}},"FactoriesCreateFactoryLineBody":{"type":"object","properties":{"name":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/FactoryLineStep"}}}},"FactoriesCreateFactoryLineResponse":{"type":"object","properties":{"line":{"$ref":"#/components/schemas/FactoriesFactoryLine"}}},"FactoriesCreateFactoryPRFeedbackHandlerBody":{"type":"object","properties":{"name":{"type":"string"},"subject":{"$ref":"#/components/schemas/FactoryPRFeedbackHandlerSubject"},"source":{"$ref":"#/components/schemas/FactoriesFactoryPRFeedbackHandlerSource"},"settings":{"$ref":"#/components/schemas/FactoriesFactoryPRFeedbackHandlerSettings"}}},"FactoriesCreateFactoryPRFeedbackHandlerResponse":{"type":"object","properties":{"handler":{"$ref":"#/components/schemas/FactoriesFactoryPRFeedbackHandler"}}},"FactoriesCreateFactoryPullRequestBody":{"type":"object","properties":{"workOrderId":{"type":"string"},"provider":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestProvider"},"externalId":{"type":"string"},"repository":{"type":"string"},"number":{"type":"string","format":"int64"},"url":{"type":"string"},"title":{"type":"string"},"state":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestState"},"mergedAt":{"type":"string","format":"date-time"},"closedAt":{"type":"string","format":"date-time"}}},"FactoriesCreateFactoryPullRequestResponse":{"type":"object","properties":{"pullRequest":{"$ref":"#/components/schemas/FactoriesFactoryPullRequest"}}},"FactoriesCreateFactoryRequest":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"key":{"type":"string","description":"Workspace key. 2 to 5 uppercase letters, unique per organization.\nUsed with the sequence number to render identifiers such as `SP-1`."}}},"FactoriesCreateFactoryResponse":{"type":"object","properties":{"factory":{"$ref":"#/components/schemas/FactoriesFactory"}}},"FactoriesCreateWorkOrderArtifactBody":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/FactoriesWorkOrderArtifactType"},"data":{"type":"object"}}},"FactoriesCreateWorkOrderArtifactResponse":{"type":"object","properties":{"artifact":{"$ref":"#/components/schemas/FactoriesWorkOrderArtifact"}}},"FactoriesCreateWorkOrderBody":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"assigneeIds":{"type":"array","items":{"type":"string"}},"model":{"type":"string"}}},"FactoriesCreateWorkOrderResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesDeleteFactoryAgentResourceResponse":{"type":"object"},"FactoriesDeleteFactoryAutomationResponse":{"type":"object"},"FactoriesDeleteFactoryIntakeResponse":{"type":"object"},"FactoriesDeleteFactoryPRFeedbackHandlerResponse":{"type":"object"},"FactoriesDeleteFactoryResponse":{"type":"object"},"FactoriesDescribeFactoryPullRequestMergeabilityResponse":{"type":"object","properties":{"mergeability":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestMergeability"}}},"FactoriesDescribeFactoryPullRequestResponse":{"type":"object","properties":{"pullRequest":{"$ref":"#/components/schemas/FactoriesFactoryPullRequest"}}},"FactoriesDescribeFactoryResponse":{"type":"object","properties":{"factory":{"$ref":"#/components/schemas/FactoriesFactory"}}},"FactoriesDescribeFactoryUsageResponse":{"type":"object","properties":{"totalTokens":{"type":"string","format":"int64"},"totalCostCents":{"type":"string","format":"int64"},"periodDays":{"type":"integer","format":"int32"},"byModel":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneFactoriesUsageByModel"}},"remainingCreditCents":{"type":"string","format":"int64"},"grantTotalCents":{"type":"string","format":"int64"},"hostedBilledCents":{"type":"string","format":"int64"},"remainingCreditWarning":{"type":"boolean"},"hostedSpendBudgetCents":{"type":"string","format":"int64"},"factoryHostedBilledCents":{"type":"string","format":"int64"},"factoryRemainingCreditCents":{"type":"string","format":"int64"},"factoryRemainingCreditWarning":{"type":"boolean"},"totalDurationSeconds":{"type":"string","format":"int64"},"byMachineType":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneFactoriesUsageByMachineType"}},"hostedCreditAvailable":{"type":"boolean","description":"Exact hosted credit gate for new runs. Whole-cent balances round down,\nso clients must use this flag instead of remaining_credit_cents."},"factoryHostedBudgetAvailable":{"type":"boolean","description":"Exact workspace hosted budget gate for new runs. True when the workspace\nhas no cap or its capped remainder is still positive."}}},"FactoriesDescribeFactoryVelocityAutomation":{"type":"object","properties":{"id":{"type":"string","description":"Canvas id of the automation."},"name":{"type":"string"},"runs":{"type":"integer","format":"int32","description":"Runs that started in the window."},"failed":{"type":"integer","format":"int32","description":"Part of `runs` that ended with a failure."},"costCents":{"type":"string","format":"int64","description":"Tracked model spend of those runs."},"averageDurationHours":{"type":"number","format":"double","description":"Mean hours from start to finish, over the runs that finished. Zero when\nnone of them finished yet."}},"description":"DescribeFactoryVelocityAutomation is one row of the Automations table: how\noften an automation ran, how often it failed, and what those runs cost."},"FactoriesDescribeFactoryVelocityDay":{"type":"object","properties":{"day":{"type":"string","description":"Local-day label ready to render on the chart axis."},"date":{"type":"string","format":"date-time"},"superplaneMerged":{"type":"integer","format":"int32"},"peopleMerged":{"type":"integer","format":"int32"},"waste":{"type":"integer","format":"int32","description":"Waste = SuperPlane PRs closed without merging on that day."},"intake":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityIntakeCount"},"description":"Merged SuperPlane pull requests grouped by intake source."},"costCents":{"type":"string","format":"int64","description":"Ledger spend that occurred on this local day, in cents."},"tokens":{"type":"string","format":"int64","description":"Ledger tokens that occurred on this local day."},"wasteCostCents":{"type":"string","format":"int64","description":"Spend of work orders that closed without a merge, on the close day.\nThis is not the ledger spend above."},"modelCostCents":{"type":"string","format":"int64","description":"Part of the day's ledger spend on model tokens."},"computeCostCents":{"type":"string","format":"int64","description":"Part of the day's ledger spend on runner compute."},"medianTaskModelCostCents":{"type":"string","format":"int64","description":"Median model spend of one work order reported on this day. Medians of the\ntwo bands do not add up to the median of the total, so these two describe\none typical work order per band rather than one typical total."},"medianTaskComputeCostCents":{"type":"string","format":"int64","description":"Median runner compute spend of one work order reported on this day."}}},"FactoriesDescribeFactoryVelocityIntakeCount":{"type":"object","properties":{"key":{"type":"string"},"merged":{"type":"integer","format":"int32"}}},"FactoriesDescribeFactoryVelocityIntakeSource":{"type":"object","properties":{"key":{"type":"string","description":"Stable key that `DescribeFactoryVelocityIntakeCount.key` refers to."},"label":{"type":"string","description":"Display label, for example \"GitHub issue\"."},"merged":{"type":"integer","format":"int32"}},"description":"DescribeFactoryVelocityIntakeSource names one intake series and its total."},"FactoriesDescribeFactoryVelocityPerson":{"type":"object","properties":{"id":{"type":"string","description":"SuperPlane user id for a member, or `github:<login>` for a repository\nauthor who is not a member of the organization."},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":"string"},"authoredMerged":{"type":"integer","format":"int32","description":"Merged pull requests the person authored outside SuperPlane."},"factoryMerged":{"type":"integer","format":"int32","description":"Merged pull requests from SuperPlane work orders this person opened."},"factoryWaste":{"type":"integer","format":"int32","description":"Work orders this person opened whose pull requests closed without a merge."},"costCents":{"type":"string","format":"int64","description":"Tracked model spend of the work orders this person opened."},"medianCycleHours":{"type":"number","format":"double","description":"Median hours from first execution to close for those work orders. Zero\nwhen none of them closed inside the window."}},"description":"DescribeFactoryVelocityPerson is one row of the People table: what a person\nmerged directly and what the SuperPlane work orders they opened produced."},"FactoriesDescribeFactoryVelocityResponse":{"type":"object","properties":{"yesterday":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityYesterday"},"totals":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityTotals"},"points":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityDay"}},"repository":{"type":"string","description":"Repository the People cohort was computed for (`owner/repo`), or empty when\nno repository was selected."},"hasPeopleCohort":{"type":"boolean","description":"True when the repository merges of the workspace are stored, so the People\nseries is comparable with SuperPlane output."},"peopleSyncedAt":{"type":"string","format":"date-time","description":"When the background sync last stored repository merges. Unset when the\nworkspace has never completed a sync."},"previousTotals":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityTotals"},"hasPreviousWindow":{"type":"boolean","description":"True when the previous window holds output, so its totals are comparable.\nA workspace younger than two windows reports false and the UI drops the\ncomparison instead of showing growth from an empty baseline."},"intakeSources":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityIntakeSource"},"description":"Intake sources that produced merged SuperPlane pull requests in the\nwindow, ordered by merge count. These are the series of the intake\nbreakdown; `points[].intake` holds their per-day counts."},"people":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityPerson"},"description":"One row per person with merged pull requests or SuperPlane work in the\nwindow, ordered by total merged pull requests."},"peopleSyncPending":{"type":"boolean","description":"True when a repository is selected but its first sync has not stored any\nmerges yet. SuperPlane counts are still present; the People series is\nomitted until the sync finishes."},"peopleTotal":{"type":"integer","format":"int32","description":"Total people with activity in the window, before `people_offset` and\n`people_page_size` are applied. Drives the \"N people with activity\" count."},"peopleHasMore":{"type":"boolean","description":"True when `people_offset + len(people) < people_total`, so the UI knows\nwhether to show \"Load more\"."},"automations":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesDescribeFactoryVelocityAutomation"},"description":"One row per automation of the workspace that ran in the window, ordered by\nrun count. Empty when no automation ran."}}},"FactoriesDescribeFactoryVelocityTotals":{"type":"object","properties":{"superplaneMerged":{"type":"integer","format":"int32"},"peopleMerged":{"type":"integer","format":"int32"},"waste":{"type":"integer","format":"int32"},"superplaneSharePct":{"type":"integer","format":"int32","description":"SuperPlane share of merged PRs, as a rounded percentage (0-100).\nZero when there are no merges in the window."},"wastePct":{"type":"integer","format":"int32","description":"Waste as a percentage of SuperPlane closes (merged + waste), 0-100."},"costCents":{"type":"string","format":"int64","description":"Ledger spend that occurred in the window, in cents."},"tokens":{"type":"string","format":"int64","description":"Ledger tokens that occurred in the window."},"wasteCostCents":{"type":"string","format":"int64","description":"Spend of work orders that closed without a merge, on the close day.\nThis is not the ledger spend above."},"tasksClosed":{"type":"integer","format":"int32","description":"Work orders (tasks) that closed in the window. A work order counts once,\neven when it opened several pull requests, which is why this differs from\nthe pull request counts above."},"tasksWaste":{"type":"integer","format":"int32","description":"Part of `tasks_closed` whose pull requests all closed without a merge."},"modelCostCents":{"type":"string","format":"int64","description":"Part of the window ledger spend on model tokens."},"computeCostCents":{"type":"string","format":"int64","description":"Part of the window ledger spend on runner compute."}}},"FactoriesDescribeFactoryVelocityYesterday":{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"superplaneMerged":{"type":"integer","format":"int32"},"waste":{"type":"integer","format":"int32"}}},"FactoriesDescribePlanningSessionResponse":{"type":"object","properties":{"session":{"$ref":"#/components/schemas/FactoriesPlanningSession"}}},"FactoriesDescribeWorkOrderResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesDisconnectFactoryAgentResourceOAuthBody":{"type":"object"},"FactoriesDisconnectFactoryAgentResourceOAuthResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/FactoriesFactoryAgentResource"}}},"FactoriesDispatchWorkOrderBody":{"type":"object","properties":{"lineName":{"type":"string"},"startStepIndex":{"type":"integer","format":"int32"},"replaceActive":{"type":"boolean"},"model":{"type":"string","description":"Optional model override for this start. Empty means Auto."},"thinkingLevel":{"type":"string","description":"Optional thinking override for this start. Empty means Auto."}}},"FactoriesDispatchWorkOrderResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesEndPlanningSessionBody":{"type":"object"},"FactoriesEndPlanningSessionResponse":{"type":"object","properties":{"session":{"$ref":"#/components/schemas/FactoriesPlanningSession"}}},"FactoriesExportFactoryWorkOrderRunUsageResponse":{"type":"object","properties":{"csv":{"type":"string"},"filename":{"type":"string"}}},"FactoriesFactory":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryLine"}},"key":{"type":"string","description":"Workspace key. 2 to 5 uppercase letters, unique per organization."},"onboarding":{"$ref":"#/components/schemas/FactoriesFactoryOnboarding"},"hostedSpendBudgetCents":{"type":"string","format":"int64","description":"Hosted spend cap in USD cents. Unset means this workspace has no cap."},"planning":{"$ref":"#/components/schemas/FactoriesFactoryPlanning"},"public":{"type":"boolean","description":"True when anyone with the line URL can view the board."},"publicBadgeEnabled":{"type":"boolean"},"publicBadgeShowCost":{"type":"boolean"},"publicBadgeToken":{"type":"string","description":"Unguessable token for the public badge URL. Empty until the badge is turned on once."},"urlId":{"type":"string","description":"Stable id in workspace URLs. Does not change when the workspace key changes."},"vcsCapabilities":{"$ref":"#/components/schemas/FactoriesFactoryVCSCapabilities"}}},"FactoriesFactoryAgentResource":{"type":"object","properties":{"id":{"type":"string"},"factoryId":{"type":"string"},"kind":{"$ref":"#/components/schemas/FactoriesFactoryAgentResourceKind"},"name":{"type":"string"},"enabled":{"type":"boolean"},"url":{"type":"string"},"auth":{"$ref":"#/components/schemas/FactoryAgentResourceAuth"},"headers":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryAgentResourceHeader"}},"oauthStatus":{"$ref":"#/components/schemas/FactoryAgentResourceOAuthStatus"},"oauthError":{"type":"string"},"oauthConnectedByUserId":{"type":"string"},"oauthConnectedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"repository":{"type":"string"},"ref":{"type":"string"},"path":{"type":"string"},"markdown":{"type":"string"},"disabledTools":{"type":"array","items":{"type":"string"}},"commands":{"type":"array","items":{"type":"string"}},"vcsProvider":{"type":"string"},"systemSkill":{"$ref":"#/components/schemas/FactoryAgentResourceSystemSkill"}}},"FactoriesFactoryAgentResourceHeader":{"type":"object","properties":{"name":{"type":"string"},"secretName":{"type":"string"},"secretKey":{"type":"string"}}},"FactoriesFactoryAgentResourceKind":{"type":"string","enum":["KIND_UNSPECIFIED","KIND_MCP_SERVER","KIND_SKILL","KIND_SETUP_COMMAND","KIND_CONTEXT_REPO"],"default":"KIND_UNSPECIFIED"},"FactoriesFactoryAgentResourceTool":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"readOnly":{"type":"boolean"}}},"FactoriesFactoryAppTemplateAgent":{"type":"object","properties":{"component":{"type":"string"},"model":{"type":"string"},"planningModel":{"type":"string"},"credentialSource":{"type":"string"},"credentialIntegrationName":{"type":"string"}}},"FactoriesFactoryAppTemplateIntegration":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}}},"FactoriesFactoryIntake":{"type":"object","properties":{"id":{"type":"string"},"factoryId":{"type":"string"},"canvasId":{"type":"string","description":"Canvas that implements the intake. Use it to open the automation editor."},"name":{"type":"string"},"description":{"type":"string"},"source":{"$ref":"#/components/schemas/FactoriesFactoryIntakeSource"},"settings":{"$ref":"#/components/schemas/FactoriesFactoryIntakeSettings"},"healthy":{"type":"boolean","description":"False when the canvas can no longer receive an item, score it, and create\na work order. The intake stays listed so the user can repair it."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"initialImportStatus":{"$ref":"#/components/schemas/FactoryIntakeInitialImportStatus"},"initialImportItemCount":{"type":"integer","format":"int32","description":"Set when the initial import completed, including when it found zero items."},"paused":{"type":"boolean","description":"True when live items are ignored. Hand-picked import still works."},"integrationId":{"type":"string","description":"Live trigger connection. Empty when the intake is unbound."},"resourceId":{"type":"string","description":"Live trigger resource, such as a Jira project key."},"health":{"$ref":"#/components/schemas/FactoryIntakeHealth"},"healthMessage":{"type":"string","description":"Why the intake cannot receive items. Empty when health is HEALTH_OK."}}},"FactoriesFactoryIntakeItem":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"},"body":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"disabledReason":{"type":"string","description":"Nonempty when an exact search match cannot be imported by this intake."}}},"FactoriesFactoryIntakeRun":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"confidencePct":{"type":"integer","format":"int32","description":"Unset while the analysis runs, or when the analysis returned no score."},"placement":{"$ref":"#/components/schemas/FactoryIntakeRunPlacement"},"workOrderId":{"type":"string"},"stage":{"type":"string","description":"Line step the work order reached. Set only when progressed."},"createdAt":{"type":"string","format":"date-time"},"analyzedAt":{"type":"string","format":"date-time"}}},"FactoriesFactoryIntakeSettings":{"type":"object","properties":{"confidencePct":{"type":"integer","format":"int32","description":"Lowest analysis score that still creates a work order."},"labels":{"type":"array","items":{"type":"string"},"description":"Labels the filter applies to. Used by GitHub issue intakes only."},"labelFilterMode":{"$ref":"#/components/schemas/SettingsLabelFilterMode"},"assignment":{"$ref":"#/components/schemas/SettingsAssignment"},"authorsWithAccess":{"type":"boolean","description":"When true, only create a work order for issues opened by someone with\nrepository access (author_association OWNER, MEMBER, or COLLABORATOR).\nGitHub issue intakes only. Off by default."},"newIssues":{"type":"boolean","description":"Listen for opened GitHub issues."},"superplaneLabelAdded":{"type":"boolean","description":"Listen for open GitHub issues when somebody adds the \"superplane\"\nlabel to them."},"reopenedIssues":{"type":"boolean","description":"Listen for reopened GitHub issues."},"jiraMoveOnComplete":{"type":"boolean","description":"When true, SuperPlane moves the Jira issue when the task completes.\nJira issue intakes only. On by default."},"jiraCompletionColumn":{"type":"string","description":"Jira status name to move the issue to. Empty means the project's Done\ncolumn. Jira issue intakes only."},"sentryNewIssues":{"type":"boolean","description":"Listen for created Sentry issues. Sentry exception intakes only."},"sentryRegressedIssues":{"type":"boolean","description":"Listen for Sentry issues that become unresolved. Sentry exception\nintakes only."},"sentryAssignedIssues":{"type":"boolean","description":"Listen for assigned Sentry issues. Sentry exception intakes only."},"sentryLevels":{"type":"array","items":{"type":"string"},"description":"Issue levels that still create a task. Empty means every level.\nSentry exception intakes only."},"excludeKeyTasks":{"type":"boolean","description":"When true, skip Productive.io key tasks (milestones). Productive task\nintakes only."},"taskListIds":{"type":"array","items":{"type":"string"},"description":"Task list ids that still create a task. Empty means every task list.\nProductive task intakes only."},"dependabotSeverities":{"type":"array","items":{"type":"string"},"description":"Severities that still create a task. Empty means every severity.\nDependabot alert intakes only. Values: critical, high, medium, low."},"datadogTriggeredAlerts":{"type":"boolean","description":"Listen for Triggered Datadog Error Tracking alerts. Datadog intakes only.\nOn by default. An empty selection still listens for Triggered."},"datadogRetriggeredAlerts":{"type":"boolean","description":"Listen for Re-Triggered Datadog Error Tracking alerts. Datadog intakes\nonly. Off by default."},"datadogEnvironments":{"type":"array","items":{"type":"string"},"description":"Environments that still create a task. Empty means every environment.\nDatadog intakes only."},"linearProjectIds":{"type":"array","items":{"type":"string"},"description":"Projects that still create a task. Required for a Linear intake.\nLinear issue intakes only."},"linearLabels":{"type":"array","items":{"type":"string"},"description":"Label names that still create a task. Empty means every label.\nLinear issue intakes only."},"sentryProjectIds":{"type":"array","items":{"type":"string"},"description":"Projects that still create a task. Required for a Sentry intake.\nSentry exception intakes only. Values are project slugs."},"defaultOwnerId":{"type":"string","description":"Organization user ID. Omitted updates preserve the selection; empty clears it."}},"description":"Settings that change what the intake does. They are stored in the canvas\ngraph, because the canvas is what the workers run. This block is a\nread/write facade over that graph."},"FactoriesFactoryIntakeSource":{"type":"string","enum":["SOURCE_UNSPECIFIED","SOURCE_GITHUB_ISSUES","SOURCE_SENTRY_EXCEPTIONS","SOURCE_PAGERDUTY_INCIDENTS","SOURCE_PRODUCTIVE_TASKS","SOURCE_JIRA_ISSUES","SOURCE_DEPENDABOT_ALERTS","SOURCE_DATADOG","SOURCE_LINEAR_ISSUES"],"default":"SOURCE_UNSPECIFIED"},"FactoriesFactoryLLMModel":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"FactoriesFactoryLine":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/FactoryLineStep"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"metrics":{"$ref":"#/components/schemas/FactoriesFactoryLineMetrics"},"columnColors":{"type":"object","additionalProperties":{"type":"string"},"description":"Board column colors, keyed by column key (\"backlog\", \"phase-<step\nindex>\", \"verify\", \"done\"). Value is a color id. Missing keys use the\ndefault color."}}},"FactoriesFactoryLineMetrics":{"type":"object","properties":{"successRatePct":{"type":"number","format":"double","description":"Share of closed work orders that completed or that have a merged pull request, 0-100."},"mergedCount":{"type":"integer","format":"int32"},"totalClosedCount":{"type":"integer","format":"int32"},"durationMinutes":{"type":"number","format":"double","description":"Median minutes of summed execution run time among merged work orders. Unset when the sum is 0."},"costPerSuccessUsd":{"type":"number","format":"double","description":"Execution cost in USD divided by merged work orders. Unset when cost is untracked."},"successTrendPct":{"type":"array","items":{"type":"number","format":"double"},"description":"Cumulative success-rate samples, one per calendar day, oldest first. 0-100."},"successDeltaPts":{"type":"number","format":"double","description":"Success-rate points vs the prior 30 days. Unset when the prior window has no closes."},"durationDeltaMinutes":{"type":"number","format":"double","description":"Duration change vs the prior 30 days, in minutes. Unset when either window has no duration."},"costDeltaUsd":{"type":"number","format":"double","description":"Cost change vs the prior 30 days, in USD. Unset when either window has no cost."},"throughputPerDay":{"type":"number","format":"double","description":"Merged work orders per day in the window."},"throughputTrend":{"type":"array","items":{"type":"integer","format":"int32"},"description":"Daily merged-work-order counts, oldest first."}}},"FactoriesFactoryMCPClient":{"type":"object","properties":{"id":{"type":"string"},"clientName":{"type":"string"},"userId":{"type":"string"},"userName":{"type":"string"},"userEmail":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"userAvatarUrl":{"type":"string"}}},"FactoriesFactoryOnboarding":{"type":"object","properties":{"completedAt":{"type":"string","format":"date-time","description":"Set when workspace setup finished. Null while onboarding is open."},"vcsIntegrationId":{"type":"string"},"agentIntegrationId":{"type":"string"},"appRepository":{"type":"string"},"backlogRepository":{"type":"string"},"issuesSource":{"$ref":"#/components/schemas/FactoryOnboardingIssuesSource"},"agentHarness":{"$ref":"#/components/schemas/FactoryOnboardingAgentHarness"},"provisionedAppId":{"type":"string"},"provisionedLineId":{"type":"string"},"defaultBranch":{"type":"string"},"initial":{"type":"boolean","description":"True when account onboarding created this workspace."},"appRepositoryId":{"type":"string","format":"int64"},"backlogRepositoryId":{"type":"string","format":"int64"},"vcsProvider":{"type":"string","description":"Git host for this workspace. Empty means GitHub."},"appRepositoryExternalId":{"type":"string","description":"Bitbucket repository UUID. GitHub leaves this empty."}}},"FactoriesFactoryPRFeedbackHandler":{"type":"object","properties":{"id":{"type":"string"},"factoryId":{"type":"string"},"canvasId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"subject":{"$ref":"#/components/schemas/FactoryPRFeedbackHandlerSubject"},"source":{"$ref":"#/components/schemas/FactoriesFactoryPRFeedbackHandlerSource"},"settings":{"$ref":"#/components/schemas/FactoriesFactoryPRFeedbackHandlerSettings"},"healthy":{"type":"boolean","description":"False when the canvas can no longer receive a mention and address it.\nThe handler stays listed so the user can repair it."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"FactoriesFactoryPRFeedbackHandlerSettings":{"type":"object","properties":{"subject":{"$ref":"#/components/schemas/FactoryPRFeedbackHandlerSubjectSettings"},"discussion":{"$ref":"#/components/schemas/FactoryPRFeedbackHandlerDiscussionSettings"},"checks":{"$ref":"#/components/schemas/FactoryPRFeedbackHandlerCheckSettings"}},"description":"Settings stored in the canvas graph. This block is a read/write facade\nover that graph."},"FactoriesFactoryPRFeedbackHandlerSource":{"type":"string","enum":["SOURCE_UNSPECIFIED","SOURCE_PULL_REQUEST_DISCUSSION","SOURCE_PULL_REQUEST_CHECKS"],"default":"SOURCE_UNSPECIFIED","description":"Signal that starts a run."},"FactoriesFactoryPlanning":{"type":"object","properties":{"enabled":{"type":"boolean"},"clarity":{"type":"boolean"},"confidence":{"type":"boolean"},"setupCompleted":{"type":"boolean","description":"True after the post-onboarding Planning wizard or a Planning settings save."},"autoStartLineId":{"type":"string","description":"Line that starts each task when the plan scores 5. Empty leaves auto-start off."}},"description":"Workspace Backlog Planning: chat refine plus optional Clarity and Confidence."},"FactoriesFactoryPullRequest":{"type":"object","properties":{"id":{"type":"string"},"factoryId":{"type":"string"},"workOrderId":{"type":"string"},"workOrderNumber":{"type":"string","format":"int64"},"provider":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestProvider"},"externalId":{"type":"string"},"repository":{"type":"string"},"number":{"type":"string","format":"int64"},"url":{"type":"string"},"title":{"type":"string"},"state":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestState"},"mergedAt":{"type":"string","format":"date-time"},"closedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"runs":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestRun"}},"currentRevision":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestRevision"},"activities":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestActivity"}},"mergeable":{"type":"boolean"}}},"FactoriesFactoryPullRequestActivity":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/CanvasesCanvasRunRef"},"title":{"type":"string"},"description":{"type":"string"},"revision":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestRevision"},"access":{"type":"string"},"state":{"type":"string"},"attempt":{"type":"integer","format":"int32"},"attemptLimit":{"type":"integer","format":"int32"},"totalTokens":{"type":"string","format":"int64"},"costCents":{"type":"string","format":"int64"},"models":{"type":"array","items":{"type":"string"}}}},"FactoriesFactoryPullRequestMergeability":{"type":"object","properties":{"canMerge":{"type":"boolean"},"blockedReason":{"$ref":"#/components/schemas/FactoryPullRequestMergeabilityBlockedReason"},"message":{"type":"string"},"allowedMethods":{"type":"array","items":{"$ref":"#/components/schemas/FactoryPullRequestMergeabilityMergeMethod"}},"headSha":{"type":"string"}}},"FactoriesFactoryPullRequestProvider":{"type":"string","enum":["PROVIDER_UNSPECIFIED","PROVIDER_GITHUB","PROVIDER_BITBUCKET"],"default":"PROVIDER_UNSPECIFIED"},"FactoriesFactoryPullRequestRevision":{"type":"object","properties":{"id":{"type":"string"},"sha":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"FactoriesFactoryPullRequestRun":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"totalTokens":{"type":"string","format":"int64"},"costCents":{"type":"string","format":"int64"},"run":{"$ref":"#/components/schemas/CanvasesCanvasRunRef"},"models":{"type":"array","items":{"type":"string"}}}},"FactoriesFactoryPullRequestState":{"type":"string","enum":["STATE_UNSPECIFIED","STATE_OPEN","STATE_DRAFT","STATE_CLOSED","STATE_MERGED"],"default":"STATE_UNSPECIFIED"},"FactoriesFactoryVCSCapabilities":{"type":"object","properties":{"prClosure":{"type":"boolean"},"prFeedback":{"type":"boolean"},"prChecks":{"type":"boolean"},"mergeConfidence":{"type":"boolean"},"velocity":{"type":"boolean"},"boardMerge":{"type":"boolean"},"boardClose":{"type":"boolean"},"vcsIssueIntake":{"type":"boolean"}},"description":"Automations the workspace Git host can run. Computed from vcs_provider."},"FactoriesFindPlanningSessionByWorkOrderResponse":{"type":"object","properties":{"session":{"$ref":"#/components/schemas/FactoriesPlanningSession"}}},"FactoriesImportFactoryIntakeItemBody":{"type":"object","properties":{"itemId":{"type":"string"}}},"FactoriesImportFactoryIntakeItemResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesLineRef":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"description":"LineRef identifies a factory line as it was at the time it was\nreferenced — used both for a line dispatch's own line and (denormalized)\non the canvas run/automation refs that trace back to it."},"FactoriesListFactoriesResponse":{"type":"object","properties":{"factories":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactory"}}}},"FactoriesListFactoryAgentResourceToolsResponse":{"type":"object","properties":{"tools":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryAgentResourceTool"}}}},"FactoriesListFactoryAgentResourcesResponse":{"type":"object","properties":{"resources":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryAgentResource"}}}},"FactoriesListFactoryAutomationsResponse":{"type":"object","properties":{"automations":{"type":"array","items":{"$ref":"#/components/schemas/FactoryAutomation"}}}},"FactoriesListFactoryIntakeRunsResponse":{"type":"object","properties":{"runs":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryIntakeRun"}},"lastTimestamp":{"type":"string","format":"date-time"}}},"FactoriesListFactoryIntakesResponse":{"type":"object","properties":{"intakes":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryIntake"}}}},"FactoriesListFactoryLLMModelsResponse":{"type":"object","properties":{"parent":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryLLMModel"}},"selected":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryLLMModel"}},"inheritParent":{"type":"boolean"}}},"FactoriesListFactoryLineRunnerModelsResponse":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryLLMModel"}},"usesHostedFunding":{"type":"boolean"}}},"FactoriesListFactoryMCPClientsResponse":{"type":"object","properties":{"clients":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryMCPClient"}}}},"FactoriesListFactoryPRFeedbackHandlersResponse":{"type":"object","properties":{"handlers":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryPRFeedbackHandler"}}}},"FactoriesListFactoryWorkOrderRunUsageResponse":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderRunUsageRow"}},"totalCount":{"type":"integer","format":"int64"}}},"FactoriesListWorkOrderArtifactsResponse":{"type":"object","properties":{"artifacts":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderArtifact"}}}},"FactoriesListWorkOrderEventsResponse":{"type":"object","properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderEvent"}},"totalCount":{"type":"integer","format":"int64"},"hasNextPage":{"type":"boolean"},"lastTimestamp":{"type":"string","format":"date-time"}}},"FactoriesListWorkOrdersResponse":{"type":"object","properties":{"orders":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderSummary"}},"hasNextPage":{"type":"boolean"},"totalCount":{"type":"integer","format":"int64"}}},"FactoriesMaterializeFactoryAppTemplateBody":{"type":"object","properties":{"appId":{"type":"string"},"installParams":{"type":"object","additionalProperties":{"type":"string"}},"integrations":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryAppTemplateIntegration"}},"agent":{"$ref":"#/components/schemas/FactoriesFactoryAppTemplateAgent"}}},"FactoriesMaterializeFactoryAppTemplateResponse":{"type":"object","properties":{"templateId":{"type":"string"},"canvasYaml":{"type":"string"},"consoleYaml":{"type":"string"}}},"FactoriesMaterializeFactoryAutomationDefaultsBody":{"type":"object"},"FactoriesMaterializeFactoryAutomationDefaultsResponse":{"type":"object","properties":{"templateId":{"type":"string"},"canvasYaml":{"type":"string"},"consoleYaml":{"type":"string"}}},"FactoriesMergeFactoryPullRequestBody":{"type":"object","properties":{"mergeMethod":{"$ref":"#/components/schemas/FactoryPullRequestMergeabilityMergeMethod"},"expectedHeadSha":{"type":"string"}}},"FactoriesMergeFactoryPullRequestResponse":{"type":"object","properties":{"pullRequest":{"$ref":"#/components/schemas/FactoriesFactoryPullRequest"}}},"FactoriesPlanningSession":{"type":"object","properties":{"id":{"type":"string"},"factoryId":{"type":"string"},"repository":{"type":"string"},"state":{"type":"string"},"canvasId":{"type":"string"},"canvasRunId":{"type":"string"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesPlanningSessionMessage"}},"draft":{"$ref":"#/components/schemas/FactoriesPlanningSessionDraft"},"created":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesPlanningSessionCreatedOrder"}},"waitState":{"type":"string"},"executionId":{"type":"string"},"survey":{"$ref":"#/components/schemas/FactoriesPlanningSessionSurvey"},"selectableModelKey":{"type":"string"},"kind":{"$ref":"#/components/schemas/FactoriesPlanningSessionKind"},"activities":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesPlanningSessionActivity"}}}},"FactoriesPlanningSessionActivity":{"type":"object","properties":{"id":{"type":"string"},"schemaVersion":{"type":"integer","format":"int32"},"provider":{"type":"string"},"status":{"type":"string"},"lastSequence":{"type":"string","format":"int64"},"startedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesPlanningSessionActivityItem"}},"truncated":{"type":"boolean"},"turn":{"type":"integer","format":"int32"}}},"FactoriesPlanningSessionActivityItem":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"text":{"type":"string"},"name":{"type":"string"},"input":{"type":"string"},"output":{"type":"string"},"outputStreams":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesPlanningSessionActivityOutput"}},"status":{"type":"string"},"code":{"type":"string"},"startedAt":{"type":"string","format":"date-time"},"durationMs":{"type":"string","format":"int64"},"exitCode":{"type":"integer","format":"int32"},"signal":{"type":"string"},"truncated":{"type":"boolean"}}},"FactoriesPlanningSessionActivityOutput":{"type":"object","properties":{"stream":{"type":"string"},"text":{"type":"string"}}},"FactoriesPlanningSessionCreatedOrder":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"number":{"type":"string","format":"int64","description":"Factory-scoped sequence number, used to build the task permalink."}}},"FactoriesPlanningSessionDraft":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"workOrderId":{"type":"string"}}},"FactoriesPlanningSessionKind":{"type":"string","enum":["PLANNING_SESSION_KIND_UNSPECIFIED","PLANNING_SESSION_KIND_TASK_CREATION","PLANNING_SESSION_KIND_WORK_ORDER_ANALYSIS"],"default":"PLANNING_SESSION_KIND_UNSPECIFIED"},"FactoriesPlanningSessionMessage":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"userId":{"type":"string"},"activityId":{"type":"string"}}},"FactoriesPlanningSessionSummary":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string"},"waitState":{"type":"string"},"executionId":{"type":"string"},"survey":{"$ref":"#/components/schemas/FactoriesPlanningSessionSurvey"}},"description":"PlanningSessionSummary is the lines-board view of an analysis session.\nIt omits messages, activities, and the draft body."},"FactoriesPlanningSessionSurvey":{"type":"object","properties":{"id":{"type":"string"},"questions":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesPlanningSessionSurveyQuestion"}}}},"FactoriesPlanningSessionSurveyQuestion":{"type":"object","properties":{"prompt":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"recommendedOption":{"type":"string"}}},"FactoriesPreviewFactoryScheduleBody":{"type":"object","properties":{"installParams":{"type":"object","additionalProperties":{"type":"string"}}}},"FactoriesPreviewFactoryScheduleResponse":{"type":"object","properties":{"nextRun":{"type":"string","format":"date-time"}}},"FactoriesRefreshBacklogBody":{"type":"object"},"FactoriesRefreshBacklogResponse":{"type":"object","properties":{"archivedCount":{"type":"integer","format":"int32"},"failedItemCount":{"type":"integer","format":"int32"},"failedSourceCount":{"type":"integer","format":"int32"}}},"FactoriesRestoreFactorySystemSkillBody":{"type":"object"},"FactoriesRestoreFactorySystemSkillResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/FactoriesFactoryAgentResource"}}},"FactoriesRevokeFactoryMCPClientResponse":{"type":"object"},"FactoriesSearchFactoryIntakeItemsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryIntakeItem"}}}},"FactoriesSelectFactoryVCSProviderRepositoryBody":{"type":"object","properties":{"provider":{"type":"string"},"repositoryId":{"type":"string","format":"int64"},"repository":{"type":"string","description":"Bitbucket repository as workspace/slug. GitHub uses repository_id."}}},"FactoriesSelectFactoryVCSProviderRepositoryResponse":{"type":"object","properties":{"factory":{"$ref":"#/components/schemas/FactoriesFactory"}}},"FactoriesSendPlanningSessionMessageBody":{"type":"object","properties":{"text":{"type":"string"}}},"FactoriesSendPlanningSessionMessageResponse":{"type":"object","properties":{"session":{"$ref":"#/components/schemas/FactoriesPlanningSession"}}},"FactoriesSendWorkOrderToBacklogBody":{"type":"object","properties":{"closePullRequests":{"type":"boolean"},"clearArtifacts":{"type":"boolean"}}},"FactoriesSendWorkOrderToBacklogResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesSetFactoryVisibilityBody":{"type":"object","properties":{"public":{"type":"boolean","description":"True when anyone with the line URL can view the board."}}},"FactoriesSetFactoryVisibilityResponse":{"type":"object","properties":{"factory":{"$ref":"#/components/schemas/FactoriesFactory"}}},"FactoriesStartFactoryAgentResourceOAuthBody":{"type":"object"},"FactoriesStartFactoryAgentResourceOAuthResponse":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"resource":{"$ref":"#/components/schemas/FactoriesFactoryAgentResource"}}},"FactoriesSwitchFactoryModelSourceBody":{"type":"object","properties":{"source":{"type":"string","description":"hosted, anthropic, openai, openrouter, or custom."},"apiKey":{"type":"string","description":"Provider API key. Required when this organization has no ready integration for the source."},"baseUrl":{"type":"string","description":"Provider base URL. Required when the source is a new custom provider."},"apiType":{"type":"string","description":"API type for a custom provider: anthropic, openai, or openai-compatible."}}},"FactoriesSwitchFactoryModelSourceResponse":{"type":"object","properties":{"factory":{"$ref":"#/components/schemas/FactoriesFactory"},"integrationId":{"type":"string"}}},"FactoriesSyncFactoryVelocityBody":{"type":"object","description":"SyncFactoryVelocityRequest asks for a fresh read of the repository merges of\na workspace. The report is served from stored rows a background sync collects,\nso a user who just merged something needs a way to ask for it now instead of\nwaiting for the next scheduled run."},"FactoriesSyncFactoryVelocityResponse":{"type":"object","properties":{"started":{"type":"boolean","description":"False when the workspace has no repository to sync, so the UI can explain\nthat instead of showing progress that never finishes."}}},"FactoriesUpdateFactoryAgentResourceBody":{"type":"object","properties":{"name":{"type":"string"},"enabled":{"type":"boolean"},"url":{"type":"string"},"auth":{"$ref":"#/components/schemas/FactoryAgentResourceAuth"},"headers":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryAgentResourceHeader"}},"markdown":{"type":"string"},"disabledTools":{"type":"array","items":{"type":"string"}},"replaceDisabledTools":{"type":"boolean"},"repository":{"type":"string"},"commands":{"type":"array","items":{"type":"string"}},"replaceCommands":{"type":"boolean"},"vcsProvider":{"type":"string"}}},"FactoriesUpdateFactoryAgentResourceResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/FactoriesFactoryAgentResource"}}},"FactoriesUpdateFactoryBody":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"key":{"type":"string","description":"New workspace key. 2 to 5 uppercase letters, unique per organization.\nUpdating this changes the identifier shown for every work order."},"hostedSpendBudgetCents":{"type":"string","format":"int64","description":"Hosted spend cap in USD cents. Unset leaves the current cap unchanged."},"clearHostedSpendBudget":{"type":"boolean","description":"When true, remove the hosted spend cap. Takes precedence over hosted_spend_budget_cents."},"planning":{"$ref":"#/components/schemas/FactoriesFactoryPlanning"},"publicBadgeEnabled":{"type":"boolean","description":"When true, the public badge URL returns an SVG. Absent means do not change."},"publicBadgeShowCost":{"type":"boolean","description":"When true, Large and Full width badges show cost per merged pull request.\nAbsent means do not change. A public URL cannot turn this on."}}},"FactoriesUpdateFactoryIntakeBody":{"type":"object","properties":{"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/FactoriesFactoryIntakeSettings"},"paused":{"type":"boolean"},"integrationId":{"type":"string","description":"Rebind the live trigger. Set both fields together."},"resourceId":{"type":"string"}}},"FactoriesUpdateFactoryIntakeResponse":{"type":"object","properties":{"intake":{"$ref":"#/components/schemas/FactoriesFactoryIntake"}}},"FactoriesUpdateFactoryLLMModelsBody":{"type":"object","properties":{"provider":{"type":"string"},"fundingSource":{"type":"string"},"allowedModels":{"type":"array","items":{"type":"string"}}}},"FactoriesUpdateFactoryLLMModelsResponse":{"type":"object","properties":{"selected":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryLLMModel"}},"inheritParent":{"type":"boolean"}}},"FactoriesUpdateFactoryLineBody":{"type":"object","properties":{"name":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/FactoryLineStep"}},"columnColors":{"type":"object","additionalProperties":{"type":"string"},"description":"Full replacement of the board column colors. Absent means \"do not\nchange\"; present (including an empty map) replaces the stored map."}}},"FactoriesUpdateFactoryLineResponse":{"type":"object","properties":{"line":{"$ref":"#/components/schemas/FactoriesFactoryLine"}}},"FactoriesUpdateFactoryOnboardingBody":{"type":"object","properties":{"vcsIntegrationId":{"type":"string","description":"Organization integration used for version control."},"agentIntegrationId":{"type":"string","description":"Organization integration used for the coding agent."},"appRepository":{"type":"string","description":"App repository slug (for example `acme/api`)."},"backlogRepository":{"type":"string","description":"Backlog repository slug. May differ from the app repository."},"issuesSource":{"$ref":"#/components/schemas/FactoryOnboardingIssuesSource"},"agentHarness":{"$ref":"#/components/schemas/FactoryOnboardingAgentHarness"},"provisionedAppId":{"type":"string","description":"Canvas ID created during Software Factory provisioning."},"provisionedLineId":{"type":"string","description":"Default factory line ID created after the app is ready."},"complete":{"type":"boolean","description":"When true, validate readiness and set onboarding_completed_at."},"defaultBranch":{"type":"string","description":"Default branch of the app repository."}}},"FactoriesUpdateFactoryOnboardingResponse":{"type":"object","properties":{"factory":{"$ref":"#/components/schemas/FactoriesFactory"}}},"FactoriesUpdateFactoryPRFeedbackHandlerBody":{"type":"object","properties":{"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/FactoriesFactoryPRFeedbackHandlerSettings"}}},"FactoriesUpdateFactoryPRFeedbackHandlerResponse":{"type":"object","properties":{"handler":{"$ref":"#/components/schemas/FactoriesFactoryPRFeedbackHandler"}}},"FactoriesUpdateFactoryPullRequestBody":{"type":"object","properties":{"externalId":{"type":"string"},"repository":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"state":{"$ref":"#/components/schemas/FactoriesFactoryPullRequestState"},"mergedAt":{"type":"string","format":"date-time"},"closedAt":{"type":"string","format":"date-time"}}},"FactoriesUpdateFactoryPullRequestResponse":{"type":"object","properties":{"pullRequest":{"$ref":"#/components/schemas/FactoriesFactoryPullRequest"}}},"FactoriesUpdateFactoryRepositoryBody":{"type":"object","properties":{"repository":{"type":"string","description":"Repository slug in owner/name form."},"defaultBranch":{"type":"string","description":"Default branch resolved from the selected repository."}}},"FactoriesUpdateFactoryRepositoryResponse":{"type":"object","properties":{"factory":{"$ref":"#/components/schemas/FactoriesFactory"}}},"FactoriesUpdateFactoryResponse":{"type":"object","properties":{"factory":{"$ref":"#/components/schemas/FactoriesFactory"}}},"FactoriesUpdateWorkOrderAssigneesBody":{"type":"object","properties":{"assigneeIds":{"type":"array","items":{"type":"string"}}}},"FactoriesUpdateWorkOrderAssigneesResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesUpdateWorkOrderBody":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},"FactoriesUpdateWorkOrderResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesUpdateWorkOrderStatusBody":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/FactoriesWorkOrderState"},"result":{"$ref":"#/components/schemas/FactoriesWorkOrderResult"}}},"FactoriesUpdateWorkOrderStatusResponse":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/FactoriesWorkOrder"}}},"FactoriesWorkOrder":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"state":{"$ref":"#/components/schemas/FactoriesWorkOrderState"},"result":{"$ref":"#/components/schemas/FactoriesWorkOrderResult"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"assignees":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneFactoriesUserRef"}},"createdBy":{"$ref":"#/components/schemas/FactoriesWorkOrderCreator"},"totalTokens":{"type":"string","format":"int64","description":"Aggregate usage summed across all step executions of all line\ndispatches. UI hides values that are zero."},"totalCostCents":{"type":"string","format":"int64"},"number":{"type":"string","format":"int64","description":"Immutable factory-scoped sequence number, allocated atomically at\ncreation time. Combined with the parent factory's key to render the\ndisplay identifier (for example `SP-42`)."},"key":{"type":"string","description":"Display identifier composed of the parent factory's key and this\norder's `number` (for example `SP-42`). Populated by the server."},"lineDispatches":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderLineDispatch"},"description":"Every traversal of this work order through a factory line, oldest\nfirst. A line dispatched twice (e.g. a failed traversal re-dispatched)\nproduces two separate entries here, each with its own step executions."},"statusNotes":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderStatusNote"},"description":"Current-wait announcements set by automations: what a waiting order\nis blocked on and what resolves it. One entry per note key; any\nstate transition clears the whole set."},"origin":{"$ref":"#/components/schemas/FactoriesWorkOrderOrigin"},"totalDurationSeconds":{"type":"string","format":"int64"},"files":{"type":"array","items":{"$ref":"#/components/schemas/FilesFile"},"description":"Ready files for this task. Present on DescribeWorkOrder only.\nThe stored description uses sp-file:// refs, not download URLs."},"sourceRunId":{"type":"string","description":"Canvas run that created this task, when Create Task produced it.\nEmpty for tasks opened in the UI or imported without a source run."},"usageByModel":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneFactoriesUsageByModel"},"description":"Model spend for this task, one row per model. UI hides empty rows."},"usageByMachineType":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneFactoriesUsageByMachineType"},"description":"Runner machine time for this task, one row per machine type.\nUI hides empty rows and may collapse them into one machine-time line."},"checks":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderCheck"},"description":"Full check rows, including summary and analysis."},"planningSession":{"$ref":"#/components/schemas/FactoriesPlanningSessionSummary"},"pullRequests":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryPullRequest"},"description":"Pull requests tracked on this task."},"autoStartLineId":{"type":"string","description":"Set after an auto-start attempt that did not start the task.\nEmpty before the attempt, and empty again after a successful start."},"mcpClient":{"$ref":"#/components/schemas/FactoriesWorkOrderMcpClient"}}},"FactoriesWorkOrderArtifact":{"type":"object","properties":{"id":{"type":"string"},"type":{"$ref":"#/components/schemas/FactoriesWorkOrderArtifactType"},"data":{"type":"object"},"createdBy":{"$ref":"#/components/schemas/SuperplaneFactoriesUserRef"},"createdAt":{"type":"string","format":"date-time"}}},"FactoriesWorkOrderArtifactType":{"type":"string","enum":["TYPE_UNSPECIFIED","TYPE_MARKDOWN","TYPE_BRANCH","TYPE_LINK","TYPE_FILE"],"default":"TYPE_UNSPECIFIED"},"FactoriesWorkOrderCheck":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"score":{"type":"number","format":"double"},"maxScore":{"type":"number","format":"double"},"format":{"$ref":"#/components/schemas/WorkOrderCheckFormat"},"level":{"$ref":"#/components/schemas/WorkOrderCheckLevel"},"previousScore":{"type":"number","format":"double","description":"Score the same check key held before the latest report, if any."},"summary":{"type":"string"},"analysis":{"type":"string"},"automation":{"$ref":"#/components/schemas/FactoriesAutomationRef"},"runId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"recentScores":{"type":"array","items":{"type":"number","format":"double"},"description":"Recent report scores, oldest first, ending with the current score.\nCapped server-side; powers the run-history strip on boolean checks."}},"description":"WorkOrderCheck is a scored assessment an automation reported on a work\norder (risk review, coverage, confidence). Latest-only state: one entry\nper key, updated in place on every report; history lives in\n`order.check.reported` timeline events."},"FactoriesWorkOrderCheckScore":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"score":{"type":"number","format":"double"},"maxScore":{"type":"number","format":"double"}},"description":"WorkOrderCheckScore is the board-card view of a check.\nIt carries the score only, not the analysis text."},"FactoriesWorkOrderComment":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"author":{"$ref":"#/components/schemas/FactoriesWorkOrderCommentAuthor"},"createdAt":{"type":"string","format":"date-time"},"mentionedUserIds":{"type":"array","items":{"type":"string"}}}},"FactoriesWorkOrderCommentAuthor":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/FactoriesWorkOrderCommentAuthorKind"},"userId":{"type":"string"},"automation":{"$ref":"#/components/schemas/FactoriesAutomationRef"}}},"FactoriesWorkOrderCommentAuthorKind":{"type":"string","enum":["KIND_UNSPECIFIED","KIND_USER","KIND_AUTOMATION"],"default":"KIND_UNSPECIFIED"},"FactoriesWorkOrderCreator":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/SuperplaneFactoriesUserRef"},"automation":{"$ref":"#/components/schemas/FactoriesAutomationRef"}}},"FactoriesWorkOrderEvent":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"type":{"type":"string"},"event":{"type":"object"}}},"FactoriesWorkOrderExecution":{"type":"object","properties":{"id":{"type":"string"},"step":{"type":"string"},"state":{"$ref":"#/components/schemas/FactoriesWorkOrderExecutionState"},"result":{"$ref":"#/components/schemas/FactoriesWorkOrderExecutionResult"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"run":{"$ref":"#/components/schemas/WorkOrderExecutionRunRef"},"stepIndex":{"type":"integer","format":"int32","description":"Zero-based index of the step inside the parent WorkOrderLineDispatch's\n`steps` snapshot; matches the position there so the UI can highlight\nthe active step."},"totalTokens":{"type":"string","format":"int64","description":"Optional aggregate usage; UI hides zero values."},"costCents":{"type":"string","format":"int64"},"finishedAt":{"type":"string","format":"date-time","description":"When the execution finished (set for finished executions only)."},"durationSeconds":{"type":"string","format":"int64"},"models":{"type":"array","items":{"type":"string"},"description":"Models that recorded spend on this step. Distinct ledger model ids,\noldest first. UI prefers these over the Start override."},"failureReason":{"type":"string","description":"Why the step failed before it could run. Set only for SuperPlane\nhosted credit failures: no_hosted_credit,\nhosted_subscription_required, payment_past_due, or workspace_budget_empty."}}},"FactoriesWorkOrderExecutionResult":{"type":"string","enum":["RESULT_UNKNOWN","RESULT_PASSED","RESULT_FAILED","RESULT_CANCELLED"],"default":"RESULT_UNKNOWN"},"FactoriesWorkOrderExecutionState":{"type":"string","enum":["STATE_UNKNOWN","STATE_PENDING","STATE_STARTED","STATE_CANCELLING","STATE_FINISHED"],"default":"STATE_UNKNOWN"},"FactoriesWorkOrderExecutionStep":{"type":"object","properties":{"name":{"type":"string"},"stepIndex":{"type":"integer","format":"int32"}}},"FactoriesWorkOrderLineDispatch":{"type":"object","properties":{"id":{"type":"string"},"line":{"$ref":"#/components/schemas/FactoriesLineRef"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderExecutionStep"},"description":"Steps snapshotted from the line's definition at dispatch time, so a\nline edited mid-traversal doesn't change what an in-flight or\nhistorical dispatch shows. Serialized once here instead of once per\nstep execution."},"state":{"$ref":"#/components/schemas/FactoriesWorkOrderLineDispatchState"},"result":{"$ref":"#/components/schemas/FactoriesWorkOrderLineDispatchResult"},"createdAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"stepExecutions":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderExecution"}},"queueItem":{"$ref":"#/components/schemas/FactoriesWorkOrderQueueItem"},"model":{"type":"string","description":"Model chosen at Start. Empty means Auto: each runner keeps the model\nstored on the live automation canvas."},"thinkingLevel":{"type":"string","description":"Thinking chosen at Start. Empty means Auto: each runner keeps the\nthinking level stored on the live automation canvas."}},"description":"WorkOrderLineDispatch is one traversal of a work order through a factory\nline: a dispatch creates one, and every step run started while walking\nthe line hangs off it as a `step_executions` entry."},"FactoriesWorkOrderLineDispatchResult":{"type":"string","enum":["RESULT_UNKNOWN","RESULT_PASSED","RESULT_FAILED","RESULT_CANCELLED"],"default":"RESULT_UNKNOWN"},"FactoriesWorkOrderLineDispatchState":{"type":"string","enum":["STATE_UNKNOWN","STATE_ACTIVE","STATE_FINISHED"],"default":"STATE_UNKNOWN"},"FactoriesWorkOrderMcpClient":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"description":"MCP OAuth client that handed a task to Implement or Verify."},"FactoriesWorkOrderOrigin":{"type":"object","properties":{"url":{"type":"string"},"label":{"type":"string"}}},"FactoriesWorkOrderQueueItem":{"type":"object","properties":{"id":{"type":"string"},"stepName":{"type":"string"},"stepIndex":{"type":"integer","format":"int32","description":"Zero-based index of the step inside the parent dispatch's `steps`\nsnapshot."},"position":{"type":"integer","format":"int32","description":"1-based position in the step's FIFO queue across all work orders of\nthe line."},"createdAt":{"type":"string","format":"date-time"},"appId":{"type":"string","description":"App (canvas) id of the queued step, from the parent dispatch's steps\nsnapshot. Lets the UI place the queued work order on the correct\nboard column even after a line edit moved the step."}},"description":"WorkOrderQueueItem is a line dispatch waiting for admission into a step\nthat is at its maxParallelism. The run and step execution are created\nwhen the step admits the work order."},"FactoriesWorkOrderResult":{"type":"string","enum":["RESULT_UNSPECIFIED","RESULT_COMPLETED","RESULT_REJECTED","RESULT_FAILED","RESULT_ARCHIVED","RESULT_PR_CLOSED"],"default":"RESULT_UNSPECIFIED"},"FactoriesWorkOrderRunUsageRow":{"type":"object","properties":{"workOrderExecutionId":{"type":"string"},"workOrderId":{"type":"string"},"workOrderNumber":{"type":"string","format":"int64"},"workOrderKey":{"type":"string"},"title":{"type":"string"},"lastOccurredAt":{"type":"string","format":"date-time"},"userId":{"type":"string"},"userName":{"type":"string"},"userEmail":{"type":"string"},"totalTokens":{"type":"string","format":"int64"},"durationSeconds":{"type":"string","format":"int64"},"costCents":{"type":"string","format":"int64"},"hostedCostCents":{"type":"string","format":"int64"},"byokCostCents":{"type":"string","format":"int64"},"models":{"type":"array","items":{"type":"string"}},"byokModels":{"type":"array","items":{"type":"string"}},"machineTypes":{"type":"array","items":{"type":"string"}},"costMicros":{"type":"string","format":"int64","description":"Ledger totals in millionths of a dollar. Whole-cent fields above truncate\nthese, so a short VM run can be $0.00 in cents and still have micros."},"hostedCostMicros":{"type":"string","format":"int64"},"byokCostMicros":{"type":"string","format":"int64"}}},"FactoriesWorkOrderState":{"type":"string","enum":["STATE_UNSPECIFIED","STATE_DRAFT","STATE_OPEN","STATE_CLOSED"],"default":"STATE_UNSPECIFIED"},"FactoriesWorkOrderStatusNote":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string"},"headline":{"type":"string"},"body":{"type":"string"},"ctaLabel":{"type":"string"},"ctaUrl":{"type":"string"},"automation":{"$ref":"#/components/schemas/FactoriesAutomationRef"},"runId":{"type":"string"},"updatedAt":{"type":"string","format":"date-time"},"showOnlyWhenWaiting":{"type":"boolean","description":"When true, the work order page hides this note while a line is\nrunning. The default is false: the note stays visible for the\nwhole open wait."}},"description":"WorkOrderStatusNote announces what a waiting work order is blocked on\nand what resolves it. Notes are latest-only per key: setting a note\nwith the same key updates it in place, and a different key sits\nbeside it. Any state transition clears the whole set."},"FactoriesWorkOrderSummary":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"state":{"$ref":"#/components/schemas/FactoriesWorkOrderState"},"result":{"$ref":"#/components/schemas/FactoriesWorkOrderResult"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"assignees":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneFactoriesUserRef"}},"createdBy":{"$ref":"#/components/schemas/FactoriesWorkOrderCreator"},"totalTokens":{"type":"string","format":"int64"},"totalCostCents":{"type":"string","format":"int64"},"number":{"type":"string","format":"int64"},"key":{"type":"string"},"lineDispatches":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderLineDispatch"}},"statusNotes":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderStatusNote"}},"origin":{"$ref":"#/components/schemas/FactoriesWorkOrderOrigin"},"totalDurationSeconds":{"type":"string","format":"int64"},"checkScores":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesWorkOrderCheckScore"}},"planningSession":{"$ref":"#/components/schemas/FactoriesPlanningSessionSummary"},"pullRequests":{"type":"array","items":{"$ref":"#/components/schemas/FactoriesFactoryPullRequest"},"description":"Pull requests tracked on this task."},"mcpClient":{"$ref":"#/components/schemas/FactoriesWorkOrderMcpClient"},"sourceRunId":{"type":"string","description":"Canvas run that created this task. Needed to link intake history rows."}},"description":"WorkOrderSummary is the list row for a work order.\nDescribeWorkOrder returns WorkOrder, which adds files, the usage\nbreakdown and the full checks. Both carry the source run and\nPlanningSessionSummary."},"FactoryAgentResourceAuth":{"type":"string","enum":["AUTH_UNSPECIFIED","AUTH_HEADERS","AUTH_OAUTH"],"default":"AUTH_UNSPECIFIED"},"FactoryAgentResourceOAuthStatus":{"type":"string","enum":["OAUTH_STATUS_UNSPECIFIED","OAUTH_STATUS_NOT_CONNECTED","OAUTH_STATUS_CONNECTED","OAUTH_STATUS_NEEDS_RECONNECT","OAUTH_STATUS_VENDOR_REJECTED"],"default":"OAUTH_STATUS_UNSPECIFIED"},"FactoryAgentResourceSystemSkill":{"type":"object","properties":{"templateId":{"type":"string"},"version":{"type":"integer","format":"int32"},"state":{"$ref":"#/components/schemas/FactoryAgentResourceSystemSkillState"},"latestVersion":{"type":"integer","format":"int32"}},"description":"Read-only metadata supplied by SuperPlane."},"FactoryAgentResourceSystemSkillState":{"type":"string","enum":["STATE_UNSPECIFIED","STATE_LATEST","STATE_CUSTOM","STATE_UPDATE_AVAILABLE","STATE_UNAVAILABLE"],"default":"STATE_UNSPECIFIED"},"FactoryAutomation":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"columnKey":{"type":"string","description":"Board column this event automation is shown on. Empty when the\nautomation is not attached to a board column. Allowed values:\n\"backlog\", \"verify\", \"done\"."},"templateId":{"type":"string","description":"Saved app template id. \"backlog\" also marks a Backlog graph that\npredates template metadata. Empty for a custom automation.\nThe id does not change when the canvas name changes."}}},"FactoryIntakeHealth":{"type":"string","enum":["HEALTH_UNSPECIFIED","HEALTH_OK","HEALTH_MISSING_INTEGRATION","HEALTH_INTEGRATION_NOT_READY","HEALTH_WEBHOOK_NOT_READY","HEALTH_GRAPH_BROKEN","HEALTH_WEBHOOK_FAILED"],"default":"HEALTH_UNSPECIFIED","description":"Why healthy is false. HEALTH_OK when the intake can receive items."},"FactoryIntakeInitialImportStatus":{"type":"string","enum":["INITIAL_IMPORT_STATUS_UNSPECIFIED","INITIAL_IMPORT_STATUS_PENDING","INITIAL_IMPORT_STATUS_COMPLETED","INITIAL_IMPORT_STATUS_FAILED","INITIAL_IMPORT_STATUS_SKIPPED"],"default":"INITIAL_IMPORT_STATUS_UNSPECIFIED"},"FactoryIntakeRunPlacement":{"type":"string","enum":["PLACEMENT_UNSPECIFIED","PLACEMENT_ANALYZING","PLACEMENT_BELOW_THRESHOLD","PLACEMENT_BACKLOG","PLACEMENT_REJECTED","PLACEMENT_PROGRESSED"],"default":"PLACEMENT_UNSPECIFIED","description":"Where the item ended up after the intake scored it.\n\n - PLACEMENT_ANALYZING: The analysis is still running.\n - PLACEMENT_BELOW_THRESHOLD: The score was below the threshold, so no work order was created.\n - PLACEMENT_PROGRESSED: The work order started on a line."},"FactoryLineAppStep":{"type":"object","properties":{"app":{"type":"string"},"entrypoint":{"type":"string"}}},"FactoryLineStep":{"type":"object","properties":{"type":{"type":"string"},"app":{"$ref":"#/components/schemas/FactoryLineAppStep"},"maxParallelism":{"type":"integer","format":"int32","description":"Maximum in-flight runs for this step across all work orders on the\nline. Work orders above this limit wait in the step's queue. Unset\nmeans the server default (10). Must be at least 1 when set."}}},"FactoryOnboardingAgentHarness":{"type":"string","enum":["AGENT_HARNESS_UNSPECIFIED","AGENT_HARNESS_CLAUDE_CODE","AGENT_HARNESS_CURSOR","AGENT_HARNESS_CODEX","AGENT_HARNESS_SUPERPLANE"],"default":"AGENT_HARNESS_UNSPECIFIED"},"FactoryOnboardingIssuesSource":{"type":"string","enum":["ISSUES_SOURCE_UNSPECIFIED","ISSUES_SOURCE_VCS","ISSUES_SOURCE_LINEAR","ISSUES_SOURCE_JIRA","ISSUES_SOURCE_SKIP"],"default":"ISSUES_SOURCE_UNSPECIFIED"},"FactoryPRFeedbackHandlerCheckSettings":{"type":"object","properties":{"names":{"type":"array","items":{"type":"string"}},"maximumAttempts":{"type":"integer","format":"int32"},"runnerIntegrationIds":{"type":"array","items":{"type":"string"}}}},"FactoryPRFeedbackHandlerDiscussionSettings":{"type":"object","properties":{"mention":{"type":"string"},"ignoreBots":{"type":"boolean"},"allowedBots":{"type":"array","items":{"type":"string"},"description":"GitHub usernames of bots to react to even without the mention."},"addressAllBots":{"type":"boolean","description":"Start a run for every bot comment except comments SuperPlane wrote."}}},"FactoryPRFeedbackHandlerSubject":{"type":"string","enum":["SUBJECT_UNSPECIFIED","SUBJECT_GITHUB_PULL_REQUEST"],"default":"SUBJECT_UNSPECIFIED","description":"Object this handler can change."},"FactoryPRFeedbackHandlerSubjectSettings":{"type":"object","properties":{"repository":{"type":"string"}}},"FactoryPullRequestMergeabilityBlockedReason":{"type":"string","enum":["BLOCKED_REASON_UNSPECIFIED","BLOCKED_REASON_ACTIVE_RUN","BLOCKED_REASON_CHECKS_UNFINISHED","BLOCKED_REASON_CHECK_FAILED","BLOCKED_REASON_DRAFT","BLOCKED_REASON_CONFLICTING","BLOCKED_REASON_MISSING_INTEGRATION","BLOCKED_REASON_UNAVAILABLE"],"default":"BLOCKED_REASON_UNSPECIFIED"},"FactoryPullRequestMergeabilityMergeMethod":{"type":"string","enum":["MERGE_METHOD_UNSPECIFIED","MERGE_METHOD_SQUASH","MERGE_METHOD_MERGE","MERGE_METHOD_REBASE"],"default":"MERGE_METHOD_UNSPECIFIED"},"FilesCreateFactoryFileBody":{"type":"object","properties":{"filename":{"type":"string"},"contentType":{"type":"string"}}},"FilesCreateFactoryFileResponse":{"type":"object","properties":{"file":{"$ref":"#/components/schemas/FilesFile"}}},"FilesCreateWorkOrderFileBody":{"type":"object","properties":{"filename":{"type":"string"},"contentType":{"type":"string"}}},"FilesCreateWorkOrderFileResponse":{"type":"object","properties":{"file":{"$ref":"#/components/schemas/FilesFile"}}},"FilesFile":{"type":"object","properties":{"id":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"sizeBytes":{"type":"string","format":"int64"},"checksum":{"type":"string"},"scope":{"type":"string"},"state":{"type":"string"},"downloadUrl":{"type":"string"},"uploadUrl":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"FilesListFactoryFilesResponse":{"type":"object","properties":{"files":{"type":"array","items":{"$ref":"#/components/schemas/FilesFile"}}}},"FilesListWorkOrderFilesResponse":{"type":"object","properties":{"files":{"type":"array","items":{"$ref":"#/components/schemas/FilesFile"}}}},"GroupsAddUserToGroupBody":{"type":"object","properties":{"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"userId":{"type":"string"},"userEmail":{"type":"string"}}},"GroupsAddUserToGroupResponse":{"type":"object"},"GroupsCreateGroupRequest":{"type":"object","properties":{"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"group":{"$ref":"#/components/schemas/GroupsGroup"}}},"GroupsCreateGroupResponse":{"type":"object","properties":{"group":{"$ref":"#/components/schemas/GroupsGroup"}}},"GroupsDeleteGroupResponse":{"type":"object"},"GroupsDescribeGroupResponse":{"type":"object","properties":{"group":{"$ref":"#/components/schemas/GroupsGroup"}}},"GroupsGroup":{"type":"object","properties":{"metadata":{"$ref":"#/components/schemas/GroupsGroupMetadata"},"spec":{"$ref":"#/components/schemas/GroupsGroupSpec"},"status":{"$ref":"#/components/schemas/GroupsGroupStatus"}}},"GroupsGroupMetadata":{"type":"object","properties":{"name":{"type":"string"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"GroupsGroupSpec":{"type":"object","properties":{"role":{"type":"string"},"displayName":{"type":"string"},"description":{"type":"string"}}},"GroupsGroupStatus":{"type":"object","properties":{"membersCount":{"type":"integer","format":"int32"}}},"GroupsListGroupUsersResponse":{"type":"object","properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneUsersUser"}},"group":{"$ref":"#/components/schemas/GroupsGroup"}}},"GroupsListGroupsResponse":{"type":"object","properties":{"groups":{"type":"array","items":{"$ref":"#/components/schemas/GroupsGroup"}}}},"GroupsRemoveUserFromGroupBody":{"type":"object","properties":{"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"userId":{"type":"string"},"userEmail":{"type":"string"}}},"GroupsRemoveUserFromGroupResponse":{"type":"object"},"GroupsUpdateGroupBody":{"type":"object","properties":{"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"group":{"$ref":"#/components/schemas/GroupsGroup"}}},"GroupsUpdateGroupResponse":{"type":"object","properties":{"group":{"$ref":"#/components/schemas/GroupsGroup"}}},"IntegrationCapabilityState":{"type":"object","properties":{"name":{"type":"string"},"state":{"$ref":"#/components/schemas/IntegrationCapabilityStateState"},"reason":{"type":"string"}}},"IntegrationCapabilityStateState":{"type":"string","enum":["STATE_UNAVAILABLE","STATE_AVAILABLE","STATE_REQUESTED","STATE_ENABLED","STATE_DISABLED"],"default":"STATE_UNAVAILABLE","description":" - STATE_UNAVAILABLE: The integration has the capability available,\nbut the integration setup did not expose it,\nand the user cannot request it anymore.\n - STATE_AVAILABLE: THe integration has the capability available,\nbut the integration setup did not expose it yet.\nThe user can still request it, though.\n - STATE_REQUESTED: The capability was requested,\nbut the setup flow did not yet exposed the capability requested.\n - STATE_ENABLED: The capability is fully available for use.\n - STATE_DISABLED: The capability was made available during the setup flow,\nbut has been manually disabled by the user."},"IntegrationNodeRef":{"type":"object","properties":{"canvasId":{"type":"string"},"canvasName":{"type":"string"},"nodeId":{"type":"string"},"nodeName":{"type":"string"},"component":{"type":"string"}}},"IntegrationProperty":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"},"editable":{"type":"boolean"}}},"IntegrationSetupState":{"type":"object","properties":{"currentStep":{"$ref":"#/components/schemas/IntegrationSetupStepDefinition"},"previousSteps":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationSetupStepDefinition"}}}},"IntegrationSetupStepDefinition":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/IntegrationSetupStepDefinitionType"},"name":{"type":"string"},"label":{"type":"string"},"instructions":{"type":"string"},"inputs":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationField"}},"redirectPrompt":{"$ref":"#/components/schemas/SetupStepDefinitionRedirectPrompt"},"capabilities":{"type":"array","items":{"type":"string"}}}},"IntegrationSetupStepDefinitionType":{"type":"string","enum":["UNKNOWN","INPUTS","REDIRECT_PROMPT","CAPABILITY_SELECTION","DONE"],"default":"UNKNOWN"},"IntegrationsCapabilityDefinition":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/IntegrationsCapabilityDefinitionType"},"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"configuration":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationField"}},"outputChannels":{"type":"array","items":{"$ref":"#/components/schemas/ActionsOutputChannel"}},"exampleOutput":{"type":"object"},"exampleData":{"type":"object"}}},"IntegrationsCapabilityDefinitionType":{"type":"string","enum":["TYPE_UNKNOWN","TYPE_ACTION","TYPE_TRIGGER"],"default":"TYPE_UNKNOWN"},"IntegrationsCapabilityGroup":{"type":"object","properties":{"label":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}}}},"IntegrationsIntegrationDefinition":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"icon":{"type":"string"},"description":{"type":"string"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationsCapabilityDefinition"}},"capabilityGroups":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationsCapabilityGroup"}},"legacySetupOnly":{"type":"boolean"},"configuration":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationField"},"title":"NOTE: should be removed once we migrate every integration to the new flow"},"instructions":{"type":"string"},"hostedAppInstall":{"type":"boolean","description":"When true, new GitHub connections install SuperPlane's public GitHub App.\nThe client skips the organization dialog and the SetupProvider wizard."}}},"KeysCreateDataKeyRequest":{"type":"object"},"KeysCreateDataKeyResponse":{"type":"object","properties":{"activeKeyId":{"type":"string"}}},"KeysDataKey":{"type":"object","properties":{"id":{"type":"string"},"masterKeyRef":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"KeysListKeysResponse":{"type":"object","properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/KeysDataKey"}},"activeKeyId":{"type":"string"},"primaryMasterKeyRef":{"type":"string"}}},"KeysListMigrationsResponse":{"type":"object","properties":{"migrations":{"type":"array","items":{"$ref":"#/components/schemas/KeysMigrationResponse"}}}},"KeysMigrationResponse":{"type":"object","properties":{"id":{"type":"string"},"targetKeyId":{"type":"string"},"state":{"type":"string"},"storageLocation":{"type":"string"},"errorMessage":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"}}},"KeysRewrapKeysRequest":{"type":"object"},"KeysRewrapKeysResponse":{"type":"object"},"KeysStartMigrationRequest":{"type":"object"},"MeBrowserNotificationPreferences":{"type":"object","properties":{"enabled":{"type":"boolean"},"showWhileViewing":{"type":"boolean"}}},"MeConfigureVCSProviderInstallationBody":{"type":"object"},"MeConfigureVCSProviderInstallationResponse":{"type":"object","properties":{"url":{"type":"string"}}},"MeCreateTokenRequest":{"type":"object","properties":{"name":{"type":"string"}}},"MeCreateTokenResponse":{"type":"object","properties":{"token":{"$ref":"#/components/schemas/MeUserAPIToken"},"plaintext":{"type":"string"}}},"MeDescribeLastLocationResponse":{"type":"object","properties":{"lastLocation":{"$ref":"#/components/schemas/MeLastLocation"}}},"MeDescribeNotificationSettingsResponse":{"type":"object","properties":{"settings":{"$ref":"#/components/schemas/MeNotificationSettings"}}},"MeDescribeVCSProviderOnboardingResponse":{"type":"object","properties":{"providerConfigured":{"type":"boolean"},"identity":{"$ref":"#/components/schemas/MeVCSProviderIdentity"},"repositories":{"type":"array","items":{"$ref":"#/components/schemas/MeVCSProviderRepository"}},"pendingRequests":{"type":"array","items":{"$ref":"#/components/schemas/MeVCSProviderInstallRequest"}},"synchronizing":{"type":"boolean"},"identities":{"type":"array","items":{"$ref":"#/components/schemas/MeVCSProviderIdentity"}},"installUrl":{"type":"string","description":"Forge distribution link for Bitbucket. Empty for GitHub."},"installedWorkspaces":{"type":"array","items":{"$ref":"#/components/schemas/MeVCSProviderInstalledWorkspace"},"description":"Bitbucket installations accessible to the linked account, even without repositories."},"accountConnectionRequired":{"type":"boolean","description":"True when Sign in with GitHub can start. A self-hosted GitHub App leaves\nthis false and continues to organization selection."}}},"MeLastLocation":{"type":"object","properties":{"path":{"type":"string"},"updatedAt":{"type":"string","format":"date-time"}},"description":"LastLocation is a saved in-app path (e.g. \"/acme/apps/deploy?run=42\") that\nthe UI can navigate back to. It is opaque to the backend beyond being a\nsafe, relative, same-origin path."},"MeListTokensResponse":{"type":"object","properties":{"tokens":{"type":"array","items":{"$ref":"#/components/schemas/MeUserAPIToken"}}}},"MeMeResponse":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/SuperplaneMeUser"}}},"MeNotificationSettings":{"type":"object","properties":{"workspaces":{"$ref":"#/components/schemas/NotificationSettingsWorkspaces"},"browser":{"$ref":"#/components/schemas/NotificationSettingsBrowser"}},"description":"NotificationSettings is a user's organization-wide configuration for\nwork order notifications. A missing row defaults to email for all\nworkspace events and keeps the browser channel off."},"MeNotificationSettingsType":{"type":"string","enum":["TYPE_UNSPECIFIED","TYPE_WORK_ORDER_STATUS_OWNED","TYPE_WORK_ORDER_STATUS_NOTE_OWNED","TYPE_WORK_ORDER_AGENT_QUESTION","TYPE_WORK_ORDER_PLAN_READY"],"default":"TYPE_UNSPECIFIED"},"MeRefreshVCSProviderOnboardingBody":{"type":"object","properties":{"repositoryId":{"type":"string","format":"int64"}}},"MeRefreshVCSProviderOnboardingResponse":{"type":"object"},"MeRegenerateTokenResponse":{"type":"object","properties":{"token":{"type":"string"}}},"MeRevokeTokenResponse":{"type":"object"},"MeSaveLastLocationRequest":{"type":"object","properties":{"path":{"type":"string"}}},"MeSaveLastLocationResponse":{"type":"object","properties":{"lastLocation":{"$ref":"#/components/schemas/MeLastLocation"}}},"MeSelectVCSProviderOnboardingIdentityBody":{"type":"object","properties":{"userId":{"type":"string","format":"int64"},"providerUserId":{"type":"string"}}},"MeSelectVCSProviderOnboardingIdentityResponse":{"type":"object"},"MeStartVCSProviderInstallationBody":{"type":"object"},"MeStartVCSProviderInstallationResponse":{"type":"object","properties":{"url":{"type":"string"}}},"MeUpdateNotificationSettingsRequest":{"type":"object","properties":{"settings":{"$ref":"#/components/schemas/MeNotificationSettings"}}},"MeUpdateNotificationSettingsResponse":{"type":"object","properties":{"settings":{"$ref":"#/components/schemas/MeNotificationSettings"}}},"MeUserAPIToken":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":"string","format":"date-time"}}},"MeVCSProviderIdentity":{"type":"object","properties":{"userId":{"type":"string","format":"int64"},"login":{"type":"string"},"providerUserId":{"type":"string","description":"Bitbucket account UUID. GitHub leaves this empty and uses user_id."}}},"MeVCSProviderInstallRequest":{"type":"object","properties":{"requestId":{"type":"string","format":"int64"},"accountLogin":{"type":"string"},"accountType":{"type":"string"},"requestedAt":{"type":"string","format":"date-time"}}},"MeVCSProviderInstalledWorkspace":{"type":"object","properties":{"installationId":{"type":"string"},"externalId":{"type":"string"},"slug":{"type":"string"}}},"MeVCSProviderRepository":{"type":"object","properties":{"repositoryId":{"type":"string","format":"int64"},"installationId":{"type":"string","format":"int64"},"fullName":{"type":"string"},"private":{"type":"boolean"},"defaultBranch":{"type":"string"},"accountLogin":{"type":"string"},"accountType":{"type":"string"},"externalId":{"type":"string","description":"Bitbucket repository UUID. GitHub leaves this empty and uses repository_id."}}},"MeVerifyVCSProviderInstallationsBody":{"type":"object"},"MeVerifyVCSProviderInstallationsResponse":{"type":"object"},"NotificationSettingsBrowser":{"type":"object","properties":{"scope":{"$ref":"#/components/schemas/NotificationSettingsWorkspaceScope"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/NotificationSettingsWorkspaceFilter"}},"eventTypes":{"type":"array","items":{"$ref":"#/components/schemas/MeNotificationSettingsType"},"description":"event_types applies when scope is ALL. An empty list means no types."},"showWhileViewing":{"type":"boolean"}}},"NotificationSettingsWorkspaceFilter":{"type":"object","properties":{"workspaceId":{"type":"string"},"workspaceKey":{"type":"string"},"eventTypes":{"type":"array","items":{"$ref":"#/components/schemas/MeNotificationSettingsType"}}}},"NotificationSettingsWorkspaceScope":{"type":"string","enum":["WORKSPACE_SCOPE_UNSPECIFIED","WORKSPACE_SCOPE_ALL","WORKSPACE_SCOPE_FILTERED","WORKSPACE_SCOPE_NONE"],"default":"WORKSPACE_SCOPE_UNSPECIFIED"},"NotificationSettingsWorkspaces":{"type":"object","properties":{"scope":{"$ref":"#/components/schemas/NotificationSettingsWorkspaceScope"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/NotificationSettingsWorkspaceFilter"}},"eventTypes":{"type":"array","items":{"$ref":"#/components/schemas/MeNotificationSettingsType"},"description":"event_types applies when scope is ALL. An empty list means no types."}}},"OrganizationsBillingPlanOption":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"priceCents":{"type":"string","format":"int64"},"perSeat":{"type":"boolean"},"requirePaymentMethod":{"type":"boolean"},"subscriptionRequired":{"type":"boolean"},"seatMaximum":{"type":"integer","format":"int32"}}},"OrganizationsBrowserAction":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string"},"formFields":{"type":"object","additionalProperties":{"type":"string"}},"description":{"type":"string"}}},"OrganizationsCancelInvitationResponse":{"type":"object"},"OrganizationsCancelOrganizationSubscriptionBody":{"type":"object"},"OrganizationsCreateBillingPortalSessionBody":{"type":"object"},"OrganizationsCreateBillingPortalSessionResponse":{"type":"object","properties":{"portalUrl":{"type":"string"},"sessionToken":{"type":"string"}}},"OrganizationsCreateBusinessCheckoutBody":{"type":"object"},"OrganizationsCreateBusinessCheckoutResponse":{"type":"object","properties":{"checkoutUrl":{"type":"string"}}},"OrganizationsCreateHostedCreditCheckoutBody":{"type":"object","properties":{"productId":{"type":"string"},"customerIpAddress":{"type":"string","description":"Ignored. SuperPlane sends Polar the client IP from proxy headers only."},"creditAmountCents":{"type":"string","format":"int64","description":"The credit amount the buyer reviewed. Must match the catalog for a fixed pack."},"expectedSubtotalCents":{"type":"string","format":"int64","description":"The pre-tax subtotal the buyer confirmed. Checkout rejects a changed quote."}}},"OrganizationsCreateHostedCreditCheckoutResponse":{"type":"object","properties":{"checkoutUrl":{"type":"string"}}},"OrganizationsCreateIntegrationBody":{"type":"object","properties":{"name":{"type":"string"},"integrationName":{"type":"string"},"configuration":{"type":"object"}}},"OrganizationsCreateIntegrationResponse":{"type":"object","properties":{"integration":{"$ref":"#/components/schemas/OrganizationsIntegration"}}},"OrganizationsCreateInvitationBody":{"type":"object","properties":{"email":{"type":"string"},"role":{"type":"string","description":"An organization role name. Defaults to Operator."}}},"OrganizationsCreateInvitationResponse":{"type":"object","properties":{"invitation":{"$ref":"#/components/schemas/OrganizationsOrganizationInvitation"},"acceptanceUrl":{"type":"string"}}},"OrganizationsCreatePaymentMethodSessionBody":{"type":"object"},"OrganizationsDeleteIntegrationResponse":{"type":"object"},"OrganizationsDeleteOrganizationResponse":{"type":"object"},"OrganizationsDescribeIntegrationResponse":{"type":"object","properties":{"integration":{"$ref":"#/components/schemas/OrganizationsIntegration"}}},"OrganizationsDescribeOrganizationBillingResponse":{"type":"object","properties":{"plan":{"type":"string"},"planSource":{"type":"string"},"polarSubscriptionStatus":{"type":"string"},"trialEndsAt":{"type":"string","format":"date-time"},"currentPeriodStart":{"type":"string","format":"date-time"},"currentPeriodEnd":{"type":"string","format":"date-time"},"remainingCreditCents":{"type":"string","format":"int64"},"includedRemainingCents":{"type":"string","format":"int64"},"purchasedRemainingCents":{"type":"string","format":"int64"},"billingEnabled":{"type":"boolean"},"subscriptionCheckoutEnabled":{"type":"boolean"},"creditPurchaseAllowed":{"type":"boolean"},"hasBillingCustomer":{"type":"boolean"},"welcomeRemainingCents":{"type":"string","format":"int64"},"adminRemainingCents":{"type":"string","format":"int64"},"cancelAtPeriodEnd":{"type":"boolean"},"planName":{"type":"string"},"planPriceCents":{"type":"string","format":"int64"},"planPerSeat":{"type":"boolean"},"planCategory":{"type":"string"},"catalogKey":{"type":"string"},"hostedExecutionAllowed":{"type":"boolean"},"requirePaymentMethod":{"type":"boolean"},"hasPaymentMethod":{"type":"boolean"},"availablePlans":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsBillingPlanOption"}},"productFeatures":{"type":"object","additionalProperties":{"type":"boolean"}},"purchasedSeats":{"type":"integer","format":"int32"},"occupiedSeats":{"type":"integer","format":"int32"},"availableSeats":{"type":"integer","format":"int32"},"planMaximumSeats":{"type":"integer","format":"int32"},"purchasableSeats":{"type":"integer","format":"int32"},"expectedRenewalSeats":{"type":"integer","format":"int32"},"currentMonthlyTotalCents":{"type":"string","format":"int64"},"expectedRenewalCents":{"type":"string","format":"int64"},"hostedCreditAvailable":{"type":"boolean","description":"Exact hosted credit gate for new runs. Whole-cent balances round down,\nso clients must use this flag instead of remaining_credit_cents."},"lastSeatPurchase":{"$ref":"#/components/schemas/OrganizationsSeatPurchase"},"pendingInvitationSeats":{"type":"integer","format":"int32"},"invitableSeats":{"type":"integer","format":"int32"},"paymentFailedAt":{"type":"string","format":"date-time","description":"When the current renewal payment failure started. Set only while the\nsubscription is past due."},"paidAccessEndsAt":{"type":"string","format":"date-time","description":"When Team features end after a failed renewal payment. Set only while a\ngrace period keeps them on."}}},"OrganizationsDescribeOrganizationResponse":{"type":"object","properties":{"organization":{"$ref":"#/components/schemas/OrganizationsOrganization"}}},"OrganizationsDescribeOrganizationSpendingReportResponse":{"type":"object","properties":{"kpiTotals":{"$ref":"#/components/schemas/OrganizationsSpendingReportTotals"},"explorerTotals":{"$ref":"#/components/schemas/OrganizationsSpendingReportTotals"},"series":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSpendingReportSeriesPoint"}},"seriesKeys":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSpendingReportCatalogItem"}},"breakdown":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSpendingReportBreakdownRow"}},"credit":{"$ref":"#/components/schemas/OrganizationsSpendingReportCreditSnapshot"},"catalogs":{"$ref":"#/components/schemas/OrganizationsSpendingReportCatalogs"}}},"OrganizationsDescribeOrganizationWorkspaceUsageResponse":{"type":"object","properties":{"totalTokens":{"type":"string","format":"int64"},"totalCostCents":{"type":"string","format":"int64"},"periodDays":{"type":"integer","format":"int32"},"byModel":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneOrganizationsUsageByModel"}},"remainingCreditCents":{"type":"string","format":"int64"},"grantTotalCents":{"type":"string","format":"int64"},"hostedBilledCents":{"type":"string","format":"int64"},"remainingCreditWarning":{"type":"boolean"},"billingEnabled":{"type":"boolean"},"hasBillingCustomer":{"type":"boolean"},"superplaneGrantCents":{"type":"string","format":"int64"},"purchasedCreditCents":{"type":"string","format":"int64"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsHostedCreditInvoice"}},"totalDurationSeconds":{"type":"string","format":"int64"},"byMachineType":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneOrganizationsUsageByMachineType"}},"defaultHostedProvider":{"type":"string"},"defaultHostedModel":{"type":"string"},"welcomeCreditExpiresAt":{"type":"string","format":"date-time"}}},"OrganizationsGetInviteLinkResponse":{"type":"object","properties":{"inviteLink":{"$ref":"#/components/schemas/OrganizationsInviteLink"}}},"OrganizationsHostedCreditInvoice":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"amountCents":{"type":"string","format":"int64"},"status":{"type":"string"},"productName":{"type":"string"},"checkoutId":{"type":"string"},"currency":{"type":"string"},"netAmountCents":{"type":"string","format":"int64"},"taxAmountCents":{"type":"string","format":"int64"}}},"OrganizationsHostedCreditProduct":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"amountCents":{"type":"string","format":"int64"}}},"OrganizationsHostedLLMModel":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"OrganizationsIntegration":{"type":"object","properties":{"metadata":{"$ref":"#/components/schemas/OrganizationsIntegrationMetadata"},"spec":{"$ref":"#/components/schemas/OrganizationsIntegrationSpec"},"status":{"$ref":"#/components/schemas/OrganizationsIntegrationStatus"}}},"OrganizationsIntegrationMetadata":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"integrationName":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"OrganizationsIntegrationResourceRef":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"id":{"type":"string"},"url":{"type":"string"}}},"OrganizationsIntegrationSecret":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"editable":{"type":"boolean"}}},"OrganizationsIntegrationSpec":{"type":"object","properties":{"configuration":{"type":"object"}}},"OrganizationsIntegrationStatus":{"type":"object","properties":{"state":{"type":"string"},"stateDescription":{"type":"string"},"metadata":{"type":"object"},"browserAction":{"$ref":"#/components/schemas/OrganizationsBrowserAction"},"usedIn":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationNodeRef"}},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationCapabilityState"}},"setupState":{"$ref":"#/components/schemas/IntegrationSetupState"},"properties":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationProperty"}},"secrets":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsIntegrationSecret"}},"legacySetup":{"type":"boolean"}}},"OrganizationsInvitationSeatSummary":{"type":"object","properties":{"perSeat":{"type":"boolean"},"purchased":{"type":"string","format":"int64"},"occupied":{"type":"string","format":"int64"},"pendingInvitations":{"type":"string","format":"int64"},"invitable":{"type":"string","format":"int64"},"purchasable":{"type":"string","format":"int64"},"memberLimit":{"type":"string","format":"int64"},"paymentBlocked":{"type":"boolean"}}},"OrganizationsInviteLink":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"token":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"OrganizationsListBYOKLLMModelsResponse":{"type":"object","properties":{"connected":{"type":"boolean"},"integrationId":{"type":"string"},"selected":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsHostedLLMModel"}},"candidates":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsHostedLLMModel"}}}},"OrganizationsListHostedCreditProductsResponse":{"type":"object","properties":{"billingEnabled":{"type":"boolean"},"products":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsHostedCreditProduct"}}}},"OrganizationsListHostedLLMModelsResponse":{"type":"object","properties":{"enabled":{"type":"boolean"},"models":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsHostedLLMModel"}}}},"OrganizationsListIntegrationResourcesResponse":{"type":"object","properties":{"resources":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsIntegrationResourceRef"}}}},"OrganizationsListInvitationsResponse":{"type":"object","properties":{"invitations":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsOrganizationInvitation"}},"seats":{"$ref":"#/components/schemas/OrganizationsInvitationSeatSummary"},"invitationDurationDays":{"type":"integer","format":"int32"}}},"OrganizationsListOrganizationCreditGrantsResponse":{"type":"object","properties":{"grants":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsOrganizationCreditGrant"}}}},"OrganizationsListOrganizationHostedLLMModelsResponse":{"type":"object","properties":{"candidates":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsOrganizationHostedLLMModel"}},"selected":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsOrganizationHostedLLMModel"},"description":"Effective organization selection, including inherited candidates for unsaved providers."}}},"OrganizationsListOrganizationRunnerFleetsResponse":{"type":"object","properties":{"fleets":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsOrganizationRunnerFleet"}}}},"OrganizationsListSelectableLLMModelsResponse":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSelectableLLMModel"}}}},"OrganizationsNextIntegrationSetupStepBody":{"type":"object","properties":{"inputs":{"type":"object"},"capabilities":{"type":"array","items":{"type":"string"}}}},"OrganizationsNextIntegrationSetupStepResponse":{"type":"object","properties":{"integration":{"$ref":"#/components/schemas/OrganizationsIntegration"}}},"OrganizationsOrganization":{"type":"object","properties":{"metadata":{"$ref":"#/components/schemas/OrganizationsOrganizationMetadata"},"spec":{"$ref":"#/components/schemas/OrganizationsOrganizationSpec"}}},"OrganizationsOrganizationCreditGrant":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"amountCents":{"type":"string","format":"int64"},"note":{"type":"string"},"actorName":{"type":"string"},"polarOrderId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}}},"OrganizationsOrganizationHostedLLMModel":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"provider":{"type":"string"}}},"OrganizationsOrganizationInvitation":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"invitedBy":{"type":"string"},"inviterName":{"type":"string"},"state":{"type":"string"},"sentAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}},"description":"Tokens and token hashes are never part of an invitation resource."},"OrganizationsOrganizationMetadata":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"slug":{"type":"string","description":"URL-friendly, unique identifier used to route to this organization in\nthe frontend. Editable in organization settings."}}},"OrganizationsOrganizationRunnerFleet":{"type":"object","properties":{"id":{"type":"string"},"scope":{"type":"string"},"spec":{"$ref":"#/components/schemas/OrganizationsOrganizationRunnerFleetSpec"}}},"OrganizationsOrganizationRunnerFleetSpec":{"type":"object","properties":{"operatingSystem":{"type":"string"},"architecture":{"type":"string"},"cpuMillicores":{"type":"integer","format":"int32"},"memoryMb":{"type":"integer","format":"int32"},"diskGb":{"type":"integer","format":"int32"},"capabilities":{"type":"array","items":{"type":"string"}}}},"OrganizationsOrganizationSpec":{"type":"object","properties":{"enabledExperimentalFeatures":{"type":"array","items":{"type":"string"}}}},"OrganizationsPreviewSeatPurchaseBody":{"type":"object","properties":{"additionalSeats":{"type":"integer","format":"int32"}}},"OrganizationsPreviewSeatPurchaseResponse":{"type":"object","properties":{"purchasedSeats":{"type":"integer","format":"int32"},"targetSeats":{"type":"integer","format":"int32"},"seatPriceCents":{"type":"string","format":"int64"},"proratedChargeCents":{"type":"string","format":"int64"},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"},"newMonthlyTotalCents":{"type":"string","format":"int64"},"purchasableSeats":{"type":"integer","format":"int32"},"estimate":{"type":"boolean"},"excludesTax":{"type":"boolean"}}},"OrganizationsPreviousIntegrationSetupStepBody":{"type":"object"},"OrganizationsPreviousIntegrationSetupStepResponse":{"type":"object","properties":{"integration":{"$ref":"#/components/schemas/OrganizationsIntegration"}}},"OrganizationsPurchaseSeatsBody":{"type":"object","properties":{"additionalSeats":{"type":"integer","format":"int32"},"expectedPurchasedSeats":{"type":"integer","format":"int32"}}},"OrganizationsPurchaseSeatsResponse":{"type":"object","properties":{"purchase":{"$ref":"#/components/schemas/OrganizationsSeatPurchase"},"billing":{"$ref":"#/components/schemas/OrganizationsDescribeOrganizationBillingResponse"}}},"OrganizationsQuoteHostedCreditCheckoutResponse":{"type":"object","properties":{"creditAmountCents":{"type":"string","format":"int64"},"processingFeeCents":{"type":"string","format":"int64"},"subtotalCents":{"type":"string","format":"int64"},"currency":{"type":"string"},"fixedFeeCents":{"type":"string","format":"int64"},"percentageFeeBps":{"type":"integer","format":"int32","description":"Percentage of the pre-tax subtotal, in basis points (100 = 1%)."},"percentageFeeCents":{"type":"string","format":"int64","description":"Rounded up to the nearest cent. Together with the fixed fee, equals the processing fee."}}},"OrganizationsRemoveUserResponse":{"type":"object"},"OrganizationsResendInvitationBody":{"type":"object"},"OrganizationsResendInvitationResponse":{"type":"object","properties":{"invitation":{"$ref":"#/components/schemas/OrganizationsOrganizationInvitation"},"acceptanceUrl":{"type":"string"}}},"OrganizationsResetInviteLinkResponse":{"type":"object","properties":{"inviteLink":{"$ref":"#/components/schemas/OrganizationsInviteLink"}}},"OrganizationsResumeOrganizationSubscriptionBody":{"type":"object"},"OrganizationsSeatPurchase":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"fromSeats":{"type":"integer","format":"int32"},"toSeats":{"type":"integer","format":"int32"},"message":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"OrganizationsSelectBillingPlanBody":{"type":"object","properties":{"planKey":{"type":"string"},"returnPath":{"type":"string"},"seats":{"type":"integer","format":"int32"}}},"OrganizationsSelectableLLMModel":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/OrganizationsSelectableLLMNamedID"},"provider":{"$ref":"#/components/schemas/OrganizationsSelectableLLMNamedID"},"model":{"$ref":"#/components/schemas/OrganizationsSelectableLLMNamedID"},"key":{"type":"string"},"label":{"type":"string"}}},"OrganizationsSelectableLLMNamedID":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"OrganizationsSetUserOwnerBody":{"type":"object","properties":{"isOwner":{"type":"boolean"}}},"OrganizationsSetUserOwnerResponse":{"type":"object"},"OrganizationsSpendingReportBreakdownRow":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"totalTokens":{"type":"string","format":"int64"},"durationSeconds":{"type":"string","format":"int64"},"costCents":{"type":"string","format":"int64"},"share":{"type":"number","format":"double"}}},"OrganizationsSpendingReportCatalogItem":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}}},"OrganizationsSpendingReportCatalogs":{"type":"object","properties":{"workspaces":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSpendingReportCatalogItem"}},"users":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSpendingReportCatalogItem"}},"models":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSpendingReportCatalogItem"}},"machines":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSpendingReportCatalogItem"}}}},"OrganizationsSpendingReportCreditSnapshot":{"type":"object","properties":{"remainingCreditCents":{"type":"string","format":"int64"},"grantTotalCents":{"type":"string","format":"int64"},"superplaneGrantCents":{"type":"string","format":"int64"},"purchasedCreditCents":{"type":"string","format":"int64"},"hostedBilledCents":{"type":"string","format":"int64"},"remainingCreditWarning":{"type":"boolean"},"billingEnabled":{"type":"boolean"},"hasBillingCustomer":{"type":"boolean"},"welcomeCreditExpiresAt":{"type":"string","format":"date-time"}}},"OrganizationsSpendingReportSeriesPoint":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"totalCents":{"type":"string","format":"int64"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsSpendingReportSeriesValue"}}}},"OrganizationsSpendingReportSeriesValue":{"type":"object","properties":{"seriesId":{"type":"string"},"costCents":{"type":"string","format":"int64"}}},"OrganizationsSpendingReportTotals":{"type":"object","properties":{"costCents":{"type":"string","format":"int64"},"totalTokens":{"type":"string","format":"int64"},"durationSeconds":{"type":"string","format":"int64"},"hostedCostCents":{"type":"string","format":"int64"},"byokCostCents":{"type":"string","format":"int64"}}},"OrganizationsSyncOrganizationBillingBody":{"type":"object"},"OrganizationsUpdateBYOKLLMModelsBody":{"type":"object","properties":{"provider":{"type":"string"},"allowedModels":{"type":"array","items":{"type":"string"}}}},"OrganizationsUpdateBYOKLLMModelsResponse":{"type":"object","properties":{"selected":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsHostedLLMModel"}}}},"OrganizationsUpdateIntegrationBody":{"type":"object","properties":{"configuration":{"type":"object"},"name":{"type":"string"}}},"OrganizationsUpdateIntegrationCapabilitiesBody":{"type":"object","properties":{"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationCapabilityState"}}}},"OrganizationsUpdateIntegrationCapabilitiesResponse":{"type":"object","properties":{"integration":{"$ref":"#/components/schemas/OrganizationsIntegration"}}},"OrganizationsUpdateIntegrationPropertyBody":{"type":"object","properties":{"propertyName":{"type":"string"},"value":{"type":"string"}}},"OrganizationsUpdateIntegrationPropertyResponse":{"type":"object","properties":{"integration":{"$ref":"#/components/schemas/OrganizationsIntegration"}}},"OrganizationsUpdateIntegrationResponse":{"type":"object","properties":{"integration":{"$ref":"#/components/schemas/OrganizationsIntegration"}}},"OrganizationsUpdateIntegrationSecretBody":{"type":"object","properties":{"secretName":{"type":"string"},"value":{"type":"string"}}},"OrganizationsUpdateIntegrationSecretResponse":{"type":"object","properties":{"integration":{"$ref":"#/components/schemas/OrganizationsIntegration"}}},"OrganizationsUpdateInviteLinkBody":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"OrganizationsUpdateInviteLinkResponse":{"type":"object","properties":{"inviteLink":{"$ref":"#/components/schemas/OrganizationsInviteLink"}}},"OrganizationsUpdateOrganizationBody":{"type":"object","properties":{"organization":{"$ref":"#/components/schemas/OrganizationsOrganization"}}},"OrganizationsUpdateOrganizationHostedLLMModelsBody":{"type":"object","properties":{"allowedModels":{"type":"array","items":{"type":"string"},"description":"Selectable keys from the installation candidates. An empty list disables all hosted models."}}},"OrganizationsUpdateOrganizationHostedLLMModelsResponse":{"type":"object","properties":{"selected":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsOrganizationHostedLLMModel"}}}},"OrganizationsUpdateOrganizationResponse":{"type":"object","properties":{"organization":{"$ref":"#/components/schemas/OrganizationsOrganization"}}},"RolesAssignRoleBody":{"type":"object","properties":{"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"userId":{"type":"string"},"userEmail":{"type":"string"}}},"RolesAssignRoleResponse":{"type":"object"},"RolesCreateRoleRequest":{"type":"object","properties":{"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"role":{"$ref":"#/components/schemas/RolesRole"}}},"RolesCreateRoleResponse":{"type":"object","properties":{"role":{"$ref":"#/components/schemas/RolesRole"}}},"RolesDeleteRoleResponse":{"type":"object"},"RolesDescribeRoleResponse":{"type":"object","properties":{"role":{"$ref":"#/components/schemas/RolesRole"}}},"RolesListRolesResponse":{"type":"object","properties":{"roles":{"type":"array","items":{"$ref":"#/components/schemas/RolesRole"}}}},"RolesRole":{"type":"object","properties":{"metadata":{"$ref":"#/components/schemas/RolesRoleMetadata"},"spec":{"$ref":"#/components/schemas/RolesRoleSpec"}}},"RolesRoleMetadata":{"type":"object","properties":{"name":{"type":"string"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"RolesRoleSpec":{"type":"object","properties":{"displayName":{"type":"string"},"description":{"type":"string"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/AuthorizationPermission"}},"inheritedRole":{"$ref":"#/components/schemas/RolesRole"}}},"RolesUpdateRoleBody":{"type":"object","properties":{"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"role":{"$ref":"#/components/schemas/RolesRole"}}},"RolesUpdateRoleResponse":{"type":"object","properties":{"role":{"$ref":"#/components/schemas/RolesRole"}}},"RunnersCreateFleetRequest":{"type":"object","properties":{"fleetId":{"type":"string"},"spec":{"$ref":"#/components/schemas/RunnersFleetSpec"},"runnerVersion":{"type":"string"},"enabled":{"type":"boolean"}}},"RunnersCreateFleetResponse":{"type":"object","properties":{"fleet":{"$ref":"#/components/schemas/RunnersFleet"}}},"RunnersCreateRunnerBody":{"type":"object","properties":{"taskId":{"type":"string"},"idempotencyKey":{"type":"string"},"ephemeral":{"type":"boolean"}}},"RunnersCreateRunnerResponse":{"type":"object","properties":{"runner":{"$ref":"#/components/schemas/RunnersRunner"},"registrationToken":{"type":"string"},"registrationExpiresAt":{"type":"string","format":"date-time"},"runnerApiUrl":{"type":"string"},"displayName":{"type":"string"}}},"RunnersDeleteRunnerResponse":{"type":"object","properties":{"runner":{"$ref":"#/components/schemas/RunnersRunner"}}},"RunnersDescribeFleetResponse":{"type":"object","properties":{"fleet":{"$ref":"#/components/schemas/RunnersFleet"}}},"RunnersDescribeRunnerResponse":{"type":"object","properties":{"runner":{"$ref":"#/components/schemas/RunnersRunner"}}},"RunnersFleet":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"spec":{"$ref":"#/components/schemas/RunnersFleetSpec"},"runnerVersion":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"RunnersFleetSpec":{"type":"object","properties":{"operatingSystem":{"type":"string"},"architecture":{"type":"string"},"cpuMillicores":{"type":"integer","format":"int32"},"memoryMb":{"type":"integer","format":"int32"},"diskGb":{"type":"integer","format":"int32"},"capabilities":{"type":"array","items":{"type":"string"}}}},"RunnersGetFleetCapacityResponse":{"type":"object","properties":{"runnableTasks":{"type":"string","format":"int64"},"pendingRunners":{"type":"string","format":"int64"},"idleRunners":{"type":"string","format":"int64"},"busyRunners":{"type":"string","format":"int64"},"terminatedRunners":{"type":"string","format":"int64"},"generation":{"type":"string"}}},"RunnersListFleetTasksResponse":{"type":"object","properties":{"tasks":{"type":"array","items":{"$ref":"#/components/schemas/RunnersTask"}},"totalCount":{"type":"string","format":"int64"},"hasNextPage":{"type":"boolean"}}},"RunnersListFleetsResponse":{"type":"object","properties":{"fleets":{"type":"array","items":{"$ref":"#/components/schemas/RunnersFleet"}}}},"RunnersListRunnersResponse":{"type":"object","properties":{"runners":{"type":"array","items":{"$ref":"#/components/schemas/RunnersRunner"}},"totalCount":{"type":"string","format":"int64"},"hasNextPage":{"type":"boolean"}}},"RunnersRunner":{"type":"object","properties":{"id":{"type":"string"},"fleetId":{"type":"string"},"state":{"type":"string"},"runnerVersion":{"type":"string"},"registeredAt":{"type":"string","format":"date-time"},"lastSeenAt":{"type":"string","format":"date-time"},"terminationReason":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"terminatedAt":{"type":"string","format":"date-time"},"ephemeral":{"type":"boolean"},"tags":{"type":"object","additionalProperties":{"type":"string"}},"os":{"type":"string"},"arch":{"type":"string"},"hostname":{"type":"string"},"ip":{"type":"string"}}},"RunnersTask":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"fleetId":{"type":"string"},"runnerId":{"type":"string"},"state":{"type":"string"},"queuedAt":{"type":"string","format":"date-time"},"reservedAt":{"type":"string","format":"date-time"},"startedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"}}},"RunnersUpdateFleetBody":{"type":"object","properties":{"runnerVersion":{"type":"string"},"enabled":{"type":"boolean"},"spec":{"$ref":"#/components/schemas/RunnersFleetSpec"}}},"RunnersUpdateFleetResponse":{"type":"object","properties":{"fleet":{"$ref":"#/components/schemas/RunnersFleet"}}},"SecretLocal":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{"type":"string"}}},"description":"Local secrets are stored and managed by SuperPlane itself."},"SecretsCreateSecretRequest":{"type":"object","properties":{"secret":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"}}},"SecretsCreateSecretResponse":{"type":"object","properties":{"secret":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"}}},"SecretsDeleteSecretKeyResponse":{"type":"object","properties":{"secret":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"}}},"SecretsDeleteSecretResponse":{"type":"object"},"SecretsDescribeSecretResponse":{"type":"object","properties":{"secret":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"}}},"SecretsListSecretsResponse":{"type":"object","properties":{"secrets":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"}}}},"SecretsSecretMetadata":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"SecretsSecretProvider":{"type":"string","enum":["PROVIDER_UNKNOWN","PROVIDER_LOCAL"],"default":"PROVIDER_UNKNOWN"},"SecretsSecretSpec":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/SecretsSecretProvider"},"local":{"$ref":"#/components/schemas/SecretLocal"}}},"SecretsSetSecretKeyBody":{"type":"object","properties":{"value":{"type":"string"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"}}},"SecretsSetSecretKeyResponse":{"type":"object","properties":{"secret":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"}}},"SecretsUpdateSecretBody":{"type":"object","properties":{"secret":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"}}},"SecretsUpdateSecretNameBody":{"type":"object","properties":{"name":{"type":"string"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"}}},"SecretsUpdateSecretNameResponse":{"type":"object","properties":{"secret":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"}}},"SecretsUpdateSecretResponse":{"type":"object","properties":{"secret":{"$ref":"#/components/schemas/SuperplaneSecretsSecret"}}},"SettingsAssignment":{"type":"string","enum":["ASSIGNMENT_UNSPECIFIED","ASSIGNMENT_ANY","ASSIGNMENT_ASSIGNED","ASSIGNMENT_UNASSIGNED"],"default":"ASSIGNMENT_UNSPECIFIED"},"SettingsLabelFilterMode":{"type":"string","enum":["LABEL_FILTER_MODE_UNSPECIFIED","LABEL_FILTER_MODE_INCLUDE","LABEL_FILTER_MODE_EXCLUDE"],"default":"LABEL_FILTER_MODE_UNSPECIFIED","description":" - LABEL_FILTER_MODE_INCLUDE: Analyze only items that carry one of the labels.\n - LABEL_FILTER_MODE_EXCLUDE: Skip items that carry one of the labels."},"SetupStepDefinitionRedirectPrompt":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string"},"formFields":{"type":"object","additionalProperties":{"type":"string"}}}},"SuperplaneCanvasesUserRef":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"SuperplaneComponentsNode":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/ComponentsNodeType"},"component":{"type":"string"},"configuration":{"type":"object"},"metadata":{"type":"object"},"position":{"$ref":"#/components/schemas/ComponentsPosition"},"isCollapsed":{"type":"boolean"},"integration":{"$ref":"#/components/schemas/ComponentsIntegrationRef"},"errorMessage":{"type":"string"},"warningMessage":{"type":"string"},"concurrency":{"$ref":"#/components/schemas/ComponentsConcurrencySpec"}}},"SuperplaneFactoriesUsageByMachineType":{"type":"object","properties":{"machineType":{"type":"string"},"durationSeconds":{"type":"string","format":"int64"},"costCents":{"type":"string","format":"int64"}}},"SuperplaneFactoriesUsageByModel":{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"},"totalTokens":{"type":"string","format":"int64"},"costCents":{"type":"string","format":"int64"}}},"SuperplaneFactoriesUserRef":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"deleted":{"type":"boolean"},"formerMember":{"type":"boolean"}}},"SuperplaneIntegrationsListIntegrationsResponse":{"type":"object","properties":{"integrations":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationsIntegrationDefinition"}},"githubAppConfigured":{"type":"boolean","description":"True when this process holds complete public GitHub App credentials.\nIndependent of per-organization hosted install (factories feature)."}}},"SuperplaneMeUser":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"organizationId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"hasToken":{"type":"boolean"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/AuthorizationPermission"}},"roles":{"type":"array","items":{"type":"string"}},"groups":{"type":"array","items":{"type":"string"}},"isOwner":{"type":"boolean"},"browserNotificationPreferences":{"$ref":"#/components/schemas/MeBrowserNotificationPreferences"}}},"SuperplaneOrganizationsListIntegrationsResponse":{"type":"object","properties":{"integrations":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationsIntegration"}}}},"SuperplaneOrganizationsUsageByMachineType":{"type":"object","properties":{"machineType":{"type":"string"},"durationSeconds":{"type":"string","format":"int64"},"costCents":{"type":"string","format":"int64"}}},"SuperplaneOrganizationsUsageByModel":{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"},"totalTokens":{"type":"string","format":"int64"},"costCents":{"type":"string","format":"int64"}}},"SuperplaneSecretsSecret":{"type":"object","properties":{"metadata":{"$ref":"#/components/schemas/SecretsSecretMetadata"},"spec":{"$ref":"#/components/schemas/SecretsSecretSpec"}}},"SuperplaneUsersUser":{"type":"object","properties":{"metadata":{"$ref":"#/components/schemas/UsersUserMetadata"},"spec":{"$ref":"#/components/schemas/UsersUserSpec"},"status":{"$ref":"#/components/schemas/UsersUserStatus"}}},"TriggersDescribeTriggerResponse":{"type":"object","properties":{"trigger":{"$ref":"#/components/schemas/TriggersTrigger"}}},"TriggersListTriggersResponse":{"type":"object","properties":{"triggers":{"type":"array","items":{"$ref":"#/components/schemas/TriggersTrigger"}}}},"TriggersTrigger":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"},"color":{"type":"string"},"configuration":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationField"}},"exampleData":{"type":"object"}}},"UsersAccountProvider":{"type":"object","properties":{"providerType":{"type":"string"},"providerId":{"type":"string"},"email":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"UsersListUsersResponse":{"type":"object","properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/SuperplaneUsersUser"}},"seatLimit":{"type":"integer","format":"int32"}}},"UsersRoleAssignment":{"type":"object","properties":{"roleName":{"type":"string"},"roleDisplayName":{"type":"string"},"roleDescription":{"type":"string"},"domainType":{"$ref":"#/components/schemas/AuthorizationDomainType"},"domainId":{"type":"string"},"assignedAt":{"type":"string","format":"date-time"}}},"UsersUserMetadata":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"UsersUserSpec":{"type":"object","properties":{"displayName":{"type":"string"}}},"UsersUserStatus":{"type":"object","properties":{"accountProviders":{"type":"array","items":{"$ref":"#/components/schemas/UsersAccountProvider"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/UsersRoleAssignment"}},"isOwner":{"type":"boolean"}}},"WidgetsDescribeWidgetResponse":{"type":"object","properties":{"widget":{"$ref":"#/components/schemas/WidgetsWidget"}}},"WidgetsListWidgetsResponse":{"type":"object","properties":{"widgets":{"type":"array","items":{"$ref":"#/components/schemas/WidgetsWidget"}}}},"WidgetsWidget":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"},"color":{"type":"string"},"configuration":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationField"}}}},"WorkOrderCheckFormat":{"type":"string","enum":["FORMAT_UNSPECIFIED","FORMAT_FRACTION","FORMAT_PERCENT","FORMAT_BOOLEAN"],"default":"FORMAT_UNSPECIFIED","description":" - FORMAT_BOOLEAN: Pass/fail verdict: score is 1 (pass) or 0 (fail), max_score is 1."},"WorkOrderCheckLevel":{"type":"string","enum":["LEVEL_UNSPECIFIED","LEVEL_POSITIVE","LEVEL_NEUTRAL","LEVEL_CAUTION","LEVEL_CRITICAL"],"default":"LEVEL_UNSPECIFIED"},"WorkOrderExecutionRunRef":{"type":"object","properties":{"id":{"type":"string"},"appId":{"type":"string"},"appName":{"type":"string"}}},"googleRpcStatus":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/protobufAny"}}}},"protobufAny":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"protobufNullValue":{"type":"string","enum":["NULL_VALUE"],"default":"NULL_VALUE","description":"`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value."}}},"servers":[{"url":"https://app.superplane.com"}],"x-source":{"repository":"superplanehq/superplane","ref":"v1.0.0-rc7","commit":"eca2e98cdba7178dad4889e5e0f573fdd03aed6a","generator":"grpc-gateway protoc-gen-openapiv2 v2.29.0","sha256":"56e93870b296c69b7d399d8709dc976132280ba53f588f745259c3e7e27e41fb"}}
