@metatrongg/sdk 0.8.0-dev.8f88ba8 → 0.8.0-dev.91af108
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/browser/index.d.ts +916 -27
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +12220 -5209
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +971 -27
- package/dist/node/index.js +1 -1
- package/dist/webhook/express.js +1 -1
- package/dist/webhook/fastify.js +1 -1
- package/dist/webhook/hono.js +1 -1
- package/dist/webhook/index.js +1 -1
- package/package.json +2 -1
package/dist/node/index.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ type Username = string;
|
|
|
114
114
|
type DisplayName = string | null;
|
|
115
115
|
type Bio = string | null;
|
|
116
116
|
type WebsiteUrl = string | null;
|
|
117
|
-
type BannerVariant = "yellow" | "green" | "blue" | "white" | "black";
|
|
117
|
+
type BannerVariant = "yellow" | "green" | "blue" | "white" | "black" | "red";
|
|
118
118
|
type AdminRole = "super-admin" | "admin" | "read-only" | null;
|
|
119
119
|
type PresenceStatusMode = "auto" | "online" | "offline";
|
|
120
120
|
type PlatformEnvironment = "development" | "production";
|
|
@@ -129,7 +129,7 @@ type OauthAuthorizationServerMetadata = {
|
|
|
129
129
|
grant_types_supported: Array<"authorization_code" | "refresh_token" | "client_credentials">;
|
|
130
130
|
code_challenge_methods_supported: Array<"S256">;
|
|
131
131
|
token_endpoint_auth_methods_supported: Array<"client_secret_basic" | "client_secret_post" | "none">;
|
|
132
|
-
scopes_supported: Array<"openid" | "profile" | "payments:charge" | "inventory:read" | "developer:read" | "developer:apps" | "developer:pages">;
|
|
132
|
+
scopes_supported: Array<"openid" | "profile" | "payments:charge" | "inventory:read" | "social:read" | "developer:read" | "developer:apps" | "developer:pages">;
|
|
133
133
|
};
|
|
134
134
|
type OauthClientRegistrationResponse = {
|
|
135
135
|
client_id: string;
|
|
@@ -169,7 +169,9 @@ type OauthErrorResponse = {
|
|
|
169
169
|
type OauthUserInfoResponse = {
|
|
170
170
|
sub: string;
|
|
171
171
|
name: string | null;
|
|
172
|
+
preferred_username: string | null;
|
|
172
173
|
picture: string | null;
|
|
174
|
+
wallet_address: string | null;
|
|
173
175
|
};
|
|
174
176
|
type OauthPaymentChargeResponse = ({
|
|
175
177
|
status: "completed";
|
|
@@ -288,6 +290,7 @@ type OauthPaymentIntentContext = {
|
|
|
288
290
|
studioXHandle: string | null;
|
|
289
291
|
};
|
|
290
292
|
} | null;
|
|
293
|
+
environment: "development" | "production";
|
|
291
294
|
};
|
|
292
295
|
type OauthPaymentIntentSignResponse = {
|
|
293
296
|
chain: string;
|
|
@@ -376,9 +379,16 @@ type PublicAppPage = {
|
|
|
376
379
|
chapters: AppPageChapters;
|
|
377
380
|
links: AppPageLinks;
|
|
378
381
|
studio: PublicAppPageStudio;
|
|
382
|
+
platforms: AppPagePlatforms;
|
|
383
|
+
gameType: AppPageGameType;
|
|
384
|
+
ageRating: AppPageAgeRating;
|
|
385
|
+
languages: AppPageLanguages;
|
|
386
|
+
releaseStatus: AppPageReleaseStatus;
|
|
387
|
+
paymentsMode: AppPagePaymentsMode;
|
|
379
388
|
oauthScopes: Array<string>;
|
|
380
389
|
chains: Array<string>;
|
|
381
390
|
publishedAt: string;
|
|
391
|
+
updatedAt: string;
|
|
382
392
|
};
|
|
383
393
|
type AppPageCategories = Array<"adventure" | "battle_royale" | "board" | "cards" | "casino" | "casual" | "fighting" | "idle" | "mmo" | "moba" | "platformer" | "prediction" | "puzzle" | "racing" | "rhythm" | "roguelike" | "rpg" | "rts" | "sandbox" | "shooter" | "simulation" | "sports" | "strategy" | "survival" | "tools" | "tower_defense" | "visual_novel" | "other">;
|
|
384
394
|
type AppPageTagline = string;
|
|
@@ -401,12 +411,124 @@ type AppPageLink = {
|
|
|
401
411
|
order: number;
|
|
402
412
|
};
|
|
403
413
|
type PublicAppPageStudio = {
|
|
414
|
+
ownerUserId: string | null;
|
|
404
415
|
name: string | null;
|
|
405
416
|
logoUrl: string | null;
|
|
406
417
|
websiteUrl: string | null;
|
|
407
418
|
xHandle: string | null;
|
|
408
419
|
githubUrl: string | null;
|
|
409
420
|
};
|
|
421
|
+
type AppPagePlatforms = Array<"web" | "ios" | "android" | "pc" | "playstation" | "xbox" | "switch">;
|
|
422
|
+
type AppPageGameType = "single_player" | "multiplayer" | "both" | null;
|
|
423
|
+
type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
|
|
424
|
+
type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
|
|
425
|
+
type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
|
|
426
|
+
type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
|
|
427
|
+
type PublicBipPage = {
|
|
428
|
+
appId: string;
|
|
429
|
+
slug: AppPageSlug;
|
|
430
|
+
appName: string;
|
|
431
|
+
appLogoUrl: string | null;
|
|
432
|
+
categories: AppPageCategories;
|
|
433
|
+
tagline: AppPageTagline;
|
|
434
|
+
bannerUrl: string | null;
|
|
435
|
+
discordUrl: string | null;
|
|
436
|
+
twitterUrl: string | null;
|
|
437
|
+
redditUrl: string | null;
|
|
438
|
+
telegramUrl: string | null;
|
|
439
|
+
gallery: AppPageGallery;
|
|
440
|
+
chapters: AppPageChapters;
|
|
441
|
+
links: AppPageLinks;
|
|
442
|
+
studio: PublicAppPageStudio;
|
|
443
|
+
platforms: AppPagePlatforms;
|
|
444
|
+
gameType: AppPageGameType;
|
|
445
|
+
ageRating: AppPageAgeRating;
|
|
446
|
+
languages: AppPageLanguages;
|
|
447
|
+
releaseStatus: AppPageReleaseStatus;
|
|
448
|
+
publishedAt: string;
|
|
449
|
+
updatedAt: string;
|
|
450
|
+
};
|
|
451
|
+
type BipUpdateListResponse = {
|
|
452
|
+
updates: Array<BipUpdate>;
|
|
453
|
+
total: number;
|
|
454
|
+
hasMore: boolean;
|
|
455
|
+
};
|
|
456
|
+
type BipUpdate = {
|
|
457
|
+
id: string;
|
|
458
|
+
appId: string;
|
|
459
|
+
body: BipUpdateBody;
|
|
460
|
+
attachments: BipUpdateAttachments;
|
|
461
|
+
reactions: BipUpdateReactionCounts;
|
|
462
|
+
commentCount: number;
|
|
463
|
+
createdAt: string;
|
|
464
|
+
updatedAt: string;
|
|
465
|
+
};
|
|
466
|
+
type BipUpdateBody = string;
|
|
467
|
+
type BipUpdateAttachments = Array<BipUpdateAttachment>;
|
|
468
|
+
type BipUpdateAttachment = {
|
|
469
|
+
url: string;
|
|
470
|
+
kind: "image" | "video";
|
|
471
|
+
order: number;
|
|
472
|
+
};
|
|
473
|
+
type BipUpdateReactionCounts = {
|
|
474
|
+
up: number;
|
|
475
|
+
down: number;
|
|
476
|
+
};
|
|
477
|
+
type BipUpdateCommentListResponse = {
|
|
478
|
+
comments: Array<BipUpdateComment>;
|
|
479
|
+
total: number;
|
|
480
|
+
hasMore: boolean;
|
|
481
|
+
};
|
|
482
|
+
type BipUpdateComment = {
|
|
483
|
+
id: string;
|
|
484
|
+
body: BipUpdateCommentBody;
|
|
485
|
+
author: ReviewAuthor;
|
|
486
|
+
createdAt: string;
|
|
487
|
+
};
|
|
488
|
+
type BipUpdateCommentBody = string;
|
|
489
|
+
type ReviewAuthor = {
|
|
490
|
+
userId: string;
|
|
491
|
+
handle: string | null;
|
|
492
|
+
name: string | null;
|
|
493
|
+
avatarUrl: string | null;
|
|
494
|
+
};
|
|
495
|
+
type MyBipUpdateReactionsResponse = {
|
|
496
|
+
reactions: Array<MyBipUpdateReaction>;
|
|
497
|
+
};
|
|
498
|
+
type MyBipUpdateReaction = {
|
|
499
|
+
updateId: string;
|
|
500
|
+
vote: "up" | "down";
|
|
501
|
+
};
|
|
502
|
+
type SetBipUpdateReactionResponse = {
|
|
503
|
+
reactions: BipUpdateReactionCounts;
|
|
504
|
+
vote: BipUpdateVote;
|
|
505
|
+
};
|
|
506
|
+
type BipUpdateVote = "up" | "down" | null;
|
|
507
|
+
type SetBipUpdateReactionRequest = {
|
|
508
|
+
vote: BipUpdateVote;
|
|
509
|
+
};
|
|
510
|
+
type CreateBipUpdateCommentResponse = {
|
|
511
|
+
comment: BipUpdateComment;
|
|
512
|
+
commentCount: number;
|
|
513
|
+
};
|
|
514
|
+
type DeleteBipUpdateCommentResponse = {
|
|
515
|
+
commentCount: number;
|
|
516
|
+
};
|
|
517
|
+
type CreateBipUpdateRequest = {
|
|
518
|
+
body: BipUpdateBody;
|
|
519
|
+
attachments?: BipUpdateAttachments;
|
|
520
|
+
};
|
|
521
|
+
type UpdateBipUpdateRequest = {
|
|
522
|
+
body?: BipUpdateBody;
|
|
523
|
+
attachments?: BipUpdateAttachments;
|
|
524
|
+
};
|
|
525
|
+
type DeleteBipUpdateResponse = {
|
|
526
|
+
deleted: true;
|
|
527
|
+
};
|
|
528
|
+
type BipUpdateMediaUploadResponse = {
|
|
529
|
+
url: string;
|
|
530
|
+
kind: "image" | "video";
|
|
531
|
+
};
|
|
410
532
|
type ReviewListResponse = {
|
|
411
533
|
aggregate: ReviewAggregate;
|
|
412
534
|
reviews: Array<Review>;
|
|
@@ -414,38 +536,43 @@ type ReviewListResponse = {
|
|
|
414
536
|
hasMore: boolean;
|
|
415
537
|
};
|
|
416
538
|
type ReviewAggregate = {
|
|
417
|
-
average: number | null;
|
|
418
539
|
count: number;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
1: number;
|
|
423
|
-
2: number;
|
|
424
|
-
3: number;
|
|
425
|
-
4: number;
|
|
426
|
-
5: number;
|
|
540
|
+
recommendedCount: number;
|
|
541
|
+
recommendedPct: number | null;
|
|
542
|
+
summaryLabel: ReviewSummaryLabel;
|
|
427
543
|
};
|
|
544
|
+
type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
|
|
428
545
|
type Review = {
|
|
429
546
|
id: string;
|
|
430
|
-
|
|
547
|
+
recommended: ReviewRecommended;
|
|
431
548
|
body: ReviewBody;
|
|
549
|
+
reactions: ReviewReactionCounts;
|
|
550
|
+
tippedCents: number;
|
|
551
|
+
commentCount: number;
|
|
432
552
|
author: ReviewAuthor;
|
|
553
|
+
authorStats: ReviewerStats;
|
|
433
554
|
developerReply: ReviewReply;
|
|
434
555
|
createdAt: string;
|
|
435
556
|
updatedAt: string;
|
|
436
557
|
};
|
|
437
|
-
type
|
|
558
|
+
type ReviewRecommended = boolean;
|
|
438
559
|
type ReviewBody = string;
|
|
439
|
-
type
|
|
440
|
-
|
|
441
|
-
|
|
560
|
+
type ReviewReactionCounts = {
|
|
561
|
+
helpful: number;
|
|
562
|
+
unhelpful: number;
|
|
563
|
+
funny: number;
|
|
564
|
+
};
|
|
565
|
+
type ReviewerStats = {
|
|
566
|
+
playtimeSecondsThisGame: number;
|
|
567
|
+
gamesPlayed: number;
|
|
568
|
+
reviewsWritten: number;
|
|
442
569
|
};
|
|
443
570
|
type ReviewReply = {
|
|
444
571
|
body: ReviewReplyBody;
|
|
445
572
|
repliedAt: string;
|
|
446
573
|
} | null;
|
|
447
574
|
type ReviewReplyBody = string;
|
|
448
|
-
type ReviewSort = "newest" | "oldest" | "
|
|
575
|
+
type ReviewSort = "newest" | "oldest" | "helpful";
|
|
449
576
|
type MyReviewResponse = {
|
|
450
577
|
eligible: boolean;
|
|
451
578
|
eligibleVia: ReviewEligibilityReason;
|
|
@@ -455,15 +582,67 @@ type MyReviewResponse = {
|
|
|
455
582
|
type ReviewEligibilityReason = "payment" | "reward" | null;
|
|
456
583
|
type OwnReview = {
|
|
457
584
|
id: string;
|
|
458
|
-
|
|
585
|
+
recommended: ReviewRecommended;
|
|
459
586
|
body: ReviewBody;
|
|
460
587
|
createdAt: string;
|
|
461
588
|
updatedAt: string;
|
|
462
589
|
} | null;
|
|
463
590
|
type UpsertReviewRequest = {
|
|
464
|
-
|
|
591
|
+
recommended: ReviewRecommended;
|
|
465
592
|
body: ReviewBody;
|
|
466
593
|
};
|
|
594
|
+
type MyReviewReactionsResponse = {
|
|
595
|
+
reactions: Array<MyReviewReaction>;
|
|
596
|
+
};
|
|
597
|
+
type MyReviewReaction = {
|
|
598
|
+
reviewId: string;
|
|
599
|
+
vote: ReviewVote;
|
|
600
|
+
funny: boolean;
|
|
601
|
+
};
|
|
602
|
+
type ReviewVote = "helpful" | "unhelpful" | null;
|
|
603
|
+
type SetReviewReactionResponse = {
|
|
604
|
+
reactions: ReviewReactionCounts;
|
|
605
|
+
vote: ReviewVote;
|
|
606
|
+
funny: boolean;
|
|
607
|
+
};
|
|
608
|
+
type SetReviewReactionRequest = {
|
|
609
|
+
vote: ReviewVote;
|
|
610
|
+
funny: boolean;
|
|
611
|
+
};
|
|
612
|
+
type TipReviewResponse = {
|
|
613
|
+
status: "completed";
|
|
614
|
+
amountCents: number;
|
|
615
|
+
balanceCents: number;
|
|
616
|
+
tippedCents: number;
|
|
617
|
+
};
|
|
618
|
+
type TipReviewRequest = {
|
|
619
|
+
amountCents: number;
|
|
620
|
+
note?: string;
|
|
621
|
+
challengeId?: string;
|
|
622
|
+
signature?: string;
|
|
623
|
+
};
|
|
624
|
+
type ReviewCommentListResponse = {
|
|
625
|
+
comments: Array<ReviewComment>;
|
|
626
|
+
total: number;
|
|
627
|
+
hasMore: boolean;
|
|
628
|
+
};
|
|
629
|
+
type ReviewComment = {
|
|
630
|
+
id: string;
|
|
631
|
+
body: ReviewCommentBody;
|
|
632
|
+
author: ReviewAuthor;
|
|
633
|
+
createdAt: string;
|
|
634
|
+
};
|
|
635
|
+
type ReviewCommentBody = string;
|
|
636
|
+
type CreateReviewCommentResponse = {
|
|
637
|
+
comment: ReviewComment;
|
|
638
|
+
commentCount: number;
|
|
639
|
+
};
|
|
640
|
+
type CreateReviewCommentRequest = {
|
|
641
|
+
body: ReviewCommentBody;
|
|
642
|
+
};
|
|
643
|
+
type DeleteReviewCommentResponse = {
|
|
644
|
+
commentCount: number;
|
|
645
|
+
};
|
|
467
646
|
type ReviewReplyResponse = {
|
|
468
647
|
developerReply: ReviewReply;
|
|
469
648
|
};
|
|
@@ -568,8 +747,12 @@ type ActivityRow = ({
|
|
|
568
747
|
} & ActivityRowTronPot) | ({
|
|
569
748
|
kind: "tron_cashout";
|
|
570
749
|
} & ActivityRowTronCashout) | ({
|
|
750
|
+
kind: "tron_transfer";
|
|
751
|
+
} & ActivityRowTronTransfer) | ({
|
|
571
752
|
kind: "referral_earning";
|
|
572
|
-
} & ActivityRowReferralEarning)
|
|
753
|
+
} & ActivityRowReferralEarning) | ({
|
|
754
|
+
kind: "nft_charge";
|
|
755
|
+
} & ActivityRowNftCharge);
|
|
573
756
|
type ActivityRowPayment = {
|
|
574
757
|
kind: "payment";
|
|
575
758
|
groupId: string | null;
|
|
@@ -815,6 +998,8 @@ type ActivityRowTronPot = {
|
|
|
815
998
|
role: "incoming" | "outgoing";
|
|
816
999
|
leg: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
817
1000
|
amountCents: number;
|
|
1001
|
+
usdCents: number;
|
|
1002
|
+
status: "settled";
|
|
818
1003
|
app: {
|
|
819
1004
|
id: string;
|
|
820
1005
|
name: string;
|
|
@@ -822,8 +1007,16 @@ type ActivityRowTronPot = {
|
|
|
822
1007
|
slug: string | null;
|
|
823
1008
|
bannerUrl: string | null;
|
|
824
1009
|
} | null;
|
|
1010
|
+
involvedUsers?: Array<ActivityTronInvolvedUser> | null;
|
|
825
1011
|
metadata?: PaymentMetadata | null;
|
|
826
1012
|
};
|
|
1013
|
+
type ActivityTronInvolvedUser = {
|
|
1014
|
+
userId: string;
|
|
1015
|
+
handle: string | null;
|
|
1016
|
+
displayName: string | null;
|
|
1017
|
+
role: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
1018
|
+
amountCents: number;
|
|
1019
|
+
};
|
|
827
1020
|
type ActivityRowTronCashout = {
|
|
828
1021
|
kind: "tron_cashout";
|
|
829
1022
|
groupId: string | null;
|
|
@@ -841,6 +1034,20 @@ type ActivityRowTronCashout = {
|
|
|
841
1034
|
rejectionReason: string | null;
|
|
842
1035
|
settledAt: string | null;
|
|
843
1036
|
};
|
|
1037
|
+
type ActivityRowTronTransfer = {
|
|
1038
|
+
kind: "tron_transfer";
|
|
1039
|
+
groupId: string | null;
|
|
1040
|
+
id: string;
|
|
1041
|
+
occurredAt: string;
|
|
1042
|
+
role: "incoming" | "outgoing";
|
|
1043
|
+
amountCents: number;
|
|
1044
|
+
usdCents: number;
|
|
1045
|
+
status: "settled";
|
|
1046
|
+
counterpartyUserId: string | null;
|
|
1047
|
+
counterpartyHandle: string | null;
|
|
1048
|
+
counterpartyDisplayName: string | null;
|
|
1049
|
+
note: string | null;
|
|
1050
|
+
};
|
|
844
1051
|
type ActivityRowReferralEarning = {
|
|
845
1052
|
kind: "referral_earning";
|
|
846
1053
|
groupId: string | null;
|
|
@@ -857,6 +1064,22 @@ type ActivityRowReferralEarning = {
|
|
|
857
1064
|
logIndex: number;
|
|
858
1065
|
usdCents: number | null;
|
|
859
1066
|
};
|
|
1067
|
+
type ActivityRowNftCharge = {
|
|
1068
|
+
kind: "nft_charge";
|
|
1069
|
+
groupId: string | null;
|
|
1070
|
+
id: string;
|
|
1071
|
+
occurredAt: string;
|
|
1072
|
+
role: "outgoing";
|
|
1073
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
1074
|
+
amountCents: number;
|
|
1075
|
+
usdCents: number;
|
|
1076
|
+
status: "settled";
|
|
1077
|
+
collectionAddress: string | null;
|
|
1078
|
+
tokenId: string | null;
|
|
1079
|
+
counterpartyUserId: string | null;
|
|
1080
|
+
counterpartyHandle: string | null;
|
|
1081
|
+
counterpartyDisplayName: string | null;
|
|
1082
|
+
};
|
|
860
1083
|
type OutstandingResponse = {
|
|
861
1084
|
rows: Array<OutstandingByToken>;
|
|
862
1085
|
};
|
|
@@ -906,7 +1129,7 @@ type TronLedgerResponse = {
|
|
|
906
1129
|
};
|
|
907
1130
|
type TronLedgerEntry = {
|
|
908
1131
|
id: string;
|
|
909
|
-
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning";
|
|
1132
|
+
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning" | "peer_transfer" | "nft_registration" | "nft_mint" | "nft_gas";
|
|
910
1133
|
amountCents: number;
|
|
911
1134
|
currency: string;
|
|
912
1135
|
createdAt: string;
|
|
@@ -921,6 +1144,45 @@ type TronDepositResponse = {
|
|
|
921
1144
|
type TronDepositRequest = {
|
|
922
1145
|
amountCents: number;
|
|
923
1146
|
};
|
|
1147
|
+
type TronTransferResponse = {
|
|
1148
|
+
status: "completed";
|
|
1149
|
+
amountCents: number;
|
|
1150
|
+
balanceCents: number;
|
|
1151
|
+
recipient: {
|
|
1152
|
+
userId: string;
|
|
1153
|
+
handle: string | null;
|
|
1154
|
+
displayName: string | null;
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
type TronTransferRequest = {
|
|
1158
|
+
recipientUserId: string;
|
|
1159
|
+
amountCents: number;
|
|
1160
|
+
note?: string;
|
|
1161
|
+
challengeId?: string;
|
|
1162
|
+
signature?: string;
|
|
1163
|
+
threadId?: string;
|
|
1164
|
+
};
|
|
1165
|
+
type TronSecuritySetting = {
|
|
1166
|
+
requireSignature: boolean;
|
|
1167
|
+
};
|
|
1168
|
+
type TronTransferChallengeResponse = ({
|
|
1169
|
+
required: false;
|
|
1170
|
+
} & TronTransferChallengeNotRequired) | ({
|
|
1171
|
+
required: true;
|
|
1172
|
+
} & TronTransferChallengeRequired);
|
|
1173
|
+
type TronTransferChallengeNotRequired = {
|
|
1174
|
+
required: false;
|
|
1175
|
+
};
|
|
1176
|
+
type TronTransferChallengeRequired = {
|
|
1177
|
+
required: true;
|
|
1178
|
+
challengeId: string;
|
|
1179
|
+
message: string;
|
|
1180
|
+
expiresAt: string;
|
|
1181
|
+
};
|
|
1182
|
+
type TronTransferChallengeRequest = {
|
|
1183
|
+
recipientUserId: string;
|
|
1184
|
+
amountCents: number;
|
|
1185
|
+
};
|
|
924
1186
|
type TronGameBalanceResponse = {
|
|
925
1187
|
balanceCents: number;
|
|
926
1188
|
rakeBps: number;
|
|
@@ -1163,6 +1425,7 @@ type ThreadLastMessagePreview = {
|
|
|
1163
1425
|
url: string;
|
|
1164
1426
|
count: number;
|
|
1165
1427
|
} | null;
|
|
1428
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1166
1429
|
sentAt: string;
|
|
1167
1430
|
} | null;
|
|
1168
1431
|
type MessageEnvelope = {
|
|
@@ -1174,6 +1437,20 @@ type MessageEnvelope = {
|
|
|
1174
1437
|
iv: string;
|
|
1175
1438
|
ct: string;
|
|
1176
1439
|
} | null;
|
|
1440
|
+
type MessageTransactionTronTransfer = {
|
|
1441
|
+
kind: "tron_transfer";
|
|
1442
|
+
amountCents: number;
|
|
1443
|
+
recipientUserId: string;
|
|
1444
|
+
};
|
|
1445
|
+
type MessageTransactionNftTransfer = {
|
|
1446
|
+
kind: "nft_transfer";
|
|
1447
|
+
recipientUserId: string;
|
|
1448
|
+
collectionAddress: string;
|
|
1449
|
+
tokenId: string;
|
|
1450
|
+
amount: string;
|
|
1451
|
+
itemName: string | null;
|
|
1452
|
+
imageAssetId?: string | null;
|
|
1453
|
+
};
|
|
1177
1454
|
type GroupThreadSummary = {
|
|
1178
1455
|
kind: "group";
|
|
1179
1456
|
id: string;
|
|
@@ -1220,6 +1497,7 @@ type MessageItem = {
|
|
|
1220
1497
|
id: string;
|
|
1221
1498
|
threadId: string;
|
|
1222
1499
|
senderUserId: string;
|
|
1500
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1223
1501
|
body: string;
|
|
1224
1502
|
envelope?: MessageEnvelope;
|
|
1225
1503
|
sentAt: string;
|
|
@@ -1410,11 +1688,45 @@ type InventoryHolding = {
|
|
|
1410
1688
|
tokenId: string;
|
|
1411
1689
|
amount: string;
|
|
1412
1690
|
name: string | null;
|
|
1691
|
+
description: string | null;
|
|
1413
1692
|
imageAssetId: string | null;
|
|
1414
1693
|
bannerAssetId: string | null;
|
|
1415
1694
|
devMetadata: {
|
|
1416
1695
|
[key: string]: unknown;
|
|
1417
1696
|
};
|
|
1697
|
+
appId: string | null;
|
|
1698
|
+
appName: string | null;
|
|
1699
|
+
appLogoUrl: string | null;
|
|
1700
|
+
};
|
|
1701
|
+
type InventoryPendingPermitListResponse = {
|
|
1702
|
+
permits: Array<InventoryPendingPermit>;
|
|
1703
|
+
};
|
|
1704
|
+
type InventoryPendingPermit = {
|
|
1705
|
+
id: string;
|
|
1706
|
+
appId: string;
|
|
1707
|
+
itemId: string;
|
|
1708
|
+
amount: string;
|
|
1709
|
+
priceCents: number | null;
|
|
1710
|
+
gasSponsored: boolean;
|
|
1711
|
+
environment: "development" | "production";
|
|
1712
|
+
createdAt: string;
|
|
1713
|
+
tokenId: string;
|
|
1714
|
+
name: string | null;
|
|
1715
|
+
description: string | null;
|
|
1716
|
+
imageAssetId: string | null;
|
|
1717
|
+
chain: string;
|
|
1718
|
+
collectionAddress: string;
|
|
1719
|
+
kind: "erc721" | "erc1155";
|
|
1720
|
+
};
|
|
1721
|
+
type InventoryPermitRedeemResult = {
|
|
1722
|
+
mint: MintRequestResult;
|
|
1723
|
+
charge: {
|
|
1724
|
+
currency: "tron";
|
|
1725
|
+
gasCents: number;
|
|
1726
|
+
priceCents: number;
|
|
1727
|
+
totalCents: number;
|
|
1728
|
+
gasPaidBy: "user" | "developer";
|
|
1729
|
+
};
|
|
1418
1730
|
};
|
|
1419
1731
|
type MintRequestResult = {
|
|
1420
1732
|
mintRequestId: string;
|
|
@@ -1430,6 +1742,247 @@ type MintRequestInput = {
|
|
|
1430
1742
|
tokenId?: string;
|
|
1431
1743
|
amount?: string;
|
|
1432
1744
|
};
|
|
1745
|
+
type InventoryCollectionListResponse = {
|
|
1746
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1747
|
+
};
|
|
1748
|
+
type InventoryCollectionSummary = {
|
|
1749
|
+
id: string;
|
|
1750
|
+
chain: string;
|
|
1751
|
+
collectionAddress: string;
|
|
1752
|
+
kind: "erc721" | "erc1155";
|
|
1753
|
+
name: string | null;
|
|
1754
|
+
environment: "development" | "production";
|
|
1755
|
+
};
|
|
1756
|
+
type InventoryRegistrationQuote = {
|
|
1757
|
+
itemCount: number;
|
|
1758
|
+
baselineUsdCents: number;
|
|
1759
|
+
gasUsdCents: number;
|
|
1760
|
+
tron: {
|
|
1761
|
+
baselineCents: number;
|
|
1762
|
+
gasCents: number;
|
|
1763
|
+
totalCents: number;
|
|
1764
|
+
};
|
|
1765
|
+
eth: {
|
|
1766
|
+
baselineWei: string;
|
|
1767
|
+
gasWei: string;
|
|
1768
|
+
totalWei: string;
|
|
1769
|
+
};
|
|
1770
|
+
};
|
|
1771
|
+
type InventoryItemRegistrationInput = {
|
|
1772
|
+
collectionAddress: string;
|
|
1773
|
+
chain: string;
|
|
1774
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1775
|
+
};
|
|
1776
|
+
type InventoryItemRegistrationSpec = {
|
|
1777
|
+
name?: string | null;
|
|
1778
|
+
description?: string | null;
|
|
1779
|
+
devMetadata?: {
|
|
1780
|
+
[key: string]: unknown;
|
|
1781
|
+
};
|
|
1782
|
+
supplyType?: InventorySupplyType;
|
|
1783
|
+
maxSupply?: string | null;
|
|
1784
|
+
active?: boolean;
|
|
1785
|
+
};
|
|
1786
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1787
|
+
type InventoryItemRegistrationResult = {
|
|
1788
|
+
items: Array<InventoryItemRecord>;
|
|
1789
|
+
charge: {
|
|
1790
|
+
currency: "tron";
|
|
1791
|
+
amountCents: number;
|
|
1792
|
+
baselineCents: number;
|
|
1793
|
+
gasCents: number;
|
|
1794
|
+
addItemTxHash: string;
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
type InventoryItemRecord = {
|
|
1798
|
+
id: string;
|
|
1799
|
+
collectionId: string;
|
|
1800
|
+
collectionAddress: string;
|
|
1801
|
+
chain: string;
|
|
1802
|
+
kind: "erc721" | "erc1155";
|
|
1803
|
+
tokenId: string;
|
|
1804
|
+
name: string | null;
|
|
1805
|
+
description: string | null;
|
|
1806
|
+
imageAssetId: string | null;
|
|
1807
|
+
bannerAssetId: string | null;
|
|
1808
|
+
devMetadata: {
|
|
1809
|
+
[key: string]: unknown;
|
|
1810
|
+
};
|
|
1811
|
+
supplyType: InventorySupplyType | null;
|
|
1812
|
+
maxSupply: string | null;
|
|
1813
|
+
active: boolean;
|
|
1814
|
+
};
|
|
1815
|
+
type InventoryItemListResponse = {
|
|
1816
|
+
items: Array<InventoryItemRecord>;
|
|
1817
|
+
};
|
|
1818
|
+
type InventoryMintPermitRecord = {
|
|
1819
|
+
id: string;
|
|
1820
|
+
appId: string;
|
|
1821
|
+
itemId: string;
|
|
1822
|
+
userId: string;
|
|
1823
|
+
amount: string;
|
|
1824
|
+
priceCents: number | null;
|
|
1825
|
+
gasSponsored: boolean;
|
|
1826
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1827
|
+
createdAt: string;
|
|
1828
|
+
};
|
|
1829
|
+
type InventoryMintPermitCreateInput = {
|
|
1830
|
+
toUserId: string;
|
|
1831
|
+
amount?: string;
|
|
1832
|
+
priceCents?: number | null;
|
|
1833
|
+
gasSponsored?: boolean;
|
|
1834
|
+
};
|
|
1835
|
+
type InventoryItemHoldersResponse = {
|
|
1836
|
+
stats: InventoryItemStats;
|
|
1837
|
+
holders: Array<InventoryItemHolder>;
|
|
1838
|
+
};
|
|
1839
|
+
type InventoryItemStats = {
|
|
1840
|
+
holderCount: number;
|
|
1841
|
+
walletCount: number;
|
|
1842
|
+
totalHeld: string;
|
|
1843
|
+
};
|
|
1844
|
+
type InventoryItemHolder = {
|
|
1845
|
+
walletAddress: string;
|
|
1846
|
+
userId: string | null;
|
|
1847
|
+
amount: string;
|
|
1848
|
+
};
|
|
1849
|
+
type InventoryVaultPermitRecord = {
|
|
1850
|
+
id: string;
|
|
1851
|
+
appId: string;
|
|
1852
|
+
itemId: string;
|
|
1853
|
+
userId: string;
|
|
1854
|
+
direction: "vault_in" | "withdraw";
|
|
1855
|
+
lockKind: "vault" | "burn" | null;
|
|
1856
|
+
amount: string;
|
|
1857
|
+
gasSponsored: boolean;
|
|
1858
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1859
|
+
custodyId: string | null;
|
|
1860
|
+
createdAt: string;
|
|
1861
|
+
};
|
|
1862
|
+
type InventoryVaultPermitCreateInput = {
|
|
1863
|
+
toUserId: string;
|
|
1864
|
+
lockKind: "vault" | "burn";
|
|
1865
|
+
amount?: string;
|
|
1866
|
+
gasSponsored?: boolean;
|
|
1867
|
+
};
|
|
1868
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1869
|
+
custodyId: string;
|
|
1870
|
+
};
|
|
1871
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1872
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1873
|
+
};
|
|
1874
|
+
type InventoryPendingVaultPermit = {
|
|
1875
|
+
id: string;
|
|
1876
|
+
appId: string;
|
|
1877
|
+
itemId: string;
|
|
1878
|
+
direction: "vault_in" | "withdraw";
|
|
1879
|
+
lockKind: "vault" | "burn" | null;
|
|
1880
|
+
amount: string;
|
|
1881
|
+
gasSponsored: boolean;
|
|
1882
|
+
environment: "development" | "production";
|
|
1883
|
+
custodyId: string | null;
|
|
1884
|
+
createdAt: string;
|
|
1885
|
+
tokenId: string;
|
|
1886
|
+
name: string | null;
|
|
1887
|
+
description: string | null;
|
|
1888
|
+
imageAssetId: string | null;
|
|
1889
|
+
chain: string;
|
|
1890
|
+
collectionAddress: string;
|
|
1891
|
+
kind: "erc721" | "erc1155";
|
|
1892
|
+
};
|
|
1893
|
+
type InventorySignedVaultPermit = {
|
|
1894
|
+
permitId: string;
|
|
1895
|
+
direction: "vault_in" | "withdraw";
|
|
1896
|
+
vault: string;
|
|
1897
|
+
collection: string;
|
|
1898
|
+
user: string;
|
|
1899
|
+
tokenId: string;
|
|
1900
|
+
amount: string;
|
|
1901
|
+
lockKind: "vault" | "burn" | null;
|
|
1902
|
+
destination: string | null;
|
|
1903
|
+
deadline: number;
|
|
1904
|
+
signature: string;
|
|
1905
|
+
};
|
|
1906
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1907
|
+
direction: "vault_in" | "withdraw";
|
|
1908
|
+
collection: string;
|
|
1909
|
+
vault: string;
|
|
1910
|
+
chainId: number;
|
|
1911
|
+
user: string;
|
|
1912
|
+
tokenId: string;
|
|
1913
|
+
amount: string;
|
|
1914
|
+
nonce: string | null;
|
|
1915
|
+
deadline: number;
|
|
1916
|
+
feeCents: number;
|
|
1917
|
+
gasWei: string;
|
|
1918
|
+
gasPaidBy: "developer" | "user";
|
|
1919
|
+
requiresUserSignature: boolean;
|
|
1920
|
+
};
|
|
1921
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1922
|
+
ok: boolean;
|
|
1923
|
+
txHash: string;
|
|
1924
|
+
chargedCents: number;
|
|
1925
|
+
gasPaidBy: "developer" | "user";
|
|
1926
|
+
};
|
|
1927
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1928
|
+
userSignature?: string;
|
|
1929
|
+
deadline?: number;
|
|
1930
|
+
};
|
|
1931
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1932
|
+
collection: string;
|
|
1933
|
+
chainId: number;
|
|
1934
|
+
from: string;
|
|
1935
|
+
to: string;
|
|
1936
|
+
tokenId: string;
|
|
1937
|
+
amount: string;
|
|
1938
|
+
nonce: string;
|
|
1939
|
+
deadline: number;
|
|
1940
|
+
feeCents: number;
|
|
1941
|
+
gasWei: string;
|
|
1942
|
+
selfPayAvailable: boolean;
|
|
1943
|
+
};
|
|
1944
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1945
|
+
toUserId: string;
|
|
1946
|
+
collection: string;
|
|
1947
|
+
tokenId: string;
|
|
1948
|
+
amount?: string;
|
|
1949
|
+
};
|
|
1950
|
+
type InventoryNftTransferResponse = {
|
|
1951
|
+
ok: boolean;
|
|
1952
|
+
txHash: string;
|
|
1953
|
+
chargedCents: number;
|
|
1954
|
+
};
|
|
1955
|
+
type InventoryNftTransferRequest = {
|
|
1956
|
+
toUserId: string;
|
|
1957
|
+
collection: string;
|
|
1958
|
+
tokenId: string;
|
|
1959
|
+
amount?: string;
|
|
1960
|
+
deadline: number;
|
|
1961
|
+
userSignature: string;
|
|
1962
|
+
threadId?: string;
|
|
1963
|
+
};
|
|
1964
|
+
type InventoryVaultCustodyListResponse = {
|
|
1965
|
+
custody: Array<InventoryVaultCustody>;
|
|
1966
|
+
};
|
|
1967
|
+
type InventoryVaultCustody = {
|
|
1968
|
+
id: string;
|
|
1969
|
+
collectionId: string;
|
|
1970
|
+
collectionAddress: string;
|
|
1971
|
+
chain: string;
|
|
1972
|
+
kind: "erc721" | "erc1155";
|
|
1973
|
+
tokenId: string;
|
|
1974
|
+
amount: string;
|
|
1975
|
+
lockKind: "vault" | "burn";
|
|
1976
|
+
vaultAddress: string;
|
|
1977
|
+
createdAt: string;
|
|
1978
|
+
name: string | null;
|
|
1979
|
+
description: string | null;
|
|
1980
|
+
imageAssetId: string | null;
|
|
1981
|
+
};
|
|
1982
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1983
|
+
ok: boolean;
|
|
1984
|
+
txHash: string;
|
|
1985
|
+
};
|
|
1433
1986
|
type NotificationListResponse = {
|
|
1434
1987
|
notifications: Array<NotificationItem>;
|
|
1435
1988
|
unreadCount: number;
|
|
@@ -1488,12 +2041,12 @@ type FriendAcceptedNotificationPayload = {
|
|
|
1488
2041
|
type AppPageApprovedNotificationPayload = {
|
|
1489
2042
|
appId: string;
|
|
1490
2043
|
appName: string;
|
|
1491
|
-
scope: "publish" | "changes";
|
|
2044
|
+
scope: "publish" | "changes" | "bip_publish";
|
|
1492
2045
|
};
|
|
1493
2046
|
type AppPageRejectedNotificationPayload = {
|
|
1494
2047
|
appId: string;
|
|
1495
2048
|
appName: string;
|
|
1496
|
-
scope: "publish" | "changes";
|
|
2049
|
+
scope: "publish" | "changes" | "bip_publish";
|
|
1497
2050
|
notes: string;
|
|
1498
2051
|
};
|
|
1499
2052
|
type AppParticipantInviteNotificationPayload = {
|
|
@@ -1525,6 +2078,9 @@ type FriendListItem = {
|
|
|
1525
2078
|
onlineStatus: OnlineStatus;
|
|
1526
2079
|
};
|
|
1527
2080
|
type OnlineStatus = "online" | "offline";
|
|
2081
|
+
type AppFriendListResponse = {
|
|
2082
|
+
friends: Array<ThreadParticipant>;
|
|
2083
|
+
};
|
|
1528
2084
|
type FriendRequestDecision = {
|
|
1529
2085
|
decision: "accept" | "reject";
|
|
1530
2086
|
};
|
|
@@ -1597,7 +2153,7 @@ type ProfileRecentReview = {
|
|
|
1597
2153
|
appId: string;
|
|
1598
2154
|
appName: string;
|
|
1599
2155
|
appLogoUrl: string | null;
|
|
1600
|
-
|
|
2156
|
+
recommended: boolean;
|
|
1601
2157
|
body: string;
|
|
1602
2158
|
createdAt: string;
|
|
1603
2159
|
};
|
|
@@ -1654,6 +2210,7 @@ type CreateDeveloperAppChain = {
|
|
|
1654
2210
|
};
|
|
1655
2211
|
type UpdateDeveloperApp = {
|
|
1656
2212
|
name?: DeveloperAppName;
|
|
2213
|
+
slug?: AppPageSlug | null;
|
|
1657
2214
|
logoUrl?: string | null;
|
|
1658
2215
|
testAccess?: "private" | "public";
|
|
1659
2216
|
redirectUris?: Array<string>;
|
|
@@ -1902,6 +2459,7 @@ type DeveloperProductionRequestPayload = {
|
|
|
1902
2459
|
type DeveloperAppItem = {
|
|
1903
2460
|
id: string;
|
|
1904
2461
|
name: DeveloperAppName;
|
|
2462
|
+
slug: AppPageSlug | null;
|
|
1905
2463
|
logoUrl: string | null;
|
|
1906
2464
|
environment: "development" | "production";
|
|
1907
2465
|
productionApprovedAt: string | null;
|
|
@@ -1953,15 +2511,29 @@ type AppPageDraft = {
|
|
|
1953
2511
|
gallery: AppPageGallery;
|
|
1954
2512
|
chapters: AppPageChapters;
|
|
1955
2513
|
links: AppPageLinks;
|
|
2514
|
+
platforms: AppPagePlatforms;
|
|
2515
|
+
gameType: AppPageGameType;
|
|
2516
|
+
ageRating: AppPageAgeRating;
|
|
2517
|
+
languages: AppPageLanguages;
|
|
2518
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1956
2519
|
firstPublishedAt: string | null;
|
|
1957
2520
|
reviewedAt: string | null;
|
|
1958
2521
|
reviewNotes: string | null;
|
|
1959
2522
|
hiddenAt: string | null;
|
|
1960
2523
|
hiddenReasonPublic: string | null;
|
|
1961
2524
|
pendingReview: boolean;
|
|
2525
|
+
bip: AppPageBipState;
|
|
2526
|
+
};
|
|
2527
|
+
type AppPageBipState = {
|
|
2528
|
+
enabled: boolean;
|
|
2529
|
+
status: "draft" | "pending_review" | "published" | "hidden";
|
|
2530
|
+
firstPublishedAt: string | null;
|
|
2531
|
+
reviewedAt: string | null;
|
|
2532
|
+
reviewNotes: string | null;
|
|
2533
|
+
hiddenAt: string | null;
|
|
2534
|
+
hiddenReasonPublic: string | null;
|
|
1962
2535
|
};
|
|
1963
2536
|
type UpdateAppPage = {
|
|
1964
|
-
slug?: AppPageSlug | null;
|
|
1965
2537
|
categories?: AppPageCategories;
|
|
1966
2538
|
tagline?: AppPageTagline | null;
|
|
1967
2539
|
bannerUrl?: string | null;
|
|
@@ -1975,10 +2547,18 @@ type UpdateAppPage = {
|
|
|
1975
2547
|
gallery?: AppPageGallery;
|
|
1976
2548
|
chapters?: AppPageChapters;
|
|
1977
2549
|
links?: AppPageLinks;
|
|
2550
|
+
platforms?: AppPagePlatforms;
|
|
2551
|
+
gameType?: AppPageGameType;
|
|
2552
|
+
ageRating?: AppPageAgeRating;
|
|
2553
|
+
languages?: AppPageLanguages;
|
|
2554
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1978
2555
|
};
|
|
1979
2556
|
type AppPageGalleryUploadResponse = {
|
|
1980
2557
|
url: string;
|
|
1981
2558
|
};
|
|
2559
|
+
type AppPageBipToggle = {
|
|
2560
|
+
enabled: boolean;
|
|
2561
|
+
};
|
|
1982
2562
|
type AdminActivePlayersResponse = {
|
|
1983
2563
|
players: Array<AdminActivePlayer>;
|
|
1984
2564
|
total: number;
|
|
@@ -2117,6 +2697,10 @@ type AdminAppPageItem = {
|
|
|
2117
2697
|
hiddenAt: string | null;
|
|
2118
2698
|
hiddenReasonInternal: string | null;
|
|
2119
2699
|
pendingChangesSubmittedAt: string | null;
|
|
2700
|
+
bipEnabled: boolean;
|
|
2701
|
+
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2702
|
+
bipFirstPublishedAt: string | null;
|
|
2703
|
+
bipHiddenAt: string | null;
|
|
2120
2704
|
};
|
|
2121
2705
|
type AdminAppPageStatusResponse = {
|
|
2122
2706
|
status: "draft" | "pending_review" | "published" | "hidden";
|
|
@@ -2142,6 +2726,25 @@ type AdminAppPageDiffField = {
|
|
|
2142
2726
|
from: string;
|
|
2143
2727
|
to: string;
|
|
2144
2728
|
};
|
|
2729
|
+
type AdminAppPageBipStatusResponse = {
|
|
2730
|
+
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2731
|
+
};
|
|
2732
|
+
type AdminAppContentReportListResponse = {
|
|
2733
|
+
reports: Array<AdminAppContentReportItem>;
|
|
2734
|
+
total: number;
|
|
2735
|
+
hasMore: boolean;
|
|
2736
|
+
};
|
|
2737
|
+
type AdminAppContentReportItem = {
|
|
2738
|
+
id: string;
|
|
2739
|
+
category: AppContentReportCategory;
|
|
2740
|
+
details: string | null;
|
|
2741
|
+
status: AppContentReportStatus;
|
|
2742
|
+
acknowledgedAt: string | null;
|
|
2743
|
+
createdAt: string;
|
|
2744
|
+
appId: string;
|
|
2745
|
+
appName: string;
|
|
2746
|
+
appSlug: string | null;
|
|
2747
|
+
};
|
|
2145
2748
|
type PlatformFeesResponse = {
|
|
2146
2749
|
purchaseFeeBps: number;
|
|
2147
2750
|
stakeFeeBps: number;
|
|
@@ -2493,7 +3096,7 @@ declare function listActivePlayers(context: TransportContext, input: {
|
|
|
2493
3096
|
//#region src/admin/app-pages.d.ts
|
|
2494
3097
|
declare function listAppPages(context: TransportContext, input: {
|
|
2495
3098
|
readonly bearer: string;
|
|
2496
|
-
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes";
|
|
3099
|
+
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes" | "bip_pending_review";
|
|
2497
3100
|
}): Promise<AdminAppPageListResponse>;
|
|
2498
3101
|
declare function getAppPageChanges(context: TransportContext, input: {
|
|
2499
3102
|
readonly bearer: string;
|
|
@@ -2518,6 +3121,20 @@ declare function reviewAppPage(context: TransportContext, input: {
|
|
|
2518
3121
|
readonly appId: string;
|
|
2519
3122
|
readonly body: ReviewAppPage;
|
|
2520
3123
|
}): Promise<AdminAppPageStatusResponse>;
|
|
3124
|
+
declare function reviewAppPageBip(context: TransportContext, input: {
|
|
3125
|
+
readonly bearer: string;
|
|
3126
|
+
readonly appId: string;
|
|
3127
|
+
readonly body: ReviewAppPage;
|
|
3128
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
3129
|
+
declare function hideAppPageBip(context: TransportContext, input: {
|
|
3130
|
+
readonly bearer: string;
|
|
3131
|
+
readonly appId: string;
|
|
3132
|
+
readonly body: HideAppPage;
|
|
3133
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
3134
|
+
declare function unhideAppPageBip(context: TransportContext, input: {
|
|
3135
|
+
readonly bearer: string;
|
|
3136
|
+
readonly appId: string;
|
|
3137
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
2521
3138
|
//#endregion
|
|
2522
3139
|
//#region src/admin/appeals.d.ts
|
|
2523
3140
|
declare function listAppealQueue(context: TransportContext, input: {
|
|
@@ -2549,6 +3166,19 @@ declare function resolveAppeal(context: TransportContext, input: {
|
|
|
2549
3166
|
readonly body: AppealResolveRequest;
|
|
2550
3167
|
}): Promise<AppealResolveSignedResponse>;
|
|
2551
3168
|
//#endregion
|
|
3169
|
+
//#region src/admin/content-reports.d.ts
|
|
3170
|
+
declare function listAdminContentReports(context: TransportContext, input: {
|
|
3171
|
+
readonly bearer: string;
|
|
3172
|
+
readonly status?: "open" | "acknowledged" | "dismissed" | "all";
|
|
3173
|
+
readonly limit?: number;
|
|
3174
|
+
readonly offset?: number;
|
|
3175
|
+
}): Promise<AdminAppContentReportListResponse>;
|
|
3176
|
+
declare function triageAdminContentReport(context: TransportContext, input: {
|
|
3177
|
+
readonly bearer: string;
|
|
3178
|
+
readonly reportId: string;
|
|
3179
|
+
readonly status: "acknowledged" | "dismissed";
|
|
3180
|
+
}): Promise<AppContentReport>;
|
|
3181
|
+
//#endregion
|
|
2552
3182
|
//#region src/admin/developers.d.ts
|
|
2553
3183
|
declare function listDeveloperRequests(context: TransportContext, input: {
|
|
2554
3184
|
readonly bearer: string;
|
|
@@ -2564,6 +3194,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2564
3194
|
readonly bearer: string;
|
|
2565
3195
|
}): Promise<AdminDeveloperListResponse>;
|
|
2566
3196
|
//#endregion
|
|
3197
|
+
//#region src/admin/inventory-vault.d.ts
|
|
3198
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
3199
|
+
readonly bearer: string;
|
|
3200
|
+
readonly custodyId: string;
|
|
3201
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
3202
|
+
//#endregion
|
|
2567
3203
|
//#region src/admin/payments.d.ts
|
|
2568
3204
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2569
3205
|
readonly bearer: string;
|
|
@@ -2682,6 +3318,84 @@ declare function getAppPage(context: TransportContext, input: {
|
|
|
2682
3318
|
readonly slug: string;
|
|
2683
3319
|
}): Promise<PublicAppPage>;
|
|
2684
3320
|
//#endregion
|
|
3321
|
+
//#region src/catalog/bip-updates.d.ts
|
|
3322
|
+
declare function listBipUpdates(context: TransportContext, input: {
|
|
3323
|
+
readonly bearer?: string;
|
|
3324
|
+
readonly slug: string;
|
|
3325
|
+
readonly limit?: number;
|
|
3326
|
+
readonly offset?: number;
|
|
3327
|
+
}): Promise<BipUpdateListResponse>;
|
|
3328
|
+
declare function listBipUpdateComments(context: TransportContext, input: {
|
|
3329
|
+
readonly bearer?: string;
|
|
3330
|
+
readonly slug: string;
|
|
3331
|
+
readonly updateId: string;
|
|
3332
|
+
readonly limit?: number;
|
|
3333
|
+
readonly offset?: number;
|
|
3334
|
+
}): Promise<BipUpdateCommentListResponse>;
|
|
3335
|
+
declare function getMyBipUpdateReactions(context: TransportContext, input: {
|
|
3336
|
+
readonly bearer: string;
|
|
3337
|
+
readonly slug: string;
|
|
3338
|
+
}): Promise<MyBipUpdateReactionsResponse>;
|
|
3339
|
+
declare function setBipUpdateReaction(context: TransportContext, input: {
|
|
3340
|
+
readonly bearer: string;
|
|
3341
|
+
readonly slug: string;
|
|
3342
|
+
readonly updateId: string;
|
|
3343
|
+
readonly body: SetBipUpdateReactionRequest;
|
|
3344
|
+
}): Promise<SetBipUpdateReactionResponse>;
|
|
3345
|
+
declare function commentOnBipUpdate(context: TransportContext, input: {
|
|
3346
|
+
readonly bearer: string;
|
|
3347
|
+
readonly slug: string;
|
|
3348
|
+
readonly updateId: string;
|
|
3349
|
+
readonly body: string;
|
|
3350
|
+
}): Promise<CreateBipUpdateCommentResponse>;
|
|
3351
|
+
declare function deleteBipUpdateComment(context: TransportContext, input: {
|
|
3352
|
+
readonly bearer: string;
|
|
3353
|
+
readonly slug: string;
|
|
3354
|
+
readonly commentId: string;
|
|
3355
|
+
}): Promise<DeleteBipUpdateCommentResponse>;
|
|
3356
|
+
declare function listDeveloperBipUpdates(context: TransportContext, input: {
|
|
3357
|
+
readonly bearer: string;
|
|
3358
|
+
readonly appId: string;
|
|
3359
|
+
readonly limit?: number;
|
|
3360
|
+
readonly offset?: number;
|
|
3361
|
+
}): Promise<BipUpdateListResponse>;
|
|
3362
|
+
declare function createBipUpdate(context: TransportContext, input: {
|
|
3363
|
+
readonly bearer: string;
|
|
3364
|
+
readonly appId: string;
|
|
3365
|
+
readonly body: CreateBipUpdateRequest;
|
|
3366
|
+
}): Promise<BipUpdate>;
|
|
3367
|
+
declare function updateBipUpdate(context: TransportContext, input: {
|
|
3368
|
+
readonly bearer: string;
|
|
3369
|
+
readonly appId: string;
|
|
3370
|
+
readonly updateId: string;
|
|
3371
|
+
readonly body: UpdateBipUpdateRequest;
|
|
3372
|
+
}): Promise<BipUpdate>;
|
|
3373
|
+
declare function deleteBipUpdate(context: TransportContext, input: {
|
|
3374
|
+
readonly bearer: string;
|
|
3375
|
+
readonly appId: string;
|
|
3376
|
+
readonly updateId: string;
|
|
3377
|
+
}): Promise<DeleteBipUpdateResponse>;
|
|
3378
|
+
declare function uploadBipUpdateMedia(context: TransportContext, input: {
|
|
3379
|
+
readonly bearer: string;
|
|
3380
|
+
readonly appId: string;
|
|
3381
|
+
readonly file: Blob;
|
|
3382
|
+
readonly filename: string;
|
|
3383
|
+
readonly contentType: string;
|
|
3384
|
+
}): Promise<BipUpdateMediaUploadResponse>;
|
|
3385
|
+
//#endregion
|
|
3386
|
+
//#region src/catalog/build-in-public.d.ts
|
|
3387
|
+
declare function getBipDirectory(context: TransportContext, input: {
|
|
3388
|
+
readonly bearer?: string;
|
|
3389
|
+
readonly genre?: string;
|
|
3390
|
+
readonly q?: string;
|
|
3391
|
+
readonly before?: string;
|
|
3392
|
+
readonly limit?: number;
|
|
3393
|
+
}): Promise<LibraryListResponse>;
|
|
3394
|
+
declare function getBipPage(context: TransportContext, input: {
|
|
3395
|
+
readonly bearer?: string;
|
|
3396
|
+
readonly slug: string;
|
|
3397
|
+
}): Promise<PublicBipPage>;
|
|
3398
|
+
//#endregion
|
|
2685
3399
|
//#region src/catalog/content-reports.d.ts
|
|
2686
3400
|
declare function submitAppContentReport(context: TransportContext, input: {
|
|
2687
3401
|
readonly appId: string;
|
|
@@ -2726,6 +3440,41 @@ declare function deleteMyGameReview(context: TransportContext, input: {
|
|
|
2726
3440
|
readonly slug: string;
|
|
2727
3441
|
readonly bearer: string;
|
|
2728
3442
|
}): Promise<MyReviewResponse>;
|
|
3443
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3444
|
+
readonly slug: string;
|
|
3445
|
+
readonly bearer: string;
|
|
3446
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3447
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3448
|
+
readonly slug: string;
|
|
3449
|
+
readonly reviewId: string;
|
|
3450
|
+
readonly bearer: string;
|
|
3451
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3452
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3453
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3454
|
+
readonly slug: string;
|
|
3455
|
+
readonly reviewId: string;
|
|
3456
|
+
readonly bearer: string;
|
|
3457
|
+
readonly tip: TipReviewRequest;
|
|
3458
|
+
readonly idempotencyKey?: string;
|
|
3459
|
+
}): Promise<TipReviewResponse>;
|
|
3460
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3461
|
+
readonly slug: string;
|
|
3462
|
+
readonly reviewId: string;
|
|
3463
|
+
readonly bearer?: string;
|
|
3464
|
+
readonly limit?: number;
|
|
3465
|
+
readonly offset?: number;
|
|
3466
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3467
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3468
|
+
readonly slug: string;
|
|
3469
|
+
readonly reviewId: string;
|
|
3470
|
+
readonly bearer: string;
|
|
3471
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3472
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3473
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3474
|
+
readonly slug: string;
|
|
3475
|
+
readonly commentId: string;
|
|
3476
|
+
readonly bearer: string;
|
|
3477
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2729
3478
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2730
3479
|
readonly appId: string;
|
|
2731
3480
|
readonly reviewId: string;
|
|
@@ -2954,6 +3703,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2954
3703
|
readonly status: "acknowledged" | "dismissed";
|
|
2955
3704
|
}): Promise<AppContentReport>;
|
|
2956
3705
|
//#endregion
|
|
3706
|
+
//#region src/developer/inventory.d.ts
|
|
3707
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3708
|
+
readonly bearer: string;
|
|
3709
|
+
readonly appId: string;
|
|
3710
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3711
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3712
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3713
|
+
readonly bearer: string;
|
|
3714
|
+
readonly appId: string;
|
|
3715
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3716
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3717
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3718
|
+
readonly bearer: string;
|
|
3719
|
+
readonly appId: string;
|
|
3720
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3721
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3722
|
+
readonly bearer: string;
|
|
3723
|
+
readonly appId: string;
|
|
3724
|
+
}): Promise<InventoryItemListResponse>;
|
|
3725
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3726
|
+
readonly bearer: string;
|
|
3727
|
+
readonly appId: string;
|
|
3728
|
+
readonly itemId: string;
|
|
3729
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3730
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3731
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3732
|
+
readonly bearer: string;
|
|
3733
|
+
readonly appId: string;
|
|
3734
|
+
readonly itemId: string;
|
|
3735
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3736
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3737
|
+
readonly bearer: string;
|
|
3738
|
+
readonly appId: string;
|
|
3739
|
+
readonly itemId: string;
|
|
3740
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3741
|
+
readonly filename: string;
|
|
3742
|
+
readonly contentType: string;
|
|
3743
|
+
}): Promise<InventoryItemRecord>;
|
|
3744
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3745
|
+
readonly bearer: string;
|
|
3746
|
+
readonly appId: string;
|
|
3747
|
+
readonly itemId: string;
|
|
3748
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3749
|
+
readonly filename: string;
|
|
3750
|
+
readonly contentType: string;
|
|
3751
|
+
}): Promise<InventoryItemRecord>;
|
|
3752
|
+
//#endregion
|
|
2957
3753
|
//#region src/developer/pages.d.ts
|
|
2958
3754
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2959
3755
|
readonly bearer: string;
|
|
@@ -3012,6 +3808,19 @@ declare function unpublishAppPage(context: TransportContext, input: {
|
|
|
3012
3808
|
readonly bearer: string;
|
|
3013
3809
|
readonly appId: string;
|
|
3014
3810
|
}): Promise<AppPageDraft>;
|
|
3811
|
+
declare function setAppPageBip(context: TransportContext, input: {
|
|
3812
|
+
readonly bearer: string;
|
|
3813
|
+
readonly appId: string;
|
|
3814
|
+
readonly body: AppPageBipToggle;
|
|
3815
|
+
}): Promise<AppPageDraft>;
|
|
3816
|
+
declare function submitAppPageBipForReview(context: TransportContext, input: {
|
|
3817
|
+
readonly bearer: string;
|
|
3818
|
+
readonly appId: string;
|
|
3819
|
+
}): Promise<AppPageDraft>;
|
|
3820
|
+
declare function unpublishAppPageBip(context: TransportContext, input: {
|
|
3821
|
+
readonly bearer: string;
|
|
3822
|
+
readonly appId: string;
|
|
3823
|
+
}): Promise<AppPageDraft>;
|
|
3015
3824
|
//#endregion
|
|
3016
3825
|
//#region src/developer/participants.d.ts
|
|
3017
3826
|
declare function listDeveloperAppParticipants(context: TransportContext, input: {
|
|
@@ -3078,6 +3887,68 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
3078
3887
|
readonly contentType: string;
|
|
3079
3888
|
}): Promise<unknown>;
|
|
3080
3889
|
//#endregion
|
|
3890
|
+
//#region src/developer/vault.d.ts
|
|
3891
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3892
|
+
readonly bearer: string;
|
|
3893
|
+
readonly appId: string;
|
|
3894
|
+
readonly itemId: string;
|
|
3895
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3896
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3897
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3898
|
+
readonly bearer: string;
|
|
3899
|
+
readonly appId: string;
|
|
3900
|
+
readonly itemId: string;
|
|
3901
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3902
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3903
|
+
//#endregion
|
|
3904
|
+
//#region src/events/inventory-socket.d.ts
|
|
3905
|
+
declare const inventoryUpdateEventSchema: z.ZodObject<{
|
|
3906
|
+
event: z.ZodLiteral<"inventory.updated">;
|
|
3907
|
+
deliveredAt: z.ZodString;
|
|
3908
|
+
environment: z.ZodEnum<{
|
|
3909
|
+
development: "development";
|
|
3910
|
+
production: "production";
|
|
3911
|
+
}>;
|
|
3912
|
+
subject: z.ZodString;
|
|
3913
|
+
collectionId: z.ZodString;
|
|
3914
|
+
collectionAddress: z.ZodString;
|
|
3915
|
+
chain: z.ZodString;
|
|
3916
|
+
kind: z.ZodEnum<{
|
|
3917
|
+
erc721: "erc721";
|
|
3918
|
+
erc1155: "erc1155";
|
|
3919
|
+
}>;
|
|
3920
|
+
tokenId: z.ZodString;
|
|
3921
|
+
direction: z.ZodEnum<{
|
|
3922
|
+
credit: "credit";
|
|
3923
|
+
debit: "debit";
|
|
3924
|
+
}>;
|
|
3925
|
+
amount: z.ZodString;
|
|
3926
|
+
balance: z.ZodString;
|
|
3927
|
+
}, z.core.$strip>;
|
|
3928
|
+
type InventoryUpdateEvent = z.infer<typeof inventoryUpdateEventSchema>;
|
|
3929
|
+
type OauthInventoryEventsSubscriberLifecycle = {
|
|
3930
|
+
onOpen?: () => void;
|
|
3931
|
+
onSubscribed?: (appId: string) => void;
|
|
3932
|
+
onMessage: (body: InventoryUpdateEvent) => void | Promise<void>;
|
|
3933
|
+
onClose?: (error: TronWsCloseError) => void;
|
|
3934
|
+
onError?: (error: Error) => void;
|
|
3935
|
+
};
|
|
3936
|
+
type OauthInventoryEventsSubscriberOptions = {
|
|
3937
|
+
readonly issuer: string;
|
|
3938
|
+
readonly clientId: string;
|
|
3939
|
+
readonly clientSecret: string;
|
|
3940
|
+
readonly logger?: Logger;
|
|
3941
|
+
readonly lifecycle: OauthInventoryEventsSubscriberLifecycle;
|
|
3942
|
+
readonly initialBackoffMs?: number;
|
|
3943
|
+
readonly maxBackoffMs?: number;
|
|
3944
|
+
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3945
|
+
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
3946
|
+
};
|
|
3947
|
+
type OauthInventoryEventsSubscriber = {
|
|
3948
|
+
readonly stop: () => void;
|
|
3949
|
+
};
|
|
3950
|
+
declare function startOauthInventoryEventsSubscriber(options: OauthInventoryEventsSubscriberOptions): OauthInventoryEventsSubscriber;
|
|
3951
|
+
//#endregion
|
|
3081
3952
|
//#region src/webhook/verify.d.ts
|
|
3082
3953
|
declare const oauthPaymentWebhookBodySchema: z.ZodObject<{
|
|
3083
3954
|
event: z.ZodEnum<{
|
|
@@ -3152,6 +4023,7 @@ type OauthPaymentEventsSubscriberOptions = {
|
|
|
3152
4023
|
readonly maxBackoffMs?: number;
|
|
3153
4024
|
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3154
4025
|
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
4026
|
+
readonly disableEventAck?: boolean;
|
|
3155
4027
|
};
|
|
3156
4028
|
type OauthPaymentEventsSubscriber = {
|
|
3157
4029
|
readonly stop: () => void;
|
|
@@ -3166,12 +4038,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
3166
4038
|
readonly bearer: string;
|
|
3167
4039
|
}): Promise<InventoryListResponse>;
|
|
3168
4040
|
//#endregion
|
|
4041
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
4042
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
4043
|
+
readonly bearer: string;
|
|
4044
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
4045
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
4046
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
4047
|
+
readonly bearer: string;
|
|
4048
|
+
readonly body: InventoryNftTransferRequest;
|
|
4049
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
4050
|
+
//#endregion
|
|
4051
|
+
//#region src/inventory/permits.d.ts
|
|
4052
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
4053
|
+
readonly bearer: string;
|
|
4054
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
4055
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
4056
|
+
readonly bearer: string;
|
|
4057
|
+
readonly permitId: string;
|
|
4058
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
4059
|
+
//#endregion
|
|
3169
4060
|
//#region src/inventory/request-mint.d.ts
|
|
3170
4061
|
declare function requestMint(context: TransportContext, input: {
|
|
3171
4062
|
readonly appBearer: string;
|
|
3172
4063
|
readonly body: MintRequestInput;
|
|
3173
4064
|
}): Promise<MintRequestResult>;
|
|
3174
4065
|
//#endregion
|
|
4066
|
+
//#region src/inventory/vault.d.ts
|
|
4067
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
4068
|
+
readonly bearer: string;
|
|
4069
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
4070
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
4071
|
+
readonly bearer: string;
|
|
4072
|
+
readonly permitId: string;
|
|
4073
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
4074
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
4075
|
+
readonly bearer: string;
|
|
4076
|
+
readonly permitId: string;
|
|
4077
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
4078
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
4079
|
+
readonly bearer: string;
|
|
4080
|
+
readonly permitId: string;
|
|
4081
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
4082
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
4083
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
4084
|
+
readonly bearer: string;
|
|
4085
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
4086
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
4087
|
+
readonly bearer: string;
|
|
4088
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
4089
|
+
//#endregion
|
|
3175
4090
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3176
4091
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3177
4092
|
readonly bearer: string;
|
|
@@ -3486,6 +4401,22 @@ declare function createTronDeposit(context: TransportContext, input: {
|
|
|
3486
4401
|
readonly bearer: string;
|
|
3487
4402
|
readonly body: TronDepositRequest;
|
|
3488
4403
|
}): Promise<TronDepositResponse>;
|
|
4404
|
+
declare function createTronTransfer(context: TransportContext, input: {
|
|
4405
|
+
readonly bearer: string;
|
|
4406
|
+
readonly body: TronTransferRequest;
|
|
4407
|
+
readonly idempotencyKey?: string;
|
|
4408
|
+
}): Promise<TronTransferResponse>;
|
|
4409
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
4410
|
+
readonly bearer: string;
|
|
4411
|
+
}): Promise<TronSecuritySetting>;
|
|
4412
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
4413
|
+
readonly bearer: string;
|
|
4414
|
+
readonly setting: TronSecuritySetting;
|
|
4415
|
+
}): Promise<TronSecuritySetting>;
|
|
4416
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
4417
|
+
readonly bearer: string;
|
|
4418
|
+
readonly body: TronTransferChallengeRequest;
|
|
4419
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3489
4420
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3490
4421
|
readonly bearer: string;
|
|
3491
4422
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3660,6 +4591,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3660
4591
|
readonly bearer: string;
|
|
3661
4592
|
readonly userId: string;
|
|
3662
4593
|
}): Promise<void>;
|
|
4594
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
4595
|
+
readonly bearer: string;
|
|
4596
|
+
readonly userId: string;
|
|
4597
|
+
}): Promise<void>;
|
|
3663
4598
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3664
4599
|
readonly bearer: string;
|
|
3665
4600
|
readonly requestId: string;
|
|
@@ -3672,6 +4607,9 @@ declare function cancelFriendRequest(context: TransportContext, input: {
|
|
|
3672
4607
|
declare function listFriends(context: TransportContext, input: {
|
|
3673
4608
|
readonly bearer: string;
|
|
3674
4609
|
}): Promise<FriendListResponse>;
|
|
4610
|
+
declare function listFriendsForApp(context: TransportContext, input: {
|
|
4611
|
+
readonly bearer: string;
|
|
4612
|
+
}): Promise<AppFriendListResponse>;
|
|
3675
4613
|
//#endregion
|
|
3676
4614
|
//#region src/reads/socials.d.ts
|
|
3677
4615
|
declare function listSocials(context: TransportContext, input: {
|
|
@@ -3798,6 +4736,7 @@ declare class TronNodeClient {
|
|
|
3798
4736
|
};
|
|
3799
4737
|
};
|
|
3800
4738
|
subscribeOauthPaymentEvents(lifecycle: OauthPaymentEventsSubscriberLifecycle): OauthPaymentEventsSubscriber;
|
|
4739
|
+
subscribeOauthInventoryEvents(lifecycle: OauthInventoryEventsSubscriberLifecycle): OauthInventoryEventsSubscriber;
|
|
3801
4740
|
get users(): {
|
|
3802
4741
|
get: (input: {
|
|
3803
4742
|
bearer?: string;
|
|
@@ -3898,6 +4837,11 @@ declare class TronNodeClient {
|
|
|
3898
4837
|
body: MintRequestInput;
|
|
3899
4838
|
}) => Promise<MintRequestResult>;
|
|
3900
4839
|
};
|
|
4840
|
+
get friends(): {
|
|
4841
|
+
list: (input: {
|
|
4842
|
+
bearer: string;
|
|
4843
|
+
}) => Promise<AppFriendListResponse>;
|
|
4844
|
+
};
|
|
3901
4845
|
get socials(): {
|
|
3902
4846
|
list: (input: {
|
|
3903
4847
|
bearer: string;
|
|
@@ -3919,4 +4863,4 @@ declare class TronNodeClient {
|
|
|
3919
4863
|
};
|
|
3920
4864
|
}
|
|
3921
4865
|
//#endregion
|
|
3922
|
-
export { AppTokenCache, AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, type FetchLike, GameHalfCredentials, HttpsGuardOptions, InflightDedup, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, type NodeClientConfig, OauthErrorCode, OauthPaymentEventsSubscriber, OauthPaymentEventsSubscriberLifecycle, OauthPaymentEventsSubscriberOptions, OauthPaymentWebhookBody, type OauthScope, PkcePair, PlaySessionGameStatus, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, RequestOptions, SERVER_RATE_LIMIT_MAX_MUTATING, SERVER_RATE_LIMIT_MAX_READ, SERVER_RATE_LIMIT_WINDOW_MS, type SdkBaseConfig, TRON_WS_CLOSE_CODES, type TokenSet, type TokenStore, TransportContext, TronError, TronNodeClient, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, assertSecureIssuer, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, cancelPot, charge, chargeTronDirect, chargeTronPot, completePaymentIntent, confirmPlaySession, consolidateDeveloperAppWallet, createAppTokenCache, createConsoleLogger, createDelegation, createDeveloperApiKey, createDeveloperApp, createDirectThread, createInMemoryTokenStore, createInflightDedup, createNoopLogger, createRateLimiter, createReferralCode, createTronCashout, createTronConnectOnboarding, createTronDeposit, decideFriendRequest, declineDeveloperInvite, defaultEndpoints, deleteAppPageBanner, deleteAppPageThumbnail, deleteAppPageThumbnailVideo, deleteAvatar, deleteDelegation, deleteDeveloperApp, deleteDeveloperAppLogo, deleteDeveloperProfileLogo, deleteDeveloperRequestLogo, deleteGameReviewReply, deleteMessage, deleteMyGameReview, deleteThread, deleteThreadLogo, denyPaymentIntent, distributePot, distributeTronPot, editMessage, endPlaySession, exchangeAuthorizationCode, fetchAuthorizationServerMetadata, fetchUserInfo, fileAppeal, fileAppealPotLeg, followUser, generatePkce, generateState, getActivity, getActivityGroup, getAdminAppealRoom, getAppFeeConfig, getAppPage, getAppPageChanges, getAppealRoom, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getIntentStatus, getLibrary, getMoonpayAvailability, getMyDmKey, getMyGameReview, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronGameBalance, heartbeatPlaySession, hideAppPage, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listGameReviews, listInventory, listInventoryForApp, listNotifications, listPaymentAuthorizations, listSocials, listThreadMessages, listThreads, listTronCashoutQueue, listTronCashouts, listTronLedger, listUsers, listWalletManager, listWallets, markAllNotificationsRead, markThreadRead, mintClientCredentialsToken, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, parseJson, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, refreshAccessToken, registerOauthClient, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, requestPayout, resolveAppeal, reviewAppPage, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, send, sendFriendRequest, sendJson, sendMessage, sendPresenceHeartbeat, setProcessorWhitelist, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signPaymentIntent, startOauthPaymentEventsSubscriber, submitAppContentReport, submitAppPageForReview, submitDeveloperRequest, toTokenSet, unfollowUser, unhideAppPage, unlockDmKeyBackup, unpinThread, unpublishAppPage, updateAdminRole, updateAppFeeConfig, updateAppPage, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|
|
4866
|
+
export { AppTokenCache, AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, type FetchLike, GameHalfCredentials, HttpsGuardOptions, InflightDedup, InventoryUpdateEvent, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, type NodeClientConfig, OauthErrorCode, OauthInventoryEventsSubscriber, OauthInventoryEventsSubscriberLifecycle, OauthInventoryEventsSubscriberOptions, OauthPaymentEventsSubscriber, OauthPaymentEventsSubscriberLifecycle, OauthPaymentEventsSubscriberOptions, OauthPaymentWebhookBody, type OauthScope, PkcePair, PlaySessionGameStatus, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, RequestOptions, SERVER_RATE_LIMIT_MAX_MUTATING, SERVER_RATE_LIMIT_MAX_READ, SERVER_RATE_LIMIT_WINDOW_MS, type SdkBaseConfig, TRON_WS_CLOSE_CODES, type TokenSet, type TokenStore, TransportContext, TronError, TronNodeClient, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, assertSecureIssuer, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, cancelPot, charge, chargeTronDirect, chargeTronPot, commentOnBipUpdate, commentOnGameReview, completePaymentIntent, confirmPlaySession, consolidateDeveloperAppWallet, createAppTokenCache, createBipUpdate, createConsoleLogger, createDelegation, createDeveloperApiKey, createDeveloperApp, createDeveloperAppMintPermit, createDeveloperVaultPermit, createDeveloperWithdrawPermit, createDirectThread, createInMemoryTokenStore, createInflightDedup, createNoopLogger, createRateLimiter, createReferralCode, createTronCashout, createTronConnectOnboarding, createTronDeposit, createTronTransfer, createTronTransferChallenge, decideFriendRequest, declineDeveloperInvite, defaultEndpoints, deleteAppPageBanner, deleteAppPageThumbnail, deleteAppPageThumbnailVideo, deleteAvatar, deleteBipUpdate, deleteBipUpdateComment, deleteDelegation, deleteDeveloperApp, deleteDeveloperAppLogo, deleteDeveloperProfileLogo, deleteDeveloperRequestLogo, deleteGameReviewComment, deleteGameReviewReply, deleteMessage, deleteMyGameReview, deleteThread, deleteThreadLogo, denyPaymentIntent, distributePot, distributeTronPot, editMessage, endPlaySession, exchangeAuthorizationCode, executeNftTransfer, fetchAuthorizationServerMetadata, fetchUserInfo, fileAppeal, fileAppealPotLeg, followUser, forceWithdrawVaultCustody, generatePkce, generateState, getActivity, getActivityGroup, getAdminAppealRoom, getAppFeeConfig, getAppPage, getAppPageChanges, getAppealRoom, getBipDirectory, getBipPage, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getIntentStatus, getLibrary, getMoonpayAvailability, getMyBipUpdateReactions, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronGameBalance, getTronSecurity, heartbeatPlaySession, hideAppPage, hideAppPageBip, hideThread, inventoryUpdateEventSchema, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdminContentReports, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listBipUpdateComments, listBipUpdates, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppInventoryCollections, listDeveloperAppInventoryItems, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperBipUpdates, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listFriendsForApp, listGameReviewComments, listGameReviews, listInventory, listInventoryForApp, listInventoryMintPermits, listInventoryVaultPermits, listInventoryVaulted, listNotifications, listOauthInventoryVaulted, listPaymentAuthorizations, listSocials, listThreadMessages, listThreads, listTronCashoutQueue, listTronCashouts, listTronLedger, listUsers, listWalletManager, listWallets, markAllNotificationsRead, markThreadRead, mintClientCredentialsToken, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, parseJson, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerDeveloperAppInventoryItem, registerOauthClient, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, requestPayout, resolveAppeal, reviewAppPage, reviewAppPageBip, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, send, sendFriendRequest, sendJson, sendMessage, sendPresenceHeartbeat, setAppPageBip, setBipUpdateReaction, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, startOauthInventoryEventsSubscriber, startOauthPaymentEventsSubscriber, submitAppContentReport, submitAppPageBipForReview, submitAppPageForReview, submitDeveloperRequest, submitRelayedVaultPermit, tipGameReview, toTokenSet, triageAdminContentReport, unfollowUser, unhideAppPage, unhideAppPageBip, unlockDmKeyBackup, unpinThread, unpublishAppPage, unpublishAppPageBip, updateAdminRole, updateAppFeeConfig, updateAppPage, updateBipUpdate, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadBipUpdateMedia, uploadDeveloperAppInventoryItemBanner, uploadDeveloperAppInventoryItemImage, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|