moons-ta-client 1.3.1 → 1.3.3
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 +3 -3
- package/dist/constants.js +2 -2
- package/dist/custom-event-emitter.js +1 -1
- package/dist/index.d.ts +940 -8
- package/dist/index.esm.js +6563 -4003
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/models.d.ts +206 -0
- package/dist/models/models.js +376 -3
- package/dist/models/requests.d.ts +463 -0
- package/dist/models/requests.js +1019 -1
- package/dist/models/responses.d.ts +255 -0
- package/dist/models/responses.js +566 -1
- package/dist/scraper.js +3 -4
- package/dist/tournament-assistant-client.d.ts +14 -3
- package/dist/tournament-assistant-client.js +151 -2
- package/package.json +4 -10
|
@@ -4,6 +4,8 @@ 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 { GlobalConfiguration } from './models.js';
|
|
8
|
+
import { Webhook } from './models.js';
|
|
7
9
|
import { LeaderboardEntry } from './models.js';
|
|
8
10
|
import { State } from './models.js';
|
|
9
11
|
import { CoreServer } from './models.js';
|
|
@@ -196,6 +198,60 @@ export interface Response {
|
|
|
196
198
|
* @generated from protobuf field: proto.packets.Response.PermissionError permission_error = 30
|
|
197
199
|
*/
|
|
198
200
|
permissionError: Response_PermissionError;
|
|
201
|
+
} | {
|
|
202
|
+
oneofKind: "leaveTournament";
|
|
203
|
+
/**
|
|
204
|
+
* @generated from protobuf field: proto.packets.Response.LeaveTournament leave_tournament = 31
|
|
205
|
+
*/
|
|
206
|
+
leaveTournament: Response_LeaveTournament;
|
|
207
|
+
} | {
|
|
208
|
+
oneofKind: "getWebhooks";
|
|
209
|
+
/**
|
|
210
|
+
* @generated from protobuf field: proto.packets.Response.GetWebhooks get_webhooks = 32
|
|
211
|
+
*/
|
|
212
|
+
getWebhooks: Response_GetWebhooks;
|
|
213
|
+
} | {
|
|
214
|
+
oneofKind: "createWebhook";
|
|
215
|
+
/**
|
|
216
|
+
* @generated from protobuf field: proto.packets.Response.CreateWebhook create_webhook = 33
|
|
217
|
+
*/
|
|
218
|
+
createWebhook: Response_CreateWebhook;
|
|
219
|
+
} | {
|
|
220
|
+
oneofKind: "updateWebhook";
|
|
221
|
+
/**
|
|
222
|
+
* @generated from protobuf field: proto.packets.Response.UpdateWebhook update_webhook = 34
|
|
223
|
+
*/
|
|
224
|
+
updateWebhook: Response_UpdateWebhook;
|
|
225
|
+
} | {
|
|
226
|
+
oneofKind: "deleteWebhook";
|
|
227
|
+
/**
|
|
228
|
+
* @generated from protobuf field: proto.packets.Response.DeleteWebhook delete_webhook = 35
|
|
229
|
+
*/
|
|
230
|
+
deleteWebhook: Response_DeleteWebhook;
|
|
231
|
+
} | {
|
|
232
|
+
oneofKind: "getGlobalConfiguration";
|
|
233
|
+
/**
|
|
234
|
+
* @generated from protobuf field: proto.packets.Response.GetGlobalConfiguration get_global_configuration = 36
|
|
235
|
+
*/
|
|
236
|
+
getGlobalConfiguration: Response_GetGlobalConfiguration;
|
|
237
|
+
} | {
|
|
238
|
+
oneofKind: "updateGlobalConfiguration";
|
|
239
|
+
/**
|
|
240
|
+
* @generated from protobuf field: proto.packets.Response.UpdateGlobalConfiguration update_global_configuration = 37
|
|
241
|
+
*/
|
|
242
|
+
updateGlobalConfiguration: Response_UpdateGlobalConfiguration;
|
|
243
|
+
} | {
|
|
244
|
+
oneofKind: "createBkTournament";
|
|
245
|
+
/**
|
|
246
|
+
* @generated from protobuf field: proto.packets.Response.CreateBKTournament create_bk_tournament = 38
|
|
247
|
+
*/
|
|
248
|
+
createBkTournament: Response_CreateBKTournament;
|
|
249
|
+
} | {
|
|
250
|
+
oneofKind: "setBkTournamentLink";
|
|
251
|
+
/**
|
|
252
|
+
* @generated from protobuf field: proto.packets.Response.SetBKTournamentLink set_bk_tournament_link = 39
|
|
253
|
+
*/
|
|
254
|
+
setBkTournamentLink: Response_SetBKTournamentLink;
|
|
199
255
|
} | {
|
|
200
256
|
oneofKind: undefined;
|
|
201
257
|
};
|
|
@@ -513,6 +569,19 @@ export declare enum Response_Join_JoinFailReason {
|
|
|
513
569
|
*/
|
|
514
570
|
IncorrectPassword = 0
|
|
515
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* @generated from protobuf message proto.packets.Response.LeaveTournament
|
|
574
|
+
*/
|
|
575
|
+
export interface Response_LeaveTournament {
|
|
576
|
+
/**
|
|
577
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
578
|
+
*/
|
|
579
|
+
tournamentId: string;
|
|
580
|
+
/**
|
|
581
|
+
* @generated from protobuf field: string message = 2
|
|
582
|
+
*/
|
|
583
|
+
message: string;
|
|
584
|
+
}
|
|
516
585
|
/**
|
|
517
586
|
* @generated from protobuf message proto.packets.Response.LeaderboardEntries
|
|
518
587
|
*/
|
|
@@ -632,6 +701,102 @@ export interface Response_PermissionError {
|
|
|
632
701
|
*/
|
|
633
702
|
currentPermissions: string;
|
|
634
703
|
}
|
|
704
|
+
/**
|
|
705
|
+
* @generated from protobuf message proto.packets.Response.GetWebhooks
|
|
706
|
+
*/
|
|
707
|
+
export interface Response_GetWebhooks {
|
|
708
|
+
/**
|
|
709
|
+
* @generated from protobuf field: repeated proto.models.Webhook webhooks = 1
|
|
710
|
+
*/
|
|
711
|
+
webhooks: Webhook[];
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* @generated from protobuf message proto.packets.Response.CreateWebhook
|
|
715
|
+
*/
|
|
716
|
+
export interface Response_CreateWebhook {
|
|
717
|
+
/**
|
|
718
|
+
* @generated from protobuf field: proto.models.Webhook webhook = 1
|
|
719
|
+
*/
|
|
720
|
+
webhook?: Webhook;
|
|
721
|
+
/**
|
|
722
|
+
* @generated from protobuf field: string message = 2
|
|
723
|
+
*/
|
|
724
|
+
message: string;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* @generated from protobuf message proto.packets.Response.UpdateWebhook
|
|
728
|
+
*/
|
|
729
|
+
export interface Response_UpdateWebhook {
|
|
730
|
+
/**
|
|
731
|
+
* @generated from protobuf field: proto.models.Webhook webhook = 1
|
|
732
|
+
*/
|
|
733
|
+
webhook?: Webhook;
|
|
734
|
+
/**
|
|
735
|
+
* @generated from protobuf field: string message = 2
|
|
736
|
+
*/
|
|
737
|
+
message: string;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* @generated from protobuf message proto.packets.Response.DeleteWebhook
|
|
741
|
+
*/
|
|
742
|
+
export interface Response_DeleteWebhook {
|
|
743
|
+
/**
|
|
744
|
+
* @generated from protobuf field: string webhook_guid = 1
|
|
745
|
+
*/
|
|
746
|
+
webhookGuid: string;
|
|
747
|
+
/**
|
|
748
|
+
* @generated from protobuf field: string message = 2
|
|
749
|
+
*/
|
|
750
|
+
message: string;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @generated from protobuf message proto.packets.Response.GetGlobalConfiguration
|
|
754
|
+
*/
|
|
755
|
+
export interface Response_GetGlobalConfiguration {
|
|
756
|
+
/**
|
|
757
|
+
* @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
|
|
758
|
+
*/
|
|
759
|
+
configuration?: GlobalConfiguration;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* @generated from protobuf message proto.packets.Response.UpdateGlobalConfiguration
|
|
763
|
+
*/
|
|
764
|
+
export interface Response_UpdateGlobalConfiguration {
|
|
765
|
+
/**
|
|
766
|
+
* @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
|
|
767
|
+
*/
|
|
768
|
+
configuration?: GlobalConfiguration;
|
|
769
|
+
/**
|
|
770
|
+
* @generated from protobuf field: string message = 2
|
|
771
|
+
*/
|
|
772
|
+
message: string;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* @generated from protobuf message proto.packets.Response.SetBKTournamentLink
|
|
776
|
+
*/
|
|
777
|
+
export interface Response_SetBKTournamentLink {
|
|
778
|
+
/**
|
|
779
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
780
|
+
*/
|
|
781
|
+
tournament?: Tournament;
|
|
782
|
+
/**
|
|
783
|
+
* @generated from protobuf field: string message = 2
|
|
784
|
+
*/
|
|
785
|
+
message: string;
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* @generated from protobuf message proto.packets.Response.CreateBKTournament
|
|
789
|
+
*/
|
|
790
|
+
export interface Response_CreateBKTournament {
|
|
791
|
+
/**
|
|
792
|
+
* @generated from protobuf field: string beat_khana_tournament_guid = 1
|
|
793
|
+
*/
|
|
794
|
+
beatKhanaTournamentGuid: string;
|
|
795
|
+
/**
|
|
796
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 2
|
|
797
|
+
*/
|
|
798
|
+
tournament?: Tournament;
|
|
799
|
+
}
|
|
635
800
|
/**
|
|
636
801
|
* @generated from protobuf enum proto.packets.Response.ResponseType
|
|
637
802
|
*/
|
|
@@ -845,6 +1010,16 @@ declare class Response_Join$Type extends MessageType<Response_Join> {
|
|
|
845
1010
|
* @generated MessageType for protobuf message proto.packets.Response.Join
|
|
846
1011
|
*/
|
|
847
1012
|
export declare const Response_Join: Response_Join$Type;
|
|
1013
|
+
declare class Response_LeaveTournament$Type extends MessageType<Response_LeaveTournament> {
|
|
1014
|
+
constructor();
|
|
1015
|
+
create(value?: PartialMessage<Response_LeaveTournament>): Response_LeaveTournament;
|
|
1016
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_LeaveTournament): Response_LeaveTournament;
|
|
1017
|
+
internalBinaryWrite(message: Response_LeaveTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* @generated MessageType for protobuf message proto.packets.Response.LeaveTournament
|
|
1021
|
+
*/
|
|
1022
|
+
export declare const Response_LeaveTournament: Response_LeaveTournament$Type;
|
|
848
1023
|
declare class Response_LeaderboardEntries$Type extends MessageType<Response_LeaderboardEntries> {
|
|
849
1024
|
constructor();
|
|
850
1025
|
create(value?: PartialMessage<Response_LeaderboardEntries>): Response_LeaderboardEntries;
|
|
@@ -955,4 +1130,84 @@ declare class Response_PermissionError$Type extends MessageType<Response_Permiss
|
|
|
955
1130
|
* @generated MessageType for protobuf message proto.packets.Response.PermissionError
|
|
956
1131
|
*/
|
|
957
1132
|
export declare const Response_PermissionError: Response_PermissionError$Type;
|
|
1133
|
+
declare class Response_GetWebhooks$Type extends MessageType<Response_GetWebhooks> {
|
|
1134
|
+
constructor();
|
|
1135
|
+
create(value?: PartialMessage<Response_GetWebhooks>): Response_GetWebhooks;
|
|
1136
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetWebhooks): Response_GetWebhooks;
|
|
1137
|
+
internalBinaryWrite(message: Response_GetWebhooks, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* @generated MessageType for protobuf message proto.packets.Response.GetWebhooks
|
|
1141
|
+
*/
|
|
1142
|
+
export declare const Response_GetWebhooks: Response_GetWebhooks$Type;
|
|
1143
|
+
declare class Response_CreateWebhook$Type extends MessageType<Response_CreateWebhook> {
|
|
1144
|
+
constructor();
|
|
1145
|
+
create(value?: PartialMessage<Response_CreateWebhook>): Response_CreateWebhook;
|
|
1146
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_CreateWebhook): Response_CreateWebhook;
|
|
1147
|
+
internalBinaryWrite(message: Response_CreateWebhook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* @generated MessageType for protobuf message proto.packets.Response.CreateWebhook
|
|
1151
|
+
*/
|
|
1152
|
+
export declare const Response_CreateWebhook: Response_CreateWebhook$Type;
|
|
1153
|
+
declare class Response_UpdateWebhook$Type extends MessageType<Response_UpdateWebhook> {
|
|
1154
|
+
constructor();
|
|
1155
|
+
create(value?: PartialMessage<Response_UpdateWebhook>): Response_UpdateWebhook;
|
|
1156
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateWebhook): Response_UpdateWebhook;
|
|
1157
|
+
internalBinaryWrite(message: Response_UpdateWebhook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* @generated MessageType for protobuf message proto.packets.Response.UpdateWebhook
|
|
1161
|
+
*/
|
|
1162
|
+
export declare const Response_UpdateWebhook: Response_UpdateWebhook$Type;
|
|
1163
|
+
declare class Response_DeleteWebhook$Type extends MessageType<Response_DeleteWebhook> {
|
|
1164
|
+
constructor();
|
|
1165
|
+
create(value?: PartialMessage<Response_DeleteWebhook>): Response_DeleteWebhook;
|
|
1166
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_DeleteWebhook): Response_DeleteWebhook;
|
|
1167
|
+
internalBinaryWrite(message: Response_DeleteWebhook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* @generated MessageType for protobuf message proto.packets.Response.DeleteWebhook
|
|
1171
|
+
*/
|
|
1172
|
+
export declare const Response_DeleteWebhook: Response_DeleteWebhook$Type;
|
|
1173
|
+
declare class Response_GetGlobalConfiguration$Type extends MessageType<Response_GetGlobalConfiguration> {
|
|
1174
|
+
constructor();
|
|
1175
|
+
create(value?: PartialMessage<Response_GetGlobalConfiguration>): Response_GetGlobalConfiguration;
|
|
1176
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetGlobalConfiguration): Response_GetGlobalConfiguration;
|
|
1177
|
+
internalBinaryWrite(message: Response_GetGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* @generated MessageType for protobuf message proto.packets.Response.GetGlobalConfiguration
|
|
1181
|
+
*/
|
|
1182
|
+
export declare const Response_GetGlobalConfiguration: Response_GetGlobalConfiguration$Type;
|
|
1183
|
+
declare class Response_UpdateGlobalConfiguration$Type extends MessageType<Response_UpdateGlobalConfiguration> {
|
|
1184
|
+
constructor();
|
|
1185
|
+
create(value?: PartialMessage<Response_UpdateGlobalConfiguration>): Response_UpdateGlobalConfiguration;
|
|
1186
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateGlobalConfiguration): Response_UpdateGlobalConfiguration;
|
|
1187
|
+
internalBinaryWrite(message: Response_UpdateGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* @generated MessageType for protobuf message proto.packets.Response.UpdateGlobalConfiguration
|
|
1191
|
+
*/
|
|
1192
|
+
export declare const Response_UpdateGlobalConfiguration: Response_UpdateGlobalConfiguration$Type;
|
|
1193
|
+
declare class Response_SetBKTournamentLink$Type extends MessageType<Response_SetBKTournamentLink> {
|
|
1194
|
+
constructor();
|
|
1195
|
+
create(value?: PartialMessage<Response_SetBKTournamentLink>): Response_SetBKTournamentLink;
|
|
1196
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_SetBKTournamentLink): Response_SetBKTournamentLink;
|
|
1197
|
+
internalBinaryWrite(message: Response_SetBKTournamentLink, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* @generated MessageType for protobuf message proto.packets.Response.SetBKTournamentLink
|
|
1201
|
+
*/
|
|
1202
|
+
export declare const Response_SetBKTournamentLink: Response_SetBKTournamentLink$Type;
|
|
1203
|
+
declare class Response_CreateBKTournament$Type extends MessageType<Response_CreateBKTournament> {
|
|
1204
|
+
constructor();
|
|
1205
|
+
create(value?: PartialMessage<Response_CreateBKTournament>): Response_CreateBKTournament;
|
|
1206
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_CreateBKTournament): Response_CreateBKTournament;
|
|
1207
|
+
internalBinaryWrite(message: Response_CreateBKTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* @generated MessageType for protobuf message proto.packets.Response.CreateBKTournament
|
|
1211
|
+
*/
|
|
1212
|
+
export declare const Response_CreateBKTournament: Response_CreateBKTournament$Type;
|
|
958
1213
|
export {};
|