diff --git a/apps/engine/docs/openapi.yaml b/apps/engine/docs/openapi.yaml index d5b27b0a..789b29a3 100644 --- a/apps/engine/docs/openapi.yaml +++ b/apps/engine/docs/openapi.yaml @@ -197,6 +197,17 @@ paths: - Admin summary: List secrets operationId: 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: integer responses: "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 Error content: @@ -371,12 +388,12 @@ paths: in: query schema: type: string - - description: Page size + - description: "Number of items to return (default: 100, max: 25000)" name: limit in: query schema: type: integer - - description: Page offset + - description: "Offset from the start of the list (default: 0)" name: offset in: query schema: @@ -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: query schema: type: string - - description: "Number of items to return (default: 25, max: 100)" + - description: "Number of items to return (default: 100, max: 25000)" name: limit in: query schema: @@ -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: - Hooks summary: List hooks - operationId: hooks-list parameters: - - 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: limit in: query schema: type: integer - - description: Offset + - description: "Offset from the start of the list (default: 0)" name: offset in: query schema: @@ -927,14 +896,15 @@ paths: tags: - Hooks summary: Create a hook - operationId: hooks-create + parameters: + - description: Organization ID + name: org_id + in: path + required: true + schema: + type: string requestBody: - 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: - Hooks summary: Bulk upsert hooks - operationId: hooks-bulk-upsert + parameters: + - description: Organization ID + name: org_id + in: path + required: true + schema: + type: string requestBody: - 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: - Hooks summary: Get a hook - operationId: hooks-get parameters: + - description: Organization ID + name: org_id + in: path + required: true + schema: + type: string - description: Hook ID name: hook_id in: path @@ -1055,8 +1031,13 @@ paths: tags: - Hooks summary: Delete a hook - operationId: hooks-delete parameters: + - description: Organization ID + name: org_id + in: path + required: true + schema: + type: string - description: Hook ID name: hook_id in: path @@ -1091,8 +1072,13 @@ paths: tags: - Hooks summary: Update a hook - operationId: hooks-update parameters: + - description: Organization ID + name: org_id + in: path + required: true + schema: + type: string - description: Hook ID name: hook_id in: path @@ -1100,12 +1086,7 @@ paths: schema: type: string requestBody: - 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 binding tags: - - Gateways - summary: List gateways - operationId: project-gateways-list + - Plugins + summary: List plugins parameters: - description: Organization ID name: org_id @@ -1147,13 +1127,7 @@ paths: 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: 25, max: 100)" + - description: "Number of items to return (default: 100, max: 25000)" name: limit in: query schema: @@ -1163,25 +1137,24 @@ paths: 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_GatewayResponse" + $ref: "#/components/schemas/schemas.OffsetPage-schemas_PluginResponse" "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: @@ -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 hooks tags: - - Gateways - summary: Create a gateway - operationId: project-gateways-create + - Plugins + summary: Create a plugin parameters: - description: Organization ID name: org_id @@ -1203,38 +1175,21 @@ paths: 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 + $ref: "#/components/requestBodies/schemas.CreatePluginRequest" responses: "201": description: Created content: application/json: schema: - $ref: "#/components/schemas/schemas.GatewayResponse" + $ref: "#/components/schemas/schemas.CreatePluginResponse" "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" "409": description: Conflict content: @@ -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 ID tags: - - Gateways - summary: Check gateway slug availability - operationId: project-gateways-slug-info + - Plugins + summary: Get a plugin parameters: - description: Organization ID name: org_id @@ -1263,34 +1217,27 @@ paths: required: true schema: type: string - - description: Project ID - name: project_id + - description: Plugin ID + name: plugin_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" + $ref: "#/components/schemas/schemas.PluginResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "401": - description: Unauthorized + "404": + description: Not Found content: 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 ID tags: - - Gateways - summary: Get a gateway - operationId: project-gateways-get + - Plugins + summary: Delete a plugin parameters: - description: Organization ID name: org_id @@ -1317,39 +1262,29 @@ paths: required: true schema: 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_id in: path required: true schema: type: string responses: - "200": - description: OK - content: - application/json: - schema: - $ref: "#/components/schemas/schemas.GatewayResponse" + "204": + description: No Content "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "401": - description: Unauthorized + "404": + description: Not Found content: application/json: schema: $ref: "#/components/schemas/schemas.Error" - "404": - description: Not Found + "409": + description: Conflict content: 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 configuration tags: - - Gateways - summary: Update a gateway - operationId: project-gateways-update + - Plugins + summary: Update a plugin parameters: - description: Organization ID name: org_id @@ -1375,32 +1309,78 @@ paths: required: true schema: 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_id in: path required: true schema: type: string requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/schemas.UpdateGatewayRequest" - description: Gateway configuration - required: true + $ref: "#/components/requestBodies/schemas.PatchPluginRequest" responses: "200": description: OK content: 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 Request content: @@ -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: Unauthorized content: 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 use tags: - 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-get parameters: - description: Organization ID name: org_id @@ -1459,8 +1543,79 @@ paths: schema: type: string responses: - "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 Request content: @@ -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: Conflict content: application/json: schema: @@ -1488,11 +2543,10 @@ paths: patch: security: - Bearer: [] - description: Partially updates an existing gateway configuration + description: Updates an existing plugin configuration tags: - - Gateways - summary: Patch a gateway - operationId: project-gateways-patch + - Plugins + summary: Update a plugin parameters: - description: Organization ID name: org_id @@ -1506,50 +2560,33 @@ paths: required: true schema: type: string - - description: Gateway ID - name: gateway_id + - description: Plugin ID + name: plugin_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 + $ref: "#/components/requestBodies/schemas.PatchPluginRequest" responses: "200": description: OK content: 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" - "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: @@ -1778,262 +2815,48 @@ paths: in: path required: true schema: - 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: id in: path required: true schema: 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: boolean responses: "200": description: OK content: application/json: schema: - $ref: "#/components/schemas/schemas.PluginResponse" + $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: @@ -2078,7 +2901,7 @@ paths: in: query schema: type: string - - description: "Number of items to return (default: 25, max: 100)" + - description: "Number of items to return (default: 100, max: 25000)" name: limit in: query schema: @@ -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: - Tools summary: 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 workers operationId: workers-list parameters: - - description: "Number of items to return (default: 25, max: 100)" + - description: "Number of items to return (default: 100, max: 25000)" name: limit in: query schema: @@ -2657,7 +3605,7 @@ paths: 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: limit in: query schema: @@ -2686,6 +3634,42 @@ externalDocs: servers: - url: https://api.arcade.dev components: + 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: true securitySchemes: Bearer: description: "Enter your API key or API token in the format: Bearer " @@ -3071,146 +4055,27 @@ components: - mcp version: 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: object properties: - 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_id properties: - 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: 256 schemas.CreateGatewayRequest: type: object required: @@ -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: object required: @@ -3298,17 +4194,16 @@ components: type: integer maximum: 30000 minimum: 100 - schemas.CreateModelRequest: + schemas.CreateOktaBackendRequest: type: object required: - - config - - id - - model_provider_type + - api_token + - org_url properties: - config: {} - id: + api_token: type: string - model_provider_type: + maxLength: 4096 + org_url: type: string schemas.CreatePluginRequest: type: object @@ -3319,6 +4214,8 @@ components: description: type: string maxLength: 1000 + group_access_config: + $ref: "#/components/schemas/schemas.CreateGroupAccessConfigRequest" name: type: string maxLength: 256 @@ -3327,6 +4224,7 @@ components: enum: - webhook - rate_limit + - group_access rate_limit_config: $ref: "#/components/schemas/schemas.CreateRateLimitConfigRequest" retry: @@ -3350,6 +4248,8 @@ components: type: string description: type: string + group_access_config: + $ref: "#/components/schemas/schemas.GroupAccessConfigResponse" health_status: type: string hooks: @@ -3416,6 +4316,49 @@ components: type: array items: 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: string schemas.CreateToolFilterRequest: type: object properties: @@ -3491,8 +4434,12 @@ components: properties: error: type: string + server_version: + type: string status: type: string + version: + type: integer schemas.DiscoveryResponse: type: object properties: @@ -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: string schemas.Error: type: object properties: + 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: string tool_name: type: string @@ -3645,6 +4607,67 @@ components: type: string user_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: string schemas.HTTPWorkerConfigRequest: type: object required: @@ -3879,27 +4902,6 @@ components: uri: type: string maxLength: 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: object properties: @@ -4090,8 +5092,6 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer schemas.OffsetPage-schemas_AuthProviderResponse: @@ -4105,8 +5105,6 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer schemas.OffsetPage-schemas_GatewayResponse: @@ -4120,8 +5118,6 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer schemas.OffsetPage-schemas_HookResponse: @@ -4135,23 +5131,6 @@ components: type: integer offset: 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: integer total_count: type: integer schemas.OffsetPage-schemas_PluginResponse: @@ -4165,8 +5144,6 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer schemas.OffsetPage-schemas_StoredSecretResponse: @@ -4180,8 +5157,6 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer schemas.OffsetPage-schemas_ToolExecutionListResponse: @@ -4195,8 +5170,6 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer schemas.OffsetPage-schemas_ToolResponse: @@ -4210,8 +5183,6 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer schemas.OffsetPage-schemas_UserAuthProviderConnectionResponse: @@ -4225,8 +5196,6 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer schemas.OffsetPage-schemas_WorkerResponse: @@ -4240,10 +5209,15 @@ components: type: integer offset: type: integer - page_count: - type: integer total_count: type: integer + schemas.OktaBackendResponse: + type: object + properties: + api_token: + $ref: "#/components/schemas/schemas.SecretResponse" + org_url: + type: string schemas.Output: type: object properties: @@ -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: 1 schemas.PatchGatewayRequest: type: object properties: @@ -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: object properties: @@ -4372,12 +5383,23 @@ components: type: integer maximum: 30000 minimum: 100 + schemas.PatchOktaBackendRequest: + type: object + properties: + api_token: + type: string + maxLength: 4096 + minLength: 1 + org_url: + type: string schemas.PatchPluginRequest: type: object properties: description: type: string maxLength: 1000 + group_access_config: + $ref: "#/components/schemas/schemas.PatchGroupAccessConfigRequest" name: type: string maxLength: 256 @@ -4422,6 +5444,19 @@ components: type: array items: 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: string schemas.PatchToolFilterRequest: type: object properties: @@ -4501,6 +5536,8 @@ components: type: string description: type: string + group_access_config: + $ref: "#/components/schemas/schemas.GroupAccessConfigResponse" health_status: type: string id: @@ -4576,19 +5613,12 @@ components: type: array items: $ref: "#/components/schemas/schemas.SecretRequirement" - schemas.ResponseFormat: + schemas.ResolveSuggestionRequest: type: object properties: - type: - $ref: "#/components/schemas/schemas.ResponseFormatType" - schemas.ResponseFormatType: - type: string - enum: - - json_object - - text - x-enum-varnames: - - ResponseFormatJSON - - ResponseFormatText + resolution_notes: + type: string + maxLength: 1000 schemas.RetryConfigResponse: type: object properties: @@ -4604,6 +5634,15 @@ components: type: array items: type: string + schemas.SailPointBackendResponse: + type: object + properties: + client_id: + type: string + client_secret: + $ref: "#/components/schemas/schemas.SecretResponse" + tenant_url: + type: string schemas.SecretRequirement: type: object required: @@ -4696,20 +5735,18 @@ components: type: string updated_at: type: string - schemas.StreamOptions: + schemas.TaskSelectionResult: type: object properties: - 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: string schemas.TokenIntrospectionCreateRequest: type: object required: @@ -4913,12 +5950,83 @@ components: type: string discovery: $ref: "#/components/schemas/schemas.DiscoveryResponse" - schemas.ToolFunctionCall: + schemas.ToolRecommendationRequest: type: object + required: + - query properties: - 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: string schemas.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: string input: $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: object properties: @@ -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: string schemas.UpdateSessionVerificationSettingsRequest: type: object properties: @@ -5160,15 +6322,6 @@ components: value: type: string maxLength: 5000 - schemas.Usage: - type: object - properties: - completion_tokens: - type: integer - prompt_tokens: - type: integer - total_tokens: - type: integer schemas.UserAuthProviderConnectionResponse: type: object properties: