mirror of
https://github.com/alangrainger/immich-public-proxy.git
synced 2025-01-08 17:46:45 +01:00
30 lines
428 B
TypeScript
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'
|
|
}
|