feat: add endpoint to list aibridge interceptions (#19929)

Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
Paweł Banaszewski
2025-09-27 00:20:33 +10:00
committed by GitHub
co-authored by Dean Sheather
parent d70e26d2e3
commit 0a6ba5d51a
29 changed files with 2646 additions and 144 deletions
@@ -0,0 +1,5 @@
DROP INDEX IF EXISTS idx_aibridge_interceptions_started_id_desc;
DROP INDEX IF EXISTS idx_aibridge_interceptions_provider;
DROP INDEX IF EXISTS idx_aibridge_interceptions_model;
@@ -0,0 +1,9 @@
-- This is used for consistent cursor pagination.
CREATE INDEX IF NOT EXISTS idx_aibridge_interceptions_started_id_desc
ON aibridge_interceptions (started_at DESC, id DESC);
CREATE INDEX IF NOT EXISTS idx_aibridge_interceptions_provider
ON aibridge_interceptions (provider);
CREATE INDEX IF NOT EXISTS idx_aibridge_interceptions_model
ON aibridge_interceptions (model);