refactor!: remove asset faces from AssetResponseDto (#27779)

* refactor!: remove faces from `people` in AssetResposnseDto

* chore: tests

* chore: e2e generator

* chore: code review readonly

* chore: code review changes

* chore: cleanup

* fix: openapi

* chore: format

---------

Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
Brandon Wees
2026-05-11 16:05:40 -05:00
committed by GitHub
parent a278c10c75
commit 38438c8d9a
21 changed files with 134 additions and 942 deletions
+7 -44
View File
@@ -787,29 +787,11 @@ export type ExifResponseDto = {
/** Time zone */
timeZone?: string | null;
};
export type AssetFaceWithoutPersonResponseDto = {
/** Bounding box X1 coordinate */
boundingBoxX1: number;
/** Bounding box X2 coordinate */
boundingBoxX2: number;
/** Bounding box Y1 coordinate */
boundingBoxY1: number;
/** Bounding box Y2 coordinate */
boundingBoxY2: number;
/** Face ID */
id: string;
/** Image height in pixels */
imageHeight: number;
/** Image width in pixels */
imageWidth: number;
sourceType?: SourceType;
};
export type PersonWithFacesResponseDto = {
export type PersonResponseDto = {
/** Person date of birth */
birthDate: string | null;
/** Person color (hex) */
color?: string;
faces: AssetFaceWithoutPersonResponseDto[];
/** Person ID */
id: string;
/** Is favorite */
@@ -892,7 +874,7 @@ export type AssetResponseDto = {
owner?: UserResponseDto;
/** Owner user ID */
ownerId: string;
people?: PersonWithFacesResponseDto[];
people?: PersonResponseDto[];
/** Is resized */
resized?: boolean;
stack?: (AssetStackResponseDto) | null;
@@ -900,7 +882,6 @@ export type AssetResponseDto = {
/** Thumbhash for thumbnail generation (base64) also used as the c query param for thumbnail cache busting. */
thumbhash: string | null;
"type": AssetTypeEnum;
unassignedFaces?: AssetFaceWithoutPersonResponseDto[];
/** The UTC timestamp when the asset record was last updated in the database. This is automatically maintained by the database and reflects when any field in the asset was last modified. */
updatedAt: string;
visibility: AssetVisibility;
@@ -1136,24 +1117,6 @@ export type DuplicateResolveDto = {
/** List of duplicate groups to resolve */
groups: DuplicateResolveGroupDto[];
};
export type PersonResponseDto = {
/** Person date of birth */
birthDate: string | null;
/** Person color (hex) */
color?: string;
/** Person ID */
id: string;
/** Is favorite */
isFavorite?: boolean;
/** Is hidden */
isHidden: boolean;
/** Person name */
name: string;
/** Thumbnail path */
thumbnailPath: string;
/** Last update date */
updatedAt?: string;
};
export type AssetFaceResponseDto = {
/** Bounding box X1 coordinate */
boundingBoxX1: number;
@@ -6971,11 +6934,6 @@ export enum AssetJobName {
RegenerateThumbnail = "regenerate-thumbnail",
TranscodeVideo = "transcode-video"
}
export enum SourceType {
MachineLearning = "machine-learning",
Exif = "exif",
Manual = "manual"
}
export enum AssetTypeEnum {
Image = "IMAGE",
Video = "VIDEO",
@@ -6997,6 +6955,11 @@ export enum AssetMediaSize {
Preview = "preview",
Thumbnail = "thumbnail"
}
export enum SourceType {
MachineLearning = "machine-learning",
Exif = "exif",
Manual = "manual"
}
export enum ManualJobName {
PersonCleanup = "person-cleanup",
TagCleanup = "tag-cleanup",