diff --git a/apps/engine/docs/openapi.yaml b/apps/engine/docs/openapi.yaml index 789b29a3..f0b244a4 100644 --- a/apps/engine/docs/openapi.yaml +++ b/apps/engine/docs/openapi.yaml @@ -2593,6 +2593,105 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + "/v1/orgs/{org_id}/projects/{project_id}/suggestions": + get: + security: + - Bearer: [] + description: Returns suggestions from every gateway in the project, ordered by + supporters descending. Static gateways are only included when named in + gateway_id. By default only unresolved suggestions are returned. + gateway_id and suggestion_submitter may be repeated to match any of + several values. + tags: + - Gateways + summary: List project suggestions + operationId: project-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 IDs to include (default: all gateways in the project)" + name: gateway_id + in: query + explode: true + schema: + type: array + items: + type: string + - description: Case-insensitive content search + name: query + in: query + schema: + type: string + - description: Submitter user IDs + name: suggestion_submitter + in: query + explode: true + schema: + type: array + items: + 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: + $ref: "#/components/schemas/schemas.ProjectSuggestionListResponse" + "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}/tool_executions": get: security: @@ -5560,6 +5659,42 @@ components: type: integer webhook_config: $ref: "#/components/schemas/schemas.WebhookConfigResponse" + schemas.ProjectSuggestionListResponse: + type: object + properties: + items: + type: array + items: + $ref: "#/components/schemas/schemas.ProjectSuggestionResponse" + limit: + type: integer + offset: + type: integer + total_count: + type: integer + schemas.ProjectSuggestionResponse: + type: object + properties: + content: + type: string + created_at: + type: string + gateway_id: + type: string + gateway_name: + 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.RateLimitConfigResponse: type: object properties: