From bd01b5931b09c44610512916bc7b3997463bdb4e Mon Sep 17 00:00:00 2001 From: izzy Date: Mon, 1 Jun 2026 14:34:14 +0100 Subject: [PATCH] chore: remove `open-api/typescript-sdk` --- .../typescript-sdk/build/fetch-client.d.ts | 5697 ----------------- open-api/typescript-sdk/build/fetch-client.js | 3249 ---------- .../typescript-sdk/build/fetch-errors.d.ts | 16 - open-api/typescript-sdk/build/fetch-errors.js | 4 - open-api/typescript-sdk/build/index.d.ts | 18 - open-api/typescript-sdk/build/index.js | 40 - 6 files changed, 9024 deletions(-) delete mode 100644 open-api/typescript-sdk/build/fetch-client.d.ts delete mode 100644 open-api/typescript-sdk/build/fetch-client.js delete mode 100644 open-api/typescript-sdk/build/fetch-errors.d.ts delete mode 100644 open-api/typescript-sdk/build/fetch-errors.js delete mode 100644 open-api/typescript-sdk/build/index.d.ts delete mode 100644 open-api/typescript-sdk/build/index.js diff --git a/open-api/typescript-sdk/build/fetch-client.d.ts b/open-api/typescript-sdk/build/fetch-client.d.ts deleted file mode 100644 index f88f6dcefb..0000000000 --- a/open-api/typescript-sdk/build/fetch-client.d.ts +++ /dev/null @@ -1,5697 +0,0 @@ -/** - * Immich - * 3.0.0 - * DO NOT MODIFY - This file has been generated using oazapfts. - * See https://www.npmjs.com/package/oazapfts - */ -import * as Oazapfts from "@oazapfts/runtime"; -export declare const defaults: Oazapfts.Defaults; -export declare const servers: { - server1: string; -}; -export type UserResponseDto = { - avatarColor: UserAvatarColor; - /** User email */ - email: string; - /** User ID */ - id: string; - /** User name */ - name: string; - /** Profile change date */ - profileChangedAt: string; - /** Profile image path */ - profileImagePath: string; -}; -export type ActivityResponseDto = { - /** Asset ID (if activity is for an asset) */ - assetId: string | null; - /** Comment text (for comment activities) */ - comment?: string | null; - /** Creation date */ - createdAt: string; - /** Activity ID */ - id: string; - "type": ReactionType; - user: UserResponseDto; -}; -export type ActivityCreateDto = { - /** Album ID */ - albumId: string; - /** Asset ID (if activity is for an asset) */ - assetId?: string; - /** Comment text (required if type is comment) */ - comment?: string; - "type": ReactionType; -}; -export type ActivityStatisticsResponseDto = { - /** Number of comments */ - comments: number; - /** Number of likes */ - likes: number; -}; -export type DatabaseBackupDeleteDto = { - /** Backup filenames to delete */ - backups: string[]; -}; -export type DatabaseBackupDto = { - /** Backup filename */ - filename: string; - /** Backup file size */ - filesize: number; - /** Backup timezone */ - timezone: string; -}; -export type DatabaseBackupListResponseDto = { - /** List of backups */ - backups: DatabaseBackupDto[]; -}; -export type DatabaseBackupUploadDto = { - /** Database backup file */ - file?: Blob; -}; -export type SetMaintenanceModeDto = { - action: MaintenanceAction; - /** Restore backup filename */ - restoreBackupFilename?: string; -}; -export type MaintenanceDetectInstallStorageFolderDto = { - /** Number of files in the folder */ - files: number; - folder: StorageFolder; - /** Whether the folder is readable */ - readable: boolean; - /** Whether the folder is writable */ - writable: boolean; -}; -export type MaintenanceDetectInstallResponseDto = { - storage: MaintenanceDetectInstallStorageFolderDto[]; -}; -export type MaintenanceLoginDto = { - /** Maintenance token */ - token?: string; -}; -export type MaintenanceAuthDto = { - /** Maintenance username */ - username: string; -}; -export type MaintenanceStatusResponseDto = { - action: MaintenanceAction; - active: boolean; - error?: string; - progress?: number; - task?: string; -}; -export type NotificationCreateDto = { - /** Additional notification data */ - data?: { - [key: string]: any; - }; - /** Notification description */ - description?: string | null; - level?: NotificationLevel; - /** Date when notification was read */ - readAt?: string | null; - /** Notification title */ - title: string; - "type"?: NotificationType; - /** User ID to send notification to */ - userId: string; -}; -export type NotificationDto = { - /** Creation date */ - createdAt: string; - /** Additional notification data */ - data?: { - [key: string]: any; - }; - /** Notification description */ - description?: string; - /** Notification ID */ - id: string; - level: NotificationLevel; - /** Date when notification was read */ - readAt?: string; - /** Notification title */ - title: string; - "type": NotificationType; -}; -export type TemplateDto = { - /** Template name */ - template: string; -}; -export type TemplateResponseDto = { - /** Template HTML content */ - html: string; - /** Template name */ - name: string; -}; -export type SystemConfigSmtpTransportDto = { - /** SMTP server hostname */ - host: string; - /** Whether to ignore SSL certificate errors */ - ignoreCert: boolean; - /** SMTP password */ - password: string; - /** SMTP server port */ - port: number; - /** Whether to use secure connection (TLS/SSL) */ - secure: boolean; - /** SMTP username */ - username: string; -}; -export type SystemConfigSmtpDto = { - /** Whether SMTP email notifications are enabled */ - enabled: boolean; - /** Email address to send from */ - "from": string; - /** Email address for replies */ - replyTo: string; - transport: SystemConfigSmtpTransportDto; -}; -export type TestEmailResponseDto = { - /** Email message ID */ - messageId: string; -}; -export type UserLicense = { - /** Activation date */ - activatedAt: string; - /** Activation key */ - activationKey: string; - /** License key (format: /^IM(SV|CL)(-[\dA-Za-z]{4}){8}$/) */ - licenseKey: string; -}; -export type UserAdminResponseDto = { - avatarColor: UserAvatarColor; - /** Creation date */ - createdAt: string; - /** Deletion date */ - deletedAt: string | null; - /** User email */ - email: string; - /** User ID */ - id: string; - /** Is admin user */ - isAdmin: boolean; - license: (UserLicense) | null; - /** User name */ - name: string; - /** OAuth ID */ - oauthId: string; - /** Profile change date */ - profileChangedAt: string; - /** Profile image path */ - profileImagePath: string; - /** Storage quota in bytes */ - quotaSizeInBytes: number | null; - /** Storage usage in bytes */ - quotaUsageInBytes: number | null; - /** Require password change on next login */ - shouldChangePassword: boolean; - status: UserStatus; - /** Storage label */ - storageLabel: string | null; - /** Last update date */ - updatedAt: string; -}; -export type UserAdminCreateDto = { - avatarColor?: (UserAvatarColor) | null; - /** User email */ - email: string; - /** Grant admin privileges */ - isAdmin?: boolean; - /** User name */ - name: string; - /** Send notification email */ - notify?: boolean; - /** User password */ - password: string; - /** PIN code */ - pinCode?: string | null; - /** Storage quota in bytes */ - quotaSizeInBytes?: number | null; - /** Require password change on next login */ - shouldChangePassword?: boolean; - /** Storage label */ - storageLabel?: string | null; -}; -export type UserAdminDeleteDto = { - /** Force delete even if user has assets */ - force?: boolean; -}; -export type UserAdminUpdateDto = { - avatarColor?: (UserAvatarColor) | null; - /** User email */ - email?: string; - /** Grant admin privileges */ - isAdmin?: boolean; - /** User name */ - name?: string; - /** User password */ - password?: string; - /** PIN code */ - pinCode?: string | null; - /** Storage quota in bytes */ - quotaSizeInBytes?: number | null; - /** Require password change on next login */ - shouldChangePassword?: boolean; - /** Storage label */ - storageLabel?: string | null; -}; -export type AlbumsResponse = { - defaultAssetOrder: AssetOrder; -}; -export type CastResponse = { - /** Whether Google Cast is enabled */ - gCastEnabled: boolean; -}; -export type DownloadResponse = { - /** Maximum archive size in bytes */ - archiveSize: number; - /** Whether to include embedded videos in downloads */ - includeEmbeddedVideos: boolean; -}; -export type EmailNotificationsResponse = { - /** Whether to receive email notifications for album invites */ - albumInvite: boolean; - /** Whether to receive email notifications for album updates */ - albumUpdate: boolean; - /** Whether email notifications are enabled */ - enabled: boolean; -}; -export type FoldersResponse = { - /** Whether folders are enabled */ - enabled: boolean; - /** Whether folders appear in web sidebar */ - sidebarWeb: boolean; -}; -export type MemoriesResponse = { - /** Memory duration in seconds */ - duration: number; - /** Whether memories are enabled */ - enabled: boolean; -}; -export type PeopleResponse = { - /** Whether people are enabled */ - enabled: boolean; - /** Whether people appear in web sidebar */ - sidebarWeb: boolean; -}; -export type PurchaseResponse = { - /** Date until which to hide buy button */ - hideBuyButtonUntil: string; - /** Whether to show support badge */ - showSupportBadge: boolean; -}; -export type RatingsResponse = { - /** Whether ratings are enabled */ - enabled: boolean; -}; -export type SharedLinksResponse = { - /** Whether shared links are enabled */ - enabled: boolean; - /** Whether shared links appear in web sidebar */ - sidebarWeb: boolean; -}; -export type TagsResponse = { - /** Whether tags are enabled */ - enabled: boolean; - /** Whether tags appear in web sidebar */ - sidebarWeb: boolean; -}; -export type UserPreferencesResponseDto = { - albums: AlbumsResponse; - cast: CastResponse; - download: DownloadResponse; - emailNotifications: EmailNotificationsResponse; - folders: FoldersResponse; - memories: MemoriesResponse; - people: PeopleResponse; - purchase: PurchaseResponse; - ratings: RatingsResponse; - sharedLinks: SharedLinksResponse; - tags: TagsResponse; -}; -export type AlbumsUpdate = { - defaultAssetOrder?: AssetOrder; -}; -export type AvatarUpdate = { - color?: UserAvatarColor; -}; -export type CastUpdate = { - /** Whether Google Cast is enabled */ - gCastEnabled?: boolean; -}; -export type DownloadUpdate = { - /** Maximum archive size in bytes */ - archiveSize?: number; - /** Whether to include embedded videos in downloads */ - includeEmbeddedVideos?: boolean; -}; -export type EmailNotificationsUpdate = { - /** Whether to receive email notifications for album invites */ - albumInvite?: boolean; - /** Whether to receive email notifications for album updates */ - albumUpdate?: boolean; - /** Whether email notifications are enabled */ - enabled?: boolean; -}; -export type FoldersUpdate = { - /** Whether folders are enabled */ - enabled?: boolean; - /** Whether folders appear in web sidebar */ - sidebarWeb?: boolean; -}; -export type MemoriesUpdate = { - /** Memory duration in seconds */ - duration?: number; - /** Whether memories are enabled */ - enabled?: boolean; -}; -export type PeopleUpdate = { - /** Whether people are enabled */ - enabled?: boolean; - /** Whether people appear in web sidebar */ - sidebarWeb?: boolean; -}; -export type PurchaseUpdate = { - /** Date until which to hide buy button */ - hideBuyButtonUntil?: string; - /** Whether to show support badge */ - showSupportBadge?: boolean; -}; -export type RatingsUpdate = { - /** Whether ratings are enabled */ - enabled?: boolean; -}; -export type SharedLinksUpdate = { - /** Whether shared links are enabled */ - enabled?: boolean; - /** Whether shared links appear in web sidebar */ - sidebarWeb?: boolean; -}; -export type TagsUpdate = { - /** Whether tags are enabled */ - enabled?: boolean; - /** Whether tags appear in web sidebar */ - sidebarWeb?: boolean; -}; -export type UserPreferencesUpdateDto = { - albums?: AlbumsUpdate; - avatar?: AvatarUpdate; - cast?: CastUpdate; - download?: DownloadUpdate; - emailNotifications?: EmailNotificationsUpdate; - folders?: FoldersUpdate; - memories?: MemoriesUpdate; - people?: PeopleUpdate; - purchase?: PurchaseUpdate; - ratings?: RatingsUpdate; - sharedLinks?: SharedLinksUpdate; - tags?: TagsUpdate; -}; -export type SessionResponseDto = { - /** App version */ - appVersion: string | null; - /** Creation date */ - createdAt: string; - /** Is current session */ - current: boolean; - /** Device OS */ - deviceOS: string; - /** Device type */ - deviceType: string; - /** Expiration date */ - expiresAt?: string; - /** Session ID */ - id: string; - /** Is pending sync reset */ - isPendingSyncReset: boolean; - /** Last update date */ - updatedAt: string; -}; -export type AssetStatsResponseDto = { - /** Number of images */ - images: number; - /** Total number of assets */ - total: number; - /** Number of videos */ - videos: number; -}; -export type AlbumUserResponseDto = { - role: AlbumUserRole; - user: UserResponseDto; -}; -export type ContributorCountResponseDto = { - /** Number of assets contributed */ - assetCount: number; - /** User ID */ - userId: string; -}; -export type AlbumResponseDto = { - /** Album name */ - albumName: string; - /** Thumbnail asset ID */ - albumThumbnailAssetId: string | null; - /** First entry is always the album owner. Second entry is the auth user, if it differs from the owner. The rest are ordered alphabetically. */ - albumUsers: AlbumUserResponseDto[]; - /** Number of assets */ - assetCount: number; - contributorCounts?: ContributorCountResponseDto[]; - /** Creation date */ - createdAt: string; - /** Album description */ - description: string; - /** End date (latest asset) */ - endDate?: string; - /** Has shared link */ - hasSharedLink: boolean; - /** Album ID */ - id: string; - /** Activity feed enabled */ - isActivityEnabled: boolean; - /** Last modified asset timestamp */ - lastModifiedAssetTimestamp?: string; - order?: AssetOrder; - /** Is shared album */ - shared: boolean; - /** Start date (earliest asset) */ - startDate?: string; - /** Last update date */ - updatedAt: string; -}; -export type AlbumUserCreateDto = { - role: AlbumUserRole; - /** User ID */ - userId: string; -}; -export type CreateAlbumDto = { - /** Album name */ - albumName: string; - /** Album users */ - albumUsers?: AlbumUserCreateDto[]; - /** Initial asset IDs */ - assetIds?: string[]; - /** Album description */ - description?: string; -}; -export type AlbumsAddAssetsDto = { - /** Album IDs */ - albumIds: string[]; - /** Asset IDs */ - assetIds: string[]; -}; -export type AlbumsAddAssetsResponseDto = { - error?: BulkIdErrorReason; - /** Operation success */ - success: boolean; -}; -export type AlbumStatisticsResponseDto = { - /** Number of non-shared albums */ - notShared: number; - /** Number of owned albums */ - owned: number; - /** Number of shared albums */ - shared: number; -}; -export type UpdateAlbumDto = { - /** Album name */ - albumName?: string; - /** Album thumbnail asset ID */ - albumThumbnailAssetId?: string; - /** Album description */ - description?: string; - /** Enable activity feed */ - isActivityEnabled?: boolean; - order?: AssetOrder; -}; -export type BulkIdsDto = { - /** IDs to process */ - ids: string[]; -}; -export type BulkIdResponseDto = { - error?: BulkIdErrorReason; - errorMessage?: string; - /** ID */ - id: string; - /** Whether operation succeeded */ - success: boolean; -}; -export type MapMarkerResponseDto = { - /** City name */ - city: string | null; - /** Country name */ - country: string | null; - /** Asset ID */ - id: string; - /** Latitude */ - lat: number; - /** Longitude */ - lon: number; - /** State/Province name */ - state: string | null; -}; -export type UpdateAlbumUserDto = { - role: AlbumUserRole; -}; -export type AlbumUserAddDto = { - /** Album user role */ - role?: AlbumUserRole; - /** User ID */ - userId: string; -}; -export type AddUsersDto = { - /** Album users to add */ - albumUsers: AlbumUserAddDto[]; -}; -export type ApiKeyResponseDto = { - /** Creation date */ - createdAt: string; - /** API key ID */ - id: string; - /** API key name */ - name: string; - /** List of permissions */ - permissions: Permission[]; - /** Last update date */ - updatedAt: string; -}; -export type ApiKeyCreateDto = { - /** API key name */ - name?: string; - /** List of permissions */ - permissions: Permission[]; -}; -export type ApiKeyCreateResponseDto = { - apiKey: ApiKeyResponseDto; - /** API key secret (only shown once) */ - secret: string; -}; -export type ApiKeyUpdateDto = { - /** API key name */ - name?: string; - /** List of permissions */ - permissions?: Permission[]; -}; -export type AssetBulkDeleteDto = { - /** Force delete even if in use */ - force?: boolean; - /** IDs to process */ - ids: string[]; -}; -export type AssetMetadataUpsertItemDto = { - /** Metadata key */ - key: string; - /** Metadata value (object) */ - value: { - [key: string]: any; - }; -}; -export type AssetMediaCreateDto = { - /** Asset file data */ - assetData: Blob; - /** Duration in milliseconds (for videos) */ - duration?: number; - /** File creation date */ - fileCreatedAt: string; - /** File modification date */ - fileModifiedAt: string; - /** Filename */ - filename?: string; - /** Mark as favorite */ - isFavorite?: boolean; - /** Live photo video ID */ - livePhotoVideoId?: string; - /** Asset metadata items */ - metadata?: AssetMetadataUpsertItemDto[]; - /** Sidecar file data */ - sidecarData?: Blob; - visibility?: AssetVisibility; -}; -export type AssetMediaResponseDto = { - /** Asset media ID */ - id: string; - status: AssetMediaStatus; -}; -export type AssetBulkUpdateDto = { - /** Original date and time */ - dateTimeOriginal?: string; - /** Relative time offset in seconds */ - dateTimeRelative?: number; - /** Asset description */ - description?: string; - /** Duplicate ID */ - duplicateId?: string | null; - /** Asset IDs to update */ - ids: string[]; - /** Mark as favorite */ - isFavorite?: boolean; - /** Latitude coordinate */ - latitude?: number; - /** Longitude coordinate */ - longitude?: number; - /** Rating in range [1-5], or null for unrated */ - rating?: number | null; - /** Time zone (IANA timezone) */ - timeZone?: string; - visibility?: AssetVisibility; -}; -export type AssetBulkUploadCheckItem = { - /** Base64 or hex encoded SHA1 hash */ - checksum: string; - /** Asset ID */ - id: string; -}; -export type AssetBulkUploadCheckDto = { - /** Assets to check */ - assets: AssetBulkUploadCheckItem[]; -}; -export type AssetBulkUploadCheckResult = { - action: AssetUploadAction; - /** Existing asset ID if duplicate */ - assetId?: string; - /** Asset ID */ - id: string; - /** Whether existing asset is trashed */ - isTrashed?: boolean; - reason?: AssetRejectReason; -}; -export type AssetBulkUploadCheckResponseDto = { - /** Upload check results */ - results: AssetBulkUploadCheckResult[]; -}; -export type AssetCopyDto = { - /** Copy album associations */ - albums?: boolean; - /** Copy favorite status */ - favorite?: boolean; - /** Copy shared links */ - sharedLinks?: boolean; - /** Copy sidecar file */ - sidecar?: boolean; - /** Source asset ID */ - sourceId: string; - /** Copy stack association */ - stack?: boolean; - /** Target asset ID */ - targetId: string; -}; -export type AssetJobsDto = { - /** Asset IDs */ - assetIds: string[]; - name: AssetJobName; -}; -export type AssetMetadataBulkDeleteItemDto = { - /** Asset ID */ - assetId: string; - /** Metadata key */ - key: string; -}; -export type AssetMetadataBulkDeleteDto = { - /** Metadata items to delete */ - items: AssetMetadataBulkDeleteItemDto[]; -}; -export type AssetMetadataBulkUpsertItemDto = { - /** Asset ID */ - assetId: string; - /** Metadata key */ - key: string; - /** Metadata value (object) */ - value: { - [key: string]: any; - }; -}; -export type AssetMetadataBulkUpsertDto = { - /** Metadata items to upsert */ - items: AssetMetadataBulkUpsertItemDto[]; -}; -export type AssetMetadataBulkResponseDto = { - /** Asset ID */ - assetId: string; - /** Metadata key */ - key: string; - /** Last update date */ - updatedAt: string; - /** Metadata value (object) */ - value: { - [key: string]: any; - }; -}; -export type ExifResponseDto = { - /** City name */ - city?: string | null; - /** Country name */ - country?: string | null; - /** Original date/time */ - dateTimeOriginal?: string | null; - /** Image description */ - description?: string | null; - /** Image height in pixels */ - exifImageHeight?: number | null; - /** Image width in pixels */ - exifImageWidth?: number | null; - /** Exposure time */ - exposureTime?: string | null; - /** F-number (aperture) */ - fNumber?: number | null; - /** File size in bytes */ - fileSizeInByte?: number | null; - /** Focal length in mm */ - focalLength?: number | null; - /** ISO sensitivity */ - iso?: number | null; - /** GPS latitude */ - latitude?: number | null; - /** Lens model */ - lensModel?: string | null; - /** GPS longitude */ - longitude?: number | null; - /** Camera make */ - make?: string | null; - /** Camera model */ - model?: string | null; - /** Modification date/time */ - modifyDate?: string | null; - /** Image orientation */ - orientation?: string | null; - /** Projection type */ - projectionType?: string | null; - /** Rating */ - rating?: number | null; - /** State/province name */ - state?: string | null; - /** Time zone */ - timeZone?: string | null; -}; -export type AssetFaceWithoutPersonResponseDto = { - /** Bounding box X1 coordinate */ - boundingBoxX1: number; - /** Bounding box X2 coordinate */ - boundingBoxX2: number; - /** Bounding box Y1 coordinate */ - boundingBoxY1: number; - /** Bounding box Y2 coordinate */ - boundingBoxY2: number; - /** Face ID */ - id: string; - /** Image height in pixels */ - imageHeight: number; - /** Image width in pixels */ - imageWidth: number; - sourceType?: SourceType; -}; -export type PersonWithFacesResponseDto = { - /** Person date of birth */ - birthDate: string | null; - /** Person color (hex) */ - color?: string; - faces: AssetFaceWithoutPersonResponseDto[]; - /** Person ID */ - id: string; - /** Is favorite */ - isFavorite?: boolean; - /** Is hidden */ - isHidden: boolean; - /** Person name */ - name: string; - /** Thumbnail path */ - thumbnailPath: string; - /** Last update date */ - updatedAt?: string; -}; -export type AssetStackResponseDto = { - /** Number of assets in stack */ - assetCount: number; - /** Stack ID */ - id: string; - /** Primary asset ID */ - primaryAssetId: string; -}; -export type TagResponseDto = { - /** Tag color (hex) */ - color?: string; - /** Creation date */ - createdAt: string; - /** Tag ID */ - id: string; - /** Tag name */ - name: string; - /** Parent tag ID */ - parentId?: string; - /** Last update date */ - updatedAt: string; - /** Tag value (full path) */ - value: string; -}; -export type AssetResponseDto = { - /** Base64 encoded SHA1 hash */ - checksum: string; - /** The UTC timestamp when the asset was originally uploaded to Immich. */ - createdAt: string; - /** Duplicate group ID */ - duplicateId?: string | null; - /** Video/gif duration in milliseconds (null for static images) */ - duration: number | null; - exifInfo?: ExifResponseDto; - /** The actual UTC timestamp when the file was created/captured, preserving timezone information. This is the authoritative timestamp for chronological sorting within timeline groups. Combined with timezone data, this can be used to determine the exact moment the photo was taken. */ - fileCreatedAt: string; - /** The UTC timestamp when the file was last modified on the filesystem. This reflects the last time the physical file was changed, which may be different from when the photo was originally taken. */ - fileModifiedAt: string; - /** Whether asset has metadata */ - hasMetadata: boolean; - /** Asset height */ - height: number | null; - /** Asset ID */ - id: string; - /** Is archived */ - isArchived: boolean; - /** Is edited */ - isEdited: boolean; - /** Is favorite */ - isFavorite: boolean; - /** Is offline */ - isOffline: boolean; - /** Is trashed */ - isTrashed: boolean; - /** Library ID */ - libraryId?: string | null; - /** Live photo video ID */ - livePhotoVideoId?: string | null; - /** The local date and time when the photo/video was taken, derived from EXIF metadata. This represents the photographer's local time regardless of timezone, stored as a timezone-agnostic timestamp. Used for timeline grouping by "local" days and months. */ - localDateTime: string; - /** Original file name */ - originalFileName: string; - /** Original MIME type */ - originalMimeType?: string; - /** Original file path */ - originalPath: string; - owner?: UserResponseDto; - /** Owner user ID */ - ownerId: string; - people?: PersonWithFacesResponseDto[]; - /** Is resized */ - resized?: boolean; - stack?: (AssetStackResponseDto) | null; - tags?: TagResponseDto[]; - /** Thumbhash for thumbnail generation (base64) also used as the c query param for thumbnail cache busting. */ - thumbhash: string | null; - "type": AssetTypeEnum; - unassignedFaces?: AssetFaceWithoutPersonResponseDto[]; - /** The UTC timestamp when the asset record was last updated in the database. This is automatically maintained by the database and reflects when any field in the asset was last modified. */ - updatedAt: string; - visibility: AssetVisibility; - /** Asset width */ - width: number | null; -}; -export type UpdateAssetDto = { - /** Original date and time */ - dateTimeOriginal?: string; - /** Asset description */ - description?: string; - /** Mark as favorite */ - isFavorite?: boolean; - /** Latitude coordinate */ - latitude?: number; - /** Live photo video ID */ - livePhotoVideoId?: string | null; - /** Longitude coordinate */ - longitude?: number; - /** Rating in range [1-5], or null for unrated */ - rating?: number | null; - visibility?: AssetVisibility; -}; -export type CropParameters = { - /** Height of the crop */ - height: number; - /** Width of the crop */ - width: number; - /** Top-Left X coordinate of crop */ - x: number; - /** Top-Left Y coordinate of crop */ - y: number; -}; -export type RotateParameters = { - /** Rotation angle in degrees */ - angle: number; -}; -export type MirrorParameters = { - axis: MirrorAxis; -}; -export type AssetEditActionItemResponseDto = { - action: AssetEditAction; - /** Asset edit ID */ - id: string; - /** List of edit actions to apply (crop, rotate, or mirror) */ - parameters: CropParameters | RotateParameters | MirrorParameters; -}; -export type AssetEditsResponseDto = { - /** Asset ID these edits belong to */ - assetId: string; - /** List of edit actions applied to the asset */ - edits: AssetEditActionItemResponseDto[]; -}; -export type AssetEditActionItemDto = { - action: AssetEditAction; - /** List of edit actions to apply (crop, rotate, or mirror) */ - parameters: CropParameters | RotateParameters | MirrorParameters; -}; -export type AssetEditsCreateDto = { - /** List of edit actions to apply (crop, rotate, or mirror) */ - edits: AssetEditActionItemDto[]; -}; -export type AssetMetadataResponseDto = { - /** Metadata key */ - key: string; - /** Last update date */ - updatedAt: string; - /** Metadata value (object) */ - value: { - [key: string]: any; - }; -}; -export type AssetMetadataUpsertDto = { - /** Metadata items to upsert */ - items: AssetMetadataUpsertItemDto[]; -}; -export type AssetOcrResponseDto = { - assetId: string; - /** Confidence score for text detection box */ - boxScore: number; - id: string; - /** Recognized text */ - text: string; - /** Confidence score for text recognition */ - textScore: number; - /** Normalized x coordinate of box corner 1 (0-1) */ - x1: number; - /** Normalized x coordinate of box corner 2 (0-1) */ - x2: number; - /** Normalized x coordinate of box corner 3 (0-1) */ - x3: number; - /** Normalized x coordinate of box corner 4 (0-1) */ - x4: number; - /** Normalized y coordinate of box corner 1 (0-1) */ - y1: number; - /** Normalized y coordinate of box corner 2 (0-1) */ - y2: number; - /** Normalized y coordinate of box corner 3 (0-1) */ - y3: number; - /** Normalized y coordinate of box corner 4 (0-1) */ - y4: number; -}; -export type SignUpDto = { - /** User email */ - email: string; - /** User name */ - name: string; - /** User password */ - password: string; -}; -export type ChangePasswordDto = { - /** Invalidate all other sessions */ - invalidateSessions?: boolean; - /** New password (min 8 characters) */ - newPassword: string; - /** Current password */ - password: string; -}; -export type LoginCredentialDto = { - /** User email */ - email: string; - /** User password */ - password: string; -}; -export type LoginResponseDto = { - /** Access token */ - accessToken: string; - /** Is admin user */ - isAdmin: boolean; - /** Is onboarded */ - isOnboarded: boolean; - /** User name */ - name: string; - /** Profile image path */ - profileImagePath: string; - /** Should change password */ - shouldChangePassword: boolean; - /** User email */ - userEmail: string; - /** User ID */ - userId: string; -}; -export type LogoutResponseDto = { - /** Redirect URI */ - redirectUri: string; - /** Logout successful */ - successful: boolean; -}; -export type PinCodeResetDto = { - /** User password (required if PIN code is not provided) */ - password?: string; - /** New PIN code (4-6 digits) */ - pinCode?: string; -}; -export type PinCodeSetupDto = { - /** PIN code (4-6 digits) */ - pinCode: string; -}; -export type PinCodeChangeDto = { - /** New PIN code (4-6 digits) */ - newPinCode: string; - /** User password (required if PIN code is not provided) */ - password?: string; - /** New PIN code (4-6 digits) */ - pinCode?: string; -}; -export type SessionUnlockDto = { - /** User password (required if PIN code is not provided) */ - password?: string; - /** New PIN code (4-6 digits) */ - pinCode?: string; -}; -export type AuthStatusResponseDto = { - /** Session expiration date */ - expiresAt?: string; - /** Is elevated session */ - isElevated: boolean; - /** Has password set */ - password: boolean; - /** Has PIN code set */ - pinCode: boolean; - /** PIN expiration date */ - pinExpiresAt?: string; -}; -export type ValidateAccessTokenResponseDto = { - /** Authentication status */ - authStatus: boolean; -}; -export type DownloadArchiveDto = { - /** Asset IDs */ - assetIds: string[]; - /** Download edited asset if available */ - edited?: boolean; -}; -export type DownloadInfoDto = { - /** Album ID to download */ - albumId?: string; - /** Archive size limit in bytes */ - archiveSize?: number; - /** Asset IDs to download */ - assetIds?: string[]; - /** User ID to download assets from */ - userId?: string; -}; -export type DownloadArchiveInfo = { - /** Asset IDs in this archive */ - assetIds: string[]; - /** Archive size in bytes */ - size: number; -}; -export type DownloadResponseDto = { - /** Archive information */ - archives: DownloadArchiveInfo[]; - /** Total size in bytes */ - totalSize: number; -}; -export type DuplicateResponseDto = { - /** Duplicate assets */ - assets: AssetResponseDto[]; - /** Duplicate group ID */ - duplicateId: string; - /** Suggested asset IDs to keep based on file size and EXIF data */ - suggestedKeepAssetIds: string[]; -}; -export type DuplicateResolveGroupDto = { - duplicateId: string; - /** Asset IDs to keep */ - keepAssetIds: string[]; - /** Asset IDs to trash or delete */ - trashAssetIds: string[]; -}; -export type DuplicateResolveDto = { - /** List of duplicate groups to resolve */ - groups: DuplicateResolveGroupDto[]; -}; -export type PersonResponseDto = { - /** Person date of birth */ - birthDate: string | null; - /** Person color (hex) */ - color?: string; - /** Person ID */ - id: string; - /** Is favorite */ - isFavorite?: boolean; - /** Is hidden */ - isHidden: boolean; - /** Person name */ - name: string; - /** Thumbnail path */ - thumbnailPath: string; - /** Last update date */ - updatedAt?: string; -}; -export type AssetFaceResponseDto = { - /** Bounding box X1 coordinate */ - boundingBoxX1: number; - /** Bounding box X2 coordinate */ - boundingBoxX2: number; - /** Bounding box Y1 coordinate */ - boundingBoxY1: number; - /** Bounding box Y2 coordinate */ - boundingBoxY2: number; - /** Face ID */ - id: string; - /** Image height in pixels */ - imageHeight: number; - /** Image width in pixels */ - imageWidth: number; - person: (PersonResponseDto) | null; - sourceType?: SourceType; -}; -export type AssetFaceCreateDto = { - /** Asset ID */ - assetId: string; - /** Face bounding box height */ - height: number; - /** Image height in pixels */ - imageHeight: number; - /** Image width in pixels */ - imageWidth: number; - /** Person ID */ - personId: string; - /** Face bounding box width */ - width: number; - /** Face bounding box X coordinate */ - x: number; - /** Face bounding box Y coordinate */ - y: number; -}; -export type AssetFaceDeleteDto = { - /** Force delete even if person has other faces */ - force: boolean; -}; -export type FaceDto = { - /** Face ID */ - id: string; -}; -export type QueueStatisticsDto = { - /** Number of active jobs */ - active: number; - /** Number of completed jobs */ - completed: number; - /** Number of delayed jobs */ - delayed: number; - /** Number of failed jobs */ - failed: number; - /** Number of paused jobs */ - paused: number; - /** Number of waiting jobs */ - waiting: number; -}; -export type QueueStatusLegacyDto = { - /** Whether the queue is currently active (has running jobs) */ - isActive: boolean; - /** Whether the queue is paused */ - isPaused: boolean; -}; -export type QueueResponseLegacyDto = { - jobCounts: QueueStatisticsDto; - queueStatus: QueueStatusLegacyDto; -}; -export type QueuesResponseLegacyDto = { - backgroundTask: QueueResponseLegacyDto; - backupDatabase: QueueResponseLegacyDto; - duplicateDetection: QueueResponseLegacyDto; - editor: QueueResponseLegacyDto; - faceDetection: QueueResponseLegacyDto; - facialRecognition: QueueResponseLegacyDto; - library: QueueResponseLegacyDto; - metadataExtraction: QueueResponseLegacyDto; - migration: QueueResponseLegacyDto; - notifications: QueueResponseLegacyDto; - ocr: QueueResponseLegacyDto; - search: QueueResponseLegacyDto; - sidecar: QueueResponseLegacyDto; - smartSearch: QueueResponseLegacyDto; - storageTemplateMigration: QueueResponseLegacyDto; - thumbnailGeneration: QueueResponseLegacyDto; - videoConversion: QueueResponseLegacyDto; - workflow: QueueResponseLegacyDto; -}; -export type JobCreateDto = { - name: ManualJobName; -}; -export type QueueCommandDto = { - command: QueueCommand; - /** Force the command execution (if applicable) */ - force?: boolean; -}; -export type LibraryResponseDto = { - /** Number of assets */ - assetCount: number; - /** Creation date */ - createdAt: string; - /** Exclusion patterns */ - exclusionPatterns: string[]; - /** Library ID */ - id: string; - /** Import paths */ - importPaths: string[]; - /** Library name */ - name: string; - /** Owner user ID */ - ownerId: string; - /** Last refresh date */ - refreshedAt: string | null; - /** Last update date */ - updatedAt: string; -}; -export type CreateLibraryDto = { - /** Exclusion patterns (max 128) */ - exclusionPatterns?: string[]; - /** Import paths (max 128) */ - importPaths?: string[]; - /** Library name */ - name?: string; - /** Owner user ID */ - ownerId: string; -}; -export type UpdateLibraryDto = { - /** Exclusion patterns (max 128) */ - exclusionPatterns?: string[]; - /** Import paths (max 128) */ - importPaths?: string[]; - /** Library name */ - name?: string; -}; -export type LibraryStatsResponseDto = { - /** Number of photos */ - photos: number; - /** Total number of assets */ - total: number; - /** Storage usage in bytes */ - usage: number; - /** Number of videos */ - videos: number; -}; -export type ValidateLibraryDto = { - /** Exclusion patterns (max 128) */ - exclusionPatterns?: string[]; - /** Import paths to validate (max 128) */ - importPaths?: string[]; -}; -export type ValidateLibraryImportPathResponseDto = { - /** Import path */ - importPath: string; - /** Is valid */ - isValid: boolean; - /** Validation message */ - message?: string; -}; -export type ValidateLibraryResponseDto = { - /** Validation results for import paths */ - importPaths?: ValidateLibraryImportPathResponseDto[]; -}; -export type MapReverseGeocodeResponseDto = { - /** City name */ - city: string | null; - /** Country name */ - country: string | null; - /** State/Province name */ - state: string | null; -}; -export type OnThisDayDto = { - /** Year for on this day memory */ - year: number; -}; -export type MemoryResponseDto = { - assets: AssetResponseDto[]; - /** Creation date */ - createdAt: string; - data: OnThisDayDto; - /** Deletion date */ - deletedAt?: string; - /** Date when memory should be hidden */ - hideAt?: string; - /** Memory ID */ - id: string; - /** Is memory saved */ - isSaved: boolean; - /** Memory date */ - memoryAt: string; - /** Owner user ID */ - ownerId: string; - /** Date when memory was seen */ - seenAt?: string; - /** Date when memory should be shown */ - showAt?: string; - "type": MemoryType; - /** Last update date */ - updatedAt: string; -}; -export type MemoryCreateDto = { - /** Asset IDs to associate with memory */ - assetIds?: string[]; - data: OnThisDayDto; - /** Date when memory should be hidden */ - hideAt?: string; - /** Is memory saved */ - isSaved?: boolean; - /** Memory date */ - memoryAt: string; - /** Date when memory was seen */ - seenAt?: string; - /** Date when memory should be shown */ - showAt?: string; - "type": MemoryType; -}; -export type MemoryStatisticsResponseDto = { - /** Total number of memories */ - total: number; -}; -export type MemoryUpdateDto = { - /** Is memory saved */ - isSaved?: boolean; - /** Memory date */ - memoryAt?: string; - /** Date when memory was seen */ - seenAt?: string; -}; -export type NotificationDeleteAllDto = { - /** Notification IDs to delete */ - ids: string[]; -}; -export type NotificationUpdateAllDto = { - /** Notification IDs to update */ - ids: string[]; - /** Date when notifications were read */ - readAt?: string | null; -}; -export type NotificationUpdateDto = { - /** Date when notification was read */ - readAt?: string | null; -}; -export type OAuthConfigDto = { - /** OAuth code challenge (PKCE) */ - codeChallenge?: string; - /** OAuth redirect URI */ - redirectUri: string; - /** OAuth state parameter */ - state?: string; -}; -export type OAuthAuthorizeResponseDto = { - /** OAuth authorization URL */ - url: string; -}; -export type OAuthBackchannelLogoutDto = { - /** OAuth logout token */ - logout_token: string; -}; -export type OAuthCallbackDto = { - /** OAuth code verifier (PKCE) */ - codeVerifier?: string; - /** OAuth state parameter */ - state?: string; - /** OAuth callback URL */ - url: string; -}; -export type PartnerResponseDto = { - avatarColor: UserAvatarColor; - /** User email */ - email: string; - /** User ID */ - id: string; - /** Show in timeline */ - inTimeline?: boolean; - /** User name */ - name: string; - /** Profile change date */ - profileChangedAt: string; - /** Profile image path */ - profileImagePath: string; -}; -export type PartnerCreateDto = { - /** User ID to share with */ - sharedWithId: string; -}; -export type PartnerUpdateDto = { - /** Show partner assets in timeline */ - inTimeline: boolean; -}; -export type PeopleResponseDto = { - /** Whether there are more pages */ - hasNextPage?: boolean; - /** Number of hidden people */ - hidden: number; - people: PersonResponseDto[]; - /** Total number of people */ - total: number; -}; -export type PersonCreateDto = { - /** Person date of birth */ - birthDate?: string | null; - /** Person color (hex) */ - color?: string | null; - /** Mark as favorite */ - isFavorite?: boolean; - /** Person visibility (hidden) */ - isHidden?: boolean; - /** Person name */ - name?: string; -}; -export type PeopleUpdateItem = { - /** Person date of birth */ - birthDate?: string | null; - /** Person color (hex) */ - color?: string | null; - /** Asset ID used for feature face thumbnail */ - featureFaceAssetId?: string; - /** Person ID */ - id: string; - /** Mark as favorite */ - isFavorite?: boolean; - /** Person visibility (hidden) */ - isHidden?: boolean; - /** Person name */ - name?: string; -}; -export type PeopleUpdateDto = { - /** People to update */ - people: PeopleUpdateItem[]; -}; -export type PersonUpdateDto = { - /** Person date of birth */ - birthDate?: string | null; - /** Person color (hex) */ - color?: string | null; - /** Asset ID used for feature face thumbnail */ - featureFaceAssetId?: string; - /** Mark as favorite */ - isFavorite?: boolean; - /** Person visibility (hidden) */ - isHidden?: boolean; - /** Person name */ - name?: string; -}; -export type MergePersonDto = { - /** Person IDs to merge */ - ids: string[]; -}; -export type AssetFaceUpdateItem = { - /** Asset ID */ - assetId: string; - /** Person ID */ - personId: string; -}; -export type AssetFaceUpdateDto = { - /** Face update items */ - data: AssetFaceUpdateItem[]; -}; -export type PersonStatisticsResponseDto = { - /** Number of assets */ - assets: number; -}; -export type PluginJsonSchemaProperty = { - additionalProperties?: boolean | PluginJsonSchemaProperty; - "default"?: any; - description?: string; - "enum"?: string[]; - items?: PluginJsonSchemaProperty; - properties?: { - [key: string]: PluginJsonSchemaProperty; - }; - required?: string[]; - "type"?: PluginJsonSchemaType; -}; -export type PluginJsonSchema = { - additionalProperties?: boolean; - description?: string; - properties?: { - [key: string]: PluginJsonSchemaProperty; - }; - required?: string[]; - "type"?: PluginJsonSchemaType; -}; -export type PluginActionResponseDto = { - /** Action description */ - description: string; - /** Action ID */ - id: string; - /** Method name */ - methodName: string; - /** Plugin ID */ - pluginId: string; - /** Action schema */ - schema: (PluginJsonSchema) | null; - /** Supported contexts */ - supportedContexts: PluginContextType[]; - /** Action title */ - title: string; -}; -export type PluginFilterResponseDto = { - /** Filter description */ - description: string; - /** Filter ID */ - id: string; - /** Method name */ - methodName: string; - /** Plugin ID */ - pluginId: string; - /** Filter schema */ - schema: (PluginJsonSchema) | null; - /** Supported contexts */ - supportedContexts: PluginContextType[]; - /** Filter title */ - title: string; -}; -export type PluginResponseDto = { - /** Plugin actions */ - actions: PluginActionResponseDto[]; - /** Plugin author */ - author: string; - /** Creation date */ - createdAt: string; - /** Plugin description */ - description: string; - /** Plugin filters */ - filters: PluginFilterResponseDto[]; - /** Plugin ID */ - id: string; - /** Plugin name */ - name: string; - /** Plugin title */ - title: string; - /** Last update date */ - updatedAt: string; - /** Plugin version */ - version: string; -}; -export type PluginTriggerResponseDto = { - contextType: PluginContextType; - "type": PluginTriggerType; -}; -export type QueueResponseDto = { - /** Whether the queue is paused */ - isPaused: boolean; - name: QueueName; - statistics: QueueStatisticsDto; -}; -export type QueueUpdateDto = { - /** Whether to pause the queue */ - isPaused?: boolean; -}; -export type QueueDeleteDto = { - /** If true, will also remove failed jobs from the queue. */ - failed?: boolean; -}; -export type QueueJobResponseDto = { - /** Job data payload */ - data: { - [key: string]: any; - }; - /** Job ID */ - id?: string; - name: JobName; - /** Job creation timestamp */ - timestamp: number; -}; -export type SearchExploreItem = { - data: AssetResponseDto; - /** Explore value */ - value: string; -}; -export type SearchExploreResponseDto = { - /** Explore field name */ - fieldName: string; - items: SearchExploreItem[]; -}; -export type MetadataSearchDto = { - /** Filter by album IDs */ - albumIds?: string[]; - /** Filter by file checksum */ - checksum?: string; - /** Filter by city name */ - city?: string | null; - /** Filter by country name */ - country?: string | null; - /** Filter by creation date (after) */ - createdAfter?: string; - /** Filter by creation date (before) */ - createdBefore?: string; - /** Filter by description text */ - description?: string; - /** Filter by encoded video file path */ - encodedVideoPath?: string; - /** Filter by asset ID */ - id?: string; - /** Filter by encoded status */ - isEncoded?: boolean; - /** Filter by favorite status */ - isFavorite?: boolean; - /** Filter by motion photo status */ - isMotion?: boolean; - /** Filter assets not in any album */ - isNotInAlbum?: boolean; - /** Filter by offline status */ - isOffline?: boolean; - /** Filter by lens model */ - lensModel?: string | null; - /** Library ID to filter by */ - libraryId?: string | null; - /** Filter by camera make */ - make?: string | null; - /** Filter by camera model */ - model?: string | null; - /** Filter by OCR text content */ - ocr?: string; - /** Sort order */ - order?: AssetOrder; - /** Filter by original file name */ - originalFileName?: string; - /** Filter by original file path */ - originalPath?: string; - /** Page number */ - page?: number; - /** Filter by person IDs */ - personIds?: string[]; - /** Filter by preview file path */ - previewPath?: string; - /** Filter by rating [1-5], or null for unrated */ - rating?: number | null; - /** Number of results to return */ - size?: number; - /** Filter by state/province name */ - state?: string | null; - /** Filter by tag IDs */ - tagIds?: string[] | null; - /** Filter by taken date (after) */ - takenAfter?: string; - /** Filter by taken date (before) */ - takenBefore?: string; - /** Filter by thumbnail file path */ - thumbnailPath?: string; - /** Filter by trash date (after) */ - trashedAfter?: string; - /** Filter by trash date (before) */ - trashedBefore?: string; - "type"?: AssetTypeEnum; - /** Filter by update date (after) */ - updatedAfter?: string; - /** Filter by update date (before) */ - updatedBefore?: string; - visibility?: AssetVisibility; - /** Include deleted assets */ - withDeleted?: boolean; - /** Include EXIF data in response */ - withExif?: boolean; - /** Include people data in response */ - withPeople?: boolean; - /** Include stacked assets */ - withStacked?: boolean; -}; -export type SearchFacetCountResponseDto = { - /** Number of assets with this facet value */ - count: number; - /** Facet value */ - value: string; -}; -export type SearchFacetResponseDto = { - counts: SearchFacetCountResponseDto[]; - /** Facet field name */ - fieldName: string; -}; -export type SearchAlbumResponseDto = { - /** Number of albums in this page */ - count: number; - facets: SearchFacetResponseDto[]; - items: AlbumResponseDto[]; - /** Total number of matching albums */ - total: number; -}; -export type SearchAssetResponseDto = { - /** Number of assets in this page */ - count: number; - facets: SearchFacetResponseDto[]; - items: AssetResponseDto[]; - /** Next page token */ - nextPage: string | null; - /** Total number of matching assets */ - total: number; -}; -export type SearchResponseDto = { - albums: SearchAlbumResponseDto; - assets: SearchAssetResponseDto; -}; -export type PlacesResponseDto = { - /** Administrative level 1 name (state/province) */ - admin1name?: string; - /** Administrative level 2 name (county/district) */ - admin2name?: string; - /** Latitude coordinate */ - latitude: number; - /** Longitude coordinate */ - longitude: number; - /** Place name */ - name: string; -}; -export type RandomSearchDto = { - /** Filter by album IDs */ - albumIds?: string[]; - /** Filter by city name */ - city?: string | null; - /** Filter by country name */ - country?: string | null; - /** Filter by creation date (after) */ - createdAfter?: string; - /** Filter by creation date (before) */ - createdBefore?: string; - /** Filter by encoded status */ - isEncoded?: boolean; - /** Filter by favorite status */ - isFavorite?: boolean; - /** Filter by motion photo status */ - isMotion?: boolean; - /** Filter assets not in any album */ - isNotInAlbum?: boolean; - /** Filter by offline status */ - isOffline?: boolean; - /** Filter by lens model */ - lensModel?: string | null; - /** Library ID to filter by */ - libraryId?: string | null; - /** Filter by camera make */ - make?: string | null; - /** Filter by camera model */ - model?: string | null; - /** Filter by OCR text content */ - ocr?: string; - /** Filter by person IDs */ - personIds?: string[]; - /** Filter by rating [1-5], or null for unrated */ - rating?: number | null; - /** Number of results to return */ - size?: number; - /** Filter by state/province name */ - state?: string | null; - /** Filter by tag IDs */ - tagIds?: string[] | null; - /** Filter by taken date (after) */ - takenAfter?: string; - /** Filter by taken date (before) */ - takenBefore?: string; - /** Filter by trash date (after) */ - trashedAfter?: string; - /** Filter by trash date (before) */ - trashedBefore?: string; - "type"?: AssetTypeEnum; - /** Filter by update date (after) */ - updatedAfter?: string; - /** Filter by update date (before) */ - updatedBefore?: string; - visibility?: AssetVisibility; - /** Include deleted assets */ - withDeleted?: boolean; - /** Include EXIF data in response */ - withExif?: boolean; - /** Include people data in response */ - withPeople?: boolean; - /** Include stacked assets */ - withStacked?: boolean; -}; -export type SmartSearchDto = { - /** Filter by album IDs */ - albumIds?: string[]; - /** Filter by city name */ - city?: string | null; - /** Filter by country name */ - country?: string | null; - /** Filter by creation date (after) */ - createdAfter?: string; - /** Filter by creation date (before) */ - createdBefore?: string; - /** Filter by encoded status */ - isEncoded?: boolean; - /** Filter by favorite status */ - isFavorite?: boolean; - /** Filter by motion photo status */ - isMotion?: boolean; - /** Filter assets not in any album */ - isNotInAlbum?: boolean; - /** Filter by offline status */ - isOffline?: boolean; - /** Search language code */ - language?: string; - /** Filter by lens model */ - lensModel?: string | null; - /** Library ID to filter by */ - libraryId?: string | null; - /** Filter by camera make */ - make?: string | null; - /** Filter by camera model */ - model?: string | null; - /** Filter by OCR text content */ - ocr?: string; - /** Page number */ - page?: number; - /** Filter by person IDs */ - personIds?: string[]; - /** Natural language search query */ - query?: string; - /** Asset ID to use as search reference */ - queryAssetId?: string; - /** Filter by rating [1-5], or null for unrated */ - rating?: number | null; - /** Number of results to return */ - size?: number; - /** Filter by state/province name */ - state?: string | null; - /** Filter by tag IDs */ - tagIds?: string[] | null; - /** Filter by taken date (after) */ - takenAfter?: string; - /** Filter by taken date (before) */ - takenBefore?: string; - /** Filter by trash date (after) */ - trashedAfter?: string; - /** Filter by trash date (before) */ - trashedBefore?: string; - "type"?: AssetTypeEnum; - /** Filter by update date (after) */ - updatedAfter?: string; - /** Filter by update date (before) */ - updatedBefore?: string; - visibility?: AssetVisibility; - /** Include deleted assets */ - withDeleted?: boolean; - /** Include EXIF data in response */ - withExif?: boolean; -}; -export type StatisticsSearchDto = { - /** Filter by album IDs */ - albumIds?: string[]; - /** Filter by city name */ - city?: string | null; - /** Filter by country name */ - country?: string | null; - /** Filter by creation date (after) */ - createdAfter?: string; - /** Filter by creation date (before) */ - createdBefore?: string; - /** Filter by description text */ - description?: string; - /** Filter by encoded status */ - isEncoded?: boolean; - /** Filter by favorite status */ - isFavorite?: boolean; - /** Filter by motion photo status */ - isMotion?: boolean; - /** Filter assets not in any album */ - isNotInAlbum?: boolean; - /** Filter by offline status */ - isOffline?: boolean; - /** Filter by lens model */ - lensModel?: string | null; - /** Library ID to filter by */ - libraryId?: string | null; - /** Filter by camera make */ - make?: string | null; - /** Filter by camera model */ - model?: string | null; - /** Filter by OCR text content */ - ocr?: string; - /** Filter by person IDs */ - personIds?: string[]; - /** Filter by rating [1-5], or null for unrated */ - rating?: number | null; - /** Filter by state/province name */ - state?: string | null; - /** Filter by tag IDs */ - tagIds?: string[] | null; - /** Filter by taken date (after) */ - takenAfter?: string; - /** Filter by taken date (before) */ - takenBefore?: string; - /** Filter by trash date (after) */ - trashedAfter?: string; - /** Filter by trash date (before) */ - trashedBefore?: string; - "type"?: AssetTypeEnum; - /** Filter by update date (after) */ - updatedAfter?: string; - /** Filter by update date (before) */ - updatedBefore?: string; - visibility?: AssetVisibility; -}; -export type SearchStatisticsResponseDto = { - /** Total number of matching assets */ - total: number; -}; -export type ServerAboutResponseDto = { - /** Build identifier */ - build?: string; - /** Build image name */ - buildImage?: string; - /** Build image URL */ - buildImageUrl?: string; - /** Build URL */ - buildUrl?: string; - /** ExifTool version */ - exiftool?: string; - /** FFmpeg version */ - ffmpeg?: string; - /** ImageMagick version */ - imagemagick?: string; - /** libvips version */ - libvips?: string; - /** Whether the server is licensed */ - licensed: boolean; - /** Node.js version */ - nodejs?: string; - /** Repository name */ - repository?: string; - /** Repository URL */ - repositoryUrl?: string; - /** Source commit hash */ - sourceCommit?: string; - /** Source reference (branch/tag) */ - sourceRef?: string; - /** Source URL */ - sourceUrl?: string; - /** Third-party bug/feature URL */ - thirdPartyBugFeatureUrl?: string; - /** Third-party documentation URL */ - thirdPartyDocumentationUrl?: string; - /** Third-party source URL */ - thirdPartySourceUrl?: string; - /** Third-party support URL */ - thirdPartySupportUrl?: string; - /** Server version */ - version: string; - /** URL to version information */ - versionUrl: string; -}; -export type ServerApkLinksDto = { - /** APK download link for ARM64 v8a architecture */ - arm64v8a: string; - /** APK download link for ARM EABI v7a architecture */ - armeabiv7a: string; - /** APK download link for universal architecture */ - universal: string; - /** APK download link for x86_64 architecture */ - x86_64: string; -}; -export type ServerConfigDto = { - /** External domain URL */ - externalDomain: string; - /** Whether the server has been initialized */ - isInitialized: boolean; - /** Whether the admin has completed onboarding */ - isOnboarded: boolean; - /** Login page message */ - loginPageMessage: string; - /** Whether maintenance mode is active */ - maintenanceMode: boolean; - /** Map dark style URL */ - mapDarkStyleUrl: string; - /** Map light style URL */ - mapLightStyleUrl: string; - /** OAuth button text */ - oauthButtonText: string; - /** Whether public user registration is enabled */ - publicUsers: boolean; - /** Number of days before trashed assets are permanently deleted */ - trashDays: number; - /** Delay in days before deleted users are permanently removed */ - userDeleteDelay: number; -}; -export type ServerFeaturesDto = { - /** Whether config file is available */ - configFile: boolean; - /** Whether duplicate detection is enabled */ - duplicateDetection: boolean; - /** Whether email notifications are enabled */ - email: boolean; - /** Whether facial recognition is enabled */ - facialRecognition: boolean; - /** Whether face import is enabled */ - importFaces: boolean; - /** Whether map feature is enabled */ - map: boolean; - /** Whether OAuth is enabled */ - oauth: boolean; - /** Whether OAuth auto-launch is enabled */ - oauthAutoLaunch: boolean; - /** Whether OCR is enabled */ - ocr: boolean; - /** Whether password login is enabled */ - passwordLogin: boolean; - /** Whether reverse geocoding is enabled */ - reverseGeocoding: boolean; - /** Whether search is enabled */ - search: boolean; - /** Whether sidecar files are supported */ - sidecar: boolean; - /** Whether smart search is enabled */ - smartSearch: boolean; - /** Whether trash feature is enabled */ - trash: boolean; -}; -export type LicenseKeyDto = { - /** Activation key */ - activationKey: string; - /** License key (format: /^IM(SV|CL)(-[\dA-Za-z]{4}){8}$/) */ - licenseKey: string; -}; -export type ServerMediaTypesResponseDto = { - /** Supported image MIME types */ - image: string[]; - /** Supported sidecar MIME types */ - sidecar: string[]; - /** Supported video MIME types */ - video: string[]; -}; -export type ServerPingResponse = { - res: string; -}; -export type UsageByUserDto = { - /** Number of photos */ - photos: number; - /** User quota size in bytes (null if unlimited) */ - quotaSizeInBytes: number | null; - /** Total storage usage in bytes */ - usage: number; - /** Storage usage for photos in bytes */ - usagePhotos: number; - /** Storage usage for videos in bytes */ - usageVideos: number; - /** User ID */ - userId: string; - /** User name */ - userName: string; - /** Number of videos */ - videos: number; -}; -export type ServerStatsResponseDto = { - /** Total number of photos */ - photos: number; - /** Total storage usage in bytes */ - usage: number; - /** Array of usage for each user */ - usageByUser: UsageByUserDto[]; - /** Storage usage for photos in bytes */ - usagePhotos: number; - /** Storage usage for videos in bytes */ - usageVideos: number; - /** Total number of videos */ - videos: number; -}; -export type ServerStorageResponseDto = { - /** Available disk space (human-readable format) */ - diskAvailable: string; - /** Available disk space in bytes */ - diskAvailableRaw: number; - /** Total disk size (human-readable format) */ - diskSize: string; - /** Total disk size in bytes */ - diskSizeRaw: number; - /** Disk usage percentage (0-100) */ - diskUsagePercentage: number; - /** Used disk space (human-readable format) */ - diskUse: string; - /** Used disk space in bytes */ - diskUseRaw: number; -}; -export type ServerVersionResponseDto = { - /** Major version number */ - major: number; - /** Minor version number */ - minor: number; - /** Patch version number */ - patch: number; -}; -export type VersionCheckStateResponseDto = { - /** Last check timestamp */ - checkedAt: string | null; - /** Release version */ - releaseVersion: string | null; -}; -export type ServerVersionHistoryResponseDto = { - /** When this version was first seen */ - createdAt: string; - /** Version history entry ID */ - id: string; - /** Version string */ - version: string; -}; -export type SessionCreateDto = { - /** Device OS */ - deviceOS?: string; - /** Device type */ - deviceType?: string; - /** Session duration in seconds */ - duration?: number; -}; -export type SessionCreateResponseDto = { - /** App version */ - appVersion: string | null; - /** Creation date */ - createdAt: string; - /** Is current session */ - current: boolean; - /** Device OS */ - deviceOS: string; - /** Device type */ - deviceType: string; - /** Expiration date */ - expiresAt?: string; - /** Session ID */ - id: string; - /** Is pending sync reset */ - isPendingSyncReset: boolean; - /** Session token */ - token: string; - /** Last update date */ - updatedAt: string; -}; -export type SessionUpdateDto = { - /** Reset pending sync state */ - isPendingSyncReset?: boolean; -}; -export type SharedLinkResponseDto = { - album?: AlbumResponseDto; - /** Allow downloads */ - allowDownload: boolean; - /** Allow uploads */ - allowUpload: boolean; - assets: AssetResponseDto[]; - /** Creation date */ - createdAt: string; - /** Link description */ - description: string | null; - /** Expiration date */ - expiresAt: string | null; - /** Shared link ID */ - id: string; - /** Encryption key (base64url) */ - key: string; - /** Has password */ - password: string | null; - /** Show metadata */ - showMetadata: boolean; - /** Custom URL slug */ - slug: string | null; - "type": SharedLinkType; - /** Owner user ID */ - userId: string; -}; -export type SharedLinkCreateDto = { - /** Album ID (for album sharing) */ - albumId?: string; - /** Allow downloads */ - allowDownload?: boolean; - /** Allow uploads */ - allowUpload?: boolean; - /** Asset IDs (for individual assets) */ - assetIds?: string[]; - /** Link description */ - description?: string | null; - /** Expiration date */ - expiresAt?: string | null; - /** Link password */ - password?: string | null; - /** Show metadata */ - showMetadata?: boolean; - /** Custom URL slug */ - slug?: string | null; - "type": SharedLinkType; -}; -export type SharedLinkLoginDto = { - /** Shared link password */ - password: string; -}; -export type SharedLinkEditDto = { - /** Allow downloads */ - allowDownload?: boolean; - /** Allow uploads */ - allowUpload?: boolean; - /** Whether to change the expiry time. Few clients cannot send null to set the expiryTime to never. Setting this flag and not sending expiryAt is considered as null instead. Clients that can send null values can ignore this. */ - changeExpiryTime?: boolean; - /** Link description */ - description?: string | null; - /** Expiration date */ - expiresAt?: string | null; - /** Link password */ - password?: string | null; - /** Show metadata */ - showMetadata?: boolean; - /** Custom URL slug */ - slug?: string | null; -}; -export type AssetIdsDto = { - /** Asset IDs */ - assetIds: string[]; -}; -export type AssetIdsResponseDto = { - /** Asset ID */ - assetId: string; - error?: AssetIdErrorReason; - /** Whether operation succeeded */ - success: boolean; -}; -export type StackResponseDto = { - assets: AssetResponseDto[]; - /** Stack ID */ - id: string; - /** Primary asset ID */ - primaryAssetId: string; -}; -export type StackCreateDto = { - /** Asset IDs (first becomes primary, min 2) */ - assetIds: string[]; -}; -export type StackUpdateDto = { - /** Primary asset ID */ - primaryAssetId?: string; -}; -export type SyncAckDeleteDto = { - /** Sync entity types to delete acks for */ - types?: SyncEntityType[]; -}; -export type SyncAckDto = { - /** Acknowledgment ID */ - ack: string; - "type": SyncEntityType; -}; -export type SyncAckSetDto = { - /** Acknowledgment IDs (max 1000) */ - acks: string[]; -}; -export type SyncStreamDto = { - /** Reset sync state */ - reset?: boolean; - /** Sync request types */ - types: SyncRequestType[]; -}; -export type DatabaseBackupConfig = { - /** Cron expression */ - cronExpression: string; - /** Enabled */ - enabled: boolean; - /** Keep last amount */ - keepLastAmount: number; -}; -export type SystemConfigBackupsDto = { - database: DatabaseBackupConfig; -}; -export type SystemConfigFFmpegDto = { - accel: TranscodeHWAccel; - /** Accelerated decode */ - accelDecode: boolean; - /** Accepted audio codecs */ - acceptedAudioCodecs: AudioCodec[]; - /** Accepted containers */ - acceptedContainers: VideoContainer[]; - /** Accepted video codecs */ - acceptedVideoCodecs: VideoCodec[]; - /** B-frames */ - bframes: number; - cqMode: CQMode; - /** CRF */ - crf: number; - /** GOP size */ - gopSize: number; - /** Max bitrate */ - maxBitrate: string; - /** Preferred hardware device */ - preferredHwDevice: string; - /** Preset */ - preset: string; - /** References */ - refs: number; - targetAudioCodec: AudioCodec; - /** Target resolution */ - targetResolution: string; - targetVideoCodec: VideoCodec; - /** Temporal AQ */ - temporalAQ: boolean; - /** Threads */ - threads: number; - tonemap: ToneMapping; - transcode: TranscodePolicy; - /** Two pass */ - twoPass: boolean; -}; -export type SystemConfigGeneratedFullsizeImageDto = { - /** Enabled */ - enabled: boolean; - format: ImageFormat; - /** Progressive */ - progressive?: boolean; - /** Quality */ - quality: number; -}; -export type SystemConfigGeneratedImageDto = { - format: ImageFormat; - /** Progressive */ - progressive?: boolean; - /** Quality */ - quality: number; - /** Size */ - size: number; -}; -export type SystemConfigImageDto = { - colorspace: Colorspace; - /** Extract embedded */ - extractEmbedded: boolean; - fullsize: SystemConfigGeneratedFullsizeImageDto; - preview: SystemConfigGeneratedImageDto; - thumbnail: SystemConfigGeneratedImageDto; -}; -export type JobSettingsDto = { - /** Concurrency */ - concurrency: number; -}; -export type SystemConfigJobDto = { - backgroundTask: JobSettingsDto; - editor: JobSettingsDto; - faceDetection: JobSettingsDto; - library: JobSettingsDto; - metadataExtraction: JobSettingsDto; - migration: JobSettingsDto; - notifications: JobSettingsDto; - ocr: JobSettingsDto; - search: JobSettingsDto; - sidecar: JobSettingsDto; - smartSearch: JobSettingsDto; - thumbnailGeneration: JobSettingsDto; - videoConversion: JobSettingsDto; - workflow: JobSettingsDto; -}; -export type SystemConfigLibraryScanDto = { - /** Cron expression */ - cronExpression: string; - /** Enabled */ - enabled: boolean; -}; -export type SystemConfigLibraryWatchDto = { - /** Enabled */ - enabled: boolean; -}; -export type SystemConfigLibraryDto = { - scan: SystemConfigLibraryScanDto; - watch: SystemConfigLibraryWatchDto; -}; -export type SystemConfigLoggingDto = { - /** Enabled */ - enabled: boolean; - level: LogLevel; -}; -export type MachineLearningAvailabilityChecksDto = { - /** Enabled */ - enabled: boolean; - interval: number; - timeout: number; -}; -export type ClipConfig = { - /** Whether the task is enabled */ - enabled: boolean; - /** Name of the model to use */ - modelName: string; -}; -export type DuplicateDetectionConfig = { - /** Whether the task is enabled */ - enabled: boolean; - /** Maximum distance threshold for duplicate detection */ - maxDistance: number; -}; -export type FacialRecognitionConfig = { - /** Whether the task is enabled */ - enabled: boolean; - /** Maximum distance threshold for face recognition */ - maxDistance: number; - /** Minimum number of faces required for recognition */ - minFaces: number; - /** Minimum confidence score for face detection */ - minScore: number; - /** Name of the model to use */ - modelName: string; -}; -export type OcrConfig = { - /** Whether the task is enabled */ - enabled: boolean; - /** Maximum resolution for OCR processing */ - maxResolution: number; - /** Minimum confidence score for text detection */ - minDetectionScore: number; - /** Minimum confidence score for text recognition */ - minRecognitionScore: number; - /** Name of the model to use */ - modelName: string; -}; -export type SystemConfigMachineLearningDto = { - availabilityChecks: MachineLearningAvailabilityChecksDto; - clip: ClipConfig; - duplicateDetection: DuplicateDetectionConfig; - /** Enabled */ - enabled: boolean; - facialRecognition: FacialRecognitionConfig; - ocr: OcrConfig; - /** ML service URLs */ - urls: string[]; -}; -export type SystemConfigMapDto = { - /** Dark map style URL */ - darkStyle: string; - /** Enabled */ - enabled: boolean; - /** Light map style URL */ - lightStyle: string; -}; -export type SystemConfigFacesDto = { - /** Import */ - "import": boolean; -}; -export type SystemConfigMetadataDto = { - faces: SystemConfigFacesDto; -}; -export type SystemConfigNewVersionCheckDto = { - /** Enabled */ - enabled: boolean; -}; -export type SystemConfigNightlyTasksDto = { - /** Cluster new faces */ - clusterNewFaces: boolean; - /** Database cleanup */ - databaseCleanup: boolean; - /** Generate memories */ - generateMemories: boolean; - /** Missing thumbnails */ - missingThumbnails: boolean; - /** Start time */ - startTime: string; - /** Sync quota usage */ - syncQuotaUsage: boolean; -}; -export type SystemConfigNotificationsDto = { - smtp: SystemConfigSmtpDto; -}; -export type SystemConfigOAuthDto = { - /** Allow insecure requests */ - allowInsecureRequests: boolean; - /** Auto launch */ - autoLaunch: boolean; - /** Auto register */ - autoRegister: boolean; - /** Button text */ - buttonText: string; - /** Client ID */ - clientId: string; - /** Client secret */ - clientSecret: string; - /** Default storage quota */ - defaultStorageQuota: number | null; - /** Enabled */ - enabled: boolean; - /** End session endpoint */ - endSessionEndpoint: string; - /** Issuer URL */ - issuerUrl: string; - /** Mobile override enabled */ - mobileOverrideEnabled: boolean; - /** Mobile redirect URI (set to empty string to disable) */ - mobileRedirectUri: string; - /** Profile signing algorithm */ - profileSigningAlgorithm: string; - /** OAuth prompt parameter (e.g. select_account, login, consent) */ - prompt: string; - /** Role claim */ - roleClaim: string; - /** Scope */ - scope: string; - /** Signing algorithm */ - signingAlgorithm: string; - /** Storage label claim */ - storageLabelClaim: string; - /** Storage quota claim */ - storageQuotaClaim: string; - /** Timeout */ - timeout: number; - tokenEndpointAuthMethod: OAuthTokenEndpointAuthMethod; -}; -export type SystemConfigPasswordLoginDto = { - /** Enabled */ - enabled: boolean; -}; -export type SystemConfigReverseGeocodingDto = { - /** Enabled */ - enabled: boolean; -}; -export type SystemConfigServerDto = { - /** External domain */ - externalDomain: string; - /** Login page message */ - loginPageMessage: string; - /** Public users */ - publicUsers: boolean; -}; -export type SystemConfigStorageTemplateDto = { - /** Enabled */ - enabled: boolean; - /** Hash verification enabled */ - hashVerificationEnabled: boolean; - /** Template */ - template: string; -}; -export type SystemConfigTemplateEmailsDto = { - /** Album invite template */ - albumInviteTemplate: string; - /** Album update template */ - albumUpdateTemplate: string; - /** Welcome template */ - welcomeTemplate: string; -}; -export type SystemConfigTemplatesDto = { - email: SystemConfigTemplateEmailsDto; -}; -export type SystemConfigThemeDto = { - /** Custom CSS for theming */ - customCss: string; -}; -export type SystemConfigTrashDto = { - /** Days */ - days: number; - /** Enabled */ - enabled: boolean; -}; -export type SystemConfigUserDto = { - /** Delete delay */ - deleteDelay: number; -}; -export type SystemConfigDto = { - backup: SystemConfigBackupsDto; - ffmpeg: SystemConfigFFmpegDto; - image: SystemConfigImageDto; - job: SystemConfigJobDto; - library: SystemConfigLibraryDto; - logging: SystemConfigLoggingDto; - machineLearning: SystemConfigMachineLearningDto; - map: SystemConfigMapDto; - metadata: SystemConfigMetadataDto; - newVersionCheck: SystemConfigNewVersionCheckDto; - nightlyTasks: SystemConfigNightlyTasksDto; - notifications: SystemConfigNotificationsDto; - oauth: SystemConfigOAuthDto; - passwordLogin: SystemConfigPasswordLoginDto; - reverseGeocoding: SystemConfigReverseGeocodingDto; - server: SystemConfigServerDto; - storageTemplate: SystemConfigStorageTemplateDto; - templates: SystemConfigTemplatesDto; - theme: SystemConfigThemeDto; - trash: SystemConfigTrashDto; - user: SystemConfigUserDto; -}; -export type SystemConfigTemplateStorageOptionDto = { - /** Available day format options for storage template */ - dayOptions: string[]; - /** Available hour format options for storage template */ - hourOptions: string[]; - /** Available minute format options for storage template */ - minuteOptions: string[]; - /** Available month format options for storage template */ - monthOptions: string[]; - /** Available preset template options */ - presetOptions: string[]; - /** Available second format options for storage template */ - secondOptions: string[]; - /** Available week format options for storage template */ - weekOptions: string[]; - /** Available year format options for storage template */ - yearOptions: string[]; -}; -export type AdminOnboardingUpdateDto = { - /** Is admin onboarded */ - isOnboarded: boolean; -}; -export type ReverseGeocodingStateResponseDto = { - /** Last import file name */ - lastImportFileName: string | null; - /** Last update timestamp */ - lastUpdate: string | null; -}; -export type TagCreateDto = { - /** Tag color (hex) */ - color?: string | null; - /** Tag name */ - name: string; - /** Parent tag ID */ - parentId?: string | null; -}; -export type TagUpsertDto = { - /** Tag names to upsert */ - tags: string[]; -}; -export type TagBulkAssetsDto = { - /** Asset IDs */ - assetIds: string[]; - /** Tag IDs */ - tagIds: string[]; -}; -export type TagBulkAssetsResponseDto = { - /** Number of assets tagged */ - count: number; -}; -export type TagUpdateDto = { - /** Tag color (hex) */ - color?: string | null; -}; -export type TimeBucketAssetResponseDto = { - /** Array of city names extracted from EXIF GPS data */ - city: (string | null)[]; - /** Array of country names extracted from EXIF GPS data */ - country: (string | null)[]; - /** Array of video/gif durations in milliseconds (null for static images) */ - duration: (number | null)[]; - /** Array of file creation timestamps in UTC */ - fileCreatedAt: string[]; - /** Array of asset IDs in the time bucket */ - id: string[]; - /** Array indicating whether each asset is favorited */ - isFavorite: boolean[]; - /** Array indicating whether each asset is an image (false for videos) */ - isImage: boolean[]; - /** Array indicating whether each asset is in the trash */ - isTrashed: boolean[]; - /** Array of latitude coordinates extracted from EXIF GPS data */ - latitude?: (number | null)[]; - /** Array of live photo video asset IDs (null for non-live photos) */ - livePhotoVideoId: (string | null)[]; - /** Array of UTC offset hours at the time each photo was taken. Positive values are east of UTC, negative values are west of UTC. Values may be fractional (e.g., 5.5 for +05:30, -9.75 for -09:45). Applying this offset to 'fileCreatedAt' will give you the time the photo was taken from the photographer's perspective. */ - localOffsetHours: number[]; - /** Array of longitude coordinates extracted from EXIF GPS data */ - longitude?: (number | null)[]; - /** Array of owner IDs for each asset */ - ownerId: string[]; - /** Array of projection types for 360° content (e.g., "EQUIRECTANGULAR", "CUBEFACE", "CYLINDRICAL") */ - projectionType: (string | null)[]; - /** Array of aspect ratios (width/height) for each asset */ - ratio: number[]; - /** Array of stack information as [stackId, assetCount] tuples (null for non-stacked assets) */ - stack?: (string[] | null)[]; - /** Array of BlurHash strings for generating asset previews (base64 encoded) */ - thumbhash: (string | null)[]; - /** Array of visibility statuses for each asset (e.g., ARCHIVE, TIMELINE, HIDDEN, LOCKED) */ - visibility: AssetVisibility[]; -}; -export type TimeBucketsResponseDto = { - /** Number of assets in this time bucket */ - count: number; - /** Time bucket identifier in YYYY-MM-DD format representing the start of the time period */ - timeBucket: string; -}; -export type TrashResponseDto = { - /** Number of items in trash */ - count: number; -}; -export type UserUpdateMeDto = { - avatarColor?: (UserAvatarColor) | null; - /** User email */ - email?: string; - /** User name */ - name?: string; - /** User password (deprecated, use change password endpoint) */ - password?: string; -}; -export type OnboardingResponseDto = { - /** Is user onboarded */ - isOnboarded: boolean; -}; -export type OnboardingDto = { - /** Is user onboarded */ - isOnboarded: boolean; -}; -export type CreateProfileImageDto = { - /** Profile image file */ - file: Blob; -}; -export type CreateProfileImageResponseDto = { - /** Profile image change date */ - profileChangedAt: string; - /** Profile image file path */ - profileImagePath: string; - /** User ID */ - userId: string; -}; -export type PluginConfigValue = any; -export type WorkflowActionConfig = { - [key: string]: PluginConfigValue; -}; -export type WorkflowActionResponseDto = { - actionConfig: (WorkflowActionConfig) | null; - /** Action ID */ - id: string; - /** Action order */ - order: number; - /** Plugin action ID */ - pluginActionId: string; - /** Workflow ID */ - workflowId: string; -}; -export type WorkflowFilterConfig = { - [key: string]: PluginConfigValue; -}; -export type WorkflowFilterResponseDto = { - filterConfig: (WorkflowFilterConfig) | null; - /** Filter ID */ - id: string; - /** Filter order */ - order: number; - /** Plugin filter ID */ - pluginFilterId: string; - /** Workflow ID */ - workflowId: string; -}; -export type WorkflowResponseDto = { - /** Workflow actions */ - actions: WorkflowActionResponseDto[]; - /** Creation date */ - createdAt: string; - /** Workflow description */ - description: string; - /** Workflow enabled */ - enabled: boolean; - /** Workflow filters */ - filters: WorkflowFilterResponseDto[]; - /** Workflow ID */ - id: string; - /** Workflow name */ - name: string | null; - /** Owner user ID */ - ownerId: string; - triggerType: PluginTriggerType; -}; -export type WorkflowActionItemDto = { - actionConfig?: WorkflowActionConfig; - /** Plugin action ID */ - pluginActionId: string; -}; -export type WorkflowFilterItemDto = { - filterConfig?: WorkflowFilterConfig; - /** Plugin filter ID */ - pluginFilterId: string; -}; -export type WorkflowCreateDto = { - /** Workflow actions */ - actions: WorkflowActionItemDto[]; - /** Workflow description */ - description?: string; - /** Workflow enabled */ - enabled?: boolean; - /** Workflow filters */ - filters: WorkflowFilterItemDto[]; - /** Workflow name */ - name: string; - triggerType: PluginTriggerType; -}; -export type WorkflowUpdateDto = { - /** Workflow actions */ - actions?: WorkflowActionItemDto[]; - /** Workflow description */ - description?: string; - /** Workflow enabled */ - enabled?: boolean; - /** Workflow filters */ - filters?: WorkflowFilterItemDto[]; - /** Workflow name */ - name?: string; - triggerType?: PluginTriggerType; -}; -export type DeviceFlowResponseDto = { - userCode: string; - verificationUri: string; -}; -export type BackendDto = { - error?: string; - id: string; - isOnline: boolean; - "type": BackendType; -}; -export type BackendsResponseDto = { - backends: BackendDto[]; -}; -export type CreateLocalBackendRequestDto = { - path: string; -}; -export type BackendResponseDto = { - backend: BackendDto; -}; -export type FilesystemListingItemDto = { - isDirectory: boolean; - path: string; -}; -export type FilesystemListingResponseDto = { - items: FilesystemListingItemDto[]; - parent: string; - path: string; -}; -export type ImmichIntegrationConfigurationDto = { - backupConfiguration: boolean; - dataFolders: string[]; - libraries: "all" | string[]; -}; -export type ImmichIntegrationDto = { - configuration: ImmichIntegrationConfigurationDto; - id: string; - scheduleId: string; -}; -export type ImmichLibraryDto = { - exclusionPatterns: string[]; - id: string; - importPaths: string[]; - name: string; -}; -export type ImmichStateDto = { - dataFolders: string[]; - dataPath: string; - libraries: ImmichLibraryDto[]; -}; -export type IntegrationsResponseDto = { - immichIntegration?: ImmichIntegrationDto; - immichState?: ImmichStateDto; -}; -export type RetentionPolicyDto = { - keepLast?: number; - keepWithin?: string; - keepWithinDaily?: string; - keepWithinHourly?: string; - keepWithinMonthly?: string; - keepWithinWeekly?: string; - keepWithinYearly?: string; -}; -export type ConfigureImmichIntegrationRequestDto = { - backupConfiguration: boolean; - cron: string; - dataFolders: string[]; - libraries: "all" | string[]; - name: string; - retentionPolicy?: (RetentionPolicyDto) | null; - worm: boolean; -}; -export type RunDto = { - end: string; - id: string; - logFilePath: string; - repositoryId: string; - start: string; - status: RunStatus; - "type": RunType; -}; -export type RunResponseDto = { - run: RunDto; -}; -export type OnboardingStatusResponseDto = { - hasBackend: boolean; - hasBackup: boolean; - hasOnboardedKey: boolean; - hasSchedule: boolean; - hasSkippedExtraConfig: boolean; -}; -export type CurrentRecoveryKeyResponse = { - recoveryKey: string; -}; -export type ImportRecoveryKeyRequest = { - recoveryKey: string; -}; -export type RepositoryBackendDto = { - id: string; - online: boolean; - "type": BackendType; -}; -export type RepositoryBackendsDto = { - primary: RepositoryBackendDto; - secondary: RepositoryBackendDto[]; -}; -export type RepositoryConfigurationDto = { - paths: string[]; - retentionPolicy?: (RetentionPolicyDto) | null; -}; -export type RepositoryMetricsDto = { - lastBackup?: string; - lastBackupDuration?: number; - lastSuccessfulBackup?: string; - sizeBytes: number; -}; -export type LocalRepositoryDto = { - backends?: RepositoryBackendsDto; - configuration?: RepositoryConfigurationDto; - id: string; - metrics: RepositoryMetricsDto; - name: string; - worm: boolean; -}; -export type RepositoryListResponseDto = { - repositories: LocalRepositoryDto[]; -}; -export type RepositoryCreateRequestDto = { - name: string; - paths?: string[]; - worm: boolean; -}; -export type RepositoryCreateResponseDto = { - repository: LocalRepositoryDto; -}; -export type SnapshotSummaryDto = { - dataAdded: number; - filesChanged: number; - filesNew: number; - filesUnmodified: number; - totalBytes: number; - totalFiles: number; -}; -export type SnapshotDto = { - id: string; - paths: string[]; - summary?: SnapshotSummaryDto; - time: string; -}; -export type InspectedLocalRepositoryDto = { - backends?: RepositoryBackendsDto; - configuration?: RepositoryConfigurationDto; - id: string; - metrics: RepositoryMetricsDto; - name: string; - snapshots: SnapshotDto[]; - worm: boolean; -}; -export type RepositoryInspectResponseDto = { - repositories: InspectedLocalRepositoryDto[]; -}; -export type RepositoryUpdateRequestDto = { - name?: string; - paths?: string[]; - retentionPolicy?: (RetentionPolicyDto) | null; -}; -export type RepositoryUpdateResponseDto = { - repository: LocalRepositoryDto; -}; -export type LogResponseDto = { - logId: string; -}; -export type RepositoryCheckImportResponseDto = { - readable: boolean; -}; -export type RunHistoryResponseDto = { - runs: RunDto[]; -}; -export type ListSnapshotsResponseDto = { - snapshots: SnapshotDto[]; -}; -export type RepositorySnapshotRestoreRequestDto = { - include?: string[]; - target?: string; -}; -export type RepositorySnapshotRestoreFromPointRequestDto = { - include?: string[]; - yuccaConfig?: string; -}; -export type ScheduleDto = { - cron: string; - id: string; - lastFinished?: string; - lastRun?: string; - name: string; - paused: boolean; - repositories: string[]; -}; -export type ScheduleListResponseDto = { - schedules: ScheduleDto[]; -}; -export type ScheduleCreateRequestDto = { - cron: string; - name: string; - repositories: string[]; -}; -export type ScheduleCreateResponseDto = { - schedule: ScheduleDto; -}; -export type ScheduleUpdateRequestDto = { - cron?: string; - name?: string; - paused?: boolean; - repositories?: string[]; -}; -export type ScheduleUpdateResponseDto = { - schedule: ScheduleDto; -}; -export type ActiveScheduleItemDto = { - repositoryId: string; - status: TaskStatus; -}; -export type RunningTaskDto = { - logId?: string; - parentId: string; - scheduleStatus?: ActiveScheduleItemDto[]; - "type": TaskType; -}; -export type RunningTaskListResponse = { - tasks: RunningTaskDto[]; -}; -export type LicenseResponseDto = UserLicense; -export type SyncAckV1 = {}; -export type SyncAlbumDeleteV1 = { - /** Album ID */ - albumId: string; -}; -export type SyncAlbumToAssetDeleteV1 = { - /** Album ID */ - albumId: string; - /** Asset ID */ - assetId: string; -}; -export type SyncAlbumToAssetV1 = { - /** Album ID */ - albumId: string; - /** Asset ID */ - assetId: string; -}; -export type SyncAlbumUserDeleteV1 = { - /** Album ID */ - albumId: string; - /** User ID */ - userId: string; -}; -export type SyncAlbumUserV1 = { - /** Album ID */ - albumId: string; - role: AlbumUserRole; - /** User ID */ - userId: string; -}; -export type SyncAlbumV1 = { - /** Created at */ - createdAt: string; - /** Album description */ - description: string; - /** Album ID */ - id: string; - /** Is activity enabled */ - isActivityEnabled: boolean; - /** Album name */ - name: string; - order: AssetOrder; - /** Owner ID */ - ownerId: string; - /** Thumbnail asset ID */ - thumbnailAssetId: string | null; - /** Updated at */ - updatedAt: string; -}; -export type SyncAlbumV2 = { - /** Created at */ - createdAt: string; - /** Album description */ - description: string; - /** Album ID */ - id: string; - /** Is activity enabled */ - isActivityEnabled: boolean; - /** Album name */ - name: string; - order: AssetOrder; - /** Thumbnail asset ID */ - thumbnailAssetId: string | null; - /** Updated at */ - updatedAt: string; -}; -export type SyncAssetDeleteV1 = { - /** Asset ID */ - assetId: string; -}; -export type SyncAssetEditDeleteV1 = { - /** Edit ID */ - editId: string; -}; -export type SyncAssetEditV1 = { - action: AssetEditAction; - /** Asset ID */ - assetId: string; - /** Edit ID */ - id: string; - /** Edit parameters */ - parameters: { - [key: string]: any; - }; - /** Edit sequence */ - sequence: number; -}; -export type SyncAssetExifV1 = { - /** Asset ID */ - assetId: string; - /** City */ - city: string | null; - /** Country */ - country: string | null; - /** Date time original */ - dateTimeOriginal: string | null; - /** Description */ - description: string | null; - /** Exif image height */ - exifImageHeight: number | null; - /** Exif image width */ - exifImageWidth: number | null; - /** Exposure time */ - exposureTime: string | null; - /** F number */ - fNumber: number | null; - /** File size in byte */ - fileSizeInByte: number | null; - /** Focal length */ - focalLength: number | null; - /** FPS */ - fps: number | null; - /** ISO */ - iso: number | null; - /** Latitude */ - latitude: number | null; - /** Lens model */ - lensModel: string | null; - /** Longitude */ - longitude: number | null; - /** Make */ - make: string | null; - /** Model */ - model: string | null; - /** Modify date */ - modifyDate: string | null; - /** Orientation */ - orientation: string | null; - /** Profile description */ - profileDescription: string | null; - /** Projection type */ - projectionType: string | null; - /** Rating */ - rating: number | null; - /** State */ - state: string | null; - /** Time zone */ - timeZone: string | null; -}; -export type SyncAssetFaceDeleteV1 = { - /** Asset face ID */ - assetFaceId: string; -}; -export type SyncAssetFaceV1 = { - /** Asset ID */ - assetId: string; - /** Bounding box X1 */ - boundingBoxX1: number; - /** Bounding box X2 */ - boundingBoxX2: number; - /** Bounding box Y1 */ - boundingBoxY1: number; - /** Bounding box Y2 */ - boundingBoxY2: number; - /** Asset face ID */ - id: string; - /** Image height */ - imageHeight: number; - /** Image width */ - imageWidth: number; - /** Person ID */ - personId: string | null; - /** Source type */ - sourceType: string; -}; -export type SyncAssetFaceV2 = { - /** Asset ID */ - assetId: string; - /** Bounding box X1 */ - boundingBoxX1: number; - /** Bounding box X2 */ - boundingBoxX2: number; - /** Bounding box Y1 */ - boundingBoxY1: number; - /** Bounding box Y2 */ - boundingBoxY2: number; - /** Face deleted at */ - deletedAt: string | null; - /** Asset face ID */ - id: string; - /** Image height */ - imageHeight: number; - /** Image width */ - imageWidth: number; - /** Is the face visible in the asset */ - isVisible: boolean; - /** Person ID */ - personId: string | null; - /** Source type */ - sourceType: string; -}; -export type SyncAssetMetadataDeleteV1 = { - /** Asset ID */ - assetId: string; - /** Key */ - key: string; -}; -export type SyncAssetMetadataV1 = { - /** Asset ID */ - assetId: string; - /** Key */ - key: string; - /** Value */ - value: { - [key: string]: any; - }; -}; -export type SyncAssetV1 = { - /** Checksum */ - checksum: string; - /** Deleted at */ - deletedAt: string | null; - /** Duration */ - duration: string | null; - /** File created at */ - fileCreatedAt: string | null; - /** File modified at */ - fileModifiedAt: string | null; - /** Asset height */ - height: number | null; - /** Asset ID */ - id: string; - /** Is edited */ - isEdited: boolean; - /** Is favorite */ - isFavorite: boolean; - /** Library ID */ - libraryId: string | null; - /** Live photo video ID */ - livePhotoVideoId: string | null; - /** Local date time */ - localDateTime: string | null; - /** Original file name */ - originalFileName: string; - /** Owner ID */ - ownerId: string; - /** Stack ID */ - stackId: string | null; - /** Thumbhash */ - thumbhash: string | null; - "type": AssetTypeEnum; - visibility: AssetVisibility; - /** Asset width */ - width: number | null; -}; -export type SyncAssetV2 = { - /** Checksum */ - checksum: string; - /** Deleted at */ - deletedAt: string | null; - /** Duration */ - duration: number | null; - /** File created at */ - fileCreatedAt: string | null; - /** File modified at */ - fileModifiedAt: string | null; - /** Asset height */ - height: number | null; - /** Asset ID */ - id: string; - /** Is edited */ - isEdited: boolean; - /** Is favorite */ - isFavorite: boolean; - /** Library ID */ - libraryId: string | null; - /** Live photo video ID */ - livePhotoVideoId: string | null; - /** Local date time */ - localDateTime: string | null; - /** Original file name */ - originalFileName: string; - /** Owner ID */ - ownerId: string; - /** Stack ID */ - stackId: string | null; - /** Thumbhash */ - thumbhash: string | null; - "type": AssetTypeEnum; - visibility: AssetVisibility; - /** Asset width */ - width: number | null; -}; -export type SyncAuthUserV1 = { - avatarColor?: (UserAvatarColor) | null; - /** User deleted at */ - deletedAt: string | null; - /** User email */ - email: string; - /** User has profile image */ - hasProfileImage: boolean; - /** User ID */ - id: string; - /** User is admin */ - isAdmin: boolean; - /** User name */ - name: string; - /** User OAuth ID */ - oauthId: string; - /** User pin code */ - pinCode: string | null; - /** User profile changed at */ - profileChangedAt: string; - /** Quota size in bytes */ - quotaSizeInBytes: number | null; - /** Quota usage in bytes */ - quotaUsageInBytes: number; - /** User storage label */ - storageLabel: string | null; -}; -export type SyncCompleteV1 = {}; -export type SyncMemoryAssetDeleteV1 = { - /** Asset ID */ - assetId: string; - /** Memory ID */ - memoryId: string; -}; -export type SyncMemoryAssetV1 = { - /** Asset ID */ - assetId: string; - /** Memory ID */ - memoryId: string; -}; -export type SyncMemoryDeleteV1 = { - /** Memory ID */ - memoryId: string; -}; -export type SyncMemoryV1 = { - /** Created at */ - createdAt: string; - /** Data */ - data: { - [key: string]: any; - }; - /** Deleted at */ - deletedAt: string | null; - /** Hide at */ - hideAt: string | null; - /** Memory ID */ - id: string; - /** Is saved */ - isSaved: boolean; - /** Memory at */ - memoryAt: string; - /** Owner ID */ - ownerId: string; - /** Seen at */ - seenAt: string | null; - /** Show at */ - showAt: string | null; - "type": MemoryType; - /** Updated at */ - updatedAt: string; -}; -export type SyncPartnerDeleteV1 = { - /** Shared by ID */ - sharedById: string; - /** Shared with ID */ - sharedWithId: string; -}; -export type SyncPartnerV1 = { - /** In timeline */ - inTimeline: boolean; - /** Shared by ID */ - sharedById: string; - /** Shared with ID */ - sharedWithId: string; -}; -export type SyncPersonDeleteV1 = { - /** Person ID */ - personId: string; -}; -export type SyncPersonV1 = { - /** Birth date */ - birthDate: string | null; - /** Color */ - color: string | null; - /** Created at */ - createdAt: string; - /** Face asset ID */ - faceAssetId: string | null; - /** Person ID */ - id: string; - /** Is favorite */ - isFavorite: boolean; - /** Is hidden */ - isHidden: boolean; - /** Person name */ - name: string; - /** Owner ID */ - ownerId: string; - /** Updated at */ - updatedAt: string; -}; -export type SyncResetV1 = {}; -export type SyncStackDeleteV1 = { - /** Stack ID */ - stackId: string; -}; -export type SyncStackV1 = { - /** Created at */ - createdAt: string; - /** Stack ID */ - id: string; - /** Owner ID */ - ownerId: string; - /** Primary asset ID */ - primaryAssetId: string; - /** Updated at */ - updatedAt: string; -}; -export type SyncUserDeleteV1 = { - /** User ID */ - userId: string; -}; -export type SyncUserMetadataDeleteV1 = { - key: UserMetadataKey; - /** User ID */ - userId: string; -}; -export type SyncUserMetadataV1 = { - key: UserMetadataKey; - /** User ID */ - userId: string; - /** User metadata value */ - value: { - [key: string]: any; - }; -}; -export type SyncUserV1 = { - avatarColor?: (UserAvatarColor) | null; - /** User deleted at */ - deletedAt: string | null; - /** User email */ - email: string; - /** User has profile image */ - hasProfileImage: boolean; - /** User ID */ - id: string; - /** User name */ - name: string; - /** User profile changed at */ - profileChangedAt: string; -}; -/** - * List all activities - */ -export declare function getActivities({ albumId, assetId, level, $type, userId }: { - albumId: string; - assetId?: string; - level?: ReactionLevel; - $type?: ReactionType; - userId?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create an activity - */ -export declare function createActivity({ activityCreateDto }: { - activityCreateDto: ActivityCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve activity statistics - */ -export declare function getActivityStatistics({ albumId, assetId }: { - albumId: string; - assetId?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete an activity - */ -export declare function deleteActivity({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Unlink all OAuth accounts - */ -export declare function unlinkAllOAuthAccountsAdmin(opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete database backup - */ -export declare function deleteDatabaseBackup({ databaseBackupDeleteDto }: { - databaseBackupDeleteDto: DatabaseBackupDeleteDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * List database backups - */ -export declare function listDatabaseBackups(opts?: Oazapfts.RequestOpts): Promise; -/** - * Start database backup restore flow - */ -export declare function startDatabaseRestoreFlow(opts?: Oazapfts.RequestOpts): Promise; -/** - * Upload database backup - */ -export declare function uploadDatabaseBackup({ databaseBackupUploadDto }: { - databaseBackupUploadDto: DatabaseBackupUploadDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Download database backup - */ -export declare function downloadDatabaseBackup({ filename }: { - filename: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Set maintenance mode - */ -export declare function setMaintenanceMode({ setMaintenanceModeDto }: { - setMaintenanceModeDto: SetMaintenanceModeDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Detect existing install - */ -export declare function detectPriorInstall(opts?: Oazapfts.RequestOpts): Promise; -/** - * Log into maintenance mode - */ -export declare function maintenanceLogin({ maintenanceLoginDto }: { - maintenanceLoginDto: MaintenanceLoginDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get maintenance mode status - */ -export declare function getMaintenanceStatus(opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a notification - */ -export declare function createNotification({ notificationCreateDto }: { - notificationCreateDto: NotificationCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Render email template - */ -export declare function getNotificationTemplateAdmin({ name, templateDto }: { - name: string; - templateDto: TemplateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Send test email - */ -export declare function sendTestEmailAdmin({ systemConfigSmtpDto }: { - systemConfigSmtpDto: SystemConfigSmtpDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Search users - */ -export declare function searchUsersAdmin({ id, withDeleted }: { - id?: string; - withDeleted?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a user - */ -export declare function createUserAdmin({ userAdminCreateDto }: { - userAdminCreateDto: UserAdminCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a user - */ -export declare function deleteUserAdmin({ id, userAdminDeleteDto }: { - id: string; - userAdminDeleteDto: UserAdminDeleteDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a user - */ -export declare function getUserAdmin({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a user - */ -export declare function updateUserAdmin({ id, userAdminUpdateDto }: { - id: string; - userAdminUpdateDto: UserAdminUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve user preferences - */ -export declare function getUserPreferencesAdmin({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update user preferences - */ -export declare function updateUserPreferencesAdmin({ id, userPreferencesUpdateDto }: { - id: string; - userPreferencesUpdateDto: UserPreferencesUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Restore a deleted user - */ -export declare function restoreUserAdmin({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve user sessions - */ -export declare function getUserSessionsAdmin({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve user statistics - */ -export declare function getUserStatisticsAdmin({ id, isFavorite, isTrashed, visibility }: { - id: string; - isFavorite?: boolean; - isTrashed?: boolean; - visibility?: AssetVisibility; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * List all albums - */ -export declare function getAllAlbums({ assetId, isOwned, isShared }: { - assetId?: string; - isOwned?: boolean; - isShared?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create an album - */ -export declare function createAlbum({ createAlbumDto }: { - createAlbumDto: CreateAlbumDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Add assets to albums - */ -export declare function addAssetsToAlbums({ albumsAddAssetsDto }: { - albumsAddAssetsDto: AlbumsAddAssetsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve album statistics - */ -export declare function getAlbumStatistics(opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete an album - */ -export declare function deleteAlbum({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve an album - */ -export declare function getAlbumInfo({ id, key, slug }: { - id: string; - key?: string; - slug?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update an album - */ -export declare function updateAlbumInfo({ id, updateAlbumDto }: { - id: string; - updateAlbumDto: UpdateAlbumDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Remove assets from an album - */ -export declare function removeAssetFromAlbum({ id, bulkIdsDto }: { - id: string; - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Add assets to an album - */ -export declare function addAssetsToAlbum({ id, bulkIdsDto }: { - id: string; - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve album map markers - */ -export declare function getAlbumMapMarkers({ id, key, slug }: { - id: string; - key?: string; - slug?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Remove user from album - */ -export declare function removeUserFromAlbum({ id, userId }: { - id: string; - userId: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update user role - */ -export declare function updateAlbumUser({ id, userId, updateAlbumUserDto }: { - id: string; - userId: string; - updateAlbumUserDto: UpdateAlbumUserDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Share album with users - */ -export declare function addUsersToAlbum({ id, addUsersDto }: { - id: string; - addUsersDto: AddUsersDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * List all API keys - */ -export declare function getApiKeys(opts?: Oazapfts.RequestOpts): Promise; -/** - * Create an API key - */ -export declare function createApiKey({ apiKeyCreateDto }: { - apiKeyCreateDto: ApiKeyCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve the current API key - */ -export declare function getMyApiKey(opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete an API key - */ -export declare function deleteApiKey({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve an API key - */ -export declare function getApiKey({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update an API key - */ -export declare function updateApiKey({ id, apiKeyUpdateDto }: { - id: string; - apiKeyUpdateDto: ApiKeyUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete assets - */ -export declare function deleteAssets({ assetBulkDeleteDto }: { - assetBulkDeleteDto: AssetBulkDeleteDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Upload asset - */ -export declare function uploadAsset({ key, slug, xImmichChecksum, assetMediaCreateDto }: { - key?: string; - slug?: string; - xImmichChecksum?: string; - assetMediaCreateDto: AssetMediaCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update assets - */ -export declare function updateAssets({ assetBulkUpdateDto }: { - assetBulkUpdateDto: AssetBulkUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Check bulk upload - */ -export declare function checkBulkUpload({ assetBulkUploadCheckDto }: { - assetBulkUploadCheckDto: AssetBulkUploadCheckDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Copy asset - */ -export declare function copyAsset({ assetCopyDto }: { - assetCopyDto: AssetCopyDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Run an asset job - */ -export declare function runAssetJobs({ assetJobsDto }: { - assetJobsDto: AssetJobsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete asset metadata - */ -export declare function deleteBulkAssetMetadata({ assetMetadataBulkDeleteDto }: { - assetMetadataBulkDeleteDto: AssetMetadataBulkDeleteDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Upsert asset metadata - */ -export declare function updateBulkAssetMetadata({ assetMetadataBulkUpsertDto }: { - assetMetadataBulkUpsertDto: AssetMetadataBulkUpsertDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get asset statistics - */ -export declare function getAssetStatistics({ isFavorite, isTrashed, visibility }: { - isFavorite?: boolean; - isTrashed?: boolean; - visibility?: AssetVisibility; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve an asset - */ -export declare function getAssetInfo({ id, key, slug }: { - id: string; - key?: string; - slug?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update an asset - */ -export declare function updateAsset({ id, updateAssetDto }: { - id: string; - updateAssetDto: UpdateAssetDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Remove edits from an existing asset - */ -export declare function removeAssetEdits({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve edits for an existing asset - */ -export declare function getAssetEdits({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Apply edits to an existing asset - */ -export declare function editAsset({ id, assetEditsCreateDto }: { - id: string; - assetEditsCreateDto: AssetEditsCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get asset metadata - */ -export declare function getAssetMetadata({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update asset metadata - */ -export declare function updateAssetMetadata({ id, assetMetadataUpsertDto }: { - id: string; - assetMetadataUpsertDto: AssetMetadataUpsertDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete asset metadata by key - */ -export declare function deleteAssetMetadata({ id, key }: { - id: string; - key: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve asset metadata by key - */ -export declare function getAssetMetadataByKey({ id, key }: { - id: string; - key: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve asset OCR data - */ -export declare function getAssetOcr({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Download original asset - */ -export declare function downloadAsset({ edited, id, key, slug }: { - edited?: boolean; - id: string; - key?: string; - slug?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * View asset thumbnail - */ -export declare function viewAsset({ edited, id, key, size, slug }: { - edited?: boolean; - id: string; - key?: string; - size?: AssetMediaSize; - slug?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Play asset video - */ -export declare function playAssetVideo({ id, key, slug }: { - id: string; - key?: string; - slug?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Register admin - */ -export declare function signUpAdmin({ signUpDto }: { - signUpDto: SignUpDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Change password - */ -export declare function changePassword({ changePasswordDto }: { - changePasswordDto: ChangePasswordDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Login - */ -export declare function login({ loginCredentialDto }: { - loginCredentialDto: LoginCredentialDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Logout - */ -export declare function logout(opts?: Oazapfts.RequestOpts): Promise; -/** - * Reset pin code - */ -export declare function resetPinCode({ pinCodeResetDto }: { - pinCodeResetDto: PinCodeResetDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Setup pin code - */ -export declare function setupPinCode({ pinCodeSetupDto }: { - pinCodeSetupDto: PinCodeSetupDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Change pin code - */ -export declare function changePinCode({ pinCodeChangeDto }: { - pinCodeChangeDto: PinCodeChangeDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Lock auth session - */ -export declare function lockAuthSession(opts?: Oazapfts.RequestOpts): Promise; -/** - * Unlock auth session - */ -export declare function unlockAuthSession({ sessionUnlockDto }: { - sessionUnlockDto: SessionUnlockDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve auth status - */ -export declare function getAuthStatus(opts?: Oazapfts.RequestOpts): Promise; -/** - * Validate access token - */ -export declare function validateAccessToken(opts?: Oazapfts.RequestOpts): Promise; -/** - * Download asset archive - */ -export declare function downloadArchive({ key, slug, downloadArchiveDto }: { - key?: string; - slug?: string; - downloadArchiveDto: DownloadArchiveDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve download information - */ -export declare function getDownloadInfo({ key, slug, downloadInfoDto }: { - key?: string; - slug?: string; - downloadInfoDto: DownloadInfoDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete duplicates - */ -export declare function deleteDuplicates({ bulkIdsDto }: { - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve duplicates - */ -export declare function getAssetDuplicates(opts?: Oazapfts.RequestOpts): Promise; -/** - * Resolve duplicate groups - */ -export declare function resolveDuplicates({ duplicateResolveDto }: { - duplicateResolveDto: DuplicateResolveDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Dismiss a duplicate group - */ -export declare function deleteDuplicate({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve faces for asset - */ -export declare function getFaces({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a face - */ -export declare function createFace({ assetFaceCreateDto }: { - assetFaceCreateDto: AssetFaceCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a face - */ -export declare function deleteFace({ id, assetFaceDeleteDto }: { - id: string; - assetFaceDeleteDto: AssetFaceDeleteDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Re-assign a face to another person - */ -export declare function reassignFacesById({ id, faceDto }: { - id: string; - faceDto: FaceDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve queue counts and status - */ -export declare function getQueuesLegacy(opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a manual job - */ -export declare function createJob({ jobCreateDto }: { - jobCreateDto: JobCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Run jobs - */ -export declare function runQueueCommandLegacy({ name, queueCommandDto }: { - name: QueueName; - queueCommandDto: QueueCommandDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve libraries - */ -export declare function getAllLibraries(opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a library - */ -export declare function createLibrary({ createLibraryDto }: { - createLibraryDto: CreateLibraryDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a library - */ -export declare function deleteLibrary({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a library - */ -export declare function getLibrary({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a library - */ -export declare function updateLibrary({ id, updateLibraryDto }: { - id: string; - updateLibraryDto: UpdateLibraryDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Scan a library - */ -export declare function scanLibrary({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve library statistics - */ -export declare function getLibraryStatistics({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Validate library settings - */ -export declare function validate({ id, validateLibraryDto }: { - id: string; - validateLibraryDto: ValidateLibraryDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve map markers - */ -export declare function getMapMarkers({ fileCreatedAfter, fileCreatedBefore, isArchived, isFavorite, withPartners, withSharedAlbums }: { - fileCreatedAfter?: string; - fileCreatedBefore?: string; - isArchived?: boolean; - isFavorite?: boolean; - withPartners?: boolean; - withSharedAlbums?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Reverse geocode coordinates - */ -export declare function reverseGeocode({ lat, lon }: { - lat: number; - lon: number; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve memories - */ -export declare function searchMemories({ $for, isSaved, isTrashed, order, size, $type }: { - $for?: string; - isSaved?: boolean; - isTrashed?: boolean; - order?: MemorySearchOrder; - size?: number; - $type?: MemoryType; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a memory - */ -export declare function createMemory({ memoryCreateDto }: { - memoryCreateDto: MemoryCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve memories statistics - */ -export declare function memoriesStatistics({ $for, isSaved, isTrashed, order, size, $type }: { - $for?: string; - isSaved?: boolean; - isTrashed?: boolean; - order?: MemorySearchOrder; - size?: number; - $type?: MemoryType; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a memory - */ -export declare function deleteMemory({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a memory - */ -export declare function getMemory({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a memory - */ -export declare function updateMemory({ id, memoryUpdateDto }: { - id: string; - memoryUpdateDto: MemoryUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Remove assets from a memory - */ -export declare function removeMemoryAssets({ id, bulkIdsDto }: { - id: string; - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Add assets to a memory - */ -export declare function addMemoryAssets({ id, bulkIdsDto }: { - id: string; - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete notifications - */ -export declare function deleteNotifications({ notificationDeleteAllDto }: { - notificationDeleteAllDto: NotificationDeleteAllDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve notifications - */ -export declare function getNotifications({ id, level, $type, unread }: { - id?: string; - level?: NotificationLevel; - $type?: NotificationType; - unread?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update notifications - */ -export declare function updateNotifications({ notificationUpdateAllDto }: { - notificationUpdateAllDto: NotificationUpdateAllDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a notification - */ -export declare function deleteNotification({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get a notification - */ -export declare function getNotification({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a notification - */ -export declare function updateNotification({ id, notificationUpdateDto }: { - id: string; - notificationUpdateDto: NotificationUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Start OAuth - */ -export declare function startOAuth({ oAuthConfigDto }: { - oAuthConfigDto: OAuthConfigDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Backchannel OAuth logout - */ -export declare function logoutOAuth({ oAuthBackchannelLogoutDto }: { - oAuthBackchannelLogoutDto: OAuthBackchannelLogoutDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Finish OAuth - */ -export declare function finishOAuth({ oAuthCallbackDto }: { - oAuthCallbackDto: OAuthCallbackDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Link OAuth account - */ -export declare function linkOAuthAccount({ oAuthCallbackDto }: { - oAuthCallbackDto: OAuthCallbackDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Redirect OAuth to mobile - */ -export declare function redirectOAuthToMobile(opts?: Oazapfts.RequestOpts): Promise; -/** - * Unlink OAuth account - */ -export declare function unlinkOAuthAccount(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve partners - */ -export declare function getPartners({ direction }: { - direction: PartnerDirection; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a partner - */ -export declare function createPartner({ partnerCreateDto }: { - partnerCreateDto: PartnerCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Remove a partner - */ -export declare function removePartner({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a partner - */ -export declare function createPartnerDeprecated({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a partner - */ -export declare function updatePartner({ id, partnerUpdateDto }: { - id: string; - partnerUpdateDto: PartnerUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete people - */ -export declare function deletePeople({ bulkIdsDto }: { - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get all people - */ -export declare function getAllPeople({ closestAssetId, closestPersonId, page, size, withHidden }: { - closestAssetId?: string; - closestPersonId?: string; - page?: number; - size?: number; - withHidden?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a person - */ -export declare function createPerson({ personCreateDto }: { - personCreateDto: PersonCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update people - */ -export declare function updatePeople({ peopleUpdateDto }: { - peopleUpdateDto: PeopleUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete person - */ -export declare function deletePerson({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get a person - */ -export declare function getPerson({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update person - */ -export declare function updatePerson({ id, personUpdateDto }: { - id: string; - personUpdateDto: PersonUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Merge people - */ -export declare function mergePerson({ id, mergePersonDto }: { - id: string; - mergePersonDto: MergePersonDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Reassign faces - */ -export declare function reassignFaces({ id, assetFaceUpdateDto }: { - id: string; - assetFaceUpdateDto: AssetFaceUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get person statistics - */ -export declare function getPersonStatistics({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get person thumbnail - */ -export declare function getPersonThumbnail({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * List all plugins - */ -export declare function getPlugins(opts?: Oazapfts.RequestOpts): Promise; -/** - * List all plugin triggers - */ -export declare function getPluginTriggers(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a plugin - */ -export declare function getPlugin({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * List all queues - */ -export declare function getQueues(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a queue - */ -export declare function getQueue({ name }: { - name: QueueName; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a queue - */ -export declare function updateQueue({ name, queueUpdateDto }: { - name: QueueName; - queueUpdateDto: QueueUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Empty a queue - */ -export declare function emptyQueue({ name, queueDeleteDto }: { - name: QueueName; - queueDeleteDto: QueueDeleteDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve queue jobs - */ -export declare function getQueueJobs({ name, status }: { - name: QueueName; - status?: QueueJobStatus[]; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve assets by city - */ -export declare function getAssetsByCity(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve explore data - */ -export declare function getExploreData(opts?: Oazapfts.RequestOpts): Promise; -/** - * Search large assets - */ -export declare function searchLargeAssets({ albumIds, city, country, createdAfter, createdBefore, isEncoded, isFavorite, isMotion, isNotInAlbum, isOffline, lensModel, libraryId, make, minFileSize, model, ocr, personIds, rating, size, state, tagIds, takenAfter, takenBefore, trashedAfter, trashedBefore, $type, updatedAfter, updatedBefore, visibility, withDeleted, withExif }: { - albumIds?: string[]; - city?: string | null; - country?: string | null; - createdAfter?: string; - createdBefore?: string; - isEncoded?: boolean; - isFavorite?: boolean; - isMotion?: boolean; - isNotInAlbum?: boolean; - isOffline?: boolean; - lensModel?: string | null; - libraryId?: string | null; - make?: string | null; - minFileSize?: number; - model?: string | null; - ocr?: string; - personIds?: string[]; - rating?: number | null; - size?: number; - state?: string | null; - tagIds?: string[] | null; - takenAfter?: string; - takenBefore?: string; - trashedAfter?: string; - trashedBefore?: string; - $type?: AssetTypeEnum; - updatedAfter?: string; - updatedBefore?: string; - visibility?: AssetVisibility; - withDeleted?: boolean; - withExif?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Search assets by metadata - */ -export declare function searchAssets({ metadataSearchDto }: { - metadataSearchDto: MetadataSearchDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Search people - */ -export declare function searchPerson({ name, withHidden }: { - name: string; - withHidden?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Search places - */ -export declare function searchPlaces({ name }: { - name: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Search random assets - */ -export declare function searchRandom({ randomSearchDto }: { - randomSearchDto: RandomSearchDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Smart asset search - */ -export declare function searchSmart({ smartSearchDto }: { - smartSearchDto: SmartSearchDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Search asset statistics - */ -export declare function searchAssetStatistics({ statisticsSearchDto }: { - statisticsSearchDto: StatisticsSearchDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve search suggestions - */ -export declare function getSearchSuggestions({ country, includeNull, lensModel, make, model, state, $type }: { - country?: string; - includeNull?: boolean; - lensModel?: string; - make?: string; - model?: string; - state?: string; - $type: SearchSuggestionType; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get server information - */ -export declare function getAboutInfo(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get APK links - */ -export declare function getApkLinks(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get config - */ -export declare function getServerConfig(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get features - */ -export declare function getServerFeatures(opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete server product key - */ -export declare function deleteServerLicense(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get product key - */ -export declare function getServerLicense(opts?: Oazapfts.RequestOpts): Promise; -/** - * Set server product key - */ -export declare function setServerLicense({ licenseKeyDto }: { - licenseKeyDto: LicenseKeyDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get supported media types - */ -export declare function getSupportedMediaTypes(opts?: Oazapfts.RequestOpts): Promise; -/** - * Ping - */ -export declare function pingServer(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get statistics - */ -export declare function getServerStatistics(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get storage - */ -export declare function getStorage(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get server version - */ -export declare function getServerVersion(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get version check status - */ -export declare function getVersionCheck(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get version history - */ -export declare function getVersionHistory(opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete all sessions - */ -export declare function deleteAllSessions(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve sessions - */ -export declare function getSessions(opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a session - */ -export declare function createSession({ sessionCreateDto }: { - sessionCreateDto: SessionCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a session - */ -export declare function deleteSession({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a session - */ -export declare function updateSession({ id, sessionUpdateDto }: { - id: string; - sessionUpdateDto: SessionUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Lock a session - */ -export declare function lockSession({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve all shared links - */ -export declare function getAllSharedLinks({ albumId, id }: { - albumId?: string; - id?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a shared link - */ -export declare function createSharedLink({ sharedLinkCreateDto }: { - sharedLinkCreateDto: SharedLinkCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Shared link login - */ -export declare function sharedLinkLogin({ key, slug, sharedLinkLoginDto }: { - key?: string; - slug?: string; - sharedLinkLoginDto: SharedLinkLoginDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve current shared link - */ -export declare function getMySharedLink({ key, slug }: { - key?: string; - slug?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a shared link - */ -export declare function removeSharedLink({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a shared link - */ -export declare function getSharedLinkById({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a shared link - */ -export declare function updateSharedLink({ id, sharedLinkEditDto }: { - id: string; - sharedLinkEditDto: SharedLinkEditDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Remove assets from a shared link - */ -export declare function removeSharedLinkAssets({ id, assetIdsDto }: { - id: string; - assetIdsDto: AssetIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Add assets to a shared link - */ -export declare function addSharedLinkAssets({ id, assetIdsDto }: { - id: string; - assetIdsDto: AssetIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete stacks - */ -export declare function deleteStacks({ bulkIdsDto }: { - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve stacks - */ -export declare function searchStacks({ primaryAssetId }: { - primaryAssetId?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a stack - */ -export declare function createStack({ stackCreateDto }: { - stackCreateDto: StackCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a stack - */ -export declare function deleteStack({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a stack - */ -export declare function getStack({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a stack - */ -export declare function updateStack({ id, stackUpdateDto }: { - id: string; - stackUpdateDto: StackUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Remove an asset from a stack - */ -export declare function removeAssetFromStack({ assetId, id }: { - assetId: string; - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete acknowledgements - */ -export declare function deleteSyncAck({ syncAckDeleteDto }: { - syncAckDeleteDto: SyncAckDeleteDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve acknowledgements - */ -export declare function getSyncAck(opts?: Oazapfts.RequestOpts): Promise; -/** - * Acknowledge changes - */ -export declare function sendSyncAck({ syncAckSetDto }: { - syncAckSetDto: SyncAckSetDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Stream sync changes - */ -export declare function getSyncStream({ syncStreamDto }: { - syncStreamDto: SyncStreamDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get system configuration - */ -export declare function getConfig(opts?: Oazapfts.RequestOpts): Promise; -/** - * Update system configuration - */ -export declare function updateConfig({ systemConfigDto }: { - systemConfigDto: SystemConfigDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get system configuration defaults - */ -export declare function getConfigDefaults(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get storage template options - */ -export declare function getStorageTemplateOptions(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve admin onboarding - */ -export declare function getAdminOnboarding(opts?: Oazapfts.RequestOpts): Promise; -/** - * Update admin onboarding - */ -export declare function updateAdminOnboarding({ adminOnboardingUpdateDto }: { - adminOnboardingUpdateDto: AdminOnboardingUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve reverse geocoding state - */ -export declare function getReverseGeocodingState(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve version check state - */ -export declare function getVersionCheckState(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve tags - */ -export declare function getAllTags(opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a tag - */ -export declare function createTag({ tagCreateDto }: { - tagCreateDto: TagCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Upsert tags - */ -export declare function upsertTags({ tagUpsertDto }: { - tagUpsertDto: TagUpsertDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Tag assets - */ -export declare function bulkTagAssets({ tagBulkAssetsDto }: { - tagBulkAssetsDto: TagBulkAssetsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a tag - */ -export declare function deleteTag({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a tag - */ -export declare function getTagById({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a tag - */ -export declare function updateTag({ id, tagUpdateDto }: { - id: string; - tagUpdateDto: TagUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Untag assets - */ -export declare function untagAssets({ id, bulkIdsDto }: { - id: string; - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Tag assets - */ -export declare function tagAssets({ id, bulkIdsDto }: { - id: string; - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get time bucket - */ -export declare function getTimeBucket({ albumId, bbox, isFavorite, isTrashed, key, order, personId, slug, tagId, timeBucket, userId, visibility, withCoordinates, withPartners, withStacked }: { - albumId?: string; - bbox?: string; - isFavorite?: boolean; - isTrashed?: boolean; - key?: string; - order?: AssetOrder; - personId?: string; - slug?: string; - tagId?: string; - timeBucket: string; - userId?: string; - visibility?: AssetVisibility; - withCoordinates?: boolean; - withPartners?: boolean; - withStacked?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get time buckets - */ -export declare function getTimeBuckets({ albumId, bbox, isFavorite, isTrashed, key, order, personId, slug, tagId, userId, visibility, withCoordinates, withPartners, withStacked }: { - albumId?: string; - bbox?: string; - isFavorite?: boolean; - isTrashed?: boolean; - key?: string; - order?: AssetOrder; - personId?: string; - slug?: string; - tagId?: string; - userId?: string; - visibility?: AssetVisibility; - withCoordinates?: boolean; - withPartners?: boolean; - withStacked?: boolean; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Empty trash - */ -export declare function emptyTrash(opts?: Oazapfts.RequestOpts): Promise; -/** - * Restore trash - */ -export declare function restoreTrash(opts?: Oazapfts.RequestOpts): Promise; -/** - * Restore assets - */ -export declare function restoreAssets({ bulkIdsDto }: { - bulkIdsDto: BulkIdsDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get all users - */ -export declare function searchUsers(opts?: Oazapfts.RequestOpts): Promise; -/** - * Get current user - */ -export declare function getMyUser(opts?: Oazapfts.RequestOpts): Promise; -/** - * Update current user - */ -export declare function updateMyUser({ userUpdateMeDto }: { - userUpdateMeDto: UserUpdateMeDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete user product key - */ -export declare function deleteUserLicense(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve user product key - */ -export declare function getUserLicense(opts?: Oazapfts.RequestOpts): Promise; -/** - * Set user product key - */ -export declare function setUserLicense({ licenseKeyDto }: { - licenseKeyDto: LicenseKeyDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete user onboarding - */ -export declare function deleteUserOnboarding(opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve user onboarding - */ -export declare function getUserOnboarding(opts?: Oazapfts.RequestOpts): Promise; -/** - * Update user onboarding - */ -export declare function setUserOnboarding({ onboardingDto }: { - onboardingDto: OnboardingDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Get my preferences - */ -export declare function getMyPreferences(opts?: Oazapfts.RequestOpts): Promise; -/** - * Update my preferences - */ -export declare function updateMyPreferences({ userPreferencesUpdateDto }: { - userPreferencesUpdateDto: UserPreferencesUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete user profile image - */ -export declare function deleteProfileImage(opts?: Oazapfts.RequestOpts): Promise; -/** - * Create user profile image - */ -export declare function createProfileImage({ createProfileImageDto }: { - createProfileImageDto: CreateProfileImageDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a user - */ -export declare function getUser({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve user profile image - */ -export declare function getProfileImage({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve assets by original path - */ -export declare function getAssetsByOriginalPath({ path }: { - path: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve unique paths - */ -export declare function getUniqueOriginalPaths(opts?: Oazapfts.RequestOpts): Promise; -/** - * List all workflows - */ -export declare function getWorkflows(opts?: Oazapfts.RequestOpts): Promise; -/** - * Create a workflow - */ -export declare function createWorkflow({ workflowCreateDto }: { - workflowCreateDto: WorkflowCreateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Delete a workflow - */ -export declare function deleteWorkflow({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Retrieve a workflow - */ -export declare function getWorkflow({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -/** - * Update a workflow - */ -export declare function updateWorkflow({ id, workflowUpdateDto }: { - id: string; - workflowUpdateDto: WorkflowUpdateDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function oidcDeviceFlow(opts?: Oazapfts.RequestOpts): Promise; -export declare function getBackends(opts?: Oazapfts.RequestOpts): Promise; -export declare function createLocalBackend({ createLocalBackendRequestDto }: { - createLocalBackendRequestDto: CreateLocalBackendRequestDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function resetOrchestrator(opts?: Oazapfts.RequestOpts): Promise; -export declare function getFileListing({ path }: { - path?: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function getIntegrations(opts?: Oazapfts.RequestOpts): Promise; -export declare function configureImmichIntegration({ configureImmichIntegrationRequestDto }: { - configureImmichIntegrationRequestDto: ConfigureImmichIntegrationRequestDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function getRun({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function logStreamSse({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function onboardingStatus(opts?: Oazapfts.RequestOpts): Promise; -export declare function currentRecoveryKey(opts?: Oazapfts.RequestOpts): Promise; -export declare function confirmRecoveryKey(opts?: Oazapfts.RequestOpts): Promise; -export declare function importRecoveryKey({ importRecoveryKeyRequest }: { - importRecoveryKeyRequest: ImportRecoveryKeyRequest; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function skipOnboardingExtraConfig(opts?: Oazapfts.RequestOpts): Promise; -export declare function getRepositories(opts?: Oazapfts.RequestOpts): Promise; -export declare function createRepository({ backend, repositoryCreateRequestDto }: { - backend?: string; - repositoryCreateRequestDto: RepositoryCreateRequestDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function inspectRepositories(opts?: Oazapfts.RequestOpts): Promise; -export declare function deleteRepository({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function updateRepository({ backend, id, repositoryUpdateRequestDto }: { - backend?: string; - id: string; - repositoryUpdateRequestDto: RepositoryUpdateRequestDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function createBackup({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function checkImportRepository({ backend, id }: { - backend: string; - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function importRepository({ backend, id }: { - backend: string; - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function getRunHistory({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function getSnapshots({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function pruneRepository({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function forgetSnapshot({ id, snapshot }: { - id: string; - snapshot: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function restoreSnapshot({ id, snapshot, repositorySnapshotRestoreRequestDto }: { - id: string; - snapshot: string; - repositorySnapshotRestoreRequestDto: RepositorySnapshotRestoreRequestDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function getSnapshotListing({ id, path, snapshot }: { - id: string; - path?: string; - snapshot: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function restoreFromPoint({ backend, id, snapshot, repositorySnapshotRestoreFromPointRequestDto }: { - backend: string; - id: string; - snapshot: string; - repositorySnapshotRestoreFromPointRequestDto: RepositorySnapshotRestoreFromPointRequestDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function getSchedules(opts?: Oazapfts.RequestOpts): Promise; -export declare function createSchedule({ scheduleCreateRequestDto }: { - scheduleCreateRequestDto: ScheduleCreateRequestDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function removeSchedule({ id }: { - id: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function updateSchedule({ id, scheduleUpdateRequestDto }: { - id: string; - scheduleUpdateRequestDto: ScheduleUpdateRequestDto; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare function getRunningTasks(opts?: Oazapfts.RequestOpts): Promise; -export declare function cancelTask({ parentId }: { - parentId: string; -}, opts?: Oazapfts.RequestOpts): Promise; -export declare enum ReactionLevel { - Album = "album", - Asset = "asset" -} -export declare enum ReactionType { - Comment = "comment", - Like = "like" -} -export declare enum UserAvatarColor { - Primary = "primary", - Pink = "pink", - Red = "red", - Yellow = "yellow", - Blue = "blue", - Green = "green", - Purple = "purple", - Orange = "orange", - Gray = "gray", - Amber = "amber" -} -export declare enum MaintenanceAction { - Start = "start", - End = "end", - SelectDatabaseRestore = "select_database_restore", - RestoreDatabase = "restore_database" -} -export declare enum StorageFolder { - EncodedVideo = "encoded-video", - Library = "library", - Upload = "upload", - Profile = "profile", - Thumbs = "thumbs", - Backups = "backups" -} -export declare enum NotificationLevel { - Success = "success", - Error = "error", - Warning = "warning", - Info = "info" -} -export declare enum NotificationType { - JobFailed = "JobFailed", - BackupFailed = "BackupFailed", - SystemMessage = "SystemMessage", - AlbumInvite = "AlbumInvite", - AlbumUpdate = "AlbumUpdate", - Custom = "Custom" -} -export declare enum UserStatus { - Active = "active", - Removing = "removing", - Deleted = "deleted" -} -export declare enum AssetOrder { - Asc = "asc", - Desc = "desc" -} -export declare enum AssetVisibility { - Archive = "archive", - Timeline = "timeline", - Hidden = "hidden", - Locked = "locked" -} -export declare enum AlbumUserRole { - Editor = "editor", - Owner = "owner", - Viewer = "viewer" -} -export declare enum BulkIdErrorReason { - Duplicate = "duplicate", - NoPermission = "no_permission", - NotFound = "not_found", - Unknown = "unknown", - Validation = "validation" -} -export declare enum Permission { - All = "all", - ActivityCreate = "activity.create", - ActivityRead = "activity.read", - ActivityUpdate = "activity.update", - ActivityDelete = "activity.delete", - ActivityStatistics = "activity.statistics", - ApiKeyCreate = "apiKey.create", - ApiKeyRead = "apiKey.read", - ApiKeyUpdate = "apiKey.update", - ApiKeyDelete = "apiKey.delete", - AssetRead = "asset.read", - AssetUpdate = "asset.update", - AssetDelete = "asset.delete", - AssetStatistics = "asset.statistics", - AssetShare = "asset.share", - AssetView = "asset.view", - AssetDownload = "asset.download", - AssetUpload = "asset.upload", - AssetCopy = "asset.copy", - AssetDerive = "asset.derive", - AssetEditGet = "asset.edit.get", - AssetEditCreate = "asset.edit.create", - AssetEditDelete = "asset.edit.delete", - AlbumCreate = "album.create", - AlbumRead = "album.read", - AlbumUpdate = "album.update", - AlbumDelete = "album.delete", - AlbumStatistics = "album.statistics", - AlbumShare = "album.share", - AlbumDownload = "album.download", - AlbumAssetCreate = "albumAsset.create", - AlbumAssetDelete = "albumAsset.delete", - AlbumUserCreate = "albumUser.create", - AlbumUserUpdate = "albumUser.update", - AlbumUserDelete = "albumUser.delete", - AuthChangePassword = "auth.changePassword", - AuthDeviceDelete = "authDevice.delete", - ArchiveRead = "archive.read", - BackupList = "backup.list", - BackupDownload = "backup.download", - BackupUpload = "backup.upload", - BackupDelete = "backup.delete", - DuplicateRead = "duplicate.read", - DuplicateDelete = "duplicate.delete", - FaceCreate = "face.create", - FaceRead = "face.read", - FaceUpdate = "face.update", - FaceDelete = "face.delete", - FolderRead = "folder.read", - JobCreate = "job.create", - JobRead = "job.read", - LibraryCreate = "library.create", - LibraryRead = "library.read", - LibraryUpdate = "library.update", - LibraryDelete = "library.delete", - LibraryStatistics = "library.statistics", - TimelineRead = "timeline.read", - TimelineDownload = "timeline.download", - Maintenance = "maintenance", - MapRead = "map.read", - MapSearch = "map.search", - MemoryCreate = "memory.create", - MemoryRead = "memory.read", - MemoryUpdate = "memory.update", - MemoryDelete = "memory.delete", - MemoryStatistics = "memory.statistics", - MemoryAssetCreate = "memoryAsset.create", - MemoryAssetDelete = "memoryAsset.delete", - NotificationCreate = "notification.create", - NotificationRead = "notification.read", - NotificationUpdate = "notification.update", - NotificationDelete = "notification.delete", - PartnerCreate = "partner.create", - PartnerRead = "partner.read", - PartnerUpdate = "partner.update", - PartnerDelete = "partner.delete", - PersonCreate = "person.create", - PersonRead = "person.read", - PersonUpdate = "person.update", - PersonDelete = "person.delete", - PersonStatistics = "person.statistics", - PersonMerge = "person.merge", - PersonReassign = "person.reassign", - PinCodeCreate = "pinCode.create", - PinCodeUpdate = "pinCode.update", - PinCodeDelete = "pinCode.delete", - PluginCreate = "plugin.create", - PluginRead = "plugin.read", - PluginUpdate = "plugin.update", - PluginDelete = "plugin.delete", - ServerAbout = "server.about", - ServerApkLinks = "server.apkLinks", - ServerStorage = "server.storage", - ServerStatistics = "server.statistics", - ServerVersionCheck = "server.versionCheck", - ServerLicenseRead = "serverLicense.read", - ServerLicenseUpdate = "serverLicense.update", - ServerLicenseDelete = "serverLicense.delete", - SessionCreate = "session.create", - SessionRead = "session.read", - SessionUpdate = "session.update", - SessionDelete = "session.delete", - SessionLock = "session.lock", - SharedLinkCreate = "sharedLink.create", - SharedLinkRead = "sharedLink.read", - SharedLinkUpdate = "sharedLink.update", - SharedLinkDelete = "sharedLink.delete", - StackCreate = "stack.create", - StackRead = "stack.read", - StackUpdate = "stack.update", - StackDelete = "stack.delete", - SyncStream = "sync.stream", - SyncCheckpointRead = "syncCheckpoint.read", - SyncCheckpointUpdate = "syncCheckpoint.update", - SyncCheckpointDelete = "syncCheckpoint.delete", - SystemConfigRead = "systemConfig.read", - SystemConfigUpdate = "systemConfig.update", - SystemMetadataRead = "systemMetadata.read", - SystemMetadataUpdate = "systemMetadata.update", - TagCreate = "tag.create", - TagRead = "tag.read", - TagUpdate = "tag.update", - TagDelete = "tag.delete", - TagAsset = "tag.asset", - UserRead = "user.read", - UserUpdate = "user.update", - UserLicenseCreate = "userLicense.create", - UserLicenseRead = "userLicense.read", - UserLicenseUpdate = "userLicense.update", - UserLicenseDelete = "userLicense.delete", - UserOnboardingRead = "userOnboarding.read", - UserOnboardingUpdate = "userOnboarding.update", - UserOnboardingDelete = "userOnboarding.delete", - UserPreferenceRead = "userPreference.read", - UserPreferenceUpdate = "userPreference.update", - UserProfileImageCreate = "userProfileImage.create", - UserProfileImageRead = "userProfileImage.read", - UserProfileImageUpdate = "userProfileImage.update", - UserProfileImageDelete = "userProfileImage.delete", - QueueRead = "queue.read", - QueueUpdate = "queue.update", - QueueJobCreate = "queueJob.create", - QueueJobRead = "queueJob.read", - QueueJobUpdate = "queueJob.update", - QueueJobDelete = "queueJob.delete", - WorkflowCreate = "workflow.create", - WorkflowRead = "workflow.read", - WorkflowUpdate = "workflow.update", - WorkflowDelete = "workflow.delete", - AdminUserCreate = "adminUser.create", - AdminUserRead = "adminUser.read", - AdminUserUpdate = "adminUser.update", - AdminUserDelete = "adminUser.delete", - AdminSessionRead = "adminSession.read", - AdminAuthUnlinkAll = "adminAuth.unlinkAll" -} -export declare enum AssetMediaStatus { - Created = "created", - Duplicate = "duplicate" -} -export declare enum AssetUploadAction { - Accept = "accept", - Reject = "reject" -} -export declare enum AssetRejectReason { - Duplicate = "duplicate", - UnsupportedFormat = "unsupported-format" -} -export declare enum AssetJobName { - RefreshFaces = "refresh-faces", - RefreshMetadata = "refresh-metadata", - RegenerateThumbnail = "regenerate-thumbnail", - TranscodeVideo = "transcode-video" -} -export declare enum SourceType { - MachineLearning = "machine-learning", - Exif = "exif", - Manual = "manual" -} -export declare enum AssetTypeEnum { - Image = "IMAGE", - Video = "VIDEO", - Audio = "AUDIO", - Other = "OTHER" -} -export declare enum AssetEditAction { - Crop = "crop", - Rotate = "rotate", - Mirror = "mirror" -} -export declare enum MirrorAxis { - Horizontal = "horizontal", - Vertical = "vertical" -} -export declare enum AssetMediaSize { - Original = "original", - Fullsize = "fullsize", - Preview = "preview", - Thumbnail = "thumbnail" -} -export declare enum ManualJobName { - PersonCleanup = "person-cleanup", - TagCleanup = "tag-cleanup", - UserCleanup = "user-cleanup", - MemoryCleanup = "memory-cleanup", - MemoryCreate = "memory-create", - BackupDatabase = "backup-database" -} -export declare enum QueueName { - ThumbnailGeneration = "thumbnailGeneration", - MetadataExtraction = "metadataExtraction", - VideoConversion = "videoConversion", - FaceDetection = "faceDetection", - FacialRecognition = "facialRecognition", - SmartSearch = "smartSearch", - DuplicateDetection = "duplicateDetection", - BackgroundTask = "backgroundTask", - StorageTemplateMigration = "storageTemplateMigration", - Migration = "migration", - Search = "search", - Sidecar = "sidecar", - Library = "library", - Notifications = "notifications", - BackupDatabase = "backupDatabase", - Ocr = "ocr", - Workflow = "workflow", - Editor = "editor" -} -export declare enum QueueCommand { - Start = "start", - Pause = "pause", - Resume = "resume", - Empty = "empty", - ClearFailed = "clear-failed" -} -export declare enum MemorySearchOrder { - Asc = "asc", - Desc = "desc", - Random = "random" -} -export declare enum MemoryType { - OnThisDay = "on_this_day" -} -export declare enum PartnerDirection { - SharedBy = "shared-by", - SharedWith = "shared-with" -} -export declare enum PluginJsonSchemaType { - String = "string", - Number = "number", - Integer = "integer", - Boolean = "boolean", - Object = "object", - Array = "array", - Null = "null" -} -export declare enum PluginContextType { - Asset = "asset", - Album = "album", - Person = "person" -} -export declare enum PluginTriggerType { - AssetCreate = "AssetCreate", - PersonRecognized = "PersonRecognized" -} -export declare enum QueueJobStatus { - Active = "active", - Failed = "failed", - Completed = "completed", - Delayed = "delayed", - Waiting = "waiting", - Paused = "paused" -} -export declare enum JobName { - AssetDelete = "AssetDelete", - AssetDeleteCheck = "AssetDeleteCheck", - AssetDetectFacesQueueAll = "AssetDetectFacesQueueAll", - AssetDetectFaces = "AssetDetectFaces", - AssetDetectDuplicatesQueueAll = "AssetDetectDuplicatesQueueAll", - AssetDetectDuplicates = "AssetDetectDuplicates", - AssetEditThumbnailGeneration = "AssetEditThumbnailGeneration", - AssetEncodeVideoQueueAll = "AssetEncodeVideoQueueAll", - AssetEncodeVideo = "AssetEncodeVideo", - AssetEmptyTrash = "AssetEmptyTrash", - AssetExtractMetadataQueueAll = "AssetExtractMetadataQueueAll", - AssetExtractMetadata = "AssetExtractMetadata", - AssetFileMigration = "AssetFileMigration", - AssetGenerateThumbnailsQueueAll = "AssetGenerateThumbnailsQueueAll", - AssetGenerateThumbnails = "AssetGenerateThumbnails", - AuditTableCleanup = "AuditTableCleanup", - DatabaseBackup = "DatabaseBackup", - FacialRecognitionQueueAll = "FacialRecognitionQueueAll", - FacialRecognition = "FacialRecognition", - FileDelete = "FileDelete", - FileMigrationQueueAll = "FileMigrationQueueAll", - LibraryDeleteCheck = "LibraryDeleteCheck", - LibraryDelete = "LibraryDelete", - LibraryRemoveAsset = "LibraryRemoveAsset", - LibraryScanAssetsQueueAll = "LibraryScanAssetsQueueAll", - LibrarySyncAssets = "LibrarySyncAssets", - LibrarySyncFilesQueueAll = "LibrarySyncFilesQueueAll", - LibrarySyncFiles = "LibrarySyncFiles", - LibraryScanQueueAll = "LibraryScanQueueAll", - MemoryCleanup = "MemoryCleanup", - MemoryGenerate = "MemoryGenerate", - NotificationsCleanup = "NotificationsCleanup", - NotifyUserSignup = "NotifyUserSignup", - NotifyAlbumInvite = "NotifyAlbumInvite", - NotifyAlbumUpdate = "NotifyAlbumUpdate", - UserDelete = "UserDelete", - UserDeleteCheck = "UserDeleteCheck", - UserSyncUsage = "UserSyncUsage", - PersonCleanup = "PersonCleanup", - PersonFileMigration = "PersonFileMigration", - PersonGenerateThumbnail = "PersonGenerateThumbnail", - SessionCleanup = "SessionCleanup", - SendMail = "SendMail", - SidecarQueueAll = "SidecarQueueAll", - SidecarCheck = "SidecarCheck", - SidecarWrite = "SidecarWrite", - SmartSearchQueueAll = "SmartSearchQueueAll", - SmartSearch = "SmartSearch", - StorageTemplateMigration = "StorageTemplateMigration", - StorageTemplateMigrationSingle = "StorageTemplateMigrationSingle", - TagCleanup = "TagCleanup", - VersionCheck = "VersionCheck", - OcrQueueAll = "OcrQueueAll", - Ocr = "Ocr", - WorkflowRun = "WorkflowRun" -} -export declare enum SearchSuggestionType { - Country = "country", - State = "state", - City = "city", - CameraMake = "camera-make", - CameraModel = "camera-model", - CameraLensModel = "camera-lens-model" -} -export declare enum SharedLinkType { - Album = "ALBUM", - Individual = "INDIVIDUAL" -} -export declare enum AssetIdErrorReason { - Duplicate = "duplicate", - NoPermission = "no_permission", - NotFound = "not_found" -} -export declare enum SyncEntityType { - AuthUserV1 = "AuthUserV1", - UserV1 = "UserV1", - UserDeleteV1 = "UserDeleteV1", - AssetV1 = "AssetV1", - AssetV2 = "AssetV2", - AssetDeleteV1 = "AssetDeleteV1", - AssetExifV1 = "AssetExifV1", - AssetEditV1 = "AssetEditV1", - AssetEditDeleteV1 = "AssetEditDeleteV1", - AssetMetadataV1 = "AssetMetadataV1", - AssetMetadataDeleteV1 = "AssetMetadataDeleteV1", - PartnerV1 = "PartnerV1", - PartnerDeleteV1 = "PartnerDeleteV1", - PartnerAssetV1 = "PartnerAssetV1", - PartnerAssetV2 = "PartnerAssetV2", - PartnerAssetBackfillV1 = "PartnerAssetBackfillV1", - PartnerAssetBackfillV2 = "PartnerAssetBackfillV2", - PartnerAssetDeleteV1 = "PartnerAssetDeleteV1", - PartnerAssetExifV1 = "PartnerAssetExifV1", - PartnerAssetExifBackfillV1 = "PartnerAssetExifBackfillV1", - PartnerStackBackfillV1 = "PartnerStackBackfillV1", - PartnerStackDeleteV1 = "PartnerStackDeleteV1", - PartnerStackV1 = "PartnerStackV1", - AlbumV1 = "AlbumV1", - AlbumV2 = "AlbumV2", - AlbumDeleteV1 = "AlbumDeleteV1", - AlbumUserV1 = "AlbumUserV1", - AlbumUserBackfillV1 = "AlbumUserBackfillV1", - AlbumUserDeleteV1 = "AlbumUserDeleteV1", - AlbumAssetCreateV1 = "AlbumAssetCreateV1", - AlbumAssetCreateV2 = "AlbumAssetCreateV2", - AlbumAssetUpdateV1 = "AlbumAssetUpdateV1", - AlbumAssetUpdateV2 = "AlbumAssetUpdateV2", - AlbumAssetBackfillV1 = "AlbumAssetBackfillV1", - AlbumAssetBackfillV2 = "AlbumAssetBackfillV2", - AlbumAssetExifCreateV1 = "AlbumAssetExifCreateV1", - AlbumAssetExifUpdateV1 = "AlbumAssetExifUpdateV1", - AlbumAssetExifBackfillV1 = "AlbumAssetExifBackfillV1", - AlbumToAssetV1 = "AlbumToAssetV1", - AlbumToAssetDeleteV1 = "AlbumToAssetDeleteV1", - AlbumToAssetBackfillV1 = "AlbumToAssetBackfillV1", - MemoryV1 = "MemoryV1", - MemoryDeleteV1 = "MemoryDeleteV1", - MemoryToAssetV1 = "MemoryToAssetV1", - MemoryToAssetDeleteV1 = "MemoryToAssetDeleteV1", - StackV1 = "StackV1", - StackDeleteV1 = "StackDeleteV1", - PersonV1 = "PersonV1", - PersonDeleteV1 = "PersonDeleteV1", - AssetFaceV1 = "AssetFaceV1", - AssetFaceV2 = "AssetFaceV2", - AssetFaceDeleteV1 = "AssetFaceDeleteV1", - UserMetadataV1 = "UserMetadataV1", - UserMetadataDeleteV1 = "UserMetadataDeleteV1", - SyncAckV1 = "SyncAckV1", - SyncResetV1 = "SyncResetV1", - SyncCompleteV1 = "SyncCompleteV1" -} -export declare enum SyncRequestType { - AlbumsV1 = "AlbumsV1", - AlbumsV2 = "AlbumsV2", - AlbumUsersV1 = "AlbumUsersV1", - AlbumToAssetsV1 = "AlbumToAssetsV1", - AlbumAssetsV1 = "AlbumAssetsV1", - AlbumAssetsV2 = "AlbumAssetsV2", - AlbumAssetExifsV1 = "AlbumAssetExifsV1", - AssetsV1 = "AssetsV1", - AssetsV2 = "AssetsV2", - AssetExifsV1 = "AssetExifsV1", - AssetEditsV1 = "AssetEditsV1", - AssetMetadataV1 = "AssetMetadataV1", - AuthUsersV1 = "AuthUsersV1", - MemoriesV1 = "MemoriesV1", - MemoryToAssetsV1 = "MemoryToAssetsV1", - PartnersV1 = "PartnersV1", - PartnerAssetsV1 = "PartnerAssetsV1", - PartnerAssetsV2 = "PartnerAssetsV2", - PartnerAssetExifsV1 = "PartnerAssetExifsV1", - PartnerStacksV1 = "PartnerStacksV1", - StacksV1 = "StacksV1", - UsersV1 = "UsersV1", - PeopleV1 = "PeopleV1", - AssetFacesV1 = "AssetFacesV1", - AssetFacesV2 = "AssetFacesV2", - UserMetadataV1 = "UserMetadataV1" -} -export declare enum TranscodeHWAccel { - Nvenc = "nvenc", - Qsv = "qsv", - Vaapi = "vaapi", - Rkmpp = "rkmpp", - Disabled = "disabled" -} -export declare enum AudioCodec { - Mp3 = "mp3", - Aac = "aac", - Libopus = "libopus", - Opus = "opus", - PcmS16Le = "pcm_s16le" -} -export declare enum VideoContainer { - Mov = "mov", - Mp4 = "mp4", - Ogg = "ogg", - Webm = "webm" -} -export declare enum VideoCodec { - H264 = "h264", - Hevc = "hevc", - Vp9 = "vp9", - Av1 = "av1" -} -export declare enum CQMode { - Auto = "auto", - Cqp = "cqp", - Icq = "icq" -} -export declare enum ToneMapping { - Hable = "hable", - Mobius = "mobius", - Reinhard = "reinhard", - Disabled = "disabled" -} -export declare enum TranscodePolicy { - All = "all", - Optimal = "optimal", - Bitrate = "bitrate", - Required = "required", - Disabled = "disabled" -} -export declare enum Colorspace { - Srgb = "srgb", - P3 = "p3" -} -export declare enum ImageFormat { - Jpeg = "jpeg", - Webp = "webp" -} -export declare enum LogLevel { - Verbose = "verbose", - Debug = "debug", - Log = "log", - Warn = "warn", - Error = "error", - Fatal = "fatal" -} -export declare enum OAuthTokenEndpointAuthMethod { - ClientSecretPost = "client_secret_post", - ClientSecretBasic = "client_secret_basic" -} -export declare enum BackendType { - Yucca = "yucca", - Local = "local", - S3 = "s3" -} -export declare enum RunStatus { - Incomplete = "incomplete", - Complete = "complete", - Failed = "failed" -} -export declare enum RunType { - Schedule = "schedule", - Restore = "restore", - Backup = "backup", - Forget = "forget" -} -export declare enum TaskStatus { - Incomplete = "incomplete", - Complete = "complete", - Failed = "failed" -} -export declare enum TaskType { - Schedule = "schedule", - Restore = "restore", - Backup = "backup", - Forget = "forget" -} -export declare enum UserMetadataKey { - Preferences = "preferences", - License = "license", - Onboarding = "onboarding" -} diff --git a/open-api/typescript-sdk/build/fetch-client.js b/open-api/typescript-sdk/build/fetch-client.js deleted file mode 100644 index b316ff095c..0000000000 --- a/open-api/typescript-sdk/build/fetch-client.js +++ /dev/null @@ -1,3249 +0,0 @@ -/** - * Immich - * 3.0.0 - * DO NOT MODIFY - This file has been generated using oazapfts. - * See https://www.npmjs.com/package/oazapfts - */ -import * as Oazapfts from "@oazapfts/runtime"; -import * as QS from "@oazapfts/runtime/query"; -export const defaults = { - headers: {}, - baseUrl: "/api" -}; -const oazapfts = Oazapfts.runtime(defaults); -export const servers = { - server1: "/api" -}; -/** - * List all activities - */ -export function getActivities({ albumId, assetId, level, $type, userId }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/activities${QS.query(QS.explode({ - albumId, - assetId, - level, - "type": $type, - userId - }))}`, { - ...opts - })); -} -/** - * Create an activity - */ -export function createActivity({ activityCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/activities", oazapfts.json({ - ...opts, - method: "POST", - body: activityCreateDto - }))); -} -/** - * Retrieve activity statistics - */ -export function getActivityStatistics({ albumId, assetId }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/activities/statistics${QS.query(QS.explode({ - albumId, - assetId - }))}`, { - ...opts - })); -} -/** - * Delete an activity - */ -export function deleteActivity({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/activities/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Unlink all OAuth accounts - */ -export function unlinkAllOAuthAccountsAdmin(opts) { - return oazapfts.ok(oazapfts.fetchText("/admin/auth/unlink-all", { - ...opts, - method: "POST" - })); -} -/** - * Delete database backup - */ -export function deleteDatabaseBackup({ databaseBackupDeleteDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/admin/database-backups", oazapfts.json({ - ...opts, - method: "DELETE", - body: databaseBackupDeleteDto - }))); -} -/** - * List database backups - */ -export function listDatabaseBackups(opts) { - return oazapfts.ok(oazapfts.fetchJson("/admin/database-backups", { - ...opts - })); -} -/** - * Start database backup restore flow - */ -export function startDatabaseRestoreFlow(opts) { - return oazapfts.ok(oazapfts.fetchText("/admin/database-backups/start-restore", { - ...opts, - method: "POST" - })); -} -/** - * Upload database backup - */ -export function uploadDatabaseBackup({ databaseBackupUploadDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/admin/database-backups/upload", oazapfts.multipart({ - ...opts, - method: "POST", - body: databaseBackupUploadDto - }))); -} -/** - * Download database backup - */ -export function downloadDatabaseBackup({ filename }, opts) { - return oazapfts.ok(oazapfts.fetchBlob(`/admin/database-backups/${encodeURIComponent(filename)}`, { - ...opts - })); -} -/** - * Set maintenance mode - */ -export function setMaintenanceMode({ setMaintenanceModeDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/admin/maintenance", oazapfts.json({ - ...opts, - method: "POST", - body: setMaintenanceModeDto - }))); -} -/** - * Detect existing install - */ -export function detectPriorInstall(opts) { - return oazapfts.ok(oazapfts.fetchJson("/admin/maintenance/detect-install", { - ...opts - })); -} -/** - * Log into maintenance mode - */ -export function maintenanceLogin({ maintenanceLoginDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/admin/maintenance/login", oazapfts.json({ - ...opts, - method: "POST", - body: maintenanceLoginDto - }))); -} -/** - * Get maintenance mode status - */ -export function getMaintenanceStatus(opts) { - return oazapfts.ok(oazapfts.fetchJson("/admin/maintenance/status", { - ...opts - })); -} -/** - * Create a notification - */ -export function createNotification({ notificationCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/admin/notifications", oazapfts.json({ - ...opts, - method: "POST", - body: notificationCreateDto - }))); -} -/** - * Render email template - */ -export function getNotificationTemplateAdmin({ name, templateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/notifications/templates/${encodeURIComponent(name)}`, oazapfts.json({ - ...opts, - method: "POST", - body: templateDto - }))); -} -/** - * Send test email - */ -export function sendTestEmailAdmin({ systemConfigSmtpDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/admin/notifications/test-email", oazapfts.json({ - ...opts, - method: "POST", - body: systemConfigSmtpDto - }))); -} -/** - * Search users - */ -export function searchUsersAdmin({ id, withDeleted }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users${QS.query(QS.explode({ - id, - withDeleted - }))}`, { - ...opts - })); -} -/** - * Create a user - */ -export function createUserAdmin({ userAdminCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/admin/users", oazapfts.json({ - ...opts, - method: "POST", - body: userAdminCreateDto - }))); -} -/** - * Delete a user - */ -export function deleteUserAdmin({ id, userAdminDeleteDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "DELETE", - body: userAdminDeleteDto - }))); -} -/** - * Retrieve a user - */ -export function getUserAdmin({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update a user - */ -export function updateUserAdmin({ id, userAdminUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: userAdminUpdateDto - }))); -} -/** - * Retrieve user preferences - */ -export function getUserPreferencesAdmin({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}/preferences`, { - ...opts - })); -} -/** - * Update user preferences - */ -export function updateUserPreferencesAdmin({ id, userPreferencesUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}/preferences`, oazapfts.json({ - ...opts, - method: "PUT", - body: userPreferencesUpdateDto - }))); -} -/** - * Restore a deleted user - */ -export function restoreUserAdmin({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}/restore`, { - ...opts, - method: "POST" - })); -} -/** - * Retrieve user sessions - */ -export function getUserSessionsAdmin({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}/sessions`, { - ...opts - })); -} -/** - * Retrieve user statistics - */ -export function getUserStatisticsAdmin({ id, isFavorite, isTrashed, visibility }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}/statistics${QS.query(QS.explode({ - isFavorite, - isTrashed, - visibility - }))}`, { - ...opts - })); -} -/** - * List all albums - */ -export function getAllAlbums({ assetId, isOwned, isShared }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/albums${QS.query(QS.explode({ - assetId, - isOwned, - isShared - }))}`, { - ...opts - })); -} -/** - * Create an album - */ -export function createAlbum({ createAlbumDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/albums", oazapfts.json({ - ...opts, - method: "POST", - body: createAlbumDto - }))); -} -/** - * Add assets to albums - */ -export function addAssetsToAlbums({ albumsAddAssetsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/albums/assets", oazapfts.json({ - ...opts, - method: "PUT", - body: albumsAddAssetsDto - }))); -} -/** - * Retrieve album statistics - */ -export function getAlbumStatistics(opts) { - return oazapfts.ok(oazapfts.fetchJson("/albums/statistics", { - ...opts - })); -} -/** - * Delete an album - */ -export function deleteAlbum({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/albums/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve an album - */ -export function getAlbumInfo({ id, key, slug }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}${QS.query(QS.explode({ - key, - slug - }))}`, { - ...opts - })); -} -/** - * Update an album - */ -export function updateAlbumInfo({ id, updateAlbumDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PATCH", - body: updateAlbumDto - }))); -} -/** - * Remove assets from an album - */ -export function removeAssetFromAlbum({ id, bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}/assets`, oazapfts.json({ - ...opts, - method: "DELETE", - body: bulkIdsDto - }))); -} -/** - * Add assets to an album - */ -export function addAssetsToAlbum({ id, bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}/assets`, oazapfts.json({ - ...opts, - method: "PUT", - body: bulkIdsDto - }))); -} -/** - * Retrieve album map markers - */ -export function getAlbumMapMarkers({ id, key, slug }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}/map-markers${QS.query(QS.explode({ - key, - slug - }))}`, { - ...opts - })); -} -/** - * Remove user from album - */ -export function removeUserFromAlbum({ id, userId }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/albums/${encodeURIComponent(id)}/user/${encodeURIComponent(userId)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Update user role - */ -export function updateAlbumUser({ id, userId, updateAlbumUserDto }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/albums/${encodeURIComponent(id)}/user/${encodeURIComponent(userId)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: updateAlbumUserDto - }))); -} -/** - * Share album with users - */ -export function addUsersToAlbum({ id, addUsersDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}/users`, oazapfts.json({ - ...opts, - method: "PUT", - body: addUsersDto - }))); -} -/** - * List all API keys - */ -export function getApiKeys(opts) { - return oazapfts.ok(oazapfts.fetchJson("/api-keys", { - ...opts - })); -} -/** - * Create an API key - */ -export function createApiKey({ apiKeyCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/api-keys", oazapfts.json({ - ...opts, - method: "POST", - body: apiKeyCreateDto - }))); -} -/** - * Retrieve the current API key - */ -export function getMyApiKey(opts) { - return oazapfts.ok(oazapfts.fetchJson("/api-keys/me", { - ...opts - })); -} -/** - * Delete an API key - */ -export function deleteApiKey({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/api-keys/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve an API key - */ -export function getApiKey({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/api-keys/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update an API key - */ -export function updateApiKey({ id, apiKeyUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/api-keys/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: apiKeyUpdateDto - }))); -} -/** - * Delete assets - */ -export function deleteAssets({ assetBulkDeleteDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/assets", oazapfts.json({ - ...opts, - method: "DELETE", - body: assetBulkDeleteDto - }))); -} -/** - * Upload asset - */ -export function uploadAsset({ key, slug, xImmichChecksum, assetMediaCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets${QS.query(QS.explode({ - key, - slug - }))}`, oazapfts.multipart({ - ...opts, - method: "POST", - body: assetMediaCreateDto, - headers: oazapfts.mergeHeaders(opts?.headers, { - "x-immich-checksum": xImmichChecksum - }) - }))); -} -/** - * Update assets - */ -export function updateAssets({ assetBulkUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/assets", oazapfts.json({ - ...opts, - method: "PUT", - body: assetBulkUpdateDto - }))); -} -/** - * Check bulk upload - */ -export function checkBulkUpload({ assetBulkUploadCheckDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/assets/bulk-upload-check", oazapfts.json({ - ...opts, - method: "POST", - body: assetBulkUploadCheckDto - }))); -} -/** - * Copy asset - */ -export function copyAsset({ assetCopyDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/assets/copy", oazapfts.json({ - ...opts, - method: "PUT", - body: assetCopyDto - }))); -} -/** - * Run an asset job - */ -export function runAssetJobs({ assetJobsDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/assets/jobs", oazapfts.json({ - ...opts, - method: "POST", - body: assetJobsDto - }))); -} -/** - * Delete asset metadata - */ -export function deleteBulkAssetMetadata({ assetMetadataBulkDeleteDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/assets/metadata", oazapfts.json({ - ...opts, - method: "DELETE", - body: assetMetadataBulkDeleteDto - }))); -} -/** - * Upsert asset metadata - */ -export function updateBulkAssetMetadata({ assetMetadataBulkUpsertDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/assets/metadata", oazapfts.json({ - ...opts, - method: "PUT", - body: assetMetadataBulkUpsertDto - }))); -} -/** - * Get asset statistics - */ -export function getAssetStatistics({ isFavorite, isTrashed, visibility }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/statistics${QS.query(QS.explode({ - isFavorite, - isTrashed, - visibility - }))}`, { - ...opts - })); -} -/** - * Retrieve an asset - */ -export function getAssetInfo({ id, key, slug }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}${QS.query(QS.explode({ - key, - slug - }))}`, { - ...opts - })); -} -/** - * Update an asset - */ -export function updateAsset({ id, updateAssetDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: updateAssetDto - }))); -} -/** - * Remove edits from an existing asset - */ -export function removeAssetEdits({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/assets/${encodeURIComponent(id)}/edits`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve edits for an existing asset - */ -export function getAssetEdits({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/edits`, { - ...opts - })); -} -/** - * Apply edits to an existing asset - */ -export function editAsset({ id, assetEditsCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/edits`, oazapfts.json({ - ...opts, - method: "PUT", - body: assetEditsCreateDto - }))); -} -/** - * Get asset metadata - */ -export function getAssetMetadata({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/metadata`, { - ...opts - })); -} -/** - * Update asset metadata - */ -export function updateAssetMetadata({ id, assetMetadataUpsertDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/metadata`, oazapfts.json({ - ...opts, - method: "PUT", - body: assetMetadataUpsertDto - }))); -} -/** - * Delete asset metadata by key - */ -export function deleteAssetMetadata({ id, key }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/assets/${encodeURIComponent(id)}/metadata/${encodeURIComponent(key)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve asset metadata by key - */ -export function getAssetMetadataByKey({ id, key }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/metadata/${encodeURIComponent(key)}`, { - ...opts - })); -} -/** - * Retrieve asset OCR data - */ -export function getAssetOcr({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/ocr`, { - ...opts - })); -} -/** - * Download original asset - */ -export function downloadAsset({ edited, id, key, slug }, opts) { - return oazapfts.ok(oazapfts.fetchBlob(`/assets/${encodeURIComponent(id)}/original${QS.query(QS.explode({ - edited, - key, - slug - }))}`, { - ...opts - })); -} -/** - * View asset thumbnail - */ -export function viewAsset({ edited, id, key, size, slug }, opts) { - return oazapfts.ok(oazapfts.fetchBlob(`/assets/${encodeURIComponent(id)}/thumbnail${QS.query(QS.explode({ - edited, - key, - size, - slug - }))}`, { - ...opts - })); -} -/** - * Play asset video - */ -export function playAssetVideo({ id, key, slug }, opts) { - return oazapfts.ok(oazapfts.fetchBlob(`/assets/${encodeURIComponent(id)}/video/playback${QS.query(QS.explode({ - key, - slug - }))}`, { - ...opts - })); -} -/** - * Register admin - */ -export function signUpAdmin({ signUpDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/auth/admin-sign-up", oazapfts.json({ - ...opts, - method: "POST", - body: signUpDto - }))); -} -/** - * Change password - */ -export function changePassword({ changePasswordDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/auth/change-password", oazapfts.json({ - ...opts, - method: "POST", - body: changePasswordDto - }))); -} -/** - * Login - */ -export function login({ loginCredentialDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/auth/login", oazapfts.json({ - ...opts, - method: "POST", - body: loginCredentialDto - }))); -} -/** - * Logout - */ -export function logout(opts) { - return oazapfts.ok(oazapfts.fetchJson("/auth/logout", { - ...opts, - method: "POST" - })); -} -/** - * Reset pin code - */ -export function resetPinCode({ pinCodeResetDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/auth/pin-code", oazapfts.json({ - ...opts, - method: "DELETE", - body: pinCodeResetDto - }))); -} -/** - * Setup pin code - */ -export function setupPinCode({ pinCodeSetupDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/auth/pin-code", oazapfts.json({ - ...opts, - method: "POST", - body: pinCodeSetupDto - }))); -} -/** - * Change pin code - */ -export function changePinCode({ pinCodeChangeDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/auth/pin-code", oazapfts.json({ - ...opts, - method: "PUT", - body: pinCodeChangeDto - }))); -} -/** - * Lock auth session - */ -export function lockAuthSession(opts) { - return oazapfts.ok(oazapfts.fetchText("/auth/session/lock", { - ...opts, - method: "POST" - })); -} -/** - * Unlock auth session - */ -export function unlockAuthSession({ sessionUnlockDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/auth/session/unlock", oazapfts.json({ - ...opts, - method: "POST", - body: sessionUnlockDto - }))); -} -/** - * Retrieve auth status - */ -export function getAuthStatus(opts) { - return oazapfts.ok(oazapfts.fetchJson("/auth/status", { - ...opts - })); -} -/** - * Validate access token - */ -export function validateAccessToken(opts) { - return oazapfts.ok(oazapfts.fetchJson("/auth/validateToken", { - ...opts, - method: "POST" - })); -} -/** - * Download asset archive - */ -export function downloadArchive({ key, slug, downloadArchiveDto }, opts) { - return oazapfts.ok(oazapfts.fetchBlob(`/download/archive${QS.query(QS.explode({ - key, - slug - }))}`, oazapfts.json({ - ...opts, - method: "POST", - body: downloadArchiveDto - }))); -} -/** - * Retrieve download information - */ -export function getDownloadInfo({ key, slug, downloadInfoDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/download/info${QS.query(QS.explode({ - key, - slug - }))}`, oazapfts.json({ - ...opts, - method: "POST", - body: downloadInfoDto - }))); -} -/** - * Delete duplicates - */ -export function deleteDuplicates({ bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/duplicates", oazapfts.json({ - ...opts, - method: "DELETE", - body: bulkIdsDto - }))); -} -/** - * Retrieve duplicates - */ -export function getAssetDuplicates(opts) { - return oazapfts.ok(oazapfts.fetchJson("/duplicates", { - ...opts - })); -} -/** - * Resolve duplicate groups - */ -export function resolveDuplicates({ duplicateResolveDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/duplicates/resolve", oazapfts.json({ - ...opts, - method: "POST", - body: duplicateResolveDto - }))); -} -/** - * Dismiss a duplicate group - */ -export function deleteDuplicate({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/duplicates/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve faces for asset - */ -export function getFaces({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/faces${QS.query(QS.explode({ - id - }))}`, { - ...opts - })); -} -/** - * Create a face - */ -export function createFace({ assetFaceCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/faces", oazapfts.json({ - ...opts, - method: "POST", - body: assetFaceCreateDto - }))); -} -/** - * Delete a face - */ -export function deleteFace({ id, assetFaceDeleteDto }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/faces/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "DELETE", - body: assetFaceDeleteDto - }))); -} -/** - * Re-assign a face to another person - */ -export function reassignFacesById({ id, faceDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/faces/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: faceDto - }))); -} -/** - * Retrieve queue counts and status - */ -export function getQueuesLegacy(opts) { - return oazapfts.ok(oazapfts.fetchJson("/jobs", { - ...opts - })); -} -/** - * Create a manual job - */ -export function createJob({ jobCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/jobs", oazapfts.json({ - ...opts, - method: "POST", - body: jobCreateDto - }))); -} -/** - * Run jobs - */ -export function runQueueCommandLegacy({ name, queueCommandDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/jobs/${encodeURIComponent(name)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: queueCommandDto - }))); -} -/** - * Retrieve libraries - */ -export function getAllLibraries(opts) { - return oazapfts.ok(oazapfts.fetchJson("/libraries", { - ...opts - })); -} -/** - * Create a library - */ -export function createLibrary({ createLibraryDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/libraries", oazapfts.json({ - ...opts, - method: "POST", - body: createLibraryDto - }))); -} -/** - * Delete a library - */ -export function deleteLibrary({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/libraries/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve a library - */ -export function getLibrary({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/libraries/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update a library - */ -export function updateLibrary({ id, updateLibraryDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/libraries/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: updateLibraryDto - }))); -} -/** - * Scan a library - */ -export function scanLibrary({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/libraries/${encodeURIComponent(id)}/scan`, { - ...opts, - method: "POST" - })); -} -/** - * Retrieve library statistics - */ -export function getLibraryStatistics({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/libraries/${encodeURIComponent(id)}/statistics`, { - ...opts - })); -} -/** - * Validate library settings - */ -export function validate({ id, validateLibraryDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/libraries/${encodeURIComponent(id)}/validate`, oazapfts.json({ - ...opts, - method: "POST", - body: validateLibraryDto - }))); -} -/** - * Retrieve map markers - */ -export function getMapMarkers({ fileCreatedAfter, fileCreatedBefore, isArchived, isFavorite, withPartners, withSharedAlbums }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/map/markers${QS.query(QS.explode({ - fileCreatedAfter, - fileCreatedBefore, - isArchived, - isFavorite, - withPartners, - withSharedAlbums - }))}`, { - ...opts - })); -} -/** - * Reverse geocode coordinates - */ -export function reverseGeocode({ lat, lon }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/map/reverse-geocode${QS.query(QS.explode({ - lat, - lon - }))}`, { - ...opts - })); -} -/** - * Retrieve memories - */ -export function searchMemories({ $for, isSaved, isTrashed, order, size, $type }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/memories${QS.query(QS.explode({ - "for": $for, - isSaved, - isTrashed, - order, - size, - "type": $type - }))}`, { - ...opts - })); -} -/** - * Create a memory - */ -export function createMemory({ memoryCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/memories", oazapfts.json({ - ...opts, - method: "POST", - body: memoryCreateDto - }))); -} -/** - * Retrieve memories statistics - */ -export function memoriesStatistics({ $for, isSaved, isTrashed, order, size, $type }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/memories/statistics${QS.query(QS.explode({ - "for": $for, - isSaved, - isTrashed, - order, - size, - "type": $type - }))}`, { - ...opts - })); -} -/** - * Delete a memory - */ -export function deleteMemory({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/memories/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve a memory - */ -export function getMemory({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/memories/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update a memory - */ -export function updateMemory({ id, memoryUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/memories/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: memoryUpdateDto - }))); -} -/** - * Remove assets from a memory - */ -export function removeMemoryAssets({ id, bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/memories/${encodeURIComponent(id)}/assets`, oazapfts.json({ - ...opts, - method: "DELETE", - body: bulkIdsDto - }))); -} -/** - * Add assets to a memory - */ -export function addMemoryAssets({ id, bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/memories/${encodeURIComponent(id)}/assets`, oazapfts.json({ - ...opts, - method: "PUT", - body: bulkIdsDto - }))); -} -/** - * Delete notifications - */ -export function deleteNotifications({ notificationDeleteAllDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/notifications", oazapfts.json({ - ...opts, - method: "DELETE", - body: notificationDeleteAllDto - }))); -} -/** - * Retrieve notifications - */ -export function getNotifications({ id, level, $type, unread }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/notifications${QS.query(QS.explode({ - id, - level, - "type": $type, - unread - }))}`, { - ...opts - })); -} -/** - * Update notifications - */ -export function updateNotifications({ notificationUpdateAllDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/notifications", oazapfts.json({ - ...opts, - method: "PUT", - body: notificationUpdateAllDto - }))); -} -/** - * Delete a notification - */ -export function deleteNotification({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/notifications/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Get a notification - */ -export function getNotification({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/notifications/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update a notification - */ -export function updateNotification({ id, notificationUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/notifications/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: notificationUpdateDto - }))); -} -/** - * Start OAuth - */ -export function startOAuth({ oAuthConfigDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/oauth/authorize", oazapfts.json({ - ...opts, - method: "POST", - body: oAuthConfigDto - }))); -} -/** - * Backchannel OAuth logout - */ -export function logoutOAuth({ oAuthBackchannelLogoutDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/oauth/backchannel-logout", oazapfts.form({ - ...opts, - method: "POST", - body: oAuthBackchannelLogoutDto - }))); -} -/** - * Finish OAuth - */ -export function finishOAuth({ oAuthCallbackDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/oauth/callback", oazapfts.json({ - ...opts, - method: "POST", - body: oAuthCallbackDto - }))); -} -/** - * Link OAuth account - */ -export function linkOAuthAccount({ oAuthCallbackDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/oauth/link", oazapfts.json({ - ...opts, - method: "POST", - body: oAuthCallbackDto - }))); -} -/** - * Redirect OAuth to mobile - */ -export function redirectOAuthToMobile(opts) { - return oazapfts.ok(oazapfts.fetchText("/oauth/mobile-redirect", { - ...opts - })); -} -/** - * Unlink OAuth account - */ -export function unlinkOAuthAccount(opts) { - return oazapfts.ok(oazapfts.fetchJson("/oauth/unlink", { - ...opts, - method: "POST" - })); -} -/** - * Retrieve partners - */ -export function getPartners({ direction }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/partners${QS.query(QS.explode({ - direction - }))}`, { - ...opts - })); -} -/** - * Create a partner - */ -export function createPartner({ partnerCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/partners", oazapfts.json({ - ...opts, - method: "POST", - body: partnerCreateDto - }))); -} -/** - * Remove a partner - */ -export function removePartner({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/partners/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Create a partner - */ -export function createPartnerDeprecated({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/partners/${encodeURIComponent(id)}`, { - ...opts, - method: "POST" - })); -} -/** - * Update a partner - */ -export function updatePartner({ id, partnerUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/partners/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: partnerUpdateDto - }))); -} -/** - * Delete people - */ -export function deletePeople({ bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/people", oazapfts.json({ - ...opts, - method: "DELETE", - body: bulkIdsDto - }))); -} -/** - * Get all people - */ -export function getAllPeople({ closestAssetId, closestPersonId, page, size, withHidden }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/people${QS.query(QS.explode({ - closestAssetId, - closestPersonId, - page, - size, - withHidden - }))}`, { - ...opts - })); -} -/** - * Create a person - */ -export function createPerson({ personCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/people", oazapfts.json({ - ...opts, - method: "POST", - body: personCreateDto - }))); -} -/** - * Update people - */ -export function updatePeople({ peopleUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/people", oazapfts.json({ - ...opts, - method: "PUT", - body: peopleUpdateDto - }))); -} -/** - * Delete person - */ -export function deletePerson({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/people/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Get a person - */ -export function getPerson({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/people/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update person - */ -export function updatePerson({ id, personUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/people/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: personUpdateDto - }))); -} -/** - * Merge people - */ -export function mergePerson({ id, mergePersonDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/people/${encodeURIComponent(id)}/merge`, oazapfts.json({ - ...opts, - method: "POST", - body: mergePersonDto - }))); -} -/** - * Reassign faces - */ -export function reassignFaces({ id, assetFaceUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/people/${encodeURIComponent(id)}/reassign`, oazapfts.json({ - ...opts, - method: "PUT", - body: assetFaceUpdateDto - }))); -} -/** - * Get person statistics - */ -export function getPersonStatistics({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/people/${encodeURIComponent(id)}/statistics`, { - ...opts - })); -} -/** - * Get person thumbnail - */ -export function getPersonThumbnail({ id }, opts) { - return oazapfts.ok(oazapfts.fetchBlob(`/people/${encodeURIComponent(id)}/thumbnail`, { - ...opts - })); -} -/** - * List all plugins - */ -export function getPlugins(opts) { - return oazapfts.ok(oazapfts.fetchJson("/plugins", { - ...opts - })); -} -/** - * List all plugin triggers - */ -export function getPluginTriggers(opts) { - return oazapfts.ok(oazapfts.fetchJson("/plugins/triggers", { - ...opts - })); -} -/** - * Retrieve a plugin - */ -export function getPlugin({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/plugins/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * List all queues - */ -export function getQueues(opts) { - return oazapfts.ok(oazapfts.fetchJson("/queues", { - ...opts - })); -} -/** - * Retrieve a queue - */ -export function getQueue({ name }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/queues/${encodeURIComponent(name)}`, { - ...opts - })); -} -/** - * Update a queue - */ -export function updateQueue({ name, queueUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/queues/${encodeURIComponent(name)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: queueUpdateDto - }))); -} -/** - * Empty a queue - */ -export function emptyQueue({ name, queueDeleteDto }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/queues/${encodeURIComponent(name)}/jobs`, oazapfts.json({ - ...opts, - method: "DELETE", - body: queueDeleteDto - }))); -} -/** - * Retrieve queue jobs - */ -export function getQueueJobs({ name, status }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/queues/${encodeURIComponent(name)}/jobs${QS.query(QS.explode({ - status - }))}`, { - ...opts - })); -} -/** - * Retrieve assets by city - */ -export function getAssetsByCity(opts) { - return oazapfts.ok(oazapfts.fetchJson("/search/cities", { - ...opts - })); -} -/** - * Retrieve explore data - */ -export function getExploreData(opts) { - return oazapfts.ok(oazapfts.fetchJson("/search/explore", { - ...opts - })); -} -/** - * Search large assets - */ -export function searchLargeAssets({ albumIds, city, country, createdAfter, createdBefore, isEncoded, isFavorite, isMotion, isNotInAlbum, isOffline, lensModel, libraryId, make, minFileSize, model, ocr, personIds, rating, size, state, tagIds, takenAfter, takenBefore, trashedAfter, trashedBefore, $type, updatedAfter, updatedBefore, visibility, withDeleted, withExif }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/search/large-assets${QS.query(QS.explode({ - albumIds, - city, - country, - createdAfter, - createdBefore, - isEncoded, - isFavorite, - isMotion, - isNotInAlbum, - isOffline, - lensModel, - libraryId, - make, - minFileSize, - model, - ocr, - personIds, - rating, - size, - state, - tagIds, - takenAfter, - takenBefore, - trashedAfter, - trashedBefore, - "type": $type, - updatedAfter, - updatedBefore, - visibility, - withDeleted, - withExif - }))}`, { - ...opts, - method: "POST" - })); -} -/** - * Search assets by metadata - */ -export function searchAssets({ metadataSearchDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/search/metadata", oazapfts.json({ - ...opts, - method: "POST", - body: metadataSearchDto - }))); -} -/** - * Search people - */ -export function searchPerson({ name, withHidden }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/search/person${QS.query(QS.explode({ - name, - withHidden - }))}`, { - ...opts - })); -} -/** - * Search places - */ -export function searchPlaces({ name }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/search/places${QS.query(QS.explode({ - name - }))}`, { - ...opts - })); -} -/** - * Search random assets - */ -export function searchRandom({ randomSearchDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/search/random", oazapfts.json({ - ...opts, - method: "POST", - body: randomSearchDto - }))); -} -/** - * Smart asset search - */ -export function searchSmart({ smartSearchDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/search/smart", oazapfts.json({ - ...opts, - method: "POST", - body: smartSearchDto - }))); -} -/** - * Search asset statistics - */ -export function searchAssetStatistics({ statisticsSearchDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/search/statistics", oazapfts.json({ - ...opts, - method: "POST", - body: statisticsSearchDto - }))); -} -/** - * Retrieve search suggestions - */ -export function getSearchSuggestions({ country, includeNull, lensModel, make, model, state, $type }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/search/suggestions${QS.query(QS.explode({ - country, - includeNull, - lensModel, - make, - model, - state, - "type": $type - }))}`, { - ...opts - })); -} -/** - * Get server information - */ -export function getAboutInfo(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/about", { - ...opts - })); -} -/** - * Get APK links - */ -export function getApkLinks(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/apk-links", { - ...opts - })); -} -/** - * Get config - */ -export function getServerConfig(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/config", { - ...opts - })); -} -/** - * Get features - */ -export function getServerFeatures(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/features", { - ...opts - })); -} -/** - * Delete server product key - */ -export function deleteServerLicense(opts) { - return oazapfts.ok(oazapfts.fetchText("/server/license", { - ...opts, - method: "DELETE" - })); -} -/** - * Get product key - */ -export function getServerLicense(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/license", { - ...opts - })); -} -/** - * Set server product key - */ -export function setServerLicense({ licenseKeyDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/license", oazapfts.json({ - ...opts, - method: "PUT", - body: licenseKeyDto - }))); -} -/** - * Get supported media types - */ -export function getSupportedMediaTypes(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/media-types", { - ...opts - })); -} -/** - * Ping - */ -export function pingServer(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/ping", { - ...opts - })); -} -/** - * Get statistics - */ -export function getServerStatistics(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/statistics", { - ...opts - })); -} -/** - * Get storage - */ -export function getStorage(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/storage", { - ...opts - })); -} -/** - * Get server version - */ -export function getServerVersion(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/version", { - ...opts - })); -} -/** - * Get version check status - */ -export function getVersionCheck(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/version-check", { - ...opts - })); -} -/** - * Get version history - */ -export function getVersionHistory(opts) { - return oazapfts.ok(oazapfts.fetchJson("/server/version-history", { - ...opts - })); -} -/** - * Delete all sessions - */ -export function deleteAllSessions(opts) { - return oazapfts.ok(oazapfts.fetchText("/sessions", { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve sessions - */ -export function getSessions(opts) { - return oazapfts.ok(oazapfts.fetchJson("/sessions", { - ...opts - })); -} -/** - * Create a session - */ -export function createSession({ sessionCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/sessions", oazapfts.json({ - ...opts, - method: "POST", - body: sessionCreateDto - }))); -} -/** - * Delete a session - */ -export function deleteSession({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/sessions/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Update a session - */ -export function updateSession({ id, sessionUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/sessions/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: sessionUpdateDto - }))); -} -/** - * Lock a session - */ -export function lockSession({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/sessions/${encodeURIComponent(id)}/lock`, { - ...opts, - method: "POST" - })); -} -/** - * Retrieve all shared links - */ -export function getAllSharedLinks({ albumId, id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/shared-links${QS.query(QS.explode({ - albumId, - id - }))}`, { - ...opts - })); -} -/** - * Create a shared link - */ -export function createSharedLink({ sharedLinkCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/shared-links", oazapfts.json({ - ...opts, - method: "POST", - body: sharedLinkCreateDto - }))); -} -/** - * Shared link login - */ -export function sharedLinkLogin({ key, slug, sharedLinkLoginDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/shared-links/login${QS.query(QS.explode({ - key, - slug - }))}`, oazapfts.json({ - ...opts, - method: "POST", - body: sharedLinkLoginDto - }))); -} -/** - * Retrieve current shared link - */ -export function getMySharedLink({ key, slug }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/shared-links/me${QS.query(QS.explode({ - key, - slug - }))}`, { - ...opts - })); -} -/** - * Delete a shared link - */ -export function removeSharedLink({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/shared-links/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve a shared link - */ -export function getSharedLinkById({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/shared-links/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update a shared link - */ -export function updateSharedLink({ id, sharedLinkEditDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/shared-links/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PATCH", - body: sharedLinkEditDto - }))); -} -/** - * Remove assets from a shared link - */ -export function removeSharedLinkAssets({ id, assetIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/shared-links/${encodeURIComponent(id)}/assets`, oazapfts.json({ - ...opts, - method: "DELETE", - body: assetIdsDto - }))); -} -/** - * Add assets to a shared link - */ -export function addSharedLinkAssets({ id, assetIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/shared-links/${encodeURIComponent(id)}/assets`, oazapfts.json({ - ...opts, - method: "PUT", - body: assetIdsDto - }))); -} -/** - * Delete stacks - */ -export function deleteStacks({ bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/stacks", oazapfts.json({ - ...opts, - method: "DELETE", - body: bulkIdsDto - }))); -} -/** - * Retrieve stacks - */ -export function searchStacks({ primaryAssetId }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/stacks${QS.query(QS.explode({ - primaryAssetId - }))}`, { - ...opts - })); -} -/** - * Create a stack - */ -export function createStack({ stackCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/stacks", oazapfts.json({ - ...opts, - method: "POST", - body: stackCreateDto - }))); -} -/** - * Delete a stack - */ -export function deleteStack({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/stacks/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve a stack - */ -export function getStack({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/stacks/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update a stack - */ -export function updateStack({ id, stackUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/stacks/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: stackUpdateDto - }))); -} -/** - * Remove an asset from a stack - */ -export function removeAssetFromStack({ assetId, id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/stacks/${encodeURIComponent(id)}/assets/${encodeURIComponent(assetId)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Delete acknowledgements - */ -export function deleteSyncAck({ syncAckDeleteDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/sync/ack", oazapfts.json({ - ...opts, - method: "DELETE", - body: syncAckDeleteDto - }))); -} -/** - * Retrieve acknowledgements - */ -export function getSyncAck(opts) { - return oazapfts.ok(oazapfts.fetchJson("/sync/ack", { - ...opts - })); -} -/** - * Acknowledge changes - */ -export function sendSyncAck({ syncAckSetDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/sync/ack", oazapfts.json({ - ...opts, - method: "POST", - body: syncAckSetDto - }))); -} -/** - * Stream sync changes - */ -export function getSyncStream({ syncStreamDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/sync/stream", oazapfts.json({ - ...opts, - method: "POST", - body: syncStreamDto - }))); -} -/** - * Get system configuration - */ -export function getConfig(opts) { - return oazapfts.ok(oazapfts.fetchJson("/system-config", { - ...opts - })); -} -/** - * Update system configuration - */ -export function updateConfig({ systemConfigDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/system-config", oazapfts.json({ - ...opts, - method: "PUT", - body: systemConfigDto - }))); -} -/** - * Get system configuration defaults - */ -export function getConfigDefaults(opts) { - return oazapfts.ok(oazapfts.fetchJson("/system-config/defaults", { - ...opts - })); -} -/** - * Get storage template options - */ -export function getStorageTemplateOptions(opts) { - return oazapfts.ok(oazapfts.fetchJson("/system-config/storage-template-options", { - ...opts - })); -} -/** - * Retrieve admin onboarding - */ -export function getAdminOnboarding(opts) { - return oazapfts.ok(oazapfts.fetchJson("/system-metadata/admin-onboarding", { - ...opts - })); -} -/** - * Update admin onboarding - */ -export function updateAdminOnboarding({ adminOnboardingUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/system-metadata/admin-onboarding", oazapfts.json({ - ...opts, - method: "POST", - body: adminOnboardingUpdateDto - }))); -} -/** - * Retrieve reverse geocoding state - */ -export function getReverseGeocodingState(opts) { - return oazapfts.ok(oazapfts.fetchJson("/system-metadata/reverse-geocoding-state", { - ...opts - })); -} -/** - * Retrieve version check state - */ -export function getVersionCheckState(opts) { - return oazapfts.ok(oazapfts.fetchJson("/system-metadata/version-check-state", { - ...opts - })); -} -/** - * Retrieve tags - */ -export function getAllTags(opts) { - return oazapfts.ok(oazapfts.fetchJson("/tags", { - ...opts - })); -} -/** - * Create a tag - */ -export function createTag({ tagCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/tags", oazapfts.json({ - ...opts, - method: "POST", - body: tagCreateDto - }))); -} -/** - * Upsert tags - */ -export function upsertTags({ tagUpsertDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/tags", oazapfts.json({ - ...opts, - method: "PUT", - body: tagUpsertDto - }))); -} -/** - * Tag assets - */ -export function bulkTagAssets({ tagBulkAssetsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/tags/assets", oazapfts.json({ - ...opts, - method: "PUT", - body: tagBulkAssetsDto - }))); -} -/** - * Delete a tag - */ -export function deleteTag({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/tags/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve a tag - */ -export function getTagById({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/tags/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update a tag - */ -export function updateTag({ id, tagUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/tags/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: tagUpdateDto - }))); -} -/** - * Untag assets - */ -export function untagAssets({ id, bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/tags/${encodeURIComponent(id)}/assets`, oazapfts.json({ - ...opts, - method: "DELETE", - body: bulkIdsDto - }))); -} -/** - * Tag assets - */ -export function tagAssets({ id, bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/tags/${encodeURIComponent(id)}/assets`, oazapfts.json({ - ...opts, - method: "PUT", - body: bulkIdsDto - }))); -} -/** - * Get time bucket - */ -export function getTimeBucket({ albumId, bbox, isFavorite, isTrashed, key, order, personId, slug, tagId, timeBucket, userId, visibility, withCoordinates, withPartners, withStacked }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/timeline/bucket${QS.query(QS.explode({ - albumId, - bbox, - isFavorite, - isTrashed, - key, - order, - personId, - slug, - tagId, - timeBucket, - userId, - visibility, - withCoordinates, - withPartners, - withStacked - }))}`, { - ...opts - })); -} -/** - * Get time buckets - */ -export function getTimeBuckets({ albumId, bbox, isFavorite, isTrashed, key, order, personId, slug, tagId, userId, visibility, withCoordinates, withPartners, withStacked }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/timeline/buckets${QS.query(QS.explode({ - albumId, - bbox, - isFavorite, - isTrashed, - key, - order, - personId, - slug, - tagId, - userId, - visibility, - withCoordinates, - withPartners, - withStacked - }))}`, { - ...opts - })); -} -/** - * Empty trash - */ -export function emptyTrash(opts) { - return oazapfts.ok(oazapfts.fetchJson("/trash/empty", { - ...opts, - method: "POST" - })); -} -/** - * Restore trash - */ -export function restoreTrash(opts) { - return oazapfts.ok(oazapfts.fetchJson("/trash/restore", { - ...opts, - method: "POST" - })); -} -/** - * Restore assets - */ -export function restoreAssets({ bulkIdsDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/trash/restore/assets", oazapfts.json({ - ...opts, - method: "POST", - body: bulkIdsDto - }))); -} -/** - * Get all users - */ -export function searchUsers(opts) { - return oazapfts.ok(oazapfts.fetchJson("/users", { - ...opts - })); -} -/** - * Get current user - */ -export function getMyUser(opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/me", { - ...opts - })); -} -/** - * Update current user - */ -export function updateMyUser({ userUpdateMeDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/me", oazapfts.json({ - ...opts, - method: "PUT", - body: userUpdateMeDto - }))); -} -/** - * Delete user product key - */ -export function deleteUserLicense(opts) { - return oazapfts.ok(oazapfts.fetchText("/users/me/license", { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve user product key - */ -export function getUserLicense(opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/me/license", { - ...opts - })); -} -/** - * Set user product key - */ -export function setUserLicense({ licenseKeyDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/me/license", oazapfts.json({ - ...opts, - method: "PUT", - body: licenseKeyDto - }))); -} -/** - * Delete user onboarding - */ -export function deleteUserOnboarding(opts) { - return oazapfts.ok(oazapfts.fetchText("/users/me/onboarding", { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve user onboarding - */ -export function getUserOnboarding(opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/me/onboarding", { - ...opts - })); -} -/** - * Update user onboarding - */ -export function setUserOnboarding({ onboardingDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/me/onboarding", oazapfts.json({ - ...opts, - method: "PUT", - body: onboardingDto - }))); -} -/** - * Get my preferences - */ -export function getMyPreferences(opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/me/preferences", { - ...opts - })); -} -/** - * Update my preferences - */ -export function updateMyPreferences({ userPreferencesUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/me/preferences", oazapfts.json({ - ...opts, - method: "PUT", - body: userPreferencesUpdateDto - }))); -} -/** - * Delete user profile image - */ -export function deleteProfileImage(opts) { - return oazapfts.ok(oazapfts.fetchText("/users/profile-image", { - ...opts, - method: "DELETE" - })); -} -/** - * Create user profile image - */ -export function createProfileImage({ createProfileImageDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/users/profile-image", oazapfts.multipart({ - ...opts, - method: "POST", - body: createProfileImageDto - }))); -} -/** - * Retrieve a user - */ -export function getUser({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/users/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Retrieve user profile image - */ -export function getProfileImage({ id }, opts) { - return oazapfts.ok(oazapfts.fetchBlob(`/users/${encodeURIComponent(id)}/profile-image`, { - ...opts - })); -} -/** - * Retrieve assets by original path - */ -export function getAssetsByOriginalPath({ path }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/view/folder${QS.query(QS.explode({ - path - }))}`, { - ...opts - })); -} -/** - * Retrieve unique paths - */ -export function getUniqueOriginalPaths(opts) { - return oazapfts.ok(oazapfts.fetchJson("/view/folder/unique-paths", { - ...opts - })); -} -/** - * List all workflows - */ -export function getWorkflows(opts) { - return oazapfts.ok(oazapfts.fetchJson("/workflows", { - ...opts - })); -} -/** - * Create a workflow - */ -export function createWorkflow({ workflowCreateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/workflows", oazapfts.json({ - ...opts, - method: "POST", - body: workflowCreateDto - }))); -} -/** - * Delete a workflow - */ -export function deleteWorkflow({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/workflows/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -/** - * Retrieve a workflow - */ -export function getWorkflow({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/workflows/${encodeURIComponent(id)}`, { - ...opts - })); -} -/** - * Update a workflow - */ -export function updateWorkflow({ id, workflowUpdateDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/workflows/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PUT", - body: workflowUpdateDto - }))); -} -export function oidcDeviceFlow(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/auth/oidc/device", { - ...opts - })); -} -export function getBackends(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/backend", { - ...opts - })); -} -export function createLocalBackend({ createLocalBackendRequestDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/backend/local", oazapfts.json({ - ...opts, - method: "POST", - body: createLocalBackendRequestDto - }))); -} -export function resetOrchestrator(opts) { - return oazapfts.ok(oazapfts.fetchText("/yucca/debug/reset", { - ...opts, - method: "POST" - })); -} -export function getFileListing({ path }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/fs${QS.query(QS.explode({ - path - }))}`, { - ...opts - })); -} -export function getIntegrations(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/integrations", { - ...opts - })); -} -export function configureImmichIntegration({ configureImmichIntegrationRequestDto }, opts) { - return oazapfts.ok(oazapfts.fetchText("/yucca/integrations/immich", oazapfts.json({ - ...opts, - method: "POST", - body: configureImmichIntegrationRequestDto - }))); -} -export function getRun({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/logs/${encodeURIComponent(id)}`, { - ...opts - })); -} -export function logStreamSse({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/yucca/logs/${encodeURIComponent(id)}/stream`, { - ...opts - })); -} -export function onboardingStatus(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/onboarding", { - ...opts - })); -} -export function currentRecoveryKey(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/onboarding/recovery-key", { - ...opts - })); -} -export function confirmRecoveryKey(opts) { - return oazapfts.ok(oazapfts.fetchText("/yucca/onboarding/recovery-key", { - ...opts, - method: "POST" - })); -} -export function importRecoveryKey({ importRecoveryKeyRequest }, opts) { - return oazapfts.ok(oazapfts.fetchText("/yucca/onboarding/recovery-key", oazapfts.json({ - ...opts, - method: "PUT", - body: importRecoveryKeyRequest - }))); -} -export function skipOnboardingExtraConfig(opts) { - return oazapfts.ok(oazapfts.fetchText("/yucca/onboarding/skip", { - ...opts, - method: "POST" - })); -} -export function getRepositories(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/repository", { - ...opts - })); -} -export function createRepository({ backend, repositoryCreateRequestDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository${QS.query(QS.explode({ - backend - }))}`, oazapfts.json({ - ...opts, - method: "POST", - body: repositoryCreateRequestDto - }))); -} -export function inspectRepositories(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/repository/inspect", { - ...opts - })); -} -export function deleteRepository({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/yucca/repository/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -export function updateRepository({ backend, id, repositoryUpdateRequestDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}${QS.query(QS.explode({ - backend - }))}`, oazapfts.json({ - ...opts, - method: "PATCH", - body: repositoryUpdateRequestDto - }))); -} -export function createBackup({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}`, { - ...opts, - method: "POST" - })); -} -export function checkImportRepository({ backend, id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/import${QS.query(QS.explode({ - backend - }))}`, { - ...opts - })); -} -export function importRepository({ backend, id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/import${QS.query(QS.explode({ - backend - }))}`, { - ...opts, - method: "POST" - })); -} -export function getRunHistory({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/runs`, { - ...opts - })); -} -export function getSnapshots({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/snapshots`, { - ...opts - })); -} -export function pruneRepository({ id }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/snapshots/prune`, { - ...opts, - method: "POST" - })); -} -export function forgetSnapshot({ id, snapshot }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/snapshots/${encodeURIComponent(snapshot)}`, { - ...opts, - method: "DELETE" - })); -} -export function restoreSnapshot({ id, snapshot, repositorySnapshotRestoreRequestDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/snapshots/${encodeURIComponent(snapshot)}`, oazapfts.json({ - ...opts, - method: "POST", - body: repositorySnapshotRestoreRequestDto - }))); -} -export function getSnapshotListing({ id, path, snapshot }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/snapshots/${encodeURIComponent(snapshot)}/listing${QS.query(QS.explode({ - path - }))}`, { - ...opts - })); -} -export function restoreFromPoint({ backend, id, snapshot, repositorySnapshotRestoreFromPointRequestDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/repository/${encodeURIComponent(id)}/snapshots/${encodeURIComponent(snapshot)}/restore-from-point${QS.query(QS.explode({ - backend - }))}`, oazapfts.json({ - ...opts, - method: "POST", - body: repositorySnapshotRestoreFromPointRequestDto - }))); -} -export function getSchedules(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/schedule", { - ...opts - })); -} -export function createSchedule({ scheduleCreateRequestDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/schedule", oazapfts.json({ - ...opts, - method: "POST", - body: scheduleCreateRequestDto - }))); -} -export function removeSchedule({ id }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/yucca/schedule/${encodeURIComponent(id)}`, { - ...opts, - method: "DELETE" - })); -} -export function updateSchedule({ id, scheduleUpdateRequestDto }, opts) { - return oazapfts.ok(oazapfts.fetchJson(`/yucca/schedule/${encodeURIComponent(id)}`, oazapfts.json({ - ...opts, - method: "PATCH", - body: scheduleUpdateRequestDto - }))); -} -export function getRunningTasks(opts) { - return oazapfts.ok(oazapfts.fetchJson("/yucca/tasks", { - ...opts - })); -} -export function cancelTask({ parentId }, opts) { - return oazapfts.ok(oazapfts.fetchText(`/yucca/tasks/${encodeURIComponent(parentId)}/cancel`, { - ...opts, - method: "POST" - })); -} -export var ReactionLevel; -(function (ReactionLevel) { - ReactionLevel["Album"] = "album"; - ReactionLevel["Asset"] = "asset"; -})(ReactionLevel || (ReactionLevel = {})); -export var ReactionType; -(function (ReactionType) { - ReactionType["Comment"] = "comment"; - ReactionType["Like"] = "like"; -})(ReactionType || (ReactionType = {})); -export var UserAvatarColor; -(function (UserAvatarColor) { - UserAvatarColor["Primary"] = "primary"; - UserAvatarColor["Pink"] = "pink"; - UserAvatarColor["Red"] = "red"; - UserAvatarColor["Yellow"] = "yellow"; - UserAvatarColor["Blue"] = "blue"; - UserAvatarColor["Green"] = "green"; - UserAvatarColor["Purple"] = "purple"; - UserAvatarColor["Orange"] = "orange"; - UserAvatarColor["Gray"] = "gray"; - UserAvatarColor["Amber"] = "amber"; -})(UserAvatarColor || (UserAvatarColor = {})); -export var MaintenanceAction; -(function (MaintenanceAction) { - MaintenanceAction["Start"] = "start"; - MaintenanceAction["End"] = "end"; - MaintenanceAction["SelectDatabaseRestore"] = "select_database_restore"; - MaintenanceAction["RestoreDatabase"] = "restore_database"; -})(MaintenanceAction || (MaintenanceAction = {})); -export var StorageFolder; -(function (StorageFolder) { - StorageFolder["EncodedVideo"] = "encoded-video"; - StorageFolder["Library"] = "library"; - StorageFolder["Upload"] = "upload"; - StorageFolder["Profile"] = "profile"; - StorageFolder["Thumbs"] = "thumbs"; - StorageFolder["Backups"] = "backups"; -})(StorageFolder || (StorageFolder = {})); -export var NotificationLevel; -(function (NotificationLevel) { - NotificationLevel["Success"] = "success"; - NotificationLevel["Error"] = "error"; - NotificationLevel["Warning"] = "warning"; - NotificationLevel["Info"] = "info"; -})(NotificationLevel || (NotificationLevel = {})); -export var NotificationType; -(function (NotificationType) { - NotificationType["JobFailed"] = "JobFailed"; - NotificationType["BackupFailed"] = "BackupFailed"; - NotificationType["SystemMessage"] = "SystemMessage"; - NotificationType["AlbumInvite"] = "AlbumInvite"; - NotificationType["AlbumUpdate"] = "AlbumUpdate"; - NotificationType["Custom"] = "Custom"; -})(NotificationType || (NotificationType = {})); -export var UserStatus; -(function (UserStatus) { - UserStatus["Active"] = "active"; - UserStatus["Removing"] = "removing"; - UserStatus["Deleted"] = "deleted"; -})(UserStatus || (UserStatus = {})); -export var AssetOrder; -(function (AssetOrder) { - AssetOrder["Asc"] = "asc"; - AssetOrder["Desc"] = "desc"; -})(AssetOrder || (AssetOrder = {})); -export var AssetVisibility; -(function (AssetVisibility) { - AssetVisibility["Archive"] = "archive"; - AssetVisibility["Timeline"] = "timeline"; - AssetVisibility["Hidden"] = "hidden"; - AssetVisibility["Locked"] = "locked"; -})(AssetVisibility || (AssetVisibility = {})); -export var AlbumUserRole; -(function (AlbumUserRole) { - AlbumUserRole["Editor"] = "editor"; - AlbumUserRole["Owner"] = "owner"; - AlbumUserRole["Viewer"] = "viewer"; -})(AlbumUserRole || (AlbumUserRole = {})); -export var BulkIdErrorReason; -(function (BulkIdErrorReason) { - BulkIdErrorReason["Duplicate"] = "duplicate"; - BulkIdErrorReason["NoPermission"] = "no_permission"; - BulkIdErrorReason["NotFound"] = "not_found"; - BulkIdErrorReason["Unknown"] = "unknown"; - BulkIdErrorReason["Validation"] = "validation"; -})(BulkIdErrorReason || (BulkIdErrorReason = {})); -export var Permission; -(function (Permission) { - Permission["All"] = "all"; - Permission["ActivityCreate"] = "activity.create"; - Permission["ActivityRead"] = "activity.read"; - Permission["ActivityUpdate"] = "activity.update"; - Permission["ActivityDelete"] = "activity.delete"; - Permission["ActivityStatistics"] = "activity.statistics"; - Permission["ApiKeyCreate"] = "apiKey.create"; - Permission["ApiKeyRead"] = "apiKey.read"; - Permission["ApiKeyUpdate"] = "apiKey.update"; - Permission["ApiKeyDelete"] = "apiKey.delete"; - Permission["AssetRead"] = "asset.read"; - Permission["AssetUpdate"] = "asset.update"; - Permission["AssetDelete"] = "asset.delete"; - Permission["AssetStatistics"] = "asset.statistics"; - Permission["AssetShare"] = "asset.share"; - Permission["AssetView"] = "asset.view"; - Permission["AssetDownload"] = "asset.download"; - Permission["AssetUpload"] = "asset.upload"; - Permission["AssetCopy"] = "asset.copy"; - Permission["AssetDerive"] = "asset.derive"; - Permission["AssetEditGet"] = "asset.edit.get"; - Permission["AssetEditCreate"] = "asset.edit.create"; - Permission["AssetEditDelete"] = "asset.edit.delete"; - Permission["AlbumCreate"] = "album.create"; - Permission["AlbumRead"] = "album.read"; - Permission["AlbumUpdate"] = "album.update"; - Permission["AlbumDelete"] = "album.delete"; - Permission["AlbumStatistics"] = "album.statistics"; - Permission["AlbumShare"] = "album.share"; - Permission["AlbumDownload"] = "album.download"; - Permission["AlbumAssetCreate"] = "albumAsset.create"; - Permission["AlbumAssetDelete"] = "albumAsset.delete"; - Permission["AlbumUserCreate"] = "albumUser.create"; - Permission["AlbumUserUpdate"] = "albumUser.update"; - Permission["AlbumUserDelete"] = "albumUser.delete"; - Permission["AuthChangePassword"] = "auth.changePassword"; - Permission["AuthDeviceDelete"] = "authDevice.delete"; - Permission["ArchiveRead"] = "archive.read"; - Permission["BackupList"] = "backup.list"; - Permission["BackupDownload"] = "backup.download"; - Permission["BackupUpload"] = "backup.upload"; - Permission["BackupDelete"] = "backup.delete"; - Permission["DuplicateRead"] = "duplicate.read"; - Permission["DuplicateDelete"] = "duplicate.delete"; - Permission["FaceCreate"] = "face.create"; - Permission["FaceRead"] = "face.read"; - Permission["FaceUpdate"] = "face.update"; - Permission["FaceDelete"] = "face.delete"; - Permission["FolderRead"] = "folder.read"; - Permission["JobCreate"] = "job.create"; - Permission["JobRead"] = "job.read"; - Permission["LibraryCreate"] = "library.create"; - Permission["LibraryRead"] = "library.read"; - Permission["LibraryUpdate"] = "library.update"; - Permission["LibraryDelete"] = "library.delete"; - Permission["LibraryStatistics"] = "library.statistics"; - Permission["TimelineRead"] = "timeline.read"; - Permission["TimelineDownload"] = "timeline.download"; - Permission["Maintenance"] = "maintenance"; - Permission["MapRead"] = "map.read"; - Permission["MapSearch"] = "map.search"; - Permission["MemoryCreate"] = "memory.create"; - Permission["MemoryRead"] = "memory.read"; - Permission["MemoryUpdate"] = "memory.update"; - Permission["MemoryDelete"] = "memory.delete"; - Permission["MemoryStatistics"] = "memory.statistics"; - Permission["MemoryAssetCreate"] = "memoryAsset.create"; - Permission["MemoryAssetDelete"] = "memoryAsset.delete"; - Permission["NotificationCreate"] = "notification.create"; - Permission["NotificationRead"] = "notification.read"; - Permission["NotificationUpdate"] = "notification.update"; - Permission["NotificationDelete"] = "notification.delete"; - Permission["PartnerCreate"] = "partner.create"; - Permission["PartnerRead"] = "partner.read"; - Permission["PartnerUpdate"] = "partner.update"; - Permission["PartnerDelete"] = "partner.delete"; - Permission["PersonCreate"] = "person.create"; - Permission["PersonRead"] = "person.read"; - Permission["PersonUpdate"] = "person.update"; - Permission["PersonDelete"] = "person.delete"; - Permission["PersonStatistics"] = "person.statistics"; - Permission["PersonMerge"] = "person.merge"; - Permission["PersonReassign"] = "person.reassign"; - Permission["PinCodeCreate"] = "pinCode.create"; - Permission["PinCodeUpdate"] = "pinCode.update"; - Permission["PinCodeDelete"] = "pinCode.delete"; - Permission["PluginCreate"] = "plugin.create"; - Permission["PluginRead"] = "plugin.read"; - Permission["PluginUpdate"] = "plugin.update"; - Permission["PluginDelete"] = "plugin.delete"; - Permission["ServerAbout"] = "server.about"; - Permission["ServerApkLinks"] = "server.apkLinks"; - Permission["ServerStorage"] = "server.storage"; - Permission["ServerStatistics"] = "server.statistics"; - Permission["ServerVersionCheck"] = "server.versionCheck"; - Permission["ServerLicenseRead"] = "serverLicense.read"; - Permission["ServerLicenseUpdate"] = "serverLicense.update"; - Permission["ServerLicenseDelete"] = "serverLicense.delete"; - Permission["SessionCreate"] = "session.create"; - Permission["SessionRead"] = "session.read"; - Permission["SessionUpdate"] = "session.update"; - Permission["SessionDelete"] = "session.delete"; - Permission["SessionLock"] = "session.lock"; - Permission["SharedLinkCreate"] = "sharedLink.create"; - Permission["SharedLinkRead"] = "sharedLink.read"; - Permission["SharedLinkUpdate"] = "sharedLink.update"; - Permission["SharedLinkDelete"] = "sharedLink.delete"; - Permission["StackCreate"] = "stack.create"; - Permission["StackRead"] = "stack.read"; - Permission["StackUpdate"] = "stack.update"; - Permission["StackDelete"] = "stack.delete"; - Permission["SyncStream"] = "sync.stream"; - Permission["SyncCheckpointRead"] = "syncCheckpoint.read"; - Permission["SyncCheckpointUpdate"] = "syncCheckpoint.update"; - Permission["SyncCheckpointDelete"] = "syncCheckpoint.delete"; - Permission["SystemConfigRead"] = "systemConfig.read"; - Permission["SystemConfigUpdate"] = "systemConfig.update"; - Permission["SystemMetadataRead"] = "systemMetadata.read"; - Permission["SystemMetadataUpdate"] = "systemMetadata.update"; - Permission["TagCreate"] = "tag.create"; - Permission["TagRead"] = "tag.read"; - Permission["TagUpdate"] = "tag.update"; - Permission["TagDelete"] = "tag.delete"; - Permission["TagAsset"] = "tag.asset"; - Permission["UserRead"] = "user.read"; - Permission["UserUpdate"] = "user.update"; - Permission["UserLicenseCreate"] = "userLicense.create"; - Permission["UserLicenseRead"] = "userLicense.read"; - Permission["UserLicenseUpdate"] = "userLicense.update"; - Permission["UserLicenseDelete"] = "userLicense.delete"; - Permission["UserOnboardingRead"] = "userOnboarding.read"; - Permission["UserOnboardingUpdate"] = "userOnboarding.update"; - Permission["UserOnboardingDelete"] = "userOnboarding.delete"; - Permission["UserPreferenceRead"] = "userPreference.read"; - Permission["UserPreferenceUpdate"] = "userPreference.update"; - Permission["UserProfileImageCreate"] = "userProfileImage.create"; - Permission["UserProfileImageRead"] = "userProfileImage.read"; - Permission["UserProfileImageUpdate"] = "userProfileImage.update"; - Permission["UserProfileImageDelete"] = "userProfileImage.delete"; - Permission["QueueRead"] = "queue.read"; - Permission["QueueUpdate"] = "queue.update"; - Permission["QueueJobCreate"] = "queueJob.create"; - Permission["QueueJobRead"] = "queueJob.read"; - Permission["QueueJobUpdate"] = "queueJob.update"; - Permission["QueueJobDelete"] = "queueJob.delete"; - Permission["WorkflowCreate"] = "workflow.create"; - Permission["WorkflowRead"] = "workflow.read"; - Permission["WorkflowUpdate"] = "workflow.update"; - Permission["WorkflowDelete"] = "workflow.delete"; - Permission["AdminUserCreate"] = "adminUser.create"; - Permission["AdminUserRead"] = "adminUser.read"; - Permission["AdminUserUpdate"] = "adminUser.update"; - Permission["AdminUserDelete"] = "adminUser.delete"; - Permission["AdminSessionRead"] = "adminSession.read"; - Permission["AdminAuthUnlinkAll"] = "adminAuth.unlinkAll"; -})(Permission || (Permission = {})); -export var AssetMediaStatus; -(function (AssetMediaStatus) { - AssetMediaStatus["Created"] = "created"; - AssetMediaStatus["Duplicate"] = "duplicate"; -})(AssetMediaStatus || (AssetMediaStatus = {})); -export var AssetUploadAction; -(function (AssetUploadAction) { - AssetUploadAction["Accept"] = "accept"; - AssetUploadAction["Reject"] = "reject"; -})(AssetUploadAction || (AssetUploadAction = {})); -export var AssetRejectReason; -(function (AssetRejectReason) { - AssetRejectReason["Duplicate"] = "duplicate"; - AssetRejectReason["UnsupportedFormat"] = "unsupported-format"; -})(AssetRejectReason || (AssetRejectReason = {})); -export var AssetJobName; -(function (AssetJobName) { - AssetJobName["RefreshFaces"] = "refresh-faces"; - AssetJobName["RefreshMetadata"] = "refresh-metadata"; - AssetJobName["RegenerateThumbnail"] = "regenerate-thumbnail"; - AssetJobName["TranscodeVideo"] = "transcode-video"; -})(AssetJobName || (AssetJobName = {})); -export var SourceType; -(function (SourceType) { - SourceType["MachineLearning"] = "machine-learning"; - SourceType["Exif"] = "exif"; - SourceType["Manual"] = "manual"; -})(SourceType || (SourceType = {})); -export var AssetTypeEnum; -(function (AssetTypeEnum) { - AssetTypeEnum["Image"] = "IMAGE"; - AssetTypeEnum["Video"] = "VIDEO"; - AssetTypeEnum["Audio"] = "AUDIO"; - AssetTypeEnum["Other"] = "OTHER"; -})(AssetTypeEnum || (AssetTypeEnum = {})); -export var AssetEditAction; -(function (AssetEditAction) { - AssetEditAction["Crop"] = "crop"; - AssetEditAction["Rotate"] = "rotate"; - AssetEditAction["Mirror"] = "mirror"; -})(AssetEditAction || (AssetEditAction = {})); -export var MirrorAxis; -(function (MirrorAxis) { - MirrorAxis["Horizontal"] = "horizontal"; - MirrorAxis["Vertical"] = "vertical"; -})(MirrorAxis || (MirrorAxis = {})); -export var AssetMediaSize; -(function (AssetMediaSize) { - AssetMediaSize["Original"] = "original"; - AssetMediaSize["Fullsize"] = "fullsize"; - AssetMediaSize["Preview"] = "preview"; - AssetMediaSize["Thumbnail"] = "thumbnail"; -})(AssetMediaSize || (AssetMediaSize = {})); -export var ManualJobName; -(function (ManualJobName) { - ManualJobName["PersonCleanup"] = "person-cleanup"; - ManualJobName["TagCleanup"] = "tag-cleanup"; - ManualJobName["UserCleanup"] = "user-cleanup"; - ManualJobName["MemoryCleanup"] = "memory-cleanup"; - ManualJobName["MemoryCreate"] = "memory-create"; - ManualJobName["BackupDatabase"] = "backup-database"; -})(ManualJobName || (ManualJobName = {})); -export var QueueName; -(function (QueueName) { - QueueName["ThumbnailGeneration"] = "thumbnailGeneration"; - QueueName["MetadataExtraction"] = "metadataExtraction"; - QueueName["VideoConversion"] = "videoConversion"; - QueueName["FaceDetection"] = "faceDetection"; - QueueName["FacialRecognition"] = "facialRecognition"; - QueueName["SmartSearch"] = "smartSearch"; - QueueName["DuplicateDetection"] = "duplicateDetection"; - QueueName["BackgroundTask"] = "backgroundTask"; - QueueName["StorageTemplateMigration"] = "storageTemplateMigration"; - QueueName["Migration"] = "migration"; - QueueName["Search"] = "search"; - QueueName["Sidecar"] = "sidecar"; - QueueName["Library"] = "library"; - QueueName["Notifications"] = "notifications"; - QueueName["BackupDatabase"] = "backupDatabase"; - QueueName["Ocr"] = "ocr"; - QueueName["Workflow"] = "workflow"; - QueueName["Editor"] = "editor"; -})(QueueName || (QueueName = {})); -export var QueueCommand; -(function (QueueCommand) { - QueueCommand["Start"] = "start"; - QueueCommand["Pause"] = "pause"; - QueueCommand["Resume"] = "resume"; - QueueCommand["Empty"] = "empty"; - QueueCommand["ClearFailed"] = "clear-failed"; -})(QueueCommand || (QueueCommand = {})); -export var MemorySearchOrder; -(function (MemorySearchOrder) { - MemorySearchOrder["Asc"] = "asc"; - MemorySearchOrder["Desc"] = "desc"; - MemorySearchOrder["Random"] = "random"; -})(MemorySearchOrder || (MemorySearchOrder = {})); -export var MemoryType; -(function (MemoryType) { - MemoryType["OnThisDay"] = "on_this_day"; -})(MemoryType || (MemoryType = {})); -export var PartnerDirection; -(function (PartnerDirection) { - PartnerDirection["SharedBy"] = "shared-by"; - PartnerDirection["SharedWith"] = "shared-with"; -})(PartnerDirection || (PartnerDirection = {})); -export var PluginJsonSchemaType; -(function (PluginJsonSchemaType) { - PluginJsonSchemaType["String"] = "string"; - PluginJsonSchemaType["Number"] = "number"; - PluginJsonSchemaType["Integer"] = "integer"; - PluginJsonSchemaType["Boolean"] = "boolean"; - PluginJsonSchemaType["Object"] = "object"; - PluginJsonSchemaType["Array"] = "array"; - PluginJsonSchemaType["Null"] = "null"; -})(PluginJsonSchemaType || (PluginJsonSchemaType = {})); -export var PluginContextType; -(function (PluginContextType) { - PluginContextType["Asset"] = "asset"; - PluginContextType["Album"] = "album"; - PluginContextType["Person"] = "person"; -})(PluginContextType || (PluginContextType = {})); -export var PluginTriggerType; -(function (PluginTriggerType) { - PluginTriggerType["AssetCreate"] = "AssetCreate"; - PluginTriggerType["PersonRecognized"] = "PersonRecognized"; -})(PluginTriggerType || (PluginTriggerType = {})); -export var QueueJobStatus; -(function (QueueJobStatus) { - QueueJobStatus["Active"] = "active"; - QueueJobStatus["Failed"] = "failed"; - QueueJobStatus["Completed"] = "completed"; - QueueJobStatus["Delayed"] = "delayed"; - QueueJobStatus["Waiting"] = "waiting"; - QueueJobStatus["Paused"] = "paused"; -})(QueueJobStatus || (QueueJobStatus = {})); -export var JobName; -(function (JobName) { - JobName["AssetDelete"] = "AssetDelete"; - JobName["AssetDeleteCheck"] = "AssetDeleteCheck"; - JobName["AssetDetectFacesQueueAll"] = "AssetDetectFacesQueueAll"; - JobName["AssetDetectFaces"] = "AssetDetectFaces"; - JobName["AssetDetectDuplicatesQueueAll"] = "AssetDetectDuplicatesQueueAll"; - JobName["AssetDetectDuplicates"] = "AssetDetectDuplicates"; - JobName["AssetEditThumbnailGeneration"] = "AssetEditThumbnailGeneration"; - JobName["AssetEncodeVideoQueueAll"] = "AssetEncodeVideoQueueAll"; - JobName["AssetEncodeVideo"] = "AssetEncodeVideo"; - JobName["AssetEmptyTrash"] = "AssetEmptyTrash"; - JobName["AssetExtractMetadataQueueAll"] = "AssetExtractMetadataQueueAll"; - JobName["AssetExtractMetadata"] = "AssetExtractMetadata"; - JobName["AssetFileMigration"] = "AssetFileMigration"; - JobName["AssetGenerateThumbnailsQueueAll"] = "AssetGenerateThumbnailsQueueAll"; - JobName["AssetGenerateThumbnails"] = "AssetGenerateThumbnails"; - JobName["AuditTableCleanup"] = "AuditTableCleanup"; - JobName["DatabaseBackup"] = "DatabaseBackup"; - JobName["FacialRecognitionQueueAll"] = "FacialRecognitionQueueAll"; - JobName["FacialRecognition"] = "FacialRecognition"; - JobName["FileDelete"] = "FileDelete"; - JobName["FileMigrationQueueAll"] = "FileMigrationQueueAll"; - JobName["LibraryDeleteCheck"] = "LibraryDeleteCheck"; - JobName["LibraryDelete"] = "LibraryDelete"; - JobName["LibraryRemoveAsset"] = "LibraryRemoveAsset"; - JobName["LibraryScanAssetsQueueAll"] = "LibraryScanAssetsQueueAll"; - JobName["LibrarySyncAssets"] = "LibrarySyncAssets"; - JobName["LibrarySyncFilesQueueAll"] = "LibrarySyncFilesQueueAll"; - JobName["LibrarySyncFiles"] = "LibrarySyncFiles"; - JobName["LibraryScanQueueAll"] = "LibraryScanQueueAll"; - JobName["MemoryCleanup"] = "MemoryCleanup"; - JobName["MemoryGenerate"] = "MemoryGenerate"; - JobName["NotificationsCleanup"] = "NotificationsCleanup"; - JobName["NotifyUserSignup"] = "NotifyUserSignup"; - JobName["NotifyAlbumInvite"] = "NotifyAlbumInvite"; - JobName["NotifyAlbumUpdate"] = "NotifyAlbumUpdate"; - JobName["UserDelete"] = "UserDelete"; - JobName["UserDeleteCheck"] = "UserDeleteCheck"; - JobName["UserSyncUsage"] = "UserSyncUsage"; - JobName["PersonCleanup"] = "PersonCleanup"; - JobName["PersonFileMigration"] = "PersonFileMigration"; - JobName["PersonGenerateThumbnail"] = "PersonGenerateThumbnail"; - JobName["SessionCleanup"] = "SessionCleanup"; - JobName["SendMail"] = "SendMail"; - JobName["SidecarQueueAll"] = "SidecarQueueAll"; - JobName["SidecarCheck"] = "SidecarCheck"; - JobName["SidecarWrite"] = "SidecarWrite"; - JobName["SmartSearchQueueAll"] = "SmartSearchQueueAll"; - JobName["SmartSearch"] = "SmartSearch"; - JobName["StorageTemplateMigration"] = "StorageTemplateMigration"; - JobName["StorageTemplateMigrationSingle"] = "StorageTemplateMigrationSingle"; - JobName["TagCleanup"] = "TagCleanup"; - JobName["VersionCheck"] = "VersionCheck"; - JobName["OcrQueueAll"] = "OcrQueueAll"; - JobName["Ocr"] = "Ocr"; - JobName["WorkflowRun"] = "WorkflowRun"; -})(JobName || (JobName = {})); -export var SearchSuggestionType; -(function (SearchSuggestionType) { - SearchSuggestionType["Country"] = "country"; - SearchSuggestionType["State"] = "state"; - SearchSuggestionType["City"] = "city"; - SearchSuggestionType["CameraMake"] = "camera-make"; - SearchSuggestionType["CameraModel"] = "camera-model"; - SearchSuggestionType["CameraLensModel"] = "camera-lens-model"; -})(SearchSuggestionType || (SearchSuggestionType = {})); -export var SharedLinkType; -(function (SharedLinkType) { - SharedLinkType["Album"] = "ALBUM"; - SharedLinkType["Individual"] = "INDIVIDUAL"; -})(SharedLinkType || (SharedLinkType = {})); -export var AssetIdErrorReason; -(function (AssetIdErrorReason) { - AssetIdErrorReason["Duplicate"] = "duplicate"; - AssetIdErrorReason["NoPermission"] = "no_permission"; - AssetIdErrorReason["NotFound"] = "not_found"; -})(AssetIdErrorReason || (AssetIdErrorReason = {})); -export var SyncEntityType; -(function (SyncEntityType) { - SyncEntityType["AuthUserV1"] = "AuthUserV1"; - SyncEntityType["UserV1"] = "UserV1"; - SyncEntityType["UserDeleteV1"] = "UserDeleteV1"; - SyncEntityType["AssetV1"] = "AssetV1"; - SyncEntityType["AssetV2"] = "AssetV2"; - SyncEntityType["AssetDeleteV1"] = "AssetDeleteV1"; - SyncEntityType["AssetExifV1"] = "AssetExifV1"; - SyncEntityType["AssetEditV1"] = "AssetEditV1"; - SyncEntityType["AssetEditDeleteV1"] = "AssetEditDeleteV1"; - SyncEntityType["AssetMetadataV1"] = "AssetMetadataV1"; - SyncEntityType["AssetMetadataDeleteV1"] = "AssetMetadataDeleteV1"; - SyncEntityType["PartnerV1"] = "PartnerV1"; - SyncEntityType["PartnerDeleteV1"] = "PartnerDeleteV1"; - SyncEntityType["PartnerAssetV1"] = "PartnerAssetV1"; - SyncEntityType["PartnerAssetV2"] = "PartnerAssetV2"; - SyncEntityType["PartnerAssetBackfillV1"] = "PartnerAssetBackfillV1"; - SyncEntityType["PartnerAssetBackfillV2"] = "PartnerAssetBackfillV2"; - SyncEntityType["PartnerAssetDeleteV1"] = "PartnerAssetDeleteV1"; - SyncEntityType["PartnerAssetExifV1"] = "PartnerAssetExifV1"; - SyncEntityType["PartnerAssetExifBackfillV1"] = "PartnerAssetExifBackfillV1"; - SyncEntityType["PartnerStackBackfillV1"] = "PartnerStackBackfillV1"; - SyncEntityType["PartnerStackDeleteV1"] = "PartnerStackDeleteV1"; - SyncEntityType["PartnerStackV1"] = "PartnerStackV1"; - SyncEntityType["AlbumV1"] = "AlbumV1"; - SyncEntityType["AlbumV2"] = "AlbumV2"; - SyncEntityType["AlbumDeleteV1"] = "AlbumDeleteV1"; - SyncEntityType["AlbumUserV1"] = "AlbumUserV1"; - SyncEntityType["AlbumUserBackfillV1"] = "AlbumUserBackfillV1"; - SyncEntityType["AlbumUserDeleteV1"] = "AlbumUserDeleteV1"; - SyncEntityType["AlbumAssetCreateV1"] = "AlbumAssetCreateV1"; - SyncEntityType["AlbumAssetCreateV2"] = "AlbumAssetCreateV2"; - SyncEntityType["AlbumAssetUpdateV1"] = "AlbumAssetUpdateV1"; - SyncEntityType["AlbumAssetUpdateV2"] = "AlbumAssetUpdateV2"; - SyncEntityType["AlbumAssetBackfillV1"] = "AlbumAssetBackfillV1"; - SyncEntityType["AlbumAssetBackfillV2"] = "AlbumAssetBackfillV2"; - SyncEntityType["AlbumAssetExifCreateV1"] = "AlbumAssetExifCreateV1"; - SyncEntityType["AlbumAssetExifUpdateV1"] = "AlbumAssetExifUpdateV1"; - SyncEntityType["AlbumAssetExifBackfillV1"] = "AlbumAssetExifBackfillV1"; - SyncEntityType["AlbumToAssetV1"] = "AlbumToAssetV1"; - SyncEntityType["AlbumToAssetDeleteV1"] = "AlbumToAssetDeleteV1"; - SyncEntityType["AlbumToAssetBackfillV1"] = "AlbumToAssetBackfillV1"; - SyncEntityType["MemoryV1"] = "MemoryV1"; - SyncEntityType["MemoryDeleteV1"] = "MemoryDeleteV1"; - SyncEntityType["MemoryToAssetV1"] = "MemoryToAssetV1"; - SyncEntityType["MemoryToAssetDeleteV1"] = "MemoryToAssetDeleteV1"; - SyncEntityType["StackV1"] = "StackV1"; - SyncEntityType["StackDeleteV1"] = "StackDeleteV1"; - SyncEntityType["PersonV1"] = "PersonV1"; - SyncEntityType["PersonDeleteV1"] = "PersonDeleteV1"; - SyncEntityType["AssetFaceV1"] = "AssetFaceV1"; - SyncEntityType["AssetFaceV2"] = "AssetFaceV2"; - SyncEntityType["AssetFaceDeleteV1"] = "AssetFaceDeleteV1"; - SyncEntityType["UserMetadataV1"] = "UserMetadataV1"; - SyncEntityType["UserMetadataDeleteV1"] = "UserMetadataDeleteV1"; - SyncEntityType["SyncAckV1"] = "SyncAckV1"; - SyncEntityType["SyncResetV1"] = "SyncResetV1"; - SyncEntityType["SyncCompleteV1"] = "SyncCompleteV1"; -})(SyncEntityType || (SyncEntityType = {})); -export var SyncRequestType; -(function (SyncRequestType) { - SyncRequestType["AlbumsV1"] = "AlbumsV1"; - SyncRequestType["AlbumsV2"] = "AlbumsV2"; - SyncRequestType["AlbumUsersV1"] = "AlbumUsersV1"; - SyncRequestType["AlbumToAssetsV1"] = "AlbumToAssetsV1"; - SyncRequestType["AlbumAssetsV1"] = "AlbumAssetsV1"; - SyncRequestType["AlbumAssetsV2"] = "AlbumAssetsV2"; - SyncRequestType["AlbumAssetExifsV1"] = "AlbumAssetExifsV1"; - SyncRequestType["AssetsV1"] = "AssetsV1"; - SyncRequestType["AssetsV2"] = "AssetsV2"; - SyncRequestType["AssetExifsV1"] = "AssetExifsV1"; - SyncRequestType["AssetEditsV1"] = "AssetEditsV1"; - SyncRequestType["AssetMetadataV1"] = "AssetMetadataV1"; - SyncRequestType["AuthUsersV1"] = "AuthUsersV1"; - SyncRequestType["MemoriesV1"] = "MemoriesV1"; - SyncRequestType["MemoryToAssetsV1"] = "MemoryToAssetsV1"; - SyncRequestType["PartnersV1"] = "PartnersV1"; - SyncRequestType["PartnerAssetsV1"] = "PartnerAssetsV1"; - SyncRequestType["PartnerAssetsV2"] = "PartnerAssetsV2"; - SyncRequestType["PartnerAssetExifsV1"] = "PartnerAssetExifsV1"; - SyncRequestType["PartnerStacksV1"] = "PartnerStacksV1"; - SyncRequestType["StacksV1"] = "StacksV1"; - SyncRequestType["UsersV1"] = "UsersV1"; - SyncRequestType["PeopleV1"] = "PeopleV1"; - SyncRequestType["AssetFacesV1"] = "AssetFacesV1"; - SyncRequestType["AssetFacesV2"] = "AssetFacesV2"; - SyncRequestType["UserMetadataV1"] = "UserMetadataV1"; -})(SyncRequestType || (SyncRequestType = {})); -export var TranscodeHWAccel; -(function (TranscodeHWAccel) { - TranscodeHWAccel["Nvenc"] = "nvenc"; - TranscodeHWAccel["Qsv"] = "qsv"; - TranscodeHWAccel["Vaapi"] = "vaapi"; - TranscodeHWAccel["Rkmpp"] = "rkmpp"; - TranscodeHWAccel["Disabled"] = "disabled"; -})(TranscodeHWAccel || (TranscodeHWAccel = {})); -export var AudioCodec; -(function (AudioCodec) { - AudioCodec["Mp3"] = "mp3"; - AudioCodec["Aac"] = "aac"; - AudioCodec["Libopus"] = "libopus"; - AudioCodec["Opus"] = "opus"; - AudioCodec["PcmS16Le"] = "pcm_s16le"; -})(AudioCodec || (AudioCodec = {})); -export var VideoContainer; -(function (VideoContainer) { - VideoContainer["Mov"] = "mov"; - VideoContainer["Mp4"] = "mp4"; - VideoContainer["Ogg"] = "ogg"; - VideoContainer["Webm"] = "webm"; -})(VideoContainer || (VideoContainer = {})); -export var VideoCodec; -(function (VideoCodec) { - VideoCodec["H264"] = "h264"; - VideoCodec["Hevc"] = "hevc"; - VideoCodec["Vp9"] = "vp9"; - VideoCodec["Av1"] = "av1"; -})(VideoCodec || (VideoCodec = {})); -export var CQMode; -(function (CQMode) { - CQMode["Auto"] = "auto"; - CQMode["Cqp"] = "cqp"; - CQMode["Icq"] = "icq"; -})(CQMode || (CQMode = {})); -export var ToneMapping; -(function (ToneMapping) { - ToneMapping["Hable"] = "hable"; - ToneMapping["Mobius"] = "mobius"; - ToneMapping["Reinhard"] = "reinhard"; - ToneMapping["Disabled"] = "disabled"; -})(ToneMapping || (ToneMapping = {})); -export var TranscodePolicy; -(function (TranscodePolicy) { - TranscodePolicy["All"] = "all"; - TranscodePolicy["Optimal"] = "optimal"; - TranscodePolicy["Bitrate"] = "bitrate"; - TranscodePolicy["Required"] = "required"; - TranscodePolicy["Disabled"] = "disabled"; -})(TranscodePolicy || (TranscodePolicy = {})); -export var Colorspace; -(function (Colorspace) { - Colorspace["Srgb"] = "srgb"; - Colorspace["P3"] = "p3"; -})(Colorspace || (Colorspace = {})); -export var ImageFormat; -(function (ImageFormat) { - ImageFormat["Jpeg"] = "jpeg"; - ImageFormat["Webp"] = "webp"; -})(ImageFormat || (ImageFormat = {})); -export var LogLevel; -(function (LogLevel) { - LogLevel["Verbose"] = "verbose"; - LogLevel["Debug"] = "debug"; - LogLevel["Log"] = "log"; - LogLevel["Warn"] = "warn"; - LogLevel["Error"] = "error"; - LogLevel["Fatal"] = "fatal"; -})(LogLevel || (LogLevel = {})); -export var OAuthTokenEndpointAuthMethod; -(function (OAuthTokenEndpointAuthMethod) { - OAuthTokenEndpointAuthMethod["ClientSecretPost"] = "client_secret_post"; - OAuthTokenEndpointAuthMethod["ClientSecretBasic"] = "client_secret_basic"; -})(OAuthTokenEndpointAuthMethod || (OAuthTokenEndpointAuthMethod = {})); -export var BackendType; -(function (BackendType) { - BackendType["Yucca"] = "yucca"; - BackendType["Local"] = "local"; - BackendType["S3"] = "s3"; -})(BackendType || (BackendType = {})); -export var RunStatus; -(function (RunStatus) { - RunStatus["Incomplete"] = "incomplete"; - RunStatus["Complete"] = "complete"; - RunStatus["Failed"] = "failed"; -})(RunStatus || (RunStatus = {})); -export var RunType; -(function (RunType) { - RunType["Schedule"] = "schedule"; - RunType["Restore"] = "restore"; - RunType["Backup"] = "backup"; - RunType["Forget"] = "forget"; -})(RunType || (RunType = {})); -export var TaskStatus; -(function (TaskStatus) { - TaskStatus["Incomplete"] = "incomplete"; - TaskStatus["Complete"] = "complete"; - TaskStatus["Failed"] = "failed"; -})(TaskStatus || (TaskStatus = {})); -export var TaskType; -(function (TaskType) { - TaskType["Schedule"] = "schedule"; - TaskType["Restore"] = "restore"; - TaskType["Backup"] = "backup"; - TaskType["Forget"] = "forget"; -})(TaskType || (TaskType = {})); -export var UserMetadataKey; -(function (UserMetadataKey) { - UserMetadataKey["Preferences"] = "preferences"; - UserMetadataKey["License"] = "license"; - UserMetadataKey["Onboarding"] = "onboarding"; -})(UserMetadataKey || (UserMetadataKey = {})); diff --git a/open-api/typescript-sdk/build/fetch-errors.d.ts b/open-api/typescript-sdk/build/fetch-errors.d.ts deleted file mode 100644 index e163e675f1..0000000000 --- a/open-api/typescript-sdk/build/fetch-errors.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { HttpError } from '@oazapfts/runtime'; -export interface ApiValidationError { - code: string; - path: (string | number)[]; - message: string; -} -export interface ApiExceptionResponse { - message: string; - error?: string; - statusCode: number; - errors?: ApiValidationError[]; -} -export interface ApiHttpError extends HttpError { - data: ApiExceptionResponse; -} -export declare function isHttpError(error: unknown): error is ApiHttpError; diff --git a/open-api/typescript-sdk/build/fetch-errors.js b/open-api/typescript-sdk/build/fetch-errors.js deleted file mode 100644 index a71dae67e6..0000000000 --- a/open-api/typescript-sdk/build/fetch-errors.js +++ /dev/null @@ -1,4 +0,0 @@ -import { HttpError } from '@oazapfts/runtime'; -export function isHttpError(error) { - return error instanceof HttpError; -} diff --git a/open-api/typescript-sdk/build/index.d.ts b/open-api/typescript-sdk/build/index.d.ts deleted file mode 100644 index c0ded6de7a..0000000000 --- a/open-api/typescript-sdk/build/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export * from './fetch-client.js'; -export * from './fetch-errors.js'; -export interface InitOptions { - baseUrl: string; - apiKey: string; - headers?: Record; -} -export declare const init: ({ baseUrl, apiKey, headers }: InitOptions) => void; -export declare const getBaseUrl: () => string; -export declare const setBaseUrl: (baseUrl: string) => void; -export declare const setApiKey: (apiKey: string) => void; -export declare const setHeader: (key: string, value: string) => void; -export declare const setHeaders: (headers: Record) => void; -export declare const getAssetOriginalPath: (id: string) => string; -export declare const getAssetThumbnailPath: (id: string) => string; -export declare const getAssetPlaybackPath: (id: string) => string; -export declare const getUserProfileImagePath: (userId: string) => string; -export declare const getPeopleThumbnailPath: (personId: string) => string; diff --git a/open-api/typescript-sdk/build/index.js b/open-api/typescript-sdk/build/index.js deleted file mode 100644 index c3a7a77794..0000000000 --- a/open-api/typescript-sdk/build/index.js +++ /dev/null @@ -1,40 +0,0 @@ -import { defaults } from './fetch-client.js'; -export * from './fetch-client.js'; -export * from './fetch-errors.js'; -export const init = ({ baseUrl, apiKey, headers }) => { - setBaseUrl(baseUrl); - setApiKey(apiKey); - if (headers) { - setHeaders(headers); - } -}; -export const getBaseUrl = () => defaults.baseUrl; -export const setBaseUrl = (baseUrl) => { - defaults.baseUrl = baseUrl; -}; -export const setApiKey = (apiKey) => { - defaults.headers = defaults.headers || {}; - defaults.headers['x-api-key'] = apiKey; -}; -export const setHeader = (key, value) => { - assertNoApiKey(key); - defaults.headers = defaults.headers || {}; - defaults.headers[key] = value; -}; -export const setHeaders = (headers) => { - defaults.headers = defaults.headers || {}; - for (const [key, value] of Object.entries(headers)) { - assertNoApiKey(key); - defaults.headers[key] = value; - } -}; -const assertNoApiKey = (headerKey) => { - if (headerKey.toLowerCase() === 'x-api-key') { - throw new Error('The API key header can only be set using setApiKey().'); - } -}; -export const getAssetOriginalPath = (id) => `/assets/${id}/original`; -export const getAssetThumbnailPath = (id) => `/assets/${id}/thumbnail`; -export const getAssetPlaybackPath = (id) => `/assets/${id}/video/playback`; -export const getUserProfileImagePath = (userId) => `/users/${userId}/profile-image`; -export const getPeopleThumbnailPath = (personId) => `/people/${personId}/thumbnail`;