"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.VideoContainerSchema = exports.VideoContainer = exports.AudioCodecSchema = exports.AudioCodec = exports.VideoCodecSchema = exports.VideoCodec = exports.TranscodeTarget = exports.TranscodePolicySchema = exports.TranscodePolicy = exports.UserPathType = exports.PersonPathType = exports.AssetPathType = exports.ManualJobNameSchema = exports.ManualJobName = exports.IntegrityReportSchema = exports.IntegrityReport = exports.SourceTypeSchema = exports.SourceType = exports.AssetStatus = exports.UserStatusSchema = exports.UserStatus = exports.UserAvatarColorSchema = exports.UserAvatarColor = exports.AssetMetadataKey = exports.UserMetadataKeySchema = exports.UserMetadataKey = exports.SystemMetadataKey = exports.StorageFolderSchema = exports.StorageFolder = exports.SharedLinkTypeSchema = exports.SharedLinkType = exports.Permission = exports.AssetOrderWithRandomSchema = exports.AssetOrderWithRandom = exports.MemoryTypeSchema = exports.MemoryType = exports.AssetOrderBySchema = exports.AssetOrderBy = exports.AssetOrderSchema = exports.AssetOrder = exports.AlbumUserRoleSchema = exports.AlbumUserRole = exports.AssetFileType = exports.ChecksumAlgorithm = exports.AssetTypeSchema = exports.AssetType = exports.ImmichQuery = exports.ImmichHeader = exports.ImmichCookie = exports.AuthType = void 0;
exports.MaintenanceAction = exports.DatabaseLock = exports.VectorIndex = exports.QueueCleanType = exports.JobStatus = exports.QueueCommandSchema = exports.QueueCommand = exports.JobNameSchema = exports.JobName = exports.QueueJobStatusSchema = exports.QueueJobStatus = exports.QueueNameSchema = exports.QueueName = exports.BootstrapEventPriority = exports.DatabaseExtension = exports.DvSignalCompatibility = exports.DvProfile = exports.AacProfile = exports.Av1Profile = exports.HevcProfile = exports.H264Profile = exports.ColorMatrix = exports.ColorTransfer = exports.ColorPrimaries = exports.ExifOrientation = exports.ImmichTelemetry = exports.ImmichWorker = exports.ImmichEnvironmentSchema = exports.ImmichEnvironment = exports.CacheControl = exports.RouteKey = exports.MetadataKey = exports.ApiCustomExtension = exports.LogFormatSchema = exports.LogFormat = exports.LogLevelSchema = exports.LogLevel = exports.RawExtractedFormat = exports.ImageFormatSchema = exports.ImageFormat = exports.ColorspaceSchema = exports.Colorspace = exports.HlsVideoResolutionSchema = exports.HlsVideoResolution = exports.CQModeSchema = exports.CQMode = exports.ToneMappingSchema = exports.ToneMapping = exports.TranscodeHardwareAccelerationSchema = exports.TranscodeHardwareAcceleration = void 0;
exports.SearchOrderFieldSchema = exports.SearchOrderField = exports.CalendarHeatmapType = exports.WorkflowTypeSchema = exports.WorkflowType = exports.WorkflowTriggerSchema = exports.PluginContextSchema = exports.PluginContext = exports.ApiTag = exports.CronJob = exports.AssetVisibilitySchema = exports.AssetVisibility = exports.OAuthTokenEndpointAuthMethodSchema = exports.OAuthTokenEndpointAuthMethod = exports.NotificationTypeSchema = exports.NotificationType = exports.NotificationLevelSchema = exports.NotificationLevel = exports.SyncEntityTypeSchema = exports.SyncEntityType = exports.SyncRequestTypeSchema = exports.SyncRequestType = exports.ExitCode = exports.MaintenanceActionSchema = void 0;
const plugin_sdk_1 = require("@immich/plugin-sdk");
const zod_1 = __importDefault(require("zod"));
var AuthType;
(function (AuthType) {
    AuthType["Password"] = "password";
    AuthType["OAuth"] = "oauth";
})(AuthType || (exports.AuthType = AuthType = {}));
var ImmichCookie;
(function (ImmichCookie) {
    ImmichCookie["AccessToken"] = "immich_access_token";
    ImmichCookie["MaintenanceToken"] = "immich_maintenance_token";
    ImmichCookie["AuthType"] = "immich_auth_type";
    ImmichCookie["IsAuthenticated"] = "immich_is_authenticated";
    ImmichCookie["SharedLinkToken"] = "immich_shared_link_token";
    ImmichCookie["OAuthState"] = "immich_oauth_state";
    ImmichCookie["OAuthCodeVerifier"] = "immich_oauth_code_verifier";
})(ImmichCookie || (exports.ImmichCookie = ImmichCookie = {}));
var ImmichHeader;
(function (ImmichHeader) {
    ImmichHeader["ApiKey"] = "x-api-key";
    ImmichHeader["UserToken"] = "x-immich-user-token";
    ImmichHeader["SessionToken"] = "x-immich-session-token";
    ImmichHeader["SharedLinkKey"] = "x-immich-share-key";
    ImmichHeader["SharedLinkSlug"] = "x-immich-share-slug";
    ImmichHeader["Checksum"] = "x-immich-checksum";
    ImmichHeader["CorrelationId"] = "X-Correlation-ID";
    ImmichHeader["HlsInitSegment"] = "x-immich-hls-msn";
    ImmichHeader["HlsPosition"] = "x-immich-hls-pos";
})(ImmichHeader || (exports.ImmichHeader = ImmichHeader = {}));
var ImmichQuery;
(function (ImmichQuery) {
    ImmichQuery["SharedLinkKey"] = "key";
    ImmichQuery["SharedLinkSlug"] = "slug";
    ImmichQuery["ApiKey"] = "apiKey";
    ImmichQuery["SessionKey"] = "sessionKey";
})(ImmichQuery || (exports.ImmichQuery = ImmichQuery = {}));
var AssetType;
(function (AssetType) {
    AssetType["Image"] = "IMAGE";
    AssetType["Video"] = "VIDEO";
    AssetType["Audio"] = "AUDIO";
    AssetType["Other"] = "OTHER";
})(AssetType || (exports.AssetType = AssetType = {}));
exports.AssetTypeSchema = zod_1.default.enum(AssetType).describe('Asset type').meta({ id: 'AssetTypeEnum' });
var ChecksumAlgorithm;
(function (ChecksumAlgorithm) {
    ChecksumAlgorithm["sha1File"] = "sha1";
    ChecksumAlgorithm["sha1Path"] = "sha1-path";
})(ChecksumAlgorithm || (exports.ChecksumAlgorithm = ChecksumAlgorithm = {}));
var AssetFileType;
(function (AssetFileType) {
    AssetFileType["FullSize"] = "fullsize";
    AssetFileType["Preview"] = "preview";
    AssetFileType["Thumbnail"] = "thumbnail";
    AssetFileType["Sidecar"] = "sidecar";
    AssetFileType["EncodedVideo"] = "encoded_video";
})(AssetFileType || (exports.AssetFileType = AssetFileType = {}));
var AlbumUserRole;
(function (AlbumUserRole) {
    AlbumUserRole["Editor"] = "editor";
    AlbumUserRole["Owner"] = "owner";
    AlbumUserRole["Viewer"] = "viewer";
})(AlbumUserRole || (exports.AlbumUserRole = AlbumUserRole = {}));
exports.AlbumUserRoleSchema = zod_1.default.enum(AlbumUserRole).describe('Album user role').meta({ id: 'AlbumUserRole' });
var AssetOrder;
(function (AssetOrder) {
    AssetOrder["Asc"] = "asc";
    AssetOrder["Desc"] = "desc";
})(AssetOrder || (exports.AssetOrder = AssetOrder = {}));
exports.AssetOrderSchema = zod_1.default.enum(AssetOrder).describe('Asset sort order').meta({ id: 'AssetOrder' });
var AssetOrderBy;
(function (AssetOrderBy) {
    AssetOrderBy["TakenAt"] = "takenAt";
    AssetOrderBy["CreatedAt"] = "createdAt";
})(AssetOrderBy || (exports.AssetOrderBy = AssetOrderBy = {}));
exports.AssetOrderBySchema = zod_1.default.enum(AssetOrderBy).describe('Asset sorting property').meta({ id: 'AssetOrderBy' });
var MemoryType;
(function (MemoryType) {
    MemoryType["OnThisDay"] = "on_this_day";
})(MemoryType || (exports.MemoryType = MemoryType = {}));
exports.MemoryTypeSchema = zod_1.default.enum(MemoryType).describe('Memory type').meta({ id: 'MemoryType' });
var AssetOrderWithRandom;
(function (AssetOrderWithRandom) {
    AssetOrderWithRandom["Asc"] = "asc";
    AssetOrderWithRandom["Desc"] = "desc";
    AssetOrderWithRandom["Random"] = "random";
})(AssetOrderWithRandom || (exports.AssetOrderWithRandom = AssetOrderWithRandom = {}));
exports.AssetOrderWithRandomSchema = zod_1.default
    .enum(AssetOrderWithRandom)
    .describe('Sort order')
    .meta({ id: 'MemorySearchOrder' });
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 || (exports.Permission = Permission = {}));
var SharedLinkType;
(function (SharedLinkType) {
    SharedLinkType["Album"] = "ALBUM";
    SharedLinkType["Individual"] = "INDIVIDUAL";
})(SharedLinkType || (exports.SharedLinkType = SharedLinkType = {}));
exports.SharedLinkTypeSchema = zod_1.default.enum(SharedLinkType).describe('Shared link type').meta({ id: 'SharedLinkType' });
var StorageFolder;
(function (StorageFolder) {
    StorageFolder["EncodedVideo"] = "encoded-video";
    StorageFolder["Library"] = "library";
    StorageFolder["Upload"] = "upload";
    StorageFolder["Profile"] = "profile";
    StorageFolder["Thumbnails"] = "thumbs";
    StorageFolder["Backups"] = "backups";
})(StorageFolder || (exports.StorageFolder = StorageFolder = {}));
exports.StorageFolderSchema = zod_1.default.enum(StorageFolder).describe('Storage folder').meta({ id: 'StorageFolder' });
var SystemMetadataKey;
(function (SystemMetadataKey) {
    SystemMetadataKey["MediaLocation"] = "MediaLocation";
    SystemMetadataKey["ReverseGeocodingState"] = "reverse-geocoding-state";
    SystemMetadataKey["FacialRecognitionState"] = "facial-recognition-state";
    SystemMetadataKey["MemoriesState"] = "memories-state";
    SystemMetadataKey["AdminOnboarding"] = "admin-onboarding";
    SystemMetadataKey["MaintenanceMode"] = "maintenance-mode";
    SystemMetadataKey["SystemConfig"] = "system-config";
    SystemMetadataKey["SystemFlags"] = "system-flags";
    SystemMetadataKey["VersionCheckState"] = "version-check-state";
    SystemMetadataKey["License"] = "license";
    SystemMetadataKey["IntegrityChecksumCheckpoint"] = "integrity-checksum-checkpoint";
})(SystemMetadataKey || (exports.SystemMetadataKey = SystemMetadataKey = {}));
var UserMetadataKey;
(function (UserMetadataKey) {
    UserMetadataKey["Preferences"] = "preferences";
    UserMetadataKey["License"] = "license";
    UserMetadataKey["Onboarding"] = "onboarding";
})(UserMetadataKey || (exports.UserMetadataKey = UserMetadataKey = {}));
exports.UserMetadataKeySchema = zod_1.default
    .enum(UserMetadataKey)
    .describe('User metadata key')
    .meta({ id: 'UserMetadataKey' });
