-
Notifications
You must be signed in to change notification settings - Fork 0
/
skyweaver-api.gen.ts
2398 lines (2111 loc) · 57 KB
/
skyweaver-api.gen.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* eslint-disable */
// api v0.3.0 bf3efdf3504c50d2ef8dd16b214905051dc2275c
// --
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
// Do not edit by hand. Update your webrpc schema and re-generate.
// WebRPC description and code-gen version
export const WebRPCVersion = "v1"
// Schema version of your RIDL schema
export const WebRPCSchemaVersion = "v0.3.0"
// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = "bf3efdf3504c50d2ef8dd16b214905051dc2275c"
//
// Types
//
export enum AccountStatus {
ACTIVE = 'ACTIVE',
SUSPENDED = 'SUSPENDED',
BANNED = 'BANNED',
VIP = 'VIP',
FLAGGED = 'FLAGGED',
TO_DELETE = 'TO_DELETE',
DELETED = 'DELETED'
}
export enum PlayerRank {
UNKNOWN = 'UNKNOWN',
WANDERER = 'WANDERER',
RECRUIT = 'RECRUIT',
APPRENTICE = 'APPRENTICE',
SCHOLAR = 'SCHOLAR',
PROPHET = 'PROPHET',
MASTER = 'MASTER',
GRANDMASTER = 'GRANDMASTER'
}
export enum ContractType {
UNKNOWN = 'UNKNOWN',
SKYWEAVER_ASSETS = 'SKYWEAVER_ASSETS'
}
export enum ItemType {
UNKNOWN = 'UNKNOWN',
USDC = 'USDC',
SW_BASE_CARDS = 'SW_BASE_CARDS',
SW_SILVER_DUST = 'SW_SILVER_DUST',
SW_SILVER_CARDS = 'SW_SILVER_CARDS',
SW_GOLD_CARDS = 'SW_GOLD_CARDS',
SW_CONQUEST_TICKET = 'SW_CONQUEST_TICKET',
SW_CRYSTALS = 'SW_CRYSTALS',
SW_STICKERS = 'SW_STICKERS',
SW_HERO_SKINS = 'SW_HERO_SKINS',
SW_HERO = 'SW_HERO'
}
export enum FeedEventType {
LEVELUP = 'LEVELUP',
MATCH = 'MATCH',
REWARD = 'REWARD',
TRADE = 'TRADE',
RANKUP = 'RANKUP',
LEADERBOARD_REWARD = 'LEADERBOARD_REWARD',
HERO_UNLOCK = 'HERO_UNLOCK',
IAP_CONQUEST_MINTING = 'IAP_CONQUEST_MINTING',
DELAYED_REWARD = 'DELAYED_REWARD',
DELAYED_REWARD_MINTED = 'DELAYED_REWARD_MINTED',
STARTED_DECK_UNLOCK = 'STARTED_DECK_UNLOCK',
CONQUEST_V2_REWARD = 'CONQUEST_V2_REWARD'
}
export enum Hero {
UNKNOWN = 'UNKNOWN',
ADA = 'ADA',
SAMYA = 'SAMYA',
FOX = 'FOX',
LOTUS = 'LOTUS',
TITUS = 'TITUS',
IRIS = 'IRIS',
BOURAN = 'BOURAN',
HORIK = 'HORIK',
ZOEY = 'ZOEY',
AXEL = 'AXEL',
ARI = 'ARI',
MIRA = 'MIRA',
MAI = 'MAI',
BANJO = 'BANJO',
SITTI = 'SITTI'
}
export enum DeckClass {
UNKNOWN_CLASS = 'UNKNOWN_CLASS',
STR = 'STR',
HRT = 'HRT',
AGY = 'AGY',
INT = 'INT',
WIS = 'WIS',
STH = 'STH',
STA = 'STA',
STI = 'STI',
STW = 'STW',
HRA = 'HRA',
HRI = 'HRI',
HRW = 'HRW',
AGI = 'AGI',
AGW = 'AGW',
INW = 'INW'
}
export enum CardType {
UNIT = 'UNIT',
SPELL = 'SPELL'
}
export enum CardKeyword {
ARMOR = 'ARMOR',
STEALTH = 'STEALTH',
GUARD = 'GUARD',
BANNER = 'BANNER',
WITHER = 'WITHER',
DEATH = 'DEATH'
}
export enum CardElement {
WATER = 'WATER',
FIRE = 'FIRE',
EARTH = 'EARTH',
AIR = 'AIR',
MIND = 'MIND',
METAL = 'METAL',
LIGHT = 'LIGHT',
DARK = 'DARK'
}
export enum CardStatus {
PLAY = 'PLAY',
BLOCKED = 'BLOCKED',
CODE = 'CODE'
}
export enum CardClass {
STR = 'STR',
HRT = 'HRT',
AGY = 'AGY',
INT = 'INT',
WIS = 'WIS',
TOK = 'TOK'
}
export enum GameMode {
UNKNOWN = 'UNKNOWN',
RANKED_CONSTRUCTED = 'RANKED_CONSTRUCTED',
CHALLENGE_CONSTRUCTED = 'CHALLENGE_CONSTRUCTED',
TUTORIAL = 'TUTORIAL',
PRACTICE = 'PRACTICE',
RANKED_DISCOVERY = 'RANKED_DISCOVERY',
CONQUEST_CONSTRUCTED = 'CONQUEST_CONSTRUCTED',
CONQUEST_DISCOVERY = 'CONQUEST_DISCOVERY',
WARM_UP = 'WARM_UP',
CHALLENGE_DISCOVERY = 'CHALLENGE_DISCOVERY'
}
export enum MatchStatus {
UNKNOWN = 'UNKNOWN',
COMPLETED = 'COMPLETED',
ABANDONED = 'ABANDONED',
FORFEITED = 'FORFEITED',
IN_PROGRESS = 'IN_PROGRESS',
CRASHED = 'CRASHED'
}
export enum RewardType {
EXP = 'EXP',
CARD = 'CARD',
RANK = 'RANK',
PRISM = 'PRISM',
HERO = 'HERO',
HERO_SKIN = 'HERO_SKIN',
DECK = 'DECK',
CONQUEST_POINTS = 'CONQUEST_POINTS'
}
export enum DeckType {
RANDOM = 'RANDOM',
CUSTOM = 'CUSTOM',
LOCKED_STARTER = 'LOCKED_STARTER',
UNLOCKED_STARTER = 'UNLOCKED_STARTER'
}
export enum ConquestStatus {
UNKNOWN = 'UNKNOWN',
IN_PROGRESS = 'IN_PROGRESS',
REWARDS_PENDING = 'REWARDS_PENDING',
COMPLETED = 'COMPLETED'
}
export enum ConquestMatchResult {
UNKNOWN = 'UNKNOWN',
WIN = 'WIN',
LOSS = 'LOSS',
DRAW = 'DRAW'
}
export enum SortOrder {
DESC = 'DESC',
ASC = 'ASC'
}
export enum BannerType {
INFO = 'INFO',
WARNING = 'WARNING',
EMERGENCY = 'EMERGENCY'
}
export enum NotificationType {
LEADERBOARD_REWARD = 'LEADERBOARD_REWARD',
CONQUEST_V2_REWARD = 'CONQUEST_V2_REWARD'
}
export interface Version {
webrpcVersion: string
schemaVersion: string
schemaHash: string
appVersion: string
}
export interface Account {
address: string
name: string
locale: string
createdAt: string
updatedAt: string
experience: number
warmUps: number
level: number
levelUpXP: number
stats?: AccountStats
region?: string
tagArtID?: string
crystalID?: number
settings?: AccountSettings
invitedBy?: string
}
export interface AccountStats {
rankedConstructed?: AccountStat
rankedDiscovery?: AccountStat
conquestConstructed?: AccountStat
conquestDiscovery?: AccountStat
}
export interface AccountSettings {
hidePlayerNames?: boolean
suspended?: boolean
requestMoreInvites?: boolean
renameLockedUntil?: string
starterDeckMigration?: boolean
spectateCode?: string
spectateCodeExpiresAt?: string
twitchProfile?: string
}
export interface AccountStat {
accountAddress: string
gameMode: GameMode
winCount: number
lossCount: number
tieCount: number
forfeitCount: number
abandonCount: number
winRatio: number
gamesPlayed: number
score: number
createdAt: string
rank?: number
rankProgress?: number
playerRank: PlayerRank
playerRankScore: number
winStreak: number
lossStreak: number
season?: number
}
export interface SetInvitedByRequest {
address: string
invitedBy: string
}
export interface Item {
id: number
accountAddress: string
contractAddress?: string
itemType: ItemType
tokenID: number
balance: string
lastUpdateID: number
updatedAt?: string
createdAt?: string
}
export interface ItemSummary {
id: number
accountAddress: string
itemType: ItemType
totalBalance: string
updatedAt?: string
createdAt?: string
}
export interface ItemSupply {
itemID: number
itemType: ItemType
totalBalance: string
}
export interface GetFeedRequest {
accountAddress: string
types?: Array<FeedEventType>
}
export interface FeedEvent {
id: number
accountAddress: string
type: FeedEventType
createdAt: string
match: Match
level?: number
playerRank?: PlayerRank
tokenIds?: Array<number>
cards: Array<Card>
heroes: Array<Hero>
gameMode?: GameMode
leaderboardRank?: number
conquestV2Reward?: number
conquestV2TreasureLevel?: number
}
export interface CardImageURL {
small: string
medium: string
large: string
}
export interface Card {
id: number
name: string
description: string
asset: string
class: CardClass
element: CardElement
type: CardType
manaCost: number
power: number
health: number
attachedSpellID?: number
keywords: Array<string>
status: CardStatus
imageURL: CardImageURL
itemType: ItemType
silverCardTokenId?: number
goldCardTokenId?: number
}
export interface Sticker {
id: number
name: string
requiredPoints: number
asset: string
tokenId: number
season: number
}
export interface StickerOwnershipResponse {
stickerBalances: {[key: number]: BalanceTuple}
}
export interface LevelsPerSeason {
address: string
inviter_address: string
season: number
levels: number
pointsCarried: number
pointsSpent: number
}
export interface FriendPoints {
account?: Account
season: number
levels: number
points: number
pointsSpent: number
}
export interface CardSearchCriteria {
ids?: Array<number>
cardClass?: Array<CardClass>
cardType?: CardType
cardElement?: Array<CardElement>
searchText?: string
cardManaCost?: Array<string>
itemType?: ItemType
ownedCards?: boolean
accountAddress?: string
includeTokens?: boolean
}
export interface GetCardsRequest {
ids: Array<number>
includeUserBalances: boolean
accountAddress?: string
}
export interface SearchCardsRequest {
criteria: CardSearchCriteria
includeUserBalances: boolean
contractQuery: boolean
}
export interface CardWithBalance {
card: Card
balance: string
balanceByType: {[key: string]: BalanceTuple}
createdAt: string
}
export interface BalanceTuple {
balance: string
}
export interface CardOwnershipResponse {
cardBalances: {[key: number]: {[key: string]: BalanceTuple}}
lockedCards: number
lockedCardsByClass: {[key: string]: number}
lockedCardsByFrame: {[key: string]: number}
lockedCardsByClassAndFrame: {[key: string]: {[key: string]: number}}
unlockedCards: number
unlockedCardsByClass: {[key: string]: number}
unlockedCardsByFrame: {[key: string]: number}
unlockedCardsByClassAndFrame: {[key: string]: {[key: string]: number}}
pendingCards: number
pendingCardsByClass: {[key: string]: number}
pendingCardsByFrame: {[key: string]: number}
pendingCardsByClassAndFrame: {[key: string]: {[key: string]: number}}
}
export interface PendingCardsResponse {
cards: Array<Card>
tokenIDs: Array<number>
mintAt: string
}
export interface WeeklyGolds {
startAt: string
endAt: string
tokenId: number
totalSupply: number
}
export interface Deck {
uuid: string
accountAddress: string
name: string
class: DeckClass
deckString: string
cardIds: Array<number>
art: string
createdAt: string
updatedAt: string
isFavorite: boolean
favoritedAt: string
deckType: DeckType
isNew: boolean
conquestV2Points: number
}
export interface CheckDeckResponse {
containsInvalid: boolean
accountOwnsAllCards: boolean
unlockedClass: boolean
}
export interface CreateDeckRequest {
name: string
class?: DeckClass
cardIds: Array<number>
art?: string
}
export interface UpdateDeckRequestDeck {
deckString: string
name: string
class: DeckClass
art?: string
}
export interface UpdateDeckRequest {
uuid?: string
deckString?: string
deck: UpdateDeckRequestDeck
}
export interface DeckRequest {
uuid?: string
deckString?: string
}
export interface CheckDeckRequest {
accountAddress?: string
uuid?: string
deckString?: string
contractQuery: boolean
}
export interface SearchDecksRequest {
deckString?: string
name?: string
class?: DeckClass
}
export interface DeckRank {
deckString: string
class: DeckClass
cardIds: Array<number>
winCount: number
lossCount: number
forfeitCount: number
abandonCount: number
tieCount: number
winRatio: number
gamesPlayed: number
score: number
highestPlayerAddress: string
}
export interface SearchDeckRanksRequest {
deckString?: string
classes?: Array<DeckClass>
withCards?: Array<number>
}
export interface ListDeckRanksRequest {
class?: DeckClass
}
export interface DeckRankAccount {
deckRank: DeckRank
highestPlayer: Account
}
export interface Match {
id: number
status: MatchStatus
mode: GameMode
player1: MatchPlayer
player2: MatchPlayer
initPlayer1DeckNumCards: number
initPlayer2DeckNumCards: number
player1DeckClass?: DeckClass
player2DeckClass?: DeckClass
winningPlayer?: number
turnNonce: number
player1Moves: number
player2Moves: number
metrics: {[key: string]: any}
startedAt?: string
endedAt?: string
updatedAt?: string
createdAt?: string
replayID: string
}
export interface MatchPlayer {
address: string
name: string
region?: string
tagArtID?: string
crystalID?: number
deckString: string
initDeckString: string
deckClass: DeckClass
playerSessionId?: string
isBot: boolean
}
export interface RankData {
rank: PlayerRank
rankPoints: number
requiredRankPoints: number
eloScore: number
rankPosition: number
eloAbove: number
eloBelow: number
}
export interface RewardRank {
beforeMatch: RankData
afterMatch: RankData
}
export interface RewardExp {
amount: number
description: string
currentLevel: number
requiredExp: number
}
export interface RewardCard {
amount: number
description: string
card: Card
item?: Item
}
export interface RewardHero {
hero: Hero
deckClass: DeckClass
}
export interface RewardHeroSkin {
hero: Hero
deckClass: DeckClass
tokenId: number
}
export interface RewardDeck {
deckClass: DeckClass
tokenIds: Array<number>
}
export interface ConquestV2TreasureProgress {
treasureLevel: number
treasurePoints: number
treasurePointsRequired: number
}
export interface RewardConquestV2TreasureProgress {
beforeMatch: ConquestV2TreasureProgress
afterMatch: ConquestV2TreasureProgress
}
export interface Reward {
accountAddress: string
type: RewardType
rank?: RewardRank
exp?: RewardExp
card?: RewardCard
hero?: RewardHero
heroSkin?: RewardHeroSkin
deck?: RewardDeck
conquestV2TreasureProgress?: RewardConquestV2TreasureProgress
}
export interface ListLeaderboardRequest {
gameMode?: GameMode
region?: string
playerRank?: PlayerRank
playerNamePrefix?: string
season?: number
}
export interface AccountLeaderboardRequest {
gameMode: GameMode
accountAddress?: string
season?: number
}
export interface LeaderboardEntry {
account: Account
accountStat: AccountStat
rank: number
rankedSilverReward: number
rankedTicketReward: number
}
export interface ListMatchesRequest {
accountAddress?: string
}
export interface GameClientFeedback {
sentiment: string
timestamp: string
dump: {[key: string]: any}
screenshotImageURI: string
}
export interface Conquest {
id: number
status: ConquestStatus
accountAddress: string
nonce: number
mode: GameMode
hero: Hero
deckClass?: DeckClass
matchProgress: {[key: number]: ConquestMatchResult}
createdAt?: string
endedAt?: string
}
export interface ConquestStats {
discoveryTicketsUsed: number
constructedTicketsUsed: number
discoveryMatchesPlayed: number
constructedMatchesPlayed: number
discoveryWinRate: number
constructedWinRate: number
discoverySilverCardsWon: number
constructedSilverCardsWon: number
discoveryGoldCardsWon: number
constructedGoldCardsWon: number
firstConquestMatchPlayed: string
}
export interface ConquestPoints {
address: string
eventID: number
currentPoints: number
totalPoints: number
}
export interface Page {
pageSize?: number
before?: string
hasBefore?: boolean
after?: string
hasAfter?: boolean
sort?: Array<SortBy>
}
export interface SortBy {
column: string
order: SortOrder
}
export interface TwitchFeaturedStreamer {
username: string
}
export interface Banner {
order: number
type: BannerType
color?: string
msg: string
dismissable: boolean
id: number
link?: string
startAt?: string
endAt?: string
}
export interface BannersRequest {
order: number
bannerType: BannerType
msg: string
dismissable: boolean
color?: string
link?: string
startAt?: string
endAt?: string
}
export interface TwitchInfoResponse {
streamers_online: number
vods_available: number
streams: Array<TwitchStream>
}
export interface TwitchStream {
id: string
user_id: string
user_login: string
user_name: string
game_id: string
game_name: string
type: string
title: string
viewer_count: number
started_at: string
language: string
thumbnail_url: string
tag_ids: Array<string>
is_mature: boolean
}
export interface DiscordInfoResponse {
users_online: number
instant_invite_url: string
}
export interface GameModesStatus {
tutorial: boolean
practice: boolean
warmUp: boolean
rankedConstructed: boolean
rankedDiscovery: boolean
conquestConstructed: boolean
conquestDiscovery: boolean
challengeConstructed: boolean
challengeDiscovery: boolean
}
export interface GameModeStatus {
gameMode: GameMode
enabled: boolean
}
export interface GameModeStatusHistory {
id: number
accountAddress: string
gameMode: GameMode
enabled: boolean
createdAt: string
}
export interface ConquestV2PoolConfigData {
maxPoolCeiling?: number
poolCeiling: number
poolFloor: number
topWeightUnitPrice: number
bottomWeightUnitPrice: number
}
export interface ConquestV2PoolConfig {
default: ConquestV2PoolConfigData
settings: ConquestV2PoolConfigData
final: ConquestV2PoolConfigData
}
export interface ConquestV2TreasureLevelSummary {
level: number
numberOfPlayers: number
totalWeight: number
}
export interface ConquestV2Summary {
pool: number
totalWeight: number
weightUnitPrice: number
treasureLevels: Array<ConquestV2TreasureLevelSummary>
}
export interface ConquestV2AccountTreasureProgress {
accountAddress: string
accountName: string
progress: ConquestV2TreasureProgress
}
export interface Notification {
id: number
accountAddress: string
type: NotificationType
leaderboardReward?: NotificationLeaderboardReward
conquestV2Reward?: NotificationConquestV2Reward
}
export interface NotificationLeaderboardReward {
}
export interface NotificationConquestV2Reward {
season: number
week: number
treasureLevel: number
amountUSDC: number
}
export interface SkyWeaverAPI {
getSession(headers?: object): Promise<GetSessionReturn>
getAccount(args: GetAccountArgs, headers?: object): Promise<GetAccountReturn>
getAccountByUsername(args: GetAccountByUsernameArgs, headers?: object): Promise<GetAccountByUsernameReturn>
getAccountStats(args: GetAccountStatsArgs, headers?: object): Promise<GetAccountStatsReturn>
accountExists(args: AccountExistsArgs, headers?: object): Promise<AccountExistsReturn>
accountExistsByName(args: AccountExistsByNameArgs, headers?: object): Promise<AccountExistsByNameReturn>
updateAccount(args: UpdateAccountArgs, headers?: object): Promise<UpdateAccountReturn>
getPrivateSpectateCode(args: GetPrivateSpectateCodeArgs, headers?: object): Promise<GetPrivateSpectateCodeReturn>
listNotifications(headers?: object): Promise<ListNotificationsReturn>
setNotificationsAsSeen(args: SetNotificationsAsSeenArgs, headers?: object): Promise<SetNotificationsAsSeenReturn>
getFriendPoints(args: GetFriendPointsArgs, headers?: object): Promise<GetFriendPointsReturn>
getFriendPointsBySeason(args: GetFriendPointsBySeasonArgs, headers?: object): Promise<GetFriendPointsBySeasonReturn>
getPointsGifted(args: GetPointsGiftedArgs, headers?: object): Promise<GetPointsGiftedReturn>
getStickers(headers?: object): Promise<GetStickersReturn>
getStickersBySeason(args: GetStickersBySeasonArgs, headers?: object): Promise<GetStickersBySeasonReturn>
getStickerOwnership(args: GetStickerOwnershipArgs, headers?: object): Promise<GetStickerOwnershipReturn>
getFeed(args: GetFeedArgs, headers?: object): Promise<GetFeedReturn>
getItemSummary(args: GetItemSummaryArgs, headers?: object): Promise<GetItemSummaryReturn>
getItemSupply(args: GetItemSupplyArgs, headers?: object): Promise<GetItemSupplyReturn>
getBatchItemSupply(args: GetBatchItemSupplyArgs, headers?: object): Promise<GetBatchItemSupplyReturn>
getItemSuppliesByType(args: GetItemSuppliesByTypeArgs, headers?: object): Promise<GetItemSuppliesByTypeReturn>
getItemOwnershipByType(args: GetItemOwnershipByTypeArgs, headers?: object): Promise<GetItemOwnershipByTypeReturn>
getCardLibrary(args: GetCardLibraryArgs, headers?: object): Promise<GetCardLibraryReturn>
getCardsByID(args: GetCardsByIDArgs, headers?: object): Promise<GetCardsByIDReturn>
getCardsByDeckString(args: GetCardsByDeckStringArgs, headers?: object): Promise<GetCardsByDeckStringReturn>
searchCards(args: SearchCardsArgs, headers?: object): Promise<SearchCardsReturn>
getCardOwnership(args: GetCardOwnershipArgs, headers?: object): Promise<GetCardOwnershipReturn>
getPendingCards(headers?: object): Promise<GetPendingCardsReturn>
listDecks(args: ListDecksArgs, headers?: object): Promise<ListDecksReturn>
searchDecks(args: SearchDecksArgs, headers?: object): Promise<SearchDecksReturn>
createDeck(args: CreateDeckArgs, headers?: object): Promise<CreateDeckReturn>
updateDeck(args: UpdateDeckArgs, headers?: object): Promise<UpdateDeckReturn>
favoriteDeck(args: FavoriteDeckArgs, headers?: object): Promise<FavoriteDeckReturn>
unfavoriteDeck(args: UnfavoriteDeckArgs, headers?: object): Promise<UnfavoriteDeckReturn>
toggleDeckFavorite(args: ToggleDeckFavoriteArgs, headers?: object): Promise<ToggleDeckFavoriteReturn>
getDeck(args: GetDeckArgs, headers?: object): Promise<GetDeckReturn>
checkDeck(args: CheckDeckArgs, headers?: object): Promise<CheckDeckReturn>
deleteDeck(args: DeleteDeckArgs, headers?: object): Promise<DeleteDeckReturn>
searchDeckRanks(args: SearchDeckRanksArgs, headers?: object): Promise<SearchDeckRanksReturn>
listDeckRanks(args: ListDeckRanksArgs, headers?: object): Promise<ListDeckRanksReturn>
markDeckNotNew(args: MarkDeckNotNewArgs, headers?: object): Promise<MarkDeckNotNewReturn>
listLeaderboard(args: ListLeaderboardArgs, headers?: object): Promise<ListLeaderboardReturn>
listMatches(args: ListMatchesArgs, headers?: object): Promise<ListMatchesReturn>
getMatch(args: GetMatchArgs, headers?: object): Promise<GetMatchReturn>
getCurrentSeason(headers?: object): Promise<GetCurrentSeasonReturn>
getNextRewardsTime(headers?: object): Promise<GetNextRewardsTimeReturn>
getNextSeasonTime(headers?: object): Promise<GetNextSeasonTimeReturn>
getCurrentSeasonStartTime(headers?: object): Promise<GetCurrentSeasonStartTimeReturn>
accountLeaderboard(args: AccountLeaderboardArgs, headers?: object): Promise<AccountLeaderboardReturn>
getMatchArchiveRecordsURI(args: GetMatchArchiveRecordsURIArgs, headers?: object): Promise<GetMatchArchiveRecordsURIReturn>
getMatchLiveRecordsURI(args: GetMatchLiveRecordsURIArgs, headers?: object): Promise<GetMatchLiveRecordsURIReturn>
conquestStatus(headers?: object): Promise<ConquestStatusReturn>
conquestStats(headers?: object): Promise<ConquestStatsReturn>
conquestRewards(headers?: object): Promise<ConquestRewardsReturn>
conquestPoints(headers?: object): Promise<ConquestPointsReturn>
conquestV2Pool(headers?: object): Promise<ConquestV2PoolReturn>
conquestV2Progress(headers?: object): Promise<ConquestV2ProgressReturn>
heroUnlockLevels(headers?: object): Promise<HeroUnlockLevelsReturn>
deckClassUnlockLevels(headers?: object): Promise<DeckClassUnlockLevelsReturn>
availableXPBonuses(headers?: object): Promise<AvailableXPBonusesReturn>
getDiscordInfo(headers?: object): Promise<GetDiscordInfoReturn>
getTwitchInfo(headers?: object): Promise<GetTwitchInfoReturn>
getFeaturedStreamers(headers?: object): Promise<GetFeaturedStreamersReturn>
getBanners(headers?: object): Promise<GetBannersReturn>
ping(headers?: object): Promise<PingReturn>
version(headers?: object): Promise<VersionReturn>
}
export interface GetAuthTokenArgs {
ethAuthProofString: string
}
export interface GetAuthTokenReturn {
status: boolean
jwtToken: string
address: string
account?: Account
}
export interface GetSessionArgs {
}
export interface GetSessionReturn {
address: string
account?: Account
}
export interface MigrateAccountReturn {
ok: boolean
}
export interface RegisterAccountArgs {
account: Account
captcha: string
}
export interface RegisterAccountReturn {
status: boolean
account: Account
}
export interface GetAccountArgs {
address: string
}
export interface GetAccountReturn {
account: Account
}
export interface GetAccountByUsernameArgs {
username: string
}