moons-ta-client 1.3.3 → 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.
@@ -1,6 +1,6 @@
1
1
  export declare const masterAddress = "server.tournamentassistant.net";
2
2
  export declare const masterPort = "8676";
3
3
  export declare const masterApiPort = "8678";
4
- export declare const version = "1.3.3";
5
- export declare const versionCode = 1330;
4
+ export declare const version = "1.4.0";
5
+ export declare const versionCode = 1400;
6
6
  export type Permission = "tournament:view_tournament_in_list" | "tournament:join" | "tournament:settings:add_authorized_users" | "tournament:settings:update_authorized_user_roles" | "tournament:settings:remove_authorized_users" | "tournament:settings:get_authorized_users" | "tournament:settings:get_discord_info" | "tournament:qualifier:get_qualifier_scores" | "tournament:qualifier:submit_qualifier_scores" | "tournament:qualifier:see_hidden_qualifier_scores" | "tournament:qualifier:get_remaining_attempts" | "tournament:qualifier:refund_attempts" | "tournament:player:return_to_menu" | "tournament:player:play_song" | "tournament:player:play_with_stream_sync" | "tournament:player:modify_gameplay" | "tournament:player:load_song" | "tournament:player:show_prompt" | "tournament:match:create_match" | "tournament:match:add_user_to_match" | "tournament:match:remove_user_from_match" | "tournament:match:set_match_leader" | "tournament:match:set_match_map" | "tournament:match:delete_match" | "tournament:qualifier:create" | "tournament:qualifier:set_name" | "tournament:qualifier:set_image" | "tournament:qualifier:set_info_channel" | "tournament:qualifier:set_flags" | "tournament:qualifier:set_leaderboard_sort" | "tournament:qualifier:set_start_time" | "tournament:qualifier:set_end_time" | "tournament:qualifier:add_maps" | "tournament:qualifier:update_map" | "tournament:qualifier:remove_map" | "tournament:qualifier:delete" | "tournament:webhooks:manage" | "tournament:settings:set_name" | "tournament:settings:set_image" | "tournament:settings:set_enable_teams" | "tournament:settings:set_enable_pools" | "tournament:settings:set_allow_mock_clients" | "tournament:settings:set_show_tournament_button" | "tournament:settings:set_show_qualifier_button" | "tournament:settings:set_allow_unauthorized_view" | "tournament:settings:set_score_update_frequency" | "tournament:settings:set_banned_mods" | "tournament:settings:add_team" | "tournament:settings:set_team_name" | "tournament:settings:set_team_image" | "tournament:settings:remove_team" | "tournament:settings:add_pool" | "tournament:settings:set_pool_name" | "tournament:settings:set_pool_image" | "tournament:settings:add_pool_maps" | "tournament:settings:update_pool_maps" | "tournament:settings:remove_pool_maps" | "tournament:settings:remove_pools" | "tournament:settings:add_role" | "tournament:settings:set_role_name" | "tournament:settings:set_role_permissions" | "tournament:settings:remove_role" | "tournament:settings:delete";
package/dist/constants.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export const masterAddress = "server.tournamentassistant.net";
2
2
  export const masterPort = "8676";
3
3
  export const masterApiPort = "8678";
4
- export const version = "1.3.3";
5
- export const versionCode = 1330;
4
+ export const version = "1.4.0";
5
+ export const versionCode = 1400;
package/dist/index.d.ts CHANGED
@@ -612,9 +612,36 @@ declare enum Webhook_Trigger {
612
612
  */
613
613
  SongFinished = 4096,
614
614
  /**
615
- * @generated from protobuf enum value: All = 8191;
615
+ * @generated from protobuf enum value: ReplaySubmitted = 8192;
616
616
  */
617
- All = 8191
617
+ ReplaySubmitted = 8192,
618
+ /**
619
+ * @generated from protobuf enum value: All = 16383;
620
+ */
621
+ All = 16383
622
+ }
623
+ /**
624
+ * How long a recorded replay is kept before it expires
625
+ *
626
+ * @generated from protobuf enum proto.models.ReplayRetention
627
+ */
628
+ declare enum ReplayRetention {
629
+ /**
630
+ * @generated from protobuf enum value: ThirtyDays = 0;
631
+ */
632
+ ThirtyDays = 0,
633
+ /**
634
+ * @generated from protobuf enum value: NinetyDays = 1;
635
+ */
636
+ NinetyDays = 1,
637
+ /**
638
+ * @generated from protobuf enum value: OneYear = 2;
639
+ */
640
+ OneYear = 2,
641
+ /**
642
+ * @generated from protobuf enum value: ThreeYears = 3;
643
+ */
644
+ ThreeYears = 3
618
645
  }
