fix: clean up OAuth token cache on provider deletion (#7908)

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vincenzo Palazzo
2026-03-17 18:54:11 +01:00
committed by GitHub
parent b4f018f6f9
commit 827175619a
14 changed files with 174 additions and 9 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+28
View File
@@ -2655,6 +2655,34 @@ export type ProvidersResponses = {
export type ProvidersResponse2 = ProvidersResponses[keyof ProvidersResponses];
export type CleanupProviderCacheData = {
body?: never;
path: {
/**
* Provider name (e.g., githubcopilot)
*/
name: string;
};
query?: never;
url: '/config/providers/{name}/cleanup';
};
export type CleanupProviderCacheErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type CleanupProviderCacheResponses = {
/**
* Provider cache cleaned up successfully
*/
200: string;
};
export type CleanupProviderCacheResponse = CleanupProviderCacheResponses[keyof CleanupProviderCacheResponses];
export type GetProviderModelsData = {
body?: never;
path: {