feat: new config endpoints (#30881)
* refactor: config endpoints * chore: pr feedback
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user