1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2025-01-06 08:36:45 +01:00
immich-public-proxy/app/src/types.ts

43 lines
674 B
TypeScript
Raw Normal View History

2024-10-28 20:47:14 +01:00
export enum AssetType {
image = 'IMAGE',
video = 'VIDEO'
}
export interface Asset {
2024-10-28 09:56:11 +01:00
id: string;
key: string;
2024-11-01 11:58:27 +01:00
password?: string;
2024-10-28 20:47:14 +01:00
type: AssetType;
2024-10-29 19:22:18 +01:00
isTrashed: boolean;
2024-10-28 09:56:11 +01:00
}
export interface SharedLink {
key: string;
2024-10-30 19:53:09 +01:00
type: string;
2024-11-01 14:19:15 +01:00
description?: string;
2024-10-29 19:22:18 +01:00
assets: Asset[];
2024-10-30 19:53:09 +01:00
album?: {
id: string;
2024-11-01 14:19:15 +01:00
albumName?: string;
2024-10-30 19:53:09 +01:00
}
2024-10-29 19:22:18 +01:00
expiresAt: string | null;
2024-10-28 20:47:14 +01:00
}
2024-11-01 11:58:27 +01:00
export interface SharedLinkResult {
valid: boolean;
key?: string;
passwordRequired?: boolean;
link?: SharedLink;
}
2024-10-28 20:47:14 +01:00
export enum ImageSize {
thumbnail = 'thumbnail',
original = 'original'
2024-10-28 09:56:11 +01:00
}
2024-11-01 11:58:27 +01:00
export interface IncomingShareRequest {
key: string;
password?: string;
size?: ImageSize;
}