2023-11-10 16:17:22 +00:00
|
|
|
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";
|
2020-06-15 18:49:54 +00:00
|
|
|
|
2023-01-31 11:18:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for allowing local access only.
|
|
|
|
/// </summary>
|
|
|
|
public const string LocalAccessOnly = "LocalAccessOnly";
|
2020-06-15 18:49:54 +00:00
|
|
|
|
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";
|
2020-12-03 09:43:44 +00:00
|
|
|
|
2023-01-31 11:18:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for accessing SyncPlay.
|
|
|
|
/// </summary>
|
|
|
|
public const string SyncPlayHasAccess = "SyncPlayHasAccess";
|
2020-12-03 09:43:44 +00:00
|
|
|
|
2023-01-31 11:18:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for creating a SyncPlay group.
|
|
|
|
/// </summary>
|
|
|
|
public const string SyncPlayCreateGroup = "SyncPlayCreateGroup";
|
2020-12-07 09:33:15 +00:00
|
|
|
|
2023-01-31 11:18:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for joining a SyncPlay group.
|
|
|
|
/// </summary>
|
|
|
|
public const string SyncPlayJoinGroup = "SyncPlayJoinGroup";
|
2020-12-07 09:33:15 +00:00
|
|
|
|
2023-01-31 11:18:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Policy name for accessing a SyncPlay group.
|
|
|
|
/// </summary>
|
|
|
|
public const string SyncPlayIsInGroup = "SyncPlayIsInGroup";
|
2023-02-13 14:42:04 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for accessing collection management.
|
|
|
|
/// </summary>
|
|
|
|
public const string CollectionManagement = "CollectionManagement";
|
2023-02-13 14:38:18 +00:00
|
|
|
|
|
|
|
/// <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";
|
2024-02-26 12:09:40 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Policy name for accessing lyric management.
|
|
|
|
/// </summary>
|
|
|
|
public const string LyricManagement = "LyricManagement";
|
2019-11-24 18:25:46 +00:00
|
|
|
}
|