moons-ta-client 1.1.14 → 1.2.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/client.d.ts +1 -1
- package/dist/client.js +1 -16
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/index.d.ts +272 -178
- package/dist/index.esm.js +884 -504
- package/dist/models/commands.d.ts +33 -36
- package/dist/models/commands.js +47 -51
- package/dist/models/models.d.ts +43 -21
- package/dist/models/models.js +93 -29
- package/dist/models/packets.d.ts +6 -0
- package/dist/models/packets.js +10 -0
- package/dist/models/requests.d.ts +161 -71
- package/dist/models/requests.js +341 -157
- package/dist/models/responses.d.ts +8 -34
- package/dist/models/responses.js +29 -87
- package/dist/tournament-assistant-client.d.ts +17 -14
- package/dist/tournament-assistant-client.js +109 -62
- package/package.json +1 -1
|
@@ -7,10 +7,10 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
7
7
|
import { GameplayParameters } from './models.js';
|
|
8
8
|
import { LeaderboardEntry } from './models.js';
|
|
9
9
|
import { CoreServer } from './models.js';
|
|
10
|
+
import { Role } from './models.js';
|
|
10
11
|
import { Tournament_TournamentSettings_Pool } from './models.js';
|
|
11
12
|
import { Tournament_TournamentSettings_Team } from './models.js';
|
|
12
13
|
import { Tournament } from './models.js';
|
|
13
|
-
import { Permissions } from './models.js';
|
|
14
14
|
import { QualifierEvent_LeaderboardSort } from './models.js';
|
|
15
15
|
import { QualifierEvent_EventSettings } from './models.js';
|
|
16
16
|
import { Channel } from './discord.js';
|
|
@@ -136,17 +136,11 @@ export interface Request {
|
|
|
136
136
|
*/
|
|
137
137
|
addAuthorizedUser: Request_AddAuthorizedUser;
|
|
138
138
|
} | {
|
|
139
|
-
oneofKind: "
|
|
139
|
+
oneofKind: "updateAuthorizedUserRoles";
|
|
140
140
|
/**
|
|
141
|
-
* @generated from protobuf field: proto.packets.Request.
|
|
141
|
+
* @generated from protobuf field: proto.packets.Request.UpdateAuthorizedUserRoles update_authorized_user_roles = 49;
|
|
142
142
|
*/
|
|
143
|
-
|
|
144
|
-
} | {
|
|
145
|
-
oneofKind: "removeAuthorizedUserPermission";
|
|
146
|
-
/**
|
|
147
|
-
* @generated from protobuf field: proto.packets.Request.RemoveAuthorizedUserPermission remove_authorized_user_permission = 50;
|
|
148
|
-
*/
|
|
149
|
-
removeAuthorizedUserPermission: Request_RemoveAuthorizedUserPermission;
|
|
143
|
+
updateAuthorizedUserRoles: Request_UpdateAuthorizedUserRoles;
|
|
150
144
|
} | {
|
|
151
145
|
oneofKind: "removeAuthorizedUser";
|
|
152
146
|
/**
|
|
@@ -370,11 +364,29 @@ export interface Request {
|
|
|
370
364
|
*/
|
|
371
365
|
refundAttempts: Request_RefundAttempts;
|
|
372
366
|
} | {
|
|
373
|
-
oneofKind: "
|
|
367
|
+
oneofKind: "addTournamentRole";
|
|
368
|
+
/**
|
|
369
|
+
* @generated from protobuf field: proto.packets.Request.AddTournamentRole add_tournament_role = 59;
|
|
370
|
+
*/
|
|
371
|
+
addTournamentRole: Request_AddTournamentRole;
|
|
372
|
+
} | {
|
|
373
|
+
oneofKind: "setTournamentRoleName";
|
|
374
|
+
/**
|
|
375
|
+
* @generated from protobuf field: proto.packets.Request.SetTournamentRoleName set_tournament_role_name = 60;
|
|
376
|
+
*/
|
|
377
|
+
setTournamentRoleName: Request_SetTournamentRoleName;
|
|
378
|
+
} | {
|
|
379
|
+
oneofKind: "setTournamentRolePermissions";
|
|
374
380
|
/**
|
|
375
|
-
* @generated from protobuf field: proto.packets.Request.
|
|
381
|
+
* @generated from protobuf field: proto.packets.Request.SetTournamentRolePermissions set_tournament_role_permissions = 61;
|
|
376
382
|
*/
|
|
377
|
-
|
|
383
|
+
setTournamentRolePermissions: Request_SetTournamentRolePermissions;
|
|
384
|
+
} | {
|
|
385
|
+
oneofKind: "removeTournamentRole";
|
|
386
|
+
/**
|
|
387
|
+
* @generated from protobuf field: proto.packets.Request.RemoveTournamentRole remove_tournament_role = 62;
|
|
388
|
+
*/
|
|
389
|
+
removeTournamentRole: Request_RemoveTournamentRole;
|
|
378
390
|
} | {
|
|
379
391
|
oneofKind: undefined;
|
|
380
392
|
};
|
|
@@ -669,31 +681,14 @@ export interface Request_AddAuthorizedUser {
|
|
|
669
681
|
*/
|
|
670
682
|
discordId: string;
|
|
671
683
|
/**
|
|
672
|
-
* @generated from protobuf field:
|
|
673
|
-
*/
|
|
674
|
-
permissionFlags: Permissions;
|
|
675
|
-
}
|
|
676
|
-
/**
|
|
677
|
-
* @generated from protobuf message proto.packets.Request.AddAuthorizedUserPermission
|
|
678
|
-
*/
|
|
679
|
-
export interface Request_AddAuthorizedUserPermission {
|
|
680
|
-
/**
|
|
681
|
-
* @generated from protobuf field: string tournament_id = 1;
|
|
682
|
-
*/
|
|
683
|
-
tournamentId: string;
|
|
684
|
-
/**
|
|
685
|
-
* @generated from protobuf field: string discord_id = 2;
|
|
686
|
-
*/
|
|
687
|
-
discordId: string;
|
|
688
|
-
/**
|
|
689
|
-
* @generated from protobuf field: proto.models.Permissions permission = 3;
|
|
684
|
+
* @generated from protobuf field: repeated string role_ids = 3;
|
|
690
685
|
*/
|
|
691
|
-
|
|
686
|
+
roleIds: string[];
|
|
692
687
|
}
|
|
693
688
|
/**
|
|
694
|
-
* @generated from protobuf message proto.packets.Request.
|
|
689
|
+
* @generated from protobuf message proto.packets.Request.UpdateAuthorizedUserRoles
|
|
695
690
|
*/
|
|
696
|
-
export interface
|
|
691
|
+
export interface Request_UpdateAuthorizedUserRoles {
|
|
697
692
|
/**
|
|
698
693
|
* @generated from protobuf field: string tournament_id = 1;
|
|
699
694
|
*/
|
|
@@ -703,9 +698,9 @@ export interface Request_RemoveAuthorizedUserPermission {
|
|
|
703
698
|
*/
|
|
704
699
|
discordId: string;
|
|
705
700
|
/**
|
|
706
|
-
* @generated from protobuf field:
|
|
701
|
+
* @generated from protobuf field: repeated string role_ids = 3;
|
|
707
702
|
*/
|
|
708
|
-
|
|
703
|
+
roleIds: string[];
|
|
709
704
|
}
|
|
710
705
|
/**
|
|
711
706
|
* @generated from protobuf message proto.packets.Request.RemoveAuthorizedUser
|
|
@@ -1022,6 +1017,66 @@ export interface Request_RemoveTournamentPool {
|
|
|
1022
1017
|
*/
|
|
1023
1018
|
poolId: string;
|
|
1024
1019
|
}
|
|
1020
|
+
/**
|
|
1021
|
+
* @generated from protobuf message proto.packets.Request.AddTournamentRole
|
|
1022
|
+
*/
|
|
1023
|
+
export interface Request_AddTournamentRole {
|
|
1024
|
+
/**
|
|
1025
|
+
* @generated from protobuf field: string tournament_id = 1;
|
|
1026
|
+
*/
|
|
1027
|
+
tournamentId: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* @generated from protobuf field: proto.models.Role role = 2;
|
|
1030
|
+
*/
|
|
1031
|
+
role?: Role;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* @generated from protobuf message proto.packets.Request.SetTournamentRoleName
|
|
1035
|
+
*/
|
|
1036
|
+
export interface Request_SetTournamentRoleName {
|
|
1037
|
+
/**
|
|
1038
|
+
* @generated from protobuf field: string tournament_id = 1;
|
|
1039
|
+
*/
|
|
1040
|
+
tournamentId: string;
|
|
1041
|
+
/**
|
|
1042
|
+
* @generated from protobuf field: string role_id = 2;
|
|
1043
|
+
*/
|
|
1044
|
+
roleId: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* @generated from protobuf field: string role_name = 3;
|
|
1047
|
+
*/
|
|
1048
|
+
roleName: string;
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* @generated from protobuf message proto.packets.Request.SetTournamentRolePermissions
|
|
1052
|
+
*/
|
|
1053
|
+
export interface Request_SetTournamentRolePermissions {
|
|
1054
|
+
/**
|
|
1055
|
+
* @generated from protobuf field: string tournament_id = 1;
|
|
1056
|
+
*/
|
|
1057
|
+
tournamentId: string;
|
|
1058
|
+
/**
|
|
1059
|
+
* @generated from protobuf field: string role_id = 2;
|
|
1060
|
+
*/
|
|
1061
|
+
roleId: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* @generated from protobuf field: repeated string permissions = 3;
|
|
1064
|
+
*/
|
|
1065
|
+
permissions: string[];
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* @generated from protobuf message proto.packets.Request.RemoveTournamentRole
|
|
1069
|
+
*/
|
|
1070
|
+
export interface Request_RemoveTournamentRole {
|
|
1071
|
+
/**
|
|
1072
|
+
* @generated from protobuf field: string tournament_id = 1;
|
|
1073
|
+
*/
|
|
1074
|
+
tournamentId: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* @generated from protobuf field: string role_id = 2;
|
|
1077
|
+
*/
|
|
1078
|
+
roleId: string;
|
|
1079
|
+
}
|
|
1025
1080
|
/**
|
|
1026
1081
|
* @generated from protobuf message proto.packets.Request.DeleteTournament
|
|
1027
1082
|
*/
|
|
@@ -1124,6 +1179,14 @@ export interface Request_LoadSong {
|
|
|
1124
1179
|
* @generated from protobuf field: string custom_host_url = 2;
|
|
1125
1180
|
*/
|
|
1126
1181
|
customHostUrl: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* @generated from protobuf field: string tournament_id = 3;
|
|
1184
|
+
*/
|
|
1185
|
+
tournamentId: string;
|
|
1186
|
+
/**
|
|
1187
|
+
* @generated from protobuf field: repeated string forward_to = 4;
|
|
1188
|
+
*/
|
|
1189
|
+
forwardTo: string[];
|
|
1127
1190
|
}
|
|
1128
1191
|
/**
|
|
1129
1192
|
* @generated from protobuf message proto.packets.Request.PreloadImageForStreamSync
|
|
@@ -1141,6 +1204,14 @@ export interface Request_PreloadImageForStreamSync {
|
|
|
1141
1204
|
* @generated from protobuf field: bytes data = 3;
|
|
1142
1205
|
*/
|
|
1143
1206
|
data: Uint8Array;
|
|
1207
|
+
/**
|
|
1208
|
+
* @generated from protobuf field: string tournament_id = 4;
|
|
1209
|
+
*/
|
|
1210
|
+
tournamentId: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* @generated from protobuf field: repeated string forward_to = 5;
|
|
1213
|
+
*/
|
|
1214
|
+
forwardTo: string[];
|
|
1144
1215
|
}
|
|
1145
1216
|
/**
|
|
1146
1217
|
* @generated from protobuf message proto.packets.Request.ShowPrompt
|
|
@@ -1174,6 +1245,14 @@ export interface Request_ShowPrompt {
|
|
|
1174
1245
|
* @generated from protobuf field: repeated proto.packets.Request.ShowPrompt.PromptOption options = 7;
|
|
1175
1246
|
*/
|
|
1176
1247
|
options: Request_ShowPrompt_PromptOption[];
|
|
1248
|
+
/**
|
|
1249
|
+
* @generated from protobuf field: string tournament_id = 8;
|
|
1250
|
+
*/
|
|
1251
|
+
tournamentId: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* @generated from protobuf field: repeated string forward_to = 9;
|
|
1254
|
+
*/
|
|
1255
|
+
forwardTo: string[];
|
|
1177
1256
|
}
|
|
1178
1257
|
/**
|
|
1179
1258
|
* @generated from protobuf message proto.packets.Request.ShowPrompt.PromptOption
|
|
@@ -1257,15 +1336,6 @@ export interface Request_RefundAttempts {
|
|
|
1257
1336
|
*/
|
|
1258
1337
|
count: number;
|
|
1259
1338
|
}
|
|
1260
|
-
/**
|
|
1261
|
-
* @generated from protobuf message proto.packets.Request.ShowColorForStreamSync
|
|
1262
|
-
*/
|
|
1263
|
-
export interface Request_ShowColorForStreamSync {
|
|
1264
|
-
/**
|
|
1265
|
-
* @generated from protobuf field: string color = 1;
|
|
1266
|
-
*/
|
|
1267
|
-
color: string;
|
|
1268
|
-
}
|
|
1269
1339
|
declare class Request$Type extends MessageType<Request> {
|
|
1270
1340
|
constructor();
|
|
1271
1341
|
create(value?: PartialMessage<Request>): Request;
|
|
@@ -1456,26 +1526,16 @@ declare class Request_AddAuthorizedUser$Type extends MessageType<Request_AddAuth
|
|
|
1456
1526
|
* @generated MessageType for protobuf message proto.packets.Request.AddAuthorizedUser
|
|
1457
1527
|
*/
|
|
1458
1528
|
export declare const Request_AddAuthorizedUser: Request_AddAuthorizedUser$Type;
|
|
1459
|
-
declare class
|
|
1460
|
-
constructor();
|
|
1461
|
-
create(value?: PartialMessage<Request_AddAuthorizedUserPermission>): Request_AddAuthorizedUserPermission;
|
|
1462
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_AddAuthorizedUserPermission): Request_AddAuthorizedUserPermission;
|
|
1463
|
-
internalBinaryWrite(message: Request_AddAuthorizedUserPermission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1464
|
-
}
|
|
1465
|
-
/**
|
|
1466
|
-
* @generated MessageType for protobuf message proto.packets.Request.AddAuthorizedUserPermission
|
|
1467
|
-
*/
|
|
1468
|
-
export declare const Request_AddAuthorizedUserPermission: Request_AddAuthorizedUserPermission$Type;
|
|
1469
|
-
declare class Request_RemoveAuthorizedUserPermission$Type extends MessageType<Request_RemoveAuthorizedUserPermission> {
|
|
1529
|
+
declare class Request_UpdateAuthorizedUserRoles$Type extends MessageType<Request_UpdateAuthorizedUserRoles> {
|
|
1470
1530
|
constructor();
|
|
1471
|
-
create(value?: PartialMessage<
|
|
1472
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1473
|
-
internalBinaryWrite(message:
|
|
1531
|
+
create(value?: PartialMessage<Request_UpdateAuthorizedUserRoles>): Request_UpdateAuthorizedUserRoles;
|
|
1532
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_UpdateAuthorizedUserRoles): Request_UpdateAuthorizedUserRoles;
|
|
1533
|
+
internalBinaryWrite(message: Request_UpdateAuthorizedUserRoles, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1474
1534
|
}
|
|
1475
1535
|
/**
|
|
1476
|
-
* @generated MessageType for protobuf message proto.packets.Request.
|
|
1536
|
+
* @generated MessageType for protobuf message proto.packets.Request.UpdateAuthorizedUserRoles
|
|
1477
1537
|
*/
|
|
1478
|
-
export declare const
|
|
1538
|
+
export declare const Request_UpdateAuthorizedUserRoles: Request_UpdateAuthorizedUserRoles$Type;
|
|
1479
1539
|
declare class Request_RemoveAuthorizedUser$Type extends MessageType<Request_RemoveAuthorizedUser> {
|
|
1480
1540
|
constructor();
|
|
1481
1541
|
create(value?: PartialMessage<Request_RemoveAuthorizedUser>): Request_RemoveAuthorizedUser;
|
|
@@ -1706,6 +1766,46 @@ declare class Request_RemoveTournamentPool$Type extends MessageType<Request_Remo
|
|
|
1706
1766
|
* @generated MessageType for protobuf message proto.packets.Request.RemoveTournamentPool
|
|
1707
1767
|
*/
|
|
1708
1768
|
export declare const Request_RemoveTournamentPool: Request_RemoveTournamentPool$Type;
|
|
1769
|
+
declare class Request_AddTournamentRole$Type extends MessageType<Request_AddTournamentRole> {
|
|
1770
|
+
constructor();
|
|
1771
|
+
create(value?: PartialMessage<Request_AddTournamentRole>): Request_AddTournamentRole;
|
|
1772
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_AddTournamentRole): Request_AddTournamentRole;
|
|
1773
|
+
internalBinaryWrite(message: Request_AddTournamentRole, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* @generated MessageType for protobuf message proto.packets.Request.AddTournamentRole
|
|
1777
|
+
*/
|
|
1778
|
+
export declare const Request_AddTournamentRole: Request_AddTournamentRole$Type;
|
|
1779
|
+
declare class Request_SetTournamentRoleName$Type extends MessageType<Request_SetTournamentRoleName> {
|
|
1780
|
+
constructor();
|
|
1781
|
+
create(value?: PartialMessage<Request_SetTournamentRoleName>): Request_SetTournamentRoleName;
|
|
1782
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetTournamentRoleName): Request_SetTournamentRoleName;
|
|
1783
|
+
internalBinaryWrite(message: Request_SetTournamentRoleName, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* @generated MessageType for protobuf message proto.packets.Request.SetTournamentRoleName
|
|
1787
|
+
*/
|
|
1788
|
+
export declare const Request_SetTournamentRoleName: Request_SetTournamentRoleName$Type;
|
|
1789
|
+
declare class Request_SetTournamentRolePermissions$Type extends MessageType<Request_SetTournamentRolePermissions> {
|
|
1790
|
+
constructor();
|
|
1791
|
+
create(value?: PartialMessage<Request_SetTournamentRolePermissions>): Request_SetTournamentRolePermissions;
|
|
1792
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetTournamentRolePermissions): Request_SetTournamentRolePermissions;
|
|
1793
|
+
internalBinaryWrite(message: Request_SetTournamentRolePermissions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* @generated MessageType for protobuf message proto.packets.Request.SetTournamentRolePermissions
|
|
1797
|
+
*/
|
|
1798
|
+
export declare const Request_SetTournamentRolePermissions: Request_SetTournamentRolePermissions$Type;
|
|
1799
|
+
declare class Request_RemoveTournamentRole$Type extends MessageType<Request_RemoveTournamentRole> {
|
|
1800
|
+
constructor();
|
|
1801
|
+
create(value?: PartialMessage<Request_RemoveTournamentRole>): Request_RemoveTournamentRole;
|
|
1802
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_RemoveTournamentRole): Request_RemoveTournamentRole;
|
|
1803
|
+
internalBinaryWrite(message: Request_RemoveTournamentRole, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1804
|
+
}
|
|
1805
|
+
/**
|
|
1806
|
+
* @generated MessageType for protobuf message proto.packets.Request.RemoveTournamentRole
|
|
1807
|
+
*/
|
|
1808
|
+
export declare const Request_RemoveTournamentRole: Request_RemoveTournamentRole$Type;
|
|
1709
1809
|
declare class Request_DeleteTournament$Type extends MessageType<Request_DeleteTournament> {
|
|
1710
1810
|
constructor();
|
|
1711
1811
|
create(value?: PartialMessage<Request_DeleteTournament>): Request_DeleteTournament;
|
|
@@ -1856,14 +1956,4 @@ declare class Request_RefundAttempts$Type extends MessageType<Request_RefundAtte
|
|
|
1856
1956
|
* @generated MessageType for protobuf message proto.packets.Request.RefundAttempts
|
|
1857
1957
|
*/
|
|
1858
1958
|
export declare const Request_RefundAttempts: Request_RefundAttempts$Type;
|
|
1859
|
-
declare class Request_ShowColorForStreamSync$Type extends MessageType<Request_ShowColorForStreamSync> {
|
|
1860
|
-
constructor();
|
|
1861
|
-
create(value?: PartialMessage<Request_ShowColorForStreamSync>): Request_ShowColorForStreamSync;
|
|
1862
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_ShowColorForStreamSync): Request_ShowColorForStreamSync;
|
|
1863
|
-
internalBinaryWrite(message: Request_ShowColorForStreamSync, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1864
|
-
}
|
|
1865
|
-
/**
|
|
1866
|
-
* @generated MessageType for protobuf message proto.packets.Request.ShowColorForStreamSync
|
|
1867
|
-
*/
|
|
1868
|
-
export declare const Request_ShowColorForStreamSync: Request_ShowColorForStreamSync$Type;
|
|
1869
1959
|
export {};
|