var AssetMetadataKey;
(function (AssetMetadataKey) {
    AssetMetadataKey["MobileApp"] = "mobile-app";
})(AssetMetadataKey || (exports.AssetMetadataKey = AssetMetadataKey = {}));
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 || (exports.UserAvatarColor = UserAvatarColor = {}));
exports.UserAvatarColorSchema = zod_1.default
    .enum(UserAvatarColor)
    .describe('User avatar color')
    .meta({ id: 'UserAvatarColor' });
var UserStatus;
(function (UserStatus) {
    UserStatus["Active"] = "active";
    UserStatus["Removing"] = "removing";
    UserStatus["Deleted"] = "deleted";
})(UserStatus || (exports.UserStatus = UserStatus = {}));
exports.UserStatusSchema = zod_1.default.enum(UserStatus).describe('User status').meta({ id: 'UserStatus' });
var AssetStatus;
(function (AssetStatus) {
    AssetStatus["Active"] = "active";
    AssetStatus["Trashed"] = "trashed";
    AssetStatus["Deleted"] = "deleted";
})(AssetStatus || (exports.AssetStatus = AssetStatus = {}));
var SourceType;
(function (SourceType) {
    SourceType["MachineLearning"] = "machine-learning";
    SourceType["Exif"] = "exif";
    SourceType["Manual"] = "manual";
})(SourceType || (exports.SourceType = SourceType = {}));
exports.SourceTypeSchema = zod_1.default.enum(SourceType).describe('Face detection source type').meta({ id: 'SourceType' });
var IntegrityReport;
(function (IntegrityReport) {
    IntegrityReport["UntrackedFile"] = "untracked_file";
    IntegrityReport["MissingFile"] = "missing_file";
    IntegrityReport["ChecksumFail"] = "checksum_mismatch";
})(IntegrityReport || (exports.IntegrityReport = IntegrityReport = {}));
exports.IntegrityReportSchema = zod_1.default
    .enum(IntegrityReport)
    .describe('Integrity report type')
    .meta({ id: 'IntegrityReport' });
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["IntegrityMissingFiles"] = "integrity-missing-files";
    ManualJobName["IntegrityUntrackedFiles"] = "integrity-untracked-files";
    ManualJobName["IntegrityChecksumFiles"] = "integrity-checksum-mismatch";
    ManualJobName["IntegrityMissingFilesRefresh"] = "integrity-missing-files-refresh";
    ManualJobName["IntegrityUntrackedFilesRefresh"] = "integrity-untracked-files-refresh";
    ManualJobName["IntegrityChecksumFilesRefresh"] = "integrity-checksum-mismatch-refresh";
    ManualJobName["IntegrityMissingFilesDeleteAll"] = "integrity-missing-files-delete-all";
    ManualJobName["IntegrityUntrackedFilesDeleteAll"] = "integrity-untracked-files-delete-all";
    ManualJobName["IntegrityChecksumFilesDeleteAll"] = "integrity-checksum-mismatch-delete-all";
})(ManualJobName || (exports.ManualJobName = ManualJobName = {}));
exports.ManualJobNameSchema = zod_1.default.enum(ManualJobName).describe('Manual job name').meta({ id: 'ManualJobName' });
var AssetPathType;
(function (AssetPathType) {
    AssetPathType["Original"] = "original";
    AssetPathType["EncodedVideo"] = "encoded_video";
})(AssetPathType || (exports.AssetPathType = AssetPathType = {}));
var PersonPathType;
(function (PersonPathType) {
    PersonPathType["Face"] = "face";
})(PersonPathType || (exports.PersonPathType = PersonPathType = {}));
var UserPathType;
(function (UserPathType) {
    UserPathType["Profile"] = "profile";
})(UserPathType || (exports.UserPathType = UserPathType = {}));
var TranscodePolicy;
(function (TranscodePolicy) {
    TranscodePolicy["All"] = "all";
    TranscodePolicy["Optimal"] = "optimal";
    TranscodePolicy["Bitrate"] = "bitrate";
    TranscodePolicy["Required"] = "required";
    TranscodePolicy["Disabled"] = "disabled";
})(TranscodePolicy || (exports.TranscodePolicy = TranscodePolicy = {}));
exports.TranscodePolicySchema = zod_1.default
    .enum(TranscodePolicy)
    .describe('Transcode policy')
    .meta({ id: 'TranscodePolicy' });