619
646
  declare class Characteristic$Type extends MessageType<Characteristic> {
620
647
  constructor();
@@ -1200,6 +1227,83 @@ interface GlobalConfiguration {
1200
1227
  * @generated MessageType for protobuf message proto.models.GlobalConfiguration
1201
1228
  */
1202
1229
  declare const GlobalConfiguration: GlobalConfiguration$Type;
1230
+ declare class ReplayRecording$Type extends MessageType<ReplayRecording> {
1231
+ constructor();
1232
+ create(value?: PartialMessage<ReplayRecording>): ReplayRecording;
1233
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReplayRecording): ReplayRecording;
1234
+ internalBinaryWrite(message: ReplayRecording, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1235
+ }
1236
+ /**
1237
+ * A .tarf replay a player submitted to the server
1238
+ *
1239
+ * @generated from protobuf message proto.models.ReplayRecording
1240
+ */
1241
+ interface ReplayRecording {
1242
+ /**
1243
+ * @generated from protobuf field: string guid = 1
1244
+ */
1245
+ guid: string;
1246
+ /**
1247
+ * @generated from protobuf field: string tournament_id = 2
1248
+ */
1249
+ tournamentId: string;
1250
+ /**
1251
+ * @generated from protobuf field: string match_id = 3
1252
+ */
1253
+ matchId: string;
1254
+ /**
1255
+ * @generated from protobuf field: string file_name = 4
1256
+ */
1257
+ fileName: string;
1258
+ /**
1259
+ * @generated from protobuf field: string platform_id = 5
1260
+ */
1261
+ platformId: string;
1262
+ /**
1263
+ * @generated from protobuf field: string player_name = 6
1264
+ */
1265
+ playerName: string;
1266
+ /**
1267
+ * @generated from protobuf field: string map_hash = 7
1268
+ */
1269
+ mapHash: string;
1270
+ /**
1271
+ * @generated from protobuf field: string characteristic = 8
1272
+ */
1273
+ characteristic: string;
1274
+ /**
1275
+ * @generated from protobuf field: int32 difficulty = 9
1276
+ */
1277
+ difficulty: number;
1278
+ /**
1279
+ * Unix times in milliseconds
1280
+ *
1281
+ * @generated from protobuf field: int64 recorded_at = 10
1282
+ */
1283
+ recordedAt: bigint;
1284
+ /**
1285
+ * @generated from protobuf field: int64 submitted_at = 11
1286
+ */
1287
+ submittedAt: bigint;
1288
+ /**
1289
+ * @generated from protobuf field: int64 expires_at = 12
1290
+ */
1291
+ expiresAt: bigint;
1292
+ /**
1293
+ * @generated from protobuf field: int64 size = 13
1294
+ */
1295
+ size: bigint;
1296
+ /**
1297
+ * Empty when the replay was not stored, for example when replay storage is unavailable
1298
+ *
1299
+ * @generated from protobuf field: string download_url = 14
1300
+ */
1301
+ downloadUrl: string;
1302
+ }
1303
+ /**
1304
+ * @generated MessageType for protobuf message proto.models.ReplayRecording
1305
+ */
1306
+ declare const ReplayRecording: ReplayRecording$Type;
1203
1307
  declare class Tournament$Type extends MessageType<Tournament> {
1204
1308
  constructor();
1205
1309
  create(value?: PartialMessage<Tournament>): Tournament;
@@ -1317,6 +1421,26 @@ interface Tournament_TournamentSettings {
1317
1421
  * @generated from protobuf field: string beat_khana_tournament_guid = 17
1318
1422
  */
1319
1423
  beatKhanaTournamentGuid: string;
1424
+ /**
1425
+ * @generated from protobuf field: bool enable_replay_recording = 18
1426
+ */
1427
+ enableReplayRecording: boolean;
1428
+ /**
1429
+ * @generated from protobuf field: proto.models.ReplayRetention replay_retention = 19
1430
+ */
1431
+ replayRetention: ReplayRetention;
1432
+ /**
1433
+ * Unix time in milliseconds of the last change to the tournament
1434
+ *
1435
+ * @generated from protobuf field: int64 updated_at = 20
1436
+ */
1437
+ updatedAt: bigint;
1438
+ /**
1439
+ * Unix time in milliseconds when a visible tournament gets hidden for being inactive, 0 when it is already hidden
1440
+ *
1441
+ * @generated from protobuf field: int64 auto_hide_at = 21
1442
+ */
1443
+ autoHideAt: bigint;
1320
1444
  }
1321
1445
  /**
1322
1446
  * @generated MessageType for protobuf message proto.models.Tournament.TournamentSettings
@@ -3354,6 +3478,24 @@ interface Response {
3354
3478
  * @generated from protobuf field: proto.packets.Response.SetBKTournamentLink set_bk_tournament_link = 39
3355
3479
  */
3356
3480
  setBkTournamentLink: Response_SetBKTournamentLink;
3481
+ } | {
3482
+ oneofKind: "submitReplay";
3483
+ /**
3484
+ * @generated from protobuf field: proto.packets.Response.SubmitReplay submit_replay = 40
3485
+ */
3486
+ submitReplay: Response_SubmitReplay;
3487
+ } | {
3488
+ oneofKind: "getReplays";
3489
+ /**
3490
+ * @generated from protobuf field: proto.packets.Response.GetReplays get_replays = 41
3491
+ */
3492
+ getReplays: Response_GetReplays;
3493
+ } | {
3494
+ oneofKind: "deleteReplay";
3495
+ /**
3496
+ * @generated from protobuf field: proto.packets.Response.DeleteReplay delete_replay = 42
3497
+ */
3498
+ deleteReplay: Response_DeleteReplay;
3357
3499
  } | {
3358
3500
  oneofKind: undefined;
3359
3501
  };
@@ -4252,6 +4394,91 @@ interface Response_SetBKTournamentLink {
4252
4394
  * @generated MessageType for protobuf message proto.packets.Response.SetBKTournamentLink
4253
4395
  */
4254
4396
  declare const Response_SetBKTournamentLink: Response_SetBKTournamentLink$Type;
4397
+ declare class Response_SubmitReplay$Type extends MessageType<Response_SubmitReplay> {
4398
+ constructor();
4399
+ create(value?: PartialMessage<Response_SubmitReplay>): Response_SubmitReplay;
4400
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_SubmitReplay): Response_SubmitReplay;
4401
+ internalBinaryWrite(message: Response_SubmitReplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4402
+ }
4403
+ /**
4404
+ * @generated from protobuf message proto.packets.Response.SubmitReplay
4405
+ */
4406
+ interface Response_SubmitReplay {
4407
+ /**
4408
+ * @generated from protobuf field: string message = 1
4409
+ */
4410
+ message: string;
4411
+ /**
4412
+ * Only set once the last chunk has arrived
4413
+ *
4414
+ * @generated from protobuf field: proto.models.ReplayRecording replay = 2
4415
+ */
4416
+ replay?: ReplayRecording;
4417
+ }
4418
+ /**
4419
+ * @generated MessageType for protobuf message proto.packets.Response.SubmitReplay
4420
+ */
4421
+ declare const Response_SubmitReplay: Response_SubmitReplay$Type;
4422
+ declare class Response_GetReplays$Type extends MessageType<Response_GetReplays> {
4423
+ constructor();
4424
+ create(value?: PartialMessage<Response_GetReplays>): Response_GetReplays;
4425
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetReplays): Response_GetReplays;
4426
+ internalBinaryWrite(message: Response_GetReplays, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4427
+ }
4428
+ /**
4429
+ * @generated from protobuf message proto.packets.Response.GetReplays
4430
+ */
4431
+ interface Response_GetReplays {
4432
+ /**
4433
+ * @generated from protobuf field: repeated proto.models.ReplayRecording replays = 1
4434
+ */
4435
+ replays: ReplayRecording[];
4436
+ /**
4437
+ * @generated from protobuf field: int32 total_count = 2
4438
+ */
4439
+ totalCount: number;
4440
+ /**
4441
+ * @generated from protobuf field: int32 page = 3
4442
+ */
4443
+ page: number;
4444
+ /**
4445
+ * @generated from protobuf field: int32 page_size = 4
4446
+ */
4447
+ pageSize: number;
4448
+ /**
4449
+ * False when the server has no replay storage or cannot reach it
4450
+ *
4451
+ * @generated from protobuf field: bool storage_available = 5
4452
+ */
4453
+ storageAvailable: boolean;
4454
+ }
4455
+ /**
4456
+ * @generated MessageType for protobuf message proto.packets.Response.GetReplays
4457
+ */
4458
+ declare const Response_GetReplays: Response_GetReplays$Type;
4459
+ declare class Response_DeleteReplay$Type extends MessageType<Response_DeleteReplay> {
4460
+ constructor();
4461
+ create(value?: PartialMessage<Response_DeleteReplay>): Response_DeleteReplay;
4462
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_DeleteReplay): Response_DeleteReplay;
4463
+ internalBinaryWrite(message: Response_DeleteReplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4464
+ }
4465
+ /**
4466
+ * @generated from protobuf message proto.packets.Response.DeleteReplay
4467
+ */
4468
+ interface Response_DeleteReplay {
4469
+ /**
4470
+ * @generated from protobuf field: string replay_guid = 1
4471
+ */
4472
+ replayGuid: string;
4473
+ /**
4474
+ * @generated from protobuf field: string message = 2
4475
+ */
4476
+ message: string;
4477
+ }
4478
+ /**
4479
+ * @generated MessageType for protobuf message proto.packets.Response.DeleteReplay
4480
+ */
4481
+ declare const Response_DeleteReplay: Response_DeleteReplay$Type;
4255
4482
  declare class Response_CreateBKTournament$Type extends MessageType<Response_CreateBKTournament> {
4256
4483
  constructor();
4257
4484
  create(value?: PartialMessage<Response_CreateBKTournament>): Response_CreateBKTournament;
@@ -4729,6 +4956,36 @@ interface Request {
4729
4956
  * @generated from protobuf field: proto.packets.Request.SetBKTournamentLink set_bk_tournament_link = 75
4730
4957
  */
4731
4958
  setBkTournamentLink: Request_SetBKTournamentLink;
4959
+ } | {
4960
+ oneofKind: "setTournamentEnableReplayRecording";
4961
+ /**
4962
+ * @generated from protobuf field: proto.packets.Request.SetTournamentEnableReplayRecording set_tournament_enable_replay_recording = 76
4963
+ */
4964
+ setTournamentEnableReplayRecording: Request_SetTournamentEnableReplayRecording;
4965
+ } | {
4966
+ oneofKind: "setTournamentReplayRetention";
4967
+ /**
4968
+ * @generated from protobuf field: proto.packets.Request.SetTournamentReplayRetention set_tournament_replay_retention = 77
4969
+ */
4970
+ setTournamentReplayRetention: Request_SetTournamentReplayRetention;
4971
+ } | {
4972
+ oneofKind: "submitReplay";
4973
+ /**
4974
+ * @generated from protobuf field: proto.packets.Request.SubmitReplay submit_replay = 78
4975
+ */
4976
+ submitReplay: Request_SubmitReplay;
4977
+ } | {
4978
+ oneofKind: "getReplays";
4979
+ /**
4980
+ * @generated from protobuf field: proto.packets.Request.GetReplays get_replays = 79
4981
+ */
4982
+ getReplays: Request_GetReplays;
4983
+ } | {
4984
+ oneofKind: "deleteReplay";
4985
+ /**
4986
+ * @generated from protobuf field: proto.packets.Request.DeleteReplay delete_replay = 80
4987
+ */
4988
+ deleteReplay: Request_DeleteReplay;
4732
4989
  } | {
4733
4990
  oneofKind: undefined;
4734
4991
  };
@@ -6614,6 +6871,151 @@ interface Request_SetBKTournamentLink {
6614
6871
  * @generated MessageType for protobuf message proto.packets.Request.SetBKTournamentLink
6615
6872
  */
6616
6873
  declare const Request_SetBKTournamentLink: Request_SetBKTournamentLink$Type;
6874
+ declare class Request_SetTournamentEnableReplayRecording$Type extends MessageType<Request_SetTournamentEnableReplayRecording> {
6875
+ constructor();
6876
+ create(value?: PartialMessage<Request_SetTournamentEnableReplayRecording>): Request_SetTournamentEnableReplayRecording;
6877
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetTournamentEnableReplayRecording): Request_SetTournamentEnableReplayRecording;
6878
+ internalBinaryWrite(message: Request_SetTournamentEnableReplayRecording, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6879
+ }
6880
+ /**
6881
+ * @generated from protobuf message proto.packets.Request.SetTournamentEnableReplayRecording
6882
+ */
6883
+ interface Request_SetTournamentEnableReplayRecording {
6884
+ /**
6885
+ * @generated from protobuf field: string tournament_id = 1
6886
+ */
6887
+ tournamentId: string;
6888
+ /**
6889
+ * @generated from protobuf field: bool enable_replay_recording = 2
6890
+ */
6891
+ enableReplayRecording: boolean;
6892
+ }
6893
+ /**
6894
+ * @generated MessageType for protobuf message proto.packets.Request.SetTournamentEnableReplayRecording
6895
+ */
6896
+ declare const Request_SetTournamentEnableReplayRecording: Request_SetTournamentEnableReplayRecording$Type;
6897
+ declare class Request_SetTournamentReplayRetention$Type extends MessageType<Request_SetTournamentReplayRetention> {
6898
+ constructor();
6899
+ create(value?: PartialMessage<Request_SetTournamentReplayRetention>): Request_SetTournamentReplayRetention;
6900
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetTournamentReplayRetention): Request_SetTournamentReplayRetention;
6901
+ internalBinaryWrite(message: Request_SetTournamentReplayRetention, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6902
+ }
6903
+ /**
6904
+ * @generated from protobuf message proto.packets.Request.SetTournamentReplayRetention
6905
+ */
6906
+ interface Request_SetTournamentReplayRetention {
6907
+ /**
6908
+ * @generated from protobuf field: string tournament_id = 1
6909
+ */
6910
+ tournamentId: string;
6911
+ /**
6912
+ * @generated from protobuf field: proto.models.ReplayRetention replay_retention = 2
6913
+ */
6914
+ replayRetention: ReplayRetention;
6915
+ }
6916
+ /**
6917
+ * @generated MessageType for protobuf message proto.packets.Request.SetTournamentReplayRetention
6918
+ */
6919
+ declare const Request_SetTournamentReplayRetention: Request_SetTournamentReplayRetention$Type;
6920
+ declare class Request_SubmitReplay$Type extends MessageType<Request_SubmitReplay> {
6921
+ constructor();
6922
+ create(value?: PartialMessage<Request_SubmitReplay>): Request_SubmitReplay;
6923
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SubmitReplay): Request_SubmitReplay;
6924
+ internalBinaryWrite(message: Request_SubmitReplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6925
+ }
6926
+ /**
6927
+ * Replays are sent in chunks so they stay under the packet size limit. Every chunk of one replay shares an upload_id and the server answers each one before the next is sent
6928
+ *
6929
+ * @generated from protobuf message proto.packets.Request.SubmitReplay
6930
+ */
6931
+ interface Request_SubmitReplay {
6932
+ /**
6933
+ * @generated from protobuf field: string tournament_id = 1
6934
+ */
6935
+ tournamentId: string;
6936
+ /**
6937
+ * @generated from protobuf field: string match_id = 2
6938
+ */
6939
+ matchId: string;
6940
+ /**
6941
+ * @generated from protobuf field: string upload_id = 3
6942
+ */
6943
+ uploadId: string;
6944
+ /**
6945
+ * @generated from protobuf field: string file_name = 4
6946
+ */
6947
+ fileName: string;
6948
+ /**
6949
+ * @generated from protobuf field: int32 chunk_index = 5
6950
+ */
6951
+ chunkIndex: number;
6952
+ /**
6953
+ * @generated from protobuf field: int32 chunk_count = 6
6954
+ */
6955
+ chunkCount: number;
6956
+ /**
6957
+ * @generated from protobuf field: int64 total_size = 7
6958
+ */
6959
+ totalSize: bigint;
6960
+ /**
6961
+ * @generated from protobuf field: bytes data = 8
6962
+ */
6963
+ data: Uint8Array;
6964
+ }
6965
+ /**
6966
+ * @generated MessageType for protobuf message proto.packets.Request.SubmitReplay
6967
+ */
6968
+ declare const Request_SubmitReplay: Request_SubmitReplay$Type;
6969
+ declare class Request_GetReplays$Type extends MessageType<Request_GetReplays> {
6970
+ constructor();
6971
+ create(value?: PartialMessage<Request_GetReplays>): Request_GetReplays;
6972
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_GetReplays): Request_GetReplays;
6973
+ internalBinaryWrite(message: Request_GetReplays, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6974
+ }
6975
+ /**
6976
+ * @generated from protobuf message proto.packets.Request.GetReplays
6977
+ */
6978
+ interface Request_GetReplays {
6979
+ /**
6980
+ * @generated from protobuf field: string tournament_id = 1
6981
+ */
6982
+ tournamentId: string;
6983
+ /**
6984
+ * @generated from protobuf field: int32 page = 2
6985
+ */
6986
+ page: number;
6987
+ /**
6988
+ * @generated from protobuf field: int32 page_size = 3
6989
+ */
6990
+ pageSize: number;
6991
+ }
6992
+ /**
6993
+ * @generated MessageType for protobuf message proto.packets.Request.GetReplays
6994
+ */
6995
+ declare const Request_GetReplays: Request_GetReplays$Type;
6996
+ declare class Request_DeleteReplay$Type extends MessageType<Request_DeleteReplay> {
6997
+ constructor();
6998
+ create(value?: PartialMessage<Request_DeleteReplay>): Request_DeleteReplay;
6999
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_DeleteReplay): Request_DeleteReplay;
7000
+ internalBinaryWrite(message: Request_DeleteReplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7001
+ }
7002
+ /**
7003
+ * @generated from protobuf message proto.packets.Request.DeleteReplay
7004
+ */
7005
+ interface Request_DeleteReplay {
7006
+ /**
7007
+ * @generated from protobuf field: string tournament_id = 1
7008
+ */
7009
+ tournamentId: string;
7010
+ /**
7011
+ * @generated from protobuf field: string replay_guid = 2
7012
+ */
7013
+ replayGuid: string;
7014
+ }
7015
+ /**
7016
+ * @generated MessageType for protobuf message proto.packets.Request.DeleteReplay
7017
+ */
7018
+ declare const Request_DeleteReplay: Request_DeleteReplay$Type;
6617
7019
  declare class Request_CreateBKTournament$Type extends MessageType<Request_CreateBKTournament> {
6618
7020
  constructor();
6619
7021
  create(value?: PartialMessage<Request_CreateBKTournament>): Request_CreateBKTournament;
@@ -6788,6 +7190,12 @@ interface Push {
6788
7190
  * @generated from protobuf field: proto.packets.Push.QualifierScoreSubmitted qualifier_score_submtited = 3
6789
7191
  */
6790
7192
  qualifierScoreSubmtited: Push_QualifierScoreSubmitted;
7193
+ } | {
7194
+ oneofKind: "replaySubmitted";
7195
+ /**
7196
+ * @generated from protobuf field: proto.packets.Push.ReplaySubmitted replay_submitted = 4
7197
+ */
7198
+ replaySubmitted: Push_ReplaySubmitted;
6791
7199
  } | {
6792
7200
  oneofKind: undefined;
6793
7201
  };
@@ -6889,7 +7297,40 @@ interface Push_QualifierScoreSubmitted {
6889
7297
  /**
6890
7298
  * @generated MessageType for protobuf message proto.packets.Push.QualifierScoreSubmitted
6891
7299
  */
6892
- declare const Push_QualifierScoreSubmitted: Push_QualifierScoreSubmitted$Type;
7300
+ declare const Push_QualifierScoreSubmitted: Push_QualifierScoreSubmitted$Type;
7301
+ declare class Push_ReplaySubmitted$Type extends MessageType<Push_ReplaySubmitted> {
7302
+ constructor();
7303
+ create(value?: PartialMessage<Push_ReplaySubmitted>): Push_ReplaySubmitted;
7304
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Push_ReplaySubmitted): Push_ReplaySubmitted;
7305
+ internalBinaryWrite(message: Push_ReplaySubmitted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7306
+ }
7307
+ /**
7308
+ * Sent when a player submits a replay. When the server could not store it the replay itself is in data, so listeners still get it once
7309
+ *
7310
+ * @generated from protobuf message proto.packets.Push.ReplaySubmitted
7311
+ */
7312
+ interface Push_ReplaySubmitted {
7313
+ /**
7314
+ * @generated from protobuf field: string tournament_id = 1
7315
+ */
7316
+ tournamentId: string;
7317
+ /**
7318
+ * @generated from protobuf field: proto.models.ReplayRecording replay = 2
7319
+ */
7320
+ replay?: ReplayRecording;
7321
+ /**
7322
+ * @generated from protobuf field: bool stored = 3
7323
+ */
7324
+ stored: boolean;
7325
+ /**
7326
+ * @generated from protobuf field: bytes data = 4
7327
+ */
7328
+ data: Uint8Array;
7329
+ }
7330
+ /**
7331
+ * @generated MessageType for protobuf message proto.packets.Push.ReplaySubmitted
7332
+ */
7333
+ declare const Push_ReplaySubmitted: Push_ReplaySubmitted$Type;
6893
7334
 
6894
7335
  /**
6895
7336
  * @generated from protobuf enum proto.packets.Command.ModifyGameplay.Modifier
@@ -7256,6 +7697,7 @@ type TAClientEvents = {
7256
7697
  songFinished: Push_SongFinished;
7257
7698
  realtimeScore: RealtimeScore;
7258
7699
  qualifierScoreSubmitted: Push_QualifierScoreSubmitted;
7700
+ replaySubmitted: Push_ReplaySubmitted;
7259
7701
  responseReceived: ResponseFromUser;
7260
7702
  joinedTournament: {};
7261
7703
  failedToJoinTournament: {};
@@ -7352,6 +7794,11 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
7352
7794
  setTournamentEnableTeams: (tournamentId: string, enableTeams: boolean) => Promise<Response>;
7353
7795
  setTournamentEnablePools: (tournamentId: string, enablePools: boolean) => Promise<Response>;
7354
7796
  setTournamentEnableReplayStreaming: (tournamentId: string, enableReplayStreaming: boolean) => Promise<Response>;
7797
+ setTournamentEnableReplayRecording: (tournamentId: string, enableReplayRecording: boolean) => Promise<Response>;
7798
+ setTournamentReplayRetention: (tournamentId: string, replayRetention: ReplayRetention) => Promise<Response>;
7799
+ getReplays: (tournamentId: string, page: number, pageSize: number) => Promise<Response>;
7800
+ deleteReplay: (tournamentId: string, replayGuid: string) => Promise<Response>;
7801
+ downloadReplay: (downloadUrl: string) => Promise<Uint8Array>;
7355
7802
  setTournamentAllowMockClients: (tournamentId: string, allowMockClients: boolean) => Promise<Response>;
7356
7803
  setTournamentShowTournamentButton: (tournamentId: string, showTournamentButton: boolean) => Promise<Response>;
7357
7804
  setTournamentShowQualifierButton: (tournamentId: string, showQualifierButton: boolean) => Promise<Response>;
@@ -7383,9 +7830,9 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
7383
7830
  declare const masterAddress = "server.tournamentassistant.net";
7384
7831
  declare const masterPort = "8676";
7385
7832
  declare const masterApiPort = "8678";
7386
- declare const version = "1.3.3";
7387
- declare const versionCode = 1330;
7833
+ declare const version = "1.4.0";
7834
+ declare const versionCode = 1400;
7388
7835
  type Permission = "tournament:view_tournament_in_list" | "tournament:join" | "tournament:settings:add_authorized_users" | "tournament:settings:update_authorized_user_roles" | "tournament:settings:remove_authorized_users" | "tournament:settings:get_authorized_users" | "tournament:settings:get_discord_info" | "tournament:qualifier:get_qualifier_scores" | "tournament:qualifier:submit_qualifier_scores" | "tournament:qualifier:see_hidden_qualifier_scores" | "tournament:qualifier:get_remaining_attempts" | "tournament:qualifier:refund_attempts" | "tournament:player:return_to_menu" | "tournament:player:play_song" | "tournament:player:play_with_stream_sync" | "tournament:player:modify_gameplay" | "tournament:player:load_song" | "tournament:player:show_prompt" | "tournament:match:create_match" | "tournament:match:add_user_to_match" | "tournament:match:remove_user_from_match" | "tournament:match:set_match_leader" | "tournament:match:set_match_map" | "tournament:match:delete_match" | "tournament:qualifier:create" | "tournament:qualifier:set_name" | "tournament:qualifier:set_image" | "tournament:qualifier:set_info_channel" | "tournament:qualifier:set_flags" | "tournament:qualifier:set_leaderboard_sort" | "tournament:qualifier:set_start_time" | "tournament:qualifier:set_end_time" | "tournament:qualifier:add_maps" | "tournament:qualifier:update_map" | "tournament:qualifier:remove_map" | "tournament:qualifier:delete" | "tournament:webhooks:manage" | "tournament:settings:set_name" | "tournament:settings:set_image" | "tournament:settings:set_enable_teams" | "tournament:settings:set_enable_pools" | "tournament:settings:set_allow_mock_clients" | "tournament:settings:set_show_tournament_button" | "tournament:settings:set_show_qualifier_button" | "tournament:settings:set_allow_unauthorized_view" | "tournament:settings:set_score_update_frequency" | "tournament:settings:set_banned_mods" | "tournament:settings:add_team" | "tournament:settings:set_team_name" | "tournament:settings:set_team_image" | "tournament:settings:remove_team" | "tournament:settings:add_pool" | "tournament:settings:set_pool_name" | "tournament:settings:set_pool_image" | "tournament:settings:add_pool_maps" | "tournament:settings:update_pool_maps" | "tournament:settings:remove_pool_maps" | "tournament:settings:remove_pools" | "tournament:settings:add_role" | "tournament:settings:set_role_name" | "tournament:settings:set_role_permissions" | "tournament:settings:remove_role" | "tournament:settings:delete";
7389
7836
 
7390
- export { Acknowledgement, Acknowledgement_AcknowledgementType, Beatmap, BeatmapIdentity, Channel, Characteristic, Command, Command_ModifyGameplay, Command_ModifyGameplay_Modifier, Command_PlaySong, Command_ShowColorForStreamSync, CoreServer, CustomEventEmitter, DiscordUser, EndpointAccess, Event, Event_MatchCreated, Event_MatchDeleted, Event_MatchUpdated, Event_QualifierCreated, Event_QualifierDeleted, Event_QualifierUpdated, Event_ServerAdded, Event_ServerDeleted, Event_TournamentCreated, Event_TournamentDeleted, Event_TournamentUpdated, Event_UserAdded, Event_UserLeft, Event_UserUpdated, ForwardingPacket, GameplayModifiers, GameplayModifiers_GameOptions, GameplayParameters, GlobalConfiguration, Guild, LeaderboardEntry, LogLevel, Map, Match, Packet, PlayerIdentity, PlayerSpecificSettings, PlayerSpecificSettings_ArcVisibilityType, PlayerSpecificSettings_NoteJumpDurationTypeSettings, PlayerSpecificSettings_PlayerOptions, Push, Push_QualifierScoreSubmitted, Push_SongFinished, Push_SongFinished_CompletionType, QualifierEvent, QualifierEvent_EventSettings, QualifierEvent_LeaderboardSort, RealtimeScore, ReplayChunk, ReplayColor, ReplayComboEvent, ReplayCompletion, ReplayCursor, ReplayEnergyEvent, ReplayEventCounts, ReplayExtension, ReplayHeightEvent, ReplayMultiplierEvent, ReplayNoteEvent, ReplayNoteEventType, ReplayNoteId, ReplayPauseEvent, ReplayPlatform, ReplayPose, ReplayPoseFrame, ReplayQuaternion, ReplayScoreEvent, ReplayScoreSummary, ReplayStreamEnd, ReplayStreamPacket, ReplayStreamStart, ReplayVector3, Request, Request_AddAuthorizedUser, Request_AddQualifierMaps, Request_AddServer, Request_AddTournamentPool, Request_AddTournamentPoolMaps, Request_AddTournamentRole, Request_AddTournamentTeam, Request_AddUserToMatch, Request_Connect, Request_CreateBKTournament, Request_CreateBKTournament_AuthorizedUser, Request_CreateBKTournament_BeatKhanaUser, Request_CreateBKTournament_WebhookRegistration, Request_CreateMatch, Request_CreateQualifierEvent, Request_CreateTournament, Request_CreateWebhook, Request_DeleteMatch, Request_DeleteQualifierEvent, Request_DeleteTournament, Request_DeleteWebhook, Request_GenerateBotToken, Request_GetAuthorizedUsers, Request_GetBotTokensForUser, Request_GetDiscordInfo, Request_GetGlobalConfiguration, Request_GetWebhooks, Request_Join, Request_LeaveTournament, Request_LoadSong, Request_PreloadImageForStreamSync, Request_QualifierScores, Request_RefundAttempts, Request_RemainingAttempts, Request_RemoveAuthorizedUser, Request_RemoveQualifierMap, Request_RemoveTournamentPool, Request_RemoveTournamentPoolMap, Request_RemoveTournamentRole, Request_RemoveTournamentTeam, Request_RemoveUserFromMatch, Request_RevokeBotToken, Request_SetBKTournamentLink, Request_SetMatchLeader, Request_SetMatchMap, Request_SetQualifierEndTime, Request_SetQualifierFlags, Request_SetQualifierImage, Request_SetQualifierInfoChannel, Request_SetQualifierLeaderboardSort, Request_SetQualifierName, Request_SetQualifierStartTime, Request_SetTournamentAllowMockClients, Request_SetTournamentAllowUnauthorizedView, Request_SetTournamentBannedMods, Request_SetTournamentEnablePools, Request_SetTournamentEnableReplayStreaming, Request_SetTournamentEnableTeams, Request_SetTournamentImage, Request_SetTournamentName, Request_SetTournamentPoolImage, Request_SetTournamentPoolName, Request_SetTournamentRoleName, Request_SetTournamentRolePermissions, Request_SetTournamentScoreUpdateFrequency, Request_SetTournamentShowQualifierButton, Request_SetTournamentShowTournamentButton, Request_SetTournamentTeamImage, Request_SetTournamentTeamName, Request_ShowPrompt, Request_ShowPrompt_PromptOption, Request_SubmitQualifierScore, Request_UpdateAuthorizedUserRoles, Request_UpdateGlobalConfiguration, Request_UpdateQualifierMap, Request_UpdateTournamentPoolMap, Request_UpdateUser, Request_UpdateWebhook, Response, Response_AddAuthorizedUser, Response_AddServer, Response_Connect, Response_Connect_ConnectFailReason, Response_CreateBKTournament, Response_CreateMatch, Response_CreateQualifierEvent, Response_CreateTournament, Response_CreateWebhook, Response_DeleteMatch, Response_DeleteQualifierEvent, Response_DeleteTournament, Response_DeleteWebhook, Response_GenerateBotToken, Response_GetAuthorizedUsers, Response_GetAuthorizedUsers_AuthroizedUser, Response_GetBotTokensForUser, Response_GetBotTokensForUser_BotUser, Response_GetDiscordInfo, Response_GetGlobalConfiguration, Response_GetWebhooks, Response_Join, Response_Join_JoinFailReason, Response_LeaderboardEntries, Response_LeaveTournament, Response_LoadSong, Response_PermissionError, Response_PreloadImageForStreamSync, Response_RefundAttempts, Response_RemainingAttempts, Response_RemoveAuthorizedUser, Response_ResponseType, Response_RevokeBotToken, Response_SetBKTournamentLink, Response_ShowPrompt, Response_UpdateAuthorizedUser, Response_UpdateGlobalConfiguration, Response_UpdateMatch, Response_UpdateQualifierEvent, Response_UpdateTournament, Response_UpdateUser, Response_UpdateWebhook, Role, ScoreTrackerHand, State, StreamReplayEventBatch, StreamReplayMetadata, TAClient, Timestamp, Tournament, Tournament_TournamentSettings, Tournament_TournamentSettings_Pool, Tournament_TournamentSettings_Team, User, User_ClientTypes, User_DiscordInfo, User_DownloadStates, User_PlayStates, User_Point, Webhook, Webhook_Trigger, getTournaments, masterAddress, masterApiPort, masterPort, version, versionCode };
7837
+ export { Acknowledgement, Acknowledgement_AcknowledgementType, Beatmap, BeatmapIdentity, Channel, Characteristic, Command, Command_ModifyGameplay, Command_ModifyGameplay_Modifier, Command_PlaySong, Command_ShowColorForStreamSync, CoreServer, CustomEventEmitter, DiscordUser, EndpointAccess, Event, Event_MatchCreated, Event_MatchDeleted, Event_MatchUpdated, Event_QualifierCreated, Event_QualifierDeleted, Event_QualifierUpdated, Event_ServerAdded, Event_ServerDeleted, Event_TournamentCreated, Event_TournamentDeleted, Event_TournamentUpdated, Event_UserAdded, Event_UserLeft, Event_UserUpdated, ForwardingPacket, GameplayModifiers, GameplayModifiers_GameOptions, GameplayParameters, GlobalConfiguration, Guild, LeaderboardEntry, LogLevel, Map, Match, Packet, PlayerIdentity, PlayerSpecificSettings, PlayerSpecificSettings_ArcVisibilityType, PlayerSpecificSettings_NoteJumpDurationTypeSettings, PlayerSpecificSettings_PlayerOptions, Push, Push_QualifierScoreSubmitted, Push_ReplaySubmitted, Push_SongFinished, Push_SongFinished_CompletionType, QualifierEvent, QualifierEvent_EventSettings, QualifierEvent_LeaderboardSort, RealtimeScore, ReplayChunk, ReplayColor, ReplayComboEvent, ReplayCompletion, ReplayCursor, ReplayEnergyEvent, ReplayEventCounts, ReplayExtension, ReplayHeightEvent, ReplayMultiplierEvent, ReplayNoteEvent, ReplayNoteEventType, ReplayNoteId, ReplayPauseEvent, ReplayPlatform, ReplayPose, ReplayPoseFrame, ReplayQuaternion, ReplayRecording, ReplayRetention, ReplayScoreEvent, ReplayScoreSummary, ReplayStreamEnd, ReplayStreamPacket, ReplayStreamStart, ReplayVector3, Request, Request_AddAuthorizedUser, Request_AddQualifierMaps, Request_AddServer, Request_AddTournamentPool, Request_AddTournamentPoolMaps, Request_AddTournamentRole, Request_AddTournamentTeam, Request_AddUserToMatch, Request_Connect, Request_CreateBKTournament, Request_CreateBKTournament_AuthorizedUser, Request_CreateBKTournament_BeatKhanaUser, Request_CreateBKTournament_WebhookRegistration, Request_CreateMatch, Request_CreateQualifierEvent, Request_CreateTournament, Request_CreateWebhook, Request_DeleteMatch, Request_DeleteQualifierEvent, Request_DeleteReplay, Request_DeleteTournament, Request_DeleteWebhook, Request_GenerateBotToken, Request_GetAuthorizedUsers, Request_GetBotTokensForUser, Request_GetDiscordInfo, Request_GetGlobalConfiguration, Request_GetReplays, Request_GetWebhooks, Request_Join, Request_LeaveTournament, Request_LoadSong, Request_PreloadImageForStreamSync, Request_QualifierScores, Request_RefundAttempts, Request_RemainingAttempts, Request_RemoveAuthorizedUser, Request_RemoveQualifierMap, Request_RemoveTournamentPool, Request_RemoveTournamentPoolMap, Request_RemoveTournamentRole, Request_RemoveTournamentTeam, Request_RemoveUserFromMatch, Request_RevokeBotToken, Request_SetBKTournamentLink, Request_SetMatchLeader, Request_SetMatchMap, Request_SetQualifierEndTime, Request_SetQualifierFlags, Request_SetQualifierImage, Request_SetQualifierInfoChannel, Request_SetQualifierLeaderboardSort, Request_SetQualifierName, Request_SetQualifierStartTime, Request_SetTournamentAllowMockClients, Request_SetTournamentAllowUnauthorizedView, Request_SetTournamentBannedMods, Request_SetTournamentEnablePools, Request_SetTournamentEnableReplayRecording, Request_SetTournamentEnableReplayStreaming, Request_SetTournamentEnableTeams, Request_SetTournamentImage, Request_SetTournamentName, Request_SetTournamentPoolImage, Request_SetTournamentPoolName, Request_SetTournamentReplayRetention, Request_SetTournamentRoleName, Request_SetTournamentRolePermissions, Request_SetTournamentScoreUpdateFrequency, Request_SetTournamentShowQualifierButton, Request_SetTournamentShowTournamentButton, Request_SetTournamentTeamImage, Request_SetTournamentTeamName, Request_ShowPrompt, Request_ShowPrompt_PromptOption, Request_SubmitQualifierScore, Request_SubmitReplay, Request_UpdateAuthorizedUserRoles, Request_UpdateGlobalConfiguration, Request_UpdateQualifierMap, Request_UpdateTournamentPoolMap, Request_UpdateUser, Request_UpdateWebhook, Response, Response_AddAuthorizedUser, Response_AddServer, Response_Connect, Response_Connect_ConnectFailReason, Response_CreateBKTournament, Response_CreateMatch, Response_CreateQualifierEvent, Response_CreateTournament, Response_CreateWebhook, Response_DeleteMatch, Response_DeleteQualifierEvent, Response_DeleteReplay, Response_DeleteTournament, Response_DeleteWebhook, Response_GenerateBotToken, Response_GetAuthorizedUsers, Response_GetAuthorizedUsers_AuthroizedUser, Response_GetBotTokensForUser, Response_GetBotTokensForUser_BotUser, Response_GetDiscordInfo, Response_GetGlobalConfiguration, Response_GetReplays, Response_GetWebhooks, Response_Join, Response_Join_JoinFailReason, Response_LeaderboardEntries, Response_LeaveTournament, Response_LoadSong, Response_PermissionError, Response_PreloadImageForStreamSync, Response_RefundAttempts, Response_RemainingAttempts, Response_RemoveAuthorizedUser, Response_ResponseType, Response_RevokeBotToken, Response_SetBKTournamentLink, Response_ShowPrompt, Response_SubmitReplay, Response_UpdateAuthorizedUser, Response_UpdateGlobalConfiguration, Response_UpdateMatch, Response_UpdateQualifierEvent, Response_UpdateTournament, Response_UpdateUser, Response_UpdateWebhook, Role, ScoreTrackerHand, State, StreamReplayEventBatch, StreamReplayMetadata, TAClient, Timestamp, Tournament, Tournament_TournamentSettings, Tournament_TournamentSettings_Pool, Tournament_TournamentSettings_Team, User, User_ClientTypes, User_DiscordInfo, User_DownloadStates, User_PlayStates, User_Point, Webhook, Webhook_Trigger, getTournaments, masterAddress, masterApiPort, masterPort, version, versionCode };
7391
7838
  export type { Permission, ResponseFromUser };