aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Constants/Policies.cs
blob: a72eeea284122372fec283f1089e20116ef3d3c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
namespace Jellyfin.Api.Constants
{
    /// <summary>
    /// Policies for the API authorization.
    /// </summary>
    public static class Policies
    {
        /// <summary>
        /// Policy name for default authorization.
        /// </summary>
        public const string DefaultAuthorization = "DefaultAuthorization";

        /// <summary>
        /// Policy name for requiring first time setup or elevated privileges.
        /// </summary>
        public const string FirstTimeSetupOrElevated = "FirstTimeSetupOrElevated";

        /// <summary>
        /// Policy name for requiring elevated privileges.
        /// </summary>
        public const string RequiresElevation = "RequiresElevation";

        /// <summary>
        /// Policy name for allowing local access only.
        /// </summary>
        public const string LocalAccessOnly = "LocalAccessOnly";

        /// <summary>
        /// Policy name for escaping schedule controls.
        /// </summary>
        public const string IgnoreParentalControl = "IgnoreParentalControl";

        /// <summary>
        /// Policy name for requiring download permission.
        /// </summary>
        public const string Download = "Download";

        /// <summary>
        /// Policy name for requiring first time setup or default permissions.
        /// </summary>
        public const string FirstTimeSetupOrDefault = "FirstTimeSetupOrDefault";

        /// <summary>
        /// Policy name for requiring local access or elevated privileges.
        /// </summary>
        public const string LocalAccessOrRequiresElevation = "LocalAccessOrRequiresElevation";

        /// <summary>
        /// Policy name for requiring (anonymous) LAN access.
        /// </summary>
        public const string AnonymousLanAccessPolicy = "AnonymousLanAccessPolicy";

        /// <summary>
        /// Policy name for escaping schedule controls or requiring first time setup.
        /// </summary>
        public const string FirstTimeSetupOrIgnoreParentalControl = "FirstTimeSetupOrIgnoreParentalControl";

        /// <summary>
        /// Policy name for accessing SyncPlay.
        /// </summary>
        public const string SyncPlayHasAccess = "SyncPlayHasAccess";

        /// <summary>
        /// Policy name for creating a SyncPlay group.
        /// </summary>
        public const string SyncPlayCreateGroup = "SyncPlayCreateGroup";

        /// <summary>
        /// Policy name for joining a SyncPlay group.
        /// </summary>
        public const string SyncPlayJoinGroup = "SyncPlayJoinGroup";

        /// <summary>
        /// Policy name for accessing a SyncPlay group.
        /// </summary>
        public const string SyncPlayIsInGroup = "SyncPlayIsInGroup";
    }
}