fix: rename total to count in AIBridgeListInterceptionsResponse (#20410)

Thanks to the great work in #20393, we’ve successfully introduced
offset-based pagination for this endpoint. However, the frontend expects
a `count` field in the response rather than `total`. This PR updates the
response payload to rename the returned key to `count` for consistency
with frontend expectations and existing API patterns.

This is necessary to unblock the work in #20331
This commit is contained in:
Jake Howell
2025-10-23 13:19:12 +11:00
committed by GitHub
parent 4bd7c7b7e0
commit d455f6ea2b
8 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ export interface AIBridgeInterception {
// From codersdk/aibridge.go
export interface AIBridgeListInterceptionsResponse {
readonly total: number;
readonly count: number;
readonly results: readonly AIBridgeInterception[];
}