var TranscodeTarget;
(function (TranscodeTarget) {
    TranscodeTarget["None"] = "NONE";
    TranscodeTarget["Audio"] = "AUDIO";
    TranscodeTarget["Video"] = "VIDEO";
    TranscodeTarget["All"] = "ALL";
})(TranscodeTarget || (exports.TranscodeTarget = TranscodeTarget = {}));
var VideoCodec;
(function (VideoCodec) {
    VideoCodec["H264"] = "h264";
    VideoCodec["Hevc"] = "hevc";
    VideoCodec["Vp9"] = "vp9";
    VideoCodec["Av1"] = "av1";
})(VideoCodec || (exports.VideoCodec = VideoCodec = {}));
exports.VideoCodecSchema = zod_1.default.enum(VideoCodec).describe('Target video codec').meta({ id: 'VideoCodec' });
var AudioCodec;
(function (AudioCodec) {
    AudioCodec["Mp3"] = "mp3";
    AudioCodec["Aac"] = "aac";
    AudioCodec["Opus"] = "opus";
    AudioCodec["PcmS16le"] = "pcm_s16le";
})(AudioCodec || (exports.AudioCodec = AudioCodec = {}));
exports.AudioCodecSchema = zod_1.default.enum(AudioCodec).describe('Target audio codec').meta({ id: 'AudioCodec' });
var VideoContainer;
(function (VideoContainer) {
    VideoContainer["Mov"] = "mov";
    VideoContainer["Mp4"] = "mp4";
    VideoContainer["Ogg"] = "ogg";
    VideoContainer["Webm"] = "webm";
})(VideoContainer || (exports.VideoContainer = VideoContainer = {}));
exports.VideoContainerSchema = zod_1.default
    .enum(VideoContainer)
    .describe('Accepted video containers')
    .meta({ id: 'VideoContainer' });
var TranscodeHardwareAcceleration;
(function (TranscodeHardwareAcceleration) {
    TranscodeHardwareAcceleration["Nvenc"] = "nvenc";
    TranscodeHardwareAcceleration["Qsv"] = "qsv";
    TranscodeHardwareAcceleration["Vaapi"] = "vaapi";
    TranscodeHardwareAcceleration["Rkmpp"] = "rkmpp";
    TranscodeHardwareAcceleration["Disabled"] = "disabled";
})(TranscodeHardwareAcceleration || (exports.TranscodeHardwareAcceleration = TranscodeHardwareAcceleration = {}));
exports.TranscodeHardwareAccelerationSchema = zod_1.default
    .enum(TranscodeHardwareAcceleration)
    .describe('Transcode hardware acceleration')
    .meta({ id: 'TranscodeHWAccel' });
