@metatrongg/sdk 0.8.0-dev.4ba5890 → 0.8.0-dev.4fc3172
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 +956 -27
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +12338 -5155
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +1011 -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 +3 -2
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,132 @@ 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 BipInterestCountResponse = {
|
|
496
|
+
interestCount: number;
|
|
497
|
+
};
|
|
498
|
+
type BipEngagementResponse = {
|
|
499
|
+
interested: boolean;
|
|
500
|
+
subscribed: boolean;
|
|
501
|
+
interestCount: number;
|
|
502
|
+
};
|
|
503
|
+
type MyBipUpdateReactionsResponse = {
|
|
504
|
+
reactions: Array<MyBipUpdateReaction>;
|
|
505
|
+
};
|
|
506
|
+
type MyBipUpdateReaction = {
|
|
507
|
+
updateId: string;
|
|
508
|
+
vote: "up" | "down";
|
|
509
|
+
};
|
|
510
|
+
type SetBipUpdateReactionResponse = {
|
|
511
|
+
reactions: BipUpdateReactionCounts;
|
|
512
|
+
vote: BipUpdateVote;
|
|
513
|
+
};
|
|
514
|
+
type BipUpdateVote = "up" | "down" | null;
|
|
515
|
+
type SetBipUpdateReactionRequest = {
|
|
516
|
+
vote: BipUpdateVote;
|
|
517
|
+
};
|
|
518
|
+
type CreateBipUpdateCommentResponse = {
|
|
519
|
+
comment: BipUpdateComment;
|
|
520
|
+
commentCount: number;
|
|
521
|
+
};
|
|
522
|
+
type DeleteBipUpdateCommentResponse = {
|
|
523
|
+
commentCount: number;
|
|
524
|
+
};
|
|
525
|
+
type CreateBipUpdateRequest = {
|
|
526
|
+
body: BipUpdateBody;
|
|
527
|
+
attachments?: BipUpdateAttachments;
|
|
528
|
+
};
|
|
529
|
+
type UpdateBipUpdateRequest = {
|
|
530
|
+
body?: BipUpdateBody;
|
|
531
|
+
attachments?: BipUpdateAttachments;
|
|
532
|
+
};
|
|
533
|
+
type DeleteBipUpdateResponse = {
|
|
534
|
+
deleted: true;
|
|
535
|
+
};
|
|
536
|
+
type BipUpdateMediaUploadResponse = {
|
|
537
|
+
url: string;
|
|
538
|
+
kind: "image" | "video";
|
|
539
|
+
};
|
|
410
540
|
type ReviewListResponse = {
|
|
411
541
|
aggregate: ReviewAggregate;
|
|
412
542
|
reviews: Array<Review>;
|
|
@@ -414,38 +544,43 @@ type ReviewListResponse = {
|
|
|
414
544
|
hasMore: boolean;
|
|
415
545
|
};
|
|
416
546
|
type ReviewAggregate = {
|
|
417
|
-
average: number | null;
|
|
418
547
|
count: number;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
1: number;
|
|
423
|
-
2: number;
|
|
424
|
-
3: number;
|
|
425
|
-
4: number;
|
|
426
|
-
5: number;
|
|
548
|
+
recommendedCount: number;
|
|
549
|
+
recommendedPct: number | null;
|
|
550
|
+
summaryLabel: ReviewSummaryLabel;
|
|
427
551
|
};
|
|
552
|
+
type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
|
|
428
553
|
type Review = {
|
|
429
554
|
id: string;
|
|
430
|
-
|
|
555
|
+
recommended: ReviewRecommended;
|
|
431
556
|
body: ReviewBody;
|
|
557
|
+
reactions: ReviewReactionCounts;
|
|
558
|
+
tippedCents: number;
|
|
559
|
+
commentCount: number;
|
|
432
560
|
author: ReviewAuthor;
|
|
561
|
+
authorStats: ReviewerStats;
|
|
433
562
|
developerReply: ReviewReply;
|
|
434
563
|
createdAt: string;
|
|
435
564
|
updatedAt: string;
|
|
436
565
|
};
|
|
437
|
-
type
|
|
566
|
+
type ReviewRecommended = boolean;
|
|
438
567
|
type ReviewBody = string;
|
|
439
|
-
type
|
|
440
|
-
|
|
441
|
-
|
|
568
|
+
type ReviewReactionCounts = {
|
|
569
|
+
helpful: number;
|
|
570
|
+
unhelpful: number;
|
|
571
|
+
funny: number;
|
|
572
|
+
};
|
|
573
|
+
type ReviewerStats = {
|
|
574
|
+
playtimeSecondsThisGame: number;
|
|
575
|
+
gamesPlayed: number;
|
|
576
|
+
reviewsWritten: number;
|
|
442
577
|
};
|
|
443
578
|
type ReviewReply = {
|
|
444
579
|
body: ReviewReplyBody;
|
|
445
580
|
repliedAt: string;
|
|
446
581
|
} | null;
|
|
447
582
|
type ReviewReplyBody = string;
|
|
448
|
-
type ReviewSort = "newest" | "oldest" | "
|
|
583
|
+
type ReviewSort = "newest" | "oldest" | "helpful";
|
|
449
584
|
type MyReviewResponse = {
|
|
450
585
|
eligible: boolean;
|
|
451
586
|
eligibleVia: ReviewEligibilityReason;
|
|
@@ -455,15 +590,67 @@ type MyReviewResponse = {
|
|
|
455
590
|
type ReviewEligibilityReason = "payment" | "reward" | null;
|
|
456
591
|
type OwnReview = {
|
|
457
592
|
id: string;
|
|
458
|
-
|
|
593
|
+
recommended: ReviewRecommended;
|
|
459
594
|
body: ReviewBody;
|
|
460
595
|
createdAt: string;
|
|
461
596
|
updatedAt: string;
|
|
462
597
|
} | null;
|
|
463
598
|
type UpsertReviewRequest = {
|
|
464
|
-
|
|
599
|
+
recommended: ReviewRecommended;
|
|
465
600
|
body: ReviewBody;
|
|
466
601
|
};
|
|
602
|
+
type MyReviewReactionsResponse = {
|
|
603
|
+
reactions: Array<MyReviewReaction>;
|
|
604
|
+
};
|
|
605
|
+
type MyReviewReaction = {
|
|
606
|
+
reviewId: string;
|
|
607
|
+
vote: ReviewVote;
|
|
608
|
+
funny: boolean;
|
|
609
|
+
};
|
|
610
|
+
type ReviewVote = "helpful" | "unhelpful" | null;
|
|
611
|
+
type SetReviewReactionResponse = {
|
|
612
|
+
reactions: ReviewReactionCounts;
|
|
613
|
+
vote: ReviewVote;
|
|
614
|
+
funny: boolean;
|
|
615
|
+
};
|
|
616
|
+
type SetReviewReactionRequest = {
|
|
617
|
+
vote: ReviewVote;
|
|
618
|
+
funny: boolean;
|
|
619
|
+
};
|
|
620
|
+
type TipReviewResponse = {
|
|
621
|
+
status: "completed";
|
|
622
|
+
amountCents: number;
|
|
623
|
+
balanceCents: number;
|
|
624
|
+
tippedCents: number;
|
|
625
|
+
};
|
|
626
|
+
type TipReviewRequest = {
|
|
627
|
+
amountCents: number;
|
|
628
|
+
note?: string;
|
|
629
|
+
challengeId?: string;
|
|
630
|
+
signature?: string;
|
|
631
|
+
};
|
|
632
|
+
type ReviewCommentListResponse = {
|
|
633
|
+
comments: Array<ReviewComment>;
|
|
634
|
+
total: number;
|
|
635
|
+
hasMore: boolean;
|
|
636
|
+
};
|
|
637
|
+
type ReviewComment = {
|
|
638
|
+
id: string;
|
|
639
|
+
body: ReviewCommentBody;
|
|
640
|
+
author: ReviewAuthor;
|
|
641
|
+
createdAt: string;
|
|
642
|
+
};
|
|
643
|
+
type ReviewCommentBody = string;
|
|
644
|
+
type CreateReviewCommentResponse = {
|
|
645
|
+
comment: ReviewComment;
|
|
646
|
+
commentCount: number;
|
|
647
|
+
};
|
|
648
|
+
type CreateReviewCommentRequest = {
|
|
649
|
+
body: ReviewCommentBody;
|
|
650
|
+
};
|
|
651
|
+
type DeleteReviewCommentResponse = {
|
|
652
|
+
commentCount: number;
|
|
653
|
+
};
|
|
467
654
|
type ReviewReplyResponse = {
|
|
468
655
|
developerReply: ReviewReply;
|
|
469
656
|
};
|
|
@@ -568,8 +755,12 @@ type ActivityRow = ({
|
|
|
568
755
|
} & ActivityRowTronPot) | ({
|
|
569
756
|
kind: "tron_cashout";
|
|
570
757
|
} & ActivityRowTronCashout) | ({
|
|
758
|
+
kind: "tron_transfer";
|
|
759
|
+
} & ActivityRowTronTransfer) | ({
|
|
571
760
|
kind: "referral_earning";
|
|
572
|
-
} & ActivityRowReferralEarning)
|
|
761
|
+
} & ActivityRowReferralEarning) | ({
|
|
762
|
+
kind: "nft_charge";
|
|
763
|
+
} & ActivityRowNftCharge);
|
|
573
764
|
type ActivityRowPayment = {
|
|
574
765
|
kind: "payment";
|
|
575
766
|
groupId: string | null;
|
|
@@ -851,6 +1042,20 @@ type ActivityRowTronCashout = {
|
|
|
851
1042
|
rejectionReason: string | null;
|
|
852
1043
|
settledAt: string | null;
|
|
853
1044
|
};
|
|
1045
|
+
type ActivityRowTronTransfer = {
|
|
1046
|
+
kind: "tron_transfer";
|
|
1047
|
+
groupId: string | null;
|
|
1048
|
+
id: string;
|
|
1049
|
+
occurredAt: string;
|
|
1050
|
+
role: "incoming" | "outgoing";
|
|
1051
|
+
amountCents: number;
|
|
1052
|
+
usdCents: number;
|
|
1053
|
+
status: "settled";
|
|
1054
|
+
counterpartyUserId: string | null;
|
|
1055
|
+
counterpartyHandle: string | null;
|
|
1056
|
+
counterpartyDisplayName: string | null;
|
|
1057
|
+
note: string | null;
|
|
1058
|
+
};
|
|
854
1059
|
type ActivityRowReferralEarning = {
|
|
855
1060
|
kind: "referral_earning";
|
|
856
1061
|
groupId: string | null;
|
|
@@ -867,6 +1072,22 @@ type ActivityRowReferralEarning = {
|
|
|
867
1072
|
logIndex: number;
|
|
868
1073
|
usdCents: number | null;
|
|
869
1074
|
};
|
|
1075
|
+
type ActivityRowNftCharge = {
|
|
1076
|
+
kind: "nft_charge";
|
|
1077
|
+
groupId: string | null;
|
|
1078
|
+
id: string;
|
|
1079
|
+
occurredAt: string;
|
|
1080
|
+
role: "outgoing";
|
|
1081
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
1082
|
+
amountCents: number;
|
|
1083
|
+
usdCents: number;
|
|
1084
|
+
status: "settled";
|
|
1085
|
+
collectionAddress: string | null;
|
|
1086
|
+
tokenId: string | null;
|
|
1087
|
+
counterpartyUserId: string | null;
|
|
1088
|
+
counterpartyHandle: string | null;
|
|
1089
|
+
counterpartyDisplayName: string | null;
|
|
1090
|
+
};
|
|
870
1091
|
type OutstandingResponse = {
|
|
871
1092
|
rows: Array<OutstandingByToken>;
|
|
872
1093
|
};
|
|
@@ -916,7 +1137,7 @@ type TronLedgerResponse = {
|
|
|
916
1137
|
};
|
|
917
1138
|
type TronLedgerEntry = {
|
|
918
1139
|
id: string;
|
|
919
|
-
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning";
|
|
1140
|
+
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";
|
|
920
1141
|
amountCents: number;
|
|
921
1142
|
currency: string;
|
|
922
1143
|
createdAt: string;
|
|
@@ -931,6 +1152,45 @@ type TronDepositResponse = {
|
|
|
931
1152
|
type TronDepositRequest = {
|
|
932
1153
|
amountCents: number;
|
|
933
1154
|
};
|
|
1155
|
+
type TronTransferResponse = {
|
|
1156
|
+
status: "completed";
|
|
1157
|
+
amountCents: number;
|
|
1158
|
+
balanceCents: number;
|
|
1159
|
+
recipient: {
|
|
1160
|
+
userId: string;
|
|
1161
|
+
handle: string | null;
|
|
1162
|
+
displayName: string | null;
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
type TronTransferRequest = {
|
|
1166
|
+
recipientUserId: string;
|
|
1167
|
+
amountCents: number;
|
|
1168
|
+
note?: string;
|
|
1169
|
+
challengeId?: string;
|
|
1170
|
+
signature?: string;
|
|
1171
|
+
threadId?: string;
|
|
1172
|
+
};
|
|
1173
|
+
type TronSecuritySetting = {
|
|
1174
|
+
requireSignature: boolean;
|
|
1175
|
+
};
|
|
1176
|
+
type TronTransferChallengeResponse = ({
|
|
1177
|
+
required: false;
|
|
1178
|
+
} & TronTransferChallengeNotRequired) | ({
|
|
1179
|
+
required: true;
|
|
1180
|
+
} & TronTransferChallengeRequired);
|
|
1181
|
+
type TronTransferChallengeNotRequired = {
|
|
1182
|
+
required: false;
|
|
1183
|
+
};
|
|
1184
|
+
type TronTransferChallengeRequired = {
|
|
1185
|
+
required: true;
|
|
1186
|
+
challengeId: string;
|
|
1187
|
+
message: string;
|
|
1188
|
+
expiresAt: string;
|
|
1189
|
+
};
|
|
1190
|
+
type TronTransferChallengeRequest = {
|
|
1191
|
+
recipientUserId: string;
|
|
1192
|
+
amountCents: number;
|
|
1193
|
+
};
|
|
934
1194
|
type TronGameBalanceResponse = {
|
|
935
1195
|
balanceCents: number;
|
|
936
1196
|
rakeBps: number;
|
|
@@ -1173,6 +1433,7 @@ type ThreadLastMessagePreview = {
|
|
|
1173
1433
|
url: string;
|
|
1174
1434
|
count: number;
|
|
1175
1435
|
} | null;
|
|
1436
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1176
1437
|
sentAt: string;
|
|
1177
1438
|
} | null;
|
|
1178
1439
|
type MessageEnvelope = {
|
|
@@ -1184,6 +1445,20 @@ type MessageEnvelope = {
|
|
|
1184
1445
|
iv: string;
|
|
1185
1446
|
ct: string;
|
|
1186
1447
|
} | null;
|
|
1448
|
+
type MessageTransactionTronTransfer = {
|
|
1449
|
+
kind: "tron_transfer";
|
|
1450
|
+
amountCents: number;
|
|
1451
|
+
recipientUserId: string;
|
|
1452
|
+
};
|
|
1453
|
+
type MessageTransactionNftTransfer = {
|
|
1454
|
+
kind: "nft_transfer";
|
|
1455
|
+
recipientUserId: string;
|
|
1456
|
+
collectionAddress: string;
|
|
1457
|
+
tokenId: string;
|
|
1458
|
+
amount: string;
|
|
1459
|
+
itemName: string | null;
|
|
1460
|
+
imageAssetId?: string | null;
|
|
1461
|
+
};
|
|
1187
1462
|
type GroupThreadSummary = {
|
|
1188
1463
|
kind: "group";
|
|
1189
1464
|
id: string;
|
|
@@ -1230,6 +1505,7 @@ type MessageItem = {
|
|
|
1230
1505
|
id: string;
|
|
1231
1506
|
threadId: string;
|
|
1232
1507
|
senderUserId: string;
|
|
1508
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1233
1509
|
body: string;
|
|
1234
1510
|
envelope?: MessageEnvelope;
|
|
1235
1511
|
sentAt: string;
|
|
@@ -1420,11 +1696,45 @@ type InventoryHolding = {
|
|
|
1420
1696
|
tokenId: string;
|
|
1421
1697
|
amount: string;
|
|
1422
1698
|
name: string | null;
|
|
1699
|
+
description: string | null;
|
|
1423
1700
|
imageAssetId: string | null;
|
|
1424
1701
|
bannerAssetId: string | null;
|
|
1425
1702
|
devMetadata: {
|
|
1426
1703
|
[key: string]: unknown;
|
|
1427
1704
|
};
|
|
1705
|
+
appId: string | null;
|
|
1706
|
+
appName: string | null;
|
|
1707
|
+
appLogoUrl: string | null;
|
|
1708
|
+
};
|
|
1709
|
+
type InventoryPendingPermitListResponse = {
|
|
1710
|
+
permits: Array<InventoryPendingPermit>;
|
|
1711
|
+
};
|
|
1712
|
+
type InventoryPendingPermit = {
|
|
1713
|
+
id: string;
|
|
1714
|
+
appId: string;
|
|
1715
|
+
itemId: string;
|
|
1716
|
+
amount: string;
|
|
1717
|
+
priceCents: number | null;
|
|
1718
|
+
gasSponsored: boolean;
|
|
1719
|
+
environment: "development" | "production";
|
|
1720
|
+
createdAt: string;
|
|
1721
|
+
tokenId: string;
|
|
1722
|
+
name: string | null;
|
|
1723
|
+
description: string | null;
|
|
1724
|
+
imageAssetId: string | null;
|
|
1725
|
+
chain: string;
|
|
1726
|
+
collectionAddress: string;
|
|
1727
|
+
kind: "erc721" | "erc1155";
|
|
1728
|
+
};
|
|
1729
|
+
type InventoryPermitRedeemResult = {
|
|
1730
|
+
mint: MintRequestResult;
|
|
1731
|
+
charge: {
|
|
1732
|
+
currency: "tron";
|
|
1733
|
+
gasCents: number;
|
|
1734
|
+
priceCents: number;
|
|
1735
|
+
totalCents: number;
|
|
1736
|
+
gasPaidBy: "user" | "developer";
|
|
1737
|
+
};
|
|
1428
1738
|
};
|
|
1429
1739
|
type MintRequestResult = {
|
|
1430
1740
|
mintRequestId: string;
|
|
@@ -1440,6 +1750,247 @@ type MintRequestInput = {
|
|
|
1440
1750
|
tokenId?: string;
|
|
1441
1751
|
amount?: string;
|
|
1442
1752
|
};
|
|
1753
|
+
type InventoryCollectionListResponse = {
|
|
1754
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1755
|
+
};
|
|
1756
|
+
type InventoryCollectionSummary = {
|
|
1757
|
+
id: string;
|
|
1758
|
+
chain: string;
|
|
1759
|
+
collectionAddress: string;
|
|
1760
|
+
kind: "erc721" | "erc1155";
|
|
1761
|
+
name: string | null;
|
|
1762
|
+
environment: "development" | "production";
|
|
1763
|
+
};
|
|
1764
|
+
type InventoryRegistrationQuote = {
|
|
1765
|
+
itemCount: number;
|
|
1766
|
+
baselineUsdCents: number;
|
|
1767
|
+
gasUsdCents: number;
|
|
1768
|
+
tron: {
|
|
1769
|
+
baselineCents: number;
|
|
1770
|
+
gasCents: number;
|
|
1771
|
+
totalCents: number;
|
|
1772
|
+
};
|
|
1773
|
+
eth: {
|
|
1774
|
+
baselineWei: string;
|
|
1775
|
+
gasWei: string;
|
|
1776
|
+
totalWei: string;
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
type InventoryItemRegistrationInput = {
|
|
1780
|
+
collectionAddress: string;
|
|
1781
|
+
chain: string;
|
|
1782
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1783
|
+
};
|
|
1784
|
+
type InventoryItemRegistrationSpec = {
|
|
1785
|
+
name?: string | null;
|
|
1786
|
+
description?: string | null;
|
|
1787
|
+
devMetadata?: {
|
|
1788
|
+
[key: string]: unknown;
|
|
1789
|
+
};
|
|
1790
|
+
supplyType?: InventorySupplyType;
|
|
1791
|
+
maxSupply?: string | null;
|
|
1792
|
+
active?: boolean;
|
|
1793
|
+
};
|
|
1794
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1795
|
+
type InventoryItemRegistrationResult = {
|
|
1796
|
+
items: Array<InventoryItemRecord>;
|
|
1797
|
+
charge: {
|
|
1798
|
+
currency: "tron";
|
|
1799
|
+
amountCents: number;
|
|
1800
|
+
baselineCents: number;
|
|
1801
|
+
gasCents: number;
|
|
1802
|
+
addItemTxHash: string;
|
|
1803
|
+
};
|
|
1804
|
+
};
|
|
1805
|
+
type InventoryItemRecord = {
|
|
1806
|
+
id: string;
|
|
1807
|
+
collectionId: string;
|
|
1808
|
+
collectionAddress: string;
|
|
1809
|
+
chain: string;
|
|
1810
|
+
kind: "erc721" | "erc1155";
|
|
1811
|
+
tokenId: string;
|
|
1812
|
+
name: string | null;
|
|
1813
|
+
description: string | null;
|
|
1814
|
+
imageAssetId: string | null;
|
|
1815
|
+
bannerAssetId: string | null;
|
|
1816
|
+
devMetadata: {
|
|
1817
|
+
[key: string]: unknown;
|
|
1818
|
+
};
|
|
1819
|
+
supplyType: InventorySupplyType | null;
|
|
1820
|
+
maxSupply: string | null;
|
|
1821
|
+
active: boolean;
|
|
1822
|
+
};
|
|
1823
|
+
type InventoryItemListResponse = {
|
|
1824
|
+
items: Array<InventoryItemRecord>;
|
|
1825
|
+
};
|
|
1826
|
+
type InventoryMintPermitRecord = {
|
|
1827
|
+
id: string;
|
|
1828
|
+
appId: string;
|
|
1829
|
+
itemId: string;
|
|
1830
|
+
userId: string;
|
|
1831
|
+
amount: string;
|
|
1832
|
+
priceCents: number | null;
|
|
1833
|
+
gasSponsored: boolean;
|
|
1834
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1835
|
+
createdAt: string;
|
|
1836
|
+
};
|
|
1837
|
+
type InventoryMintPermitCreateInput = {
|
|
1838
|
+
toUserId: string;
|
|
1839
|
+
amount?: string;
|
|
1840
|
+
priceCents?: number | null;
|
|
1841
|
+
gasSponsored?: boolean;
|
|
1842
|
+
};
|
|
1843
|
+
type InventoryItemHoldersResponse = {
|
|
1844
|
+
stats: InventoryItemStats;
|
|
1845
|
+
holders: Array<InventoryItemHolder>;
|
|
1846
|
+
};
|
|
1847
|
+
type InventoryItemStats = {
|
|
1848
|
+
holderCount: number;
|
|
1849
|
+
walletCount: number;
|
|
1850
|
+
totalHeld: string;
|
|
1851
|
+
};
|
|
1852
|
+
type InventoryItemHolder = {
|
|
1853
|
+
walletAddress: string;
|
|
1854
|
+
userId: string | null;
|
|
1855
|
+
amount: string;
|
|
1856
|
+
};
|
|
1857
|
+
type InventoryVaultPermitRecord = {
|
|
1858
|
+
id: string;
|
|
1859
|
+
appId: string;
|
|
1860
|
+
itemId: string;
|
|
1861
|
+
userId: string;
|
|
1862
|
+
direction: "vault_in" | "withdraw";
|
|
1863
|
+
lockKind: "vault" | "burn" | null;
|
|
1864
|
+
amount: string;
|
|
1865
|
+
gasSponsored: boolean;
|
|
1866
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1867
|
+
custodyId: string | null;
|
|
1868
|
+
createdAt: string;
|
|
1869
|
+
};
|
|
1870
|
+
type InventoryVaultPermitCreateInput = {
|
|
1871
|
+
toUserId: string;
|
|
1872
|
+
lockKind: "vault" | "burn";
|
|
1873
|
+
amount?: string;
|
|
1874
|
+
gasSponsored?: boolean;
|
|
1875
|
+
};
|
|
1876
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1877
|
+
custodyId: string;
|
|
1878
|
+
};
|
|
1879
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1880
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1881
|
+
};
|
|
1882
|
+
type InventoryPendingVaultPermit = {
|
|
1883
|
+
id: string;
|
|
1884
|
+
appId: string;
|
|
1885
|
+
itemId: string;
|
|
1886
|
+
direction: "vault_in" | "withdraw";
|
|
1887
|
+
lockKind: "vault" | "burn" | null;
|
|
1888
|
+
amount: string;
|
|
1889
|
+
gasSponsored: boolean;
|
|
1890
|
+
environment: "development" | "production";
|
|
1891
|
+
custodyId: string | null;
|
|
1892
|
+
createdAt: string;
|
|
1893
|
+
tokenId: string;
|
|
1894
|
+
name: string | null;
|
|
1895
|
+
description: string | null;
|
|
1896
|
+
imageAssetId: string | null;
|
|
1897
|
+
chain: string;
|
|
1898
|
+
collectionAddress: string;
|
|
1899
|
+
kind: "erc721" | "erc1155";
|
|
1900
|
+
};
|
|
1901
|
+
type InventorySignedVaultPermit = {
|
|
1902
|
+
permitId: string;
|
|
1903
|
+
direction: "vault_in" | "withdraw";
|
|
1904
|
+
vault: string;
|
|
1905
|
+
collection: string;
|
|
1906
|
+
user: string;
|
|
1907
|
+
tokenId: string;
|
|
1908
|
+
amount: string;
|
|
1909
|
+
lockKind: "vault" | "burn" | null;
|
|
1910
|
+
destination: string | null;
|
|
1911
|
+
deadline: number;
|
|
1912
|
+
signature: string;
|
|
1913
|
+
};
|
|
1914
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1915
|
+
direction: "vault_in" | "withdraw";
|
|
1916
|
+
collection: string;
|
|
1917
|
+
vault: string;
|
|
1918
|
+
chainId: number;
|
|
1919
|
+
user: string;
|
|
1920
|
+
tokenId: string;
|
|
1921
|
+
amount: string;
|
|
1922
|
+
nonce: string | null;
|
|
1923
|
+
deadline: number;
|
|
1924
|
+
feeCents: number;
|
|
1925
|
+
gasWei: string;
|
|
1926
|
+
gasPaidBy: "developer" | "user";
|
|
1927
|
+
requiresUserSignature: boolean;
|
|
1928
|
+
};
|
|
1929
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1930
|
+
ok: boolean;
|
|
1931
|
+
txHash: string;
|
|
1932
|
+
chargedCents: number;
|
|
1933
|
+
gasPaidBy: "developer" | "user";
|
|
1934
|
+
};
|
|
1935
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1936
|
+
userSignature?: string;
|
|
1937
|
+
deadline?: number;
|
|
1938
|
+
};
|
|
1939
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1940
|
+
collection: string;
|
|
1941
|
+
chainId: number;
|
|
1942
|
+
from: string;
|
|
1943
|
+
to: string;
|
|
1944
|
+
tokenId: string;
|
|
1945
|
+
amount: string;
|
|
1946
|
+
nonce: string;
|
|
1947
|
+
deadline: number;
|
|
1948
|
+
feeCents: number;
|
|
1949
|
+
gasWei: string;
|
|
1950
|
+
selfPayAvailable: boolean;
|
|
1951
|
+
};
|
|
1952
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1953
|
+
toUserId: string;
|
|
1954
|
+
collection: string;
|
|
1955
|
+
tokenId: string;
|
|
1956
|
+
amount?: string;
|
|
1957
|
+
};
|
|
1958
|
+
type InventoryNftTransferResponse = {
|
|
1959
|
+
ok: boolean;
|
|
1960
|
+
txHash: string;
|
|
1961
|
+
chargedCents: number;
|
|
1962
|
+
};
|
|
1963
|
+
type InventoryNftTransferRequest = {
|
|
1964
|
+
toUserId: string;
|
|
1965
|
+
collection: string;
|
|
1966
|
+
tokenId: string;
|
|
1967
|
+
amount?: string;
|
|
1968
|
+
deadline: number;
|
|
1969
|
+
userSignature: string;
|
|
1970
|
+
threadId?: string;
|
|
1971
|
+
};
|
|
1972
|
+
type InventoryVaultCustodyListResponse = {
|
|
1973
|
+
custody: Array<InventoryVaultCustody>;
|
|
1974
|
+
};
|
|
1975
|
+
type InventoryVaultCustody = {
|
|
1976
|
+
id: string;
|
|
1977
|
+
collectionId: string;
|
|
1978
|
+
collectionAddress: string;
|
|
1979
|
+
chain: string;
|
|
1980
|
+
kind: "erc721" | "erc1155";
|
|
1981
|
+
tokenId: string;
|
|
1982
|
+
amount: string;
|
|
1983
|
+
lockKind: "vault" | "burn";
|
|
1984
|
+
vaultAddress: string;
|
|
1985
|
+
createdAt: string;
|
|
1986
|
+
name: string | null;
|
|
1987
|
+
description: string | null;
|
|
1988
|
+
imageAssetId: string | null;
|
|
1989
|
+
};
|
|
1990
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1991
|
+
ok: boolean;
|
|
1992
|
+
txHash: string;
|
|
1993
|
+
};
|
|
1443
1994
|
type NotificationListResponse = {
|
|
1444
1995
|
notifications: Array<NotificationItem>;
|
|
1445
1996
|
unreadCount: number;
|
|
@@ -1468,6 +2019,18 @@ type NotificationItem = {
|
|
|
1468
2019
|
payload: AppPageRejectedNotificationPayload;
|
|
1469
2020
|
read: boolean;
|
|
1470
2021
|
createdAt: string;
|
|
2022
|
+
} | {
|
|
2023
|
+
id: string;
|
|
2024
|
+
kind: "bip_update_published";
|
|
2025
|
+
payload: BipUpdatePublishedNotificationPayload;
|
|
2026
|
+
read: boolean;
|
|
2027
|
+
createdAt: string;
|
|
2028
|
+
} | {
|
|
2029
|
+
id: string;
|
|
2030
|
+
kind: "bip_now_playable";
|
|
2031
|
+
payload: BipNowPlayableNotificationPayload;
|
|
2032
|
+
read: boolean;
|
|
2033
|
+
createdAt: string;
|
|
1471
2034
|
} | {
|
|
1472
2035
|
id: string;
|
|
1473
2036
|
kind: "app_participant_invite";
|
|
@@ -1498,14 +2061,25 @@ type FriendAcceptedNotificationPayload = {
|
|
|
1498
2061
|
type AppPageApprovedNotificationPayload = {
|
|
1499
2062
|
appId: string;
|
|
1500
2063
|
appName: string;
|
|
1501
|
-
scope: "publish" | "changes";
|
|
2064
|
+
scope: "publish" | "changes" | "bip_publish";
|
|
1502
2065
|
};
|
|
1503
2066
|
type AppPageRejectedNotificationPayload = {
|
|
1504
2067
|
appId: string;
|
|
1505
2068
|
appName: string;
|
|
1506
|
-
scope: "publish" | "changes";
|
|
2069
|
+
scope: "publish" | "changes" | "bip_publish";
|
|
1507
2070
|
notes: string;
|
|
1508
2071
|
};
|
|
2072
|
+
type BipUpdatePublishedNotificationPayload = {
|
|
2073
|
+
appId: string;
|
|
2074
|
+
appName: string;
|
|
2075
|
+
appSlug: string | null;
|
|
2076
|
+
updateId: string;
|
|
2077
|
+
};
|
|
2078
|
+
type BipNowPlayableNotificationPayload = {
|
|
2079
|
+
appId: string;
|
|
2080
|
+
appName: string;
|
|
2081
|
+
appSlug: string | null;
|
|
2082
|
+
};
|
|
1509
2083
|
type AppParticipantInviteNotificationPayload = {
|
|
1510
2084
|
appId: string;
|
|
1511
2085
|
appName: string;
|
|
@@ -1535,6 +2109,9 @@ type FriendListItem = {
|
|
|
1535
2109
|
onlineStatus: OnlineStatus;
|
|
1536
2110
|
};
|
|
1537
2111
|
type OnlineStatus = "online" | "offline";
|
|
2112
|
+
type AppFriendListResponse = {
|
|
2113
|
+
friends: Array<ThreadParticipant>;
|
|
2114
|
+
};
|
|
1538
2115
|
type FriendRequestDecision = {
|
|
1539
2116
|
decision: "accept" | "reject";
|
|
1540
2117
|
};
|
|
@@ -1607,7 +2184,7 @@ type ProfileRecentReview = {
|
|
|
1607
2184
|
appId: string;
|
|
1608
2185
|
appName: string;
|
|
1609
2186
|
appLogoUrl: string | null;
|
|
1610
|
-
|
|
2187
|
+
recommended: boolean;
|
|
1611
2188
|
body: string;
|
|
1612
2189
|
createdAt: string;
|
|
1613
2190
|
};
|
|
@@ -1664,6 +2241,7 @@ type CreateDeveloperAppChain = {
|
|
|
1664
2241
|
};
|
|
1665
2242
|
type UpdateDeveloperApp = {
|
|
1666
2243
|
name?: DeveloperAppName;
|
|
2244
|
+
slug?: AppPageSlug | null;
|
|
1667
2245
|
logoUrl?: string | null;
|
|
1668
2246
|
testAccess?: "private" | "public";
|
|
1669
2247
|
redirectUris?: Array<string>;
|
|
@@ -1912,6 +2490,7 @@ type DeveloperProductionRequestPayload = {
|
|
|
1912
2490
|
type DeveloperAppItem = {
|
|
1913
2491
|
id: string;
|
|
1914
2492
|
name: DeveloperAppName;
|
|
2493
|
+
slug: AppPageSlug | null;
|
|
1915
2494
|
logoUrl: string | null;
|
|
1916
2495
|
environment: "development" | "production";
|
|
1917
2496
|
productionApprovedAt: string | null;
|
|
@@ -1963,15 +2542,29 @@ type AppPageDraft = {
|
|
|
1963
2542
|
gallery: AppPageGallery;
|
|
1964
2543
|
chapters: AppPageChapters;
|
|
1965
2544
|
links: AppPageLinks;
|
|
2545
|
+
platforms: AppPagePlatforms;
|
|
2546
|
+
gameType: AppPageGameType;
|
|
2547
|
+
ageRating: AppPageAgeRating;
|
|
2548
|
+
languages: AppPageLanguages;
|
|
2549
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1966
2550
|
firstPublishedAt: string | null;
|
|
1967
2551
|
reviewedAt: string | null;
|
|
1968
2552
|
reviewNotes: string | null;
|
|
1969
2553
|
hiddenAt: string | null;
|
|
1970
2554
|
hiddenReasonPublic: string | null;
|
|
1971
2555
|
pendingReview: boolean;
|
|
2556
|
+
bip: AppPageBipState;
|
|
2557
|
+
};
|
|
2558
|
+
type AppPageBipState = {
|
|
2559
|
+
enabled: boolean;
|
|
2560
|
+
status: "draft" | "pending_review" | "published" | "hidden";
|
|
2561
|
+
firstPublishedAt: string | null;
|
|
2562
|
+
reviewedAt: string | null;
|
|
2563
|
+
reviewNotes: string | null;
|
|
2564
|
+
hiddenAt: string | null;
|
|
2565
|
+
hiddenReasonPublic: string | null;
|
|
1972
2566
|
};
|
|
1973
2567
|
type UpdateAppPage = {
|
|
1974
|
-
slug?: AppPageSlug | null;
|
|
1975
2568
|
categories?: AppPageCategories;
|
|
1976
2569
|
tagline?: AppPageTagline | null;
|
|
1977
2570
|
bannerUrl?: string | null;
|
|
@@ -1985,10 +2578,18 @@ type UpdateAppPage = {
|
|
|
1985
2578
|
gallery?: AppPageGallery;
|
|
1986
2579
|
chapters?: AppPageChapters;
|
|
1987
2580
|
links?: AppPageLinks;
|
|
2581
|
+
platforms?: AppPagePlatforms;
|
|
2582
|
+
gameType?: AppPageGameType;
|
|
2583
|
+
ageRating?: AppPageAgeRating;
|
|
2584
|
+
languages?: AppPageLanguages;
|
|
2585
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1988
2586
|
};
|
|
1989
2587
|
type AppPageGalleryUploadResponse = {
|
|
1990
2588
|
url: string;
|
|
1991
2589
|
};
|
|
2590
|
+
type AppPageBipToggle = {
|
|
2591
|
+
enabled: boolean;
|
|
2592
|
+
};
|
|
1992
2593
|
type AdminActivePlayersResponse = {
|
|
1993
2594
|
players: Array<AdminActivePlayer>;
|
|
1994
2595
|
total: number;
|
|
@@ -2127,6 +2728,11 @@ type AdminAppPageItem = {
|
|
|
2127
2728
|
hiddenAt: string | null;
|
|
2128
2729
|
hiddenReasonInternal: string | null;
|
|
2129
2730
|
pendingChangesSubmittedAt: string | null;
|
|
2731
|
+
bipEnabled: boolean;
|
|
2732
|
+
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2733
|
+
bipFirstPublishedAt: string | null;
|
|
2734
|
+
bipHiddenAt: string | null;
|
|
2735
|
+
openReportCount: number;
|
|
2130
2736
|
};
|
|
2131
2737
|
type AdminAppPageStatusResponse = {
|
|
2132
2738
|
status: "draft" | "pending_review" | "published" | "hidden";
|
|
@@ -2152,6 +2758,25 @@ type AdminAppPageDiffField = {
|
|
|
2152
2758
|
from: string;
|
|
2153
2759
|
to: string;
|
|
2154
2760
|
};
|
|
2761
|
+
type AdminAppPageBipStatusResponse = {
|
|
2762
|
+
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2763
|
+
};
|
|
2764
|
+
type AdminAppContentReportListResponse = {
|
|
2765
|
+
reports: Array<AdminAppContentReportItem>;
|
|
2766
|
+
total: number;
|
|
2767
|
+
hasMore: boolean;
|
|
2768
|
+
};
|
|
2769
|
+
type AdminAppContentReportItem = {
|
|
2770
|
+
id: string;
|
|
2771
|
+
category: AppContentReportCategory;
|
|
2772
|
+
details: string | null;
|
|
2773
|
+
status: AppContentReportStatus;
|
|
2774
|
+
acknowledgedAt: string | null;
|
|
2775
|
+
createdAt: string;
|
|
2776
|
+
appId: string;
|
|
2777
|
+
appName: string;
|
|
2778
|
+
appSlug: string | null;
|
|
2779
|
+
};
|
|
2155
2780
|
type PlatformFeesResponse = {
|
|
2156
2781
|
purchaseFeeBps: number;
|
|
2157
2782
|
stakeFeeBps: number;
|
|
@@ -2503,7 +3128,7 @@ declare function listActivePlayers(context: TransportContext, input: {
|
|
|
2503
3128
|
//#region src/admin/app-pages.d.ts
|
|
2504
3129
|
declare function listAppPages(context: TransportContext, input: {
|
|
2505
3130
|
readonly bearer: string;
|
|
2506
|
-
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes";
|
|
3131
|
+
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes" | "bip_pending_review";
|
|
2507
3132
|
}): Promise<AdminAppPageListResponse>;
|
|
2508
3133
|
declare function getAppPageChanges(context: TransportContext, input: {
|
|
2509
3134
|
readonly bearer: string;
|
|
@@ -2528,6 +3153,20 @@ declare function reviewAppPage(context: TransportContext, input: {
|
|
|
2528
3153
|
readonly appId: string;
|
|
2529
3154
|
readonly body: ReviewAppPage;
|
|
2530
3155
|
}): Promise<AdminAppPageStatusResponse>;
|
|
3156
|
+
declare function reviewAppPageBip(context: TransportContext, input: {
|
|
3157
|
+
readonly bearer: string;
|
|
3158
|
+
readonly appId: string;
|
|
3159
|
+
readonly body: ReviewAppPage;
|
|
3160
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
3161
|
+
declare function hideAppPageBip(context: TransportContext, input: {
|
|
3162
|
+
readonly bearer: string;
|
|
3163
|
+
readonly appId: string;
|
|
3164
|
+
readonly body: HideAppPage;
|
|
3165
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
3166
|
+
declare function unhideAppPageBip(context: TransportContext, input: {
|
|
3167
|
+
readonly bearer: string;
|
|
3168
|
+
readonly appId: string;
|
|
3169
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
2531
3170
|
//#endregion
|
|
2532
3171
|
//#region src/admin/appeals.d.ts
|
|
2533
3172
|
declare function listAppealQueue(context: TransportContext, input: {
|
|
@@ -2559,6 +3198,19 @@ declare function resolveAppeal(context: TransportContext, input: {
|
|
|
2559
3198
|
readonly body: AppealResolveRequest;
|
|
2560
3199
|
}): Promise<AppealResolveSignedResponse>;
|
|
2561
3200
|
//#endregion
|
|
3201
|
+
//#region src/admin/content-reports.d.ts
|
|
3202
|
+
declare function listAdminContentReports(context: TransportContext, input: {
|
|
3203
|
+
readonly bearer: string;
|
|
3204
|
+
readonly status?: "open" | "acknowledged" | "dismissed" | "all";
|
|
3205
|
+
readonly limit?: number;
|
|
3206
|
+
readonly offset?: number;
|
|
3207
|
+
}): Promise<AdminAppContentReportListResponse>;
|
|
3208
|
+
declare function triageAdminContentReport(context: TransportContext, input: {
|
|
3209
|
+
readonly bearer: string;
|
|
3210
|
+
readonly reportId: string;
|
|
3211
|
+
readonly status: "acknowledged" | "dismissed";
|
|
3212
|
+
}): Promise<AppContentReport>;
|
|
3213
|
+
//#endregion
|
|
2562
3214
|
//#region src/admin/developers.d.ts
|
|
2563
3215
|
declare function listDeveloperRequests(context: TransportContext, input: {
|
|
2564
3216
|
readonly bearer: string;
|
|
@@ -2574,6 +3226,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2574
3226
|
readonly bearer: string;
|
|
2575
3227
|
}): Promise<AdminDeveloperListResponse>;
|
|
2576
3228
|
//#endregion
|
|
3229
|
+
//#region src/admin/inventory-vault.d.ts
|
|
3230
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
3231
|
+
readonly bearer: string;
|
|
3232
|
+
readonly custodyId: string;
|
|
3233
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
3234
|
+
//#endregion
|
|
2577
3235
|
//#region src/admin/payments.d.ts
|
|
2578
3236
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2579
3237
|
readonly bearer: string;
|
|
@@ -2692,6 +3350,102 @@ declare function getAppPage(context: TransportContext, input: {
|
|
|
2692
3350
|
readonly slug: string;
|
|
2693
3351
|
}): Promise<PublicAppPage>;
|
|
2694
3352
|
//#endregion
|
|
3353
|
+
//#region src/catalog/bip-updates.d.ts
|
|
3354
|
+
declare function listBipUpdates(context: TransportContext, input: {
|
|
3355
|
+
readonly bearer?: string;
|
|
3356
|
+
readonly slug: string;
|
|
3357
|
+
readonly limit?: number;
|
|
3358
|
+
readonly offset?: number;
|
|
3359
|
+
}): Promise<BipUpdateListResponse>;
|
|
3360
|
+
declare function listBipUpdateComments(context: TransportContext, input: {
|
|
3361
|
+
readonly bearer?: string;
|
|
3362
|
+
readonly slug: string;
|
|
3363
|
+
readonly updateId: string;
|
|
3364
|
+
readonly limit?: number;
|
|
3365
|
+
readonly offset?: number;
|
|
3366
|
+
}): Promise<BipUpdateCommentListResponse>;
|
|
3367
|
+
declare function getMyBipUpdateReactions(context: TransportContext, input: {
|
|
3368
|
+
readonly bearer: string;
|
|
3369
|
+
readonly slug: string;
|
|
3370
|
+
}): Promise<MyBipUpdateReactionsResponse>;
|
|
3371
|
+
declare function setBipUpdateReaction(context: TransportContext, input: {
|
|
3372
|
+
readonly bearer: string;
|
|
3373
|
+
readonly slug: string;
|
|
3374
|
+
readonly updateId: string;
|
|
3375
|
+
readonly body: SetBipUpdateReactionRequest;
|
|
3376
|
+
}): Promise<SetBipUpdateReactionResponse>;
|
|
3377
|
+
declare function commentOnBipUpdate(context: TransportContext, input: {
|
|
3378
|
+
readonly bearer: string;
|
|
3379
|
+
readonly slug: string;
|
|
3380
|
+
readonly updateId: string;
|
|
3381
|
+
readonly body: string;
|
|
3382
|
+
}): Promise<CreateBipUpdateCommentResponse>;
|
|
3383
|
+
declare function deleteBipUpdateComment(context: TransportContext, input: {
|
|
3384
|
+
readonly bearer: string;
|
|
3385
|
+
readonly slug: string;
|
|
3386
|
+
readonly commentId: string;
|
|
3387
|
+
}): Promise<DeleteBipUpdateCommentResponse>;
|
|
3388
|
+
declare function listDeveloperBipUpdates(context: TransportContext, input: {
|
|
3389
|
+
readonly bearer: string;
|
|
3390
|
+
readonly appId: string;
|
|
3391
|
+
readonly limit?: number;
|
|
3392
|
+
readonly offset?: number;
|
|
3393
|
+
}): Promise<BipUpdateListResponse>;
|
|
3394
|
+
declare function createBipUpdate(context: TransportContext, input: {
|
|
3395
|
+
readonly bearer: string;
|
|
3396
|
+
readonly appId: string;
|
|
3397
|
+
readonly body: CreateBipUpdateRequest;
|
|
3398
|
+
}): Promise<BipUpdate>;
|
|
3399
|
+
declare function updateBipUpdate(context: TransportContext, input: {
|
|
3400
|
+
readonly bearer: string;
|
|
3401
|
+
readonly appId: string;
|
|
3402
|
+
readonly updateId: string;
|
|
3403
|
+
readonly body: UpdateBipUpdateRequest;
|
|
3404
|
+
}): Promise<BipUpdate>;
|
|
3405
|
+
declare function deleteBipUpdate(context: TransportContext, input: {
|
|
3406
|
+
readonly bearer: string;
|
|
3407
|
+
readonly appId: string;
|
|
3408
|
+
readonly updateId: string;
|
|
3409
|
+
}): Promise<DeleteBipUpdateResponse>;
|
|
3410
|
+
declare function uploadBipUpdateMedia(context: TransportContext, input: {
|
|
3411
|
+
readonly bearer: string;
|
|
3412
|
+
readonly appId: string;
|
|
3413
|
+
readonly file: Blob;
|
|
3414
|
+
readonly filename: string;
|
|
3415
|
+
readonly contentType: string;
|
|
3416
|
+
}): Promise<BipUpdateMediaUploadResponse>;
|
|
3417
|
+
declare function getBipInterestCount(context: TransportContext, input: {
|
|
3418
|
+
readonly bearer?: string;
|
|
3419
|
+
readonly slug: string;
|
|
3420
|
+
}): Promise<BipInterestCountResponse>;
|
|
3421
|
+
declare function getMyBipEngagement(context: TransportContext, input: {
|
|
3422
|
+
readonly bearer: string;
|
|
3423
|
+
readonly slug: string;
|
|
3424
|
+
}): Promise<BipEngagementResponse>;
|
|
3425
|
+
declare function registerBipInterest(context: TransportContext, input: {
|
|
3426
|
+
readonly bearer: string;
|
|
3427
|
+
readonly slug: string;
|
|
3428
|
+
readonly interested: boolean;
|
|
3429
|
+
}): Promise<BipEngagementResponse>;
|
|
3430
|
+
declare function subscribeBipUpdates(context: TransportContext, input: {
|
|
3431
|
+
readonly bearer: string;
|
|
3432
|
+
readonly slug: string;
|
|
3433
|
+
readonly subscribed: boolean;
|
|
3434
|
+
}): Promise<BipEngagementResponse>;
|
|
3435
|
+
//#endregion
|
|
3436
|
+
//#region src/catalog/build-in-public.d.ts
|
|
3437
|
+
declare function getBipDirectory(context: TransportContext, input: {
|
|
3438
|
+
readonly bearer?: string;
|
|
3439
|
+
readonly genre?: string;
|
|
3440
|
+
readonly q?: string;
|
|
3441
|
+
readonly before?: string;
|
|
3442
|
+
readonly limit?: number;
|
|
3443
|
+
}): Promise<LibraryListResponse>;
|
|
3444
|
+
declare function getBipPage(context: TransportContext, input: {
|
|
3445
|
+
readonly bearer?: string;
|
|
3446
|
+
readonly slug: string;
|
|
3447
|
+
}): Promise<PublicBipPage>;
|
|
3448
|
+
//#endregion
|
|
2695
3449
|
//#region src/catalog/content-reports.d.ts
|
|
2696
3450
|
declare function submitAppContentReport(context: TransportContext, input: {
|
|
2697
3451
|
readonly appId: string;
|
|
@@ -2736,6 +3490,41 @@ declare function deleteMyGameReview(context: TransportContext, input: {
|
|
|
2736
3490
|
readonly slug: string;
|
|
2737
3491
|
readonly bearer: string;
|
|
2738
3492
|
}): Promise<MyReviewResponse>;
|
|
3493
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3494
|
+
readonly slug: string;
|
|
3495
|
+
readonly bearer: string;
|
|
3496
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3497
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3498
|
+
readonly slug: string;
|
|
3499
|
+
readonly reviewId: string;
|
|
3500
|
+
readonly bearer: string;
|
|
3501
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3502
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3503
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3504
|
+
readonly slug: string;
|
|
3505
|
+
readonly reviewId: string;
|
|
3506
|
+
readonly bearer: string;
|
|
3507
|
+
readonly tip: TipReviewRequest;
|
|
3508
|
+
readonly idempotencyKey?: string;
|
|
3509
|
+
}): Promise<TipReviewResponse>;
|
|
3510
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3511
|
+
readonly slug: string;
|
|
3512
|
+
readonly reviewId: string;
|
|
3513
|
+
readonly bearer?: string;
|
|
3514
|
+
readonly limit?: number;
|
|
3515
|
+
readonly offset?: number;
|
|
3516
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3517
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3518
|
+
readonly slug: string;
|
|
3519
|
+
readonly reviewId: string;
|
|
3520
|
+
readonly bearer: string;
|
|
3521
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3522
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3523
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3524
|
+
readonly slug: string;
|
|
3525
|
+
readonly commentId: string;
|
|
3526
|
+
readonly bearer: string;
|
|
3527
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2739
3528
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2740
3529
|
readonly appId: string;
|
|
2741
3530
|
readonly reviewId: string;
|
|
@@ -2964,6 +3753,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2964
3753
|
readonly status: "acknowledged" | "dismissed";
|
|
2965
3754
|
}): Promise<AppContentReport>;
|
|
2966
3755
|
//#endregion
|
|
3756
|
+
//#region src/developer/inventory.d.ts
|
|
3757
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3758
|
+
readonly bearer: string;
|
|
3759
|
+
readonly appId: string;
|
|
3760
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3761
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3762
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3763
|
+
readonly bearer: string;
|
|
3764
|
+
readonly appId: string;
|
|
3765
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3766
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3767
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3768
|
+
readonly bearer: string;
|
|
3769
|
+
readonly appId: string;
|
|
3770
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3771
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3772
|
+
readonly bearer: string;
|
|
3773
|
+
readonly appId: string;
|
|
3774
|
+
}): Promise<InventoryItemListResponse>;
|
|
3775
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3776
|
+
readonly bearer: string;
|
|
3777
|
+
readonly appId: string;
|
|
3778
|
+
readonly itemId: string;
|
|
3779
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3780
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3781
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3782
|
+
readonly bearer: string;
|
|
3783
|
+
readonly appId: string;
|
|
3784
|
+
readonly itemId: string;
|
|
3785
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3786
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3787
|
+
readonly bearer: string;
|
|
3788
|
+
readonly appId: string;
|
|
3789
|
+
readonly itemId: string;
|
|
3790
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3791
|
+
readonly filename: string;
|
|
3792
|
+
readonly contentType: string;
|
|
3793
|
+
}): Promise<InventoryItemRecord>;
|
|
3794
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3795
|
+
readonly bearer: string;
|
|
3796
|
+
readonly appId: string;
|
|
3797
|
+
readonly itemId: string;
|
|
3798
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3799
|
+
readonly filename: string;
|
|
3800
|
+
readonly contentType: string;
|
|
3801
|
+
}): Promise<InventoryItemRecord>;
|
|
3802
|
+
//#endregion
|
|
2967
3803
|
//#region src/developer/pages.d.ts
|
|
2968
3804
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2969
3805
|
readonly bearer: string;
|
|
@@ -3022,6 +3858,19 @@ declare function unpublishAppPage(context: TransportContext, input: {
|
|
|
3022
3858
|
readonly bearer: string;
|
|
3023
3859
|
readonly appId: string;
|
|
3024
3860
|
}): Promise<AppPageDraft>;
|
|
3861
|
+
declare function setAppPageBip(context: TransportContext, input: {
|
|
3862
|
+
readonly bearer: string;
|
|
3863
|
+
readonly appId: string;
|
|
3864
|
+
readonly body: AppPageBipToggle;
|
|
3865
|
+
}): Promise<AppPageDraft>;
|
|
3866
|
+
declare function submitAppPageBipForReview(context: TransportContext, input: {
|
|
3867
|
+
readonly bearer: string;
|
|
3868
|
+
readonly appId: string;
|
|
3869
|
+
}): Promise<AppPageDraft>;
|
|
3870
|
+
declare function unpublishAppPageBip(context: TransportContext, input: {
|
|
3871
|
+
readonly bearer: string;
|
|
3872
|
+
readonly appId: string;
|
|
3873
|
+
}): Promise<AppPageDraft>;
|
|
3025
3874
|
//#endregion
|
|
3026
3875
|
//#region src/developer/participants.d.ts
|
|
3027
3876
|
declare function listDeveloperAppParticipants(context: TransportContext, input: {
|
|
@@ -3088,6 +3937,68 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
3088
3937
|
readonly contentType: string;
|
|
3089
3938
|
}): Promise<unknown>;
|
|
3090
3939
|
//#endregion
|
|
3940
|
+
//#region src/developer/vault.d.ts
|
|
3941
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3942
|
+
readonly bearer: string;
|
|
3943
|
+
readonly appId: string;
|
|
3944
|
+
readonly itemId: string;
|
|
3945
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3946
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3947
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3948
|
+
readonly bearer: string;
|
|
3949
|
+
readonly appId: string;
|
|
3950
|
+
readonly itemId: string;
|
|
3951
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3952
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3953
|
+
//#endregion
|
|
3954
|
+
//#region src/events/inventory-socket.d.ts
|
|
3955
|
+
declare const inventoryUpdateEventSchema: z.ZodObject<{
|
|
3956
|
+
event: z.ZodLiteral<"inventory.updated">;
|
|
3957
|
+
deliveredAt: z.ZodString;
|
|
3958
|
+
environment: z.ZodEnum<{
|
|
3959
|
+
development: "development";
|
|
3960
|
+
production: "production";
|
|
3961
|
+
}>;
|
|
3962
|
+
subject: z.ZodString;
|
|
3963
|
+
collectionId: z.ZodString;
|
|
3964
|
+
collectionAddress: z.ZodString;
|
|
3965
|
+
chain: z.ZodString;
|
|
3966
|
+
kind: z.ZodEnum<{
|
|
3967
|
+
erc721: "erc721";
|
|
3968
|
+
erc1155: "erc1155";
|
|
3969
|
+
}>;
|
|
3970
|
+
tokenId: z.ZodString;
|
|
3971
|
+
direction: z.ZodEnum<{
|
|
3972
|
+
credit: "credit";
|
|
3973
|
+
debit: "debit";
|
|
3974
|
+
}>;
|
|
3975
|
+
amount: z.ZodString;
|
|
3976
|
+
balance: z.ZodString;
|
|
3977
|
+
}, z.core.$strip>;
|
|
3978
|
+
type InventoryUpdateEvent = z.infer<typeof inventoryUpdateEventSchema>;
|
|
3979
|
+
type OauthInventoryEventsSubscriberLifecycle = {
|
|
3980
|
+
onOpen?: () => void;
|
|
3981
|
+
onSubscribed?: (appId: string) => void;
|
|
3982
|
+
onMessage: (body: InventoryUpdateEvent) => void | Promise<void>;
|
|
3983
|
+
onClose?: (error: TronWsCloseError) => void;
|
|
3984
|
+
onError?: (error: Error) => void;
|
|
3985
|
+
};
|
|
3986
|
+
type OauthInventoryEventsSubscriberOptions = {
|
|
3987
|
+
readonly issuer: string;
|
|
3988
|
+
readonly clientId: string;
|
|
3989
|
+
readonly clientSecret: string;
|
|
3990
|
+
readonly logger?: Logger;
|
|
3991
|
+
readonly lifecycle: OauthInventoryEventsSubscriberLifecycle;
|
|
3992
|
+
readonly initialBackoffMs?: number;
|
|
3993
|
+
readonly maxBackoffMs?: number;
|
|
3994
|
+
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3995
|
+
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
3996
|
+
};
|
|
3997
|
+
type OauthInventoryEventsSubscriber = {
|
|
3998
|
+
readonly stop: () => void;
|
|
3999
|
+
};
|
|
4000
|
+
declare function startOauthInventoryEventsSubscriber(options: OauthInventoryEventsSubscriberOptions): OauthInventoryEventsSubscriber;
|
|
4001
|
+
//#endregion
|
|
3091
4002
|
//#region src/webhook/verify.d.ts
|
|
3092
4003
|
declare const oauthPaymentWebhookBodySchema: z.ZodObject<{
|
|
3093
4004
|
event: z.ZodEnum<{
|
|
@@ -3162,6 +4073,7 @@ type OauthPaymentEventsSubscriberOptions = {
|
|
|
3162
4073
|
readonly maxBackoffMs?: number;
|
|
3163
4074
|
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3164
4075
|
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
4076
|
+
readonly disableEventAck?: boolean;
|
|
3165
4077
|
};
|
|
3166
4078
|
type OauthPaymentEventsSubscriber = {
|
|
3167
4079
|
readonly stop: () => void;
|
|
@@ -3176,12 +4088,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
3176
4088
|
readonly bearer: string;
|
|
3177
4089
|
}): Promise<InventoryListResponse>;
|
|
3178
4090
|
//#endregion
|
|
4091
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
4092
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
4093
|
+
readonly bearer: string;
|
|
4094
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
4095
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
4096
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
4097
|
+
readonly bearer: string;
|
|
4098
|
+
readonly body: InventoryNftTransferRequest;
|
|
4099
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
4100
|
+
//#endregion
|
|
4101
|
+
//#region src/inventory/permits.d.ts
|
|
4102
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
4103
|
+
readonly bearer: string;
|
|
4104
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
4105
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
4106
|
+
readonly bearer: string;
|
|
4107
|
+
readonly permitId: string;
|
|
4108
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
4109
|
+
//#endregion
|
|
3179
4110
|
//#region src/inventory/request-mint.d.ts
|
|
3180
4111
|
declare function requestMint(context: TransportContext, input: {
|
|
3181
4112
|
readonly appBearer: string;
|
|
3182
4113
|
readonly body: MintRequestInput;
|
|
3183
4114
|
}): Promise<MintRequestResult>;
|
|
3184
4115
|
//#endregion
|
|
4116
|
+
//#region src/inventory/vault.d.ts
|
|
4117
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
4118
|
+
readonly bearer: string;
|
|
4119
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
4120
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
4121
|
+
readonly bearer: string;
|
|
4122
|
+
readonly permitId: string;
|
|
4123
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
4124
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
4125
|
+
readonly bearer: string;
|
|
4126
|
+
readonly permitId: string;
|
|
4127
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
4128
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
4129
|
+
readonly bearer: string;
|
|
4130
|
+
readonly permitId: string;
|
|
4131
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
4132
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
4133
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
4134
|
+
readonly bearer: string;
|
|
4135
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
4136
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
4137
|
+
readonly bearer: string;
|
|
4138
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
4139
|
+
//#endregion
|
|
3185
4140
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3186
4141
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3187
4142
|
readonly bearer: string;
|
|
@@ -3496,6 +4451,22 @@ declare function createTronDeposit(context: TransportContext, input: {
|
|
|
3496
4451
|
readonly bearer: string;
|
|
3497
4452
|
readonly body: TronDepositRequest;
|
|
3498
4453
|
}): Promise<TronDepositResponse>;
|
|
4454
|
+
declare function createTronTransfer(context: TransportContext, input: {
|
|
4455
|
+
readonly bearer: string;
|
|
4456
|
+
readonly body: TronTransferRequest;
|
|
4457
|
+
readonly idempotencyKey?: string;
|
|
4458
|
+
}): Promise<TronTransferResponse>;
|
|
4459
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
4460
|
+
readonly bearer: string;
|
|
4461
|
+
}): Promise<TronSecuritySetting>;
|
|
4462
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
4463
|
+
readonly bearer: string;
|
|
4464
|
+
readonly setting: TronSecuritySetting;
|
|
4465
|
+
}): Promise<TronSecuritySetting>;
|
|
4466
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
4467
|
+
readonly bearer: string;
|
|
4468
|
+
readonly body: TronTransferChallengeRequest;
|
|
4469
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3499
4470
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3500
4471
|
readonly bearer: string;
|
|
3501
4472
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3670,6 +4641,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3670
4641
|
readonly bearer: string;
|
|
3671
4642
|
readonly userId: string;
|
|
3672
4643
|
}): Promise<void>;
|
|
4644
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
4645
|
+
readonly bearer: string;
|
|
4646
|
+
readonly userId: string;
|
|
4647
|
+
}): Promise<void>;
|
|
3673
4648
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3674
4649
|
readonly bearer: string;
|
|
3675
4650
|
readonly requestId: string;
|
|
@@ -3682,6 +4657,9 @@ declare function cancelFriendRequest(context: TransportContext, input: {
|
|
|
3682
4657
|
declare function listFriends(context: TransportContext, input: {
|
|
3683
4658
|
readonly bearer: string;
|
|
3684
4659
|
}): Promise<FriendListResponse>;
|
|
4660
|
+
declare function listFriendsForApp(context: TransportContext, input: {
|
|
4661
|
+
readonly bearer: string;
|
|
4662
|
+
}): Promise<AppFriendListResponse>;
|
|
3685
4663
|
//#endregion
|
|
3686
4664
|
//#region src/reads/socials.d.ts
|
|
3687
4665
|
declare function listSocials(context: TransportContext, input: {
|
|
@@ -3808,6 +4786,7 @@ declare class TronNodeClient {
|
|
|
3808
4786
|
};
|
|
3809
4787
|
};
|
|
3810
4788
|
subscribeOauthPaymentEvents(lifecycle: OauthPaymentEventsSubscriberLifecycle): OauthPaymentEventsSubscriber;
|
|
4789
|
+
subscribeOauthInventoryEvents(lifecycle: OauthInventoryEventsSubscriberLifecycle): OauthInventoryEventsSubscriber;
|
|
3811
4790
|
get users(): {
|
|
3812
4791
|
get: (input: {
|
|
3813
4792
|
bearer?: string;
|
|
@@ -3908,6 +4887,11 @@ declare class TronNodeClient {
|
|
|
3908
4887
|
body: MintRequestInput;
|
|
3909
4888
|
}) => Promise<MintRequestResult>;
|
|
3910
4889
|
};
|
|
4890
|
+
get friends(): {
|
|
4891
|
+
list: (input: {
|
|
4892
|
+
bearer: string;
|
|
4893
|
+
}) => Promise<AppFriendListResponse>;
|
|
4894
|
+
};
|
|
3911
4895
|
get socials(): {
|
|
3912
4896
|
list: (input: {
|
|
3913
4897
|
bearer: string;
|
|
@@ -3929,4 +4913,4 @@ declare class TronNodeClient {
|
|
|
3929
4913
|
};
|
|
3930
4914
|
}
|
|
3931
4915
|
//#endregion
|
|
3932
|
-
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 };
|
|
4916
|
+
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, getBipInterestCount, getBipPage, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getIntentStatus, getLibrary, getMoonpayAvailability, getMyBipEngagement, 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, registerBipInterest, 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, subscribeBipUpdates, 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 };
|