This commit is contained in:
2026-03-27 17:34:40 +07:00
parent 46b7f5dfa5
commit 17649bd1c0
15 changed files with 280 additions and 35 deletions
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-get-traffic-stats"
description = "Enables the get_traffic_stats command without any pre-configured scope."
commands.allow = ["get_traffic_stats"]
[[permission]]
identifier = "deny-get-traffic-stats"
description = "Denies the get_traffic_stats command without any pre-configured scope."
commands.deny = ["get_traffic_stats"]
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-traffic-stats"
description = "Enables the traffic_stats command without any pre-configured scope."
commands.allow = ["traffic_stats"]
[[permission]]
identifier = "deny-traffic-stats"
description = "Denies the traffic_stats command without any pre-configured scope."
commands.deny = ["traffic_stats"]
@@ -36,6 +36,32 @@ Denies the check_actual_vpn_status command without any pre-configured scope.
<tr>
<td>
`vpn:allow-get-traffic-stats`
</td>
<td>
Enables the get_traffic_stats command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`vpn:deny-get-traffic-stats`
</td>
<td>
Denies the get_traffic_stats command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`vpn:allow-registerListener`
</td>
@@ -114,6 +140,32 @@ Denies the stop_vpn command without any pre-configured scope.
<tr>
<td>
`vpn:allow-traffic-stats`
</td>
<td>
Enables the traffic_stats command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`vpn:deny-traffic-stats`
</td>
<td>
Denies the traffic_stats command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`vpn:allow-unregisterListener`
</td>
@@ -3,7 +3,7 @@ identifier = "allow-vpn-control"
description = "Allows Vpn Control"
[permission.commands]
allow = ["start_vpn", "stop_vpn", "check_actual_vpn_status", "registerListener", "unregisterListener"]
allow = ["start_vpn", "stop_vpn", "get_traffic_stats", "check_actual_vpn_status", "registerListener", "unregisterListener"]
[permission.events]
allow = ["status-change"]
@@ -306,6 +306,18 @@
"const": "deny-check-actual-vpn-status",
"markdownDescription": "Denies the check_actual_vpn_status command without any pre-configured scope."
},
{
"description": "Enables the get_traffic_stats command without any pre-configured scope.",
"type": "string",
"const": "allow-get-traffic-stats",
"markdownDescription": "Enables the get_traffic_stats command without any pre-configured scope."
},
{
"description": "Denies the get_traffic_stats command without any pre-configured scope.",
"type": "string",
"const": "deny-get-traffic-stats",
"markdownDescription": "Denies the get_traffic_stats command without any pre-configured scope."
},
{
"description": "Enables the registerListener command without any pre-configured scope.",
"type": "string",
@@ -342,6 +354,18 @@
"const": "deny-stop-vpn",
"markdownDescription": "Denies the stop_vpn command without any pre-configured scope."
},
{
"description": "Enables the traffic_stats command without any pre-configured scope.",
"type": "string",
"const": "allow-traffic-stats",
"markdownDescription": "Enables the traffic_stats command without any pre-configured scope."
},
{
"description": "Denies the traffic_stats command without any pre-configured scope.",
"type": "string",
"const": "deny-traffic-stats",
"markdownDescription": "Denies the traffic_stats command without any pre-configured scope."
},
{
"description": "Enables the unregisterListener command without any pre-configured scope.",
"type": "string",