@metatrongg/sdk 0.8.0-dev.f7c6bfe → 0.8.0-dev.f962bdb
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 +918 -32
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +13189 -6548
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +974 -33
- 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,7 +290,16 @@ type OauthPaymentIntentContext = {
|
|
|
288
290
|
studioXHandle: string | null;
|
|
289
291
|
};
|
|
290
292
|
} | null;
|
|
293
|
+
environment: "development" | "production";
|
|
294
|
+
onramp?: {
|
|
295
|
+
kind: "bridge";
|
|
296
|
+
from: PaymentNetwork;
|
|
297
|
+
to: PaymentNetwork;
|
|
298
|
+
} | {
|
|
299
|
+
kind: "insufficient";
|
|
300
|
+
};
|
|
291
301
|
};
|
|
302
|
+
type PaymentNetwork = "ethereum" | "base" | "solana";
|
|
292
303
|
type OauthPaymentIntentSignResponse = {
|
|
293
304
|
chain: string;
|
|
294
305
|
chainId: number;
|
|
@@ -421,6 +432,119 @@ type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
|
|
|
421
432
|
type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
|
|
422
433
|
type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
|
|
423
434
|
type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
|
|
435
|
+
type PublicBipPage = {
|
|
436
|
+
appId: string;
|
|
437
|
+
slug: AppPageSlug;
|
|
438
|
+
appName: string;
|
|
439
|
+
appLogoUrl: string | null;
|
|
440
|
+
categories: AppPageCategories;
|
|
441
|
+
tagline: AppPageTagline;
|
|
442
|
+
bannerUrl: string | null;
|
|
443
|
+
discordUrl: string | null;
|
|
444
|
+
twitterUrl: string | null;
|
|
445
|
+
redditUrl: string | null;
|
|
446
|
+
telegramUrl: string | null;
|
|
447
|
+
gallery: AppPageGallery;
|
|
448
|
+
chapters: AppPageChapters;
|
|
449
|
+
links: AppPageLinks;
|
|
450
|
+
studio: PublicAppPageStudio;
|
|
451
|
+
platforms: AppPagePlatforms;
|
|
452
|
+
gameType: AppPageGameType;
|
|
453
|
+
ageRating: AppPageAgeRating;
|
|
454
|
+
languages: AppPageLanguages;
|
|
455
|
+
releaseStatus: AppPageReleaseStatus;
|
|
456
|
+
publishedAt: string;
|
|
457
|
+
updatedAt: string;
|
|
458
|
+
};
|
|
459
|
+
type BipUpdateListResponse = {
|
|
460
|
+
updates: Array<BipUpdate>;
|
|
461
|
+
total: number;
|
|
462
|
+
hasMore: boolean;
|
|
463
|
+
};
|
|
464
|
+
type BipUpdate = {
|
|
465
|
+
id: string;
|
|
466
|
+
appId: string;
|
|
467
|
+
body: BipUpdateBody;
|
|
468
|
+
attachments: BipUpdateAttachments;
|
|
469
|
+
reactions: BipUpdateReactionCounts;
|
|
470
|
+
commentCount: number;
|
|
471
|
+
createdAt: string;
|
|
472
|
+
updatedAt: string;
|
|
473
|
+
};
|
|
474
|
+
type BipUpdateBody = string;
|
|
475
|
+
type BipUpdateAttachments = Array<BipUpdateAttachment>;
|
|
476
|
+
type BipUpdateAttachment = {
|
|
477
|
+
url: string;
|
|
478
|
+
kind: "image" | "video";
|
|
479
|
+
order: number;
|
|
480
|
+
};
|
|
481
|
+
type BipUpdateReactionCounts = {
|
|
482
|
+
up: number;
|
|
483
|
+
down: number;
|
|
484
|
+
};
|
|
485
|
+
type BipUpdateCommentListResponse = {
|
|
486
|
+
comments: Array<BipUpdateComment>;
|
|
487
|
+
total: number;
|
|
488
|
+
hasMore: boolean;
|
|
489
|
+
};
|
|
490
|
+
type BipUpdateComment = {
|
|
491
|
+
id: string;
|
|
492
|
+
body: BipUpdateCommentBody;
|
|
493
|
+
author: ReviewAuthor;
|
|
494
|
+
createdAt: string;
|
|
495
|
+
};
|
|
496
|
+
type BipUpdateCommentBody = string;
|
|
497
|
+
type ReviewAuthor = {
|
|
498
|
+
userId: string;
|
|
499
|
+
handle: string | null;
|
|
500
|
+
name: string | null;
|
|
501
|
+
avatarUrl: string | null;
|
|
502
|
+
};
|
|
503
|
+
type BipInterestCountResponse = {
|
|
504
|
+
interestCount: number;
|
|
505
|
+
};
|
|
506
|
+
type BipEngagementResponse = {
|
|
507
|
+
interested: boolean;
|
|
508
|
+
subscribed: boolean;
|
|
509
|
+
interestCount: number;
|
|
510
|
+
};
|
|
511
|
+
type MyBipUpdateReactionsResponse = {
|
|
512
|
+
reactions: Array<MyBipUpdateReaction>;
|
|
513
|
+
};
|
|
514
|
+
type MyBipUpdateReaction = {
|
|
515
|
+
updateId: string;
|
|
516
|
+
vote: "up" | "down";
|
|
517
|
+
};
|
|
518
|
+
type SetBipUpdateReactionResponse = {
|
|
519
|
+
reactions: BipUpdateReactionCounts;
|
|
520
|
+
vote: BipUpdateVote;
|
|
521
|
+
};
|
|
522
|
+
type BipUpdateVote = "up" | "down" | null;
|
|
523
|
+
type SetBipUpdateReactionRequest = {
|
|
524
|
+
vote: BipUpdateVote;
|
|
525
|
+
};
|
|
526
|
+
type CreateBipUpdateCommentResponse = {
|
|
527
|
+
comment: BipUpdateComment;
|
|
528
|
+
commentCount: number;
|
|
529
|
+
};
|
|
530
|
+
type DeleteBipUpdateCommentResponse = {
|
|
531
|
+
commentCount: number;
|
|
532
|
+
};
|
|
533
|
+
type CreateBipUpdateRequest = {
|
|
534
|
+
body: BipUpdateBody;
|
|
535
|
+
attachments?: BipUpdateAttachments;
|
|
536
|
+
};
|
|
537
|
+
type UpdateBipUpdateRequest = {
|
|
538
|
+
body?: BipUpdateBody;
|
|
539
|
+
attachments?: BipUpdateAttachments;
|
|
540
|
+
};
|
|
541
|
+
type DeleteBipUpdateResponse = {
|
|
542
|
+
deleted: true;
|
|
543
|
+
};
|
|
544
|
+
type BipUpdateMediaUploadResponse = {
|
|
545
|
+
url: string;
|
|
546
|
+
kind: "image" | "video";
|
|
547
|
+
};
|
|
424
548
|
type ReviewListResponse = {
|
|
425
549
|
aggregate: ReviewAggregate;
|
|
426
550
|
reviews: Array<Review>;
|
|
@@ -428,40 +552,43 @@ type ReviewListResponse = {
|
|
|
428
552
|
hasMore: boolean;
|
|
429
553
|
};
|
|
430
554
|
type ReviewAggregate = {
|
|
431
|
-
average: number | null;
|
|
432
555
|
count: number;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
1: number;
|
|
437
|
-
2: number;
|
|
438
|
-
3: number;
|
|
439
|
-
4: number;
|
|
440
|
-
5: number;
|
|
556
|
+
recommendedCount: number;
|
|
557
|
+
recommendedPct: number | null;
|
|
558
|
+
summaryLabel: ReviewSummaryLabel;
|
|
441
559
|
};
|
|
560
|
+
type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
|
|
442
561
|
type Review = {
|
|
443
562
|
id: string;
|
|
444
|
-
|
|
563
|
+
recommended: ReviewRecommended;
|
|
445
564
|
body: ReviewBody;
|
|
565
|
+
reactions: ReviewReactionCounts;
|
|
566
|
+
tippedCents: number;
|
|
567
|
+
commentCount: number;
|
|
446
568
|
author: ReviewAuthor;
|
|
569
|
+
authorStats: ReviewerStats;
|
|
447
570
|
developerReply: ReviewReply;
|
|
448
571
|
createdAt: string;
|
|
449
572
|
updatedAt: string;
|
|
450
573
|
};
|
|
451
|
-
type
|
|
574
|
+
type ReviewRecommended = boolean;
|
|
452
575
|
type ReviewBody = string;
|
|
453
|
-
type
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
576
|
+
type ReviewReactionCounts = {
|
|
577
|
+
helpful: number;
|
|
578
|
+
unhelpful: number;
|
|
579
|
+
funny: number;
|
|
580
|
+
};
|
|
581
|
+
type ReviewerStats = {
|
|
582
|
+
playtimeSecondsThisGame: number;
|
|
583
|
+
gamesPlayed: number;
|
|
584
|
+
reviewsWritten: number;
|
|
458
585
|
};
|
|
459
586
|
type ReviewReply = {
|
|
460
587
|
body: ReviewReplyBody;
|
|
461
588
|
repliedAt: string;
|
|
462
589
|
} | null;
|
|
463
590
|
type ReviewReplyBody = string;
|
|
464
|
-
type ReviewSort = "newest" | "oldest" | "
|
|
591
|
+
type ReviewSort = "newest" | "oldest" | "helpful";
|
|
465
592
|
type MyReviewResponse = {
|
|
466
593
|
eligible: boolean;
|
|
467
594
|
eligibleVia: ReviewEligibilityReason;
|
|
@@ -471,15 +598,67 @@ type MyReviewResponse = {
|
|
|
471
598
|
type ReviewEligibilityReason = "payment" | "reward" | null;
|
|
472
599
|
type OwnReview = {
|
|
473
600
|
id: string;
|
|
474
|
-
|
|
601
|
+
recommended: ReviewRecommended;
|
|
475
602
|
body: ReviewBody;
|
|
476
603
|
createdAt: string;
|
|
477
604
|
updatedAt: string;
|
|
478
605
|
} | null;
|
|
479
606
|
type UpsertReviewRequest = {
|
|
480
|
-
|
|
607
|
+
recommended: ReviewRecommended;
|
|
481
608
|
body: ReviewBody;
|
|
482
609
|
};
|
|
610
|
+
type MyReviewReactionsResponse = {
|
|
611
|
+
reactions: Array<MyReviewReaction>;
|
|
612
|
+
};
|
|
613
|
+
type MyReviewReaction = {
|
|
614
|
+
reviewId: string;
|
|
615
|
+
vote: ReviewVote;
|
|
616
|
+
funny: boolean;
|
|
617
|
+
};
|
|
618
|
+
type ReviewVote = "helpful" | "unhelpful" | null;
|
|
619
|
+
type SetReviewReactionResponse = {
|
|
620
|
+
reactions: ReviewReactionCounts;
|
|
621
|
+
vote: ReviewVote;
|
|
622
|
+
funny: boolean;
|
|
623
|
+
};
|
|
624
|
+
type SetReviewReactionRequest = {
|
|
625
|
+
vote: ReviewVote;
|
|
626
|
+
funny: boolean;
|
|
627
|
+
};
|
|
628
|
+
type TipReviewResponse = {
|
|
629
|
+
status: "completed";
|
|
630
|
+
amountCents: number;
|
|
631
|
+
balanceCents: number;
|
|
632
|
+
tippedCents: number;
|
|
633
|
+
};
|
|
634
|
+
type TipReviewRequest = {
|
|
635
|
+
amountCents: number;
|
|
636
|
+
note?: string;
|
|
637
|
+
challengeId?: string;
|
|
638
|
+
signature?: string;
|
|
639
|
+
};
|
|
640
|
+
type ReviewCommentListResponse = {
|
|
641
|
+
comments: Array<ReviewComment>;
|
|
642
|
+
total: number;
|
|
643
|
+
hasMore: boolean;
|
|
644
|
+
};
|
|
645
|
+
type ReviewComment = {
|
|
646
|
+
id: string;
|
|
647
|
+
body: ReviewCommentBody;
|
|
648
|
+
author: ReviewAuthor;
|
|
649
|
+
createdAt: string;
|
|
650
|
+
};
|
|
651
|
+
type ReviewCommentBody = string;
|
|
652
|
+
type CreateReviewCommentResponse = {
|
|
653
|
+
comment: ReviewComment;
|
|
654
|
+
commentCount: number;
|
|
655
|
+
};
|
|
656
|
+
type CreateReviewCommentRequest = {
|
|
657
|
+
body: ReviewCommentBody;
|
|
658
|
+
};
|
|
659
|
+
type DeleteReviewCommentResponse = {
|
|
660
|
+
commentCount: number;
|
|
661
|
+
};
|
|
483
662
|
type ReviewReplyResponse = {
|
|
484
663
|
developerReply: ReviewReply;
|
|
485
664
|
};
|
|
@@ -587,7 +766,9 @@ type ActivityRow = ({
|
|
|
587
766
|
kind: "tron_transfer";
|
|
588
767
|
} & ActivityRowTronTransfer) | ({
|
|
589
768
|
kind: "referral_earning";
|
|
590
|
-
} & ActivityRowReferralEarning)
|
|
769
|
+
} & ActivityRowReferralEarning) | ({
|
|
770
|
+
kind: "nft_charge";
|
|
771
|
+
} & ActivityRowNftCharge);
|
|
591
772
|
type ActivityRowPayment = {
|
|
592
773
|
kind: "payment";
|
|
593
774
|
groupId: string | null;
|
|
@@ -899,6 +1080,22 @@ type ActivityRowReferralEarning = {
|
|
|
899
1080
|
logIndex: number;
|
|
900
1081
|
usdCents: number | null;
|
|
901
1082
|
};
|
|
1083
|
+
type ActivityRowNftCharge = {
|
|
1084
|
+
kind: "nft_charge";
|
|
1085
|
+
groupId: string | null;
|
|
1086
|
+
id: string;
|
|
1087
|
+
occurredAt: string;
|
|
1088
|
+
role: "outgoing";
|
|
1089
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
1090
|
+
amountCents: number;
|
|
1091
|
+
usdCents: number;
|
|
1092
|
+
status: "settled";
|
|
1093
|
+
collectionAddress: string | null;
|
|
1094
|
+
tokenId: string | null;
|
|
1095
|
+
counterpartyUserId: string | null;
|
|
1096
|
+
counterpartyHandle: string | null;
|
|
1097
|
+
counterpartyDisplayName: string | null;
|
|
1098
|
+
};
|
|
902
1099
|
type OutstandingResponse = {
|
|
903
1100
|
rows: Array<OutstandingByToken>;
|
|
904
1101
|
};
|
|
@@ -948,7 +1145,7 @@ type TronLedgerResponse = {
|
|
|
948
1145
|
};
|
|
949
1146
|
type TronLedgerEntry = {
|
|
950
1147
|
id: string;
|
|
951
|
-
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning" | "peer_transfer";
|
|
1148
|
+
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";
|
|
952
1149
|
amountCents: number;
|
|
953
1150
|
currency: string;
|
|
954
1151
|
createdAt: string;
|
|
@@ -977,6 +1174,30 @@ type TronTransferRequest = {
|
|
|
977
1174
|
recipientUserId: string;
|
|
978
1175
|
amountCents: number;
|
|
979
1176
|
note?: string;
|
|
1177
|
+
challengeId?: string;
|
|
1178
|
+
signature?: string;
|
|
1179
|
+
threadId?: string;
|
|
1180
|
+
};
|
|
1181
|
+
type TronSecuritySetting = {
|
|
1182
|
+
requireSignature: boolean;
|
|
1183
|
+
};
|
|
1184
|
+
type TronTransferChallengeResponse = ({
|
|
1185
|
+
required: false;
|
|
1186
|
+
} & TronTransferChallengeNotRequired) | ({
|
|
1187
|
+
required: true;
|
|
1188
|
+
} & TronTransferChallengeRequired);
|
|
1189
|
+
type TronTransferChallengeNotRequired = {
|
|
1190
|
+
required: false;
|
|
1191
|
+
};
|
|
1192
|
+
type TronTransferChallengeRequired = {
|
|
1193
|
+
required: true;
|
|
1194
|
+
challengeId: string;
|
|
1195
|
+
message: string;
|
|
1196
|
+
expiresAt: string;
|
|
1197
|
+
};
|
|
1198
|
+
type TronTransferChallengeRequest = {
|
|
1199
|
+
recipientUserId: string;
|
|
1200
|
+
amountCents: number;
|
|
980
1201
|
};
|
|
981
1202
|
type TronGameBalanceResponse = {
|
|
982
1203
|
balanceCents: number;
|
|
@@ -1110,12 +1331,15 @@ type WalletListResponse = {
|
|
|
1110
1331
|
wallets: Array<WalletItem>;
|
|
1111
1332
|
};
|
|
1112
1333
|
type WalletChainList = Array<{
|
|
1113
|
-
id: "ethereum-mainnet" | "base-mainnet" | "ethereum-sepolia";
|
|
1334
|
+
id: "ethereum-mainnet" | "base-mainnet" | "ethereum-sepolia" | "base-sepolia" | "solana-mainnet" | "solana-devnet";
|
|
1114
1335
|
displayName: string;
|
|
1115
|
-
|
|
1336
|
+
family: "evm" | "solana";
|
|
1337
|
+
nativeSymbol: string;
|
|
1338
|
+
chainId?: number;
|
|
1116
1339
|
}>;
|
|
1117
1340
|
type WalletItem = {
|
|
1118
|
-
address: string;
|
|
1341
|
+
address: string | string;
|
|
1342
|
+
family: "evm" | "solana";
|
|
1119
1343
|
label: WalletLabel;
|
|
1120
1344
|
kind: "personal" | "app";
|
|
1121
1345
|
app: WalletAppLink;
|
|
@@ -1132,6 +1356,9 @@ type WalletBalances = {
|
|
|
1132
1356
|
"ethereum-mainnet"?: WalletChainBalance;
|
|
1133
1357
|
"base-mainnet"?: WalletChainBalance;
|
|
1134
1358
|
"ethereum-sepolia"?: WalletChainBalance;
|
|
1359
|
+
"base-sepolia"?: WalletChainBalance;
|
|
1360
|
+
"solana-mainnet"?: WalletChainBalance;
|
|
1361
|
+
"solana-devnet"?: WalletChainBalance;
|
|
1135
1362
|
};
|
|
1136
1363
|
type WalletChainBalance = {
|
|
1137
1364
|
native: string;
|
|
@@ -1141,12 +1368,14 @@ type WalletDelegationStatus = {
|
|
|
1141
1368
|
mode: WalletDelegationMode;
|
|
1142
1369
|
caps: WalletDelegationCaps;
|
|
1143
1370
|
policyId: string | null;
|
|
1371
|
+
slippageBps: DelegationSlippageBps;
|
|
1144
1372
|
};
|
|
1145
1373
|
type WalletDelegationMode = "infinite" | "custom" | "scoped" | null;
|
|
1146
1374
|
type WalletDelegationCaps = {
|
|
1147
1375
|
native: string;
|
|
1148
1376
|
usdc: string;
|
|
1149
1377
|
} | null;
|
|
1378
|
+
type DelegationSlippageBps = number | null;
|
|
1150
1379
|
type WalletLabelUpdateResponse = {
|
|
1151
1380
|
address: string;
|
|
1152
1381
|
label: WalletLabel;
|
|
@@ -1220,6 +1449,7 @@ type ThreadLastMessagePreview = {
|
|
|
1220
1449
|
url: string;
|
|
1221
1450
|
count: number;
|
|
1222
1451
|
} | null;
|
|
1452
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1223
1453
|
sentAt: string;
|
|
1224
1454
|
} | null;
|
|
1225
1455
|
type MessageEnvelope = {
|
|
@@ -1231,6 +1461,20 @@ type MessageEnvelope = {
|
|
|
1231
1461
|
iv: string;
|
|
1232
1462
|
ct: string;
|
|
1233
1463
|
} | null;
|
|
1464
|
+
type MessageTransactionTronTransfer = {
|
|
1465
|
+
kind: "tron_transfer";
|
|
1466
|
+
amountCents: number;
|
|
1467
|
+
recipientUserId: string;
|
|
1468
|
+
};
|
|
1469
|
+
type MessageTransactionNftTransfer = {
|
|
1470
|
+
kind: "nft_transfer";
|
|
1471
|
+
recipientUserId: string;
|
|
1472
|
+
collectionAddress: string;
|
|
1473
|
+
tokenId: string;
|
|
1474
|
+
amount: string;
|
|
1475
|
+
itemName: string | null;
|
|
1476
|
+
imageAssetId?: string | null;
|
|
1477
|
+
};
|
|
1234
1478
|
type GroupThreadSummary = {
|
|
1235
1479
|
kind: "group";
|
|
1236
1480
|
id: string;
|
|
@@ -1277,6 +1521,7 @@ type MessageItem = {
|
|
|
1277
1521
|
id: string;
|
|
1278
1522
|
threadId: string;
|
|
1279
1523
|
senderUserId: string;
|
|
1524
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1280
1525
|
body: string;
|
|
1281
1526
|
envelope?: MessageEnvelope;
|
|
1282
1527
|
sentAt: string;
|
|
@@ -1467,11 +1712,45 @@ type InventoryHolding = {
|
|
|
1467
1712
|
tokenId: string;
|
|
1468
1713
|
amount: string;
|
|
1469
1714
|
name: string | null;
|
|
1715
|
+
description: string | null;
|
|
1470
1716
|
imageAssetId: string | null;
|
|
1471
1717
|
bannerAssetId: string | null;
|
|
1472
1718
|
devMetadata: {
|
|
1473
1719
|
[key: string]: unknown;
|
|
1474
1720
|
};
|
|
1721
|
+
appId: string | null;
|
|
1722
|
+
appName: string | null;
|
|
1723
|
+
appLogoUrl: string | null;
|
|
1724
|
+
};
|
|
1725
|
+
type InventoryPendingPermitListResponse = {
|
|
1726
|
+
permits: Array<InventoryPendingPermit>;
|
|
1727
|
+
};
|
|
1728
|
+
type InventoryPendingPermit = {
|
|
1729
|
+
id: string;
|
|
1730
|
+
appId: string;
|
|
1731
|
+
itemId: string;
|
|
1732
|
+
amount: string;
|
|
1733
|
+
priceCents: number | null;
|
|
1734
|
+
gasSponsored: boolean;
|
|
1735
|
+
environment: "development" | "production";
|
|
1736
|
+
createdAt: string;
|
|
1737
|
+
tokenId: string;
|
|
1738
|
+
name: string | null;
|
|
1739
|
+
description: string | null;
|
|
1740
|
+
imageAssetId: string | null;
|
|
1741
|
+
chain: string;
|
|
1742
|
+
collectionAddress: string;
|
|
1743
|
+
kind: "erc721" | "erc1155";
|
|
1744
|
+
};
|
|
1745
|
+
type InventoryPermitRedeemResult = {
|
|
1746
|
+
mint: MintRequestResult;
|
|
1747
|
+
charge: {
|
|
1748
|
+
currency: "tron";
|
|
1749
|
+
gasCents: number;
|
|
1750
|
+
priceCents: number;
|
|
1751
|
+
totalCents: number;
|
|
1752
|
+
gasPaidBy: "user" | "developer";
|
|
1753
|
+
};
|
|
1475
1754
|
};
|
|
1476
1755
|
type MintRequestResult = {
|
|
1477
1756
|
mintRequestId: string;
|
|
@@ -1487,6 +1766,247 @@ type MintRequestInput = {
|
|
|
1487
1766
|
tokenId?: string;
|
|
1488
1767
|
amount?: string;
|
|
1489
1768
|
};
|
|
1769
|
+
type InventoryCollectionListResponse = {
|
|
1770
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1771
|
+
};
|
|
1772
|
+
type InventoryCollectionSummary = {
|
|
1773
|
+
id: string;
|
|
1774
|
+
chain: string;
|
|
1775
|
+
collectionAddress: string;
|
|
1776
|
+
kind: "erc721" | "erc1155";
|
|
1777
|
+
name: string | null;
|
|
1778
|
+
environment: "development" | "production";
|
|
1779
|
+
};
|
|
1780
|
+
type InventoryRegistrationQuote = {
|
|
1781
|
+
itemCount: number;
|
|
1782
|
+
baselineUsdCents: number;
|
|
1783
|
+
gasUsdCents: number;
|
|
1784
|
+
tron: {
|
|
1785
|
+
baselineCents: number;
|
|
1786
|
+
gasCents: number;
|
|
1787
|
+
totalCents: number;
|
|
1788
|
+
};
|
|
1789
|
+
eth: {
|
|
1790
|
+
baselineWei: string;
|
|
1791
|
+
gasWei: string;
|
|
1792
|
+
totalWei: string;
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
type InventoryItemRegistrationInput = {
|
|
1796
|
+
collectionAddress: string;
|
|
1797
|
+
chain: string;
|
|
1798
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1799
|
+
};
|
|
1800
|
+
type InventoryItemRegistrationSpec = {
|
|
1801
|
+
name?: string | null;
|
|
1802
|
+
description?: string | null;
|
|
1803
|
+
devMetadata?: {
|
|
1804
|
+
[key: string]: unknown;
|
|
1805
|
+
};
|
|
1806
|
+
supplyType?: InventorySupplyType;
|
|
1807
|
+
maxSupply?: string | null;
|
|
1808
|
+
active?: boolean;
|
|
1809
|
+
};
|
|
1810
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1811
|
+
type InventoryItemRegistrationResult = {
|
|
1812
|
+
items: Array<InventoryItemRecord>;
|
|
1813
|
+
charge: {
|
|
1814
|
+
currency: "tron";
|
|
1815
|
+
amountCents: number;
|
|
1816
|
+
baselineCents: number;
|
|
1817
|
+
gasCents: number;
|
|
1818
|
+
addItemTxHash: string;
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
1821
|
+
type InventoryItemRecord = {
|
|
1822
|
+
id: string;
|
|
1823
|
+
collectionId: string;
|
|
1824
|
+
collectionAddress: string;
|
|
1825
|
+
chain: string;
|
|
1826
|
+
kind: "erc721" | "erc1155";
|
|
1827
|
+
tokenId: string;
|
|
1828
|
+
name: string | null;
|
|
1829
|
+
description: string | null;
|
|
1830
|
+
imageAssetId: string | null;
|
|
1831
|
+
bannerAssetId: string | null;
|
|
1832
|
+
devMetadata: {
|
|
1833
|
+
[key: string]: unknown;
|
|
1834
|
+
};
|
|
1835
|
+
supplyType: InventorySupplyType | null;
|
|
1836
|
+
maxSupply: string | null;
|
|
1837
|
+
active: boolean;
|
|
1838
|
+
};
|
|
1839
|
+
type InventoryItemListResponse = {
|
|
1840
|
+
items: Array<InventoryItemRecord>;
|
|
1841
|
+
};
|
|
1842
|
+
type InventoryMintPermitRecord = {
|
|
1843
|
+
id: string;
|
|
1844
|
+
appId: string;
|
|
1845
|
+
itemId: string;
|
|
1846
|
+
userId: string;
|
|
1847
|
+
amount: string;
|
|
1848
|
+
priceCents: number | null;
|
|
1849
|
+
gasSponsored: boolean;
|
|
1850
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1851
|
+
createdAt: string;
|
|
1852
|
+
};
|
|
1853
|
+
type InventoryMintPermitCreateInput = {
|
|
1854
|
+
toUserId: string;
|
|
1855
|
+
amount?: string;
|
|
1856
|
+
priceCents?: number | null;
|
|
1857
|
+
gasSponsored?: boolean;
|
|
1858
|
+
};
|
|
1859
|
+
type InventoryItemHoldersResponse = {
|
|
1860
|
+
stats: InventoryItemStats;
|
|
1861
|
+
holders: Array<InventoryItemHolder>;
|
|
1862
|
+
};
|
|
1863
|
+
type InventoryItemStats = {
|
|
1864
|
+
holderCount: number;
|
|
1865
|
+
walletCount: number;
|
|
1866
|
+
totalHeld: string;
|
|
1867
|
+
};
|
|
1868
|
+
type InventoryItemHolder = {
|
|
1869
|
+
walletAddress: string;
|
|
1870
|
+
userId: string | null;
|
|
1871
|
+
amount: string;
|
|
1872
|
+
};
|
|
1873
|
+
type InventoryVaultPermitRecord = {
|
|
1874
|
+
id: string;
|
|
1875
|
+
appId: string;
|
|
1876
|
+
itemId: string;
|
|
1877
|
+
userId: string;
|
|
1878
|
+
direction: "vault_in" | "withdraw";
|
|
1879
|
+
lockKind: "vault" | "burn" | null;
|
|
1880
|
+
amount: string;
|
|
1881
|
+
gasSponsored: boolean;
|
|
1882
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1883
|
+
custodyId: string | null;
|
|
1884
|
+
createdAt: string;
|
|
1885
|
+
};
|
|
1886
|
+
type InventoryVaultPermitCreateInput = {
|
|
1887
|
+
toUserId: string;
|
|
1888
|
+
lockKind: "vault" | "burn";
|
|
1889
|
+
amount?: string;
|
|
1890
|
+
gasSponsored?: boolean;
|
|
1891
|
+
};
|
|
1892
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1893
|
+
custodyId: string;
|
|
1894
|
+
};
|
|
1895
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1896
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1897
|
+
};
|
|
1898
|
+
type InventoryPendingVaultPermit = {
|
|
1899
|
+
id: string;
|
|
1900
|
+
appId: string;
|
|
1901
|
+
itemId: string;
|
|
1902
|
+
direction: "vault_in" | "withdraw";
|
|
1903
|
+
lockKind: "vault" | "burn" | null;
|
|
1904
|
+
amount: string;
|
|
1905
|
+
gasSponsored: boolean;
|
|
1906
|
+
environment: "development" | "production";
|
|
1907
|
+
custodyId: string | null;
|
|
1908
|
+
createdAt: string;
|
|
1909
|
+
tokenId: string;
|
|
1910
|
+
name: string | null;
|
|
1911
|
+
description: string | null;
|
|
1912
|
+
imageAssetId: string | null;
|
|
1913
|
+
chain: string;
|
|
1914
|
+
collectionAddress: string;
|
|
1915
|
+
kind: "erc721" | "erc1155";
|
|
1916
|
+
};
|
|
1917
|
+
type InventorySignedVaultPermit = {
|
|
1918
|
+
permitId: string;
|
|
1919
|
+
direction: "vault_in" | "withdraw";
|
|
1920
|
+
vault: string;
|
|
1921
|
+
collection: string;
|
|
1922
|
+
user: string;
|
|
1923
|
+
tokenId: string;
|
|
1924
|
+
amount: string;
|
|
1925
|
+
lockKind: "vault" | "burn" | null;
|
|
1926
|
+
destination: string | null;
|
|
1927
|
+
deadline: number;
|
|
1928
|
+
signature: string;
|
|
1929
|
+
};
|
|
1930
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1931
|
+
direction: "vault_in" | "withdraw";
|
|
1932
|
+
collection: string;
|
|
1933
|
+
vault: string;
|
|
1934
|
+
chainId: number;
|
|
1935
|
+
user: string;
|
|
1936
|
+
tokenId: string;
|
|
1937
|
+
amount: string;
|
|
1938
|
+
nonce: string | null;
|
|
1939
|
+
deadline: number;
|
|
1940
|
+
feeCents: number;
|
|
1941
|
+
gasWei: string;
|
|
1942
|
+
gasPaidBy: "developer" | "user";
|
|
1943
|
+
requiresUserSignature: boolean;
|
|
1944
|
+
};
|
|
1945
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1946
|
+
ok: boolean;
|
|
1947
|
+
txHash: string;
|
|
1948
|
+
chargedCents: number;
|
|
1949
|
+
gasPaidBy: "developer" | "user";
|
|
1950
|
+
};
|
|
1951
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1952
|
+
userSignature?: string;
|
|
1953
|
+
deadline?: number;
|
|
1954
|
+
};
|
|
1955
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1956
|
+
collection: string;
|
|
1957
|
+
chainId: number;
|
|
1958
|
+
from: string;
|
|
1959
|
+
to: string;
|
|
1960
|
+
tokenId: string;
|
|
1961
|
+
amount: string;
|
|
1962
|
+
nonce: string;
|
|
1963
|
+
deadline: number;
|
|
1964
|
+
feeCents: number;
|
|
1965
|
+
gasWei: string;
|
|
1966
|
+
selfPayAvailable: boolean;
|
|
1967
|
+
};
|
|
1968
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1969
|
+
toUserId: string;
|
|
1970
|
+
collection: string;
|
|
1971
|
+
tokenId: string;
|
|
1972
|
+
amount?: string;
|
|
1973
|
+
};
|
|
1974
|
+
type InventoryNftTransferResponse = {
|
|
1975
|
+
ok: boolean;
|
|
1976
|
+
txHash: string;
|
|
1977
|
+
chargedCents: number;
|
|
1978
|
+
};
|
|
1979
|
+
type InventoryNftTransferRequest = {
|
|
1980
|
+
toUserId: string;
|
|
1981
|
+
collection: string;
|
|
1982
|
+
tokenId: string;
|
|
1983
|
+
amount?: string;
|
|
1984
|
+
deadline: number;
|
|
1985
|
+
userSignature: string;
|
|
1986
|
+
threadId?: string;
|
|
1987
|
+
};
|
|
1988
|
+
type InventoryVaultCustodyListResponse = {
|
|
1989
|
+
custody: Array<InventoryVaultCustody>;
|
|
1990
|
+
};
|
|
1991
|
+
type InventoryVaultCustody = {
|
|
1992
|
+
id: string;
|
|
1993
|
+
collectionId: string;
|
|
1994
|
+
collectionAddress: string;
|
|
1995
|
+
chain: string;
|
|
1996
|
+
kind: "erc721" | "erc1155";
|
|
1997
|
+
tokenId: string;
|
|
1998
|
+
amount: string;
|
|
1999
|
+
lockKind: "vault" | "burn";
|
|
2000
|
+
vaultAddress: string;
|
|
2001
|
+
createdAt: string;
|
|
2002
|
+
name: string | null;
|
|
2003
|
+
description: string | null;
|
|
2004
|
+
imageAssetId: string | null;
|
|
2005
|
+
};
|
|
2006
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
2007
|
+
ok: boolean;
|
|
2008
|
+
txHash: string;
|
|
2009
|
+
};
|
|
1490
2010
|
type NotificationListResponse = {
|
|
1491
2011
|
notifications: Array<NotificationItem>;
|
|
1492
2012
|
unreadCount: number;
|
|
@@ -1515,6 +2035,18 @@ type NotificationItem = {
|
|
|
1515
2035
|
payload: AppPageRejectedNotificationPayload;
|
|
1516
2036
|
read: boolean;
|
|
1517
2037
|
createdAt: string;
|
|
2038
|
+
} | {
|
|
2039
|
+
id: string;
|
|
2040
|
+
kind: "bip_update_published";
|
|
2041
|
+
payload: BipUpdatePublishedNotificationPayload;
|
|
2042
|
+
read: boolean;
|
|
2043
|
+
createdAt: string;
|
|
2044
|
+
} | {
|
|
2045
|
+
id: string;
|
|
2046
|
+
kind: "bip_now_playable";
|
|
2047
|
+
payload: BipNowPlayableNotificationPayload;
|
|
2048
|
+
read: boolean;
|
|
2049
|
+
createdAt: string;
|
|
1518
2050
|
} | {
|
|
1519
2051
|
id: string;
|
|
1520
2052
|
kind: "app_participant_invite";
|
|
@@ -1545,14 +2077,25 @@ type FriendAcceptedNotificationPayload = {
|
|
|
1545
2077
|
type AppPageApprovedNotificationPayload = {
|
|
1546
2078
|
appId: string;
|
|
1547
2079
|
appName: string;
|
|
1548
|
-
scope: "publish" | "changes";
|
|
2080
|
+
scope: "publish" | "changes" | "bip_publish";
|
|
1549
2081
|
};
|
|
1550
2082
|
type AppPageRejectedNotificationPayload = {
|
|
1551
2083
|
appId: string;
|
|
1552
2084
|
appName: string;
|
|
1553
|
-
scope: "publish" | "changes";
|
|
2085
|
+
scope: "publish" | "changes" | "bip_publish";
|
|
1554
2086
|
notes: string;
|
|
1555
2087
|
};
|
|
2088
|
+
type BipUpdatePublishedNotificationPayload = {
|
|
2089
|
+
appId: string;
|
|
2090
|
+
appName: string;
|
|
2091
|
+
appSlug: string | null;
|
|
2092
|
+
updateId: string;
|
|
2093
|
+
};
|
|
2094
|
+
type BipNowPlayableNotificationPayload = {
|
|
2095
|
+
appId: string;
|
|
2096
|
+
appName: string;
|
|
2097
|
+
appSlug: string | null;
|
|
2098
|
+
};
|
|
1556
2099
|
type AppParticipantInviteNotificationPayload = {
|
|
1557
2100
|
appId: string;
|
|
1558
2101
|
appName: string;
|
|
@@ -1582,6 +2125,9 @@ type FriendListItem = {
|
|
|
1582
2125
|
onlineStatus: OnlineStatus;
|
|
1583
2126
|
};
|
|
1584
2127
|
type OnlineStatus = "online" | "offline";
|
|
2128
|
+
type AppFriendListResponse = {
|
|
2129
|
+
friends: Array<ThreadParticipant>;
|
|
2130
|
+
};
|
|
1585
2131
|
type FriendRequestDecision = {
|
|
1586
2132
|
decision: "accept" | "reject";
|
|
1587
2133
|
};
|
|
@@ -1654,7 +2200,7 @@ type ProfileRecentReview = {
|
|
|
1654
2200
|
appId: string;
|
|
1655
2201
|
appName: string;
|
|
1656
2202
|
appLogoUrl: string | null;
|
|
1657
|
-
|
|
2203
|
+
recommended: boolean;
|
|
1658
2204
|
body: string;
|
|
1659
2205
|
createdAt: string;
|
|
1660
2206
|
};
|
|
@@ -1711,17 +2257,20 @@ type CreateDeveloperAppChain = {
|
|
|
1711
2257
|
};
|
|
1712
2258
|
type UpdateDeveloperApp = {
|
|
1713
2259
|
name?: DeveloperAppName;
|
|
2260
|
+
slug?: AppPageSlug | null;
|
|
1714
2261
|
logoUrl?: string | null;
|
|
1715
2262
|
testAccess?: "private" | "public";
|
|
1716
2263
|
redirectUris?: Array<string>;
|
|
1717
2264
|
embedOrigins?: Array<EmbedOrigin>;
|
|
1718
2265
|
acceptedCurrencies?: AcceptedCurrencies;
|
|
2266
|
+
acceptedNetworks?: AcceptedNetworks;
|
|
1719
2267
|
paymentStatusWebhookUrl?: string | null;
|
|
1720
2268
|
paymentStatusWebhookUrlTest?: string | null;
|
|
1721
2269
|
};
|
|
1722
2270
|
type EmbedOrigin = string;
|
|
1723
2271
|
type AcceptedCurrencies = Array<PlatformCurrency>;
|
|
1724
2272
|
type PlatformCurrency = "eth" | "tron";
|
|
2273
|
+
type AcceptedNetworks = Array<PaymentNetwork> | null;
|
|
1725
2274
|
type DeveloperLogoUploadResponse = {
|
|
1726
2275
|
logoUrl: string | null;
|
|
1727
2276
|
};
|
|
@@ -1959,6 +2508,7 @@ type DeveloperProductionRequestPayload = {
|
|
|
1959
2508
|
type DeveloperAppItem = {
|
|
1960
2509
|
id: string;
|
|
1961
2510
|
name: DeveloperAppName;
|
|
2511
|
+
slug: AppPageSlug | null;
|
|
1962
2512
|
logoUrl: string | null;
|
|
1963
2513
|
environment: "development" | "production";
|
|
1964
2514
|
productionApprovedAt: string | null;
|
|
@@ -1967,6 +2517,7 @@ type DeveloperAppItem = {
|
|
|
1967
2517
|
redirectUris: Array<string>;
|
|
1968
2518
|
embedOrigins: Array<EmbedOrigin>;
|
|
1969
2519
|
acceptedCurrencies: AcceptedCurrencies;
|
|
2520
|
+
acceptedNetworks: AcceptedNetworks;
|
|
1970
2521
|
payoutAddresses: Array<DeveloperAppPayoutAddressItem>;
|
|
1971
2522
|
keys: Array<DeveloperAppKeyItem>;
|
|
1972
2523
|
pendingProductionRequestId: string | null;
|
|
@@ -2021,9 +2572,18 @@ type AppPageDraft = {
|
|
|
2021
2572
|
hiddenAt: string | null;
|
|
2022
2573
|
hiddenReasonPublic: string | null;
|
|
2023
2574
|
pendingReview: boolean;
|
|
2575
|
+
bip: AppPageBipState;
|
|
2576
|
+
};
|
|
2577
|
+
type AppPageBipState = {
|
|
2578
|
+
enabled: boolean;
|
|
2579
|
+
status: "draft" | "pending_review" | "published" | "hidden";
|
|
2580
|
+
firstPublishedAt: string | null;
|
|
2581
|
+
reviewedAt: string | null;
|
|
2582
|
+
reviewNotes: string | null;
|
|
2583
|
+
hiddenAt: string | null;
|
|
2584
|
+
hiddenReasonPublic: string | null;
|
|
2024
2585
|
};
|
|
2025
2586
|
type UpdateAppPage = {
|
|
2026
|
-
slug?: AppPageSlug | null;
|
|
2027
2587
|
categories?: AppPageCategories;
|
|
2028
2588
|
tagline?: AppPageTagline | null;
|
|
2029
2589
|
bannerUrl?: string | null;
|
|
@@ -2046,6 +2606,9 @@ type UpdateAppPage = {
|
|
|
2046
2606
|
type AppPageGalleryUploadResponse = {
|
|
2047
2607
|
url: string;
|
|
2048
2608
|
};
|
|
2609
|
+
type AppPageBipToggle = {
|
|
2610
|
+
enabled: boolean;
|
|
2611
|
+
};
|
|
2049
2612
|
type AdminActivePlayersResponse = {
|
|
2050
2613
|
players: Array<AdminActivePlayer>;
|
|
2051
2614
|
total: number;
|
|
@@ -2184,6 +2747,11 @@ type AdminAppPageItem = {
|
|
|
2184
2747
|
hiddenAt: string | null;
|
|
2185
2748
|
hiddenReasonInternal: string | null;
|
|
2186
2749
|
pendingChangesSubmittedAt: string | null;
|
|
2750
|
+
bipEnabled: boolean;
|
|
2751
|
+
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2752
|
+
bipFirstPublishedAt: string | null;
|
|
2753
|
+
bipHiddenAt: string | null;
|
|
2754
|
+
openReportCount: number;
|
|
2187
2755
|
};
|
|
2188
2756
|
type AdminAppPageStatusResponse = {
|
|
2189
2757
|
status: "draft" | "pending_review" | "published" | "hidden";
|
|
@@ -2209,6 +2777,25 @@ type AdminAppPageDiffField = {
|
|
|
2209
2777
|
from: string;
|
|
2210
2778
|
to: string;
|
|
2211
2779
|
};
|
|
2780
|
+
type AdminAppPageBipStatusResponse = {
|
|
2781
|
+
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2782
|
+
};
|
|
2783
|
+
type AdminAppContentReportListResponse = {
|
|
2784
|
+
reports: Array<AdminAppContentReportItem>;
|
|
2785
|
+
total: number;
|
|
2786
|
+
hasMore: boolean;
|
|
2787
|
+
};
|
|
2788
|
+
type AdminAppContentReportItem = {
|
|
2789
|
+
id: string;
|
|
2790
|
+
category: AppContentReportCategory;
|
|
2791
|
+
details: string | null;
|
|
2792
|
+
status: AppContentReportStatus;
|
|
2793
|
+
acknowledgedAt: string | null;
|
|
2794
|
+
createdAt: string;
|
|
2795
|
+
appId: string;
|
|
2796
|
+
appName: string;
|
|
2797
|
+
appSlug: string | null;
|
|
2798
|
+
};
|
|
2212
2799
|
type PlatformFeesResponse = {
|
|
2213
2800
|
purchaseFeeBps: number;
|
|
2214
2801
|
stakeFeeBps: number;
|
|
@@ -2437,7 +3024,7 @@ type OauthPaymentPayoutRequest = {
|
|
|
2437
3024
|
metadata?: PaymentMetadata;
|
|
2438
3025
|
};
|
|
2439
3026
|
type OauthPaymentDistributeResponse = {
|
|
2440
|
-
distributionId
|
|
3027
|
+
distributionId?: string;
|
|
2441
3028
|
txHash: string;
|
|
2442
3029
|
blockNumber: string;
|
|
2443
3030
|
potId: string;
|
|
@@ -2560,7 +3147,7 @@ declare function listActivePlayers(context: TransportContext, input: {
|
|
|
2560
3147
|
//#region src/admin/app-pages.d.ts
|
|
2561
3148
|
declare function listAppPages(context: TransportContext, input: {
|
|
2562
3149
|
readonly bearer: string;
|
|
2563
|
-
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes";
|
|
3150
|
+
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes" | "bip_pending_review";
|
|
2564
3151
|
}): Promise<AdminAppPageListResponse>;
|
|
2565
3152
|
declare function getAppPageChanges(context: TransportContext, input: {
|
|
2566
3153
|
readonly bearer: string;
|
|
@@ -2585,6 +3172,20 @@ declare function reviewAppPage(context: TransportContext, input: {
|
|
|
2585
3172
|
readonly appId: string;
|
|
2586
3173
|
readonly body: ReviewAppPage;
|
|
2587
3174
|
}): Promise<AdminAppPageStatusResponse>;
|
|
3175
|
+
declare function reviewAppPageBip(context: TransportContext, input: {
|
|
3176
|
+
readonly bearer: string;
|
|
3177
|
+
readonly appId: string;
|
|
3178
|
+
readonly body: ReviewAppPage;
|
|
3179
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
3180
|
+
declare function hideAppPageBip(context: TransportContext, input: {
|
|
3181
|
+
readonly bearer: string;
|
|
3182
|
+
readonly appId: string;
|
|
3183
|
+
readonly body: HideAppPage;
|
|
3184
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
3185
|
+
declare function unhideAppPageBip(context: TransportContext, input: {
|
|
3186
|
+
readonly bearer: string;
|
|
3187
|
+
readonly appId: string;
|
|
3188
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
2588
3189
|
//#endregion
|
|
2589
3190
|
//#region src/admin/appeals.d.ts
|
|
2590
3191
|
declare function listAppealQueue(context: TransportContext, input: {
|
|
@@ -2616,6 +3217,19 @@ declare function resolveAppeal(context: TransportContext, input: {
|
|
|
2616
3217
|
readonly body: AppealResolveRequest;
|
|
2617
3218
|
}): Promise<AppealResolveSignedResponse>;
|
|
2618
3219
|
//#endregion
|
|
3220
|
+
//#region src/admin/content-reports.d.ts
|
|
3221
|
+
declare function listAdminContentReports(context: TransportContext, input: {
|
|
3222
|
+
readonly bearer: string;
|
|
3223
|
+
readonly status?: "open" | "acknowledged" | "dismissed" | "all";
|
|
3224
|
+
readonly limit?: number;
|
|
3225
|
+
readonly offset?: number;
|
|
3226
|
+
}): Promise<AdminAppContentReportListResponse>;
|
|
3227
|
+
declare function triageAdminContentReport(context: TransportContext, input: {
|
|
3228
|
+
readonly bearer: string;
|
|
3229
|
+
readonly reportId: string;
|
|
3230
|
+
readonly status: "acknowledged" | "dismissed";
|
|
3231
|
+
}): Promise<AppContentReport>;
|
|
3232
|
+
//#endregion
|
|
2619
3233
|
//#region src/admin/developers.d.ts
|
|
2620
3234
|
declare function listDeveloperRequests(context: TransportContext, input: {
|
|
2621
3235
|
readonly bearer: string;
|
|
@@ -2631,6 +3245,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2631
3245
|
readonly bearer: string;
|
|
2632
3246
|
}): Promise<AdminDeveloperListResponse>;
|
|
2633
3247
|
//#endregion
|
|
3248
|
+
//#region src/admin/inventory-vault.d.ts
|
|
3249
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
3250
|
+
readonly bearer: string;
|
|
3251
|
+
readonly custodyId: string;
|
|
3252
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
3253
|
+
//#endregion
|
|
2634
3254
|
//#region src/admin/payments.d.ts
|
|
2635
3255
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2636
3256
|
readonly bearer: string;
|
|
@@ -2749,6 +3369,102 @@ declare function getAppPage(context: TransportContext, input: {
|
|
|
2749
3369
|
readonly slug: string;
|
|
2750
3370
|
}): Promise<PublicAppPage>;
|
|
2751
3371
|
//#endregion
|
|
3372
|
+
//#region src/catalog/bip-updates.d.ts
|
|
3373
|
+
declare function listBipUpdates(context: TransportContext, input: {
|
|
3374
|
+
readonly bearer?: string;
|
|
3375
|
+
readonly slug: string;
|
|
3376
|
+
readonly limit?: number;
|
|
3377
|
+
readonly offset?: number;
|
|
3378
|
+
}): Promise<BipUpdateListResponse>;
|
|
3379
|
+
declare function listBipUpdateComments(context: TransportContext, input: {
|
|
3380
|
+
readonly bearer?: string;
|
|
3381
|
+
readonly slug: string;
|
|
3382
|
+
readonly updateId: string;
|
|
3383
|
+
readonly limit?: number;
|
|
3384
|
+
readonly offset?: number;
|
|
3385
|
+
}): Promise<BipUpdateCommentListResponse>;
|
|
3386
|
+
declare function getMyBipUpdateReactions(context: TransportContext, input: {
|
|
3387
|
+
readonly bearer: string;
|
|
3388
|
+
readonly slug: string;
|
|
3389
|
+
}): Promise<MyBipUpdateReactionsResponse>;
|
|
3390
|
+
declare function setBipUpdateReaction(context: TransportContext, input: {
|
|
3391
|
+
readonly bearer: string;
|
|
3392
|
+
readonly slug: string;
|
|
3393
|
+
readonly updateId: string;
|
|
3394
|
+
readonly body: SetBipUpdateReactionRequest;
|
|
3395
|
+
}): Promise<SetBipUpdateReactionResponse>;
|
|
3396
|
+
declare function commentOnBipUpdate(context: TransportContext, input: {
|
|
3397
|
+
readonly bearer: string;
|
|
3398
|
+
readonly slug: string;
|
|
3399
|
+
readonly updateId: string;
|
|
3400
|
+
readonly body: string;
|
|
3401
|
+
}): Promise<CreateBipUpdateCommentResponse>;
|
|
3402
|
+
declare function deleteBipUpdateComment(context: TransportContext, input: {
|
|
3403
|
+
readonly bearer: string;
|
|
3404
|
+
readonly slug: string;
|
|
3405
|
+
readonly commentId: string;
|
|
3406
|
+
}): Promise<DeleteBipUpdateCommentResponse>;
|
|
3407
|
+
declare function listDeveloperBipUpdates(context: TransportContext, input: {
|
|
3408
|
+
readonly bearer: string;
|
|
3409
|
+
readonly appId: string;
|
|
3410
|
+
readonly limit?: number;
|
|
3411
|
+
readonly offset?: number;
|
|
3412
|
+
}): Promise<BipUpdateListResponse>;
|
|
3413
|
+
declare function createBipUpdate(context: TransportContext, input: {
|
|
3414
|
+
readonly bearer: string;
|
|
3415
|
+
readonly appId: string;
|
|
3416
|
+
readonly body: CreateBipUpdateRequest;
|
|
3417
|
+
}): Promise<BipUpdate>;
|
|
3418
|
+
declare function updateBipUpdate(context: TransportContext, input: {
|
|
3419
|
+
readonly bearer: string;
|
|
3420
|
+
readonly appId: string;
|
|
3421
|
+
readonly updateId: string;
|
|
3422
|
+
readonly body: UpdateBipUpdateRequest;
|
|
3423
|
+
}): Promise<BipUpdate>;
|
|
3424
|
+
declare function deleteBipUpdate(context: TransportContext, input: {
|
|
3425
|
+
readonly bearer: string;
|
|
3426
|
+
readonly appId: string;
|
|
3427
|
+
readonly updateId: string;
|
|
3428
|
+
}): Promise<DeleteBipUpdateResponse>;
|
|
3429
|
+
declare function uploadBipUpdateMedia(context: TransportContext, input: {
|
|
3430
|
+
readonly bearer: string;
|
|
3431
|
+
readonly appId: string;
|
|
3432
|
+
readonly file: Blob;
|
|
3433
|
+
readonly filename: string;
|
|
3434
|
+
readonly contentType: string;
|
|
3435
|
+
}): Promise<BipUpdateMediaUploadResponse>;
|
|
3436
|
+
declare function getBipInterestCount(context: TransportContext, input: {
|
|
3437
|
+
readonly bearer?: string;
|
|
3438
|
+
readonly slug: string;
|
|
3439
|
+
}): Promise<BipInterestCountResponse>;
|
|
3440
|
+
declare function getMyBipEngagement(context: TransportContext, input: {
|
|
3441
|
+
readonly bearer: string;
|
|
3442
|
+
readonly slug: string;
|
|
3443
|
+
}): Promise<BipEngagementResponse>;
|
|
3444
|
+
declare function registerBipInterest(context: TransportContext, input: {
|
|
3445
|
+
readonly bearer: string;
|
|
3446
|
+
readonly slug: string;
|
|
3447
|
+
readonly interested: boolean;
|
|
3448
|
+
}): Promise<BipEngagementResponse>;
|
|
3449
|
+
declare function subscribeBipUpdates(context: TransportContext, input: {
|
|
3450
|
+
readonly bearer: string;
|
|
3451
|
+
readonly slug: string;
|
|
3452
|
+
readonly subscribed: boolean;
|
|
3453
|
+
}): Promise<BipEngagementResponse>;
|
|
3454
|
+
//#endregion
|
|
3455
|
+
//#region src/catalog/build-in-public.d.ts
|
|
3456
|
+
declare function getBipDirectory(context: TransportContext, input: {
|
|
3457
|
+
readonly bearer?: string;
|
|
3458
|
+
readonly genre?: string;
|
|
3459
|
+
readonly q?: string;
|
|
3460
|
+
readonly before?: string;
|
|
3461
|
+
readonly limit?: number;
|
|
3462
|
+
}): Promise<LibraryListResponse>;
|
|
3463
|
+
declare function getBipPage(context: TransportContext, input: {
|
|
3464
|
+
readonly bearer?: string;
|
|
3465
|
+
readonly slug: string;
|
|
3466
|
+
}): Promise<PublicBipPage>;
|
|
3467
|
+
//#endregion
|
|
2752
3468
|
//#region src/catalog/content-reports.d.ts
|
|
2753
3469
|
declare function submitAppContentReport(context: TransportContext, input: {
|
|
2754
3470
|
readonly appId: string;
|
|
@@ -2793,6 +3509,41 @@ declare function deleteMyGameReview(context: TransportContext, input: {
|
|
|
2793
3509
|
readonly slug: string;
|
|
2794
3510
|
readonly bearer: string;
|
|
2795
3511
|
}): Promise<MyReviewResponse>;
|
|
3512
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3513
|
+
readonly slug: string;
|
|
3514
|
+
readonly bearer: string;
|
|
3515
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3516
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3517
|
+
readonly slug: string;
|
|
3518
|
+
readonly reviewId: string;
|
|
3519
|
+
readonly bearer: string;
|
|
3520
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3521
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3522
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3523
|
+
readonly slug: string;
|
|
3524
|
+
readonly reviewId: string;
|
|
3525
|
+
readonly bearer: string;
|
|
3526
|
+
readonly tip: TipReviewRequest;
|
|
3527
|
+
readonly idempotencyKey?: string;
|
|
3528
|
+
}): Promise<TipReviewResponse>;
|
|
3529
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3530
|
+
readonly slug: string;
|
|
3531
|
+
readonly reviewId: string;
|
|
3532
|
+
readonly bearer?: string;
|
|
3533
|
+
readonly limit?: number;
|
|
3534
|
+
readonly offset?: number;
|
|
3535
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3536
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3537
|
+
readonly slug: string;
|
|
3538
|
+
readonly reviewId: string;
|
|
3539
|
+
readonly bearer: string;
|
|
3540
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3541
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3542
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3543
|
+
readonly slug: string;
|
|
3544
|
+
readonly commentId: string;
|
|
3545
|
+
readonly bearer: string;
|
|
3546
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2796
3547
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2797
3548
|
readonly appId: string;
|
|
2798
3549
|
readonly reviewId: string;
|
|
@@ -3021,6 +3772,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
3021
3772
|
readonly status: "acknowledged" | "dismissed";
|
|
3022
3773
|
}): Promise<AppContentReport>;
|
|
3023
3774
|
//#endregion
|
|
3775
|
+
//#region src/developer/inventory.d.ts
|
|
3776
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3777
|
+
readonly bearer: string;
|
|
3778
|
+
readonly appId: string;
|
|
3779
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3780
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3781
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3782
|
+
readonly bearer: string;
|
|
3783
|
+
readonly appId: string;
|
|
3784
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3785
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3786
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3787
|
+
readonly bearer: string;
|
|
3788
|
+
readonly appId: string;
|
|
3789
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3790
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3791
|
+
readonly bearer: string;
|
|
3792
|
+
readonly appId: string;
|
|
3793
|
+
}): Promise<InventoryItemListResponse>;
|
|
3794
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3795
|
+
readonly bearer: string;
|
|
3796
|
+
readonly appId: string;
|
|
3797
|
+
readonly itemId: string;
|
|
3798
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3799
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3800
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3801
|
+
readonly bearer: string;
|
|
3802
|
+
readonly appId: string;
|
|
3803
|
+
readonly itemId: string;
|
|
3804
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3805
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3806
|
+
readonly bearer: string;
|
|
3807
|
+
readonly appId: string;
|
|
3808
|
+
readonly itemId: string;
|
|
3809
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3810
|
+
readonly filename: string;
|
|
3811
|
+
readonly contentType: string;
|
|
3812
|
+
}): Promise<InventoryItemRecord>;
|
|
3813
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3814
|
+
readonly bearer: string;
|
|
3815
|
+
readonly appId: string;
|
|
3816
|
+
readonly itemId: string;
|
|
3817
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3818
|
+
readonly filename: string;
|
|
3819
|
+
readonly contentType: string;
|
|
3820
|
+
}): Promise<InventoryItemRecord>;
|
|
3821
|
+
//#endregion
|
|
3024
3822
|
//#region src/developer/pages.d.ts
|
|
3025
3823
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
3026
3824
|
readonly bearer: string;
|
|
@@ -3079,6 +3877,19 @@ declare function unpublishAppPage(context: TransportContext, input: {
|
|
|
3079
3877
|
readonly bearer: string;
|
|
3080
3878
|
readonly appId: string;
|
|
3081
3879
|
}): Promise<AppPageDraft>;
|
|
3880
|
+
declare function setAppPageBip(context: TransportContext, input: {
|
|
3881
|
+
readonly bearer: string;
|
|
3882
|
+
readonly appId: string;
|
|
3883
|
+
readonly body: AppPageBipToggle;
|
|
3884
|
+
}): Promise<AppPageDraft>;
|
|
3885
|
+
declare function submitAppPageBipForReview(context: TransportContext, input: {
|
|
3886
|
+
readonly bearer: string;
|
|
3887
|
+
readonly appId: string;
|
|
3888
|
+
}): Promise<AppPageDraft>;
|
|
3889
|
+
declare function unpublishAppPageBip(context: TransportContext, input: {
|
|
3890
|
+
readonly bearer: string;
|
|
3891
|
+
readonly appId: string;
|
|
3892
|
+
}): Promise<AppPageDraft>;
|
|
3082
3893
|
//#endregion
|
|
3083
3894
|
//#region src/developer/participants.d.ts
|
|
3084
3895
|
declare function listDeveloperAppParticipants(context: TransportContext, input: {
|
|
@@ -3145,6 +3956,68 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
3145
3956
|
readonly contentType: string;
|
|
3146
3957
|
}): Promise<unknown>;
|
|
3147
3958
|
//#endregion
|
|
3959
|
+
//#region src/developer/vault.d.ts
|
|
3960
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3961
|
+
readonly bearer: string;
|
|
3962
|
+
readonly appId: string;
|
|
3963
|
+
readonly itemId: string;
|
|
3964
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3965
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3966
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3967
|
+
readonly bearer: string;
|
|
3968
|
+
readonly appId: string;
|
|
3969
|
+
readonly itemId: string;
|
|
3970
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3971
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3972
|
+
//#endregion
|
|
3973
|
+
//#region src/events/inventory-socket.d.ts
|
|
3974
|
+
declare const inventoryUpdateEventSchema: z.ZodObject<{
|
|
3975
|
+
event: z.ZodLiteral<"inventory.updated">;
|
|
3976
|
+
deliveredAt: z.ZodString;
|
|
3977
|
+
environment: z.ZodEnum<{
|
|
3978
|
+
development: "development";
|
|
3979
|
+
production: "production";
|
|
3980
|
+
}>;
|
|
3981
|
+
subject: z.ZodString;
|
|
3982
|
+
collectionId: z.ZodString;
|
|
3983
|
+
collectionAddress: z.ZodString;
|
|
3984
|
+
chain: z.ZodString;
|
|
3985
|
+
kind: z.ZodEnum<{
|
|
3986
|
+
erc721: "erc721";
|
|
3987
|
+
erc1155: "erc1155";
|
|
3988
|
+
}>;
|
|
3989
|
+
tokenId: z.ZodString;
|
|
3990
|
+
direction: z.ZodEnum<{
|
|
3991
|
+
credit: "credit";
|
|
3992
|
+
debit: "debit";
|
|
3993
|
+
}>;
|
|
3994
|
+
amount: z.ZodString;
|
|
3995
|
+
balance: z.ZodString;
|
|
3996
|
+
}, z.core.$strip>;
|
|
3997
|
+
type InventoryUpdateEvent = z.infer<typeof inventoryUpdateEventSchema>;
|
|
3998
|
+
type OauthInventoryEventsSubscriberLifecycle = {
|
|
3999
|
+
onOpen?: () => void;
|
|
4000
|
+
onSubscribed?: (appId: string) => void;
|
|
4001
|
+
onMessage: (body: InventoryUpdateEvent) => void | Promise<void>;
|
|
4002
|
+
onClose?: (error: TronWsCloseError) => void;
|
|
4003
|
+
onError?: (error: Error) => void;
|
|
4004
|
+
};
|
|
4005
|
+
type OauthInventoryEventsSubscriberOptions = {
|
|
4006
|
+
readonly issuer: string;
|
|
4007
|
+
readonly clientId: string;
|
|
4008
|
+
readonly clientSecret: string;
|
|
4009
|
+
readonly logger?: Logger;
|
|
4010
|
+
readonly lifecycle: OauthInventoryEventsSubscriberLifecycle;
|
|
4011
|
+
readonly initialBackoffMs?: number;
|
|
4012
|
+
readonly maxBackoffMs?: number;
|
|
4013
|
+
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
4014
|
+
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
4015
|
+
};
|
|
4016
|
+
type OauthInventoryEventsSubscriber = {
|
|
4017
|
+
readonly stop: () => void;
|
|
4018
|
+
};
|
|
4019
|
+
declare function startOauthInventoryEventsSubscriber(options: OauthInventoryEventsSubscriberOptions): OauthInventoryEventsSubscriber;
|
|
4020
|
+
//#endregion
|
|
3148
4021
|
//#region src/webhook/verify.d.ts
|
|
3149
4022
|
declare const oauthPaymentWebhookBodySchema: z.ZodObject<{
|
|
3150
4023
|
event: z.ZodEnum<{
|
|
@@ -3219,6 +4092,7 @@ type OauthPaymentEventsSubscriberOptions = {
|
|
|
3219
4092
|
readonly maxBackoffMs?: number;
|
|
3220
4093
|
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3221
4094
|
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
4095
|
+
readonly disableEventAck?: boolean;
|
|
3222
4096
|
};
|
|
3223
4097
|
type OauthPaymentEventsSubscriber = {
|
|
3224
4098
|
readonly stop: () => void;
|
|
@@ -3233,12 +4107,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
3233
4107
|
readonly bearer: string;
|
|
3234
4108
|
}): Promise<InventoryListResponse>;
|
|
3235
4109
|
//#endregion
|
|
4110
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
4111
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
4112
|
+
readonly bearer: string;
|
|
4113
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
4114
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
4115
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
4116
|
+
readonly bearer: string;
|
|
4117
|
+
readonly body: InventoryNftTransferRequest;
|
|
4118
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
4119
|
+
//#endregion
|
|
4120
|
+
//#region src/inventory/permits.d.ts
|
|
4121
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
4122
|
+
readonly bearer: string;
|
|
4123
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
4124
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
4125
|
+
readonly bearer: string;
|
|
4126
|
+
readonly permitId: string;
|
|
4127
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
4128
|
+
//#endregion
|
|
3236
4129
|
//#region src/inventory/request-mint.d.ts
|
|
3237
4130
|
declare function requestMint(context: TransportContext, input: {
|
|
3238
4131
|
readonly appBearer: string;
|
|
3239
4132
|
readonly body: MintRequestInput;
|
|
3240
4133
|
}): Promise<MintRequestResult>;
|
|
3241
4134
|
//#endregion
|
|
4135
|
+
//#region src/inventory/vault.d.ts
|
|
4136
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
4137
|
+
readonly bearer: string;
|
|
4138
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
4139
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
4140
|
+
readonly bearer: string;
|
|
4141
|
+
readonly permitId: string;
|
|
4142
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
4143
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
4144
|
+
readonly bearer: string;
|
|
4145
|
+
readonly permitId: string;
|
|
4146
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
4147
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
4148
|
+
readonly bearer: string;
|
|
4149
|
+
readonly permitId: string;
|
|
4150
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
4151
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
4152
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
4153
|
+
readonly bearer: string;
|
|
4154
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
4155
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
4156
|
+
readonly bearer: string;
|
|
4157
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
4158
|
+
//#endregion
|
|
3242
4159
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3243
4160
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3244
4161
|
readonly bearer: string;
|
|
@@ -3558,6 +4475,17 @@ declare function createTronTransfer(context: TransportContext, input: {
|
|
|
3558
4475
|
readonly body: TronTransferRequest;
|
|
3559
4476
|
readonly idempotencyKey?: string;
|
|
3560
4477
|
}): Promise<TronTransferResponse>;
|
|
4478
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
4479
|
+
readonly bearer: string;
|
|
4480
|
+
}): Promise<TronSecuritySetting>;
|
|
4481
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
4482
|
+
readonly bearer: string;
|
|
4483
|
+
readonly setting: TronSecuritySetting;
|
|
4484
|
+
}): Promise<TronSecuritySetting>;
|
|
4485
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
4486
|
+
readonly bearer: string;
|
|
4487
|
+
readonly body: TronTransferChallengeRequest;
|
|
4488
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3561
4489
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3562
4490
|
readonly bearer: string;
|
|
3563
4491
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3732,6 +4660,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3732
4660
|
readonly bearer: string;
|
|
3733
4661
|
readonly userId: string;
|
|
3734
4662
|
}): Promise<void>;
|
|
4663
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
4664
|
+
readonly bearer: string;
|
|
4665
|
+
readonly userId: string;
|
|
4666
|
+
}): Promise<void>;
|
|
3735
4667
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3736
4668
|
readonly bearer: string;
|
|
3737
4669
|
readonly requestId: string;
|
|
@@ -3744,6 +4676,9 @@ declare function cancelFriendRequest(context: TransportContext, input: {
|
|
|
3744
4676
|
declare function listFriends(context: TransportContext, input: {
|
|
3745
4677
|
readonly bearer: string;
|
|
3746
4678
|
}): Promise<FriendListResponse>;
|
|
4679
|
+
declare function listFriendsForApp(context: TransportContext, input: {
|
|
4680
|
+
readonly bearer: string;
|
|
4681
|
+
}): Promise<AppFriendListResponse>;
|
|
3747
4682
|
//#endregion
|
|
3748
4683
|
//#region src/reads/socials.d.ts
|
|
3749
4684
|
declare function listSocials(context: TransportContext, input: {
|
|
@@ -3870,6 +4805,7 @@ declare class TronNodeClient {
|
|
|
3870
4805
|
};
|
|
3871
4806
|
};
|
|
3872
4807
|
subscribeOauthPaymentEvents(lifecycle: OauthPaymentEventsSubscriberLifecycle): OauthPaymentEventsSubscriber;
|
|
4808
|
+
subscribeOauthInventoryEvents(lifecycle: OauthInventoryEventsSubscriberLifecycle): OauthInventoryEventsSubscriber;
|
|
3873
4809
|
get users(): {
|
|
3874
4810
|
get: (input: {
|
|
3875
4811
|
bearer?: string;
|
|
@@ -3970,6 +4906,11 @@ declare class TronNodeClient {
|
|
|
3970
4906
|
body: MintRequestInput;
|
|
3971
4907
|
}) => Promise<MintRequestResult>;
|
|
3972
4908
|
};
|
|
4909
|
+
get friends(): {
|
|
4910
|
+
list: (input: {
|
|
4911
|
+
bearer: string;
|
|
4912
|
+
}) => Promise<AppFriendListResponse>;
|
|
4913
|
+
};
|
|
3973
4914
|
get socials(): {
|
|
3974
4915
|
list: (input: {
|
|
3975
4916
|
bearer: string;
|
|
@@ -3991,4 +4932,4 @@ declare class TronNodeClient {
|
|
|
3991
4932
|
};
|
|
3992
4933
|
}
|
|
3993
4934
|
//#endregion
|
|
3994
|
-
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, createTronTransfer, 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 };
|
|
4935
|
+
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 };
|