1
+ /**
2
+ * TeamSpeak Enums
3
+ */
1
4
2
- /**
3
- * TeamSpeak Enums
4
- */
5
+ export enum HostMessageMode {
6
+ /** don't display anything */
7
+ NONE = 0 ,
8
+ /** display message in chatlog */
9
+ LOG = 1 ,
10
+ /** display message in modal dialog */
11
+ MODAL = 2 ,
12
+ /** display message in modal dialog and close connection */
13
+ MODALQUIT = 3
14
+ }
5
15
6
- export enum HostMessageMode {
7
- /** don't display anything */
8
- NONE = 0 ,
9
- /** display message in chatlog */
10
- LOG = 1 ,
11
- /** display message in modal dialog */
12
- MODAL = 2 ,
13
- /** display message in modal dialog and close connection */
14
- MODALQUIT = 3
15
- }
16
+ export enum HostBannerMode {
17
+ /** do not adjust */
18
+ NOADJUST = 0 ,
19
+ /** adjust but ignore aspect ratio (like TeamSpeak 2) */
20
+ IGNOREASPECT = 1 ,
21
+ /** adjust and keep aspect ratio */
22
+ KEEPASPECT = 2
23
+ }
16
24
17
- export enum HostBannerMode {
18
- /** do not adjust */
19
- NOADJUST = 0 ,
20
- /** adjust but ignore aspect ratio (like TeamSpeak 2) */
21
- IGNOREASPECT = 1 ,
22
- /** adjust and keep aspect ratio */
23
- KEEPASPECT = 2
24
- }
25
+ export enum Codec {
26
+ /** speex narrowband (mono, 16bit, 8kHz) */
27
+ SPEEX_NARROWBAND = 0 ,
28
+ /** speex wideband (mono, 16bit, 16kHz) */
29
+ SPEEX_WIDEBAND = 1 ,
30
+ /** speex ultra-wideband (mono, 16bit, 32kHz) */
31
+ SPEEX_ULTRAWIDEBAND = 2 ,
32
+ /** celt mono (mono, 16bit, 48kHz) */
33
+ CELT_MONO = 3 ,
34
+ OPUS_VOICE = 4 ,
35
+ OPUS_MUSIC = 5
36
+ }
25
37
26
- export enum Codec {
27
- /** speex narrowband (mono, 16bit, 8kHz) */
28
- SPEEX_NARROWBAND = 0 ,
29
- /** speex wideband (mono, 16bit, 16kHz) */
30
- SPEEX_WIDEBAND = 1 ,
31
- /** speex ultra-wideband (mono, 16bit, 32kHz) */
32
- SPEEX_ULTRAWIDEBAND = 2 ,
33
- /** celt mono (mono, 16bit, 48kHz) */
34
- CELT_MONO = 3 ,
35
- OPUS_VOICE = 4 ,
36
- OPUS_MUSIC = 5
37
- }
38
+ export enum CodecEncryptionMode {
39
+ /** configure per channel */
40
+ INDIVIDUAL = 0 ,
41
+ /** globally disabled */
42
+ DISABLED = 1 ,
43
+ /** globally enabled */
44
+ ENABLED = 2
45
+ }
38
46
39
- export enum CodecEncryptionMode {
40
- /** configure per channel */
41
- INDIVIDUAL = 0 ,
42
- /** globally disabled */
43
- DISABLED = 1 ,
44
- /** globally enabled */
45
- ENABLED = 2
46
- }
47
+ export enum TextMessageTargetMode {
48
+ /** target is a client */
49
+ CLIENT = 1 ,
50
+ /** target is a channel */
51
+ CHANNEL = 2 ,
52
+ /** target is a virtual server */
53
+ SERVER = 3
54
+ }
47
55
48
- export enum TextMessageTargetMode {
49
- /** target is a client */
50
- CLIENT = 1 ,
51
- /** target is a channel */
52
- CHANNEL = 2 ,
53
- /** target is a virtual server */
54
- SERVER = 3
55
- }
56
+ export enum LogLevel {
57
+ /** everything that is really bad */
58
+ ERROR = 1 ,
59
+ /** everything that might be bad */
60
+ WARNING = 2 ,
61
+ /** output that might help find a problem */
62
+ DEBUG = 3 ,
63
+ /** informational output */
64
+ INFO = 4
65
+ }
56
66
57
- export enum LogLevel {
58
- /** everything that is really bad */
59
- ERROR = 1 ,
60
- /** everything that might be bad */
61
- WARNING = 2 ,
62
- /** output that might help find a problem */
63
- DEBUG = 3 ,
64
- /** informational output */
65
- INFO = 4
66
- }
67
+ export enum ReasonIdentifier {
68
+ /** kick client from channel */
69
+ KICK_CHANNEL = 4 ,
70
+ /** kick client from server */
71
+ KICK_SERVER = 5
72
+ }
67
73
68
- export enum ReasonIdentifier {
69
- /** kick client from channel */
70
- KICK_CHANNEL = 4 ,
71
- /** kick client from server */
72
- KICK_SERVER = 5
73
- }
74
+ export enum PermissionGroupDatabaseTypes {
75
+ /** template group (used for new virtual servers) */
76
+ Template = 0 ,
77
+ /** regular group (used for regular clients) */
78
+ Regular = 1 ,
79
+ /** global query group (used for ServerQuery clients) */
80
+ Query = 2
81
+ }
74
82
75
- export enum PermissionGroupDatabaseTypes {
76
- /** template group (used for new virtual servers) */
77
- Template = 0 ,
78
- /** regular group (used for regular clients) */
79
- Regular = 1 ,
80
- /** global query group (used for ServerQuery clients) */
81
- Query = 2
82
- }
83
+ export enum PermissionGroupTypes {
84
+ /** server group permission */
85
+ ServerGroup = 0 ,
86
+ /** client specific permission */
87
+ GlobalClient = 1 ,
88
+ /** channel specific permission */
89
+ Channel = 2 ,
90
+ /** channel group permission */
91
+ ChannelGroup = 3 ,
92
+ /** channel-client specific permission */
93
+ ChannelClient = 4
94
+ }
83
95
84
- export enum PermissionGroupTypes {
85
- /** server group permission */
86
- ServerGroup = 0 ,
87
- /** client specific permission */
88
- GlobalClient = 1 ,
89
- /** channel specific permission */
90
- Channel = 2 ,
91
- /** channel group permission */
92
- ChannelGroup = 3 ,
93
- /** channel-client specific permission */
94
- ChannelClient = 4
95
- }
96
+ export enum TokenType {
97
+ /** server group token (id1={groupID} id2=0) */
98
+ ServerGroup = 0 ,
99
+ /** channel group token (id1={groupID} id2={channelID}) */
100
+ ChannelGroup = 1
101
+ }
96
102
97
- export enum TokenType {
98
- /** server group token (id1={groupID} id2=0) */
99
- ServerGroup = 0 ,
100
- /** channel group token (id1={groupID} id2={channelID}) */
101
- ChannelGroup = 1
102
- }
103
+ export enum ClientType {
104
+ Regular = 0 ,
105
+ ServerQuery = 1
106
+ }
103
107
104
- export enum ClientType {
105
- Regular = 0 ,
106
- ServerQuery = 1
107
- }
108
+ export enum ApiKeyScope {
109
+ MANAGE = "manage" ,
110
+ READ = "read" ,
111
+ WRITE = "write"
112
+ }
108
113
109
- export enum ApiKeyScope {
110
- MANAGE = "manage" ,
111
- READ = "read" ,
112
- WRITE = "write"
113
- }
114
+ export enum VirtualServerStatus {
115
+ UNKNOWN = "unknown" ,
116
+ /* the virtual server is running and clients can connect */
117
+ ONLINE = "online" ,
118
+ /* the virtual server is not running */
119
+ OFFLINE = "offline" ,
120
+ /* the virtual server is currently starting */
121
+ BOOTING_UP = "booting up" ,
122
+ /* the virtual server is currently shutting down */
123
+ SHUTTING_DOWN = "shutting down" ,
124
+ /* the virtual server is currently deploying a snapshot */
125
+ DEPLOY_RUNNING = "deploy running" ,
126
+ /* the virtual server is running *isolated* and clients cannot connect */
127
+ ONLINE_VIRTUAL = "online virtual" ,
128
+ /* the virtual server is running in another TeamSpeak instance */
129
+ OTHER_INSTANCE = "other instance"
130
+ }
0 commit comments