Arcade 1.11.0
App version 5e1519c · released 2026-09-29 · supported until 2026-12-28 · previous 1.10.1
API
The OpenAPI spec of each service with a public HTTP API, as this release ships it. Changes are classified by oasdiff v1.33.0.
engine
Changed since 1.10.1: 12 breaking, 183 compatible.
View API referenceengine.yamlengine.diff
| Level | Endpoint | Change |
|---|---|---|
| Breaking | POST /v1/chat/completions | api path removed without deprecation |
| Breaking | GET /v1/hooks | api path removed without deprecation |
| Breaking | POST /v1/hooks | api path removed without deprecation |
| Breaking | PATCH /v1/hooks/bulk | api path removed without deprecation |
| Breaking | DELETE /v1/hooks/{hook_id} | api path removed without deprecation |
| Breaking | GET /v1/hooks/{hook_id} | api path removed without deprecation |
| Breaking | PATCH /v1/hooks/{hook_id} | api path removed without deprecation |
| Breaking | GET /v1/plugins | api path removed without deprecation |
| Breaking | POST /v1/plugins | api path removed without deprecation |
| Breaking | DELETE /v1/plugins/{plugin_id} | api path removed without deprecation |
| Breaking | GET /v1/plugins/{plugin_id} | api path removed without deprecation |
| Breaking | PATCH /v1/plugins/{plugin_id} | api path removed without deprecation |
| Compatible | — | removed the schema schemas.ChatMessage |
| Compatible | — | removed the schema schemas.ChatRequest |
| Compatible | — | removed the schema schemas.ChatResponse |
| Compatible | — | removed the schema schemas.Choice |
| Compatible | — | removed the schema schemas.CreateModelRequest |
| Compatible | — | removed the schema schemas.ModelResponse |
| Compatible | — | removed the schema schemas.ModelToolCall |
| Compatible | — | removed the schema schemas.OffsetPage-schemas_ModelResponse |
| Compatible | — | removed the schema schemas.ResponseFormat |
| Compatible | — | removed the schema schemas.ResponseFormatType |
| Compatible | — | removed the schema schemas.StreamOptions |
| Compatible | — | removed the schema schemas.ToolFunctionCall |
| Compatible | — | removed the schema schemas.ToolType |
| Compatible | — | removed the schema schemas.UpdateModelConfigRequest |
| Compatible | — | removed the schema schemas.UpdateModelRequest |
| Compatible | — | removed the schema schemas.UpdateSecretRequest |
| Compatible | — | removed the schema schemas.Usage |
| Compatible | GET /v1/admin/auth_providers | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/admin/auth_providers | removed the optional property page_count from the response with the 200 status |
| Compatible | POST /v1/admin/auth_providers | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/admin/auth_providers | added the optional property authorization to the response with the 500 status |
| Compatible | DELETE /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 400 status |
| Compatible | DELETE /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 404 status |
| Compatible | DELETE /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 404 status |
| Compatible | GET /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 500 status |
| Compatible | PATCH /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 400 status |
| Compatible | PATCH /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 404 status |
| Compatible | PATCH /v1/admin/auth_providers/{id} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/admin/secrets | added the new optional query request parameter limit |
| Compatible | GET /v1/admin/secrets | added the new optional query request parameter offset |
| Compatible | GET /v1/admin/secrets | added the non-success response with the status 400 |
| Compatible | GET /v1/admin/secrets | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/admin/secrets | removed the optional property page_count from the response with the 200 status |
| Compatible | DELETE /v1/admin/secrets/{secret_id} | added the optional property authorization to the response with the 404 status |
| Compatible | DELETE /v1/admin/secrets/{secret_id} | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/admin/secrets/{secret_key} | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/admin/secrets/{secret_key} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/admin/settings/session_verification | added the optional property authorization to the response with the 404 status |
| Compatible | GET /v1/admin/settings/session_verification | added the optional property authorization to the response with the 500 status |
| Compatible | PUT /v1/admin/settings/session_verification | added the optional property authorization to the response with the 400 status |
| Compatible | PUT /v1/admin/settings/session_verification | added the optional property authorization to the response with the 403 status |
| Compatible | PUT /v1/admin/settings/session_verification | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/admin/user_connections | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/admin/user_connections | removed the optional property page_count from the response with the 200 status |
| Compatible | DELETE /v1/admin/user_connections/{id} | added the optional property authorization to the response with the 400 status |
| Compatible | DELETE /v1/admin/user_connections/{id} | added the optional property authorization to the response with the 404 status |
| Compatible | DELETE /v1/admin/user_connections/{id} | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/auth/authorize | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/auth/authorize | added the optional property authorization to the response with the 401 status |
| Compatible | POST /v1/auth/authorize | added the optional property authorization to the response with the 415 status |
| Compatible | POST /v1/auth/authorize | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/auth/confirm_user | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/auth/confirm_user | added the optional property authorization to the response with the 401 status |
| Compatible | POST /v1/auth/confirm_user | added the optional property authorization to the response with the 404 status |
| Compatible | POST /v1/auth/confirm_user | added the optional property authorization to the response with the 415 status |
| Compatible | POST /v1/auth/confirm_user | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/auth/status | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/auth/status | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/auth/status | added the optional property authorization to the response with the 415 status |
| Compatible | GET /v1/auth/status | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/auth/validate_custom_verifier | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/auth/validate_custom_verifier | added the optional property authorization to the response with the 401 status |
| Compatible | POST /v1/auth/validate_custom_verifier | added the optional property authorization to the response with the 415 status |
| Compatible | POST /v1/auth/validate_custom_verifier | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/formatted_tools | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/formatted_tools | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/formatted_tools | added the optional property authorization to the response with the 415 status |
| Compatible | GET /v1/formatted_tools | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/formatted_tools | removed the optional property page_count from the response with the 200 status |
| Compatible | GET /v1/formatted_tools/{name} | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/formatted_tools/{name} | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/formatted_tools/{name} | added the optional property authorization to the response with the 415 status |
| Compatible | GET /v1/formatted_tools/{name} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/orgs/{org_id}/hooks | endpoint added |
| Compatible | POST /v1/orgs/{org_id}/hooks | endpoint added |
| Compatible | PATCH /v1/orgs/{org_id}/hooks/bulk | endpoint added |
| Compatible | DELETE /v1/orgs/{org_id}/hooks/{hook_id} | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/hooks/{hook_id} | endpoint added |
| Compatible | PATCH /v1/orgs/{org_id}/hooks/{hook_id} | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/plugins | endpoint added |
| Compatible | POST /v1/orgs/{org_id}/plugins | endpoint added |
| Compatible | DELETE /v1/orgs/{org_id}/plugins/{plugin_id} | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/plugins/{plugin_id} | endpoint added |
| Compatible | PATCH /v1/orgs/{org_id}/plugins/{plugin_id} | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways | removed the optional property page_count from the response with the 200 status |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways | added the optional property authorization to the response with the 401 status |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways | added the optional property authorization to the response with the 409 status |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways/slug | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways/slug | added the optional property authorization to the response with the 401 status |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways/slug | added the optional property authorization to the response with the 500 status |
| Compatible | DELETE /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 400 status |
| Compatible | DELETE /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 401 status |
| Compatible | DELETE /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 404 status |
| Compatible | DELETE /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 404 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 500 status |
| Compatible | PATCH /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 400 status |
| Compatible | PATCH /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 401 status |
| Compatible | PATCH /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 404 status |
| Compatible | PATCH /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 409 status |
| Compatible | PATCH /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 500 status |
| Compatible | PUT /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 400 status |
| Compatible | PUT /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 401 status |
| Compatible | PUT /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 404 status |
| Compatible | PUT /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 409 status |
| Compatible | PUT /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}/suggestions | endpoint added |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}/suggestions | endpoint added |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}/suggestions/{id}/resolve | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/hooks | endpoint added |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/hooks | endpoint added |
| Compatible | PATCH /v1/orgs/{org_id}/projects/{project_id}/hooks/bulk | endpoint added |
| Compatible | DELETE /v1/orgs/{org_id}/projects/{project_id}/hooks/{hook_id} | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/hooks/{hook_id} | endpoint added |
| Compatible | PATCH /v1/orgs/{org_id}/projects/{project_id}/hooks/{hook_id} | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/plugins | endpoint added |
| Compatible | POST /v1/orgs/{org_id}/projects/{project_id}/plugins | endpoint added |
| Compatible | DELETE /v1/orgs/{org_id}/projects/{project_id}/plugins/{plugin_id} | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/plugins/{plugin_id} | endpoint added |
| Compatible | PATCH /v1/orgs/{org_id}/projects/{project_id}/plugins/{plugin_id} | endpoint added |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions | added the optional property authorization to the response with the 403 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions | removed the optional property page_count from the response with the 200 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/count | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/count | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/count | added the optional property authorization to the response with the 403 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/count | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/{id} | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/{id} | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/{id} | added the optional property authorization to the response with the 403 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/{id} | added the optional property authorization to the response with the 404 status |
| Compatible | GET /v1/orgs/{org_id}/projects/{project_id}/tool_executions/{id} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/tools | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/tools | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/tools | added the optional property authorization to the response with the 415 status |
| Compatible | GET /v1/tools | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/tools | removed the optional property page_count from the response with the 200 status |
| Compatible | POST /v1/tools/authorize | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/tools/authorize | added the optional property authorization to the response with the 401 status |
| Compatible | POST /v1/tools/authorize | added the optional property authorization to the response with the 415 status |
| Compatible | POST /v1/tools/authorize | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/tools/execute | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/tools/execute | added the optional property authorization to the response with the 401 status |
| Compatible | POST /v1/tools/execute | added the optional property authorization to the response with the 403 status |
| Compatible | POST /v1/tools/execute | added the optional property authorization to the response with the 415 status |
| Compatible | POST /v1/tools/execute | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/tools/execute | added the optional property authorization to the response with the 504 status |
| Compatible | POST /v1/tools/requirements | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/tools/requirements | added the optional property authorization to the response with the 401 status |
| Compatible | POST /v1/tools/requirements | added the optional property authorization to the response with the 415 status |
| Compatible | POST /v1/tools/requirements | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/tools/search | endpoint added |
| Compatible | POST /v1/tools/select | endpoint added |
| Compatible | GET /v1/tools/{name} | added the optional property authorization to the response with the 400 status |
| Compatible | GET /v1/tools/{name} | added the optional property authorization to the response with the 401 status |
| Compatible | GET /v1/tools/{name} | added the optional property authorization to the response with the 415 status |
| Compatible | GET /v1/tools/{name} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/workers | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/workers | removed the optional property page_count from the response with the 200 status |
| Compatible | POST /v1/workers | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/workers | added the optional property authorization to the response with the 500 status |
| Compatible | POST /v1/workers/test | added the optional property authorization to the response with the 400 status |
| Compatible | POST /v1/workers/test | added the optional property authorization to the response with the 500 status |
| Compatible | DELETE /v1/workers/{id} | added the optional property authorization to the response with the 404 status |
| Compatible | DELETE /v1/workers/{id} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/workers/{id} | added the optional property authorization to the response with the 500 status |
| Compatible | PATCH /v1/workers/{id} | added the optional property authorization to the response with the 404 status |
| Compatible | PATCH /v1/workers/{id} | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/workers/{id}/authorize | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/workers/{id}/health | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/workers/{id}/tools | added the optional property authorization to the response with the 500 status |
| Compatible | GET /v1/workers/{id}/tools | removed the optional property page_count from the response with the 200 status |
Text diff (3308 lines)
diff --git a/apps/engine/docs/openapi.yaml b/apps/engine/docs/openapi.yamlindex d5b27b0a..789b29a3 100644--- a/apps/engine/docs/openapi.yaml+++ b/apps/engine/docs/openapi.yaml@@ -197,6 +197,17 @@ paths:- Adminsummary: List secretsoperationId: secrets-list+ parameters:+ - description: "Number of items to return (default: 100, max: 25000)"+ name: limit+ in: query+ schema:+ type: integer+ - description: "Offset from the start of the list (default: 0)"+ name: offset+ in: query+ schema:+ type: integerresponses:"200":description: OK@@ -204,6 +215,12 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.OffsetPage-schemas_StoredSecretResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error""500":description: Internal Server Errorcontent:@@ -371,12 +388,12 @@ paths:in: queryschema:type: string- - description: Page size+ - description: "Number of items to return (default: 100, max: 25000)"name: limitin: queryschema:type: integer- - description: Page offset+ - description: "Offset from the start of the list (default: 0)"name: offsetin: queryschema:@@ -639,59 +656,6 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- /v1/chat/completions:- post:- security:- - Bearer: []- description: Interact with language models via OpenAI's chat completions API- tags:- - LLM- summary: Language model chat- operationId: llm-chat- requestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.ChatRequest"- description: Request Data- required: true- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.ChatResponse"- "400":- description: Bad Request- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "401":- description: Unauthorized- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "415":- description: Unsupported Media Type- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "500":- description: Internal Server Error- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "504":- description: Gateway Timeout- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"/v1/config:get:description: Get the Engine configuration@@ -723,7 +687,7 @@ paths:in: queryschema:type: string- - description: "Number of items to return (default: 25, max: 100)"+ - description: "Number of items to return (default: 100, max: 25000)"name: limitin: queryschema:@@ -866,7 +830,7 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.HealthSchema"- /v1/hooks:+ "/v1/orgs/{org_id}/hooks":get:security:- Bearer: []@@ -874,14 +838,19 @@ paths:tags:- Hookssummary: List hooks- operationId: hooks-listparameters:- - description: Limit+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: "Number of items to return (default: 100, max: 25000)"name: limitin: queryschema:type: integer- - description: Offset+ - description: "Offset from the start of the list (default: 0)"name: offsetin: queryschema:@@ -927,14 +896,15 @@ paths:tags:- Hookssummary: Create a hook- operationId: hooks-create+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: stringrequestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.CreateHookRequest"- description: Hook configuration- required: true+ $ref: "#/components/requestBodies/schemas.CreateHookRequest"responses:"201":description: Created@@ -966,7 +936,7 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- /v1/hooks/bulk:+ "/v1/orgs/{org_id}/hooks/bulk":patch:security:- Bearer: []@@ -975,14 +945,15 @@ paths:tags:- Hookssummary: Bulk upsert hooks- operationId: hooks-bulk-upsert+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: stringrequestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.BulkUpsertHooksRequest"- description: Bulk hook configurations- required: true+ $ref: "#/components/requestBodies/schemas.BulkUpsertHooksRequest"responses:"200":description: OK@@ -1002,7 +973,7 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "/v1/hooks/{hook_id}":+ "/v1/orgs/{org_id}/hooks/{hook_id}":get:security:- Bearer: []@@ -1010,8 +981,13 @@ paths:tags:- Hookssummary: Get a hook- operationId: hooks-getparameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string- description: Hook IDname: hook_idin: path@@ -1055,8 +1031,13 @@ paths:tags:- Hookssummary: Delete a hook- operationId: hooks-deleteparameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string- description: Hook IDname: hook_idin: path@@ -1091,8 +1072,13 @@ paths:tags:- Hookssummary: Update a hook- operationId: hooks-updateparameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string- description: Hook IDname: hook_idin: path@@ -1100,12 +1086,7 @@ paths:schema:type: stringrequestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.PatchHookRequest"- description: Hook configuration to update- required: true+ $ref: "#/components/requestBodies/schemas.PatchHookRequest"responses:"200":description: OK@@ -1131,15 +1112,14 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "/v1/orgs/{org_id}/projects/{project_id}/gateways":+ "/v1/orgs/{org_id}/plugins":get:security:- Bearer: []- description: Returns a paginated list of gateways for the current project+ description: Returns all plugins for the current bindingtags:- - Gateways- summary: List gateways- operationId: project-gateways-list+ - Plugins+ summary: List pluginsparameters:- description: Organization IDname: org_id@@ -1147,13 +1127,7 @@ paths:required: trueschema:type: string- - description: Project ID- name: project_id- in: path- required: true- schema:- type: string- - description: "Number of items to return (default: 25, max: 100)"+ - description: "Number of items to return (default: 100, max: 25000)"name: limitin: queryschema:@@ -1163,25 +1137,24 @@ paths:in: queryschema:type: integer+ - description: Binding type filter (e.g., 'tenant')+ name: binding_type+ in: query+ schema:+ type: stringresponses:"200":description: OKcontent:application/json:schema:- $ref: "#/components/schemas/schemas.OffsetPage-schemas_GatewayResponse"+ $ref: "#/components/schemas/schemas.OffsetPage-schemas_PluginResponse""400":description: Bad Requestcontent:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "401":- description: Unauthorized- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error""500":description: Internal Server Errorcontent:@@ -1191,11 +1164,10 @@ paths:post:security:- Bearer: []- description: Creates a new gateway in the current project+ description: Creates a new plugin with optional inline hookstags:- - Gateways- summary: Create a gateway- operationId: project-gateways-create+ - Plugins+ summary: Create a pluginparameters:- description: Organization IDname: org_id@@ -1203,38 +1175,21 @@ paths:required: trueschema:type: string- - description: Project ID- name: project_id- in: path- required: true- schema:- type: stringrequestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.CreateGatewayRequest"- description: Gateway configuration- required: true+ $ref: "#/components/requestBodies/schemas.CreatePluginRequest"responses:"201":description: Createdcontent:application/json:schema:- $ref: "#/components/schemas/schemas.GatewayResponse"+ $ref: "#/components/schemas/schemas.CreatePluginResponse""400":description: Bad Requestcontent:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "401":- description: Unauthorized- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error""409":description: Conflictcontent:@@ -1247,15 +1202,14 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "/v1/orgs/{org_id}/projects/{project_id}/gateways/slug":- post:+ "/v1/orgs/{org_id}/plugins/{plugin_id}":+ get:security:- Bearer: []- description: Checks whether a gateway slug is available for use+ description: Returns a single plugin by IDtags:- - Gateways- summary: Check gateway slug availability- operationId: project-gateways-slug-info+ - Plugins+ summary: Get a pluginparameters:- description: Organization IDname: org_id@@ -1263,34 +1217,27 @@ paths:required: trueschema:type: string- - description: Project ID- name: project_id+ - description: Plugin ID+ name: plugin_idin: pathrequired: trueschema:type: string- requestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.SlugInfoRequest"- description: Slug info request- required: trueresponses:"200":description: OKcontent:application/json:schema:- $ref: "#/components/schemas/schemas.SlugInfoResponse"+ $ref: "#/components/schemas/schemas.PluginResponse""400":description: Bad Requestcontent:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "401":- description: Unauthorized+ "404":+ description: Not Foundcontent:application/json:schema:@@ -1301,15 +1248,13 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "/v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}":- get:+ delete:security:- Bearer: []- description: Returns a single gateway by ID+ description: Deletes a plugin by IDtags:- - Gateways- summary: Get a gateway- operationId: project-gateways-get+ - Plugins+ summary: Delete a pluginparameters:- description: Organization IDname: org_id@@ -1317,39 +1262,29 @@ paths:required: trueschema:type: string- - description: Project ID- name: project_id- in: path- required: true- schema:- type: string- - description: Gateway ID- name: gateway_id+ - description: Plugin ID+ name: plugin_idin: pathrequired: trueschema:type: stringresponses:- "200":- description: OK- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.GatewayResponse"+ "204":+ description: No Content"400":description: Bad Requestcontent:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "401":- description: Unauthorized+ "404":+ description: Not Foundcontent:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "404":- description: Not Found+ "409":+ description: Conflictcontent:application/json:schema:@@ -1360,14 +1295,13 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- put:+ patch:security:- Bearer: []- description: Replaces the full configuration of an existing gateway+ description: Updates an existing plugin configurationtags:- - Gateways- summary: Update a gateway- operationId: project-gateways-update+ - Plugins+ summary: Update a pluginparameters:- description: Organization IDname: org_id@@ -1375,32 +1309,78 @@ paths:required: trueschema:type: string- - description: Project ID- name: project_id- in: path- required: true- schema:- type: string- - description: Gateway ID- name: gateway_id+ - description: Plugin ID+ name: plugin_idin: pathrequired: trueschema:type: stringrequestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.UpdateGatewayRequest"- description: Gateway configuration- required: true+ $ref: "#/components/requestBodies/schemas.PatchPluginRequest"responses:"200":description: OKcontent:application/json:schema:- $ref: "#/components/schemas/schemas.GatewayResponse"+ $ref: "#/components/schemas/schemas.PluginResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ 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: []+ description: Returns a paginated list of gateways for the current project+ tags:+ - Gateways+ summary: List gateways+ operationId: project-gateways-list+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: "Number of items to return (default: 100, max: 25000)"+ name: limit+ in: query+ schema:+ type: integer+ - description: "Offset from the start of the list (default: 0)"+ name: offset+ in: query+ schema:+ type: integer+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.OffsetPage-schemas_GatewayResponse""400":description: Bad Requestcontent:@@ -1413,8 +1393,57 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "404":- description: Not Found+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ post:+ security:+ - Bearer: []+ 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.+ tags:+ - Gateways+ summary: Create a gateway+ operationId: project-gateways-create+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.CreateGatewayRequest"+ description: Gateway configuration+ required: true+ responses:+ "201":+ description: Created+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.GatewayResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorizedcontent:application/json:schema:@@ -1431,14 +1460,69 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- delete:+ "/v1/orgs/{org_id}/projects/{project_id}/gateways/slug":+ post:security:- Bearer: []- description: Deletes a gateway by ID+ description: Checks whether a gateway slug is available for usetags:- Gateways- summary: Delete a gateway- operationId: project-gateways-delete+ summary: Check gateway slug availability+ operationId: project-gateways-slug-info+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.SlugInfoRequest"+ description: Slug info request+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.SlugInfoResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ 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/{gateway_id}":+ get:+ security:+ - Bearer: []+ description: Returns a single gateway by ID+ tags:+ - Gateways+ summary: Get a gateway+ operationId: project-gateways-getparameters:- description: Organization IDname: org_id@@ -1459,8 +1543,79 @@ paths:schema:type: stringresponses:- "204":- description: No Content+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.GatewayResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ put:+ security:+ - Bearer: []+ 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.+ tags:+ - Gateways+ summary: Update a gateway+ operationId: project-gateways-update+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Gateway ID+ name: gateway_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.UpdateGatewayRequest"+ description: Gateway configuration+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.GatewayResponse""400":description: Bad Requestcontent:@@ -1473,8 +1628,908 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "404":- description: Not Found+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "409":+ description: Conflict+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ delete:+ security:+ - Bearer: []+ description: Deletes a gateway by ID+ tags:+ - Gateways+ summary: Delete a gateway+ operationId: project-gateways-delete+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Gateway ID+ name: gateway_id+ in: path+ required: true+ schema:+ type: string+ responses:+ "204":+ description: No Content+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ patch:+ security:+ - Bearer: []+ 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.+ tags:+ - Gateways+ summary: Patch a gateway+ operationId: project-gateways-patch+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Gateway ID+ name: gateway_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.PatchGatewayRequest"+ description: Gateway fields to update+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.GatewayResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "409":+ description: Conflict+ 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/{gateway_id}/suggestions":+ get:+ security:+ - Bearer: []+ description: Returns gateway suggestions ordered by supporters descending. By+ default only unresolved suggestions are returned.+ tags:+ - Gateways+ summary: List gateway suggestions+ operationId: gateway-suggestions-list+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Gateway ID+ name: gateway_id+ in: path+ required: true+ schema:+ type: string+ - description: Case-insensitive content search+ name: query+ in: query+ schema:+ type: string+ - description: Submitter user ID+ name: suggestion_submitter+ in: query+ schema:+ type: string+ - description: "Include resolved suggestions (default: false)"+ name: show_resolved+ in: query+ schema:+ type: boolean+ - description: "Number of suggestions to return (default: 50)"+ name: limit+ in: query+ schema:+ type: integer+ - description: "Offset from the start of the list (default: 0)"+ name: offset+ in: query+ schema:+ type: integer+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ type: array+ items:+ $ref: "#/components/schemas/schemas.GatewaySuggestionResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "403":+ description: Forbidden+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ post:+ security:+ - Bearer: []+ 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.+ tags:+ - Gateways+ summary: Create a gateway suggestion+ operationId: gateway-suggestions-create+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Gateway ID+ name: gateway_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.CreateSuggestionRequest"+ description: Suggestion+ required: true+ responses:+ "201":+ description: Created+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.CreateSuggestionResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "403":+ description: Forbidden+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ 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/{gateway_id}/suggestions/{id}/resolve":+ post:+ security:+ - Bearer: []+ description: Marks a suggestion as resolved, optionally with resolution notes.+ Resolving an already-resolved suggestion succeeds and preserves the+ original resolution.+ tags:+ - Gateways+ summary: Resolve a gateway suggestion+ operationId: gateway-suggestions-resolve+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Gateway ID+ name: gateway_id+ in: path+ required: true+ schema:+ type: string+ - description: Suggestion ID+ name: id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.ResolveSuggestionRequest"+ description: Resolution rationale+ required: true+ responses:+ "204":+ description: No Content+ "400":+ description: Bad Request+ content:+ "*/*":+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ "*/*":+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "403":+ description: Forbidden+ content:+ "*/*":+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ "*/*":+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ "*/*":+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "/v1/orgs/{org_id}/projects/{project_id}/hooks":+ get:+ security:+ - Bearer: []+ description: Returns all hooks for the current binding with optional filtering+ tags:+ - Hooks+ summary: List hooks+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: "Number of items to return (default: 100, max: 25000)"+ name: limit+ in: query+ schema:+ type: integer+ - description: "Offset from the start of the list (default: 0)"+ name: offset+ in: query+ schema:+ type: integer+ - description: Filter by hook point+ name: hook_point+ in: query+ schema:+ type: string+ - description: Filter by plugin ID+ name: plugin_id+ in: query+ schema:+ type: string+ - description: Filter by status+ name: status+ in: query+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.OffsetPage-schemas_HookResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ post:+ security:+ - Bearer: []+ description: Creates a new hook configuration+ tags:+ - Hooks+ summary: Create a hook+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ $ref: "#/components/requestBodies/schemas.CreateHookRequest"+ responses:+ "201":+ description: Created+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.HookResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "409":+ description: Conflict+ 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}/hooks/bulk":+ patch:+ security:+ - Bearer: []+ description: Creates or updates multiple hooks at once. The operation is+ transactional.+ tags:+ - Hooks+ summary: Bulk upsert hooks+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ $ref: "#/components/requestBodies/schemas.BulkUpsertHooksRequest"+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.BulkUpsertHooksResponse"+ "400":+ description: Bad Request+ 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}/hooks/{hook_id}":+ get:+ security:+ - Bearer: []+ description: Returns a single hook by ID+ tags:+ - Hooks+ summary: Get a hook+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Hook ID+ name: hook_id+ in: path+ required: true+ schema:+ type: string+ - description: Filter by binding type (tenant or project)+ name: binding_type+ in: query+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.HookResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ delete:+ security:+ - Bearer: []+ description: Deletes a hook by ID+ tags:+ - Hooks+ summary: Delete a hook+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Hook ID+ name: hook_id+ in: path+ required: true+ schema:+ type: string+ responses:+ "204":+ description: No Content+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ patch:+ security:+ - Bearer: []+ description: Updates an existing hook configuration+ tags:+ - Hooks+ summary: Update a hook+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Hook ID+ name: hook_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ $ref: "#/components/requestBodies/schemas.PatchHookRequest"+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.HookResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ 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":+ get:+ security:+ - Bearer: []+ description: Returns all plugins for the current binding+ tags:+ - Plugins+ summary: List plugins+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: "Number of items to return (default: 100, max: 25000)"+ name: limit+ in: query+ schema:+ type: integer+ - description: "Offset from the start of the list (default: 0)"+ name: offset+ in: query+ schema:+ type: integer+ - description: Binding type filter (e.g., 'tenant')+ name: binding_type+ in: query+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.OffsetPage-schemas_PluginResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ post:+ security:+ - Bearer: []+ description: Creates a new plugin with optional inline hooks+ tags:+ - Plugins+ summary: Create a plugin+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ requestBody:+ $ref: "#/components/requestBodies/schemas.CreatePluginRequest"+ responses:+ "201":+ description: Created+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.CreatePluginResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "409":+ description: Conflict+ 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: []+ description: Returns a single plugin by ID+ tags:+ - Plugins+ summary: Get a plugin+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Plugin ID+ name: plugin_id+ in: path+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.PluginResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ delete:+ security:+ - Bearer: []+ description: Deletes a plugin by ID+ tags:+ - Plugins+ summary: Delete a plugin+ parameters:+ - description: Organization ID+ name: org_id+ in: path+ required: true+ schema:+ type: string+ - description: Project ID+ name: project_id+ in: path+ required: true+ schema:+ type: string+ - description: Plugin ID+ name: plugin_id+ in: path+ required: true+ schema:+ type: string+ responses:+ "204":+ description: No Content+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "404":+ description: Not Found+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "409":+ description: Conflictcontent:application/json:schema:@@ -1488,11 +2543,10 @@ paths:patch:security:- Bearer: []- description: Partially updates an existing gateway configuration+ description: Updates an existing plugin configurationtags:- - Gateways- summary: Patch a gateway- operationId: project-gateways-patch+ - Plugins+ summary: Update a pluginparameters:- description: Organization IDname: org_id@@ -1506,50 +2560,33 @@ paths:required: trueschema:type: string- - description: Gateway ID- name: gateway_id+ - description: Plugin ID+ name: plugin_idin: pathrequired: trueschema:type: stringrequestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.PatchGatewayRequest"- description: Gateway fields to update- required: true+ $ref: "#/components/requestBodies/schemas.PatchPluginRequest"responses:"200":description: OKcontent:application/json:schema:- $ref: "#/components/schemas/schemas.GatewayResponse"+ $ref: "#/components/schemas/schemas.PluginResponse""400":description: Bad Requestcontent:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "401":- description: Unauthorized- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error""404":description: Not Foundcontent:application/json:schema:$ref: "#/components/schemas/schemas.Error"- "409":- description: Conflict- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error""500":description: Internal Server Errorcontent:@@ -1778,262 +2815,48 @@ paths:in: pathrequired: trueschema:- type: string- - description: Tool execution ID- name: id- in: path- required: true- schema:- type: string- - description: "Include the tool inputs in the response (default: false)"- name: include_inputs- in: query- schema:- type: boolean- - description: "Include the tool outputs in the response (default: false)"- name: include_outputs- in: query- schema:- type: boolean- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.ToolExecutionDetailResponse"- "400":- description: Bad Request- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "401":- description: Unauthorized- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "403":- description: Forbidden- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "404":- description: Not Found- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "500":- description: Internal Server Error- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- /v1/plugins:- get:- security:- - Bearer: []- description: Returns all plugins for the current binding- tags:- - Plugins- summary: List plugins- operationId: plugins-list- parameters:- - description: Limit- name: limit- in: query- schema:- type: integer- - description: Offset- name: offset- in: query- schema:- type: integer- - description: Binding type filter (e.g., 'tenant')- name: binding_type- in: query- schema:- type: string- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.OffsetPage-schemas_PluginResponse"- "400":- description: Bad Request- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "500":- description: Internal Server Error- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- post:- security:- - Bearer: []- description: Creates a new plugin with optional inline hooks- tags:- - Plugins- summary: Create a plugin- operationId: plugins-create- requestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.CreatePluginRequest"- description: Plugin configuration- required: true- responses:- "201":- description: Created- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.CreatePluginResponse"- "400":- description: Bad Request- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "409":- description: Conflict- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "500":- description: Internal Server Error- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "/v1/plugins/{plugin_id}":- get:- security:- - Bearer: []- description: Returns a single plugin by ID- tags:- - Plugins- summary: Get a plugin- operationId: plugins-get- parameters:- - description: Plugin ID- name: plugin_id- in: path- required: true- schema:- type: string- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.PluginResponse"- "400":- description: Bad Request- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "404":- description: Not Found- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "500":- description: Internal Server Error- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- delete:- security:- - Bearer: []- description: Deletes a plugin by ID- tags:- - Plugins- summary: Delete a plugin- operationId: plugins-delete- parameters:- - description: Plugin ID- name: plugin_id- in: path- required: true- schema:- type: string- responses:- "204":- description: No Content- "400":- description: Bad Request- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "404":- description: Not Found- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "409":- description: Conflict- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- "500":- description: Internal Server Error- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.Error"- patch:- security:- - Bearer: []- description: Updates an existing plugin configuration- tags:- - Plugins- summary: Update a plugin- operationId: plugins-update- parameters:- - description: Plugin ID- name: plugin_id+ type: string+ - description: Tool execution ID+ name: idin: pathrequired: trueschema:type: string- requestBody:- content:- application/json:- schema:- $ref: "#/components/schemas/schemas.PatchPluginRequest"- description: Plugin configuration to update- required: true+ - description: "Include the tool inputs in the response (default: false)"+ name: include_inputs+ in: query+ schema:+ type: boolean+ - description: "Include the tool outputs in the response (default: false)"+ name: include_outputs+ in: query+ schema:+ type: booleanresponses:"200":description: OKcontent:application/json:schema:- $ref: "#/components/schemas/schemas.PluginResponse"+ $ref: "#/components/schemas/schemas.ToolExecutionDetailResponse""400":description: Bad Requestcontent:application/json:schema:$ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "403":+ description: Forbidden+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error""404":description: Not Foundcontent:@@ -2078,7 +2901,7 @@ paths:in: queryschema:type: string- - description: "Number of items to return (default: 25, max: 100)"+ - description: "Number of items to return (default: 100, max: 25000)"name: limitin: queryschema:@@ -2212,7 +3035,9 @@ paths:security:- Bearer: []- Bearer: []- description: Executes a tool by name and arguments+ 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.tags:- Toolssummary: Execute Tool@@ -2315,6 +3140,129 @@ paths:application/json:schema:$ref: "#/components/schemas/schemas.Error"+ /v1/tools/search:+ post:+ security:+ - Bearer: []+ 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.+ tags:+ - Tools+ summary: Search Tools+ operationId: tool-search+ requestBody:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.ToolRecommendationRequest"+ description: Tool search request+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.ToolRecommendationResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "403":+ description: Forbidden+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "415":+ description: Unsupported Media Type+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "503":+ description: Service Unavailable+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ /v1/tools/select:+ post:+ security:+ - Bearer: []+ 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+ selection that surfaced the tool.+ tags:+ - Tools+ summary: Select Tools+ operationId: tool-select+ requestBody:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.ToolSelectRequest"+ description: Tool selection request+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.ToolSelectResponse"+ "400":+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "401":+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "403":+ description: Forbidden+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "415":+ description: Unsupported Media Type+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "500":+ description: Internal Server Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error"+ "503":+ description: Service Unavailable+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.Error""/v1/tools/{name}":get:security:@@ -2391,7 +3339,7 @@ paths:summary: List all workersoperationId: workers-listparameters:- - description: "Number of items to return (default: 25, max: 100)"+ - description: "Number of items to return (default: 100, max: 25000)"name: limitin: queryschema:@@ -2657,7 +3605,7 @@ paths:required: trueschema:type: string- - description: "Number of items to return (default: 25, max: 100)"+ - description: "Number of items to return (default: 100, max: 25000)"name: limitin: queryschema:@@ -2686,6 +3634,42 @@ externalDocs:servers:- url: https://api.arcade.devcomponents:+ requestBodies:+ schemas.CreateHookRequest:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.CreateHookRequest"+ description: Hook configuration+ required: true+ schemas.PatchHookRequest:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.PatchHookRequest"+ description: Hook configuration to update+ required: true+ schemas.CreatePluginRequest:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.CreatePluginRequest"+ description: Plugin configuration+ required: true+ schemas.BulkUpsertHooksRequest:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.BulkUpsertHooksRequest"+ description: Bulk hook configurations+ required: true+ schemas.PatchPluginRequest:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/schemas.PatchPluginRequest"+ description: Plugin configuration to update+ required: truesecuritySchemes:Bearer:description: "Enter your API key or API token in the format: Bearer <token>"@@ -3071,146 +4055,27 @@ components:- mcpversion:type: string- schemas.ChatMessage:- type: object- required:- - content- - role- properties:- content:- description: The content of the message.- type: string- name:- description: tool Name- type: string- role:- description: The role of the author of this message. One of system, user, tool,- or assistant.- type: string- tool_call_id:- description: tool_call_id- type: string- tool_calls:- description: tool calls if any- type: array- items:- $ref: "#/components/schemas/schemas.ModelToolCall"- schemas.ChatRequest:+ schemas.CreateDiscoveryRequest:type: objectproperties:- frequency_penalty:- type: number- logit_bias:- description: >-- LogitBias is must be a token id string (specified by their token ID- in the tokenizer), not a word string.-- incorrect: `"logit_bias":{"You": 6}`, correct: `"logit_bias":{"1639": 6}`-- refs: https://platform.openai.com/docs/api-reference/chat/create#chat/create-logit_bias- type: object- additionalProperties:- type: integer- logprobs:- description: >-- LogProbs indicates whether to return log probabilities of the output- tokens or not.-- If true, returns the log probabilities of each output token returned in the content of message.-- This option is currently not available on the gpt-4-vision-preview model.- type: boolean- max_tokens:- type: integer- messages:- type: array- items:- $ref: "#/components/schemas/schemas.ChatMessage"- model:- type: string- n:- type: integer- parallel_tool_calls:- description: "Disable the default behavior of parallel tool calls by setting it:- false."- type: boolean- presence_penalty:- type: number- response_format:- $ref: "#/components/schemas/schemas.ResponseFormat"- seed:- type: integer- stop:- type: array- items:- type: string- stream:+ enabled:type: boolean- stream_options:- description: "Options for streaming response. Only set this when you set stream:- true."- allOf:- - $ref: "#/components/schemas/schemas.StreamOptions"- temperature:- type: number- tool_choice:- description: This can be either a string or an ToolChoice object.- tools: {}- top_logprobs:- description: >-- TopLogProbs is an integer between 0 and 5 specifying the number of- most likely tokens to return at each-- token position, each with an associated log probability.-- logprobs must be set to true if this parameter is used.- type: integer- top_p:- type: number- user:- type: string- schemas.ChatResponse:+ schemas.CreateEntraBackendRequest:type: object+ required:+ - client_id+ - client_secret+ - tenant_idproperties:- choices:- type: array- items:- $ref: "#/components/schemas/schemas.Choice"- created:- type: integer- id:- type: string- model:- type: string- object:+ client_id:type: string- system_fingerprint:+ maxLength: 256+ client_secret:type: string- usage:- $ref: "#/components/schemas/schemas.Usage"- schemas.Choice:- type: object- properties:- finish_reason:+ maxLength: 4096+ tenant_id:type: string- index:- type: integer- logprobs: {}- message:- $ref: "#/components/schemas/schemas.ChatMessage"- tool_authorizations:- type: array- items:- $ref: "#/components/schemas/auth.AuthorizationResponse"- tool_messages:- type: array- items:- $ref: "#/components/schemas/schemas.ChatMessage"- schemas.CreateDiscoveryRequest:- type: object- properties:- enabled:- type: boolean+ maxLength: 256schemas.CreateGatewayRequest:type: objectrequired:@@ -3252,6 +4117,37 @@ components:$ref: "#/components/schemas/schemas.CreateToolFilterRequest"user_source_id:type: string+ schemas.CreateGroupAccessConfigRequest:+ type: object+ required:+ - backend+ - rules+ properties:+ backend:+ type: string+ enum:+ - okta+ - entra+ - sailpoint+ entra:+ $ref: "#/components/schemas/schemas.CreateEntraBackendRequest"+ okta:+ $ref: "#/components/schemas/schemas.CreateOktaBackendRequest"+ rules:+ type: array+ maxItems: 100+ minItems: 1+ uniqueItems: true+ items:+ $ref: "#/components/schemas/schemas.GroupAccessRuleRequest"+ sailpoint:+ $ref: "#/components/schemas/schemas.CreateSailPointBackendRequest"+ status:+ enum:+ - active+ - inactive+ allOf:+ - $ref: "#/components/schemas/plugins.HookPointStatus"schemas.CreateHookRequest:type: objectrequired:@@ -3298,17 +4194,16 @@ components:type: integermaximum: 30000minimum: 100- schemas.CreateModelRequest:+ schemas.CreateOktaBackendRequest:type: objectrequired:- - config- - id- - model_provider_type+ - api_token+ - org_urlproperties:- config: {}- id:+ api_token:type: string- model_provider_type:+ maxLength: 4096+ org_url:type: stringschemas.CreatePluginRequest:type: object@@ -3319,6 +4214,8 @@ components:description:type: stringmaxLength: 1000+ group_access_config:+ $ref: "#/components/schemas/schemas.CreateGroupAccessConfigRequest"name:type: stringmaxLength: 256@@ -3327,6 +4224,7 @@ components:enum:- webhook- rate_limit+ - group_accessrate_limit_config:$ref: "#/components/schemas/schemas.CreateRateLimitConfigRequest"retry:@@ -3350,6 +4248,8 @@ components:type: stringdescription:type: string+ group_access_config:+ $ref: "#/components/schemas/schemas.GroupAccessConfigResponse"health_status:type: stringhooks:@@ -3416,6 +4316,49 @@ components:type: arrayitems:type: string+ schemas.CreateSailPointBackendRequest:+ type: object+ required:+ - client_id+ - client_secret+ - tenant_url+ properties:+ client_id:+ type: string+ maxLength: 256+ client_secret:+ type: string+ maxLength: 4096+ tenant_url:+ type: string+ schemas.CreateSuggestionRequest:+ type: object+ required:+ - content+ - user_id+ properties:+ content:+ description: Content describes the requested capability in the end user's own+ words.+ type: string+ maxLength: 1000+ user_id:+ description: >-+ UserID is a caller-asserted, opaque end-user ID in the form the+ gateway's++ auth type uses: a User Source subject, an Arcade account email or subject,++ or an Arcade-User-Id header value. Engine preserves it exactly but cannot++ verify it against the upstream identity provider.+ type: string+ maxLength: 2048+ schemas.CreateSuggestionResponse:+ type: object+ properties:+ id:+ type: stringschemas.CreateToolFilterRequest:type: objectproperties:@@ -3491,8 +4434,12 @@ components:properties:error:type: string+ server_version:+ type: stringstatus:type: string+ version:+ type: integerschemas.DiscoveryResponse:type: objectproperties:@@ -3517,9 +4464,23 @@ components:properties:timeout_max_seconds:type: integer+ schemas.EntraBackendResponse:+ type: object+ properties:+ client_id:+ type: string+ client_secret:+ $ref: "#/components/schemas/schemas.SecretResponse"+ tenant_id:+ type: stringschemas.Error:type: objectproperties:+ authorization:+ description: Authorization is set only on ToolAuthorizationRequired and says+ where to send the user so the call can succeed next time.+ allOf:+ - $ref: "#/components/schemas/auth.AuthorizationResponse"field_errors:description: >-FieldErrors carries machine-actionable, per-field detail for a@@ -3551,9 +4512,10 @@ components:allOf:- $ref: "#/components/schemas/tool.RawInputs"query_id:- description: Optional Condex selection query_id that surfaced this tool. When- set, the execution is correlated to the selection query as training- data. Ignored if empty.+ description: Optional. The query_id returned by the Select Tools response that+ surfaced this tool, which correlates the execution with the+ selection that produced it and improves future recommendations.+ Ignored if empty.type: stringtool_name:type: string@@ -3645,6 +4607,67 @@ components:type: stringuser_source_id:type: string+ schemas.GatewaySuggestionResponse:+ type: object+ properties:+ content:+ type: string+ id:+ type: string+ resolution_notes:+ type: string+ resolved_at:+ type: string+ submitter_user_id:+ type: string+ submitter_user_source_id:+ type: string+ supporters:+ type: integer+ schemas.GroupAccessConfigResponse:+ type: object+ properties:+ backend:+ type: string+ entra:+ $ref: "#/components/schemas/schemas.EntraBackendResponse"+ okta:+ $ref: "#/components/schemas/schemas.OktaBackendResponse"+ rules:+ type: array+ items:+ $ref: "#/components/schemas/schemas.GroupAccessRuleResponse"+ sailpoint:+ $ref: "#/components/schemas/schemas.SailPointBackendResponse"+ schemas.GroupAccessRuleRequest:+ type: object+ required:+ - match+ - required_groups+ properties:+ allow_on_unavailable:+ type: boolean+ match:+ type: string+ maxLength: 256+ required_groups:+ type: array+ maxItems: 50+ minItems: 1+ uniqueItems: true+ items:+ type: string+ schemas.GroupAccessRuleResponse:+ type: object+ properties:+ allow_on_unavailable:+ type: boolean+ match:+ type: string+ required_groups:+ type: array+ items:+ type: stringschemas.HTTPWorkerConfigRequest:type: objectrequired:@@ -3879,27 +4902,6 @@ components:uri:type: stringmaxLength: 2048- schemas.ModelResponse:- type: object- properties:- binding:- $ref: "#/components/schemas/schemas.BindingResponse"- config: {}- enabled:- type: boolean- id:- type: string- type:- type: string- schemas.ModelToolCall:- type: object- properties:- function:- $ref: "#/components/schemas/schemas.ToolFunctionCall"- id:- type: string- type:- $ref: "#/components/schemas/schemas.ToolType"schemas.OAuth2AuthorizationRequirement:type: objectproperties:@@ -4090,8 +5092,6 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_AuthProviderResponse:@@ -4105,8 +5105,6 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_GatewayResponse:@@ -4120,8 +5118,6 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_HookResponse:@@ -4135,23 +5131,6 @@ components:type: integeroffset:type: integer- page_count:- type: integer- total_count:- type: integer- schemas.OffsetPage-schemas_ModelResponse:- type: object- properties:- items:- type: array- items:- $ref: "#/components/schemas/schemas.ModelResponse"- limit:- type: integer- offset:- type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_PluginResponse:@@ -4165,8 +5144,6 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_StoredSecretResponse:@@ -4180,8 +5157,6 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_ToolExecutionListResponse:@@ -4195,8 +5170,6 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_ToolResponse:@@ -4210,8 +5183,6 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_UserAuthProviderConnectionResponse:@@ -4225,8 +5196,6 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integerschemas.OffsetPage-schemas_WorkerResponse:@@ -4240,10 +5209,15 @@ components:type: integeroffset:type: integer- page_count:- type: integertotal_count:type: integer+ schemas.OktaBackendResponse:+ type: object+ properties:+ api_token:+ $ref: "#/components/schemas/schemas.SecretResponse"+ org_url:+ type: stringschemas.Output:type: objectproperties:@@ -4303,6 +5277,21 @@ components:properties:enabled:type: boolean+ schemas.PatchEntraBackendRequest:+ type: object+ properties:+ client_id:+ type: string+ maxLength: 256+ minLength: 1+ client_secret:+ type: string+ maxLength: 4096+ minLength: 1+ tenant_id:+ type: string+ maxLength: 256+ minLength: 1schemas.PatchGatewayRequest:type: objectproperties:@@ -4343,6 +5332,28 @@ components:$ref: "#/components/schemas/schemas.PatchToolFilterRequest"user_source_id:type: string+ schemas.PatchGroupAccessConfigRequest:+ type: object+ properties:+ backend:+ type: string+ enum:+ - okta+ - entra+ - sailpoint+ entra:+ $ref: "#/components/schemas/schemas.PatchEntraBackendRequest"+ okta:+ $ref: "#/components/schemas/schemas.PatchOktaBackendRequest"+ rules:+ type: array+ maxItems: 100+ minItems: 1+ uniqueItems: true+ items:+ $ref: "#/components/schemas/schemas.GroupAccessRuleRequest"+ sailpoint:+ $ref: "#/components/schemas/schemas.PatchSailPointBackendRequest"schemas.PatchHookRequest:type: objectproperties:@@ -4372,12 +5383,23 @@ components:type: integermaximum: 30000minimum: 100+ schemas.PatchOktaBackendRequest:+ type: object+ properties:+ api_token:+ type: string+ maxLength: 4096+ minLength: 1+ org_url:+ type: stringschemas.PatchPluginRequest:type: objectproperties:description:type: stringmaxLength: 1000+ group_access_config:+ $ref: "#/components/schemas/schemas.PatchGroupAccessConfigRequest"name:type: stringmaxLength: 256@@ -4422,6 +5444,19 @@ components:type: arrayitems:type: string+ schemas.PatchSailPointBackendRequest:+ type: object+ properties:+ client_id:+ type: string+ maxLength: 256+ minLength: 1+ client_secret:+ type: string+ maxLength: 4096+ minLength: 1+ tenant_url:+ type: stringschemas.PatchToolFilterRequest:type: objectproperties:@@ -4501,6 +5536,8 @@ components:type: stringdescription:type: string+ group_access_config:+ $ref: "#/components/schemas/schemas.GroupAccessConfigResponse"health_status:type: stringid:@@ -4576,19 +5613,12 @@ components:type: arrayitems:$ref: "#/components/schemas/schemas.SecretRequirement"- schemas.ResponseFormat:+ schemas.ResolveSuggestionRequest:type: objectproperties:- type:- $ref: "#/components/schemas/schemas.ResponseFormatType"- schemas.ResponseFormatType:- type: string- enum:- - json_object- - text- x-enum-varnames:- - ResponseFormatJSON- - ResponseFormatText+ resolution_notes:+ type: string+ maxLength: 1000schemas.RetryConfigResponse:type: objectproperties:@@ -4604,6 +5634,15 @@ components:type: arrayitems:type: string+ schemas.SailPointBackendResponse:+ type: object+ properties:+ client_id:+ type: string+ client_secret:+ $ref: "#/components/schemas/schemas.SecretResponse"+ tenant_url:+ type: stringschemas.SecretRequirement:type: objectrequired:@@ -4696,20 +5735,18 @@ components:type: stringupdated_at:type: string- schemas.StreamOptions:+ schemas.TaskSelectionResult:type: objectproperties:- include_usage:- description: >-- If set, an additional chunk will be streamed before the data: [DONE]- message.-- The usage field on this chunk shows the token usage statistics for the entire request,-- and the choices field will always be an empty array.-- All other chunks will also include a usage field, but with a null value.- type: boolean+ suggestions:+ description: Suggestions is the ordered list of suggested tools for this task.+ type: array+ items:+ $ref: "#/components/schemas/schemas.ToolRecommendationResult"+ task:+ description: Task is the task string from the request, echoed back for+ correlation.+ type: stringschemas.TokenIntrospectionCreateRequest:type: objectrequired:@@ -4913,12 +5950,83 @@ components:type: stringdiscovery:$ref: "#/components/schemas/schemas.DiscoveryResponse"- schemas.ToolFunctionCall:+ schemas.ToolRecommendationRequest:type: object+ required:+ - queryproperties:- arguments:+ categories:+ description: Categories filters results to tools in any of these categories.+ type: array+ items:+ type: string+ gateway_id:+ description: >-+ GatewayID scopes the search to a specific gateway's tool allow list.++ When empty, the caller's full CATE-allowed tool universe is searched.type: string- name:+ include_static:+ description: >-+ IncludeStatic controls whether STATIC (builtin / statically+ configured)++ tools appear in results. Defaults to true when omitted.+ type: boolean+ query:+ description: Query is the free-text search string. Required, non-blank.+ type: string+ tags:+ description: Tags filters results to tools tagged with any of these labels.+ type: array+ items:+ type: string+ top_k:+ description: |-+ TopK is the maximum number of results to return. Absent applies the+ default of 10 and is capped at 50; a present value must be positive.+ type: integer+ user_id:+ description: The user to search as. Required only when calling with an API key.+ type: string+ schemas.ToolRecommendationResponse:+ type: object+ properties:+ results:+ description: Results are the tool matches, ordered by descending score.+ type: array+ items:+ $ref: "#/components/schemas/schemas.ToolRecommendationResult"+ schemas.ToolRecommendationResult:+ type: object+ properties:+ description:+ description: |-+ Description is the tool's human-readable description, pulled from+ Condex-side metadata when available.+ type: string+ input_schema:+ description: >-+ InputSchema is the tool's JSON-schema input definition, decoded from+ the++ metadata string returned by Condex.+ tool_name:+ description: |-+ ToolName is the versionless tool key (e.g. "Slack.SendMessage"). The+ gateway also renders tool names without a version suffix so callers+ can invoke tools without tracking toolkit version bumps.+ type: string+ toolkit:+ description: >-+ Toolkit is the toolkit name the tool belongs to, when reported by+ Condex++ metadata.+ type: string+ version:+ description: Version is the toolkit version string, when reported by Condex+ metadata.type: stringschemas.ToolRef:type: object@@ -4972,15 +6080,14 @@ components:index_state:description: >-IndexState reports whether this tool is available through tool- search yet- ("indexed" or "pending"). Populated only when tool search is active for the+ recommendation yet ("indexed" or "pending"). Populated only when tool- org and Condex is reachable; otherwise omitted, so existing callers are+ recommendation is active for the org and Condex is reachable; otherwise- unaffected. The handler derives and injects this value — see the+ omitted, so existing callers are unaffected. The handler derives and- tool-listing enrichment path.+ injects this value — see the tool-listing enrichment path.type: stringinput:$ref: "#/components/schemas/schemas.Input"@@ -5003,12 +6110,84 @@ components:$ref: "#/components/schemas/schemas.Requirements"toolkit:$ref: "#/components/schemas/schemas.ToolkitResponse"- schemas.ToolType:- type: string- enum:- - function- x-enum-varnames:- - ToolTypeFunction+ schemas.ToolSelectRequest:+ type: object+ required:+ - tasks+ properties:+ categories:+ description: Categories filters candidates to tools in any of these categories.+ type: array+ items:+ type: string+ context:+ description: >-+ Context is optional supplementary text (e.g. conversation history)+ sent++ to Condex via its dedicated context field. Condex keeps it out of the++ BM25 text leg; it informs the rerank stage (and embeddings only when++ Condex runs with SELECT_INCLUDE_EMBED_CONTEXT=true).+ type: string+ gateway_id:+ description: >-+ GatewayID scopes selection to a specific gateway's tool allow list.++ When empty, the caller's full CATE-allowed tool universe is considered.+ type: string+ include_static:+ description: >-+ IncludeStatic controls whether STATIC (builtin / statically+ configured)++ tools appear as candidates. Defaults to true when omitted.+ type: boolean+ tags:+ description: Tags filters candidates to tools tagged with any of these labels.+ type: array+ items:+ type: string+ tasks:+ description: >-+ Tasks is the list of task descriptions to select tools for. Each+ task is++ sent to Condex individually and produces its own TaskSelectionResult.++ Must contain at least one entry, and no entry may be blank.+ type: array+ minItems: 1+ items:+ type: string+ top_k:+ description: >-+ TopK is the maximum number of suggestions to return per task. Absent++ applies the default of 5 and is capped at 20; a present value must be++ positive.+ type: integer+ user_id:+ description: The user to select tools as. Required only when calling with an API+ key.+ type: string+ schemas.ToolSelectResponse:+ type: object+ properties:+ query_id:+ description: |-+ QueryID is the Condex-assigned identifier for this selection query.+ Taken from the first non-empty QueryID returned across tasks.+ type: string+ results:+ description: |-+ Results is one TaskSelectionResult per input task, in the order the+ tasks were submitted.+ type: array+ items:+ $ref: "#/components/schemas/schemas.TaskSelectionResult"schemas.ToolkitMetadata:type: objectproperties:@@ -5098,23 +6277,6 @@ components:$ref: "#/components/schemas/schemas.UpdateToolFilterRequest"user_source_id:type: string- schemas.UpdateModelConfigRequest:- type: object- properties:- api_key:- $ref: "#/components/schemas/schemas.UpdateSecretRequest"- schemas.UpdateModelRequest:- type: object- properties:- config:- $ref: "#/components/schemas/schemas.UpdateModelConfigRequest"- schemas.UpdateSecretRequest:- type: object- required:- - value- properties:- value:- type: stringschemas.UpdateSessionVerificationSettingsRequest:type: objectproperties:@@ -5160,15 +6322,6 @@ components:value:type: stringmaxLength: 5000- schemas.Usage:- type: object- properties:- completion_tokens:- type: integer- prompt_tokens:- type: integer- total_tokens:- type: integerschemas.UserAuthProviderConnectionResponse:type: objectproperties:
coordinator
Changed since 1.10.1: 2 breaking, 2 potentially breaking, 18 compatible.
View API referencecoordinator.yamlcoordinator.diff
| Level | Endpoint | Change |
|---|---|---|
| Breaking | GET /api/v1/orgs/{organization_id}/audit_logs | removed the required property data/has_more from the response with the 200 status |
| Breaking | GET /api/v1/orgs/{organization_id}/projects/{project_id}/audit_logs | removed the required property data/has_more from the response with the 200 status |
| Potentially breaking | GET /api/v1/orgs/{organization_id}/audit_logs | deleted the query request parameter cursor |
| Potentially breaking | GET /api/v1/orgs/{organization_id}/projects/{project_id}/audit_logs | deleted the query request parameter cursor |
| Compatible | GET /api/v1/orgs/{organization_id}/audit_logs | added the new optional query request parameter offset |
| Compatible | GET /api/v1/orgs/{organization_id}/audit_logs | added the new optional query request parameter resource_id |
| Compatible | GET /api/v1/orgs/{organization_id}/audit_logs | removed the optional property data/next_cursor from the response with the 200 status |
| Compatible | GET /api/v1/orgs/{organization_id}/audit_logs | added the required property data/limit to the response with the 200 status |
| Compatible | GET /api/v1/orgs/{organization_id}/audit_logs | added the required property data/offset to the response with the 200 status |
| Compatible | GET /api/v1/orgs/{organization_id}/audit_logs | added the required property data/total_count to the response with the 200 status |
| Compatible | GET /api/v1/orgs/{organization_id}/projects/{project_id}/audit_logs | added the new optional query request parameter offset |
| Compatible | GET /api/v1/orgs/{organization_id}/projects/{project_id}/audit_logs | added the new optional query request parameter resource_id |
| Compatible | GET /api/v1/orgs/{organization_id}/projects/{project_id}/audit_logs | removed the optional property data/next_cursor from the response with the 200 status |
| Compatible | GET /api/v1/orgs/{organization_id}/projects/{project_id}/audit_logs | added the required property data/limit to the response with the 200 status |
| Compatible | GET /api/v1/orgs/{organization_id}/projects/{project_id}/audit_logs | added the required property data/offset to the response with the 200 status |
| Compatible | GET /api/v1/orgs/{organization_id}/projects/{project_id}/audit_logs | added the required property data/total_count to the response with the 200 status |
| Compatible | GET /api/v1/orgs/{organization_id}/projects/{project_id}/user_sources | endpoint added |
| Compatible | POST /api/v1/orgs/{organization_id}/projects/{project_id}/user_sources | endpoint added |
| Compatible | DELETE /api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id} | endpoint added |
| Compatible | GET /api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id} | endpoint added |
| Compatible | PATCH /api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id} | endpoint added |
| Compatible | PUT /api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id} | endpoint added |
Text diff (925 lines)
diff --git a/apps/coordinator/docs/openapi.yaml b/apps/coordinator/docs/openapi.yamlindex 96855e85..8d48a549 100644--- a/apps/coordinator/docs/openapi.yaml+++ b/apps/coordinator/docs/openapi.yaml@@ -21,6 +21,8 @@ tags:description: Query audit log events for organizations and projects.- name: Projectsdescription: Create and manage projects within an organization.+ - name: User Sources+ description: Create and manage project-bound OIDC user sources.- name: RBACdescription: |Role-based access control. Browse the roles catalog, read the caller's@@ -41,17 +43,19 @@ paths:summary: List organization audit logsoperationId: audit-logs-list-orgdescription: |- Query audit logs for an organization with cursor-based pagination.+ Query audit logs for an organization, newest first, paginated by offset.- Optionally filter by action, source, resource type, and time range.+ Optionally filter by action, source, resource type, resource ID, and time+ range. The reported total counts the entries the filters select, not the page.parameters:- $ref: '#/components/parameters/OrganizationId'- $ref: '#/components/parameters/ActionFilter'- $ref: '#/components/parameters/SourceFilter'- $ref: '#/components/parameters/ResourceTypeFilter'+ - $ref: '#/components/parameters/ResourceIdFilter'- $ref: '#/components/parameters/StartTime'- $ref: '#/components/parameters/EndTime'- - $ref: '#/components/parameters/Cursor'+ - $ref: '#/components/parameters/Offset'- $ref: '#/components/parameters/Limit'responses:'200':@@ -94,18 +98,20 @@ paths:summary: List project audit logsoperationId: audit-logs-list-projectdescription: |- Query audit logs for a specific project with cursor-based pagination.+ Query audit logs for a specific project, newest first, paginated by offset.- Optionally filter by action, source, resource type, and time range.+ Optionally filter by action, source, resource type, resource ID, and time+ range. The reported total counts the entries the filters select, not the page.parameters:- $ref: '#/components/parameters/OrganizationId'- $ref: '#/components/parameters/ProjectId'- $ref: '#/components/parameters/ActionFilter'- $ref: '#/components/parameters/SourceFilter'- $ref: '#/components/parameters/ResourceTypeFilter'+ - $ref: '#/components/parameters/ResourceIdFilter'- $ref: '#/components/parameters/StartTime'- $ref: '#/components/parameters/EndTime'- - $ref: '#/components/parameters/Cursor'+ - $ref: '#/components/parameters/Offset'- $ref: '#/components/parameters/Limit'responses:'200':@@ -603,6 +609,425 @@ paths:schema:$ref: '#/components/schemas/ErrorEnvelope'+ # ── User Sources ────────────────────────────────────────────────────────────+ /api/v1/orgs/{organization_id}/projects/{project_id}/user_sources:+ get:+ security:+ - Bearer: []+ tags:+ - User Sources+ summary: List user sources+ operationId: user-sources-list+ description: |+ List user sources visible in this project, newest first, paginated by+ offset. `total_count` is the full matching set before pagination.++ `client_secret` is never returned.++ Requires the `user_sources_read` project permission.+ parameters:+ - $ref: '#/components/parameters/OrganizationId'+ - $ref: '#/components/parameters/ProjectId'+ - name: limit+ in: query+ required: false+ description: Results per page.+ schema:+ type: integer+ default: 100+ minimum: 1+ maximum: 500+ - name: offset+ in: query+ required: false+ description: Rows to skip before the page.+ schema:+ type: integer+ default: 0+ minimum: 0+ responses:+ '200':+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UserSourceListEnvelope'+ '401':+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '403':+ description: Forbidden -- caller lacks `user_sources_read` on the project+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '404':+ description: Not Found -- organization or project is not visible to the caller+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '422':+ description: Unprocessable Entity -- `limit` or `offset` is out of range+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '503':+ description: Service Unavailable -- the policy store (OpenFGA) could not be reached+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'++ post:+ security:+ - Bearer: []+ tags:+ - User Sources+ summary: Create a user source+ operationId: user-sources-create+ description: |+ Create a project-bound user source. The new record always has+ `binding_type: project`. Its `id` is a `us_`-prefixed KSUID; pass that+ id to Engine gateway create/update as `user_source_id` when+ `auth_type=user_source`.++ The Coordinator probes the issuer's OIDC discovery document and JWKS+ before persisting. A malformed, unreachable, or self-inconsistent+ issuer is rejected with `422`. The stored issuer string is the+ caller's exact input (no trailing-slash normalization) so it can be+ exact-matched against the `iss` claim on upstream ID tokens.++ `scopes` must include `openid`. Duplicates are collapsed on write+ while preserving first occurrence. `client_secret` is stored+ encrypted and is never returned.++ Requires the `user_sources_create` project permission.+ parameters:+ - $ref: '#/components/parameters/OrganizationId'+ - $ref: '#/components/parameters/ProjectId'+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UserSourceCreateRequest'+ responses:+ '201':+ description: Created+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UserSourceEnvelope'+ '400':+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '401':+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '403':+ description: Forbidden -- caller lacks `user_sources_create` on the project+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '404':+ description: Not Found -- organization or project is not visible to the caller+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '422':+ description: |+ Unprocessable Entity -- the body failed validation, `scopes` omitted+ `openid`, or the issuer failed OIDC discovery / JWKS checks.+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '503':+ description: Service Unavailable -- the policy store (OpenFGA) could not be reached+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'++ /api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id}:+ get:+ security:+ - Bearer: []+ tags:+ - User Sources+ summary: Get a user source+ operationId: user-sources-get+ description: |+ Return one project-bound user source. `client_secret` is never returned.++ Organization-bound records (`binding_type: organization`) return `422`,+ not `404`, with guidance to use the organization scope. Platform-internal+ (`static`) records return `404`. Unknown ids return `404`. A malformed+ id (missing or wrong `us_` prefix, or not a KSUID) returns `422`.++ Requires the `user_sources_read` project permission.+ parameters:+ - $ref: '#/components/parameters/OrganizationId'+ - $ref: '#/components/parameters/ProjectId'+ - $ref: '#/components/parameters/UserSourceId'+ responses:+ '200':+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UserSourceEnvelope'+ '401':+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '403':+ description: Forbidden -- caller lacks `user_sources_read` on the project+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '404':+ description: Not Found -- user source is unknown, static-bound, or not visible+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '422':+ description: |+ Unprocessable Entity -- `user_source_id` is malformed, or the record+ is organization-bound (use the organization scope).+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '503':+ description: Service Unavailable -- the policy store (OpenFGA) could not be reached+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'++ put:+ security:+ - Bearer: []+ tags:+ - User Sources+ summary: Replace a user source+ operationId: user-sources-replace+ description: |+ Full replace of a project-bound user source. `client_secret` is+ required. The Coordinator re-validates the issuer's OIDC discovery+ document and JWKS. `client_secret` is never returned.++ Organization-bound records return `422`. Static records return `404`.++ Requires the `user_sources_update` project permission.+ parameters:+ - $ref: '#/components/parameters/OrganizationId'+ - $ref: '#/components/parameters/ProjectId'+ - $ref: '#/components/parameters/UserSourceId'+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UserSourceReplaceRequest'+ responses:+ '200':+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UserSourceEnvelope'+ '400':+ description: Bad Request+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '401':+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '403':+ description: Forbidden -- caller lacks `user_sources_update` on the project+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '404':+ description: Not Found -- user source is unknown, static-bound, or not visible+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '422':+ description: |+ Unprocessable Entity -- the body failed validation, `client_secret`+ is missing, the issuer failed OIDC checks, `user_source_id` is+ malformed, or the record is organization-bound.+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '503':+ description: Service Unavailable -- the policy store (OpenFGA) could not be reached+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'++ patch:+ security:+ - Bearer: []+ tags:+ - User Sources+ summary: Patch a user source+ operationId: user-sources-patch+ description: |+ Partial update of a project-bound user source. Omitted fields keep+ their stored values.++ `client_secret`: omit to keep the stored secret; send a new value to+ rotate; send explicit `null` to clear. `issuer` must not be `null`.+ `description` sent as `null` is stored as an empty string.++ The Coordinator re-validates OIDC discovery and JWKS only when+ `issuer` or `scopes` actually change, so a transient IdP outage does+ not block a status flip. `client_secret` is never returned.++ Organization-bound records return `422`. Static records return `404`.++ Requires the `user_sources_update` project permission.+ parameters:+ - $ref: '#/components/parameters/OrganizationId'+ - $ref: '#/components/parameters/ProjectId'+ - $ref: '#/components/parameters/UserSourceId'+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UserSourcePatchRequest'+ responses:+ '200':+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UserSourceEnvelope'+ '400':+ description: Bad Request -- `issuer` was sent as `null`+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '401':+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '403':+ description: Forbidden -- caller lacks `user_sources_update` on the project+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '404':+ description: Not Found -- user source is unknown, static-bound, or not visible+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '422':+ description: |+ Unprocessable Entity -- the body failed validation, the issuer+ failed OIDC checks, `user_source_id` is malformed, or the record+ is organization-bound.+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '503':+ description: Service Unavailable -- the policy store (OpenFGA) could not be reached+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'++ delete:+ security:+ - Bearer: []+ tags:+ - User Sources+ summary: Delete a user source+ operationId: user-sources-delete+ description: |+ Permanently delete a project-bound user source. Returns `204` with no+ body on success.++ Organization-bound records return `422`. Static records return `404`.++ Requires the `user_sources_delete` project permission.+ parameters:+ - $ref: '#/components/parameters/OrganizationId'+ - $ref: '#/components/parameters/ProjectId'+ - $ref: '#/components/parameters/UserSourceId'+ responses:+ '204':+ description: No Content -- the user source was deleted.+ '401':+ description: Unauthorized+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '403':+ description: Forbidden -- caller lacks `user_sources_delete` on the project+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '404':+ description: Not Found -- user source is unknown, static-bound, or not visible+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '422':+ description: |+ Unprocessable Entity -- `user_source_id` is malformed, or the+ record is organization-bound.+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+ '503':+ description: Service Unavailable -- the policy store (OpenFGA) could not be reached+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ErrorEnvelope'+# ── RBAC: capabilities, roles catalog, org membership & roles ─────────────────/api/v1/orgs/{organization_id}/capabilities:get:@@ -947,6 +1372,19 @@ components:type: stringformat: uuid+ UserSourceId:+ name: user_source_id+ in: path+ required: true+ description: |+ User source id. A `us_`-prefixed KSUID (for example+ `us_0000GfkSkVjL1s3EM2wUfhjxv7B`). The Engine validates the same+ prefix when the id is passed as `user_source_id` on a gateway.+ schema:+ type: string+ pattern: '^us_[0-9A-Za-z]{27}$'+ example: us_0000GfkSkVjL1s3EM2wUfhjxv7B+ActionFilter:name: actionin: query@@ -979,6 +1417,14 @@ components:schema:type: string+ ResourceIdFilter:+ name: resource_id+ in: query+ required: false+ description: Filter by the resource's unique identifier.+ schema:+ type: string+StartTime:name: start_timein: query@@ -997,13 +1443,15 @@ components:type: stringformat: date-time- Cursor:- name: cursor+ Offset:+ name: offsetin: queryrequired: false- description: Opaque pagination cursor returned by a previous response.+ description: How many matching entries to skip before this page.schema:- type: string+ type: integer+ minimum: 0+ default: 0Limit:name: limit@@ -1054,19 +1502,25 @@ components:type: objectrequired:- items- - has_more+ - total_count+ - limit+ - offsetproperties:items:type: arrayitems:$ref: '#/components/schemas/AuditLogResponse'- next_cursor:- type: string- nullable: true- description: Cursor to pass as the `cursor` query parameter for the next page.- has_more:- type: boolean- description: Whether additional pages exist beyond this one.+ total_count:+ type: integer+ description: >-+ Total entries matching the filters, across every page. Add the page's+ limit to its offset until that reaches this value to walk the set.+ limit:+ type: integer+ description: Page size the request asked for.+ offset:+ type: integer+ description: Offset the request asked for.AuditLogResponse:type: object@@ -1767,3 +2221,349 @@ components:$ref: '#/components/schemas/OrgAuthzCapabilities'billing:$ref: '#/components/schemas/BillingCapabilities'++ # ── User Source schemas ─────────────────────────────────────────────────+ UserSourceBindingType:+ type: string+ enum:+ - project+ - organization+ description: |+ Whether the record is project-scoped (mutable on this route) or+ organization-scoped (inherited; GET/PUT/PATCH/DELETE through the+ project path return `422`). Platform-internal `static` bindings+ never appear on the wire.++ UserSourceStatus:+ type: string+ enum:+ - active+ - inactive+ description: Whether the user source is active.++ UserSourceProtocol:+ type: string+ enum:+ - oidc+ description: Authentication protocol. Only OIDC is supported.++ UserSource:+ type: object+ required:+ - id+ - organization_id+ - binding_type+ - name+ - description+ - protocol+ - issuer+ - client_id+ - subject_claim+ - scopes+ - status+ - created_at+ - updated_at+ properties:+ id:+ type: string+ description: User source id (`us_`-prefixed KSUID).+ pattern: '^us_[0-9A-Za-z]{27}$'+ example: us_0000GfkSkVjL1s3EM2wUfhjxv7B+ organization_id:+ type: string+ format: uuid+ description: Owning organization.+ project_id:+ type: string+ format: uuid+ nullable: true+ description: Owning project. `null` for organization-bound records.+ binding_type:+ $ref: '#/components/schemas/UserSourceBindingType'+ name:+ type: string+ description: Human-readable name.+ description:+ type: string+ description: Freeform description. Never shown to end users.+ protocol:+ $ref: '#/components/schemas/UserSourceProtocol'+ issuer:+ type: string+ description: |+ OIDC issuer URL, stored exactly as submitted (no trailing-slash+ normalization) so it can be exact-matched against the `iss` claim.+ client_id:+ type: string+ description: OIDC client ID.+ subject_claim:+ type: string+ description: OIDC claim used as the stable subject identifier.+ example: sub+ scopes:+ type: array+ items:+ type: string+ description: OIDC scopes requested from the upstream IdP.+ example:+ - openid+ - profile+ status:+ $ref: '#/components/schemas/UserSourceStatus'+ created_at:+ type: string+ format: date-time+ description: Creation timestamp.+ updated_at:+ type: string+ format: date-time+ description: Last-updated timestamp.++ UserSourceList:+ type: object+ required:+ - items+ - total_count+ - limit+ - offset+ properties:+ items:+ type: array+ items:+ $ref: '#/components/schemas/UserSource'+ total_count:+ type: integer+ description: Total matching items across every page.+ limit:+ type: integer+ description: Page size the request asked for.+ offset:+ type: integer+ description: Offset the request asked for.++ UserSourceEnvelope:+ type: object+ required:+ - code+ - msg+ - data+ properties:+ code:+ type: integer+ example: 200+ msg:+ type: string+ example: Request successful+ data:+ $ref: '#/components/schemas/UserSource'++ UserSourceListEnvelope:+ type: object+ required:+ - code+ - msg+ - data+ properties:+ code:+ type: integer+ example: 200+ msg:+ type: string+ example: Request successful+ data:+ $ref: '#/components/schemas/UserSourceList'++ UserSourceCreateRequest:+ type: object+ required:+ - name+ - issuer+ - client_id+ - client_secret+ properties:+ name:+ type: string+ minLength: 1+ maxLength: 255+ description: Human-readable name.+ description:+ type: string+ maxLength: 4000+ default: ''+ description: Freeform description. Visible to project members, never to end users.+ protocol:+ allOf:+ - $ref: '#/components/schemas/UserSourceProtocol'+ default: oidc+ issuer:+ type: string+ minLength: 1+ maxLength: 2048+ format: uri+ description: |+ OIDC issuer URL. Stored verbatim. Must be reachable and serve a+ self-consistent discovery document and JWKS at create time.+ client_id:+ type: string+ minLength: 1+ maxLength: 2048+ description: OIDC client ID.+ client_secret:+ type: string+ minLength: 1+ maxLength: 4096+ description: |+ OIDC client secret (plaintext; stored encrypted). Never returned+ in responses.+ subject_claim:+ type: string+ minLength: 1+ maxLength: 2048+ default: sub+ description: OIDC claim used as the stable subject identifier.+ scopes:+ type: array+ minItems: 1+ maxItems: 64+ default:+ - openid+ - profile+ items:+ type: string+ minLength: 1+ maxLength: 1024+ description: |+ OIDC scopes requested from the upstream IdP. Must include+ `openid`. Tokens must not contain whitespace. Duplicates are+ collapsed on write while preserving first occurrence.+ status:+ allOf:+ - $ref: '#/components/schemas/UserSourceStatus'+ default: active++ UserSourceReplaceRequest:+ type: object+ required:+ - name+ - issuer+ - client_id+ - client_secret+ properties:+ name:+ type: string+ minLength: 1+ maxLength: 255+ description: Human-readable name.+ description:+ type: string+ maxLength: 4000+ default: ''+ description: Freeform description.+ protocol:+ allOf:+ - $ref: '#/components/schemas/UserSourceProtocol'+ default: oidc+ issuer:+ type: string+ minLength: 1+ maxLength: 2048+ format: uri+ description: OIDC issuer URL. Stored verbatim. Re-validated on replace.+ client_id:+ type: string+ minLength: 1+ maxLength: 2048+ description: OIDC client ID.+ client_secret:+ type: string+ minLength: 1+ maxLength: 4096+ description: |+ OIDC client secret (plaintext; stored encrypted). Required on+ replace. Never returned in responses.+ subject_claim:+ type: string+ minLength: 1+ maxLength: 2048+ default: sub+ description: OIDC claim used as the stable subject identifier.+ scopes:+ type: array+ minItems: 1+ maxItems: 64+ default:+ - openid+ - profile+ items:+ type: string+ minLength: 1+ maxLength: 1024+ description: |+ OIDC scopes requested from the upstream IdP. Must include+ `openid`.+ status:+ allOf:+ - $ref: '#/components/schemas/UserSourceStatus'+ default: active++ UserSourcePatchRequest:+ type: object+ properties:+ name:+ type: string+ minLength: 1+ maxLength: 255+ description: Human-readable name. Omit to keep the stored value.+ description:+ type: string+ maxLength: 4000+ description: |+ Freeform description. Omit to keep the stored value. Explicit+ `null` is stored as an empty string.+ protocol:+ $ref: '#/components/schemas/UserSourceProtocol'+ issuer:+ type: string+ minLength: 1+ maxLength: 2048+ format: uri+ nullable: true+ description: |+ OIDC issuer URL. Omit to keep the stored value. Must not be+ `null`. Re-validated only when the string actually changes.+ client_id:+ type: string+ minLength: 1+ maxLength: 2048+ description: OIDC client ID. Omit to keep the stored value.+ client_secret:+ type: string+ minLength: 1+ maxLength: 4096+ nullable: true+ description: |+ OIDC client secret. Omit to keep the stored secret. Send a new+ value to rotate. Explicit `null` clears the secret. Never+ returned in responses.+ subject_claim:+ type: string+ minLength: 1+ maxLength: 2048+ description: OIDC claim used as the stable subject identifier.+ scopes:+ type: array+ minItems: 1+ maxItems: 64+ items:+ type: string+ minLength: 1+ maxLength: 1024+ description: |+ OIDC scopes requested from the upstream IdP. Must include+ `openid` when sent. Re-validated only when the set actually+ changes.+ status:+ $ref: '#/components/schemas/UserSourceStatus'