moons-ta-client 1.3.1 → 1.3.2
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 +3 -3
- package/dist/constants.js +2 -2
- package/dist/index.d.ts +529 -8
- package/dist/index.esm.js +1468 -193
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/models.d.ts +116 -0
- package/dist/models/models.js +178 -3
- package/dist/models/requests.d.ts +257 -0
- package/dist/models/requests.js +568 -1
- package/dist/models/responses.d.ts +142 -0
- package/dist/models/responses.js +317 -1
- package/dist/tournament-assistant-client.d.ts +10 -2
- package/dist/tournament-assistant-client.js +109 -2
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ import { Role } from './models.js';
|
|
|
11
11
|
import { Tournament_TournamentSettings_Pool } from './models.js';
|
|
12
12
|
import { Tournament_TournamentSettings_Team } from './models.js';
|
|
13
13
|
import { Tournament } from './models.js';
|
|
14
|
+
import { Timestamp } from './google/protobuf/timestamp.js';
|
|
14
15
|
import { QualifierEvent_LeaderboardSort } from './models.js';
|
|
15
16
|
import { QualifierEvent_EventSettings } from './models.js';
|
|
16
17
|
import { Channel } from './discord.js';
|
|
@@ -399,6 +400,54 @@ export interface Request {
|
|
|
399
400
|
* @generated from protobuf field: proto.packets.Request.SetTournamentEnableReplayStreaming set_tournament_enable_replay_streaming = 64
|
|
400
401
|
*/
|
|
401
402
|
setTournamentEnableReplayStreaming: Request_SetTournamentEnableReplayStreaming;
|
|
403
|
+
} | {
|
|
404
|
+
oneofKind: "setQualifierStartTime";
|
|
405
|
+
/**
|
|
406
|
+
* @generated from protobuf field: proto.packets.Request.SetQualifierStartTime set_qualifier_start_time = 65
|
|
407
|
+
*/
|
|
408
|
+
setQualifierStartTime: Request_SetQualifierStartTime;
|
|
409
|
+
} | {
|
|
410
|
+
oneofKind: "setQualifierEndTime";
|
|
411
|
+
/**
|
|
412
|
+
* @generated from protobuf field: proto.packets.Request.SetQualifierEndTime set_qualifier_end_time = 66
|
|
413
|
+
*/
|
|
414
|
+
setQualifierEndTime: Request_SetQualifierEndTime;
|
|
415
|
+
} | {
|
|
416
|
+
oneofKind: "setTournamentAllowMockClients";
|
|
417
|
+
/**
|
|
418
|
+
* @generated from protobuf field: proto.packets.Request.SetTournamentAllowMockClients set_tournament_allow_mock_clients = 67
|
|
419
|
+
*/
|
|
420
|
+
setTournamentAllowMockClients: Request_SetTournamentAllowMockClients;
|
|
421
|
+
} | {
|
|
422
|
+
oneofKind: "leaveTournament";
|
|
423
|
+
/**
|
|
424
|
+
* @generated from protobuf field: proto.packets.Request.LeaveTournament leave_tournament = 68
|
|
425
|
+
*/
|
|
426
|
+
leaveTournament: Request_LeaveTournament;
|
|
427
|
+
} | {
|
|
428
|
+
oneofKind: "getWebhooks";
|
|
429
|
+
/**
|
|
430
|
+
* @generated from protobuf field: proto.packets.Request.GetWebhooks get_webhooks = 69
|
|
431
|
+
*/
|
|
432
|
+
getWebhooks: Request_GetWebhooks;
|
|
433
|
+
} | {
|
|
434
|
+
oneofKind: "createWebhook";
|
|
435
|
+
/**
|
|
436
|
+
* @generated from protobuf field: proto.packets.Request.CreateWebhook create_webhook = 70
|
|
437
|
+
*/
|
|
438
|
+
createWebhook: Request_CreateWebhook;
|
|
439
|
+
} | {
|
|
440
|
+
oneofKind: "updateWebhook";
|
|
441
|
+
/**
|
|
442
|
+
* @generated from protobuf field: proto.packets.Request.UpdateWebhook update_webhook = 71
|
|
443
|
+
*/
|
|
444
|
+
updateWebhook: Request_UpdateWebhook;
|
|
445
|
+
} | {
|
|
446
|
+
oneofKind: "deleteWebhook";
|
|
447
|
+
/**
|
|
448
|
+
* @generated from protobuf field: proto.packets.Request.DeleteWebhook delete_webhook = 72
|
|
449
|
+
*/
|
|
450
|
+
deleteWebhook: Request_DeleteWebhook;
|
|
402
451
|
} | {
|
|
403
452
|
oneofKind: undefined;
|
|
404
453
|
};
|
|
@@ -614,6 +663,40 @@ export interface Request_SetQualifierLeaderboardSort {
|
|
|
614
663
|
*/
|
|
615
664
|
qualifierLeaderboardSort: QualifierEvent_LeaderboardSort;
|
|
616
665
|
}
|
|
666
|
+
/**
|
|
667
|
+
* @generated from protobuf message proto.packets.Request.SetQualifierStartTime
|
|
668
|
+
*/
|
|
669
|
+
export interface Request_SetQualifierStartTime {
|
|
670
|
+
/**
|
|
671
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
672
|
+
*/
|
|
673
|
+
tournamentId: string;
|
|
674
|
+
/**
|
|
675
|
+
* @generated from protobuf field: string qualifier_id = 2
|
|
676
|
+
*/
|
|
677
|
+
qualifierId: string;
|
|
678
|
+
/**
|
|
679
|
+
* @generated from protobuf field: google.protobuf.Timestamp start_time = 3
|
|
680
|
+
*/
|
|
681
|
+
startTime?: Timestamp;
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* @generated from protobuf message proto.packets.Request.SetQualifierEndTime
|
|
685
|
+
*/
|
|
686
|
+
export interface Request_SetQualifierEndTime {
|
|
687
|
+
/**
|
|
688
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
689
|
+
*/
|
|
690
|
+
tournamentId: string;
|
|
691
|
+
/**
|
|
692
|
+
* @generated from protobuf field: string qualifier_id = 2
|
|
693
|
+
*/
|
|
694
|
+
qualifierId: string;
|
|
695
|
+
/**
|
|
696
|
+
* @generated from protobuf field: google.protobuf.Timestamp end_time = 3
|
|
697
|
+
*/
|
|
698
|
+
endTime?: Timestamp;
|
|
699
|
+
}
|
|
617
700
|
/**
|
|
618
701
|
* @generated from protobuf message proto.packets.Request.AddQualifierMaps
|
|
619
702
|
*/
|
|
@@ -823,6 +906,19 @@ export interface Request_SetTournamentEnableReplayStreaming {
|
|
|
823
906
|
*/
|
|
824
907
|
enableReplayStreaming: boolean;
|
|
825
908
|
}
|
|
909
|
+
/**
|
|
910
|
+
* @generated from protobuf message proto.packets.Request.SetTournamentAllowMockClients
|
|
911
|
+
*/
|
|
912
|
+
export interface Request_SetTournamentAllowMockClients {
|
|
913
|
+
/**
|
|
914
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
915
|
+
*/
|
|
916
|
+
tournamentId: string;
|
|
917
|
+
/**
|
|
918
|
+
* @generated from protobuf field: bool allow_mock_clients = 2
|
|
919
|
+
*/
|
|
920
|
+
allowMockClients: boolean;
|
|
921
|
+
}
|
|
826
922
|
/**
|
|
827
923
|
* @generated from protobuf message proto.packets.Request.SetTournamentShowTournamentButton
|
|
828
924
|
*/
|
|
@@ -1175,6 +1271,15 @@ export interface Request_Join {
|
|
|
1175
1271
|
*/
|
|
1176
1272
|
modList: string[];
|
|
1177
1273
|
}
|
|
1274
|
+
/**
|
|
1275
|
+
* @generated from protobuf message proto.packets.Request.LeaveTournament
|
|
1276
|
+
*/
|
|
1277
|
+
export interface Request_LeaveTournament {
|
|
1278
|
+
/**
|
|
1279
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
1280
|
+
*/
|
|
1281
|
+
tournamentId: string;
|
|
1282
|
+
}
|
|
1178
1283
|
/**
|
|
1179
1284
|
* @generated from protobuf message proto.packets.Request.QualifierScores
|
|
1180
1285
|
*/
|
|
@@ -1378,6 +1483,78 @@ export interface Request_RefundAttempts {
|
|
|
1378
1483
|
*/
|
|
1379
1484
|
count: number;
|
|
1380
1485
|
}
|
|
1486
|
+
/**
|
|
1487
|
+
* @generated from protobuf message proto.packets.Request.GetWebhooks
|
|
1488
|
+
*/
|
|
1489
|
+
export interface Request_GetWebhooks {
|
|
1490
|
+
/**
|
|
1491
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
1492
|
+
*/
|
|
1493
|
+
tournamentId: string;
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* @generated from protobuf message proto.packets.Request.CreateWebhook
|
|
1497
|
+
*/
|
|
1498
|
+
export interface Request_CreateWebhook {
|
|
1499
|
+
/**
|
|
1500
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
1501
|
+
*/
|
|
1502
|
+
tournamentId: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* @generated from protobuf field: string url = 2
|
|
1505
|
+
*/
|
|
1506
|
+
url: string;
|
|
1507
|
+
/**
|
|
1508
|
+
* @generated from protobuf field: int64 triggers = 3
|
|
1509
|
+
*/
|
|
1510
|
+
triggers: bigint;
|
|
1511
|
+
/**
|
|
1512
|
+
* @generated from protobuf field: string signing_secret = 4
|
|
1513
|
+
*/
|
|
1514
|
+
signingSecret: string;
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* @generated from protobuf message proto.packets.Request.UpdateWebhook
|
|
1518
|
+
*/
|
|
1519
|
+
export interface Request_UpdateWebhook {
|
|
1520
|
+
/**
|
|
1521
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
1522
|
+
*/
|
|
1523
|
+
tournamentId: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* @generated from protobuf field: string webhook_guid = 2
|
|
1526
|
+
*/
|
|
1527
|
+
webhookGuid: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* @generated from protobuf field: string url = 3
|
|
1530
|
+
*/
|
|
1531
|
+
url: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* @generated from protobuf field: int64 triggers = 4
|
|
1534
|
+
*/
|
|
1535
|
+
triggers: bigint;
|
|
1536
|
+
/**
|
|
1537
|
+
* @generated from protobuf field: bool replace_signing_secret = 5
|
|
1538
|
+
*/
|
|
1539
|
+
replaceSigningSecret: boolean;
|
|
1540
|
+
/**
|
|
1541
|
+
* @generated from protobuf field: string signing_secret = 6
|
|
1542
|
+
*/
|
|
1543
|
+
signingSecret: string;
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* @generated from protobuf message proto.packets.Request.DeleteWebhook
|
|
1547
|
+
*/
|
|
1548
|
+
export interface Request_DeleteWebhook {
|
|
1549
|
+
/**
|
|
1550
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
1551
|
+
*/
|
|
1552
|
+
tournamentId: string;
|
|
1553
|
+
/**
|
|
1554
|
+
* @generated from protobuf field: string webhook_guid = 2
|
|
1555
|
+
*/
|
|
1556
|
+
webhookGuid: string;
|
|
1557
|
+
}
|
|
1381
1558
|
declare class Request$Type extends MessageType<Request> {
|
|
1382
1559
|
constructor();
|
|
1383
1560
|
create(value?: PartialMessage<Request>): Request;
|
|
@@ -1518,6 +1695,26 @@ declare class Request_SetQualifierLeaderboardSort$Type extends MessageType<Reque
|
|
|
1518
1695
|
* @generated MessageType for protobuf message proto.packets.Request.SetQualifierLeaderboardSort
|
|
1519
1696
|
*/
|
|
1520
1697
|
export declare const Request_SetQualifierLeaderboardSort: Request_SetQualifierLeaderboardSort$Type;
|
|
1698
|
+
declare class Request_SetQualifierStartTime$Type extends MessageType<Request_SetQualifierStartTime> {
|
|
1699
|
+
constructor();
|
|
1700
|
+
create(value?: PartialMessage<Request_SetQualifierStartTime>): Request_SetQualifierStartTime;
|
|
1701
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetQualifierStartTime): Request_SetQualifierStartTime;
|
|
1702
|
+
internalBinaryWrite(message: Request_SetQualifierStartTime, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* @generated MessageType for protobuf message proto.packets.Request.SetQualifierStartTime
|
|
1706
|
+
*/
|
|
1707
|
+
export declare const Request_SetQualifierStartTime: Request_SetQualifierStartTime$Type;
|
|
1708
|
+
declare class Request_SetQualifierEndTime$Type extends MessageType<Request_SetQualifierEndTime> {
|
|
1709
|
+
constructor();
|
|
1710
|
+
create(value?: PartialMessage<Request_SetQualifierEndTime>): Request_SetQualifierEndTime;
|
|
1711
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetQualifierEndTime): Request_SetQualifierEndTime;
|
|
1712
|
+
internalBinaryWrite(message: Request_SetQualifierEndTime, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* @generated MessageType for protobuf message proto.packets.Request.SetQualifierEndTime
|
|
1716
|
+
*/
|
|
1717
|
+
export declare const Request_SetQualifierEndTime: Request_SetQualifierEndTime$Type;
|
|
1521
1718
|
declare class Request_AddQualifierMaps$Type extends MessageType<Request_AddQualifierMaps> {
|
|
1522
1719
|
constructor();
|
|
1523
1720
|
create(value?: PartialMessage<Request_AddQualifierMaps>): Request_AddQualifierMaps;
|
|
@@ -1668,6 +1865,16 @@ declare class Request_SetTournamentEnableReplayStreaming$Type extends MessageTyp
|
|
|
1668
1865
|
* @generated MessageType for protobuf message proto.packets.Request.SetTournamentEnableReplayStreaming
|
|
1669
1866
|
*/
|
|
1670
1867
|
export declare const Request_SetTournamentEnableReplayStreaming: Request_SetTournamentEnableReplayStreaming$Type;
|
|
1868
|
+
declare class Request_SetTournamentAllowMockClients$Type extends MessageType<Request_SetTournamentAllowMockClients> {
|
|
1869
|
+
constructor();
|
|
1870
|
+
create(value?: PartialMessage<Request_SetTournamentAllowMockClients>): Request_SetTournamentAllowMockClients;
|
|
1871
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_SetTournamentAllowMockClients): Request_SetTournamentAllowMockClients;
|
|
1872
|
+
internalBinaryWrite(message: Request_SetTournamentAllowMockClients, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* @generated MessageType for protobuf message proto.packets.Request.SetTournamentAllowMockClients
|
|
1876
|
+
*/
|
|
1877
|
+
export declare const Request_SetTournamentAllowMockClients: Request_SetTournamentAllowMockClients$Type;
|
|
1671
1878
|
declare class Request_SetTournamentShowTournamentButton$Type extends MessageType<Request_SetTournamentShowTournamentButton> {
|
|
1672
1879
|
constructor();
|
|
1673
1880
|
create(value?: PartialMessage<Request_SetTournamentShowTournamentButton>): Request_SetTournamentShowTournamentButton;
|
|
@@ -1908,6 +2115,16 @@ declare class Request_Join$Type extends MessageType<Request_Join> {
|
|
|
1908
2115
|
* @generated MessageType for protobuf message proto.packets.Request.Join
|
|
1909
2116
|
*/
|
|
1910
2117
|
export declare const Request_Join: Request_Join$Type;
|
|
2118
|
+
declare class Request_LeaveTournament$Type extends MessageType<Request_LeaveTournament> {
|
|
2119
|
+
constructor();
|
|
2120
|
+
create(value?: PartialMessage<Request_LeaveTournament>): Request_LeaveTournament;
|
|
2121
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_LeaveTournament): Request_LeaveTournament;
|
|
2122
|
+
internalBinaryWrite(message: Request_LeaveTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
2123
|
+
}
|
|
2124
|
+
/**
|
|
2125
|
+
* @generated MessageType for protobuf message proto.packets.Request.LeaveTournament
|
|
2126
|
+
*/
|
|
2127
|
+
export declare const Request_LeaveTournament: Request_LeaveTournament$Type;
|
|
1911
2128
|
declare class Request_QualifierScores$Type extends MessageType<Request_QualifierScores> {
|
|
1912
2129
|
constructor();
|
|
1913
2130
|
create(value?: PartialMessage<Request_QualifierScores>): Request_QualifierScores;
|
|
@@ -2018,4 +2235,44 @@ declare class Request_RefundAttempts$Type extends MessageType<Request_RefundAtte
|
|
|
2018
2235
|
* @generated MessageType for protobuf message proto.packets.Request.RefundAttempts
|
|
2019
2236
|
*/
|
|
2020
2237
|
export declare const Request_RefundAttempts: Request_RefundAttempts$Type;
|
|
2238
|
+
declare class Request_GetWebhooks$Type extends MessageType<Request_GetWebhooks> {
|
|
2239
|
+
constructor();
|
|
2240
|
+
create(value?: PartialMessage<Request_GetWebhooks>): Request_GetWebhooks;
|
|
2241
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_GetWebhooks): Request_GetWebhooks;
|
|
2242
|
+
internalBinaryWrite(message: Request_GetWebhooks, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
2243
|
+
}
|
|
2244
|
+
/**
|
|
2245
|
+
* @generated MessageType for protobuf message proto.packets.Request.GetWebhooks
|
|
2246
|
+
*/
|
|
2247
|
+
export declare const Request_GetWebhooks: Request_GetWebhooks$Type;
|
|
2248
|
+
declare class Request_CreateWebhook$Type extends MessageType<Request_CreateWebhook> {
|
|
2249
|
+
constructor();
|
|
2250
|
+
create(value?: PartialMessage<Request_CreateWebhook>): Request_CreateWebhook;
|
|
2251
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_CreateWebhook): Request_CreateWebhook;
|
|
2252
|
+
internalBinaryWrite(message: Request_CreateWebhook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
2253
|
+
}
|
|
2254
|
+
/**
|
|
2255
|
+
* @generated MessageType for protobuf message proto.packets.Request.CreateWebhook
|
|
2256
|
+
*/
|
|
2257
|
+
export declare const Request_CreateWebhook: Request_CreateWebhook$Type;
|
|
2258
|
+
declare class Request_UpdateWebhook$Type extends MessageType<Request_UpdateWebhook> {
|
|
2259
|
+
constructor();
|
|
2260
|
+
create(value?: PartialMessage<Request_UpdateWebhook>): Request_UpdateWebhook;
|
|
2261
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_UpdateWebhook): Request_UpdateWebhook;
|
|
2262
|
+
internalBinaryWrite(message: Request_UpdateWebhook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
2263
|
+
}
|
|
2264
|
+
/**
|
|
2265
|
+
* @generated MessageType for protobuf message proto.packets.Request.UpdateWebhook
|
|
2266
|
+
*/
|
|
2267
|
+
export declare const Request_UpdateWebhook: Request_UpdateWebhook$Type;
|
|
2268
|
+
declare class Request_DeleteWebhook$Type extends MessageType<Request_DeleteWebhook> {
|
|
2269
|
+
constructor();
|
|
2270
|
+
create(value?: PartialMessage<Request_DeleteWebhook>): Request_DeleteWebhook;
|
|
2271
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_DeleteWebhook): Request_DeleteWebhook;
|
|
2272
|
+
internalBinaryWrite(message: Request_DeleteWebhook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
2273
|
+
}
|
|
2274
|
+
/**
|
|
2275
|
+
* @generated MessageType for protobuf message proto.packets.Request.DeleteWebhook
|
|
2276
|
+
*/
|
|
2277
|
+
export declare const Request_DeleteWebhook: Request_DeleteWebhook$Type;
|
|
2021
2278
|
export {};
|