support delete extensions

This commit is contained in:
Julian Freeman
2026-04-17 14:54:16 -04:00
parent d724db6f0f
commit 469b684876
12 changed files with 1253 additions and 26 deletions

View File

@@ -25,7 +25,7 @@ export type ExtensionSummary = {
version: string | null;
iconDataUrl: string | null;
profileIds: string[];
profiles: AssociatedProfileSummary[];
profiles: ExtensionAssociatedProfileSummary[];
};
export type BookmarkSummary = {
@@ -67,6 +67,28 @@ export type CleanupHistoryResponse = {
results: CleanupHistoryResult[];
};
export type RemoveExtensionsInput = {
browserId: string;
removals: ExtensionRemovalRequest[];
};
export type ExtensionRemovalRequest = {
extensionId: string;
profileIds: string[];
};
export type RemoveExtensionsResponse = {
results: RemoveExtensionResult[];
};
export type RemoveExtensionResult = {
extensionId: string;
profileId: string;
removedFiles: string[];
skippedFiles: string[];
error: string | null;
};
export type AssociatedProfileSummary = {
id: string;
name: string;
@@ -77,6 +99,19 @@ export type AssociatedProfileSummary = {
avatarLabel: string;
};
export type ExtensionInstallSource = "store" | "external";
export type ExtensionAssociatedProfileSummary = {
id: string;
name: string;
avatarDataUrl: string | null;
avatarIcon: string | null;
defaultAvatarFillColor: number | null;
defaultAvatarStrokeColor: number | null;
avatarLabel: string;
installSource: ExtensionInstallSource;
};
export type BookmarkAssociatedProfileSummary = {
id: string;
name: string;