moons-ta-client 1.1.6 → 1.1.8
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/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/index.d.ts +226 -6
- package/dist/index.esm.js +557 -5
- package/dist/models/commands.d.ts +38 -0
- package/dist/models/commands.js +72 -1
- package/dist/models/requests.d.ts +75 -0
- package/dist/models/requests.js +172 -1
- package/dist/models/responses.d.ts +102 -0
- package/dist/models/responses.js +233 -1
- package/dist/tournament-assistant-client.d.ts +5 -0
- package/dist/tournament-assistant-client.js +63 -0
- package/package.json +9 -3
|
@@ -57,6 +57,12 @@ export interface Command {
|
|
|
57
57
|
* @generated from protobuf field: string discord_authorize = 9;
|
|
58
58
|
*/
|
|
59
59
|
discordAuthorize: string;
|
|
60
|
+
} | {
|
|
61
|
+
oneofKind: "modifyGameplay";
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf field: proto.packets.Command.ModifyGameplay modify_gameplay = 10;
|
|
64
|
+
*/
|
|
65
|
+
modifyGameplay: Command_ModifyGameplay;
|
|
60
66
|
} | {
|
|
61
67
|
oneofKind: undefined;
|
|
62
68
|
};
|
|
@@ -83,6 +89,28 @@ export interface Command_SendBotMessage {
|
|
|
83
89
|
*/
|
|
84
90
|
message: string;
|
|
85
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* @generated from protobuf message proto.packets.Command.ModifyGameplay
|
|
94
|
+
*/
|
|
95
|
+
export interface Command_ModifyGameplay {
|
|
96
|
+
/**
|
|
97
|
+
* @generated from protobuf field: proto.packets.Command.ModifyGameplay.Modifier modifier = 1;
|
|
98
|
+
*/
|
|
99
|
+
modifier: Command_ModifyGameplay_Modifier;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf enum proto.packets.Command.ModifyGameplay.Modifier
|
|
103
|
+
*/
|
|
104
|
+
export declare enum Command_ModifyGameplay_Modifier {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf enum value: InvertColors = 0;
|
|
107
|
+
*/
|
|
108
|
+
InvertColors = 0,
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf enum value: InvertHandedness = 1;
|
|
111
|
+
*/
|
|
112
|
+
InvertHandedness = 1
|
|
113
|
+
}
|
|
86
114
|
declare class Command$Type extends MessageType<Command> {
|
|
87
115
|
constructor();
|
|
88
116
|
create(value?: PartialMessage<Command>): Command;
|
|
@@ -113,4 +141,14 @@ declare class Command_SendBotMessage$Type extends MessageType<Command_SendBotMes
|
|
|
113
141
|
* @generated MessageType for protobuf message proto.packets.Command.SendBotMessage
|
|
114
142
|
*/
|
|
115
143
|
export declare const Command_SendBotMessage: Command_SendBotMessage$Type;
|
|
144
|
+
declare class Command_ModifyGameplay$Type extends MessageType<Command_ModifyGameplay> {
|
|
145
|
+
constructor();
|
|
146
|
+
create(value?: PartialMessage<Command_ModifyGameplay>): Command_ModifyGameplay;
|
|
147
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Command_ModifyGameplay): Command_ModifyGameplay;
|
|
148
|
+
internalBinaryWrite(message: Command_ModifyGameplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @generated MessageType for protobuf message proto.packets.Command.ModifyGameplay
|
|
152
|
+
*/
|
|
153
|
+
export declare const Command_ModifyGameplay: Command_ModifyGameplay$Type;
|
|
116
154
|
export {};
|
package/dist/models/commands.js
CHANGED
|
@@ -5,6 +5,20 @@ import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
|
|
|
5
5
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
6
6
|
import { Channel } from './discord.js';
|
|
7
7
|
import { GameplayParameters } from './models.js';
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf enum proto.packets.Command.ModifyGameplay.Modifier
|
|
10
|
+
*/
|
|
11
|
+
export var Command_ModifyGameplay_Modifier;
|
|
12
|
+
(function (Command_ModifyGameplay_Modifier) {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf enum value: InvertColors = 0;
|
|
15
|
+
*/
|
|
16
|
+
Command_ModifyGameplay_Modifier[Command_ModifyGameplay_Modifier["InvertColors"] = 0] = "InvertColors";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf enum value: InvertHandedness = 1;
|
|
19
|
+
*/
|
|
20
|
+
Command_ModifyGameplay_Modifier[Command_ModifyGameplay_Modifier["InvertHandedness"] = 1] = "InvertHandedness";
|
|
21
|
+
})(Command_ModifyGameplay_Modifier = Command_ModifyGameplay_Modifier || (Command_ModifyGameplay_Modifier = {}));
|
|
8
22
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
9
23
|
class Command$Type extends MessageType {
|
|
10
24
|
constructor() {
|
|
@@ -15,7 +29,8 @@ class Command$Type extends MessageType {
|
|
|
15
29
|
{ no: 4, name: "stream_sync_show_image", kind: "scalar", oneof: "type", T: 8 /*ScalarType.BOOL*/ },
|
|
16
30
|
{ no: 6, name: "play_song", kind: "message", oneof: "type", T: () => Command_PlaySong },
|
|
17
31
|
{ no: 7, name: "send_bot_message", kind: "message", oneof: "type", T: () => Command_SendBotMessage },
|
|
18
|
-
{ no: 9, name: "discord_authorize", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ }
|
|
32
|
+
{ 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 }
|
|
19
34
|
]);
|
|
20
35
|
}
|
|
21
36
|
create(value) {
|
|
@@ -72,6 +87,12 @@ class Command$Type extends MessageType {
|
|
|
72
87
|
discordAuthorize: reader.string()
|
|
73
88
|
};
|
|
74
89
|
break;
|
|
90
|
+
case /* proto.packets.Command.ModifyGameplay modify_gameplay */ 10:
|
|
91
|
+
message.type = {
|
|
92
|
+
oneofKind: "modifyGameplay",
|
|
93
|
+
modifyGameplay: Command_ModifyGameplay.internalBinaryRead(reader, reader.uint32(), options, message.type.modifyGameplay)
|
|
94
|
+
};
|
|
95
|
+
break;
|
|
75
96
|
default:
|
|
76
97
|
let u = options.readUnknownField;
|
|
77
98
|
if (u === "throw")
|
|
@@ -105,6 +126,9 @@ class Command$Type extends MessageType {
|
|
|
105
126
|
/* string discord_authorize = 9; */
|
|
106
127
|
if (message.type.oneofKind === "discordAuthorize")
|
|
107
128
|
writer.tag(9, WireType.LengthDelimited).string(message.type.discordAuthorize);
|
|
129
|
+
/* proto.packets.Command.ModifyGameplay modify_gameplay = 10; */
|
|
130
|
+
if (message.type.oneofKind === "modifyGameplay")
|
|
131
|
+
Command_ModifyGameplay.internalBinaryWrite(message.type.modifyGameplay, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
108
132
|
let u = options.writeUnknownFields;
|
|
109
133
|
if (u !== false)
|
|
110
134
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -216,3 +240,50 @@ class Command_SendBotMessage$Type extends MessageType {
|
|
|
216
240
|
* @generated MessageType for protobuf message proto.packets.Command.SendBotMessage
|
|
217
241
|
*/
|
|
218
242
|
export const Command_SendBotMessage = new Command_SendBotMessage$Type();
|
|
243
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
244
|
+
class Command_ModifyGameplay$Type extends MessageType {
|
|
245
|
+
constructor() {
|
|
246
|
+
super("proto.packets.Command.ModifyGameplay", [
|
|
247
|
+
{ no: 1, name: "modifier", kind: "enum", T: () => ["proto.packets.Command.ModifyGameplay.Modifier", Command_ModifyGameplay_Modifier] }
|
|
248
|
+
]);
|
|
249
|
+
}
|
|
250
|
+
create(value) {
|
|
251
|
+
const message = { modifier: 0 };
|
|
252
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
253
|
+
if (value !== undefined)
|
|
254
|
+
reflectionMergePartial(this, message, value);
|
|
255
|
+
return message;
|
|
256
|
+
}
|
|
257
|
+
internalBinaryRead(reader, length, options, target) {
|
|
258
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
259
|
+
while (reader.pos < end) {
|
|
260
|
+
let [fieldNo, wireType] = reader.tag();
|
|
261
|
+
switch (fieldNo) {
|
|
262
|
+
case /* proto.packets.Command.ModifyGameplay.Modifier modifier */ 1:
|
|
263
|
+
message.modifier = reader.int32();
|
|
264
|
+
break;
|
|
265
|
+
default:
|
|
266
|
+
let u = options.readUnknownField;
|
|
267
|
+
if (u === "throw")
|
|
268
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
269
|
+
let d = reader.skip(wireType);
|
|
270
|
+
if (u !== false)
|
|
271
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return message;
|
|
275
|
+
}
|
|
276
|
+
internalBinaryWrite(message, writer, options) {
|
|
277
|
+
/* proto.packets.Command.ModifyGameplay.Modifier modifier = 1; */
|
|
278
|
+
if (message.modifier !== 0)
|
|
279
|
+
writer.tag(1, WireType.Varint).int32(message.modifier);
|
|
280
|
+
let u = options.writeUnknownFields;
|
|
281
|
+
if (u !== false)
|
|
282
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
283
|
+
return writer;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* @generated MessageType for protobuf message proto.packets.Command.ModifyGameplay
|
|
288
|
+
*/
|
|
289
|
+
export const Command_ModifyGameplay = new Command_ModifyGameplay$Type();
|
|
@@ -345,6 +345,24 @@ export interface Request {
|
|
|
345
345
|
* @generated from protobuf field: proto.packets.Request.RemainingAttempts remaining_attempts = 43;
|
|
346
346
|
*/
|
|
347
347
|
remainingAttempts: Request_RemainingAttempts;
|
|
348
|
+
} | {
|
|
349
|
+
oneofKind: "getBotTokensForUser";
|
|
350
|
+
/**
|
|
351
|
+
* @generated from protobuf field: proto.packets.Request.GetBotTokensForUser get_bot_tokens_for_user = 55;
|
|
352
|
+
*/
|
|
353
|
+
getBotTokensForUser: Request_GetBotTokensForUser;
|
|
354
|
+
} | {
|
|
355
|
+
oneofKind: "generateBotToken";
|
|
356
|
+
/**
|
|
357
|
+
* @generated from protobuf field: proto.packets.Request.GenerateBotToken generate_bot_token = 56;
|
|
358
|
+
*/
|
|
359
|
+
generateBotToken: Request_GenerateBotToken;
|
|
360
|
+
} | {
|
|
361
|
+
oneofKind: "revokeBotToken";
|
|
362
|
+
/**
|
|
363
|
+
* @generated from protobuf field: proto.packets.Request.RevokeBotToken revoke_bot_token = 57;
|
|
364
|
+
*/
|
|
365
|
+
revokeBotToken: Request_RevokeBotToken;
|
|
348
366
|
} | {
|
|
349
367
|
oneofKind: undefined;
|
|
350
368
|
};
|
|
@@ -1171,6 +1189,33 @@ export interface Request_RemainingAttempts {
|
|
|
1171
1189
|
*/
|
|
1172
1190
|
mapId: string;
|
|
1173
1191
|
}
|
|
1192
|
+
/**
|
|
1193
|
+
* @generated from protobuf message proto.packets.Request.GetBotTokensForUser
|
|
1194
|
+
*/
|
|
1195
|
+
export interface Request_GetBotTokensForUser {
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from protobuf field: string owner_discord_id = 1;
|
|
1198
|
+
*/
|
|
1199
|
+
ownerDiscordId: string;
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* @generated from protobuf message proto.packets.Request.GenerateBotToken
|
|
1203
|
+
*/
|
|
1204
|
+
export interface Request_GenerateBotToken {
|
|
1205
|
+
/**
|
|
1206
|
+
* @generated from protobuf field: string username = 1;
|
|
1207
|
+
*/
|
|
1208
|
+
username: string;
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* @generated from protobuf message proto.packets.Request.RevokeBotToken
|
|
1212
|
+
*/
|
|
1213
|
+
export interface Request_RevokeBotToken {
|
|
1214
|
+
/**
|
|
1215
|
+
* @generated from protobuf field: string bot_token_guid = 1;
|
|
1216
|
+
*/
|
|
1217
|
+
botTokenGuid: string;
|
|
1218
|
+
}
|
|
1174
1219
|
declare class Request$Type extends MessageType<Request> {
|
|
1175
1220
|
constructor();
|
|
1176
1221
|
create(value?: PartialMessage<Request>): Request;
|
|
@@ -1721,4 +1766,34 @@ declare class Request_RemainingAttempts$Type extends MessageType<Request_Remaini
|
|
|
1721
1766
|
* @generated MessageType for protobuf message proto.packets.Request.RemainingAttempts
|
|
1722
1767
|
*/
|
|
1723
1768
|
export declare const Request_RemainingAttempts: Request_RemainingAttempts$Type;
|
|
1769
|
+
declare class Request_GetBotTokensForUser$Type extends MessageType<Request_GetBotTokensForUser> {
|
|
1770
|
+
constructor();
|
|
1771
|
+
create(value?: PartialMessage<Request_GetBotTokensForUser>): Request_GetBotTokensForUser;
|
|
1772
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_GetBotTokensForUser): Request_GetBotTokensForUser;
|
|
1773
|
+
internalBinaryWrite(message: Request_GetBotTokensForUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* @generated MessageType for protobuf message proto.packets.Request.GetBotTokensForUser
|
|
1777
|
+
*/
|
|
1778
|
+
export declare const Request_GetBotTokensForUser: Request_GetBotTokensForUser$Type;
|
|
1779
|
+
declare class Request_GenerateBotToken$Type extends MessageType<Request_GenerateBotToken> {
|
|
1780
|
+
constructor();
|
|
1781
|
+
create(value?: PartialMessage<Request_GenerateBotToken>): Request_GenerateBotToken;
|
|
1782
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_GenerateBotToken): Request_GenerateBotToken;
|
|
1783
|
+
internalBinaryWrite(message: Request_GenerateBotToken, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* @generated MessageType for protobuf message proto.packets.Request.GenerateBotToken
|
|
1787
|
+
*/
|
|
1788
|
+
export declare const Request_GenerateBotToken: Request_GenerateBotToken$Type;
|
|
1789
|
+
declare class Request_RevokeBotToken$Type extends MessageType<Request_RevokeBotToken> {
|
|
1790
|
+
constructor();
|
|
1791
|
+
create(value?: PartialMessage<Request_RevokeBotToken>): Request_RevokeBotToken;
|
|
1792
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_RevokeBotToken): Request_RevokeBotToken;
|
|
1793
|
+
internalBinaryWrite(message: Request_RevokeBotToken, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* @generated MessageType for protobuf message proto.packets.Request.RevokeBotToken
|
|
1797
|
+
*/
|
|
1798
|
+
export declare const Request_RevokeBotToken: Request_RevokeBotToken$Type;
|
|
1724
1799
|
export {};
|
package/dist/models/requests.js
CHANGED
|
@@ -73,7 +73,10 @@ class Request$Type extends MessageType {
|
|
|
73
73
|
{ no: 40, name: "load_song", kind: "message", oneof: "type", T: () => Request_LoadSong },
|
|
74
74
|
{ no: 41, name: "preload_image_for_stream_sync", kind: "message", oneof: "type", T: () => Request_PreloadImageForStreamSync },
|
|
75
75
|
{ no: 42, name: "show_prompt", kind: "message", oneof: "type", T: () => Request_ShowPrompt },
|
|
76
|
-
{ no: 43, name: "remaining_attempts", kind: "message", oneof: "type", T: () => Request_RemainingAttempts }
|
|
76
|
+
{ no: 43, name: "remaining_attempts", kind: "message", oneof: "type", T: () => Request_RemainingAttempts },
|
|
77
|
+
{ no: 55, name: "get_bot_tokens_for_user", kind: "message", oneof: "type", T: () => Request_GetBotTokensForUser },
|
|
78
|
+
{ no: 56, name: "generate_bot_token", kind: "message", oneof: "type", T: () => Request_GenerateBotToken },
|
|
79
|
+
{ no: 57, name: "revoke_bot_token", kind: "message", oneof: "type", T: () => Request_RevokeBotToken }
|
|
77
80
|
]);
|
|
78
81
|
}
|
|
79
82
|
create(value) {
|
|
@@ -406,6 +409,24 @@ class Request$Type extends MessageType {
|
|
|
406
409
|
remainingAttempts: Request_RemainingAttempts.internalBinaryRead(reader, reader.uint32(), options, message.type.remainingAttempts)
|
|
407
410
|
};
|
|
408
411
|
break;
|
|
412
|
+
case /* proto.packets.Request.GetBotTokensForUser get_bot_tokens_for_user */ 55:
|
|
413
|
+
message.type = {
|
|
414
|
+
oneofKind: "getBotTokensForUser",
|
|
415
|
+
getBotTokensForUser: Request_GetBotTokensForUser.internalBinaryRead(reader, reader.uint32(), options, message.type.getBotTokensForUser)
|
|
416
|
+
};
|
|
417
|
+
break;
|
|
418
|
+
case /* proto.packets.Request.GenerateBotToken generate_bot_token */ 56:
|
|
419
|
+
message.type = {
|
|
420
|
+
oneofKind: "generateBotToken",
|
|
421
|
+
generateBotToken: Request_GenerateBotToken.internalBinaryRead(reader, reader.uint32(), options, message.type.generateBotToken)
|
|
422
|
+
};
|
|
423
|
+
break;
|
|
424
|
+
case /* proto.packets.Request.RevokeBotToken revoke_bot_token */ 57:
|
|
425
|
+
message.type = {
|
|
426
|
+
oneofKind: "revokeBotToken",
|
|
427
|
+
revokeBotToken: Request_RevokeBotToken.internalBinaryRead(reader, reader.uint32(), options, message.type.revokeBotToken)
|
|
428
|
+
};
|
|
429
|
+
break;
|
|
409
430
|
default:
|
|
410
431
|
let u = options.readUnknownField;
|
|
411
432
|
if (u === "throw")
|
|
@@ -577,6 +598,15 @@ class Request$Type extends MessageType {
|
|
|
577
598
|
/* proto.packets.Request.RemainingAttempts remaining_attempts = 43; */
|
|
578
599
|
if (message.type.oneofKind === "remainingAttempts")
|
|
579
600
|
Request_RemainingAttempts.internalBinaryWrite(message.type.remainingAttempts, writer.tag(43, WireType.LengthDelimited).fork(), options).join();
|
|
601
|
+
/* proto.packets.Request.GetBotTokensForUser get_bot_tokens_for_user = 55; */
|
|
602
|
+
if (message.type.oneofKind === "getBotTokensForUser")
|
|
603
|
+
Request_GetBotTokensForUser.internalBinaryWrite(message.type.getBotTokensForUser, writer.tag(55, WireType.LengthDelimited).fork(), options).join();
|
|
604
|
+
/* proto.packets.Request.GenerateBotToken generate_bot_token = 56; */
|
|
605
|
+
if (message.type.oneofKind === "generateBotToken")
|
|
606
|
+
Request_GenerateBotToken.internalBinaryWrite(message.type.generateBotToken, writer.tag(56, WireType.LengthDelimited).fork(), options).join();
|
|
607
|
+
/* proto.packets.Request.RevokeBotToken revoke_bot_token = 57; */
|
|
608
|
+
if (message.type.oneofKind === "revokeBotToken")
|
|
609
|
+
Request_RevokeBotToken.internalBinaryWrite(message.type.revokeBotToken, writer.tag(57, WireType.LengthDelimited).fork(), options).join();
|
|
580
610
|
let u = options.writeUnknownFields;
|
|
581
611
|
if (u !== false)
|
|
582
612
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3692,3 +3722,144 @@ class Request_RemainingAttempts$Type extends MessageType {
|
|
|
3692
3722
|
* @generated MessageType for protobuf message proto.packets.Request.RemainingAttempts
|
|
3693
3723
|
*/
|
|
3694
3724
|
export const Request_RemainingAttempts = new Request_RemainingAttempts$Type();
|
|
3725
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3726
|
+
class Request_GetBotTokensForUser$Type extends MessageType {
|
|
3727
|
+
constructor() {
|
|
3728
|
+
super("proto.packets.Request.GetBotTokensForUser", [
|
|
3729
|
+
{ no: 1, name: "owner_discord_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3730
|
+
]);
|
|
3731
|
+
}
|
|
3732
|
+
create(value) {
|
|
3733
|
+
const message = { ownerDiscordId: "" };
|
|
3734
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
3735
|
+
if (value !== undefined)
|
|
3736
|
+
reflectionMergePartial(this, message, value);
|
|
3737
|
+
return message;
|
|
3738
|
+
}
|
|
3739
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3740
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3741
|
+
while (reader.pos < end) {
|
|
3742
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3743
|
+
switch (fieldNo) {
|
|
3744
|
+
case /* string owner_discord_id */ 1:
|
|
3745
|
+
message.ownerDiscordId = reader.string();
|
|
3746
|
+
break;
|
|
3747
|
+
default:
|
|
3748
|
+
let u = options.readUnknownField;
|
|
3749
|
+
if (u === "throw")
|
|
3750
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3751
|
+
let d = reader.skip(wireType);
|
|
3752
|
+
if (u !== false)
|
|
3753
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
return message;
|
|
3757
|
+
}
|
|
3758
|
+
internalBinaryWrite(message, writer, options) {
|
|
3759
|
+
/* string owner_discord_id = 1; */
|
|
3760
|
+
if (message.ownerDiscordId !== "")
|
|
3761
|
+
writer.tag(1, WireType.LengthDelimited).string(message.ownerDiscordId);
|
|
3762
|
+
let u = options.writeUnknownFields;
|
|
3763
|
+
if (u !== false)
|
|
3764
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3765
|
+
return writer;
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
3768
|
+
/**
|
|
3769
|
+
* @generated MessageType for protobuf message proto.packets.Request.GetBotTokensForUser
|
|
3770
|
+
*/
|
|
3771
|
+
export const Request_GetBotTokensForUser = new Request_GetBotTokensForUser$Type();
|
|
3772
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3773
|
+
class Request_GenerateBotToken$Type extends MessageType {
|
|
3774
|
+
constructor() {
|
|
3775
|
+
super("proto.packets.Request.GenerateBotToken", [
|
|
3776
|
+
{ no: 1, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3777
|
+
]);
|
|
3778
|
+
}
|
|
3779
|
+
create(value) {
|
|
3780
|
+
const message = { username: "" };
|
|
3781
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
3782
|
+
if (value !== undefined)
|
|
3783
|
+
reflectionMergePartial(this, message, value);
|
|
3784
|
+
return message;
|
|
3785
|
+
}
|
|
3786
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3787
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3788
|
+
while (reader.pos < end) {
|
|
3789
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3790
|
+
switch (fieldNo) {
|
|
3791
|
+
case /* string username */ 1:
|
|
3792
|
+
message.username = reader.string();
|
|
3793
|
+
break;
|
|
3794
|
+
default:
|
|
3795
|
+
let u = options.readUnknownField;
|
|
3796
|
+
if (u === "throw")
|
|
3797
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3798
|
+
let d = reader.skip(wireType);
|
|
3799
|
+
if (u !== false)
|
|
3800
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
return message;
|
|
3804
|
+
}
|
|
3805
|
+
internalBinaryWrite(message, writer, options) {
|
|
3806
|
+
/* string username = 1; */
|
|
3807
|
+
if (message.username !== "")
|
|
3808
|
+
writer.tag(1, WireType.LengthDelimited).string(message.username);
|
|
3809
|
+
let u = options.writeUnknownFields;
|
|
3810
|
+
if (u !== false)
|
|
3811
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3812
|
+
return writer;
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
/**
|
|
3816
|
+
* @generated MessageType for protobuf message proto.packets.Request.GenerateBotToken
|
|
3817
|
+
*/
|
|
3818
|
+
export const Request_GenerateBotToken = new Request_GenerateBotToken$Type();
|
|
3819
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3820
|
+
class Request_RevokeBotToken$Type extends MessageType {
|
|
3821
|
+
constructor() {
|
|
3822
|
+
super("proto.packets.Request.RevokeBotToken", [
|
|
3823
|
+
{ no: 1, name: "bot_token_guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3824
|
+
]);
|
|
3825
|
+
}
|
|
3826
|
+
create(value) {
|
|
3827
|
+
const message = { botTokenGuid: "" };
|
|
3828
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
3829
|
+
if (value !== undefined)
|
|
3830
|
+
reflectionMergePartial(this, message, value);
|
|
3831
|
+
return message;
|
|
3832
|
+
}
|
|
3833
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3834
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3835
|
+
while (reader.pos < end) {
|
|
3836
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3837
|
+
switch (fieldNo) {
|
|
3838
|
+
case /* string bot_token_guid */ 1:
|
|
3839
|
+
message.botTokenGuid = reader.string();
|
|
3840
|
+
break;
|
|
3841
|
+
default:
|
|
3842
|
+
let u = options.readUnknownField;
|
|
3843
|
+
if (u === "throw")
|
|
3844
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3845
|
+
let d = reader.skip(wireType);
|
|
3846
|
+
if (u !== false)
|
|
3847
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3848
|
+
}
|
|
3849
|
+
}
|
|
3850
|
+
return message;
|
|
3851
|
+
}
|
|
3852
|
+
internalBinaryWrite(message, writer, options) {
|
|
3853
|
+
/* string bot_token_guid = 1; */
|
|
3854
|
+
if (message.botTokenGuid !== "")
|
|
3855
|
+
writer.tag(1, WireType.LengthDelimited).string(message.botTokenGuid);
|
|
3856
|
+
let u = options.writeUnknownFields;
|
|
3857
|
+
if (u !== false)
|
|
3858
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3859
|
+
return writer;
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
/**
|
|
3863
|
+
* @generated MessageType for protobuf message proto.packets.Request.RevokeBotToken
|
|
3864
|
+
*/
|
|
3865
|
+
export const Request_RevokeBotToken = new Request_RevokeBotToken$Type();
|
|
@@ -167,6 +167,24 @@ export interface Response {
|
|
|
167
167
|
* @generated from protobuf field: proto.packets.Response.RemainingAttempts remaining_attempts = 20;
|
|
168
168
|
*/
|
|
169
169
|
remainingAttempts: Response_RemainingAttempts;
|
|
170
|
+
} | {
|
|
171
|
+
oneofKind: "getBotTokensForUser";
|
|
172
|
+
/**
|
|
173
|
+
* @generated from protobuf field: proto.packets.Response.GetBotTokensForUser get_bot_tokens_for_user = 26;
|
|
174
|
+
*/
|
|
175
|
+
getBotTokensForUser: Response_GetBotTokensForUser;
|
|
176
|
+
} | {
|
|
177
|
+
oneofKind: "generateBotToken";
|
|
178
|
+
/**
|
|
179
|
+
* @generated from protobuf field: proto.packets.Response.GenerateBotToken generate_bot_token = 27;
|
|
180
|
+
*/
|
|
181
|
+
generateBotToken: Response_GenerateBotToken;
|
|
182
|
+
} | {
|
|
183
|
+
oneofKind: "revokeBotToken";
|
|
184
|
+
/**
|
|
185
|
+
* @generated from protobuf field: proto.packets.Response.RevokeBotToken revoke_bot_token = 28;
|
|
186
|
+
*/
|
|
187
|
+
revokeBotToken: Response_RevokeBotToken;
|
|
170
188
|
} | {
|
|
171
189
|
oneofKind: undefined;
|
|
172
190
|
};
|
|
@@ -529,6 +547,50 @@ export interface Response_RemainingAttempts {
|
|
|
529
547
|
*/
|
|
530
548
|
remainingAttempts: number;
|
|
531
549
|
}
|
|
550
|
+
/**
|
|
551
|
+
* @generated from protobuf message proto.packets.Response.GetBotTokensForUser
|
|
552
|
+
*/
|
|
553
|
+
export interface Response_GetBotTokensForUser {
|
|
554
|
+
/**
|
|
555
|
+
* @generated from protobuf field: repeated proto.packets.Response.GetBotTokensForUser.BotUser bot_users = 1;
|
|
556
|
+
*/
|
|
557
|
+
botUsers: Response_GetBotTokensForUser_BotUser[];
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* @generated from protobuf message proto.packets.Response.GetBotTokensForUser.BotUser
|
|
561
|
+
*/
|
|
562
|
+
export interface Response_GetBotTokensForUser_BotUser {
|
|
563
|
+
/**
|
|
564
|
+
* @generated from protobuf field: string guid = 1;
|
|
565
|
+
*/
|
|
566
|
+
guid: string;
|
|
567
|
+
/**
|
|
568
|
+
* @generated from protobuf field: string username = 2;
|
|
569
|
+
*/
|
|
570
|
+
username: string;
|
|
571
|
+
/**
|
|
572
|
+
* @generated from protobuf field: string owner_discord_id = 3;
|
|
573
|
+
*/
|
|
574
|
+
ownerDiscordId: string;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* @generated from protobuf message proto.packets.Response.GenerateBotToken
|
|
578
|
+
*/
|
|
579
|
+
export interface Response_GenerateBotToken {
|
|
580
|
+
/**
|
|
581
|
+
* @generated from protobuf field: string bot_token = 1;
|
|
582
|
+
*/
|
|
583
|
+
botToken: string;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* @generated from protobuf message proto.packets.Response.RevokeBotToken
|
|
587
|
+
*/
|
|
588
|
+
export interface Response_RevokeBotToken {
|
|
589
|
+
/**
|
|
590
|
+
* @generated from protobuf field: string message = 1;
|
|
591
|
+
*/
|
|
592
|
+
message: string;
|
|
593
|
+
}
|
|
532
594
|
/**
|
|
533
595
|
* @generated from protobuf enum proto.packets.Response.ResponseType
|
|
534
596
|
*/
|
|
@@ -792,4 +854,44 @@ declare class Response_RemainingAttempts$Type extends MessageType<Response_Remai
|
|
|
792
854
|
* @generated MessageType for protobuf message proto.packets.Response.RemainingAttempts
|
|
793
855
|
*/
|
|
794
856
|
export declare const Response_RemainingAttempts: Response_RemainingAttempts$Type;
|
|
857
|
+
declare class Response_GetBotTokensForUser$Type extends MessageType<Response_GetBotTokensForUser> {
|
|
858
|
+
constructor();
|
|
859
|
+
create(value?: PartialMessage<Response_GetBotTokensForUser>): Response_GetBotTokensForUser;
|
|
860
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetBotTokensForUser): Response_GetBotTokensForUser;
|
|
861
|
+
internalBinaryWrite(message: Response_GetBotTokensForUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* @generated MessageType for protobuf message proto.packets.Response.GetBotTokensForUser
|
|
865
|
+
*/
|
|
866
|
+
export declare const Response_GetBotTokensForUser: Response_GetBotTokensForUser$Type;
|
|
867
|
+
declare class Response_GetBotTokensForUser_BotUser$Type extends MessageType<Response_GetBotTokensForUser_BotUser> {
|
|
868
|
+
constructor();
|
|
869
|
+
create(value?: PartialMessage<Response_GetBotTokensForUser_BotUser>): Response_GetBotTokensForUser_BotUser;
|
|
870
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetBotTokensForUser_BotUser): Response_GetBotTokensForUser_BotUser;
|
|
871
|
+
internalBinaryWrite(message: Response_GetBotTokensForUser_BotUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* @generated MessageType for protobuf message proto.packets.Response.GetBotTokensForUser.BotUser
|
|
875
|
+
*/
|
|
876
|
+
export declare const Response_GetBotTokensForUser_BotUser: Response_GetBotTokensForUser_BotUser$Type;
|
|
877
|
+
declare class Response_GenerateBotToken$Type extends MessageType<Response_GenerateBotToken> {
|
|
878
|
+
constructor();
|
|
879
|
+
create(value?: PartialMessage<Response_GenerateBotToken>): Response_GenerateBotToken;
|
|
880
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GenerateBotToken): Response_GenerateBotToken;
|
|
881
|
+
internalBinaryWrite(message: Response_GenerateBotToken, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* @generated MessageType for protobuf message proto.packets.Response.GenerateBotToken
|
|
885
|
+
*/
|
|
886
|
+
export declare const Response_GenerateBotToken: Response_GenerateBotToken$Type;
|
|
887
|
+
declare class Response_RevokeBotToken$Type extends MessageType<Response_RevokeBotToken> {
|
|
888
|
+
constructor();
|
|
889
|
+
create(value?: PartialMessage<Response_RevokeBotToken>): Response_RevokeBotToken;
|
|
890
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_RevokeBotToken): Response_RevokeBotToken;
|
|
891
|
+
internalBinaryWrite(message: Response_RevokeBotToken, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
892
|
+
}
|
|
893
|
+
/**
|
|
894
|
+
* @generated MessageType for protobuf message proto.packets.Response.RevokeBotToken
|
|
895
|
+
*/
|
|
896
|
+
export declare const Response_RevokeBotToken: Response_RevokeBotToken$Type;
|
|
795
897
|
export {};
|