1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2025-01-04 07:46:45 +01:00
immich-public-proxy/app/src/types.ts
2024-11-02 22:18:04 +01:00

42 lines
674 B
TypeScript

export enum AssetType {
image = 'IMAGE',
video = 'VIDEO'
}
export interface Asset {
id: string;
key: string;
password?: string;
type: AssetType;
isTrashed: boolean;
}
export interface SharedLink {
key: string;
type: string;
description?: string;
assets: Asset[];
album?: {
id: string;
albumName?: string;
}
expiresAt: string | null;
}
export interface SharedLinkResult {
valid: boolean;
key?: string;
passwordRequired?: boolean;
link?: SharedLink;
}
export enum ImageSize {
thumbnail = 'thumbnail',
original = 'original'
}
export interface IncomingShareRequest {
key: string;
password?: string;
size?: ImageSize;
}