immich-public-proxy/app/src/types.ts

45 lines
715 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;
key: string;
2024-11-01 06:58:27 -04:00
password?: 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-30 14:53:09 -04:00
type: string;
2024-11-01 09:19:15 -04:00
description?: string;
2024-10-29 14:22:18 -04:00
assets: Asset[];
2024-10-30 14:53:09 -04:00
album?: {
id: string;
2024-11-01 09:19:15 -04:00
albumName?: string;
2024-10-30 14:53:09 -04:00
}
2024-10-29 14:22:18 -04:00
expiresAt: string | null;
2024-10-28 15:47:14 -04:00
}
2024-11-01 06:58:27 -04:00
export interface SharedLinkResult {
valid: boolean;
key?: string;
passwordRequired?: boolean;
link?: SharedLink;
}
2024-10-28 15:47:14 -04:00
export enum ImageSize {
thumbnail = 'thumbnail',
preview = 'preview',
2024-10-28 15:47:14 -04:00
original = 'original'
2024-10-28 04:56:11 -04:00
}
2024-11-01 06:58:27 -04:00
export interface IncomingShareRequest {
key: string;
password?: string;
size?: ImageSize;
2024-11-10 15:00:41 -05:00
range?: string;
2024-11-01 06:58:27 -04:00
}