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/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();
@@ -1118,6 +1145,165 @@ interface Webhook {
1118
1145
  * @generated MessageType for protobuf message proto.models.Webhook
1119
1146
  */
1120
1147
  declare const Webhook: Webhook$Type;
1148
+ declare class EndpointAccess$Type extends MessageType<EndpointAccess> {
1149
+ constructor();
1150
+ create(value?: PartialMessage<EndpointAccess>): EndpointAccess;
1151
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndpointAccess): EndpointAccess;
1152
+ internalBinaryWrite(message: EndpointAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1153
+ }
1154
+ /**
1155
+ * @generated from protobuf message proto.models.EndpointAccess
1156
+ */
1157
+ interface EndpointAccess {
1158
+ /**
1159
+ * @generated from protobuf field: string endpoint_id = 1
1160
+ */
1161
+ endpointId: string;
1162
+ /**
1163
+ * @generated from protobuf field: string display_name = 2
1164
+ */
1165
+ displayName: string;
1166
+ /**
1167
+ * @generated from protobuf field: string route = 3
1168
+ */
1169
+ route: string;
1170
+ /**
1171
+ * @generated from protobuf field: bool supports_websocket = 4
1172
+ */
1173
+ supportsWebsocket: boolean;
1174
+ /**
1175
+ * @generated from protobuf field: bool supports_rest = 5
1176
+ */
1177
+ supportsRest: boolean;
1178
+ /**
1179
+ * @generated from protobuf field: bool supports_player = 6
1180
+ */
1181
+ supportsPlayer: boolean;
1182
+ /**
1183
+ * @generated from protobuf field: bool websocket_enabled = 7
1184
+ */
1185
+ websocketEnabled: boolean;
1186
+ /**
1187
+ * @generated from protobuf field: bool rest_enabled = 8
1188
+ */
1189
+ restEnabled: boolean;
1190
+ /**
1191
+ * @generated from protobuf field: bool player_enabled = 9
1192
+ */
1193
+ playerEnabled: boolean;
1194
+ /**
1195
+ * @generated from protobuf field: bool is_core = 10
1196
+ */
1197
+ isCore: boolean;
1198
+ }
1199
+ /**
1200
+ * @generated MessageType for protobuf message proto.models.EndpointAccess
1201
+ */
1202
+ declare const EndpointAccess: EndpointAccess$Type;
1203
+ declare class GlobalConfiguration$Type extends MessageType<GlobalConfiguration> {
1204
+ constructor();
1205
+ create(value?: PartialMessage<GlobalConfiguration>): GlobalConfiguration;
1206
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GlobalConfiguration): GlobalConfiguration;
1207
+ internalBinaryWrite(message: GlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1208
+ }
1209
+ /**
1210
+ * @generated from protobuf message proto.models.GlobalConfiguration
1211
+ */
1212
+ interface GlobalConfiguration {
1213
+ /**
1214
+ * @generated from protobuf field: repeated string full_access_discord_ids = 1
1215
+ */
1216
+ fullAccessDiscordIds: string[];
1217
+ /**
1218
+ * @generated from protobuf field: repeated string endpoint_manager_discord_ids = 2
1219
+ */
1220
+ endpointManagerDiscordIds: string[];
1221
+ /**
1222
+ * @generated from protobuf field: repeated proto.models.EndpointAccess endpoints = 3
1223
+ */
1224
+ endpoints: EndpointAccess[];
1225
+ }
1226
+ /**
1227
+ * @generated MessageType for protobuf message proto.models.GlobalConfiguration
1228
+ */
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;
1121
1307
  declare class Tournament$Type extends MessageType<Tournament> {
1122
1308
  constructor();
1123
1309
  create(value?: PartialMessage<Tournament>): Tournament;
@@ -1227,6 +1413,34 @@ interface Tournament_TournamentSettings {
1227
1413
  * @generated from protobuf field: bool allow_mock_clients = 15
1228
1414
  */
1229
1415
  allowMockClients: boolean;
1416
+ /**
1417
+ * @generated from protobuf field: bool is_bk_tournament = 16
1418
+ */
1419
+ isBkTournament: boolean;
1420
+ /**
1421
+ * @generated from protobuf field: string beat_khana_tournament_guid = 17
1422
+ */
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;
1230
1444
  }
1231
1445
  /**
1232
1446
  * @generated MessageType for protobuf message proto.models.Tournament.TournamentSettings
@@ -3240,6 +3454,48 @@ interface Response {
3240
3454
  * @generated from protobuf field: proto.packets.Response.DeleteWebhook delete_webhook = 35
3241
3455
  */
3242
3456
  deleteWebhook: Response_DeleteWebhook;
3457
+ } | {
3458
+ oneofKind: "getGlobalConfiguration";
3459
+ /**
3460
+ * @generated from protobuf field: proto.packets.Response.GetGlobalConfiguration get_global_configuration = 36
3461
+ */
3462
+ getGlobalConfiguration: Response_GetGlobalConfiguration;
3463
+ } | {
3464
+ oneofKind: "updateGlobalConfiguration";
3465
+ /**
3466
+ * @generated from protobuf field: proto.packets.Response.UpdateGlobalConfiguration update_global_configuration = 37
3467
+ */
3468
+ updateGlobalConfiguration: Response_UpdateGlobalConfiguration;
3469
+ } | {
3470
+ oneofKind: "createBkTournament";
3471
+ /**
3472
+ * @generated from protobuf field: proto.packets.Response.CreateBKTournament create_bk_tournament = 38
3473
+ */
3474
+ createBkTournament: Response_CreateBKTournament;
3475
+ } | {
3476
+ oneofKind: "setBkTournamentLink";
3477
+ /**
3478
+ * @generated from protobuf field: proto.packets.Response.SetBKTournamentLink set_bk_tournament_link = 39
3479
+ */
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;
3243
3499
  } | {
3244
3500
  oneofKind: undefined;
3245
3501
  };
@@ -4072,7 +4328,180 @@ interface Response_DeleteWebhook {
4072
4328
  /**
4073
4329
  * @generated MessageType for protobuf message proto.packets.Response.DeleteWebhook
4074
4330
  */
4075
- declare const Response_DeleteWebhook: Response_DeleteWebhook$Type;
4331
+ declare const Response_DeleteWebhook: Response_DeleteWebhook$Type;
4332
+ declare class Response_GetGlobalConfiguration$Type extends MessageType<Response_GetGlobalConfiguration> {
4333
+ constructor();
4334
+ create(value?: PartialMessage<Response_GetGlobalConfiguration>): Response_GetGlobalConfiguration;
4335
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetGlobalConfiguration): Response_GetGlobalConfiguration;
4336
+ internalBinaryWrite(message: Response_GetGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4337
+ }
4338
+ /**
4339
+ * @generated from protobuf message proto.packets.Response.GetGlobalConfiguration
4340
+ */
4341
+ interface Response_GetGlobalConfiguration {
4342
+ /**
4343
+ * @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
4344
+ */
4345
+ configuration?: GlobalConfiguration;
4346
+ }
4347
+ /**
4348
+ * @generated MessageType for protobuf message proto.packets.Response.GetGlobalConfiguration
4349
+ */
4350
+ declare const Response_GetGlobalConfiguration: Response_GetGlobalConfiguration$Type;
4351
+ declare class Response_UpdateGlobalConfiguration$Type extends MessageType<Response_UpdateGlobalConfiguration> {
4352
+ constructor();
4353
+ create(value?: PartialMessage<Response_UpdateGlobalConfiguration>): Response_UpdateGlobalConfiguration;
4354
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateGlobalConfiguration): Response_UpdateGlobalConfiguration;
4355
+ internalBinaryWrite(message: Response_UpdateGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4356
+ }
4357
+ /**
4358
+ * @generated from protobuf message proto.packets.Response.UpdateGlobalConfiguration
4359
+ */
4360
+ interface Response_UpdateGlobalConfiguration {
4361
+ /**
4362
+ * @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
4363
+ */
4364
+ configuration?: GlobalConfiguration;
4365
+ /**
4366
+ * @generated from protobuf field: string message = 2
4367
+ */
4368
+ message: string;
4369
+ }
4370
+ /**
4371
+ * @generated MessageType for protobuf message proto.packets.Response.UpdateGlobalConfiguration
4372
+ */
4373
+ declare const Response_UpdateGlobalConfiguration: Response_UpdateGlobalConfiguration$Type;
4374
+ declare class Response_SetBKTournamentLink$Type extends MessageType<Response_SetBKTournamentLink> {
4375
+ constructor();
4376
+ create(value?: PartialMessage<Response_SetBKTournamentLink>): Response_SetBKTournamentLink;
4377
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_SetBKTournamentLink): Response_SetBKTournamentLink;
4378
+ internalBinaryWrite(message: Response_SetBKTournamentLink, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4379
+ }
4380
+ /**
4381
+ * @generated from protobuf message proto.packets.Response.SetBKTournamentLink
4382
+ */
4383
+ interface Response_SetBKTournamentLink {
4384
+ /**
4385
+ * @generated from protobuf field: proto.models.Tournament tournament = 1
4386
+ */
4387
+ tournament?: Tournament;
4388
+ /**
4389
+ * @generated from protobuf field: string message = 2
4390
+ */
4391
+ message: string;
4392
+ }
4393
+ /**
4394
+ * @generated MessageType for protobuf message proto.packets.Response.SetBKTournamentLink
4395
+ */
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;
4482
+ declare class Response_CreateBKTournament$Type extends MessageType<Response_CreateBKTournament> {
4483
+ constructor();
4484
+ create(value?: PartialMessage<Response_CreateBKTournament>): Response_CreateBKTournament;
4485
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_CreateBKTournament): Response_CreateBKTournament;
4486
+ internalBinaryWrite(message: Response_CreateBKTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4487
+ }
4488
+ /**
4489
+ * @generated from protobuf message proto.packets.Response.CreateBKTournament
4490
+ */
4491
+ interface Response_CreateBKTournament {
4492
+ /**
4493
+ * @generated from protobuf field: string beat_khana_tournament_guid = 1
4494
+ */
4495
+ beatKhanaTournamentGuid: string;
4496
+ /**
4497
+ * @generated from protobuf field: proto.models.Tournament tournament = 2
4498
+ */
4499
+ tournament?: Tournament;
4500
+ }
4501
+ /**
4502
+ * @generated MessageType for protobuf message proto.packets.Response.CreateBKTournament
4503
+ */
4504
+ declare const Response_CreateBKTournament: Response_CreateBKTournament$Type;
4076
4505
 
4077
4506
  declare class Request$Type extends MessageType<Request> {
4078
4507
  constructor();
@@ -4509,6 +4938,54 @@ interface Request {
4509
4938
  * @generated from protobuf field: proto.packets.Request.DeleteWebhook delete_webhook = 72
4510
4939
  */
4511
4940
  deleteWebhook: Request_DeleteWebhook;
4941
+ } | {
4942
+ oneofKind: "getGlobalConfiguration";
4943
+ /**
4944
+ * @generated from protobuf field: proto.packets.Request.GetGlobalConfiguration get_global_configuration = 73
4945
+ */
4946
+ getGlobalConfiguration: Request_GetGlobalConfiguration;
4947
+ } | {
4948
+ oneofKind: "updateGlobalConfiguration";
4949
+ /**
4950
+ * @generated from protobuf field: proto.packets.Request.UpdateGlobalConfiguration update_global_configuration = 74
4951
+ */
4952
+ updateGlobalConfiguration: Request_UpdateGlobalConfiguration;
4953
+ } | {
4954
+ oneofKind: "setBkTournamentLink";
4955
+ /**
4956
+ * @generated from protobuf field: proto.packets.Request.SetBKTournamentLink set_bk_tournament_link = 75
4957
+ */
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;
4512
4989
  } | {
4513
4990
  oneofKind: undefined;
4514
4991
  };
@@ -6329,7 +6806,339 @@ interface Request_DeleteWebhook {
6329
6806
  /**
6330
6807
  * @generated MessageType for protobuf message proto.packets.Request.DeleteWebhook
6331
6808
  */
6332
- declare const Request_DeleteWebhook: Request_DeleteWebhook$Type;
6809
+ declare const Request_DeleteWebhook: Request_DeleteWebhook$Type;
6810
+ declare class Request_GetGlobalConfiguration$Type extends MessageType<Request_GetGlobalConfiguration> {
6811
+ constructor();
6812
+ create(value?: PartialMessage<Request_GetGlobalConfiguration>): Request_GetGlobalConfiguration;
6813
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_GetGlobalConfiguration): Request_GetGlobalConfiguration;
6814
+ internalBinaryWrite(message: Request_GetGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6815
+ }
6816
+ /**
6817
+ * @generated from protobuf message proto.packets.Request.GetGlobalConfiguration
6818
+ */
6819
+ interface Request_GetGlobalConfiguration {
6820
+ }
6821
+ /**
6822
+ * @generated MessageType for protobuf message proto.packets.Request.GetGlobalConfiguration
6823
+ */
6824
+ declare const Request_GetGlobalConfiguration: Request_GetGlobalConfiguration$Type;
6825
+ declare class Request_UpdateGlobalConfiguration$Type extends MessageType<Request_UpdateGlobalConfiguration> {
6826
+ constructor();
6827
+ create(value?: PartialMessage<Request_UpdateGlobalConfiguration>): Request_UpdateGlobalConfiguration;
6828
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_UpdateGlobalConfiguration): Request_UpdateGlobalConfiguration;
6829
+ internalBinaryWrite(message: Request_UpdateGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6830
+ }
6831
+ /**
6832
+ * @generated from protobuf message proto.packets.Request.UpdateGlobalConfiguration
6833
+ */
6834
+ interface Request_UpdateGlobalConfiguration {
6835
+ /**
6836
+ * @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
6837
+ */
6838
+ configuration?: GlobalConfiguration;
6839
+ }
6840
+ /**
6841
+ * @generated MessageType for protobuf message proto.packets.Request.UpdateGlobalConfiguration
6842
+ */
6843
+ declare const Request_UpdateGlobalConfiguration: Request_UpdateGlobalConfiguration$Type;
6844
+ declare class Request_SetBKTournamentLink$Type extends MessageType<Request_SetBKTournamentLink> {
6845
+ constructor();
6846
+ create(value?: PartialMessage<Request_SetBKTournamentLink>): Request_SetBKTournamentLink;
6847
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetBKTournamentLink): Request_SetBKTournamentLink;
6848
+ internalBinaryWrite(message: Request_SetBKTournamentLink, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6849
+ }
6850
+ /**
6851
+ * Links or unlinks an existing TournamentAssistant tournament to BeatKhana.
6852
+ * This operation is restricted to full-access global admins (moon and luna for now).
6853
+ *
6854
+ * @generated from protobuf message proto.packets.Request.SetBKTournamentLink
6855
+ */
6856
+ interface Request_SetBKTournamentLink {
6857
+ /**
6858
+ * @generated from protobuf field: string tournament_id = 1
6859
+ */
6860
+ tournamentId: string;
6861
+ /**
6862
+ * @generated from protobuf field: bool is_bk_tournament = 2
6863
+ */
6864
+ isBkTournament: boolean;
6865
+ /**
6866
+ * @generated from protobuf field: string beat_khana_tournament_guid = 3
6867
+ */
6868
+ beatKhanaTournamentGuid: string;
6869
+ }
6870
+ /**
6871
+ * @generated MessageType for protobuf message proto.packets.Request.SetBKTournamentLink
6872
+ */
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;
7019
+ declare class Request_CreateBKTournament$Type extends MessageType<Request_CreateBKTournament> {
7020
+ constructor();
7021
+ create(value?: PartialMessage<Request_CreateBKTournament>): Request_CreateBKTournament;
7022
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateBKTournament): Request_CreateBKTournament;
7023
+ internalBinaryWrite(message: Request_CreateBKTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7024
+ }
7025
+ /**
7026
+ * This message is used by the dedicated POST /bks/tournaments REST route.
7027
+ * It is intentionally not part of the general packet oneof.
7028
+ *
7029
+ * @generated from protobuf message proto.packets.Request.CreateBKTournament
7030
+ */
7031
+ interface Request_CreateBKTournament {
7032
+ /**
7033
+ * @generated from protobuf field: string beat_khana_tournament_guid = 1
7034
+ */
7035
+ beatKhanaTournamentGuid: string;
7036
+ /**
7037
+ * @generated from protobuf field: proto.models.Tournament tournament = 2
7038
+ */
7039
+ tournament?: Tournament;
7040
+ /**
7041
+ * @generated from protobuf field: proto.packets.Request.CreateBKTournament.BeatKhanaUser organizer = 3
7042
+ */
7043
+ organizer?: Request_CreateBKTournament_BeatKhanaUser;
7044
+ /**
7045
+ * @generated from protobuf field: repeated string organizer_permissions = 4
7046
+ */
7047
+ organizerPermissions: string[];
7048
+ /**
7049
+ * @generated from protobuf field: repeated proto.models.Role roles = 5
7050
+ */
7051
+ roles: Role[];
7052
+ /**
7053
+ * @generated from protobuf field: repeated proto.packets.Request.CreateBKTournament.AuthorizedUser authorized_users = 6
7054
+ */
7055
+ authorizedUsers: Request_CreateBKTournament_AuthorizedUser[];
7056
+ /**
7057
+ * @generated from protobuf field: repeated proto.packets.Request.CreateBKTournament.WebhookRegistration webhooks = 7
7058
+ */
7059
+ webhooks: Request_CreateBKTournament_WebhookRegistration[];
7060
+ }
7061
+ /**
7062
+ * @generated MessageType for protobuf message proto.packets.Request.CreateBKTournament
7063
+ */
7064
+ declare const Request_CreateBKTournament: Request_CreateBKTournament$Type;
7065
+ declare class Request_CreateBKTournament_BeatKhanaUser$Type extends MessageType<Request_CreateBKTournament_BeatKhanaUser> {
7066
+ constructor();
7067
+ create(value?: PartialMessage<Request_CreateBKTournament_BeatKhanaUser>): Request_CreateBKTournament_BeatKhanaUser;
7068
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateBKTournament_BeatKhanaUser): Request_CreateBKTournament_BeatKhanaUser;
7069
+ internalBinaryWrite(message: Request_CreateBKTournament_BeatKhanaUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7070
+ }
7071
+ /**
7072
+ * @generated from protobuf message proto.packets.Request.CreateBKTournament.BeatKhanaUser
7073
+ */
7074
+ interface Request_CreateBKTournament_BeatKhanaUser {
7075
+ /**
7076
+ * @generated from protobuf field: string discord_id = 1
7077
+ */
7078
+ discordId: string;
7079
+ /**
7080
+ * @generated from protobuf field: string preferred_name = 2
7081
+ */
7082
+ preferredName: string;
7083
+ /**
7084
+ * @generated from protobuf field: string avatar_url = 3
7085
+ */
7086
+ avatarUrl: string;
7087
+ }
7088
+ /**
7089
+ * @generated MessageType for protobuf message proto.packets.Request.CreateBKTournament.BeatKhanaUser
7090
+ */
7091
+ declare const Request_CreateBKTournament_BeatKhanaUser: Request_CreateBKTournament_BeatKhanaUser$Type;
7092
+ declare class Request_CreateBKTournament_AuthorizedUser$Type extends MessageType<Request_CreateBKTournament_AuthorizedUser> {
7093
+ constructor();
7094
+ create(value?: PartialMessage<Request_CreateBKTournament_AuthorizedUser>): Request_CreateBKTournament_AuthorizedUser;
7095
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateBKTournament_AuthorizedUser): Request_CreateBKTournament_AuthorizedUser;
7096
+ internalBinaryWrite(message: Request_CreateBKTournament_AuthorizedUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7097
+ }
7098
+ /**
7099
+ * @generated from protobuf message proto.packets.Request.CreateBKTournament.AuthorizedUser
7100
+ */
7101
+ interface Request_CreateBKTournament_AuthorizedUser {
7102
+ /**
7103
+ * @generated from protobuf field: proto.packets.Request.CreateBKTournament.BeatKhanaUser user = 1
7104
+ */
7105
+ user?: Request_CreateBKTournament_BeatKhanaUser;
7106
+ /**
7107
+ * @generated from protobuf field: repeated string role_ids = 2
7108
+ */
7109
+ roleIds: string[];
7110
+ }
7111
+ /**
7112
+ * @generated MessageType for protobuf message proto.packets.Request.CreateBKTournament.AuthorizedUser
7113
+ */
7114
+ declare const Request_CreateBKTournament_AuthorizedUser: Request_CreateBKTournament_AuthorizedUser$Type;
7115
+ declare class Request_CreateBKTournament_WebhookRegistration$Type extends MessageType<Request_CreateBKTournament_WebhookRegistration> {
7116
+ constructor();
7117
+ create(value?: PartialMessage<Request_CreateBKTournament_WebhookRegistration>): Request_CreateBKTournament_WebhookRegistration;
7118
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateBKTournament_WebhookRegistration): Request_CreateBKTournament_WebhookRegistration;
7119
+ internalBinaryWrite(message: Request_CreateBKTournament_WebhookRegistration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7120
+ }
7121
+ /**
7122
+ * @generated from protobuf message proto.packets.Request.CreateBKTournament.WebhookRegistration
7123
+ */
7124
+ interface Request_CreateBKTournament_WebhookRegistration {
7125
+ /**
7126
+ * @generated from protobuf field: string url = 1
7127
+ */
7128
+ url: string;
7129
+ /**
7130
+ * @generated from protobuf field: int64 triggers = 2
7131
+ */
7132
+ triggers: bigint;
7133
+ /**
7134
+ * @generated from protobuf field: string signing_secret = 3
7135
+ */
7136
+ signingSecret: string;
7137
+ }
7138
+ /**
7139
+ * @generated MessageType for protobuf message proto.packets.Request.CreateBKTournament.WebhookRegistration
7140
+ */
7141
+ declare const Request_CreateBKTournament_WebhookRegistration: Request_CreateBKTournament_WebhookRegistration$Type;
6333
7142
 
6334
7143
  /**
6335
7144
  * @generated from protobuf enum proto.packets.Push.SongFinished.CompletionType
@@ -6381,6 +7190,12 @@ interface Push {
6381
7190
  * @generated from protobuf field: proto.packets.Push.QualifierScoreSubmitted qualifier_score_submtited = 3
6382
7191
  */
6383
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;
6384
7199
  } | {
6385
7200
  oneofKind: undefined;
6386
7201
  };
@@ -6482,7 +7297,40 @@ interface Push_QualifierScoreSubmitted {
6482
7297
  /**
6483
7298
  * @generated MessageType for protobuf message proto.packets.Push.QualifierScoreSubmitted
6484
7299
  */
6485
- 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;
6486
7334
 
6487
7335
  /**
6488
7336
  * @generated from protobuf enum proto.packets.Command.ModifyGameplay.Modifier
@@ -6849,6 +7697,7 @@ type TAClientEvents = {
6849
7697
  songFinished: Push_SongFinished;
6850
7698
  realtimeScore: RealtimeScore;
6851
7699
  qualifierScoreSubmitted: Push_QualifierScoreSubmitted;
7700
+ replaySubmitted: Push_ReplaySubmitted;
6852
7701
  responseReceived: ResponseFromUser;
6853
7702
  joinedTournament: {};
6854
7703
  failedToJoinTournament: {};
@@ -6945,6 +7794,11 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
6945
7794
  setTournamentEnableTeams: (tournamentId: string, enableTeams: boolean) => Promise<Response>;
6946
7795
  setTournamentEnablePools: (tournamentId: string, enablePools: boolean) => Promise<Response>;
6947
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>;
6948
7802
  setTournamentAllowMockClients: (tournamentId: string, allowMockClients: boolean) => Promise<Response>;
6949
7803
  setTournamentShowTournamentButton: (tournamentId: string, showTournamentButton: boolean) => Promise<Response>;
6950
7804
  setTournamentShowQualifierButton: (tournamentId: string, showQualifierButton: boolean) => Promise<Response>;
@@ -6968,13 +7822,17 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
6968
7822
  removeTournamentPool: (tournamentId: string, poolId: string) => Promise<Response>;
6969
7823
  deleteTournament: (tournamentId: string) => Promise<Response>;
6970
7824
  addServer: (server: CoreServer, authToken?: string) => Promise<Response>;
7825
+ getGlobalConfiguration: () => Promise<Response>;
7826
+ updateGlobalConfiguration: (configuration: GlobalConfiguration) => Promise<Response>;
7827
+ setBKTournamentLink: (tournamentId: string, isBKTournament: boolean, beatKhanaTournamentGuid: string) => Promise<Response>;
6971
7828
  }
6972
7829
 
6973
7830
  declare const masterAddress = "server.tournamentassistant.net";
6974
7831
  declare const masterPort = "8676";
6975
7832
  declare const masterApiPort = "8678";
6976
- declare const version = "1.3.2";
6977
- declare const versionCode = 1320;
7833
+ declare const version = "1.4.0";
7834
+ declare const versionCode = 1400;
6978
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";
6979
7836
 
6980
- export { Acknowledgement, Acknowledgement_AcknowledgementType, Beatmap, BeatmapIdentity, Channel, Characteristic, Command, Command_ModifyGameplay, Command_ModifyGameplay_Modifier, Command_PlaySong, Command_ShowColorForStreamSync, CoreServer, CustomEventEmitter, DiscordUser, 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, Guild, LeaderboardEntry, LogLevel, Map, Match, Packet, type Permission, 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_CreateMatch, Request_CreateQualifierEvent, Request_CreateTournament, Request_CreateWebhook, Request_DeleteMatch, Request_DeleteQualifierEvent, Request_DeleteTournament, Request_DeleteWebhook, Request_GenerateBotToken, Request_GetAuthorizedUsers, Request_GetBotTokensForUser, Request_GetDiscordInfo, 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_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_UpdateQualifierMap, Request_UpdateTournamentPoolMap, Request_UpdateUser, Request_UpdateWebhook, Response, type ResponseFromUser, Response_AddAuthorizedUser, Response_AddServer, Response_Connect, Response_Connect_ConnectFailReason, 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_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_ShowPrompt, Response_UpdateAuthorizedUser, 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 };
7838
+ export type { Permission, ResponseFromUser };