moons-ta-client 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/custom-event-emitter.js +1 -1
- package/dist/index.d.ts +416 -5
- package/dist/index.esm.js +3368 -2083
- package/dist/models/models.d.ts +90 -0
- package/dist/models/models.js +199 -1
- package/dist/models/requests.d.ts +206 -0
- package/dist/models/requests.js +452 -1
- package/dist/models/responses.d.ts +113 -0
- package/dist/models/responses.js +250 -1
- package/dist/scraper.js +3 -4
- package/dist/tournament-assistant-client.d.ts +4 -1
- package/dist/tournament-assistant-client.js +42 -0
- package/package.json +4 -10
package/dist/constants.d.ts
CHANGED
|
@@ -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.
|
|
5
|
-
export declare const versionCode =
|
|
4
|
+
export declare const version = "1.3.3";
|
|
5
|
+
export declare const versionCode = 1330;
|
|
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.
|
|
5
|
-
export const versionCode =
|
|
4
|
+
export const version = "1.3.3";
|
|
5
|
+
export const versionCode = 1330;
|
package/dist/index.d.ts
CHANGED
|
@@ -1118,6 +1118,88 @@ interface Webhook {
|
|
|
1118
1118
|
* @generated MessageType for protobuf message proto.models.Webhook
|
|
1119
1119
|
*/
|
|
1120
1120
|
declare const Webhook: Webhook$Type;
|
|
1121
|
+
declare class EndpointAccess$Type extends MessageType<EndpointAccess> {
|
|
1122
|
+
constructor();
|
|
1123
|
+
create(value?: PartialMessage<EndpointAccess>): EndpointAccess;
|
|
1124
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndpointAccess): EndpointAccess;
|
|
1125
|
+
internalBinaryWrite(message: EndpointAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* @generated from protobuf message proto.models.EndpointAccess
|
|
1129
|
+
*/
|
|
1130
|
+
interface EndpointAccess {
|
|
1131
|
+
/**
|
|
1132
|
+
* @generated from protobuf field: string endpoint_id = 1
|
|
1133
|
+
*/
|
|
1134
|
+
endpointId: string;
|
|
1135
|
+
/**
|
|
1136
|
+
* @generated from protobuf field: string display_name = 2
|
|
1137
|
+
*/
|
|
1138
|
+
displayName: string;
|
|
1139
|
+
/**
|
|
1140
|
+
* @generated from protobuf field: string route = 3
|
|
1141
|
+
*/
|
|
1142
|
+
route: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* @generated from protobuf field: bool supports_websocket = 4
|
|
1145
|
+
*/
|
|
1146
|
+
supportsWebsocket: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* @generated from protobuf field: bool supports_rest = 5
|
|
1149
|
+
*/
|
|
1150
|
+
supportsRest: boolean;
|
|
1151
|
+
/**
|
|
1152
|
+
* @generated from protobuf field: bool supports_player = 6
|
|
1153
|
+
*/
|
|
1154
|
+
supportsPlayer: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* @generated from protobuf field: bool websocket_enabled = 7
|
|
1157
|
+
*/
|
|
1158
|
+
websocketEnabled: boolean;
|
|
1159
|
+
/**
|
|
1160
|
+
* @generated from protobuf field: bool rest_enabled = 8
|
|
1161
|
+
*/
|
|
1162
|
+
restEnabled: boolean;
|
|
1163
|
+
/**
|
|
1164
|
+
* @generated from protobuf field: bool player_enabled = 9
|
|
1165
|
+
*/
|
|
1166
|
+
playerEnabled: boolean;
|
|
1167
|
+
/**
|
|
1168
|
+
* @generated from protobuf field: bool is_core = 10
|
|
1169
|
+
*/
|
|
1170
|
+
isCore: boolean;
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* @generated MessageType for protobuf message proto.models.EndpointAccess
|
|
1174
|
+
*/
|
|
1175
|
+
declare const EndpointAccess: EndpointAccess$Type;
|
|
1176
|
+
declare class GlobalConfiguration$Type extends MessageType<GlobalConfiguration> {
|
|
1177
|
+
constructor();
|
|
1178
|
+
create(value?: PartialMessage<GlobalConfiguration>): GlobalConfiguration;
|
|
1179
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GlobalConfiguration): GlobalConfiguration;
|
|
1180
|
+
internalBinaryWrite(message: GlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* @generated from protobuf message proto.models.GlobalConfiguration
|
|
1184
|
+
*/
|
|
1185
|
+
interface GlobalConfiguration {
|
|
1186
|
+
/**
|
|
1187
|
+
* @generated from protobuf field: repeated string full_access_discord_ids = 1
|
|
1188
|
+
*/
|
|
1189
|
+
fullAccessDiscordIds: string[];
|
|
1190
|
+
/**
|
|
1191
|
+
* @generated from protobuf field: repeated string endpoint_manager_discord_ids = 2
|
|
1192
|
+
*/
|
|
1193
|
+
endpointManagerDiscordIds: string[];
|
|
1194
|
+
/**
|
|
1195
|
+
* @generated from protobuf field: repeated proto.models.EndpointAccess endpoints = 3
|
|
1196
|
+
*/
|
|
1197
|
+
endpoints: EndpointAccess[];
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* @generated MessageType for protobuf message proto.models.GlobalConfiguration
|
|
1201
|
+
*/
|
|
1202
|
+
declare const GlobalConfiguration: GlobalConfiguration$Type;
|
|
1121
1203
|
declare class Tournament$Type extends MessageType<Tournament> {
|
|
1122
1204
|
constructor();
|
|
1123
1205
|
create(value?: PartialMessage<Tournament>): Tournament;
|
|
@@ -1227,6 +1309,14 @@ interface Tournament_TournamentSettings {
|
|
|
1227
1309
|
* @generated from protobuf field: bool allow_mock_clients = 15
|
|
1228
1310
|
*/
|
|
1229
1311
|
allowMockClients: boolean;
|
|
1312
|
+
/**
|
|
1313
|
+
* @generated from protobuf field: bool is_bk_tournament = 16
|
|
1314
|
+
*/
|
|
1315
|
+
isBkTournament: boolean;
|
|
1316
|
+
/**
|
|
1317
|
+
* @generated from protobuf field: string beat_khana_tournament_guid = 17
|
|
1318
|
+
*/
|
|
1319
|
+
beatKhanaTournamentGuid: string;
|
|
1230
1320
|
}
|
|
1231
1321
|
/**
|
|
1232
1322
|
* @generated MessageType for protobuf message proto.models.Tournament.TournamentSettings
|
|
@@ -3240,6 +3330,30 @@ interface Response {
|
|
|
3240
3330
|
* @generated from protobuf field: proto.packets.Response.DeleteWebhook delete_webhook = 35
|
|
3241
3331
|
*/
|
|
3242
3332
|
deleteWebhook: Response_DeleteWebhook;
|
|
3333
|
+
} | {
|
|
3334
|
+
oneofKind: "getGlobalConfiguration";
|
|
3335
|
+
/**
|
|
3336
|
+
* @generated from protobuf field: proto.packets.Response.GetGlobalConfiguration get_global_configuration = 36
|
|
3337
|
+
*/
|
|
3338
|
+
getGlobalConfiguration: Response_GetGlobalConfiguration;
|
|
3339
|
+
} | {
|
|
3340
|
+
oneofKind: "updateGlobalConfiguration";
|
|
3341
|
+
/**
|
|
3342
|
+
* @generated from protobuf field: proto.packets.Response.UpdateGlobalConfiguration update_global_configuration = 37
|
|
3343
|
+
*/
|
|
3344
|
+
updateGlobalConfiguration: Response_UpdateGlobalConfiguration;
|
|
3345
|
+
} | {
|
|
3346
|
+
oneofKind: "createBkTournament";
|
|
3347
|
+
/**
|
|
3348
|
+
* @generated from protobuf field: proto.packets.Response.CreateBKTournament create_bk_tournament = 38
|
|
3349
|
+
*/
|
|
3350
|
+
createBkTournament: Response_CreateBKTournament;
|
|
3351
|
+
} | {
|
|
3352
|
+
oneofKind: "setBkTournamentLink";
|
|
3353
|
+
/**
|
|
3354
|
+
* @generated from protobuf field: proto.packets.Response.SetBKTournamentLink set_bk_tournament_link = 39
|
|
3355
|
+
*/
|
|
3356
|
+
setBkTournamentLink: Response_SetBKTournamentLink;
|
|
3243
3357
|
} | {
|
|
3244
3358
|
oneofKind: undefined;
|
|
3245
3359
|
};
|
|
@@ -4072,7 +4186,95 @@ interface Response_DeleteWebhook {
|
|
|
4072
4186
|
/**
|
|
4073
4187
|
* @generated MessageType for protobuf message proto.packets.Response.DeleteWebhook
|
|
4074
4188
|
*/
|
|
4075
|
-
declare const Response_DeleteWebhook: Response_DeleteWebhook$Type;
|
|
4189
|
+
declare const Response_DeleteWebhook: Response_DeleteWebhook$Type;
|
|
4190
|
+
declare class Response_GetGlobalConfiguration$Type extends MessageType<Response_GetGlobalConfiguration> {
|
|
4191
|
+
constructor();
|
|
4192
|
+
create(value?: PartialMessage<Response_GetGlobalConfiguration>): Response_GetGlobalConfiguration;
|
|
4193
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetGlobalConfiguration): Response_GetGlobalConfiguration;
|
|
4194
|
+
internalBinaryWrite(message: Response_GetGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
4195
|
+
}
|
|
4196
|
+
/**
|
|
4197
|
+
* @generated from protobuf message proto.packets.Response.GetGlobalConfiguration
|
|
4198
|
+
*/
|
|
4199
|
+
interface Response_GetGlobalConfiguration {
|
|
4200
|
+
/**
|
|
4201
|
+
* @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
|
|
4202
|
+
*/
|
|
4203
|
+
configuration?: GlobalConfiguration;
|
|
4204
|
+
}
|
|
4205
|
+
/**
|
|
4206
|
+
* @generated MessageType for protobuf message proto.packets.Response.GetGlobalConfiguration
|
|
4207
|
+
*/
|
|
4208
|
+
declare const Response_GetGlobalConfiguration: Response_GetGlobalConfiguration$Type;
|
|
4209
|
+
declare class Response_UpdateGlobalConfiguration$Type extends MessageType<Response_UpdateGlobalConfiguration> {
|
|
4210
|
+
constructor();
|
|
4211
|
+
create(value?: PartialMessage<Response_UpdateGlobalConfiguration>): Response_UpdateGlobalConfiguration;
|
|
4212
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateGlobalConfiguration): Response_UpdateGlobalConfiguration;
|
|
4213
|
+
internalBinaryWrite(message: Response_UpdateGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
4214
|
+
}
|
|
4215
|
+
/**
|
|
4216
|
+
* @generated from protobuf message proto.packets.Response.UpdateGlobalConfiguration
|
|
4217
|
+
*/
|
|
4218
|
+
interface Response_UpdateGlobalConfiguration {
|
|
4219
|
+
/**
|
|
4220
|
+
* @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
|
|
4221
|
+
*/
|
|
4222
|
+
configuration?: GlobalConfiguration;
|
|
4223
|
+
/**
|
|
4224
|
+
* @generated from protobuf field: string message = 2
|
|
4225
|
+
*/
|
|
4226
|
+
message: string;
|
|
4227
|
+
}
|
|
4228
|
+
/**
|
|
4229
|
+
* @generated MessageType for protobuf message proto.packets.Response.UpdateGlobalConfiguration
|
|
4230
|
+
*/
|
|
4231
|
+
declare const Response_UpdateGlobalConfiguration: Response_UpdateGlobalConfiguration$Type;
|
|
4232
|
+
declare class Response_SetBKTournamentLink$Type extends MessageType<Response_SetBKTournamentLink> {
|
|
4233
|
+
constructor();
|
|
4234
|
+
create(value?: PartialMessage<Response_SetBKTournamentLink>): Response_SetBKTournamentLink;
|
|
4235
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_SetBKTournamentLink): Response_SetBKTournamentLink;
|
|
4236
|
+
internalBinaryWrite(message: Response_SetBKTournamentLink, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
4237
|
+
}
|
|
4238
|
+
/**
|
|
4239
|
+
* @generated from protobuf message proto.packets.Response.SetBKTournamentLink
|
|
4240
|
+
*/
|
|
4241
|
+
interface Response_SetBKTournamentLink {
|
|
4242
|
+
/**
|
|
4243
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
4244
|
+
*/
|
|
4245
|
+
tournament?: Tournament;
|
|
4246
|
+
/**
|
|
4247
|
+
* @generated from protobuf field: string message = 2
|
|
4248
|
+
*/
|
|
4249
|
+
message: string;
|
|
4250
|
+
}
|
|
4251
|
+
/**
|
|
4252
|
+
* @generated MessageType for protobuf message proto.packets.Response.SetBKTournamentLink
|
|
4253
|
+
*/
|
|
4254
|
+
declare const Response_SetBKTournamentLink: Response_SetBKTournamentLink$Type;
|
|
4255
|
+
declare class Response_CreateBKTournament$Type extends MessageType<Response_CreateBKTournament> {
|
|
4256
|
+
constructor();
|
|
4257
|
+
create(value?: PartialMessage<Response_CreateBKTournament>): Response_CreateBKTournament;
|
|
4258
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_CreateBKTournament): Response_CreateBKTournament;
|
|
4259
|
+
internalBinaryWrite(message: Response_CreateBKTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
4260
|
+
}
|
|
4261
|
+
/**
|
|
4262
|
+
* @generated from protobuf message proto.packets.Response.CreateBKTournament
|
|
4263
|
+
*/
|
|
4264
|
+
interface Response_CreateBKTournament {
|
|
4265
|
+
/**
|
|
4266
|
+
* @generated from protobuf field: string beat_khana_tournament_guid = 1
|
|
4267
|
+
*/
|
|
4268
|
+
beatKhanaTournamentGuid: string;
|
|
4269
|
+
/**
|
|
4270
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 2
|
|
4271
|
+
*/
|
|
4272
|
+
tournament?: Tournament;
|
|
4273
|
+
}
|
|
4274
|
+
/**
|
|
4275
|
+
* @generated MessageType for protobuf message proto.packets.Response.CreateBKTournament
|
|
4276
|
+
*/
|
|
4277
|
+
declare const Response_CreateBKTournament: Response_CreateBKTournament$Type;
|
|
4076
4278
|
|
|
4077
4279
|
declare class Request$Type extends MessageType<Request> {
|
|
4078
4280
|
constructor();
|
|
@@ -4509,6 +4711,24 @@ interface Request {
|
|
|
4509
4711
|
* @generated from protobuf field: proto.packets.Request.DeleteWebhook delete_webhook = 72
|
|
4510
4712
|
*/
|
|
4511
4713
|
deleteWebhook: Request_DeleteWebhook;
|
|
4714
|
+
} | {
|
|
4715
|
+
oneofKind: "getGlobalConfiguration";
|
|
4716
|
+
/**
|
|
4717
|
+
* @generated from protobuf field: proto.packets.Request.GetGlobalConfiguration get_global_configuration = 73
|
|
4718
|
+
*/
|
|
4719
|
+
getGlobalConfiguration: Request_GetGlobalConfiguration;
|
|
4720
|
+
} | {
|
|
4721
|
+
oneofKind: "updateGlobalConfiguration";
|
|
4722
|
+
/**
|
|
4723
|
+
* @generated from protobuf field: proto.packets.Request.UpdateGlobalConfiguration update_global_configuration = 74
|
|
4724
|
+
*/
|
|
4725
|
+
updateGlobalConfiguration: Request_UpdateGlobalConfiguration;
|
|
4726
|
+
} | {
|
|
4727
|
+
oneofKind: "setBkTournamentLink";
|
|
4728
|
+
/**
|
|
4729
|
+
* @generated from protobuf field: proto.packets.Request.SetBKTournamentLink set_bk_tournament_link = 75
|
|
4730
|
+
*/
|
|
4731
|
+
setBkTournamentLink: Request_SetBKTournamentLink;
|
|
4512
4732
|
} | {
|
|
4513
4733
|
oneofKind: undefined;
|
|
4514
4734
|
};
|
|
@@ -6329,7 +6549,194 @@ interface Request_DeleteWebhook {
|
|
|
6329
6549
|
/**
|
|
6330
6550
|
* @generated MessageType for protobuf message proto.packets.Request.DeleteWebhook
|
|
6331
6551
|
*/
|
|
6332
|
-
declare const Request_DeleteWebhook: Request_DeleteWebhook$Type;
|
|
6552
|
+
declare const Request_DeleteWebhook: Request_DeleteWebhook$Type;
|
|
6553
|
+
declare class Request_GetGlobalConfiguration$Type extends MessageType<Request_GetGlobalConfiguration> {
|
|
6554
|
+
constructor();
|
|
6555
|
+
create(value?: PartialMessage<Request_GetGlobalConfiguration>): Request_GetGlobalConfiguration;
|
|
6556
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_GetGlobalConfiguration): Request_GetGlobalConfiguration;
|
|
6557
|
+
internalBinaryWrite(message: Request_GetGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6558
|
+
}
|
|
6559
|
+
/**
|
|
6560
|
+
* @generated from protobuf message proto.packets.Request.GetGlobalConfiguration
|
|
6561
|
+
*/
|
|
6562
|
+
interface Request_GetGlobalConfiguration {
|
|
6563
|
+
}
|
|
6564
|
+
/**
|
|
6565
|
+
* @generated MessageType for protobuf message proto.packets.Request.GetGlobalConfiguration
|
|
6566
|
+
*/
|
|
6567
|
+
declare const Request_GetGlobalConfiguration: Request_GetGlobalConfiguration$Type;
|
|
6568
|
+
declare class Request_UpdateGlobalConfiguration$Type extends MessageType<Request_UpdateGlobalConfiguration> {
|
|
6569
|
+
constructor();
|
|
6570
|
+
create(value?: PartialMessage<Request_UpdateGlobalConfiguration>): Request_UpdateGlobalConfiguration;
|
|
6571
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_UpdateGlobalConfiguration): Request_UpdateGlobalConfiguration;
|
|
6572
|
+
internalBinaryWrite(message: Request_UpdateGlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6573
|
+
}
|
|
6574
|
+
/**
|
|
6575
|
+
* @generated from protobuf message proto.packets.Request.UpdateGlobalConfiguration
|
|
6576
|
+
*/
|
|
6577
|
+
interface Request_UpdateGlobalConfiguration {
|
|
6578
|
+
/**
|
|
6579
|
+
* @generated from protobuf field: proto.models.GlobalConfiguration configuration = 1
|
|
6580
|
+
*/
|
|
6581
|
+
configuration?: GlobalConfiguration;
|
|
6582
|
+
}
|
|
6583
|
+
/**
|
|
6584
|
+
* @generated MessageType for protobuf message proto.packets.Request.UpdateGlobalConfiguration
|
|
6585
|
+
*/
|
|
6586
|
+
declare const Request_UpdateGlobalConfiguration: Request_UpdateGlobalConfiguration$Type;
|
|
6587
|
+
declare class Request_SetBKTournamentLink$Type extends MessageType<Request_SetBKTournamentLink> {
|
|
6588
|
+
constructor();
|
|
6589
|
+
create(value?: PartialMessage<Request_SetBKTournamentLink>): Request_SetBKTournamentLink;
|
|
6590
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetBKTournamentLink): Request_SetBKTournamentLink;
|
|
6591
|
+
internalBinaryWrite(message: Request_SetBKTournamentLink, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6592
|
+
}
|
|
6593
|
+
/**
|
|
6594
|
+
* Links or unlinks an existing TournamentAssistant tournament to BeatKhana.
|
|
6595
|
+
* This operation is restricted to full-access global admins (moon and luna for now).
|
|
6596
|
+
*
|
|
6597
|
+
* @generated from protobuf message proto.packets.Request.SetBKTournamentLink
|
|
6598
|
+
*/
|
|
6599
|
+
interface Request_SetBKTournamentLink {
|
|
6600
|
+
/**
|
|
6601
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
6602
|
+
*/
|
|
6603
|
+
tournamentId: string;
|
|
6604
|
+
/**
|
|
6605
|
+
* @generated from protobuf field: bool is_bk_tournament = 2
|
|
6606
|
+
*/
|
|
6607
|
+
isBkTournament: boolean;
|
|
6608
|
+
/**
|
|
6609
|
+
* @generated from protobuf field: string beat_khana_tournament_guid = 3
|
|
6610
|
+
*/
|
|
6611
|
+
beatKhanaTournamentGuid: string;
|
|
6612
|
+
}
|
|
6613
|
+
/**
|
|
6614
|
+
* @generated MessageType for protobuf message proto.packets.Request.SetBKTournamentLink
|
|
6615
|
+
*/
|
|
6616
|
+
declare const Request_SetBKTournamentLink: Request_SetBKTournamentLink$Type;
|
|
6617
|
+
declare class Request_CreateBKTournament$Type extends MessageType<Request_CreateBKTournament> {
|
|
6618
|
+
constructor();
|
|
6619
|
+
create(value?: PartialMessage<Request_CreateBKTournament>): Request_CreateBKTournament;
|
|
6620
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateBKTournament): Request_CreateBKTournament;
|
|
6621
|
+
internalBinaryWrite(message: Request_CreateBKTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6622
|
+
}
|
|
6623
|
+
/**
|
|
6624
|
+
* This message is used by the dedicated POST /bks/tournaments REST route.
|
|
6625
|
+
* It is intentionally not part of the general packet oneof.
|
|
6626
|
+
*
|
|
6627
|
+
* @generated from protobuf message proto.packets.Request.CreateBKTournament
|
|
6628
|
+
*/
|
|
6629
|
+
interface Request_CreateBKTournament {
|
|
6630
|
+
/**
|
|
6631
|
+
* @generated from protobuf field: string beat_khana_tournament_guid = 1
|
|
6632
|
+
*/
|
|
6633
|
+
beatKhanaTournamentGuid: string;
|
|
6634
|
+
/**
|
|
6635
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 2
|
|
6636
|
+
*/
|
|
6637
|
+
tournament?: Tournament;
|
|
6638
|
+
/**
|
|
6639
|
+
* @generated from protobuf field: proto.packets.Request.CreateBKTournament.BeatKhanaUser organizer = 3
|
|
6640
|
+
*/
|
|
6641
|
+
organizer?: Request_CreateBKTournament_BeatKhanaUser;
|
|
6642
|
+
/**
|
|
6643
|
+
* @generated from protobuf field: repeated string organizer_permissions = 4
|
|
6644
|
+
*/
|
|
6645
|
+
organizerPermissions: string[];
|
|
6646
|
+
/**
|
|
6647
|
+
* @generated from protobuf field: repeated proto.models.Role roles = 5
|
|
6648
|
+
*/
|
|
6649
|
+
roles: Role[];
|
|
6650
|
+
/**
|
|
6651
|
+
* @generated from protobuf field: repeated proto.packets.Request.CreateBKTournament.AuthorizedUser authorized_users = 6
|
|
6652
|
+
*/
|
|
6653
|
+
authorizedUsers: Request_CreateBKTournament_AuthorizedUser[];
|
|
6654
|
+
/**
|
|
6655
|
+
* @generated from protobuf field: repeated proto.packets.Request.CreateBKTournament.WebhookRegistration webhooks = 7
|
|
6656
|
+
*/
|
|
6657
|
+
webhooks: Request_CreateBKTournament_WebhookRegistration[];
|
|
6658
|
+
}
|
|
6659
|
+
/**
|
|
6660
|
+
* @generated MessageType for protobuf message proto.packets.Request.CreateBKTournament
|
|
6661
|
+
*/
|
|
6662
|
+
declare const Request_CreateBKTournament: Request_CreateBKTournament$Type;
|
|
6663
|
+
declare class Request_CreateBKTournament_BeatKhanaUser$Type extends MessageType<Request_CreateBKTournament_BeatKhanaUser> {
|
|
6664
|
+
constructor();
|
|
6665
|
+
create(value?: PartialMessage<Request_CreateBKTournament_BeatKhanaUser>): Request_CreateBKTournament_BeatKhanaUser;
|
|
6666
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateBKTournament_BeatKhanaUser): Request_CreateBKTournament_BeatKhanaUser;
|
|
6667
|
+
internalBinaryWrite(message: Request_CreateBKTournament_BeatKhanaUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6668
|
+
}
|
|
6669
|
+
/**
|
|
6670
|
+
* @generated from protobuf message proto.packets.Request.CreateBKTournament.BeatKhanaUser
|
|
6671
|
+
*/
|
|
6672
|
+
interface Request_CreateBKTournament_BeatKhanaUser {
|
|
6673
|
+
/**
|
|
6674
|
+
* @generated from protobuf field: string discord_id = 1
|
|
6675
|
+
*/
|
|
6676
|
+
discordId: string;
|
|
6677
|
+
/**
|
|
6678
|
+
* @generated from protobuf field: string preferred_name = 2
|
|
6679
|
+
*/
|
|
6680
|
+
preferredName: string;
|
|
6681
|
+
/**
|
|
6682
|
+
* @generated from protobuf field: string avatar_url = 3
|
|
6683
|
+
*/
|
|
6684
|
+
avatarUrl: string;
|
|
6685
|
+
}
|
|
6686
|
+
/**
|
|
6687
|
+
* @generated MessageType for protobuf message proto.packets.Request.CreateBKTournament.BeatKhanaUser
|
|
6688
|
+
*/
|
|
6689
|
+
declare const Request_CreateBKTournament_BeatKhanaUser: Request_CreateBKTournament_BeatKhanaUser$Type;
|
|
6690
|
+
declare class Request_CreateBKTournament_AuthorizedUser$Type extends MessageType<Request_CreateBKTournament_AuthorizedUser> {
|
|
6691
|
+
constructor();
|
|
6692
|
+
create(value?: PartialMessage<Request_CreateBKTournament_AuthorizedUser>): Request_CreateBKTournament_AuthorizedUser;
|
|
6693
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateBKTournament_AuthorizedUser): Request_CreateBKTournament_AuthorizedUser;
|
|
6694
|
+
internalBinaryWrite(message: Request_CreateBKTournament_AuthorizedUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6695
|
+
}
|
|
6696
|
+
/**
|
|
6697
|
+
* @generated from protobuf message proto.packets.Request.CreateBKTournament.AuthorizedUser
|
|
6698
|
+
*/
|
|
6699
|
+
interface Request_CreateBKTournament_AuthorizedUser {
|
|
6700
|
+
/**
|
|
6701
|
+
* @generated from protobuf field: proto.packets.Request.CreateBKTournament.BeatKhanaUser user = 1
|
|
6702
|
+
*/
|
|
6703
|
+
user?: Request_CreateBKTournament_BeatKhanaUser;
|
|
6704
|
+
/**
|
|
6705
|
+
* @generated from protobuf field: repeated string role_ids = 2
|
|
6706
|
+
*/
|
|
6707
|
+
roleIds: string[];
|
|
6708
|
+
}
|
|
6709
|
+
/**
|
|
6710
|
+
* @generated MessageType for protobuf message proto.packets.Request.CreateBKTournament.AuthorizedUser
|
|
6711
|
+
*/
|
|
6712
|
+
declare const Request_CreateBKTournament_AuthorizedUser: Request_CreateBKTournament_AuthorizedUser$Type;
|
|
6713
|
+
declare class Request_CreateBKTournament_WebhookRegistration$Type extends MessageType<Request_CreateBKTournament_WebhookRegistration> {
|
|
6714
|
+
constructor();
|
|
6715
|
+
create(value?: PartialMessage<Request_CreateBKTournament_WebhookRegistration>): Request_CreateBKTournament_WebhookRegistration;
|
|
6716
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateBKTournament_WebhookRegistration): Request_CreateBKTournament_WebhookRegistration;
|
|
6717
|
+
internalBinaryWrite(message: Request_CreateBKTournament_WebhookRegistration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6718
|
+
}
|
|
6719
|
+
/**
|
|
6720
|
+
* @generated from protobuf message proto.packets.Request.CreateBKTournament.WebhookRegistration
|
|
6721
|
+
*/
|
|
6722
|
+
interface Request_CreateBKTournament_WebhookRegistration {
|
|
6723
|
+
/**
|
|
6724
|
+
* @generated from protobuf field: string url = 1
|
|
6725
|
+
*/
|
|
6726
|
+
url: string;
|
|
6727
|
+
/**
|
|
6728
|
+
* @generated from protobuf field: int64 triggers = 2
|
|
6729
|
+
*/
|
|
6730
|
+
triggers: bigint;
|
|
6731
|
+
/**
|
|
6732
|
+
* @generated from protobuf field: string signing_secret = 3
|
|
6733
|
+
*/
|
|
6734
|
+
signingSecret: string;
|
|
6735
|
+
}
|
|
6736
|
+
/**
|
|
6737
|
+
* @generated MessageType for protobuf message proto.packets.Request.CreateBKTournament.WebhookRegistration
|
|
6738
|
+
*/
|
|
6739
|
+
declare const Request_CreateBKTournament_WebhookRegistration: Request_CreateBKTournament_WebhookRegistration$Type;
|
|
6333
6740
|
|
|
6334
6741
|
/**
|
|
6335
6742
|
* @generated from protobuf enum proto.packets.Push.SongFinished.CompletionType
|
|
@@ -6968,13 +7375,17 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
|
|
|
6968
7375
|
removeTournamentPool: (tournamentId: string, poolId: string) => Promise<Response>;
|
|
6969
7376
|
deleteTournament: (tournamentId: string) => Promise<Response>;
|
|
6970
7377
|
addServer: (server: CoreServer, authToken?: string) => Promise<Response>;
|
|
7378
|
+
getGlobalConfiguration: () => Promise<Response>;
|
|
7379
|
+
updateGlobalConfiguration: (configuration: GlobalConfiguration) => Promise<Response>;
|
|
7380
|
+
setBKTournamentLink: (tournamentId: string, isBKTournament: boolean, beatKhanaTournamentGuid: string) => Promise<Response>;
|
|
6971
7381
|
}
|
|
6972
7382
|
|
|
6973
7383
|
declare const masterAddress = "server.tournamentassistant.net";
|
|
6974
7384
|
declare const masterPort = "8676";
|
|
6975
7385
|
declare const masterApiPort = "8678";
|
|
6976
|
-
declare const version = "1.3.
|
|
6977
|
-
declare const versionCode =
|
|
7386
|
+
declare const version = "1.3.3";
|
|
7387
|
+
declare const versionCode = 1330;
|
|
6978
7388
|
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
7389
|
|
|
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,
|
|
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 };
|
|
7391
|
+
export type { Permission, ResponseFromUser };
|