MinimumPrivilegeLevel
satisfactory-dedicated-server-sdk
Defined in: src/Interfaces/MinimumPrivilegeLevel.ts:24
Represents the minimum privilege level required to access certain API endpoints or perform specific actions on a Satisfactory Dedicated Server.
This enum is used to control authorization and ensure that only users or tokens with sufficient privileges can execute restricted operations.
Example
function checkAccess(level: MinimumPrivilegeLevel) {
if (level === MinimumPrivilegeLevel.ADMINISTRATOR) {
console.log("Admin access granted");
}
}
Enumeration Members
ADMINISTRATOR
ADMINISTRATOR:
"Administrator"
Defined in: src/Interfaces/MinimumPrivilegeLevel.ts:27
Full administrator privileges.
API_TOKEN
API_TOKEN:
"APIToken"
Defined in: src/Interfaces/MinimumPrivilegeLevel.ts:29
Access granted via an API token.
CLIENT
CLIENT:
"Client"
Defined in: src/Interfaces/MinimumPrivilegeLevel.ts:26
Standard client-level access.
INITIAL_ADMIN
INITIAL_ADMIN:
"InitialAdmin"
Defined in: src/Interfaces/MinimumPrivilegeLevel.ts:28
The first admin created during server setup.
NOT_AUTHENTICATED
NOT_AUTHENTICATED:
"NotAuthenticated"
Defined in: src/Interfaces/MinimumPrivilegeLevel.ts:25
Represents an unauthenticated user.