var ToneMapping;
(function (ToneMapping) {
    ToneMapping["Hable"] = "hable";
    ToneMapping["Mobius"] = "mobius";
    ToneMapping["Reinhard"] = "reinhard";
    ToneMapping["Disabled"] = "disabled";
})(ToneMapping || (exports.ToneMapping = ToneMapping = {}));
exports.ToneMappingSchema = zod_1.default.enum(ToneMapping).describe('Tone mapping').meta({ id: 'ToneMapping' });
var CQMode;
(function (CQMode) {
    CQMode["Auto"] = "auto";
    CQMode["Cqp"] = "cqp";
    CQMode["Icq"] = "icq";
})(CQMode || (exports.CQMode = CQMode = {}));
exports.CQModeSchema = zod_1.default.enum(CQMode).describe('CQ mode').meta({ id: 'CQMode' });
var HlsVideoResolution;
(function (HlsVideoResolution) {
    HlsVideoResolution[HlsVideoResolution["p480"] = 480] = "p480";
    HlsVideoResolution[HlsVideoResolution["p720"] = 720] = "p720";
    HlsVideoResolution[HlsVideoResolution["p1080"] = 1080] = "p1080";
    HlsVideoResolution[HlsVideoResolution["p1440"] = 1440] = "p1440";
    HlsVideoResolution[HlsVideoResolution["p2160"] = 2160] = "p2160";
})(HlsVideoResolution || (exports.HlsVideoResolution = HlsVideoResolution = {}));
exports.HlsVideoResolutionSchema = zod_1.default
    .enum(HlsVideoResolution)
    .describe('HLS video resolution')
    .meta({ id: 'HlsVideoResolution', type: 'integer' });
var Colorspace;
(function (Colorspace) {
    Colorspace["Srgb"] = "srgb";
    Colorspace["P3"] = "p3";
})(Colorspace || (exports.Colorspace = Colorspace = {}));
exports.ColorspaceSchema = zod_1.default.enum(Colorspace).describe('Colorspace').meta({ id: 'Colorspace' });
var ImageFormat;
(function (ImageFormat) {
    ImageFormat["Jpeg"] = "jpeg";
    ImageFormat["Webp"] = "webp";
})(ImageFormat || (exports.ImageFormat = ImageFormat = {}));
exports.ImageFormatSchema = zod_1.default.enum(ImageFormat).describe('Image format').meta({ id: 'ImageFormat' });
var RawExtractedFormat;
(function (RawExtractedFormat) {
    RawExtractedFormat["Jpeg"] = "jpeg";
    RawExtractedFormat["Jxl"] = "jxl";
})(RawExtractedFormat || (exports.RawExtractedFormat = RawExtractedFormat = {}));
var LogLevel;
(function (LogLevel) {
    LogLevel["Verbose"] = "verbose";
    LogLevel["Debug"] = "debug";
    LogLevel["Log"] = "log";
    LogLevel["Warn"] = "warn";
    LogLevel["Error"] = "error";
    LogLevel["Fatal"] = "fatal";
})(LogLevel || (exports.LogLevel = LogLevel = {}));
exports.LogLevelSchema = zod_1.default.enum(LogLevel).describe('Log level').meta({ id: 'LogLevel' });
var LogFormat;
(function (LogFormat) {
    LogFormat["Console"] = "console";
    LogFormat["Json"] = "json";
})(LogFormat || (exports.LogFormat = LogFormat = {}));
exports.LogFormatSchema = zod_1.default.enum(LogFormat).describe('Log format').meta({ id: 'LogFormat' });
var ApiCustomExtension;
(function (ApiCustomExtension) {
    ApiCustomExtension["Permission"] = "x-immich-permission";
    ApiCustomExtension["AdminOnly"] = "x-immich-admin-only";
    ApiCustomExtension["History"] = "x-immich-history";
    ApiCustomExtension["State"] = "x-immich-state";
})(ApiCustomExtension || (exports.ApiCustomExtension = ApiCustomExtension = {}));
var MetadataKey;
(function (MetadataKey) {
    MetadataKey["AuthRoute"] = "auth_route";
    MetadataKey["ApiKeySecurity"] = "api_key";
    MetadataKey["EventConfig"] = "event_config";
    MetadataKey["JobConfig"] = "job_config";
    MetadataKey["TelemetryEnabled"] = "telemetry_enabled";
})(MetadataKey || (exports.MetadataKey = MetadataKey = {}));
var RouteKey;
(function (RouteKey) {
    RouteKey["Asset"] = "assets";
    RouteKey["User"] = "users";
})(RouteKey || (exports.RouteKey = RouteKey = {}));
var CacheControl;
(function (CacheControl) {
    CacheControl["PrivateWithCache"] = "private_with_cache";
    CacheControl["PrivateWithoutCache"] = "private_without_cache";
    CacheControl["None"] = "none";
})(CacheControl || (exports.CacheControl = CacheControl = {}));
var ImmichEnvironment;
(function (ImmichEnvironment) {
    ImmichEnvironment["Development"] = "development";
    ImmichEnvironment["Testing"] = "testing";
    ImmichEnvironment["Production"] = "production";
})(ImmichEnvironment || (exports.ImmichEnvironment = ImmichEnvironment = {}));
exports.ImmichEnvironmentSchema = zod_1.default
    .enum(ImmichEnvironment)
    .describe('Immich environment')
    .meta({ id: 'ImmichEnvironment' });
