chore: deprecate /api/v2/aibridge/interceptions endpoint (#24670)

*Disclaimer: implemented by a Coder Agent using Claude Opus 4.6*

Marks the `GET /api/v2/aibridge/interceptions` endpoint as deprecated in
favor of `/aibridge/sessions`, which provides richer session-level
aggregation including threads and agentic actions.

Changes:
- Add `@Deprecated` Swagger annotation to the endpoint handler
- Add deprecation notice to the
`codersdk.Client.AIBridgeListInterceptions` method
- Regenerated OpenAPI spec with `"deprecated": true` flag

The endpoint remains fully functional.

Fixes https://github.com/coder/internal/issues/1339
This commit is contained in:
Danny Kopping
2026-04-23 15:33:40 +02:00
committed by GitHub
parent e17da2f648
commit a8613b2209
4 changed files with 10 additions and 1 deletions
+1
View File
@@ -122,6 +122,7 @@ const docTemplate = `{
],
"summary": "List AI Bridge interceptions",
"operationId": "list-ai-bridge-interceptions",
"deprecated": true,
"parameters": [
{
"type": "string",
+1
View File
@@ -95,6 +95,7 @@
"tags": ["AI Bridge"],
"summary": "List AI Bridge interceptions",
"operationId": "list-ai-bridge-interceptions",
"deprecated": true,
"parameters": [
{
"type": "string",