diff --git a/mobile/openapi/lib/model/asset_response_dto.dart b/mobile/openapi/lib/model/asset_response_dto.dart index 5422ccf55f..078dd0bdaf 100644 --- a/mobile/openapi/lib/model/asset_response_dto.dart +++ b/mobile/openapi/lib/model/asset_response_dto.dart @@ -156,7 +156,7 @@ class AssetResponseDto { List tags; - /// Thumbhash for thumbnail generation + /// Thumbhash for thumbnail generation (base64) also used as the c query param for thumbnail cache busting. String? thumbhash; /// Asset type diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index d519e53ce3..264781db59 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -17070,7 +17070,7 @@ "type": "array" }, "thumbhash": { - "description": "Thumbhash for thumbnail generation", + "description": "Thumbhash for thumbnail generation (base64) also used as the c query param for thumbnail cache busting.", "nullable": true, "type": "string" }, diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index 8fda52e9ee..8f65e59cfa 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -616,7 +616,7 @@ export type AssetResponseDto = { resized?: boolean; stack?: (AssetStackResponseDto) | null; tags?: TagResponseDto[]; - /** Thumbhash for thumbnail generation */ + /** Thumbhash for thumbnail generation (base64) also used as the c query param for thumbnail cache busting. */ thumbhash: string | null; /** Asset type */ "type": AssetTypeEnum; diff --git a/server/src/dtos/asset-response.dto.ts b/server/src/dtos/asset-response.dto.ts index df02a0cdea..a76df4abaa 100644 --- a/server/src/dtos/asset-response.dto.ts +++ b/server/src/dtos/asset-response.dto.ts @@ -25,7 +25,10 @@ export class SanitizedAssetResponseDto { id!: string; @ValidateEnum({ enum: AssetType, name: 'AssetTypeEnum', description: 'Asset type' }) type!: AssetType; - @ApiProperty({ description: 'Thumbhash for thumbnail generation' }) + @ApiProperty({ + description: + 'Thumbhash for thumbnail generation (base64) also used as the c query param for thumbnail cache busting.', + }) thumbhash!: string | null; @ApiPropertyOptional({ description: 'Original MIME type' }) originalMimeType?: string;