jellyfin-discord-bot/jellyfin/model/serverConfiguration.ts

411 lines
13 KiB
TypeScript

/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.8.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RequestFile } from './models';
import { ImageSavingConvention } from './imageSavingConvention';
import { MetadataOptions } from './metadataOptions';
import { NameValuePair } from './nameValuePair';
import { PathSubstitution } from './pathSubstitution';
import { RepositoryInfo } from './repositoryInfo';
/**
* Represents the server configuration.
*/
export class ServerConfiguration {
/**
* Gets or sets the number of days we should retain log files.
*/
'logFileRetentionDays'?: number;
/**
* Gets or sets a value indicating whether this instance is first run.
*/
'isStartupWizardCompleted'?: boolean;
/**
* Gets or sets the cache path.
*/
'cachePath'?: string | null;
/**
* Gets or sets the last known version that was ran using the configuration.
*/
'previousVersion'?: string | null;
/**
* Gets or sets the stringified PreviousVersion to be stored/loaded, because System.Version itself isn\'t xml-serializable.
*/
'previousVersionStr'?: string | null;
/**
* Gets or sets a value indicating whether to enable prometheus metrics exporting.
*/
'enableMetrics'?: boolean;
'enableNormalizedItemByNameIds'?: boolean;
/**
* Gets or sets a value indicating whether this instance is port authorized.
*/
'isPortAuthorized'?: boolean;
/**
* Gets or sets a value indicating whether quick connect is available for use on this server.
*/
'quickConnectAvailable'?: boolean;
/**
* Gets or sets a value indicating whether [enable case sensitive item ids].
*/
'enableCaseSensitiveItemIds'?: boolean;
'disableLiveTvChannelUserDataName'?: boolean;
/**
* Gets or sets the metadata path.
*/
'metadataPath'?: string;
'metadataNetworkPath'?: string;
/**
* Gets or sets the preferred metadata language.
*/
'preferredMetadataLanguage'?: string;
/**
* Gets or sets the metadata country code.
*/
'metadataCountryCode'?: string;
/**
* Gets or sets characters to be replaced with a \' \' in strings to create a sort name.
*/
'sortReplaceCharacters'?: Array<string>;
/**
* Gets or sets characters to be removed from strings to create a sort name.
*/
'sortRemoveCharacters'?: Array<string>;
/**
* Gets or sets words to be removed from strings to create a sort name.
*/
'sortRemoveWords'?: Array<string>;
/**
* Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated.
*/
'minResumePct'?: number;
/**
* Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched.
*/
'maxResumePct'?: number;
/**
* Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates..
*/
'minResumeDurationSeconds'?: number;
/**
* Gets or sets the minimum minutes of a book that must be played in order for playstate to be updated.
*/
'minAudiobookResume'?: number;
/**
* Gets or sets the remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched.
*/
'maxAudiobookResume'?: number;
/**
* Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed Some delay is necessary with some items because their creation is not atomic. It involves the creation of several different directories and files.
*/
'libraryMonitorDelay'?: number;
'imageSavingConvention'?: ImageSavingConvention;
'metadataOptions'?: Array<MetadataOptions>;
'skipDeserializationForBasicTypes'?: boolean;
'serverName'?: string;
'uICulture'?: string;
'saveMetadataHidden'?: boolean;
'contentTypes'?: Array<NameValuePair>;
'remoteClientBitrateLimit'?: number;
'enableFolderView'?: boolean;
'enableGroupingIntoCollections'?: boolean;
'displaySpecialsWithinSeasons'?: boolean;
'codecsUsed'?: Array<string>;
'pluginRepositories'?: Array<RepositoryInfo>;
'enableExternalContentInSuggestions'?: boolean;
'imageExtractionTimeoutMs'?: number;
'pathSubstitutions'?: Array<PathSubstitution>;
/**
* Gets or sets a value indicating whether slow server responses should be logged as a warning.
*/
'enableSlowResponseWarning'?: boolean;
/**
* Gets or sets the threshold for the slow response time warning in ms.
*/
'slowResponseThresholdMs'?: number;
/**
* Gets or sets the cors hosts.
*/
'corsHosts'?: Array<string>;
/**
* Gets or sets the number of days we should retain activity logs.
*/
'activityLogRetentionDays'?: number | null;
/**
* Gets or sets the how the library scan fans out.
*/
'libraryScanFanoutConcurrency'?: number;
/**
* Gets or sets the how many metadata refreshes can run concurrently.
*/
'libraryMetadataRefreshConcurrency'?: number;
/**
* Gets or sets a value indicating whether older plugins should automatically be deleted from the plugin folder.
*/
'removeOldPlugins'?: boolean;
/**
* Gets or sets a value indicating whether clients should be allowed to upload logs.
*/
'allowClientLogUpload'?: boolean;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "logFileRetentionDays",
"baseName": "LogFileRetentionDays",
"type": "number"
},
{
"name": "isStartupWizardCompleted",
"baseName": "IsStartupWizardCompleted",
"type": "boolean"
},
{
"name": "cachePath",
"baseName": "CachePath",
"type": "string"
},
{
"name": "previousVersion",
"baseName": "PreviousVersion",
"type": "string"
},
{
"name": "previousVersionStr",
"baseName": "PreviousVersionStr",
"type": "string"
},
{
"name": "enableMetrics",
"baseName": "EnableMetrics",
"type": "boolean"
},
{
"name": "enableNormalizedItemByNameIds",
"baseName": "EnableNormalizedItemByNameIds",
"type": "boolean"
},
{
"name": "isPortAuthorized",
"baseName": "IsPortAuthorized",
"type": "boolean"
},
{
"name": "quickConnectAvailable",
"baseName": "QuickConnectAvailable",
"type": "boolean"
},
{
"name": "enableCaseSensitiveItemIds",
"baseName": "EnableCaseSensitiveItemIds",
"type": "boolean"
},
{
"name": "disableLiveTvChannelUserDataName",
"baseName": "DisableLiveTvChannelUserDataName",
"type": "boolean"
},
{
"name": "metadataPath",
"baseName": "MetadataPath",
"type": "string"
},
{
"name": "metadataNetworkPath",
"baseName": "MetadataNetworkPath",
"type": "string"
},
{
"name": "preferredMetadataLanguage",
"baseName": "PreferredMetadataLanguage",
"type": "string"
},
{
"name": "metadataCountryCode",
"baseName": "MetadataCountryCode",
"type": "string"
},
{
"name": "sortReplaceCharacters",
"baseName": "SortReplaceCharacters",
"type": "Array<string>"
},
{
"name": "sortRemoveCharacters",
"baseName": "SortRemoveCharacters",
"type": "Array<string>"
},
{
"name": "sortRemoveWords",
"baseName": "SortRemoveWords",
"type": "Array<string>"
},
{
"name": "minResumePct",
"baseName": "MinResumePct",
"type": "number"
},
{
"name": "maxResumePct",
"baseName": "MaxResumePct",
"type": "number"
},
{
"name": "minResumeDurationSeconds",
"baseName": "MinResumeDurationSeconds",
"type": "number"
},
{
"name": "minAudiobookResume",
"baseName": "MinAudiobookResume",
"type": "number"
},
{
"name": "maxAudiobookResume",
"baseName": "MaxAudiobookResume",
"type": "number"
},
{
"name": "libraryMonitorDelay",
"baseName": "LibraryMonitorDelay",
"type": "number"
},
{
"name": "imageSavingConvention",
"baseName": "ImageSavingConvention",
"type": "ImageSavingConvention"
},
{
"name": "metadataOptions",
"baseName": "MetadataOptions",
"type": "Array<MetadataOptions>"
},
{
"name": "skipDeserializationForBasicTypes",
"baseName": "SkipDeserializationForBasicTypes",
"type": "boolean"
},
{
"name": "serverName",
"baseName": "ServerName",
"type": "string"
},
{
"name": "uICulture",
"baseName": "UICulture",
"type": "string"
},
{
"name": "saveMetadataHidden",
"baseName": "SaveMetadataHidden",
"type": "boolean"
},
{
"name": "contentTypes",
"baseName": "ContentTypes",
"type": "Array<NameValuePair>"
},
{
"name": "remoteClientBitrateLimit",
"baseName": "RemoteClientBitrateLimit",
"type": "number"
},
{
"name": "enableFolderView",
"baseName": "EnableFolderView",
"type": "boolean"
},
{
"name": "enableGroupingIntoCollections",
"baseName": "EnableGroupingIntoCollections",
"type": "boolean"
},
{
"name": "displaySpecialsWithinSeasons",
"baseName": "DisplaySpecialsWithinSeasons",
"type": "boolean"
},
{
"name": "codecsUsed",
"baseName": "CodecsUsed",
"type": "Array<string>"
},
{
"name": "pluginRepositories",
"baseName": "PluginRepositories",
"type": "Array<RepositoryInfo>"
},
{
"name": "enableExternalContentInSuggestions",
"baseName": "EnableExternalContentInSuggestions",
"type": "boolean"
},
{
"name": "imageExtractionTimeoutMs",
"baseName": "ImageExtractionTimeoutMs",
"type": "number"
},
{
"name": "pathSubstitutions",
"baseName": "PathSubstitutions",
"type": "Array<PathSubstitution>"
},
{
"name": "enableSlowResponseWarning",
"baseName": "EnableSlowResponseWarning",
"type": "boolean"
},
{
"name": "slowResponseThresholdMs",
"baseName": "SlowResponseThresholdMs",
"type": "number"
},
{
"name": "corsHosts",
"baseName": "CorsHosts",
"type": "Array<string>"
},
{
"name": "activityLogRetentionDays",
"baseName": "ActivityLogRetentionDays",
"type": "number"
},
{
"name": "libraryScanFanoutConcurrency",
"baseName": "LibraryScanFanoutConcurrency",
"type": "number"
},
{
"name": "libraryMetadataRefreshConcurrency",
"baseName": "LibraryMetadataRefreshConcurrency",
"type": "number"
},
{
"name": "removeOldPlugins",
"baseName": "RemoveOldPlugins",
"type": "boolean"
},
{
"name": "allowClientLogUpload",
"baseName": "AllowClientLogUpload",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return ServerConfiguration.attributeTypeMap;
}
}
export namespace ServerConfiguration {
}