var ImmichWorker;
(function (ImmichWorker) {
    ImmichWorker["Api"] = "api";
    ImmichWorker["Maintenance"] = "maintenance";
    ImmichWorker["Microservices"] = "microservices";
})(ImmichWorker || (exports.ImmichWorker = ImmichWorker = {}));
var ImmichTelemetry;
(function (ImmichTelemetry) {
    ImmichTelemetry["Host"] = "host";
    ImmichTelemetry["Api"] = "api";
    ImmichTelemetry["Io"] = "io";
    ImmichTelemetry["Repo"] = "repo";
    ImmichTelemetry["Job"] = "job";
})(ImmichTelemetry || (exports.ImmichTelemetry = ImmichTelemetry = {}));
var ExifOrientation;
(function (ExifOrientation) {
    ExifOrientation[ExifOrientation["Horizontal"] = 1] = "Horizontal";
    ExifOrientation[ExifOrientation["MirrorHorizontal"] = 2] = "MirrorHorizontal";
    ExifOrientation[ExifOrientation["Rotate180"] = 3] = "Rotate180";
    ExifOrientation[ExifOrientation["MirrorVertical"] = 4] = "MirrorVertical";
    ExifOrientation[ExifOrientation["MirrorHorizontalRotate270CW"] = 5] = "MirrorHorizontalRotate270CW";
    ExifOrientation[ExifOrientation["Rotate90CW"] = 6] = "Rotate90CW";
    ExifOrientation[ExifOrientation["MirrorHorizontalRotate90CW"] = 7] = "MirrorHorizontalRotate90CW";
    ExifOrientation[ExifOrientation["Rotate270CW"] = 8] = "Rotate270CW";
})(ExifOrientation || (exports.ExifOrientation = ExifOrientation = {}));
var ColorPrimaries;
(function (ColorPrimaries) {
    ColorPrimaries[ColorPrimaries["Reserved"] = 0] = "Reserved";
    ColorPrimaries[ColorPrimaries["Bt709"] = 1] = "Bt709";
    ColorPrimaries[ColorPrimaries["Unknown"] = 2] = "Unknown";
    ColorPrimaries[ColorPrimaries["Bt470M"] = 4] = "Bt470M";
    ColorPrimaries[ColorPrimaries["Bt470Bg"] = 5] = "Bt470Bg";
    ColorPrimaries[ColorPrimaries["Smpte170M"] = 6] = "Smpte170M";
    ColorPrimaries[ColorPrimaries["Smpte240M"] = 7] = "Smpte240M";
    ColorPrimaries[ColorPrimaries["Film"] = 8] = "Film";
    ColorPrimaries[ColorPrimaries["Bt2020"] = 9] = "Bt2020";
    ColorPrimaries[ColorPrimaries["Smpte428"] = 10] = "Smpte428";
    ColorPrimaries[ColorPrimaries["Smpte431"] = 11] = "Smpte431";
    ColorPrimaries[ColorPrimaries["Smpte432"] = 12] = "Smpte432";
    ColorPrimaries[ColorPrimaries["Ebu3213"] = 22] = "Ebu3213";
})(ColorPrimaries || (exports.ColorPrimaries = ColorPrimaries = {}));
var ColorTransfer;
(function (ColorTransfer) {
    ColorTransfer[ColorTransfer["Reserved"] = 0] = "Reserved";
    ColorTransfer[ColorTransfer["Bt709"] = 1] = "Bt709";
    ColorTransfer[ColorTransfer["Unknown"] = 2] = "Unknown";
    ColorTransfer[ColorTransfer["Bt470M"] = 4] = "Bt470M";
    ColorTransfer[ColorTransfer["Bt470Bg"] = 5] = "Bt470Bg";
    ColorTransfer[ColorTransfer["Smpte170M"] = 6] = "Smpte170M";
    ColorTransfer[ColorTransfer["Smpte240M"] = 7] = "Smpte240M";
    ColorTransfer[ColorTransfer["Linear"] = 8] = "Linear";
    ColorTransfer[ColorTransfer["Log100"] = 9] = "Log100";
    ColorTransfer[ColorTransfer["Log316"] = 10] = "Log316";
    ColorTransfer[ColorTransfer["Iec6196624"] = 11] = "Iec6196624";
    ColorTransfer[ColorTransfer["Bt1361E"] = 12] = "Bt1361E";
    ColorTransfer[ColorTransfer["Iec6196621"] = 13] = "Iec6196621";
    ColorTransfer[ColorTransfer["Bt202010"] = 14] = "Bt202010";
    ColorTransfer[ColorTransfer["Bt202012"] = 15] = "Bt202012";
    ColorTransfer[ColorTransfer["Smpte2084"] = 16] = "Smpte2084";
    ColorTransfer[ColorTransfer["Smpte428"] = 17] = "Smpte428";
    ColorTransfer[ColorTransfer["AribStdB67"] = 18] = "AribStdB67";
})(ColorTransfer || (exports.ColorTransfer = ColorTransfer = {}));
var ColorMatrix;
(function (ColorMatrix) {
    ColorMatrix[ColorMatrix["Gbr"] = 0] = "Gbr";
    ColorMatrix[ColorMatrix["Bt709"] = 1] = "Bt709";
    ColorMatrix[ColorMatrix["Unknown"] = 2] = "Unknown";
    ColorMatrix[ColorMatrix["Reserved"] = 3] = "Reserved";
    ColorMatrix[ColorMatrix["Fcc"] = 4] = "Fcc";
    ColorMatrix[ColorMatrix["Bt470Bg"] = 5] = "Bt470Bg";
    ColorMatrix[ColorMatrix["Smpte170M"] = 6] = "Smpte170M";
    ColorMatrix[ColorMatrix["Smpte240M"] = 7] = "Smpte240M";
    ColorMatrix[ColorMatrix["Ycgco"] = 8] = "Ycgco";
    ColorMatrix[ColorMatrix["Bt2020Nc"] = 9] = "Bt2020Nc";
    ColorMatrix[ColorMatrix["Bt2020C"] = 10] = "Bt2020C";
    ColorMatrix[ColorMatrix["Smpte2085"] = 11] = "Smpte2085";
    ColorMatrix[ColorMatrix["ChromaDerivedNc"] = 12] = "ChromaDerivedNc";
    ColorMatrix[ColorMatrix["ChromaDerivedC"] = 13] = "ChromaDerivedC";
    ColorMatrix[ColorMatrix["Ictcp"] = 14] = "Ictcp";
})(ColorMatrix || (exports.ColorMatrix = ColorMatrix = {}));
var H264Profile;
(function (H264Profile) {
    H264Profile[H264Profile["ConstrainedBaseline"] = 66] = "ConstrainedBaseline";
    H264Profile[H264Profile["Baseline"] = 66] = "Baseline";
    H264Profile[H264Profile["Main"] = 77] = "Main";
    H264Profile[H264Profile["Extended"] = 88] = "Extended";
    H264Profile[H264Profile["ConstrainedHigh"] = 100] = "ConstrainedHigh";
    H264Profile[H264Profile["ProgressiveHigh"] = 100] = "ProgressiveHigh";
    H264Profile[H264Profile["High"] = 100] = "High";
    H264Profile[H264Profile["High10"] = 110] = "High10";
    H264Profile[H264Profile["High422"] = 122] = "High422";
    H264Profile[H264Profile["High444Predictive"] = 244] = "High444Predictive";
})(H264Profile || (exports.H264Profile = H264Profile = {}));
var HevcProfile;
(function (HevcProfile) {
    HevcProfile[HevcProfile["Main"] = 1] = "Main";
    HevcProfile[HevcProfile["Main10"] = 2] = "Main10";
    HevcProfile[HevcProfile["MainStillPicture"] = 3] = "MainStillPicture";
    HevcProfile[HevcProfile["Rext"] = 4] = "Rext";
})(HevcProfile || (exports.HevcProfile = HevcProfile = {}));
var Av1Profile;
(function (Av1Profile) {
    Av1Profile[Av1Profile["Main"] = 0] = "Main";
    Av1Profile[Av1Profile["High"] = 1] = "High";
    Av1Profile[Av1Profile["Professional"] = 2] = "Professional";
})(Av1Profile || (exports.Av1Profile = Av1Profile = {}));
var AacProfile;
(function (AacProfile) {
    AacProfile[AacProfile["Main"] = 1] = "Main";
    AacProfile[AacProfile["Lc"] = 2] = "Lc";
    AacProfile[AacProfile["Ssr"] = 3] = "Ssr";
    AacProfile[AacProfile["Ltp"] = 4] = "Ltp";
    AacProfile[AacProfile["HeAac"] = 5] = "HeAac";
    AacProfile[AacProfile["Ld"] = 23] = "Ld";
    AacProfile[AacProfile["HeAacv2"] = 29] = "HeAacv2";
    AacProfile[AacProfile["Eld"] = 39] = "Eld";
    AacProfile[AacProfile["XheAac"] = 42] = "XheAac";
})(AacProfile || (exports.AacProfile = AacProfile = {}));
var DvProfile;
(function (DvProfile) {
    DvProfile[DvProfile["Dvhe03"] = 3] = "Dvhe03";
    DvProfile[DvProfile["Dvhe04"] = 4] = "Dvhe04";
    DvProfile[DvProfile["Dvhe05"] = 5] = "Dvhe05";
    DvProfile[DvProfile["Dvhe07"] = 7] = "Dvhe07";
    DvProfile[DvProfile["Dvhe08"] = 8] = "Dvhe08";
    DvProfile[DvProfile["Dvav09"] = 9] = "Dvav09";
    DvProfile[DvProfile["Dav110"] = 10] = "Dav110";
})(DvProfile || (exports.DvProfile = DvProfile = {}));
var DvSignalCompatibility;
(function (DvSignalCompatibility) {
    DvSignalCompatibility[DvSignalCompatibility["None"] = 0] = "None";
    DvSignalCompatibility[DvSignalCompatibility["Hdr10"] = 1] = "Hdr10";
    DvSignalCompatibility[DvSignalCompatibility["Sdr709"] = 2] = "Sdr709";
    DvSignalCompatibility[DvSignalCompatibility["Hlg"] = 4] = "Hlg";
    DvSignalCompatibility[DvSignalCompatibility["Sdr2020"] = 6] = "Sdr2020";
})(DvSignalCompatibility || (exports.DvSignalCompatibility = DvSignalCompatibility = {}));
var DatabaseExtension;
(function (DatabaseExtension) {
    DatabaseExtension["Cube"] = "cube";
    DatabaseExtension["EarthDistance"] = "earthdistance";
    DatabaseExtension["Vector"] = "vector";
    DatabaseExtension["VectorChord"] = "vchord";
})(DatabaseExtension || (exports.DatabaseExtension = DatabaseExtension = {}));
var BootstrapEventPriority;
(function (BootstrapEventPriority) {
    BootstrapEventPriority[BootstrapEventPriority["DatabaseService"] = -200] = "DatabaseService";
    BootstrapEventPriority[BootstrapEventPriority["StorageService"] = -195] = "StorageService";
    BootstrapEventPriority[BootstrapEventPriority["JobService"] = -190] = "JobService";
    BootstrapEventPriority[BootstrapEventPriority["SystemConfig"] = 100] = "SystemConfig";
    BootstrapEventPriority[BootstrapEventPriority["PluginSync"] = 190] = "PluginSync";
    BootstrapEventPriority[BootstrapEventPriority["PluginLoad"] = 200] = "PluginLoad";
})(BootstrapEventPriority || (exports.BootstrapEventPriority = BootstrapEventPriority = {}));
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["Notification"] = "notifications";
    QueueName["BackupDatabase"] = "backupDatabase";
    QueueName["Ocr"] = "ocr";
    QueueName["Workflow"] = "workflow";
    QueueName["IntegrityCheck"] = "integrityCheck";
    QueueName["Editor"] = "editor";
})(QueueName || (exports.QueueName = QueueName = {}));
exports.QueueNameSchema = zod_1.default.enum(QueueName).describe('Queue name').meta({ id: 'QueueName' });
var QueueJobStatus;
(function (QueueJobStatus) {
    QueueJobStatus["Active"] = "active";
    QueueJobStatus["Failed"] = "failed";
    QueueJobStatus["Complete"] = "completed";
    QueueJobStatus["Delayed"] = "delayed";
    QueueJobStatus["Waiting"] = "waiting";
    QueueJobStatus["Paused"] = "paused";
})(QueueJobStatus || (exports.QueueJobStatus = QueueJobStatus = {}));
exports.QueueJobStatusSchema = zod_1.default.enum(QueueJobStatus).describe('Queue job status').meta({ id: 'QueueJobStatus' });
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["LibrarySyncAssetsQueueAll"] = "LibraryScanAssetsQueueAll";
    JobName["LibrarySyncAssets"] = "LibrarySyncAssets";
    JobName["LibrarySyncFilesQueueAll"] = "LibrarySyncFilesQueueAll";
    JobName["LibrarySyncFiles"] = "LibrarySyncFiles";
    JobName["LibraryScanQueueAll"] = "LibraryScanQueueAll";
    JobName["HlsSessionCleanup"] = "HlsSessionCleanup";
    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["WorkflowAssetTrigger"] = "WorkflowAssetTrigger";
    JobName["IntegrityUntrackedFilesQueueAll"] = "IntegrityUntrackedFilesQueueAll";
    JobName["IntegrityUntrackedFiles"] = "IntegrityUntrackedFiles";
    JobName["IntegrityUntrackedFilesRefresh"] = "IntegrityUntrackedRefresh";
    JobName["IntegrityMissingFilesQueueAll"] = "IntegrityMissingFilesQueueAll";
    JobName["IntegrityMissingFiles"] = "IntegrityMissingFiles";
    JobName["IntegrityMissingFilesRefresh"] = "IntegrityMissingFilesRefresh";
    JobName["IntegrityChecksumFiles"] = "IntegrityChecksumFiles";
    JobName["IntegrityChecksumFilesRefresh"] = "IntegrityChecksumFilesRefresh";
    JobName["IntegrityDeleteReportType"] = "IntegrityDeleteReportType";
    JobName["IntegrityDeleteReports"] = "IntegrityDeleteReports";
})(JobName || (exports.JobName = JobName = {}));
exports.JobNameSchema = zod_1.default.enum(JobName).describe('Job name').meta({ id: 'JobName' });
var QueueCommand;
(function (QueueCommand) {
    QueueCommand["Start"] = "start";
    QueueCommand["Pause"] = "pause";
    QueueCommand["Resume"] = "resume";
    QueueCommand["Empty"] = "empty";
    QueueCommand["ClearFailed"] = "clear-failed";
})(QueueCommand || (exports.QueueCommand = QueueCommand = {}));
exports.QueueCommandSchema = zod_1.default
    .enum(QueueCommand)
    .describe('Queue command to execute')
    .meta({ id: 'QueueCommand' });
