moons-ta-client 1.1.5 → 1.1.7

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.
@@ -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 {};
@@ -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
  };
@@ -516,11 +534,7 @@ export interface Response_PreloadImageForStreamSync {
516
534
  */
517
535
  export interface Response_ShowPrompt {
518
536
  /**
519
- * @generated from protobuf field: string prompt_id = 1;
520
- */
521
- promptId: string;
522
- /**
523
- * @generated from protobuf field: string value = 2;
537
+ * @generated from protobuf field: string value = 1;
524
538
  */
525
539
  value: string;
526
540
  }
@@ -533,6 +547,50 @@ export interface Response_RemainingAttempts {
533
547
  */
534
548
  remainingAttempts: number;
535
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
+ }
536
594
  /**
537
595
  * @generated from protobuf enum proto.packets.Response.ResponseType
538
596
  */
@@ -796,4 +854,44 @@ declare class Response_RemainingAttempts$Type extends MessageType<Response_Remai
796
854
  * @generated MessageType for protobuf message proto.packets.Response.RemainingAttempts
797
855
  */
798
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;
799
897
  export {};