From 9dbc0eb9d17aff96e4c2ff06c42052ec35bfff59 Mon Sep 17 00:00:00 2001 From: bwees Date: Fri, 23 Jan 2026 11:06:45 -0600 Subject: [PATCH] fix: update assetEditReady event on web --- open-api/typescript-sdk/src/fetch-client.ts | 10 ++++++++++ web/src/lib/stores/websocket.ts | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index 36d1e9c8e6..c573fe20d1 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -1912,6 +1912,16 @@ export type SyncAlbumV1 = { export type SyncAssetDeleteV1 = { assetId: string; }; +export type SyncAssetEditDeleteV1 = { + assetId: string; +}; +export type SyncAssetEditV1 = { + action: AssetEditAction; + assetId: string; + id: string; + parameters: object; + sequence: number; +}; export type SyncAssetExifV1 = { assetId: string; city: string | null; diff --git a/web/src/lib/stores/websocket.ts b/web/src/lib/stores/websocket.ts index 32df716fea..83faf8392e 100644 --- a/web/src/lib/stores/websocket.ts +++ b/web/src/lib/stores/websocket.ts @@ -12,6 +12,7 @@ import { type MaintenanceStatusResponseDto, type NotificationDto, type ServerVersionResponseDto, + type SyncAssetEditV1, type SyncAssetV1, } from '@immich/sdk'; import { io, type Socket } from 'socket.io-client'; @@ -41,7 +42,7 @@ export interface Events { AppRestartV1: (event: AppRestartEvent) => void; MaintenanceStatusV1: (event: MaintenanceStatusResponseDto) => void; - AssetEditReadyV1: (data: { asset: SyncAssetV1; edits: object }) => void; + AssetEditReadyV1: (data: { asset: SyncAssetV1; edits: SyncAssetEditV1[] }) => void; } const websocket: Socket = io({