var JobStatus;
(function (JobStatus) {
    JobStatus["Success"] = "success";
    JobStatus["Failed"] = "failed";
    JobStatus["Skipped"] = "skipped";
})(JobStatus || (exports.JobStatus = JobStatus = {}));
var QueueCleanType;
(function (QueueCleanType) {
    QueueCleanType["Failed"] = "failed";
})(QueueCleanType || (exports.QueueCleanType = QueueCleanType = {}));
var VectorIndex;
(function (VectorIndex) {
    VectorIndex["Clip"] = "clip_index";
    VectorIndex["Face"] = "face_index";
})(VectorIndex || (exports.VectorIndex = VectorIndex = {}));
var DatabaseLock;
(function (DatabaseLock) {
    DatabaseLock[DatabaseLock["GeodataImport"] = 100] = "GeodataImport";
    DatabaseLock[DatabaseLock["Migrations"] = 200] = "Migrations";
    DatabaseLock[DatabaseLock["SystemFileMounts"] = 300] = "SystemFileMounts";
    DatabaseLock[DatabaseLock["StorageTemplateMigration"] = 420] = "StorageTemplateMigration";
    DatabaseLock[DatabaseLock["VersionHistory"] = 500] = "VersionHistory";
    DatabaseLock[DatabaseLock["CLIPDimSize"] = 512] = "CLIPDimSize";
    DatabaseLock[DatabaseLock["Library"] = 1337] = "Library";
    DatabaseLock[DatabaseLock["NightlyJobs"] = 600] = "NightlyJobs";
    DatabaseLock[DatabaseLock["PluginImport"] = 666] = "PluginImport";
    DatabaseLock[DatabaseLock["MediaLocation"] = 700] = "MediaLocation";
    DatabaseLock[DatabaseLock["GetSystemConfig"] = 69] = "GetSystemConfig";
    DatabaseLock[DatabaseLock["BackupDatabase"] = 42] = "BackupDatabase";
    DatabaseLock[DatabaseLock["MaintenanceOperation"] = 621] = "MaintenanceOperation";
    DatabaseLock[DatabaseLock["MemoryCreation"] = 777] = "MemoryCreation";
    DatabaseLock[DatabaseLock["IntegrityCheck"] = 67] = "IntegrityCheck";
    DatabaseLock[DatabaseLock["VersionCheck"] = 800] = "VersionCheck";
    DatabaseLock[DatabaseLock["HlsSessionCleanup"] = 850] = "HlsSessionCleanup";
})(DatabaseLock || (exports.DatabaseLock = DatabaseLock = {}));
var MaintenanceAction;
(function (MaintenanceAction) {
    MaintenanceAction["Start"] = "start";
    MaintenanceAction["End"] = "end";
    MaintenanceAction["SelectDatabaseRestore"] = "select_database_restore";
    MaintenanceAction["RestoreDatabase"] = "restore_database";
})(MaintenanceAction || (exports.MaintenanceAction = MaintenanceAction = {}));
exports.MaintenanceActionSchema = zod_1.default
    .enum(MaintenanceAction)
    .describe('Maintenance action')
    .meta({ id: 'MaintenanceAction' });
