jellyfin/MediaBrowser.Common/Api/Policies.cs

98 lines
3.0 KiB
C#
Raw Permalink Normal View History

namespace MediaBrowser.Common.Api;
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policies for the API authorization.
/// </summary>
public static class Policies
2019-11-24 18:25:46 +00:00
{
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for requiring first time setup or elevated privileges.
/// </summary>
public const string FirstTimeSetupOrElevated = "FirstTimeSetupOrElevated";
2019-11-24 18:25:46 +00:00
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for requiring elevated privileges.
/// </summary>
public const string RequiresElevation = "RequiresElevation";
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for allowing local access only.
/// </summary>
public const string LocalAccessOnly = "LocalAccessOnly";
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for escaping schedule controls.
/// </summary>
public const string IgnoreParentalControl = "IgnoreParentalControl";
2020-06-19 19:10:10 +00:00
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for requiring download permission.
/// </summary>
public const string Download = "Download";
2020-08-06 14:17:45 +00:00
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for requiring first time setup or default permissions.
/// </summary>
public const string FirstTimeSetupOrDefault = "FirstTimeSetupOrDefault";
2020-08-06 14:17:45 +00:00
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for requiring local access or elevated privileges.
/// </summary>
public const string LocalAccessOrRequiresElevation = "LocalAccessOrRequiresElevation";
2020-08-06 14:17:45 +00:00
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for requiring (anonymous) LAN access.
/// </summary>
public const string AnonymousLanAccessPolicy = "AnonymousLanAccessPolicy";
2021-04-10 11:03:52 +00:00
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for escaping schedule controls or requiring first time setup.
/// </summary>
public const string FirstTimeSetupOrIgnoreParentalControl = "FirstTimeSetupOrIgnoreParentalControl";
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for accessing SyncPlay.
/// </summary>
public const string SyncPlayHasAccess = "SyncPlayHasAccess";
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for creating a SyncPlay group.
/// </summary>
public const string SyncPlayCreateGroup = "SyncPlayCreateGroup";
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for joining a SyncPlay group.
/// </summary>
public const string SyncPlayJoinGroup = "SyncPlayJoinGroup";
2023-01-31 11:18:10 +00:00
/// <summary>
/// Policy name for accessing a SyncPlay group.
/// </summary>
public const string SyncPlayIsInGroup = "SyncPlayIsInGroup";
/// <summary>
/// Policy name for accessing collection management.
/// </summary>
public const string CollectionManagement = "CollectionManagement";
/// <summary>
/// Policy name for accessing LiveTV.
/// </summary>
public const string LiveTvAccess = "LiveTvAccess";
/// <summary>
/// Policy name for managing LiveTV.
/// </summary>
public const string LiveTvManagement = "LiveTvManagement";
2023-10-16 21:57:08 +00:00
/// <summary>
/// Policy name for accessing subtitles management.
/// </summary>
public const string SubtitleManagement = "SubtitleManagement";
/// <summary>
/// Policy name for accessing lyric management.
/// </summary>
public const string LyricManagement = "LyricManagement";
2019-11-24 18:25:46 +00:00
}