diff --git a/apps/engine/docs/openapi.yaml b/apps/engine/docs/openapi.yaml index 82861ef8a7..d455a296c6 100644 --- a/apps/engine/docs/openapi.yaml +++ b/apps/engine/docs/openapi.yaml @@ -13,8 +13,6 @@ info: paths: /v1/admin/auth_providers: get: - security: - - Bearer: [] description: List a page of auth providers that are available to the caller tags: - Admin @@ -33,9 +31,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Create a new auth provider tags: - Admin @@ -67,10 +65,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/admin/auth_providers/{id}": - get: security: - Bearer: [] + "/v1/admin/auth_providers/{id}": + get: description: Get the details of a specific auth provider tags: - Admin @@ -108,9 +106,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Delete a specific auth provider tags: - Admin @@ -148,9 +146,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Patch an existing auth provider tags: - Admin @@ -188,10 +186,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/admin/secrets: - get: security: - Bearer: [] + /v1/admin/secrets: + get: description: List all secrets that are visible to the caller tags: - Admin @@ -227,10 +225,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/admin/secrets/{secret_id}": - delete: security: - Bearer: [] + "/v1/admin/secrets/{secret_id}": + delete: description: Delete a secret by its ID tags: - Admin @@ -264,10 +262,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/admin/secrets/{secret_key}": - post: security: - Bearer: [] + "/v1/admin/secrets/{secret_key}": + post: description: Create or update a secret tags: - Admin @@ -306,10 +304,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/admin/settings/session_verification: - get: security: - Bearer: [] + /v1/admin/settings/session_verification: + get: description: Get the current session verification settings for the caller tags: - Admin @@ -334,9 +332,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - put: security: - Bearer: [] + put: description: Update session verification settings for the caller tags: - Admin @@ -374,10 +372,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/admin/user_connections: - get: security: - Bearer: [] + /v1/admin/user_connections: + get: description: List all auth connections tags: - Admin @@ -418,10 +416,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/admin/user_connections/{id}": - delete: security: - Bearer: [] + "/v1/admin/user_connections/{id}": + delete: description: Delete a user/auth provider connection tags: - Admin @@ -455,10 +453,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/apps: - get: security: - Bearer: [] + /v1/apps: + get: description: "Lists the apps the user can act on through this project, ordered by app_id, with whether each is connected and, when it is, the account it is connected as and the permissions that connection grants. An app is @@ -524,11 +522,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/auth/authorize: - post: security: - Bearer: [] - - Bearer: [] + /v1/auth/authorize: + post: description: Starts the authorization process for given authorization requirements tags: - Authorization @@ -572,11 +569,11 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/auth/confirm_user: - post: security: - Bearer: [] - Bearer: [] + /v1/auth/confirm_user: + post: description: Confirms a user's details during an authorization flow tags: - Authorization @@ -626,11 +623,11 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/auth/status: - get: security: - Bearer: [] - Bearer: [] + /v1/auth/status: + get: description: >- Checks the status of an ongoing authorization process for a specific tool. @@ -683,11 +680,11 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/auth/validate_custom_verifier: - post: security: - Bearer: [] - Bearer: [] + /v1/auth/validate_custom_verifier: + post: description: Starts a test authorization flow tags: - Authorization @@ -731,6 +728,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + security: + - Bearer: [] + - Bearer: [] /v1/config: get: description: Get the Engine configuration @@ -747,9 +747,6 @@ paths: $ref: "#/components/schemas/schemas.EngineConfigResponse" /v1/formatted_tools: get: - security: - - Bearer: [] - - Bearer: [] description: Returns a page of tools from the engine configuration, optionally filtered by toolkit, formatted for a specific provider tags: @@ -827,10 +824,11 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/formatted_tools/{name}": - get: security: - Bearer: [] + - Bearer: [] + "/v1/formatted_tools/{name}": + get: description: Returns the formatted tool specification for a specific tool, given a provider tags: @@ -885,6 +883,8 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + security: + - Bearer: [] /v1/health: get: description: Check if Arcade Engine is healthy @@ -907,8 +907,6 @@ paths: $ref: "#/components/schemas/schemas.HealthSchema" "/v1/orgs/{org_id}/hooks": get: - security: - - Bearer: [] description: Returns all hooks for the current binding with optional filtering tags: - Hooks @@ -964,9 +962,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Creates a new hook configuration tags: - Hooks @@ -1011,10 +1009,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/hooks/bulk": - patch: security: - Bearer: [] + "/v1/orgs/{org_id}/hooks/bulk": + patch: description: Creates or updates multiple hooks at once. The operation is transactional. tags: @@ -1048,10 +1046,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/hooks/{hook_id}": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/hooks/{hook_id}": + get: description: Returns a single hook by ID tags: - Hooks @@ -1099,9 +1097,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a hook by ID tags: - Hooks @@ -1140,9 +1138,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Updates an existing hook configuration tags: - Hooks @@ -1187,10 +1185,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/plugins": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/plugins": + get: description: Returns all plugins for the current binding tags: - Plugins @@ -1236,9 +1234,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Creates a new plugin with optional inline hooks tags: - Plugins @@ -1271,16 +1269,22 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + "422": + description: Unprocessable Entity + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/plugins/{plugin_id}": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/plugins/{plugin_id}": + get: description: Returns a single plugin by ID tags: - Plugins @@ -1323,9 +1327,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a plugin by ID tags: - Plugins @@ -1370,9 +1374,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Updates an existing plugin configuration tags: - Plugins @@ -1411,16 +1415,22 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + "422": + description: Unprocessable Entity + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/gateways": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/gateways": + get: description: Returns a paginated list of gateways for the current project tags: - Gateways @@ -1474,9 +1484,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Creates a new gateway in the current project. When auth_type is user_source, user_source_id is required and must be a us_-prefixed KSUID from the Coordinator user-sources API. @@ -1535,10 +1545,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/gateways/slug": - post: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/gateways/slug": + post: description: Checks whether a gateway slug is available for use tags: - Gateways @@ -1589,10 +1599,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}": + get: description: Returns a single gateway by ID tags: - Gateways @@ -1648,9 +1658,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - put: security: - Bearer: [] + put: description: Replaces the full configuration of an existing gateway. When auth_type is user_source, user_source_id is required and must be a us_-prefixed KSUID from the Coordinator user-sources API. @@ -1721,9 +1731,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a gateway by ID tags: - Gateways @@ -1775,9 +1785,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Partially updates an existing gateway configuration. When auth_type is user_source, user_source_id is required and must be a us_-prefixed KSUID from the Coordinator user-sources API. @@ -1848,10 +1858,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}/suggestions": - post: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}/suggestions": + post: description: Creates a free-text capability suggestion on behalf of an end user. The user ID is caller-asserted and is not verified against the upstream identity provider. @@ -1922,10 +1932,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}/suggestions/{id}/resolve": - post: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}/suggestions/{id}/resolve": + post: description: Marks a suggestion as resolved, optionally with resolution notes. Resolving an already-resolved suggestion succeeds and preserves the original resolution. @@ -1998,10 +2008,10 @@ paths: "*/*": schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/hooks": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/hooks": + get: description: Returns all hooks for the current binding with optional filtering tags: - Hooks @@ -2063,9 +2073,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Creates a new hook configuration tags: - Hooks @@ -2116,10 +2126,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/hooks/bulk": - patch: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/hooks/bulk": + patch: description: Creates or updates multiple hooks at once. The operation is transactional. tags: @@ -2159,10 +2169,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/hooks/{hook_id}": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/hooks/{hook_id}": + get: description: Returns a single hook by ID tags: - Hooks @@ -2216,9 +2226,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a hook by ID tags: - Hooks @@ -2263,9 +2273,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Updates an existing hook configuration tags: - Hooks @@ -2316,10 +2326,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/plugins": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/plugins": + get: description: Returns all plugins for the current binding tags: - Plugins @@ -2371,9 +2381,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Creates a new plugin with optional inline hooks tags: - Plugins @@ -2412,16 +2422,22 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + "422": + description: Unprocessable Entity + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/plugins/{plugin_id}": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/plugins/{plugin_id}": + get: description: Returns a single plugin by ID tags: - Plugins @@ -2470,9 +2486,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a plugin by ID tags: - Plugins @@ -2523,9 +2539,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Updates an existing plugin configuration tags: - Plugins @@ -2570,16 +2586,22 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + "422": + description: Unprocessable Entity + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/suggestions": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/suggestions": + get: description: Returns suggestions from every gateway in the project, ordered by supporters descending. Without gateway_id, only gateways bound to this project are included. By default only unresolved suggestions are @@ -2675,10 +2697,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/tool_executions": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/tool_executions": + get: description: Returns a paginated list of the project's tool executions tags: - Tools @@ -2781,10 +2803,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/tool_executions/count": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/tool_executions/count": + get: description: Returns the number of the project's tool executions matching the filters tags: - Tools @@ -2876,10 +2898,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/orgs/{org_id}/projects/{project_id}/tool_executions/{id}": - get: security: - Bearer: [] + "/v1/orgs/{org_id}/projects/{project_id}/tool_executions/{id}": + get: description: Returns the details for a single tool execution tags: - Tools @@ -2951,6 +2973,8 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + security: + - Bearer: [] /v1/swagger: get: description: Get the OpenAPI 3.0 specification in JSON format @@ -2968,9 +2992,6 @@ paths: additionalProperties: true /v1/tools: get: - security: - - Bearer: [] - - Bearer: [] description: Returns a page of tools from the engine configuration, optionally filtered by toolkit and/or metadata tags: @@ -3064,11 +3085,11 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/tools/authorize: - post: security: - Bearer: [] - Bearer: [] + /v1/tools/authorize: + post: description: Authorizes a user for a specific tool by name tags: - Tools @@ -3112,11 +3133,11 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/tools/execute: - post: security: - Bearer: [] - Bearer: [] + /v1/tools/execute: + post: description: Executes a tool by name and arguments. When the tool was surfaced by Select Tools, pass that response's query_id to correlate the execution with the selection that produced it. @@ -3174,10 +3195,11 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/tools/requirements: - post: security: - Bearer: [] + - Bearer: [] + /v1/tools/requirements: + post: description: Checks authorization and secret requirements for multiple tools. Optionally starts OAuth flows for unmet auth requirements. tags: @@ -3222,10 +3244,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/tools/search: - post: security: - Bearer: [] + /v1/tools/search: + post: description: Searches the caller's available tools by keyword and returns a ranked list of matches. Use this to browse what tools exist; use Select Tools to get tools for a specific task. @@ -3283,10 +3305,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/tools/select: - post: security: - Bearer: [] + /v1/tools/select: + post: description: Selects the tools best suited to each of the given tasks, returning per-task suggestions with their input schemas. Pass the returned query_id to Execute Tool so the execution is correlated with the @@ -3345,10 +3367,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/tools/{name}": - get: security: - Bearer: [] + "/v1/tools/{name}": + get: description: Returns the arcade tool specification for a specific tool tags: - Tools @@ -3411,10 +3433,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/workers: - get: security: - Bearer: [] + /v1/workers: + get: description: List all workers with their definitions tags: - Admin @@ -3444,9 +3466,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Create a worker tags: - Admin @@ -3478,10 +3500,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - /v1/workers/test: - post: security: - Bearer: [] + /v1/workers/test: + post: description: Test a worker connection before adding it to the system tags: - Admin @@ -3513,10 +3535,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/workers/{id}": - get: security: - Bearer: [] + "/v1/workers/{id}": + get: description: Get a worker by ID tags: - Admin @@ -3542,9 +3564,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Delete a worker tags: - Admin @@ -3572,9 +3594,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Update a worker tags: - Admin @@ -3613,10 +3635,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/workers/{id}/authorize": - get: security: - Bearer: [] + "/v1/workers/{id}/authorize": + get: description: Authorize a worker tags: - Admin @@ -3642,10 +3664,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/workers/{id}/health": - get: security: - Bearer: [] + "/v1/workers/{id}/health": + get: description: Get the health of a worker tags: - Admin @@ -3671,10 +3693,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/workers/{id}/tools": - get: security: - Bearer: [] + "/v1/workers/{id}/tools": + get: description: Returns a page of tools tags: - Admin @@ -3710,10 +3732,10 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "/v1/workers/{id}/tools/refresh": - post: security: - Bearer: [] + "/v1/workers/{id}/tools/refresh": + post: description: Re-read a worker's tools from the server and replace its tool catalog with them tags: @@ -3764,6 +3786,8 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + security: + - Bearer: [] externalDocs: description: Documentation url: https://docs.arcade.dev @@ -6973,6 +6997,7 @@ components: - TOOL_RUNTIME_BAD_OUTPUT_VALUE - TOOL_RUNTIME_RETRY - TOOL_RUNTIME_CONTEXT_REQUIRED + - TOOL_RUNTIME_ERROR - TOOL_RUNTIME_FATAL - CONTEXT_CHECK_FAILED - CONTEXT_DENIED @@ -6997,6 +7022,7 @@ components: - ErrorKindToolRuntimeBadOutputValue - ErrorKindToolRuntimeRetry - ErrorKindToolRuntimeContextRequired + - ErrorKindToolRuntimeError - ErrorKindToolRuntimeFatal - ErrorKindContextCheckFailed - ErrorKindContextDenied