var ExitCode;
(function (ExitCode) {
    ExitCode[ExitCode["AppRestart"] = 7] = "AppRestart";
})(ExitCode || (exports.ExitCode = ExitCode = {}));
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["AssetOcrV1"] = "AssetOcrV1";
    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 || (exports.SyncRequestType = SyncRequestType = {}));
exports.SyncRequestTypeSchema = zod_1.default
    .enum(SyncRequestType)
    .describe('Sync request type')
    .meta({ id: 'SyncRequestType' });
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["AssetOcrV1"] = "AssetOcrV1";
    SyncEntityType["AssetOcrDeleteV1"] = "AssetOcrDeleteV1";
    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 || (exports.SyncEntityType = SyncEntityType = {}));
exports.SyncEntityTypeSchema = zod_1.default.enum(SyncEntityType).describe('Sync entity type').meta({ id: 'SyncEntityType' });
var NotificationLevel;
(function (NotificationLevel) {
    NotificationLevel["Success"] = "success";
    NotificationLevel["Error"] = "error";
    NotificationLevel["Warning"] = "warning";
    NotificationLevel["Info"] = "info";
})(NotificationLevel || (exports.NotificationLevel = NotificationLevel = {}));
exports.NotificationLevelSchema = zod_1.default
    .enum(NotificationLevel)
    .describe('Notification level')
    .meta({ id: 'NotificationLevel' });
