moons-ta-client 1.3.2 → 1.4.0
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/custom-event-emitter.js +1 -1
- package/dist/index.d.ts +866 -8
- package/dist/index.esm.js +6656 -4198
- package/dist/models/models.d.ts +216 -2
- package/dist/models/models.js +412 -3
- package/dist/models/pushes.d.ts +40 -0
- package/dist/models/pushes.js +82 -1
- package/dist/models/requests.d.ts +382 -0
- package/dist/models/requests.js +834 -1
- package/dist/models/responses.d.ts +217 -0
- package/dist/models/responses.js +469 -1
- package/dist/scraper.js +3 -4
- package/dist/tournament-assistant-client.d.ts +11 -2
- package/dist/tournament-assistant-client.js +109 -0
- 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 { ReplayRecording } from './models.js';
|
|
8
|
+
import { GlobalConfiguration } from './models.js';
|
|
7
9
|
import { Webhook } from './models.js';
|
|
8
10
|
import { LeaderboardEntry } from './models.js';
|
|
9
11
|
import { State } from './models.js';
|
|
@@ -227,6 +229,48 @@ export interface Response {
|
|
|
227
229
|
* @generated from protobuf field: proto.packets.Response.DeleteWebhook delete_webhook = 35
|
|
228
230
|
*/
|
|
229
231
|
deleteWebhook: Response_DeleteWebhook;
|
|
232
|
+
} | {
|
|
233
|
+
oneofKind: "getGlobalConfiguration";
|
|
234
|
+
/**
|
|
235
|
+
* @generated from protobuf field: proto.packets.Response.GetGlobalConfiguration get_global_configuration = 36
|
|
236
|
+
*/
|
|
237
|
+
getGlobalConfiguration: Response_GetGlobalConfiguration;
|
|
238
|
+
} | {
|
|
239
|
+
oneofKind: "updateGlobalConfiguration";
|
|
240
|
+
/**
|
|
241
|
+
* @generated from protobuf field: proto.packets.Response.UpdateGlobalConfiguration update_global_configuration = 37
|
|
242
|
+
*/
|
|
243
|
+
updateGlobalConfiguration: Response_UpdateGlobalConfiguration;
|
|
244
|
+
} | {
|
|
245
|
+
oneofKind: "createBkTournament";
|
|
246
|
+
/**
|
|
247
|
+
* @generated from protobuf field: proto.packets.Response.CreateBKTournament create_bk_tournament = 38
|
|
248
|
+
*/
|
|
249
|
+
createBkTournament: Response_CreateBKTournament;
|
|
250
|
+
} | {
|
|
251
|
+
oneofKind: "setBkTournamentLink";
|
|
252
|
+
/**
|
|
253
|
+
* @generated from protobuf field: proto.packets.Response.SetBKTournamentLink set_bk_tournament_link = 39
|
|
254
|
+
*/
|
|
255
|
+
setBkTournamentLink: Response_SetBKTournamentLink;
|
|
256
|
+
} | {
|
|
257
|
+
oneofKind: "submitReplay";
|
|
258
|
+
/**
|
|
259
|
+
* @generated from protobuf field: proto.packets.Response.SubmitReplay submit_replay = 40
|
|
260
|
+
*/
|
|
261
|
+
submitReplay: Response_SubmitReplay;
|
|
262
|
+
} | {
|
|
263
|
+
oneofKind: "getReplays";
|
|
264
|
+
/**
|
|
265
|
+
* @generated from protobuf field: proto.packets.Response.GetReplays get_replays = 41
|
|
266
|
+
*/
|
|
267
|
+
getReplays: Response_GetReplays;
|
|
268
|
+
} | {
|
|
269
|
+
oneofKind: "deleteReplay";
|
|
270
|
+
/**
|
|
271
|
+
* @generated from protobuf field: proto.packets.Response.DeleteReplay delete_replay = 42
|
|
272
|
+
*/
|
|
273
|
+
deleteReplay: Response_DeleteReplay;
|
|
230
274
|
} | {
|
|
231
275
|
oneofKind: undefined;
|
|
232
276
|
};
|
|
@@ -724,6 +768,109 @@ export interface Response_DeleteWebhook {
|
|
|
724
768
|
*/
|
|
725
769
|
message: string;
|
|
726
770
|
}
|
|
771
|
+
/**
|
|
772
|
+
* @generated from protobuf message proto.packets.Response.GetGlobalConfiguration
|
|
773
|
+
*/
|
|
774
|
+
export interface Response_GetGlobalConfiguration {
|
|
775
|
+
/**
|
|
776
|
+
* @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
|
|
777
|
+
*/
|
|
778
|
+
configuration?: GlobalConfiguration;
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* @generated from protobuf message proto.packets.Response.UpdateGlobalConfiguration
|
|
782
|
+
*/
|
|
783
|
+
export interface Response_UpdateGlobalConfiguration {
|
|
784
|
+
/**
|
|
785
|
+
* @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
|
|
786
|
+
*/
|
|
787
|
+
configuration?: GlobalConfiguration;
|
|
788
|
+
/**
|
|
789
|
+
* @generated from protobuf field: string message = 2
|
|
790
|
+
*/
|
|
791
|
+
message: string;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* @generated from protobuf message proto.packets.Response.SetBKTournamentLink
|
|
795
|
+
*/
|
|
796
|
+
export interface Response_SetBKTournamentLink {
|
|
797
|
+
/**
|
|
798
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
799
|
+
*/
|
|
800
|
+
tournament?: Tournament;
|
|
801
|
+
/**
|
|
802
|
+
* @generated from protobuf field: string message = 2
|
|
803
|
+
*/
|
|
804
|
+
message: string;
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* @generated from protobuf message proto.packets.Response.SubmitReplay
|
|
808
|
+
*/
|
|
809
|
+
export interface Response_SubmitReplay {
|
|
810
|
+
/**
|
|
811
|
+
* @generated from protobuf field: string message = 1
|
|
812
|
+
*/
|
|
813
|
+
message: string;
|
|
814
|
+
/**
|
|
815
|
+
* Only set once the last chunk has arrived
|
|
816
|
+
*
|
|
817
|
+
* @generated from protobuf field: proto.models.ReplayRecording replay = 2
|
|
818
|
+
*/
|
|
819
|
+
replay?: ReplayRecording;
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* @generated from protobuf message proto.packets.Response.GetReplays
|
|
823
|
+
*/
|
|
824
|
+
export interface Response_GetReplays {
|
|
825
|
+
/**
|
|
826
|
+
* @generated from protobuf field: repeated proto.models.ReplayRecording replays = 1
|
|
827
|
+
*/
|
|
828
|
+
replays: ReplayRecording[];
|
|
829
|
+
/**
|
|
830
|
+
* @generated from protobuf field: int32 total_count = 2
|
|
831
|
+
*/
|
|
832
|
+
totalCount: number;
|
|
833
|
+
/**
|
|
834
|
+
* @generated from protobuf field: int32 page = 3
|
|
835
|
+
*/
|
|
836
|
+
page: number;
|
|
837
|
+
/**
|
|
838
|
+
* @generated from protobuf field: int32 page_size = 4
|
|
839
|
+
*/
|
|
840
|
+
pageSize: number;
|
|
841
|
+
/**
|
|
842
|
+
* False when the server has no replay storage or cannot reach it
|
|
843
|
+
*
|
|
844
|
+
* @generated from protobuf field: bool storage_available = 5
|
|
845
|
+
*/
|
|
846
|
+
storageAvailable: boolean;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* @generated from protobuf message proto.packets.Response.DeleteReplay
|
|
850
|
+
*/
|
|
851
|
+
export interface Response_DeleteReplay {
|
|
852
|
+
/**
|
|
853
|
+
* @generated from protobuf field: string replay_guid = 1
|
|
854
|
+
*/
|
|
855
|
+
replayGuid: string;
|
|
856
|
+
/**
|
|
857
|
+
* @generated from protobuf field: string message = 2
|
|
858
|
+
*/
|
|
859
|
+
message: string;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* @generated from protobuf message proto.packets.Response.CreateBKTournament
|
|
863
|
+
*/
|
|
864
|
+
export interface Response_CreateBKTournament {
|
|
865
|
+
/**
|
|
866
|
+
* @generated from protobuf field: string beat_khana_tournament_guid = 1
|
|
867
|
+
*/
|
|
868
|
+
beatKhanaTournamentGuid: string;
|
|
869
|
+
/**
|
|
870
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 2
|
|
871
|
+
*/
|
|
872
|
+
tournament?: Tournament;
|
|
873
|
+
}
|
|
727
874
|
/**
|
|
728
875
|
* @generated from protobuf enum proto.packets.Response.ResponseType
|
|
729
876
|
*/
|
|
@@ -1097,4 +1244,74 @@ declare class Response_DeleteWebhook$Type extends MessageType<Response_DeleteWeb
|
|
|
1097
1244
|
* @generated MessageType for protobuf message proto.packets.Response.DeleteWebhook
|
|
1098
1245
|
*/
|
|
1099
1246
|
export declare const Response_DeleteWebhook: Response_DeleteWebhook$Type;
|
|
1247
|
+
declare class Response_GetGlobalConfiguration$Type extends MessageType<Response_GetGlobalConfiguration> {
|
|
1248
|
+
constructor();
|
|
1249
|
+
create(value?: PartialMessage<Response_GetGlobalConfiguration>): Response_GetGlobalConfiguration;
|
|
1250
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetGlobalConfiguration): Response_GetGlobalConfiguration;
|
|
1251
|
+
internalBinaryWrite(message: Response_GetGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* @generated MessageType for protobuf message proto.packets.Response.GetGlobalConfiguration
|
|
1255
|
+
*/
|
|
1256
|
+
export declare const Response_GetGlobalConfiguration: Response_GetGlobalConfiguration$Type;
|
|
1257
|
+
declare class Response_UpdateGlobalConfiguration$Type extends MessageType<Response_UpdateGlobalConfiguration> {
|
|
1258
|
+
constructor();
|
|
1259
|
+
create(value?: PartialMessage<Response_UpdateGlobalConfiguration>): Response_UpdateGlobalConfiguration;
|
|
1260
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateGlobalConfiguration): Response_UpdateGlobalConfiguration;
|
|
1261
|
+
internalBinaryWrite(message: Response_UpdateGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* @generated MessageType for protobuf message proto.packets.Response.UpdateGlobalConfiguration
|
|
1265
|
+
*/
|
|
1266
|
+
export declare const Response_UpdateGlobalConfiguration: Response_UpdateGlobalConfiguration$Type;
|
|
1267
|
+
declare class Response_SetBKTournamentLink$Type extends MessageType<Response_SetBKTournamentLink> {
|
|
1268
|
+
constructor();
|
|
1269
|
+
create(value?: PartialMessage<Response_SetBKTournamentLink>): Response_SetBKTournamentLink;
|
|
1270
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_SetBKTournamentLink): Response_SetBKTournamentLink;
|
|
1271
|
+
internalBinaryWrite(message: Response_SetBKTournamentLink, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* @generated MessageType for protobuf message proto.packets.Response.SetBKTournamentLink
|
|
1275
|
+
*/
|
|
1276
|
+
export declare const Response_SetBKTournamentLink: Response_SetBKTournamentLink$Type;
|
|
1277
|
+
declare class Response_SubmitReplay$Type extends MessageType<Response_SubmitReplay> {
|
|
1278
|
+
constructor();
|
|
1279
|
+
create(value?: PartialMessage<Response_SubmitReplay>): Response_SubmitReplay;
|
|
1280
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_SubmitReplay): Response_SubmitReplay;
|
|
1281
|
+
internalBinaryWrite(message: Response_SubmitReplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* @generated MessageType for protobuf message proto.packets.Response.SubmitReplay
|
|
1285
|
+
*/
|
|
1286
|
+
export declare const Response_SubmitReplay: Response_SubmitReplay$Type;
|
|
1287
|
+
declare class Response_GetReplays$Type extends MessageType<Response_GetReplays> {
|
|
1288
|
+
constructor();
|
|
1289
|
+
create(value?: PartialMessage<Response_GetReplays>): Response_GetReplays;
|
|
1290
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetReplays): Response_GetReplays;
|
|
1291
|
+
internalBinaryWrite(message: Response_GetReplays, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* @generated MessageType for protobuf message proto.packets.Response.GetReplays
|
|
1295
|
+
*/
|
|
1296
|
+
export declare const Response_GetReplays: Response_GetReplays$Type;
|
|
1297
|
+
declare class Response_DeleteReplay$Type extends MessageType<Response_DeleteReplay> {
|
|
1298
|
+
constructor();
|
|
1299
|
+
create(value?: PartialMessage<Response_DeleteReplay>): Response_DeleteReplay;
|
|
1300
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_DeleteReplay): Response_DeleteReplay;
|
|
1301
|
+
internalBinaryWrite(message: Response_DeleteReplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* @generated MessageType for protobuf message proto.packets.Response.DeleteReplay
|
|
1305
|
+
*/
|
|
1306
|
+
export declare const Response_DeleteReplay: Response_DeleteReplay$Type;
|
|
1307
|
+
declare class Response_CreateBKTournament$Type extends MessageType<Response_CreateBKTournament> {
|
|
1308
|
+
constructor();
|
|
1309
|
+
create(value?: PartialMessage<Response_CreateBKTournament>): Response_CreateBKTournament;
|
|
1310
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_CreateBKTournament): Response_CreateBKTournament;
|
|
1311
|
+
internalBinaryWrite(message: Response_CreateBKTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* @generated MessageType for protobuf message proto.packets.Response.CreateBKTournament
|
|
1315
|
+
*/
|
|
1316
|
+
export declare const Response_CreateBKTournament: Response_CreateBKTournament$Type;
|
|
1100
1317
|
export {};
|