immich-public-proxy/src/types.ts

22 lines
319 B
TypeScript
Raw Normal View History

2024-10-28 15:47:14 -04:00
export enum AssetType {
image = 'IMAGE',
video = 'VIDEO'
}
export interface Asset {
2024-10-28 04:56:11 -04:00
id: string;
2024-10-28 15:47:14 -04:00
type: AssetType;
2024-10-29 14:22:18 -04:00
isTrashed: boolean;
2024-10-28 04:56:11 -04:00
}
export interface SharedLink {
key: string;
2024-10-29 14:22:18 -04:00
assets: Asset[];
expiresAt: string | null;
2024-10-28 15:47:14 -04:00
}
export enum ImageSize {
thumbnail = 'thumbnail',
original = 'original'
2024-10-28 04:56:11 -04:00
}