var NotificationType;
(function (NotificationType) {
    NotificationType["JobFailed"] = "JobFailed";
    NotificationType["BackupFailed"] = "BackupFailed";
    NotificationType["SystemMessage"] = "SystemMessage";
    NotificationType["AlbumInvite"] = "AlbumInvite";
    NotificationType["AlbumUpdate"] = "AlbumUpdate";
    NotificationType["Custom"] = "Custom";
})(NotificationType || (exports.NotificationType = NotificationType = {}));
exports.NotificationTypeSchema = zod_1.default
    .enum(NotificationType)
    .describe('Notification type')
    .meta({ id: 'NotificationType' });
var OAuthTokenEndpointAuthMethod;
(function (OAuthTokenEndpointAuthMethod) {
    OAuthTokenEndpointAuthMethod["ClientSecretPost"] = "client_secret_post";
    OAuthTokenEndpointAuthMethod["ClientSecretBasic"] = "client_secret_basic";
})(OAuthTokenEndpointAuthMethod || (exports.OAuthTokenEndpointAuthMethod = OAuthTokenEndpointAuthMethod = {}));
exports.OAuthTokenEndpointAuthMethodSchema = zod_1.default
    .enum(OAuthTokenEndpointAuthMethod)
    .describe('OAuth token endpoint auth method')
    .meta({ id: 'OAuthTokenEndpointAuthMethod' });
var AssetVisibility;
(function (AssetVisibility) {
    AssetVisibility["Archive"] = "archive";
    AssetVisibility["Timeline"] = "timeline";
    AssetVisibility["Hidden"] = "hidden";
    AssetVisibility["Locked"] = "locked";
})(AssetVisibility || (exports.AssetVisibility = AssetVisibility = {}));
exports.AssetVisibilitySchema = zod_1.default
    .enum(AssetVisibility)
    .describe('Asset visibility')
    .meta({ id: 'AssetVisibility' });
var CronJob;
(function (CronJob) {
    CronJob["LibraryScan"] = "LibraryScan";
    CronJob["NightlyJobs"] = "NightlyJobs";
    CronJob["VersionCheck"] = "VersionCheck";
})(CronJob || (exports.CronJob = CronJob = {}));
var ApiTag;
(function (ApiTag) {
    ApiTag["Activities"] = "Activities";
    ApiTag["Albums"] = "Albums";
    ApiTag["ApiKeys"] = "API keys";
    ApiTag["Authentication"] = "Authentication";
    ApiTag["AuthenticationAdmin"] = "Authentication (admin)";
    ApiTag["Assets"] = "Assets";
    ApiTag["DatabaseBackups"] = "Database Backups (admin)";
    ApiTag["Deprecated"] = "Deprecated";
    ApiTag["Download"] = "Download";
    ApiTag["Duplicates"] = "Duplicates";
    ApiTag["Faces"] = "Faces";
    ApiTag["Integrity"] = "Integrity (admin)";
    ApiTag["Jobs"] = "Jobs";
    ApiTag["Libraries"] = "Libraries";
    ApiTag["Maintenance"] = "Maintenance (admin)";
    ApiTag["Map"] = "Map";
    ApiTag["Memories"] = "Memories";
    ApiTag["Notifications"] = "Notifications";
    ApiTag["NotificationsAdmin"] = "Notifications (admin)";
    ApiTag["Partners"] = "Partners";
    ApiTag["People"] = "People";
    ApiTag["Plugins"] = "Plugins";
    ApiTag["Queues"] = "Queues";
    ApiTag["Search"] = "Search";
    ApiTag["Server"] = "Server";
    ApiTag["Sessions"] = "Sessions";
    ApiTag["SharedLinks"] = "Shared links";
    ApiTag["Stacks"] = "Stacks";
    ApiTag["Sync"] = "Sync";
    ApiTag["SystemConfig"] = "System config";
    ApiTag["SystemMetadata"] = "System metadata";
    ApiTag["Tags"] = "Tags";
    ApiTag["Timeline"] = "Timeline";
    ApiTag["Trash"] = "Trash";
    ApiTag["UsersAdmin"] = "Users (admin)";
    ApiTag["Users"] = "Users";
    ApiTag["Views"] = "Views";
    ApiTag["Workflows"] = "Workflows";
})(ApiTag || (exports.ApiTag = ApiTag = {}));
var PluginContext;
(function (PluginContext) {
    PluginContext["Asset"] = "asset";
    PluginContext["Album"] = "album";
    PluginContext["Person"] = "person";
})(PluginContext || (exports.PluginContext = PluginContext = {}));
exports.PluginContextSchema = zod_1.default.enum(PluginContext).describe('Plugin context').meta({ id: 'PluginContextType' });
exports.WorkflowTriggerSchema = zod_1.default
    .enum(plugin_sdk_1.WorkflowTrigger)
    .describe('Plugin trigger type')
    .meta({ id: 'WorkflowTrigger' });
var WorkflowType;
(function (WorkflowType) {
    WorkflowType["AssetV1"] = "AssetV1";
})(WorkflowType || (exports.WorkflowType = WorkflowType = {}));
exports.WorkflowTypeSchema = zod_1.default.enum(WorkflowType).describe('Workflow type').meta({ id: 'WorkflowType' });
var CalendarHeatmapType;
(function (CalendarHeatmapType) {
    CalendarHeatmapType["Upload"] = "Upload";
    CalendarHeatmapType["Taken"] = "Taken";
})(CalendarHeatmapType || (exports.CalendarHeatmapType = CalendarHeatmapType = {}));
var SearchOrderField;
(function (SearchOrderField) {
    SearchOrderField["FileCreatedAt"] = "fileCreatedAt";
    SearchOrderField["LocalDateTime"] = "localDateTime";
    SearchOrderField["FileSizeInBytes"] = "fileSizeInBytes";
    SearchOrderField["Rating"] = "rating";
})(SearchOrderField || (exports.SearchOrderField = SearchOrderField = {}));
exports.SearchOrderFieldSchema = zod_1.default.enum(SearchOrderField).meta({ id: 'SearchOrderField' });
//# sourceMappingURL=enum.js.map