feat: new config endpoints (#30881)

* refactor: config endpoints

* chore: pr feedback
This commit is contained in:
Jason Rasmussen
2026-08-20 11:46:17 -04:00
committed by GitHub
parent 47c5a3dbf6
commit e529557160
60 changed files with 3974 additions and 2755 deletions
+21
View File
@@ -161,6 +161,11 @@ export enum Permission {
BackupUpload = 'backup.upload',
BackupDelete = 'backup.delete',
AdminConfigRead = 'adminConfig.read',
AdminConfigUpdate = 'adminConfig.update',
UserConfigRead = 'userConfig.read',
DuplicateRead = 'duplicate.read',
DuplicateDelete = 'duplicate.delete',
@@ -1165,12 +1170,25 @@ export const AssetVisibilitySchema = z
.describe('Asset visibility')
.meta({ id: 'AssetVisibility' });
export enum ReleaseChannel {
Stable = 'stable',
ReleaseCandidate = 'releaseCandidate',
}
export const ReleaseChannelSchema = z.enum(ReleaseChannel).describe('Release channel').meta({ id: 'ReleaseChannel' });
export enum CronJob {
LibraryScan = 'LibraryScan',
NightlyJobs = 'NightlyJobs',
VersionCheck = 'VersionCheck',
}
export enum ConfigVisibility {
Public = 'Public',
User = 'User',
Admin = 'Admin',
}
export enum ApiTag {
Activities = 'Activities',
Albums = 'Albums',
@@ -1178,6 +1196,9 @@ export enum ApiTag {
Authentication = 'Authentication',
AuthenticationAdmin = 'Authentication (admin)',
Assets = 'Assets',
ConfigUser = 'Config (user)',
ConfigAdmin = 'Config (admin)',
ConfigPublic = 'Config (public)',
DatabaseBackups = 'Database Backups (admin)',
Deprecated = 'Deprecated',
Download = 'Download',