1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2025-01-08 17:46:45 +01:00
immich-public-proxy/src/types.ts
2024-10-30 20:21:12 +01:00

30 lines
428 B
TypeScript

export enum AssetType {
image = 'IMAGE',
video = 'VIDEO'
}
export interface Asset {
id: string;
key: string;
type: AssetType;
isTrashed: boolean;
}
export interface SharedLink {
key: string;
type: string;
assets: Asset[];
album?: {
id: string;
}
expiresAt: string | null;
}
export interface Album {
assets: Asset[]
}
export enum ImageSize {
thumbnail = 'thumbnail',
original = 'original'
}