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/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/custom-event-emitter.js +1 -1
- package/dist/index.d.ts +866 -8
- package/dist/index.esm.js +6656 -4198
- package/dist/models/models.d.ts +216 -2
- package/dist/models/models.js +412 -3
- package/dist/models/pushes.d.ts +40 -0
- package/dist/models/pushes.js +82 -1
- package/dist/models/requests.d.ts +382 -0
- package/dist/models/requests.js +834 -1
- package/dist/models/responses.d.ts +217 -0
- package/dist/models/responses.js +469 -1
- package/dist/scraper.js +3 -4
- package/dist/tournament-assistant-client.d.ts +11 -2
- package/dist/tournament-assistant-client.js +109 -0
- package/package.json +4 -10
package/dist/models/models.d.ts
CHANGED
|
@@ -754,9 +754,142 @@ export declare enum Webhook_Trigger {
|
|
|
754
754
|
*/
|
|
755
755
|
SongFinished = 4096,
|
|
756
756
|
/**
|
|
757
|
-
* @generated from protobuf enum value:
|
|
757
|
+
* @generated from protobuf enum value: ReplaySubmitted = 8192;
|
|
758
758
|
*/
|
|
759
|
-
|
|
759
|
+
ReplaySubmitted = 8192,
|
|
760
|
+
/**
|
|
761
|
+
* @generated from protobuf enum value: All = 16383;
|
|
762
|
+
*/
|
|
763
|
+
All = 16383
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* @generated from protobuf message proto.models.EndpointAccess
|
|
767
|
+
*/
|
|
768
|
+
export interface EndpointAccess {
|
|
769
|
+
/**
|
|
770
|
+
* @generated from protobuf field: string endpoint_id = 1
|
|
771
|
+
*/
|
|
772
|
+
endpointId: string;
|
|
773
|
+
/**
|
|
774
|
+
* @generated from protobuf field: string display_name = 2
|
|
775
|
+
*/
|
|
776
|
+
displayName: string;
|
|
777
|
+
/**
|
|
778
|
+
* @generated from protobuf field: string route = 3
|
|
779
|
+
*/
|
|
780
|
+
route: string;
|
|
781
|
+
/**
|
|
782
|
+
* @generated from protobuf field: bool supports_websocket = 4
|
|
783
|
+
*/
|
|
784
|
+
supportsWebsocket: boolean;
|
|
785
|
+
/**
|
|
786
|
+
* @generated from protobuf field: bool supports_rest = 5
|
|
787
|
+
*/
|
|
788
|
+
supportsRest: boolean;
|
|
789
|
+
/**
|
|
790
|
+
* @generated from protobuf field: bool supports_player = 6
|
|
791
|
+
*/
|
|
792
|
+
supportsPlayer: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* @generated from protobuf field: bool websocket_enabled = 7
|
|
795
|
+
*/
|
|
796
|
+
websocketEnabled: boolean;
|
|
797
|
+
/**
|
|
798
|
+
* @generated from protobuf field: bool rest_enabled = 8
|
|
799
|
+
*/
|
|
800
|
+
restEnabled: boolean;
|
|
801
|
+
/**
|
|
802
|
+
* @generated from protobuf field: bool player_enabled = 9
|
|
803
|
+
*/
|
|
804
|
+
playerEnabled: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* @generated from protobuf field: bool is_core = 10
|
|
807
|
+
*/
|
|
808
|
+
isCore: boolean;
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* @generated from protobuf message proto.models.GlobalConfiguration
|
|
812
|
+
*/
|
|
813
|
+
export interface GlobalConfiguration {
|
|
814
|
+
/**
|
|
815
|
+
* @generated from protobuf field: repeated string full_access_discord_ids = 1
|
|
816
|
+
*/
|
|
817
|
+
fullAccessDiscordIds: string[];
|
|
818
|
+
/**
|
|
819
|
+
* @generated from protobuf field: repeated string endpoint_manager_discord_ids = 2
|
|
820
|
+
*/
|
|
821
|
+
endpointManagerDiscordIds: string[];
|
|
822
|
+
/**
|
|
823
|
+
* @generated from protobuf field: repeated proto.models.EndpointAccess endpoints = 3
|
|
824
|
+
*/
|
|
825
|
+
endpoints: EndpointAccess[];
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* A .tarf replay a player submitted to the server
|
|
829
|
+
*
|
|
830
|
+
* @generated from protobuf message proto.models.ReplayRecording
|
|
831
|
+
*/
|
|
832
|
+
export interface ReplayRecording {
|
|
833
|
+
/**
|
|
834
|
+
* @generated from protobuf field: string guid = 1
|
|
835
|
+
*/
|
|
836
|
+
guid: string;
|
|
837
|
+
/**
|
|
838
|
+
* @generated from protobuf field: string tournament_id = 2
|
|
839
|
+
*/
|
|
840
|
+
tournamentId: string;
|
|
841
|
+
/**
|
|
842
|
+
* @generated from protobuf field: string match_id = 3
|
|
843
|
+
*/
|
|
844
|
+
matchId: string;
|
|
845
|
+
/**
|
|
846
|
+
* @generated from protobuf field: string file_name = 4
|
|
847
|
+
*/
|
|
848
|
+
fileName: string;
|
|
849
|
+
/**
|
|
850
|
+
* @generated from protobuf field: string platform_id = 5
|
|
851
|
+
*/
|
|
852
|
+
platformId: string;
|
|
853
|
+
/**
|
|
854
|
+
* @generated from protobuf field: string player_name = 6
|
|
855
|
+
*/
|
|
856
|
+
playerName: string;
|
|
857
|
+
/**
|
|
858
|
+
* @generated from protobuf field: string map_hash = 7
|
|
859
|
+
*/
|
|
860
|
+
mapHash: string;
|
|
861
|
+
/**
|
|
862
|
+
* @generated from protobuf field: string characteristic = 8
|
|
863
|
+
*/
|
|
864
|
+
characteristic: string;
|
|
865
|
+
/**
|
|
866
|
+
* @generated from protobuf field: int32 difficulty = 9
|
|
867
|
+
*/
|
|
868
|
+
difficulty: number;
|
|
869
|
+
/**
|
|
870
|
+
* Unix times in milliseconds
|
|
871
|
+
*
|
|
872
|
+
* @generated from protobuf field: int64 recorded_at = 10
|
|
873
|
+
*/
|
|
874
|
+
recordedAt: bigint;
|
|
875
|
+
/**
|
|
876
|
+
* @generated from protobuf field: int64 submitted_at = 11
|
|
877
|
+
*/
|
|
878
|
+
submittedAt: bigint;
|
|
879
|
+
/**
|
|
880
|
+
* @generated from protobuf field: int64 expires_at = 12
|
|
881
|
+
*/
|
|
882
|
+
expiresAt: bigint;
|
|
883
|
+
/**
|
|
884
|
+
* @generated from protobuf field: int64 size = 13
|
|
885
|
+
*/
|
|
886
|
+
size: bigint;
|
|
887
|
+
/**
|
|
888
|
+
* Empty when the replay was not stored, for example when replay storage is unavailable
|
|
889
|
+
*
|
|
890
|
+
* @generated from protobuf field: string download_url = 14
|
|
891
|
+
*/
|
|
892
|
+
downloadUrl: string;
|
|
760
893
|
}
|
|
761
894
|
/**
|
|
762
895
|
* @generated from protobuf message proto.models.Tournament
|
|
@@ -851,6 +984,34 @@ export interface Tournament_TournamentSettings {
|
|
|
851
984
|
* @generated from protobuf field: bool allow_mock_clients = 15
|
|
852
985
|
*/
|
|
853
986
|
allowMockClients: boolean;
|
|
987
|
+
/**
|
|
988
|
+
* @generated from protobuf field: bool is_bk_tournament = 16
|
|
989
|
+
*/
|
|
990
|
+
isBkTournament: boolean;
|
|
991
|
+
/**
|
|
992
|
+
* @generated from protobuf field: string beat_khana_tournament_guid = 17
|
|
993
|
+
*/
|
|
994
|
+
beatKhanaTournamentGuid: string;
|
|
995
|
+
/**
|
|
996
|
+
* @generated from protobuf field: bool enable_replay_recording = 18
|
|
997
|
+
*/
|
|
998
|
+
enableReplayRecording: boolean;
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from protobuf field: proto.models.ReplayRetention replay_retention = 19
|
|
1001
|
+
*/
|
|
1002
|
+
replayRetention: ReplayRetention;
|
|
1003
|
+
/**
|
|
1004
|
+
* Unix time in milliseconds of the last change to the tournament
|
|
1005
|
+
*
|
|
1006
|
+
* @generated from protobuf field: int64 updated_at = 20
|
|
1007
|
+
*/
|
|
1008
|
+
updatedAt: bigint;
|
|
1009
|
+
/**
|
|
1010
|
+
* Unix time in milliseconds when a visible tournament gets hidden for being inactive, 0 when it is already hidden
|
|
1011
|
+
*
|
|
1012
|
+
* @generated from protobuf field: int64 auto_hide_at = 21
|
|
1013
|
+
*/
|
|
1014
|
+
autoHideAt: bigint;
|
|
854
1015
|
}
|
|
855
1016
|
/**
|
|
856
1017
|
* @generated from protobuf message proto.models.Tournament.TournamentSettings.Pool
|
|
@@ -1066,6 +1227,29 @@ export interface ScoreTrackerHand {
|
|
|
1066
1227
|
*/
|
|
1067
1228
|
avgCut: number[];
|
|
1068
1229
|
}
|
|
1230
|
+
/**
|
|
1231
|
+
* How long a recorded replay is kept before it expires
|
|
1232
|
+
*
|
|
1233
|
+
* @generated from protobuf enum proto.models.ReplayRetention
|
|
1234
|
+
*/
|
|
1235
|
+
export declare enum ReplayRetention {
|
|
1236
|
+
/**
|
|
1237
|
+
* @generated from protobuf enum value: ThirtyDays = 0;
|
|
1238
|
+
*/
|
|
1239
|
+
ThirtyDays = 0,
|
|
1240
|
+
/**
|
|
1241
|
+
* @generated from protobuf enum value: NinetyDays = 1;
|
|
1242
|
+
*/
|
|
1243
|
+
NinetyDays = 1,
|
|
1244
|
+
/**
|
|
1245
|
+
* @generated from protobuf enum value: OneYear = 2;
|
|
1246
|
+
*/
|
|
1247
|
+
OneYear = 2,
|
|
1248
|
+
/**
|
|
1249
|
+
* @generated from protobuf enum value: ThreeYears = 3;
|
|
1250
|
+
*/
|
|
1251
|
+
ThreeYears = 3
|
|
1252
|
+
}
|
|
1069
1253
|
declare class Characteristic$Type extends MessageType<Characteristic> {
|
|
1070
1254
|
constructor();
|
|
1071
1255
|
create(value?: PartialMessage<Characteristic>): Characteristic;
|
|
@@ -1206,6 +1390,36 @@ declare class Webhook$Type extends MessageType<Webhook> {
|
|
|
1206
1390
|
* @generated MessageType for protobuf message proto.models.Webhook
|
|
1207
1391
|
*/
|
|
1208
1392
|
export declare const Webhook: Webhook$Type;
|
|
1393
|
+
declare class EndpointAccess$Type extends MessageType<EndpointAccess> {
|
|
1394
|
+
constructor();
|
|
1395
|
+
create(value?: PartialMessage<EndpointAccess>): EndpointAccess;
|
|
1396
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndpointAccess): EndpointAccess;
|
|
1397
|
+
internalBinaryWrite(message: EndpointAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* @generated MessageType for protobuf message proto.models.EndpointAccess
|
|
1401
|
+
*/
|
|
1402
|
+
export declare const EndpointAccess: EndpointAccess$Type;
|
|
1403
|
+
declare class GlobalConfiguration$Type extends MessageType<GlobalConfiguration> {
|
|
1404
|
+
constructor();
|
|
1405
|
+
create(value?: PartialMessage<GlobalConfiguration>): GlobalConfiguration;
|
|
1406
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GlobalConfiguration): GlobalConfiguration;
|
|
1407
|
+
internalBinaryWrite(message: GlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* @generated MessageType for protobuf message proto.models.GlobalConfiguration
|
|
1411
|
+
*/
|
|
1412
|
+
export declare const GlobalConfiguration: GlobalConfiguration$Type;
|
|
1413
|
+
declare class ReplayRecording$Type extends MessageType<ReplayRecording> {
|
|
1414
|
+
constructor();
|
|
1415
|
+
create(value?: PartialMessage<ReplayRecording>): ReplayRecording;
|
|
1416
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReplayRecording): ReplayRecording;
|
|
1417
|
+
internalBinaryWrite(message: ReplayRecording, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* @generated MessageType for protobuf message proto.models.ReplayRecording
|
|
1421
|
+
*/
|
|
1422
|
+
export declare const ReplayRecording: ReplayRecording$Type;
|
|
1209
1423
|
declare class Tournament$Type extends MessageType<Tournament> {
|
|
1210
1424
|
constructor();
|
|
1211
1425
|
create(value?: PartialMessage<Tournament>): Tournament;
|