feat(assets): add review actions and high risk view

This commit is contained in:
Xiaoxia AI
2026-06-23 22:57:56 +08:00
parent bf452e3510
commit 9cc48aeee9
8 changed files with 132 additions and 18 deletions
+10
View File
@@ -98,6 +98,16 @@ export const getAssets = async (libraryId: string): Promise<AssetItem[]> => {
return response.data.items;
};
export const updateAssetReviewStatus = async (
assetId: string,
reviewStatus: 'pending_review' | 'approved' | 'rejected'
): Promise<AssetItem> => {
const response = await apiClient.patch(`/assets/${assetId}/review`, {
review_status: reviewStatus,
});
return response.data;
};
export const uploadAsset = async (
formData: FormData
): Promise<{ storage_key: string; ingest_job_id: string; url: string }> => {