diff --git a/apps/engine/docs/openapi.yaml b/apps/engine/docs/openapi.yaml index 15fa333146..e965d0ce82 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 @@ -258,10 +256,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 @@ -300,10 +298,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 @@ -328,9 +326,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - put: security: - Bearer: [] + put: description: Update session verification settings for the caller tags: - Admin @@ -368,10 +366,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 @@ -412,10 +410,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 @@ -449,10 +447,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 @@ -518,11 +516,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 @@ -566,11 +563,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 @@ -620,11 +617,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. @@ -677,11 +674,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 @@ -725,6 +722,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + security: + - Bearer: [] + - Bearer: [] /v1/config: get: description: Get the Engine configuration @@ -741,9 +741,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: @@ -821,10 +818,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: @@ -879,6 +877,8 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + security: + - Bearer: [] /v1/health: get: description: Check if Arcade Engine is healthy @@ -901,8 +901,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 @@ -958,9 +956,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Creates a new hook configuration tags: - Hooks @@ -1005,10 +1003,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: @@ -1042,10 +1040,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 @@ -1093,9 +1091,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a hook by ID tags: - Hooks @@ -1134,9 +1132,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Updates an existing hook configuration tags: - Hooks @@ -1181,10 +1179,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 @@ -1230,9 +1228,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,10 +1269,10 @@ paths: 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 @@ -1317,9 +1315,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a plugin by ID tags: - Plugins @@ -1364,9 +1362,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Updates an existing plugin configuration tags: - Plugins @@ -1411,10 +1409,10 @@ paths: 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 @@ -1468,9 +1466,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. @@ -1529,10 +1527,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 @@ -1583,10 +1581,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 @@ -1642,9 +1640,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. @@ -1715,9 +1713,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a gateway by ID tags: - Gateways @@ -1769,9 +1767,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. @@ -1842,10 +1840,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. @@ -1916,10 +1914,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. @@ -1992,10 +1990,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 @@ -2057,9 +2055,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Creates a new hook configuration tags: - Hooks @@ -2110,10 +2108,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: @@ -2153,10 +2151,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 @@ -2210,9 +2208,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a hook by ID tags: - Hooks @@ -2257,9 +2255,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Updates an existing hook configuration tags: - Hooks @@ -2310,10 +2308,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 @@ -2365,9 +2363,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,10 +2410,10 @@ paths: 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 @@ -2464,9 +2462,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Deletes a plugin by ID tags: - Plugins @@ -2517,9 +2515,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Updates an existing plugin configuration tags: - Plugins @@ -2570,10 +2568,10 @@ paths: 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 @@ -2669,10 +2667,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 @@ -2775,10 +2773,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 @@ -2870,10 +2868,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 @@ -2945,6 +2943,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 @@ -2962,9 +2962,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: @@ -3058,11 +3055,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 @@ -3106,11 +3103,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. @@ -3168,10 +3165,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: @@ -3216,10 +3214,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. @@ -3277,10 +3275,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 @@ -3339,10 +3337,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 @@ -3405,10 +3403,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 @@ -3438,9 +3436,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - post: security: - Bearer: [] + post: description: Create a worker tags: - Admin @@ -3472,10 +3470,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 @@ -3507,10 +3505,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 @@ -3536,9 +3534,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - delete: security: - Bearer: [] + delete: description: Delete a worker tags: - Admin @@ -3566,9 +3564,9 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" - patch: security: - Bearer: [] + patch: description: Update a worker tags: - Admin @@ -3607,10 +3605,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 @@ -3636,10 +3634,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 @@ -3665,10 +3663,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 @@ -3704,6 +3702,8 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + security: + - Bearer: [] externalDocs: description: Documentation url: https://docs.arcade.dev