diff --git a/assets/openapi.json b/assets/openapi.json index 2622eb82c..41c3649d6 100644 Binary files a/assets/openapi.json and b/assets/openapi.json differ diff --git a/assets/schemas.json b/assets/schemas.json index b195be355..2e4e90357 100644 Binary files a/assets/schemas.json and b/assets/schemas.json differ diff --git a/src/api/routes/gifs/trending.ts b/src/api/routes/gifs/trending.ts index 9839d3279..4938bcb20 100644 --- a/src/api/routes/gifs/trending.ts +++ b/src/api/routes/gifs/trending.ts @@ -19,7 +19,7 @@ import { route } from "@spacebar/api/util/handlers/route"; import { getGifApiKey, parseGifResult } from "@spacebar/util"; import { Request, Response, Router } from "express"; -import { TenorCategoriesResults, TenorTrendingResponse, TenorTrendingResults } from "@spacebar/schemas"; +import { TenorCategoriesResults, TrendingGifsResponse, TenorTrendingResults } from "@spacebar/schemas"; import { GifProviderManager } from "@spacebar/util/util/integrations/gifProviders/GifProviderManager"; import trendingGifs from "@spacebar/api/routes/gifs/trending-gifs"; @@ -40,7 +40,7 @@ router.get( }, responses: { 200: { - body: "TenorTrendingResponse", + body: "TrendingGifsResponse", }, }, }), @@ -55,7 +55,7 @@ router.get( res.json({ categories: trendingCategories, gifs: trendingGifs, - } satisfies TenorTrendingResponse).status(200); + } satisfies TrendingGifsResponse).status(200); }, ); diff --git a/src/schemas/responses/Tenor.ts b/src/schemas/responses/Tenor.ts index ac44899cf..b338ed415 100644 --- a/src/schemas/responses/Tenor.ts +++ b/src/schemas/responses/Tenor.ts @@ -87,7 +87,7 @@ export interface GifTrendingCategory { src: string; } -export interface TenorTrendingResponse { +export interface TrendingGifsResponse { categories: GifTrendingCategory[]; gifs: GifResponse[]; }