moons-ta-client 1.1.14 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -16
- package/dist/constants.d.ts +3 -2
- package/dist/constants.js +3 -2
- package/dist/index.d.ts +351 -202
- package/dist/index.esm.js +1289 -678
- package/dist/models/commands.d.ts +42 -37
- package/dist/models/commands.js +55 -51
- package/dist/models/models.d.ts +52 -34
- package/dist/models/models.js +125 -68
- package/dist/models/packets.d.ts +6 -0
- package/dist/models/packets.js +10 -0
- package/dist/models/pushes.d.ts +8 -0
- package/dist/models/pushes.js +16 -2
- package/dist/models/requests.d.ts +200 -77
- package/dist/models/requests.js +433 -178
- package/dist/models/responses.d.ts +12 -34
- package/dist/models/responses.js +38 -89
- package/dist/tournament-assistant-client.d.ts +26 -18
- package/dist/tournament-assistant-client.js +234 -75
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
4
4
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
5
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
6
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
-
import { Channel } from './discord.js';
|
|
8
7
|
import { GameplayParameters } from './models.js';
|
|
9
8
|
/**
|
|
10
9
|
* ---- Commands (DO something!) ---- //
|
|
@@ -12,16 +11,18 @@ import { GameplayParameters } from './models.js';
|
|
|
12
11
|
* @generated from protobuf message proto.packets.Command
|
|
13
12
|
*/
|
|
14
13
|
export interface Command {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf field: string tournament_id = 11;
|
|
16
|
+
*/
|
|
17
|
+
tournamentId: string;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: repeated string forward_to = 12;
|
|
20
|
+
*/
|
|
21
|
+
forwardTo: string[];
|
|
15
22
|
/**
|
|
16
23
|
* @generated from protobuf oneof: type
|
|
17
24
|
*/
|
|
18
25
|
type: {
|
|
19
|
-
oneofKind: "heartbeat";
|
|
20
|
-
/**
|
|
21
|
-
* @generated from protobuf field: bool heartbeat = 1;
|
|
22
|
-
*/
|
|
23
|
-
heartbeat: boolean;
|
|
24
|
-
} | {
|
|
25
26
|
oneofKind: "returnToMenu";
|
|
26
27
|
/**
|
|
27
28
|
* @generated from protobuf field: bool return_to_menu = 2;
|
|
@@ -45,12 +46,6 @@ export interface Command {
|
|
|
45
46
|
* @generated from protobuf field: proto.packets.Command.PlaySong play_song = 6;
|
|
46
47
|
*/
|
|
47
48
|
playSong: Command_PlaySong;
|
|
48
|
-
} | {
|
|
49
|
-
oneofKind: "sendBotMessage";
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf field: proto.packets.Command.SendBotMessage send_bot_message = 7;
|
|
52
|
-
*/
|
|
53
|
-
sendBotMessage: Command_SendBotMessage;
|
|
54
49
|
} | {
|
|
55
50
|
oneofKind: "discordAuthorize";
|
|
56
51
|
/**
|
|
@@ -63,6 +58,12 @@ export interface Command {
|
|
|
63
58
|
* @generated from protobuf field: proto.packets.Command.ModifyGameplay modify_gameplay = 10;
|
|
64
59
|
*/
|
|
65
60
|
modifyGameplay: Command_ModifyGameplay;
|
|
61
|
+
} | {
|
|
62
|
+
oneofKind: "showColorForStreamSync";
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: proto.packets.Command.ShowColorForStreamSync show_color_for_stream_sync = 13;
|
|
65
|
+
*/
|
|
66
|
+
showColorForStreamSync: Command_ShowColorForStreamSync;
|
|
66
67
|
} | {
|
|
67
68
|
oneofKind: undefined;
|
|
68
69
|
};
|
|
@@ -76,19 +77,6 @@ export interface Command_PlaySong {
|
|
|
76
77
|
*/
|
|
77
78
|
gameplayParameters?: GameplayParameters;
|
|
78
79
|
}
|
|
79
|
-
/**
|
|
80
|
-
* @generated from protobuf message proto.packets.Command.SendBotMessage
|
|
81
|
-
*/
|
|
82
|
-
export interface Command_SendBotMessage {
|
|
83
|
-
/**
|
|
84
|
-
* @generated from protobuf field: proto.discord.Channel channel = 1;
|
|
85
|
-
*/
|
|
86
|
-
channel?: Channel;
|
|
87
|
-
/**
|
|
88
|
-
* @generated from protobuf field: string message = 2;
|
|
89
|
-
*/
|
|
90
|
-
message: string;
|
|
91
|
-
}
|
|
92
80
|
/**
|
|
93
81
|
* @generated from protobuf message proto.packets.Command.ModifyGameplay
|
|
94
82
|
*/
|
|
@@ -109,7 +97,24 @@ export declare enum Command_ModifyGameplay_Modifier {
|
|
|
109
97
|
/**
|
|
110
98
|
* @generated from protobuf enum value: InvertHandedness = 1;
|
|
111
99
|
*/
|
|
112
|
-
InvertHandedness = 1
|
|
100
|
+
InvertHandedness = 1,
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf enum value: DisableBlueNotes = 2;
|
|
103
|
+
*/
|
|
104
|
+
DisableBlueNotes = 2,
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf enum value: DisableRedNotes = 3;
|
|
107
|
+
*/
|
|
108
|
+
DisableRedNotes = 3
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @generated from protobuf message proto.packets.Command.ShowColorForStreamSync
|
|
112
|
+
*/
|
|
113
|
+
export interface Command_ShowColorForStreamSync {
|
|
114
|
+
/**
|
|
115
|
+
* @generated from protobuf field: string color = 1;
|
|
116
|
+
*/
|
|
117
|
+
color: string;
|
|
113
118
|
}
|
|
114
119
|
declare class Command$Type extends MessageType<Command> {
|
|
115
120
|
constructor();
|
|
@@ -131,16 +136,6 @@ declare class Command_PlaySong$Type extends MessageType<Command_PlaySong> {
|
|
|
131
136
|
* @generated MessageType for protobuf message proto.packets.Command.PlaySong
|
|
132
137
|
*/
|
|
133
138
|
export declare const Command_PlaySong: Command_PlaySong$Type;
|
|
134
|
-
declare class Command_SendBotMessage$Type extends MessageType<Command_SendBotMessage> {
|
|
135
|
-
constructor();
|
|
136
|
-
create(value?: PartialMessage<Command_SendBotMessage>): Command_SendBotMessage;
|
|
137
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Command_SendBotMessage): Command_SendBotMessage;
|
|
138
|
-
internalBinaryWrite(message: Command_SendBotMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* @generated MessageType for protobuf message proto.packets.Command.SendBotMessage
|
|
142
|
-
*/
|
|
143
|
-
export declare const Command_SendBotMessage: Command_SendBotMessage$Type;
|
|
144
139
|
declare class Command_ModifyGameplay$Type extends MessageType<Command_ModifyGameplay> {
|
|
145
140
|
constructor();
|
|
146
141
|
create(value?: PartialMessage<Command_ModifyGameplay>): Command_ModifyGameplay;
|
|
@@ -151,4 +146,14 @@ declare class Command_ModifyGameplay$Type extends MessageType<Command_ModifyGame
|
|
|
151
146
|
* @generated MessageType for protobuf message proto.packets.Command.ModifyGameplay
|
|
152
147
|
*/
|
|
153
148
|
export declare const Command_ModifyGameplay: Command_ModifyGameplay$Type;
|
|
149
|
+
declare class Command_ShowColorForStreamSync$Type extends MessageType<Command_ShowColorForStreamSync> {
|
|
150
|
+
constructor();
|
|
151
|
+
create(value?: PartialMessage<Command_ShowColorForStreamSync>): Command_ShowColorForStreamSync;
|
|
152
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Command_ShowColorForStreamSync): Command_ShowColorForStreamSync;
|
|
153
|
+
internalBinaryWrite(message: Command_ShowColorForStreamSync, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @generated MessageType for protobuf message proto.packets.Command.ShowColorForStreamSync
|
|
157
|
+
*/
|
|
158
|
+
export declare const Command_ShowColorForStreamSync: Command_ShowColorForStreamSync$Type;
|
|
154
159
|
export {};
|
package/dist/models/commands.js
CHANGED
|
@@ -3,7 +3,6 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
3
3
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
4
|
import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
|
|
5
5
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
6
|
-
import { Channel } from './discord.js';
|
|
7
6
|
import { GameplayParameters } from './models.js';
|
|
8
7
|
/**
|
|
9
8
|
* @generated from protobuf enum proto.packets.Command.ModifyGameplay.Modifier
|
|
@@ -18,23 +17,32 @@ export var Command_ModifyGameplay_Modifier;
|
|
|
18
17
|
* @generated from protobuf enum value: InvertHandedness = 1;
|
|
19
18
|
*/
|
|
20
19
|
Command_ModifyGameplay_Modifier[Command_ModifyGameplay_Modifier["InvertHandedness"] = 1] = "InvertHandedness";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf enum value: DisableBlueNotes = 2;
|
|
22
|
+
*/
|
|
23
|
+
Command_ModifyGameplay_Modifier[Command_ModifyGameplay_Modifier["DisableBlueNotes"] = 2] = "DisableBlueNotes";
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf enum value: DisableRedNotes = 3;
|
|
26
|
+
*/
|
|
27
|
+
Command_ModifyGameplay_Modifier[Command_ModifyGameplay_Modifier["DisableRedNotes"] = 3] = "DisableRedNotes";
|
|
21
28
|
})(Command_ModifyGameplay_Modifier = Command_ModifyGameplay_Modifier || (Command_ModifyGameplay_Modifier = {}));
|
|
22
29
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
23
30
|
class Command$Type extends MessageType {
|
|
24
31
|
constructor() {
|
|
25
32
|
super("proto.packets.Command", [
|
|
26
|
-
{ no:
|
|
33
|
+
{ no: 11, name: "tournament_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
34
|
+
{ no: 12, name: "forward_to", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
27
35
|
{ no: 2, name: "return_to_menu", kind: "scalar", oneof: "type", T: 8 /*ScalarType.BOOL*/ },
|
|
28
36
|
{ no: 3, name: "delay_test_finish", kind: "scalar", oneof: "type", T: 8 /*ScalarType.BOOL*/ },
|
|
29
37
|
{ no: 4, name: "stream_sync_show_image", kind: "scalar", oneof: "type", T: 8 /*ScalarType.BOOL*/ },
|
|
30
38
|
{ no: 6, name: "play_song", kind: "message", oneof: "type", T: () => Command_PlaySong },
|
|
31
|
-
{ no: 7, name: "send_bot_message", kind: "message", oneof: "type", T: () => Command_SendBotMessage },
|
|
32
39
|
{ no: 9, name: "discord_authorize", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ },
|
|
33
|
-
{ no: 10, name: "modify_gameplay", kind: "message", oneof: "type", T: () => Command_ModifyGameplay }
|
|
40
|
+
{ no: 10, name: "modify_gameplay", kind: "message", oneof: "type", T: () => Command_ModifyGameplay },
|
|
41
|
+
{ no: 13, name: "show_color_for_stream_sync", kind: "message", oneof: "type", T: () => Command_ShowColorForStreamSync }
|
|
34
42
|
]);
|
|
35
43
|
}
|
|
36
44
|
create(value) {
|
|
37
|
-
const message = { type: { oneofKind: undefined } };
|
|
45
|
+
const message = { tournamentId: "", forwardTo: [], type: { oneofKind: undefined } };
|
|
38
46
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
39
47
|
if (value !== undefined)
|
|
40
48
|
reflectionMergePartial(this, message, value);
|
|
@@ -45,11 +53,11 @@ class Command$Type extends MessageType {
|
|
|
45
53
|
while (reader.pos < end) {
|
|
46
54
|
let [fieldNo, wireType] = reader.tag();
|
|
47
55
|
switch (fieldNo) {
|
|
48
|
-
case /*
|
|
49
|
-
message.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
case /* string tournament_id */ 11:
|
|
57
|
+
message.tournamentId = reader.string();
|
|
58
|
+
break;
|
|
59
|
+
case /* repeated string forward_to */ 12:
|
|
60
|
+
message.forwardTo.push(reader.string());
|
|
53
61
|
break;
|
|
54
62
|
case /* bool return_to_menu */ 2:
|
|
55
63
|
message.type = {
|
|
@@ -75,12 +83,6 @@ class Command$Type extends MessageType {
|
|
|
75
83
|
playSong: Command_PlaySong.internalBinaryRead(reader, reader.uint32(), options, message.type.playSong)
|
|
76
84
|
};
|
|
77
85
|
break;
|
|
78
|
-
case /* proto.packets.Command.SendBotMessage send_bot_message */ 7:
|
|
79
|
-
message.type = {
|
|
80
|
-
oneofKind: "sendBotMessage",
|
|
81
|
-
sendBotMessage: Command_SendBotMessage.internalBinaryRead(reader, reader.uint32(), options, message.type.sendBotMessage)
|
|
82
|
-
};
|
|
83
|
-
break;
|
|
84
86
|
case /* string discord_authorize */ 9:
|
|
85
87
|
message.type = {
|
|
86
88
|
oneofKind: "discordAuthorize",
|
|
@@ -93,6 +95,12 @@ class Command$Type extends MessageType {
|
|
|
93
95
|
modifyGameplay: Command_ModifyGameplay.internalBinaryRead(reader, reader.uint32(), options, message.type.modifyGameplay)
|
|
94
96
|
};
|
|
95
97
|
break;
|
|
98
|
+
case /* proto.packets.Command.ShowColorForStreamSync show_color_for_stream_sync */ 13:
|
|
99
|
+
message.type = {
|
|
100
|
+
oneofKind: "showColorForStreamSync",
|
|
101
|
+
showColorForStreamSync: Command_ShowColorForStreamSync.internalBinaryRead(reader, reader.uint32(), options, message.type.showColorForStreamSync)
|
|
102
|
+
};
|
|
103
|
+
break;
|
|
96
104
|
default:
|
|
97
105
|
let u = options.readUnknownField;
|
|
98
106
|
if (u === "throw")
|
|
@@ -105,9 +113,12 @@ class Command$Type extends MessageType {
|
|
|
105
113
|
return message;
|
|
106
114
|
}
|
|
107
115
|
internalBinaryWrite(message, writer, options) {
|
|
108
|
-
/*
|
|
109
|
-
if (message.
|
|
110
|
-
writer.tag(
|
|
116
|
+
/* string tournament_id = 11; */
|
|
117
|
+
if (message.tournamentId !== "")
|
|
118
|
+
writer.tag(11, WireType.LengthDelimited).string(message.tournamentId);
|
|
119
|
+
/* repeated string forward_to = 12; */
|
|
120
|
+
for (let i = 0; i < message.forwardTo.length; i++)
|
|
121
|
+
writer.tag(12, WireType.LengthDelimited).string(message.forwardTo[i]);
|
|
111
122
|
/* bool return_to_menu = 2; */
|
|
112
123
|
if (message.type.oneofKind === "returnToMenu")
|
|
113
124
|
writer.tag(2, WireType.Varint).bool(message.type.returnToMenu);
|
|
@@ -120,15 +131,15 @@ class Command$Type extends MessageType {
|
|
|
120
131
|
/* proto.packets.Command.PlaySong play_song = 6; */
|
|
121
132
|
if (message.type.oneofKind === "playSong")
|
|
122
133
|
Command_PlaySong.internalBinaryWrite(message.type.playSong, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
123
|
-
/* proto.packets.Command.SendBotMessage send_bot_message = 7; */
|
|
124
|
-
if (message.type.oneofKind === "sendBotMessage")
|
|
125
|
-
Command_SendBotMessage.internalBinaryWrite(message.type.sendBotMessage, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
126
134
|
/* string discord_authorize = 9; */
|
|
127
135
|
if (message.type.oneofKind === "discordAuthorize")
|
|
128
136
|
writer.tag(9, WireType.LengthDelimited).string(message.type.discordAuthorize);
|
|
129
137
|
/* proto.packets.Command.ModifyGameplay modify_gameplay = 10; */
|
|
130
138
|
if (message.type.oneofKind === "modifyGameplay")
|
|
131
139
|
Command_ModifyGameplay.internalBinaryWrite(message.type.modifyGameplay, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
140
|
+
/* proto.packets.Command.ShowColorForStreamSync show_color_for_stream_sync = 13; */
|
|
141
|
+
if (message.type.oneofKind === "showColorForStreamSync")
|
|
142
|
+
Command_ShowColorForStreamSync.internalBinaryWrite(message.type.showColorForStreamSync, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
132
143
|
let u = options.writeUnknownFields;
|
|
133
144
|
if (u !== false)
|
|
134
145
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -187,15 +198,14 @@ class Command_PlaySong$Type extends MessageType {
|
|
|
187
198
|
*/
|
|
188
199
|
export const Command_PlaySong = new Command_PlaySong$Type();
|
|
189
200
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
190
|
-
class
|
|
201
|
+
class Command_ModifyGameplay$Type extends MessageType {
|
|
191
202
|
constructor() {
|
|
192
|
-
super("proto.packets.Command.
|
|
193
|
-
{ no: 1, name: "
|
|
194
|
-
{ no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
203
|
+
super("proto.packets.Command.ModifyGameplay", [
|
|
204
|
+
{ no: 1, name: "modifier", kind: "enum", T: () => ["proto.packets.Command.ModifyGameplay.Modifier", Command_ModifyGameplay_Modifier] }
|
|
195
205
|
]);
|
|
196
206
|
}
|
|
197
207
|
create(value) {
|
|
198
|
-
const message = {
|
|
208
|
+
const message = { modifier: 0 };
|
|
199
209
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
200
210
|
if (value !== undefined)
|
|
201
211
|
reflectionMergePartial(this, message, value);
|
|
@@ -206,11 +216,8 @@ class Command_SendBotMessage$Type extends MessageType {
|
|
|
206
216
|
while (reader.pos < end) {
|
|
207
217
|
let [fieldNo, wireType] = reader.tag();
|
|
208
218
|
switch (fieldNo) {
|
|
209
|
-
case /* proto.
|
|
210
|
-
message.
|
|
211
|
-
break;
|
|
212
|
-
case /* string message */ 2:
|
|
213
|
-
message.message = reader.string();
|
|
219
|
+
case /* proto.packets.Command.ModifyGameplay.Modifier modifier */ 1:
|
|
220
|
+
message.modifier = reader.int32();
|
|
214
221
|
break;
|
|
215
222
|
default:
|
|
216
223
|
let u = options.readUnknownField;
|
|
@@ -224,12 +231,9 @@ class Command_SendBotMessage$Type extends MessageType {
|
|
|
224
231
|
return message;
|
|
225
232
|
}
|
|
226
233
|
internalBinaryWrite(message, writer, options) {
|
|
227
|
-
/* proto.
|
|
228
|
-
if (message.
|
|
229
|
-
|
|
230
|
-
/* string message = 2; */
|
|
231
|
-
if (message.message !== "")
|
|
232
|
-
writer.tag(2, WireType.LengthDelimited).string(message.message);
|
|
234
|
+
/* proto.packets.Command.ModifyGameplay.Modifier modifier = 1; */
|
|
235
|
+
if (message.modifier !== 0)
|
|
236
|
+
writer.tag(1, WireType.Varint).int32(message.modifier);
|
|
233
237
|
let u = options.writeUnknownFields;
|
|
234
238
|
if (u !== false)
|
|
235
239
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -237,18 +241,18 @@ class Command_SendBotMessage$Type extends MessageType {
|
|
|
237
241
|
}
|
|
238
242
|
}
|
|
239
243
|
/**
|
|
240
|
-
* @generated MessageType for protobuf message proto.packets.Command.
|
|
244
|
+
* @generated MessageType for protobuf message proto.packets.Command.ModifyGameplay
|
|
241
245
|
*/
|
|
242
|
-
export const
|
|
246
|
+
export const Command_ModifyGameplay = new Command_ModifyGameplay$Type();
|
|
243
247
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
244
|
-
class
|
|
248
|
+
class Command_ShowColorForStreamSync$Type extends MessageType {
|
|
245
249
|
constructor() {
|
|
246
|
-
super("proto.packets.Command.
|
|
247
|
-
{ no: 1, name: "
|
|
250
|
+
super("proto.packets.Command.ShowColorForStreamSync", [
|
|
251
|
+
{ no: 1, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
248
252
|
]);
|
|
249
253
|
}
|
|
250
254
|
create(value) {
|
|
251
|
-
const message = {
|
|
255
|
+
const message = { color: "" };
|
|
252
256
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
253
257
|
if (value !== undefined)
|
|
254
258
|
reflectionMergePartial(this, message, value);
|
|
@@ -259,8 +263,8 @@ class Command_ModifyGameplay$Type extends MessageType {
|
|
|
259
263
|
while (reader.pos < end) {
|
|
260
264
|
let [fieldNo, wireType] = reader.tag();
|
|
261
265
|
switch (fieldNo) {
|
|
262
|
-
case /*
|
|
263
|
-
message.
|
|
266
|
+
case /* string color */ 1:
|
|
267
|
+
message.color = reader.string();
|
|
264
268
|
break;
|
|
265
269
|
default:
|
|
266
270
|
let u = options.readUnknownField;
|
|
@@ -274,9 +278,9 @@ class Command_ModifyGameplay$Type extends MessageType {
|
|
|
274
278
|
return message;
|
|
275
279
|
}
|
|
276
280
|
internalBinaryWrite(message, writer, options) {
|
|
277
|
-
/*
|
|
278
|
-
if (message.
|
|
279
|
-
writer.tag(1, WireType.
|
|
281
|
+
/* string color = 1; */
|
|
282
|
+
if (message.color !== "")
|
|
283
|
+
writer.tag(1, WireType.LengthDelimited).string(message.color);
|
|
280
284
|
let u = options.writeUnknownFields;
|
|
281
285
|
if (u !== false)
|
|
282
286
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -284,6 +288,6 @@ class Command_ModifyGameplay$Type extends MessageType {
|
|
|
284
288
|
}
|
|
285
289
|
}
|
|
286
290
|
/**
|
|
287
|
-
* @generated MessageType for protobuf message proto.packets.Command.
|
|
291
|
+
* @generated MessageType for protobuf message proto.packets.Command.ShowColorForStreamSync
|
|
288
292
|
*/
|
|
289
|
-
export const
|
|
293
|
+
export const Command_ShowColorForStreamSync = new Command_ShowColorForStreamSync$Type();
|
package/dist/models/models.d.ts
CHANGED
|
@@ -327,6 +327,31 @@ export interface Map {
|
|
|
327
327
|
*/
|
|
328
328
|
gameplayParameters?: GameplayParameters;
|
|
329
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* @generated from protobuf message proto.models.Role
|
|
332
|
+
*/
|
|
333
|
+
export interface Role {
|
|
334
|
+
/**
|
|
335
|
+
* @generated from protobuf field: string guid = 1;
|
|
336
|
+
*/
|
|
337
|
+
guid: string;
|
|
338
|
+
/**
|
|
339
|
+
* @generated from protobuf field: string name = 2;
|
|
340
|
+
*/
|
|
341
|
+
name: string;
|
|
342
|
+
/**
|
|
343
|
+
* @generated from protobuf field: string role_id = 3;
|
|
344
|
+
*/
|
|
345
|
+
roleId: string;
|
|
346
|
+
/**
|
|
347
|
+
* @generated from protobuf field: string tournament_id = 4;
|
|
348
|
+
*/
|
|
349
|
+
tournamentId: string;
|
|
350
|
+
/**
|
|
351
|
+
* @generated from protobuf field: repeated string permissions = 5;
|
|
352
|
+
*/
|
|
353
|
+
permissions: string[];
|
|
354
|
+
}
|
|
330
355
|
/**
|
|
331
356
|
* @generated from protobuf message proto.models.User
|
|
332
357
|
*/
|
|
@@ -379,14 +404,6 @@ export interface User {
|
|
|
379
404
|
* @generated from protobuf field: proto.models.User.DiscordInfo discord_info = 12;
|
|
380
405
|
*/
|
|
381
406
|
discordInfo?: User_DiscordInfo;
|
|
382
|
-
/**
|
|
383
|
-
* @generated from protobuf field: bytes user_image = 13;
|
|
384
|
-
*/
|
|
385
|
-
userImage: Uint8Array;
|
|
386
|
-
/**
|
|
387
|
-
* @generated from protobuf field: proto.models.Permissions permissions = 14;
|
|
388
|
-
*/
|
|
389
|
-
permissions: Permissions;
|
|
390
407
|
}
|
|
391
408
|
/**
|
|
392
409
|
* @generated from protobuf message proto.models.User.DiscordInfo
|
|
@@ -507,9 +524,9 @@ export interface QualifierEvent {
|
|
|
507
524
|
*/
|
|
508
525
|
name: string;
|
|
509
526
|
/**
|
|
510
|
-
* @generated from protobuf field:
|
|
527
|
+
* @generated from protobuf field: string image = 3;
|
|
511
528
|
*/
|
|
512
|
-
image:
|
|
529
|
+
image: string;
|
|
513
530
|
/**
|
|
514
531
|
* @generated from protobuf field: proto.discord.Channel info_channel = 4;
|
|
515
532
|
*/
|
|
@@ -676,9 +693,9 @@ export interface Tournament_TournamentSettings {
|
|
|
676
693
|
*/
|
|
677
694
|
tournamentName: string;
|
|
678
695
|
/**
|
|
679
|
-
* @generated from protobuf field:
|
|
696
|
+
* @generated from protobuf field: string tournament_image = 2;
|
|
680
697
|
*/
|
|
681
|
-
tournamentImage:
|
|
698
|
+
tournamentImage: string;
|
|
682
699
|
/**
|
|
683
700
|
* @generated from protobuf field: bool enable_teams = 3;
|
|
684
701
|
*/
|
|
@@ -715,6 +732,14 @@ export interface Tournament_TournamentSettings {
|
|
|
715
732
|
* @generated from protobuf field: bool allow_unauthorized_view = 11;
|
|
716
733
|
*/
|
|
717
734
|
allowUnauthorizedView: boolean;
|
|
735
|
+
/**
|
|
736
|
+
* @generated from protobuf field: repeated proto.models.Role roles = 12;
|
|
737
|
+
*/
|
|
738
|
+
roles: Role[];
|
|
739
|
+
/**
|
|
740
|
+
* @generated from protobuf field: repeated string my_permissions = 13;
|
|
741
|
+
*/
|
|
742
|
+
myPermissions: string[];
|
|
718
743
|
}
|
|
719
744
|
/**
|
|
720
745
|
* @generated from protobuf message proto.models.Tournament.TournamentSettings.Pool
|
|
@@ -729,9 +754,9 @@ export interface Tournament_TournamentSettings_Pool {
|
|
|
729
754
|
*/
|
|
730
755
|
name: string;
|
|
731
756
|
/**
|
|
732
|
-
* @generated from protobuf field:
|
|
757
|
+
* @generated from protobuf field: string image = 3;
|
|
733
758
|
*/
|
|
734
|
-
image:
|
|
759
|
+
image: string;
|
|
735
760
|
/**
|
|
736
761
|
* @generated from protobuf field: repeated proto.models.Map maps = 4;
|
|
737
762
|
*/
|
|
@@ -750,9 +775,9 @@ export interface Tournament_TournamentSettings_Team {
|
|
|
750
775
|
*/
|
|
751
776
|
name: string;
|
|
752
777
|
/**
|
|
753
|
-
* @generated from protobuf field:
|
|
778
|
+
* @generated from protobuf field: string image = 3;
|
|
754
779
|
*/
|
|
755
|
-
image:
|
|
780
|
+
image: string;
|
|
756
781
|
}
|
|
757
782
|
/**
|
|
758
783
|
* @generated from protobuf message proto.models.State
|
|
@@ -865,7 +890,7 @@ export interface RealtimeScore {
|
|
|
865
890
|
*/
|
|
866
891
|
playerHealth: number;
|
|
867
892
|
/**
|
|
868
|
-
* @generated from protobuf field:
|
|
893
|
+
* @generated from protobuf field: double accuracy = 8;
|
|
869
894
|
*/
|
|
870
895
|
accuracy: number;
|
|
871
896
|
/**
|
|
@@ -922,23 +947,6 @@ export interface ScoreTrackerHand {
|
|
|
922
947
|
*/
|
|
923
948
|
avgCut: number[];
|
|
924
949
|
}
|
|
925
|
-
/**
|
|
926
|
-
* @generated from protobuf enum proto.models.Permissions
|
|
927
|
-
*/
|
|
928
|
-
export declare enum Permissions {
|
|
929
|
-
/**
|
|
930
|
-
* @generated from protobuf enum value: None = 0;
|
|
931
|
-
*/
|
|
932
|
-
None = 0,
|
|
933
|
-
/**
|
|
934
|
-
* @generated from protobuf enum value: View = 1;
|
|
935
|
-
*/
|
|
936
|
-
View = 1,
|
|
937
|
-
/**
|
|
938
|
-
* @generated from protobuf enum value: Admin = 2;
|
|
939
|
-
*/
|
|
940
|
-
Admin = 2
|
|
941
|
-
}
|
|
942
950
|
declare class Characteristic$Type extends MessageType<Characteristic> {
|
|
943
951
|
constructor();
|
|
944
952
|
create(value?: PartialMessage<Characteristic>): Characteristic;
|
|
@@ -999,6 +1007,16 @@ declare class Map$Type extends MessageType<Map> {
|
|
|
999
1007
|
* @generated MessageType for protobuf message proto.models.Map
|
|
1000
1008
|
*/
|
|
1001
1009
|
export declare const Map: Map$Type;
|
|
1010
|
+
declare class Role$Type extends MessageType<Role> {
|
|
1011
|
+
constructor();
|
|
1012
|
+
create(value?: PartialMessage<Role>): Role;
|
|
1013
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Role): Role;
|
|
1014
|
+
internalBinaryWrite(message: Role, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* @generated MessageType for protobuf message proto.models.Role
|
|
1018
|
+
*/
|
|
1019
|
+
export declare const Role: Role$Type;
|
|
1002
1020
|
declare class User$Type extends MessageType<User> {
|
|
1003
1021
|
constructor();
|
|
1004
1022
|
create(value?: PartialMessage<User>): User;
|