@metatrongg/sdk 0.8.0-dev.17481b6 → 0.8.0-dev.18f8137
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 +634 -18
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +7382 -3000
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +684 -18
- 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
|
@@ -288,6 +288,7 @@ type OauthPaymentIntentContext = {
|
|
|
288
288
|
studioXHandle: string | null;
|
|
289
289
|
};
|
|
290
290
|
} | null;
|
|
291
|
+
environment: "development" | "production";
|
|
291
292
|
};
|
|
292
293
|
type OauthPaymentIntentSignResponse = {
|
|
293
294
|
chain: string;
|
|
@@ -376,9 +377,16 @@ type PublicAppPage = {
|
|
|
376
377
|
chapters: AppPageChapters;
|
|
377
378
|
links: AppPageLinks;
|
|
378
379
|
studio: PublicAppPageStudio;
|
|
380
|
+
platforms: AppPagePlatforms;
|
|
381
|
+
gameType: AppPageGameType;
|
|
382
|
+
ageRating: AppPageAgeRating;
|
|
383
|
+
languages: AppPageLanguages;
|
|
384
|
+
releaseStatus: AppPageReleaseStatus;
|
|
385
|
+
paymentsMode: AppPagePaymentsMode;
|
|
379
386
|
oauthScopes: Array<string>;
|
|
380
387
|
chains: Array<string>;
|
|
381
388
|
publishedAt: string;
|
|
389
|
+
updatedAt: string;
|
|
382
390
|
};
|
|
383
391
|
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
392
|
type AppPageTagline = string;
|
|
@@ -401,12 +409,19 @@ type AppPageLink = {
|
|
|
401
409
|
order: number;
|
|
402
410
|
};
|
|
403
411
|
type PublicAppPageStudio = {
|
|
412
|
+
ownerUserId: string | null;
|
|
404
413
|
name: string | null;
|
|
405
414
|
logoUrl: string | null;
|
|
406
415
|
websiteUrl: string | null;
|
|
407
416
|
xHandle: string | null;
|
|
408
417
|
githubUrl: string | null;
|
|
409
418
|
};
|
|
419
|
+
type AppPagePlatforms = Array<"web" | "ios" | "android" | "pc" | "playstation" | "xbox" | "switch">;
|
|
420
|
+
type AppPageGameType = "single_player" | "multiplayer" | "both" | null;
|
|
421
|
+
type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
|
|
422
|
+
type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
|
|
423
|
+
type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
|
|
424
|
+
type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
|
|
410
425
|
type ReviewListResponse = {
|
|
411
426
|
aggregate: ReviewAggregate;
|
|
412
427
|
reviews: Array<Review>;
|
|
@@ -414,38 +429,49 @@ type ReviewListResponse = {
|
|
|
414
429
|
hasMore: boolean;
|
|
415
430
|
};
|
|
416
431
|
type ReviewAggregate = {
|
|
417
|
-
average: number | null;
|
|
418
432
|
count: number;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
1: number;
|
|
423
|
-
2: number;
|
|
424
|
-
3: number;
|
|
425
|
-
4: number;
|
|
426
|
-
5: number;
|
|
433
|
+
recommendedCount: number;
|
|
434
|
+
recommendedPct: number | null;
|
|
435
|
+
summaryLabel: ReviewSummaryLabel;
|
|
427
436
|
};
|
|
437
|
+
type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
|
|
428
438
|
type Review = {
|
|
429
439
|
id: string;
|
|
430
|
-
|
|
440
|
+
recommended: ReviewRecommended;
|
|
431
441
|
body: ReviewBody;
|
|
442
|
+
reactions: ReviewReactionCounts;
|
|
443
|
+
tippedCents: number;
|
|
444
|
+
commentCount: number;
|
|
432
445
|
author: ReviewAuthor;
|
|
446
|
+
authorStats: ReviewerStats;
|
|
433
447
|
developerReply: ReviewReply;
|
|
434
448
|
createdAt: string;
|
|
435
449
|
updatedAt: string;
|
|
436
450
|
};
|
|
437
|
-
type
|
|
451
|
+
type ReviewRecommended = boolean;
|
|
438
452
|
type ReviewBody = string;
|
|
453
|
+
type ReviewReactionCounts = {
|
|
454
|
+
helpful: number;
|
|
455
|
+
unhelpful: number;
|
|
456
|
+
funny: number;
|
|
457
|
+
};
|
|
439
458
|
type ReviewAuthor = {
|
|
459
|
+
userId: string;
|
|
460
|
+
handle: string | null;
|
|
440
461
|
name: string | null;
|
|
441
462
|
avatarUrl: string | null;
|
|
442
463
|
};
|
|
464
|
+
type ReviewerStats = {
|
|
465
|
+
playtimeSecondsThisGame: number;
|
|
466
|
+
gamesPlayed: number;
|
|
467
|
+
reviewsWritten: number;
|
|
468
|
+
};
|
|
443
469
|
type ReviewReply = {
|
|
444
470
|
body: ReviewReplyBody;
|
|
445
471
|
repliedAt: string;
|
|
446
472
|
} | null;
|
|
447
473
|
type ReviewReplyBody = string;
|
|
448
|
-
type ReviewSort = "newest" | "oldest" | "
|
|
474
|
+
type ReviewSort = "newest" | "oldest" | "helpful";
|
|
449
475
|
type MyReviewResponse = {
|
|
450
476
|
eligible: boolean;
|
|
451
477
|
eligibleVia: ReviewEligibilityReason;
|
|
@@ -455,15 +481,67 @@ type MyReviewResponse = {
|
|
|
455
481
|
type ReviewEligibilityReason = "payment" | "reward" | null;
|
|
456
482
|
type OwnReview = {
|
|
457
483
|
id: string;
|
|
458
|
-
|
|
484
|
+
recommended: ReviewRecommended;
|
|
459
485
|
body: ReviewBody;
|
|
460
486
|
createdAt: string;
|
|
461
487
|
updatedAt: string;
|
|
462
488
|
} | null;
|
|
463
489
|
type UpsertReviewRequest = {
|
|
464
|
-
|
|
490
|
+
recommended: ReviewRecommended;
|
|
465
491
|
body: ReviewBody;
|
|
466
492
|
};
|
|
493
|
+
type MyReviewReactionsResponse = {
|
|
494
|
+
reactions: Array<MyReviewReaction>;
|
|
495
|
+
};
|
|
496
|
+
type MyReviewReaction = {
|
|
497
|
+
reviewId: string;
|
|
498
|
+
vote: ReviewVote;
|
|
499
|
+
funny: boolean;
|
|
500
|
+
};
|
|
501
|
+
type ReviewVote = "helpful" | "unhelpful" | null;
|
|
502
|
+
type SetReviewReactionResponse = {
|
|
503
|
+
reactions: ReviewReactionCounts;
|
|
504
|
+
vote: ReviewVote;
|
|
505
|
+
funny: boolean;
|
|
506
|
+
};
|
|
507
|
+
type SetReviewReactionRequest = {
|
|
508
|
+
vote: ReviewVote;
|
|
509
|
+
funny: boolean;
|
|
510
|
+
};
|
|
511
|
+
type TipReviewResponse = {
|
|
512
|
+
status: "completed";
|
|
513
|
+
amountCents: number;
|
|
514
|
+
balanceCents: number;
|
|
515
|
+
tippedCents: number;
|
|
516
|
+
};
|
|
517
|
+
type TipReviewRequest = {
|
|
518
|
+
amountCents: number;
|
|
519
|
+
note?: string;
|
|
520
|
+
challengeId?: string;
|
|
521
|
+
signature?: string;
|
|
522
|
+
};
|
|
523
|
+
type ReviewCommentListResponse = {
|
|
524
|
+
comments: Array<ReviewComment>;
|
|
525
|
+
total: number;
|
|
526
|
+
hasMore: boolean;
|
|
527
|
+
};
|
|
528
|
+
type ReviewComment = {
|
|
529
|
+
id: string;
|
|
530
|
+
body: ReviewCommentBody;
|
|
531
|
+
author: ReviewAuthor;
|
|
532
|
+
createdAt: string;
|
|
533
|
+
};
|
|
534
|
+
type ReviewCommentBody = string;
|
|
535
|
+
type CreateReviewCommentResponse = {
|
|
536
|
+
comment: ReviewComment;
|
|
537
|
+
commentCount: number;
|
|
538
|
+
};
|
|
539
|
+
type CreateReviewCommentRequest = {
|
|
540
|
+
body: ReviewCommentBody;
|
|
541
|
+
};
|
|
542
|
+
type DeleteReviewCommentResponse = {
|
|
543
|
+
commentCount: number;
|
|
544
|
+
};
|
|
467
545
|
type ReviewReplyResponse = {
|
|
468
546
|
developerReply: ReviewReply;
|
|
469
547
|
};
|
|
@@ -568,8 +646,12 @@ type ActivityRow = ({
|
|
|
568
646
|
} & ActivityRowTronPot) | ({
|
|
569
647
|
kind: "tron_cashout";
|
|
570
648
|
} & ActivityRowTronCashout) | ({
|
|
649
|
+
kind: "tron_transfer";
|
|
650
|
+
} & ActivityRowTronTransfer) | ({
|
|
571
651
|
kind: "referral_earning";
|
|
572
|
-
} & ActivityRowReferralEarning)
|
|
652
|
+
} & ActivityRowReferralEarning) | ({
|
|
653
|
+
kind: "nft_charge";
|
|
654
|
+
} & ActivityRowNftCharge);
|
|
573
655
|
type ActivityRowPayment = {
|
|
574
656
|
kind: "payment";
|
|
575
657
|
groupId: string | null;
|
|
@@ -851,6 +933,20 @@ type ActivityRowTronCashout = {
|
|
|
851
933
|
rejectionReason: string | null;
|
|
852
934
|
settledAt: string | null;
|
|
853
935
|
};
|
|
936
|
+
type ActivityRowTronTransfer = {
|
|
937
|
+
kind: "tron_transfer";
|
|
938
|
+
groupId: string | null;
|
|
939
|
+
id: string;
|
|
940
|
+
occurredAt: string;
|
|
941
|
+
role: "incoming" | "outgoing";
|
|
942
|
+
amountCents: number;
|
|
943
|
+
usdCents: number;
|
|
944
|
+
status: "settled";
|
|
945
|
+
counterpartyUserId: string | null;
|
|
946
|
+
counterpartyHandle: string | null;
|
|
947
|
+
counterpartyDisplayName: string | null;
|
|
948
|
+
note: string | null;
|
|
949
|
+
};
|
|
854
950
|
type ActivityRowReferralEarning = {
|
|
855
951
|
kind: "referral_earning";
|
|
856
952
|
groupId: string | null;
|
|
@@ -867,6 +963,22 @@ type ActivityRowReferralEarning = {
|
|
|
867
963
|
logIndex: number;
|
|
868
964
|
usdCents: number | null;
|
|
869
965
|
};
|
|
966
|
+
type ActivityRowNftCharge = {
|
|
967
|
+
kind: "nft_charge";
|
|
968
|
+
groupId: string | null;
|
|
969
|
+
id: string;
|
|
970
|
+
occurredAt: string;
|
|
971
|
+
role: "outgoing";
|
|
972
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
973
|
+
amountCents: number;
|
|
974
|
+
usdCents: number;
|
|
975
|
+
status: "settled";
|
|
976
|
+
collectionAddress: string | null;
|
|
977
|
+
tokenId: string | null;
|
|
978
|
+
counterpartyUserId: string | null;
|
|
979
|
+
counterpartyHandle: string | null;
|
|
980
|
+
counterpartyDisplayName: string | null;
|
|
981
|
+
};
|
|
870
982
|
type OutstandingResponse = {
|
|
871
983
|
rows: Array<OutstandingByToken>;
|
|
872
984
|
};
|
|
@@ -916,7 +1028,7 @@ type TronLedgerResponse = {
|
|
|
916
1028
|
};
|
|
917
1029
|
type TronLedgerEntry = {
|
|
918
1030
|
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";
|
|
1031
|
+
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
1032
|
amountCents: number;
|
|
921
1033
|
currency: string;
|
|
922
1034
|
createdAt: string;
|
|
@@ -931,6 +1043,45 @@ type TronDepositResponse = {
|
|
|
931
1043
|
type TronDepositRequest = {
|
|
932
1044
|
amountCents: number;
|
|
933
1045
|
};
|
|
1046
|
+
type TronTransferResponse = {
|
|
1047
|
+
status: "completed";
|
|
1048
|
+
amountCents: number;
|
|
1049
|
+
balanceCents: number;
|
|
1050
|
+
recipient: {
|
|
1051
|
+
userId: string;
|
|
1052
|
+
handle: string | null;
|
|
1053
|
+
displayName: string | null;
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
type TronTransferRequest = {
|
|
1057
|
+
recipientUserId: string;
|
|
1058
|
+
amountCents: number;
|
|
1059
|
+
note?: string;
|
|
1060
|
+
challengeId?: string;
|
|
1061
|
+
signature?: string;
|
|
1062
|
+
threadId?: string;
|
|
1063
|
+
};
|
|
1064
|
+
type TronSecuritySetting = {
|
|
1065
|
+
requireSignature: boolean;
|
|
1066
|
+
};
|
|
1067
|
+
type TronTransferChallengeResponse = ({
|
|
1068
|
+
required: false;
|
|
1069
|
+
} & TronTransferChallengeNotRequired) | ({
|
|
1070
|
+
required: true;
|
|
1071
|
+
} & TronTransferChallengeRequired);
|
|
1072
|
+
type TronTransferChallengeNotRequired = {
|
|
1073
|
+
required: false;
|
|
1074
|
+
};
|
|
1075
|
+
type TronTransferChallengeRequired = {
|
|
1076
|
+
required: true;
|
|
1077
|
+
challengeId: string;
|
|
1078
|
+
message: string;
|
|
1079
|
+
expiresAt: string;
|
|
1080
|
+
};
|
|
1081
|
+
type TronTransferChallengeRequest = {
|
|
1082
|
+
recipientUserId: string;
|
|
1083
|
+
amountCents: number;
|
|
1084
|
+
};
|
|
934
1085
|
type TronGameBalanceResponse = {
|
|
935
1086
|
balanceCents: number;
|
|
936
1087
|
rakeBps: number;
|
|
@@ -1173,6 +1324,7 @@ type ThreadLastMessagePreview = {
|
|
|
1173
1324
|
url: string;
|
|
1174
1325
|
count: number;
|
|
1175
1326
|
} | null;
|
|
1327
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1176
1328
|
sentAt: string;
|
|
1177
1329
|
} | null;
|
|
1178
1330
|
type MessageEnvelope = {
|
|
@@ -1184,6 +1336,19 @@ type MessageEnvelope = {
|
|
|
1184
1336
|
iv: string;
|
|
1185
1337
|
ct: string;
|
|
1186
1338
|
} | null;
|
|
1339
|
+
type MessageTransactionTronTransfer = {
|
|
1340
|
+
kind: "tron_transfer";
|
|
1341
|
+
amountCents: number;
|
|
1342
|
+
recipientUserId: string;
|
|
1343
|
+
};
|
|
1344
|
+
type MessageTransactionNftTransfer = {
|
|
1345
|
+
kind: "nft_transfer";
|
|
1346
|
+
recipientUserId: string;
|
|
1347
|
+
collectionAddress: string;
|
|
1348
|
+
tokenId: string;
|
|
1349
|
+
amount: string;
|
|
1350
|
+
itemName: string | null;
|
|
1351
|
+
};
|
|
1187
1352
|
type GroupThreadSummary = {
|
|
1188
1353
|
kind: "group";
|
|
1189
1354
|
id: string;
|
|
@@ -1230,6 +1395,7 @@ type MessageItem = {
|
|
|
1230
1395
|
id: string;
|
|
1231
1396
|
threadId: string;
|
|
1232
1397
|
senderUserId: string;
|
|
1398
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1233
1399
|
body: string;
|
|
1234
1400
|
envelope?: MessageEnvelope;
|
|
1235
1401
|
sentAt: string;
|
|
@@ -1420,11 +1586,45 @@ type InventoryHolding = {
|
|
|
1420
1586
|
tokenId: string;
|
|
1421
1587
|
amount: string;
|
|
1422
1588
|
name: string | null;
|
|
1589
|
+
description: string | null;
|
|
1423
1590
|
imageAssetId: string | null;
|
|
1424
1591
|
bannerAssetId: string | null;
|
|
1425
1592
|
devMetadata: {
|
|
1426
1593
|
[key: string]: unknown;
|
|
1427
1594
|
};
|
|
1595
|
+
appId: string | null;
|
|
1596
|
+
appName: string | null;
|
|
1597
|
+
appLogoUrl: string | null;
|
|
1598
|
+
};
|
|
1599
|
+
type InventoryPendingPermitListResponse = {
|
|
1600
|
+
permits: Array<InventoryPendingPermit>;
|
|
1601
|
+
};
|
|
1602
|
+
type InventoryPendingPermit = {
|
|
1603
|
+
id: string;
|
|
1604
|
+
appId: string;
|
|
1605
|
+
itemId: string;
|
|
1606
|
+
amount: string;
|
|
1607
|
+
priceCents: number | null;
|
|
1608
|
+
gasSponsored: boolean;
|
|
1609
|
+
environment: "development" | "production";
|
|
1610
|
+
createdAt: string;
|
|
1611
|
+
tokenId: string;
|
|
1612
|
+
name: string | null;
|
|
1613
|
+
description: string | null;
|
|
1614
|
+
imageAssetId: string | null;
|
|
1615
|
+
chain: string;
|
|
1616
|
+
collectionAddress: string;
|
|
1617
|
+
kind: "erc721" | "erc1155";
|
|
1618
|
+
};
|
|
1619
|
+
type InventoryPermitRedeemResult = {
|
|
1620
|
+
mint: MintRequestResult;
|
|
1621
|
+
charge: {
|
|
1622
|
+
currency: "tron";
|
|
1623
|
+
gasCents: number;
|
|
1624
|
+
priceCents: number;
|
|
1625
|
+
totalCents: number;
|
|
1626
|
+
gasPaidBy: "user" | "developer";
|
|
1627
|
+
};
|
|
1428
1628
|
};
|
|
1429
1629
|
type MintRequestResult = {
|
|
1430
1630
|
mintRequestId: string;
|
|
@@ -1440,6 +1640,247 @@ type MintRequestInput = {
|
|
|
1440
1640
|
tokenId?: string;
|
|
1441
1641
|
amount?: string;
|
|
1442
1642
|
};
|
|
1643
|
+
type InventoryCollectionListResponse = {
|
|
1644
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1645
|
+
};
|
|
1646
|
+
type InventoryCollectionSummary = {
|
|
1647
|
+
id: string;
|
|
1648
|
+
chain: string;
|
|
1649
|
+
collectionAddress: string;
|
|
1650
|
+
kind: "erc721" | "erc1155";
|
|
1651
|
+
name: string | null;
|
|
1652
|
+
environment: "development" | "production";
|
|
1653
|
+
};
|
|
1654
|
+
type InventoryRegistrationQuote = {
|
|
1655
|
+
itemCount: number;
|
|
1656
|
+
baselineUsdCents: number;
|
|
1657
|
+
gasUsdCents: number;
|
|
1658
|
+
tron: {
|
|
1659
|
+
baselineCents: number;
|
|
1660
|
+
gasCents: number;
|
|
1661
|
+
totalCents: number;
|
|
1662
|
+
};
|
|
1663
|
+
eth: {
|
|
1664
|
+
baselineWei: string;
|
|
1665
|
+
gasWei: string;
|
|
1666
|
+
totalWei: string;
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1669
|
+
type InventoryItemRegistrationInput = {
|
|
1670
|
+
collectionAddress: string;
|
|
1671
|
+
chain: string;
|
|
1672
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1673
|
+
};
|
|
1674
|
+
type InventoryItemRegistrationSpec = {
|
|
1675
|
+
name?: string | null;
|
|
1676
|
+
description?: string | null;
|
|
1677
|
+
devMetadata?: {
|
|
1678
|
+
[key: string]: unknown;
|
|
1679
|
+
};
|
|
1680
|
+
supplyType?: InventorySupplyType;
|
|
1681
|
+
maxSupply?: string | null;
|
|
1682
|
+
active?: boolean;
|
|
1683
|
+
};
|
|
1684
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1685
|
+
type InventoryItemRegistrationResult = {
|
|
1686
|
+
items: Array<InventoryItemRecord>;
|
|
1687
|
+
charge: {
|
|
1688
|
+
currency: "tron";
|
|
1689
|
+
amountCents: number;
|
|
1690
|
+
baselineCents: number;
|
|
1691
|
+
gasCents: number;
|
|
1692
|
+
addItemTxHash: string;
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
type InventoryItemRecord = {
|
|
1696
|
+
id: string;
|
|
1697
|
+
collectionId: string;
|
|
1698
|
+
collectionAddress: string;
|
|
1699
|
+
chain: string;
|
|
1700
|
+
kind: "erc721" | "erc1155";
|
|
1701
|
+
tokenId: string;
|
|
1702
|
+
name: string | null;
|
|
1703
|
+
description: string | null;
|
|
1704
|
+
imageAssetId: string | null;
|
|
1705
|
+
bannerAssetId: string | null;
|
|
1706
|
+
devMetadata: {
|
|
1707
|
+
[key: string]: unknown;
|
|
1708
|
+
};
|
|
1709
|
+
supplyType: InventorySupplyType | null;
|
|
1710
|
+
maxSupply: string | null;
|
|
1711
|
+
active: boolean;
|
|
1712
|
+
};
|
|
1713
|
+
type InventoryItemListResponse = {
|
|
1714
|
+
items: Array<InventoryItemRecord>;
|
|
1715
|
+
};
|
|
1716
|
+
type InventoryMintPermitRecord = {
|
|
1717
|
+
id: string;
|
|
1718
|
+
appId: string;
|
|
1719
|
+
itemId: string;
|
|
1720
|
+
userId: string;
|
|
1721
|
+
amount: string;
|
|
1722
|
+
priceCents: number | null;
|
|
1723
|
+
gasSponsored: boolean;
|
|
1724
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1725
|
+
createdAt: string;
|
|
1726
|
+
};
|
|
1727
|
+
type InventoryMintPermitCreateInput = {
|
|
1728
|
+
toUserId: string;
|
|
1729
|
+
amount?: string;
|
|
1730
|
+
priceCents?: number | null;
|
|
1731
|
+
gasSponsored?: boolean;
|
|
1732
|
+
};
|
|
1733
|
+
type InventoryItemHoldersResponse = {
|
|
1734
|
+
stats: InventoryItemStats;
|
|
1735
|
+
holders: Array<InventoryItemHolder>;
|
|
1736
|
+
};
|
|
1737
|
+
type InventoryItemStats = {
|
|
1738
|
+
holderCount: number;
|
|
1739
|
+
walletCount: number;
|
|
1740
|
+
totalHeld: string;
|
|
1741
|
+
};
|
|
1742
|
+
type InventoryItemHolder = {
|
|
1743
|
+
walletAddress: string;
|
|
1744
|
+
userId: string | null;
|
|
1745
|
+
amount: string;
|
|
1746
|
+
};
|
|
1747
|
+
type InventoryVaultPermitRecord = {
|
|
1748
|
+
id: string;
|
|
1749
|
+
appId: string;
|
|
1750
|
+
itemId: string;
|
|
1751
|
+
userId: string;
|
|
1752
|
+
direction: "vault_in" | "withdraw";
|
|
1753
|
+
lockKind: "vault" | "burn" | null;
|
|
1754
|
+
amount: string;
|
|
1755
|
+
gasSponsored: boolean;
|
|
1756
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1757
|
+
custodyId: string | null;
|
|
1758
|
+
createdAt: string;
|
|
1759
|
+
};
|
|
1760
|
+
type InventoryVaultPermitCreateInput = {
|
|
1761
|
+
toUserId: string;
|
|
1762
|
+
lockKind: "vault" | "burn";
|
|
1763
|
+
amount?: string;
|
|
1764
|
+
gasSponsored?: boolean;
|
|
1765
|
+
};
|
|
1766
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1767
|
+
custodyId: string;
|
|
1768
|
+
};
|
|
1769
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1770
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1771
|
+
};
|
|
1772
|
+
type InventoryPendingVaultPermit = {
|
|
1773
|
+
id: string;
|
|
1774
|
+
appId: string;
|
|
1775
|
+
itemId: string;
|
|
1776
|
+
direction: "vault_in" | "withdraw";
|
|
1777
|
+
lockKind: "vault" | "burn" | null;
|
|
1778
|
+
amount: string;
|
|
1779
|
+
gasSponsored: boolean;
|
|
1780
|
+
environment: "development" | "production";
|
|
1781
|
+
custodyId: string | null;
|
|
1782
|
+
createdAt: string;
|
|
1783
|
+
tokenId: string;
|
|
1784
|
+
name: string | null;
|
|
1785
|
+
description: string | null;
|
|
1786
|
+
imageAssetId: string | null;
|
|
1787
|
+
chain: string;
|
|
1788
|
+
collectionAddress: string;
|
|
1789
|
+
kind: "erc721" | "erc1155";
|
|
1790
|
+
};
|
|
1791
|
+
type InventorySignedVaultPermit = {
|
|
1792
|
+
permitId: string;
|
|
1793
|
+
direction: "vault_in" | "withdraw";
|
|
1794
|
+
vault: string;
|
|
1795
|
+
collection: string;
|
|
1796
|
+
user: string;
|
|
1797
|
+
tokenId: string;
|
|
1798
|
+
amount: string;
|
|
1799
|
+
lockKind: "vault" | "burn" | null;
|
|
1800
|
+
destination: string | null;
|
|
1801
|
+
deadline: number;
|
|
1802
|
+
signature: string;
|
|
1803
|
+
};
|
|
1804
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1805
|
+
direction: "vault_in" | "withdraw";
|
|
1806
|
+
collection: string;
|
|
1807
|
+
vault: string;
|
|
1808
|
+
chainId: number;
|
|
1809
|
+
user: string;
|
|
1810
|
+
tokenId: string;
|
|
1811
|
+
amount: string;
|
|
1812
|
+
nonce: string | null;
|
|
1813
|
+
deadline: number;
|
|
1814
|
+
feeCents: number;
|
|
1815
|
+
gasWei: string;
|
|
1816
|
+
gasPaidBy: "developer" | "user";
|
|
1817
|
+
requiresUserSignature: boolean;
|
|
1818
|
+
};
|
|
1819
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1820
|
+
ok: boolean;
|
|
1821
|
+
txHash: string;
|
|
1822
|
+
chargedCents: number;
|
|
1823
|
+
gasPaidBy: "developer" | "user";
|
|
1824
|
+
};
|
|
1825
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1826
|
+
userSignature?: string;
|
|
1827
|
+
deadline?: number;
|
|
1828
|
+
};
|
|
1829
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1830
|
+
collection: string;
|
|
1831
|
+
chainId: number;
|
|
1832
|
+
from: string;
|
|
1833
|
+
to: string;
|
|
1834
|
+
tokenId: string;
|
|
1835
|
+
amount: string;
|
|
1836
|
+
nonce: string;
|
|
1837
|
+
deadline: number;
|
|
1838
|
+
feeCents: number;
|
|
1839
|
+
gasWei: string;
|
|
1840
|
+
selfPayAvailable: boolean;
|
|
1841
|
+
};
|
|
1842
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1843
|
+
toUserId: string;
|
|
1844
|
+
collection: string;
|
|
1845
|
+
tokenId: string;
|
|
1846
|
+
amount?: string;
|
|
1847
|
+
};
|
|
1848
|
+
type InventoryNftTransferResponse = {
|
|
1849
|
+
ok: boolean;
|
|
1850
|
+
txHash: string;
|
|
1851
|
+
chargedCents: number;
|
|
1852
|
+
};
|
|
1853
|
+
type InventoryNftTransferRequest = {
|
|
1854
|
+
toUserId: string;
|
|
1855
|
+
collection: string;
|
|
1856
|
+
tokenId: string;
|
|
1857
|
+
amount?: string;
|
|
1858
|
+
deadline: number;
|
|
1859
|
+
userSignature: string;
|
|
1860
|
+
threadId?: string;
|
|
1861
|
+
};
|
|
1862
|
+
type InventoryVaultCustodyListResponse = {
|
|
1863
|
+
custody: Array<InventoryVaultCustody>;
|
|
1864
|
+
};
|
|
1865
|
+
type InventoryVaultCustody = {
|
|
1866
|
+
id: string;
|
|
1867
|
+
collectionId: string;
|
|
1868
|
+
collectionAddress: string;
|
|
1869
|
+
chain: string;
|
|
1870
|
+
kind: "erc721" | "erc1155";
|
|
1871
|
+
tokenId: string;
|
|
1872
|
+
amount: string;
|
|
1873
|
+
lockKind: "vault" | "burn";
|
|
1874
|
+
vaultAddress: string;
|
|
1875
|
+
createdAt: string;
|
|
1876
|
+
name: string | null;
|
|
1877
|
+
description: string | null;
|
|
1878
|
+
imageAssetId: string | null;
|
|
1879
|
+
};
|
|
1880
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1881
|
+
ok: boolean;
|
|
1882
|
+
txHash: string;
|
|
1883
|
+
};
|
|
1443
1884
|
type NotificationListResponse = {
|
|
1444
1885
|
notifications: Array<NotificationItem>;
|
|
1445
1886
|
unreadCount: number;
|
|
@@ -1607,7 +2048,7 @@ type ProfileRecentReview = {
|
|
|
1607
2048
|
appId: string;
|
|
1608
2049
|
appName: string;
|
|
1609
2050
|
appLogoUrl: string | null;
|
|
1610
|
-
|
|
2051
|
+
recommended: boolean;
|
|
1611
2052
|
body: string;
|
|
1612
2053
|
createdAt: string;
|
|
1613
2054
|
};
|
|
@@ -1963,6 +2404,11 @@ type AppPageDraft = {
|
|
|
1963
2404
|
gallery: AppPageGallery;
|
|
1964
2405
|
chapters: AppPageChapters;
|
|
1965
2406
|
links: AppPageLinks;
|
|
2407
|
+
platforms: AppPagePlatforms;
|
|
2408
|
+
gameType: AppPageGameType;
|
|
2409
|
+
ageRating: AppPageAgeRating;
|
|
2410
|
+
languages: AppPageLanguages;
|
|
2411
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1966
2412
|
firstPublishedAt: string | null;
|
|
1967
2413
|
reviewedAt: string | null;
|
|
1968
2414
|
reviewNotes: string | null;
|
|
@@ -1985,6 +2431,11 @@ type UpdateAppPage = {
|
|
|
1985
2431
|
gallery?: AppPageGallery;
|
|
1986
2432
|
chapters?: AppPageChapters;
|
|
1987
2433
|
links?: AppPageLinks;
|
|
2434
|
+
platforms?: AppPagePlatforms;
|
|
2435
|
+
gameType?: AppPageGameType;
|
|
2436
|
+
ageRating?: AppPageAgeRating;
|
|
2437
|
+
languages?: AppPageLanguages;
|
|
2438
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1988
2439
|
};
|
|
1989
2440
|
type AppPageGalleryUploadResponse = {
|
|
1990
2441
|
url: string;
|
|
@@ -2574,6 +3025,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2574
3025
|
readonly bearer: string;
|
|
2575
3026
|
}): Promise<AdminDeveloperListResponse>;
|
|
2576
3027
|
//#endregion
|
|
3028
|
+
//#region src/admin/inventory-vault.d.ts
|
|
3029
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
3030
|
+
readonly bearer: string;
|
|
3031
|
+
readonly custodyId: string;
|
|
3032
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
3033
|
+
//#endregion
|
|
2577
3034
|
//#region src/admin/payments.d.ts
|
|
2578
3035
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2579
3036
|
readonly bearer: string;
|
|
@@ -2736,6 +3193,41 @@ declare function deleteMyGameReview(context: TransportContext, input: {
|
|
|
2736
3193
|
readonly slug: string;
|
|
2737
3194
|
readonly bearer: string;
|
|
2738
3195
|
}): Promise<MyReviewResponse>;
|
|
3196
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3197
|
+
readonly slug: string;
|
|
3198
|
+
readonly bearer: string;
|
|
3199
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3200
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3201
|
+
readonly slug: string;
|
|
3202
|
+
readonly reviewId: string;
|
|
3203
|
+
readonly bearer: string;
|
|
3204
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3205
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3206
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3207
|
+
readonly slug: string;
|
|
3208
|
+
readonly reviewId: string;
|
|
3209
|
+
readonly bearer: string;
|
|
3210
|
+
readonly tip: TipReviewRequest;
|
|
3211
|
+
readonly idempotencyKey?: string;
|
|
3212
|
+
}): Promise<TipReviewResponse>;
|
|
3213
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3214
|
+
readonly slug: string;
|
|
3215
|
+
readonly reviewId: string;
|
|
3216
|
+
readonly bearer?: string;
|
|
3217
|
+
readonly limit?: number;
|
|
3218
|
+
readonly offset?: number;
|
|
3219
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3220
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3221
|
+
readonly slug: string;
|
|
3222
|
+
readonly reviewId: string;
|
|
3223
|
+
readonly bearer: string;
|
|
3224
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3225
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3226
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3227
|
+
readonly slug: string;
|
|
3228
|
+
readonly commentId: string;
|
|
3229
|
+
readonly bearer: string;
|
|
3230
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2739
3231
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2740
3232
|
readonly appId: string;
|
|
2741
3233
|
readonly reviewId: string;
|
|
@@ -2964,6 +3456,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2964
3456
|
readonly status: "acknowledged" | "dismissed";
|
|
2965
3457
|
}): Promise<AppContentReport>;
|
|
2966
3458
|
//#endregion
|
|
3459
|
+
//#region src/developer/inventory.d.ts
|
|
3460
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3461
|
+
readonly bearer: string;
|
|
3462
|
+
readonly appId: string;
|
|
3463
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3464
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3465
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3466
|
+
readonly bearer: string;
|
|
3467
|
+
readonly appId: string;
|
|
3468
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3469
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3470
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3471
|
+
readonly bearer: string;
|
|
3472
|
+
readonly appId: string;
|
|
3473
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3474
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3475
|
+
readonly bearer: string;
|
|
3476
|
+
readonly appId: string;
|
|
3477
|
+
}): Promise<InventoryItemListResponse>;
|
|
3478
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3479
|
+
readonly bearer: string;
|
|
3480
|
+
readonly appId: string;
|
|
3481
|
+
readonly itemId: string;
|
|
3482
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3483
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3484
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3485
|
+
readonly bearer: string;
|
|
3486
|
+
readonly appId: string;
|
|
3487
|
+
readonly itemId: string;
|
|
3488
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3489
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3490
|
+
readonly bearer: string;
|
|
3491
|
+
readonly appId: string;
|
|
3492
|
+
readonly itemId: string;
|
|
3493
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3494
|
+
readonly filename: string;
|
|
3495
|
+
readonly contentType: string;
|
|
3496
|
+
}): Promise<InventoryItemRecord>;
|
|
3497
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3498
|
+
readonly bearer: string;
|
|
3499
|
+
readonly appId: string;
|
|
3500
|
+
readonly itemId: string;
|
|
3501
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3502
|
+
readonly filename: string;
|
|
3503
|
+
readonly contentType: string;
|
|
3504
|
+
}): Promise<InventoryItemRecord>;
|
|
3505
|
+
//#endregion
|
|
2967
3506
|
//#region src/developer/pages.d.ts
|
|
2968
3507
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2969
3508
|
readonly bearer: string;
|
|
@@ -3088,6 +3627,68 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
3088
3627
|
readonly contentType: string;
|
|
3089
3628
|
}): Promise<unknown>;
|
|
3090
3629
|
//#endregion
|
|
3630
|
+
//#region src/developer/vault.d.ts
|
|
3631
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3632
|
+
readonly bearer: string;
|
|
3633
|
+
readonly appId: string;
|
|
3634
|
+
readonly itemId: string;
|
|
3635
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3636
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3637
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3638
|
+
readonly bearer: string;
|
|
3639
|
+
readonly appId: string;
|
|
3640
|
+
readonly itemId: string;
|
|
3641
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3642
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3643
|
+
//#endregion
|
|
3644
|
+
//#region src/events/inventory-socket.d.ts
|
|
3645
|
+
declare const inventoryUpdateEventSchema: z.ZodObject<{
|
|
3646
|
+
event: z.ZodLiteral<"inventory.updated">;
|
|
3647
|
+
deliveredAt: z.ZodString;
|
|
3648
|
+
environment: z.ZodEnum<{
|
|
3649
|
+
development: "development";
|
|
3650
|
+
production: "production";
|
|
3651
|
+
}>;
|
|
3652
|
+
subject: z.ZodString;
|
|
3653
|
+
collectionId: z.ZodString;
|
|
3654
|
+
collectionAddress: z.ZodString;
|
|
3655
|
+
chain: z.ZodString;
|
|
3656
|
+
kind: z.ZodEnum<{
|
|
3657
|
+
erc721: "erc721";
|
|
3658
|
+
erc1155: "erc1155";
|
|
3659
|
+
}>;
|
|
3660
|
+
tokenId: z.ZodString;
|
|
3661
|
+
direction: z.ZodEnum<{
|
|
3662
|
+
credit: "credit";
|
|
3663
|
+
debit: "debit";
|
|
3664
|
+
}>;
|
|
3665
|
+
amount: z.ZodString;
|
|
3666
|
+
balance: z.ZodString;
|
|
3667
|
+
}, z.core.$strip>;
|
|
3668
|
+
type InventoryUpdateEvent = z.infer<typeof inventoryUpdateEventSchema>;
|
|
3669
|
+
type OauthInventoryEventsSubscriberLifecycle = {
|
|
3670
|
+
onOpen?: () => void;
|
|
3671
|
+
onSubscribed?: (appId: string) => void;
|
|
3672
|
+
onMessage: (body: InventoryUpdateEvent) => void | Promise<void>;
|
|
3673
|
+
onClose?: (error: TronWsCloseError) => void;
|
|
3674
|
+
onError?: (error: Error) => void;
|
|
3675
|
+
};
|
|
3676
|
+
type OauthInventoryEventsSubscriberOptions = {
|
|
3677
|
+
readonly issuer: string;
|
|
3678
|
+
readonly clientId: string;
|
|
3679
|
+
readonly clientSecret: string;
|
|
3680
|
+
readonly logger?: Logger;
|
|
3681
|
+
readonly lifecycle: OauthInventoryEventsSubscriberLifecycle;
|
|
3682
|
+
readonly initialBackoffMs?: number;
|
|
3683
|
+
readonly maxBackoffMs?: number;
|
|
3684
|
+
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3685
|
+
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
3686
|
+
};
|
|
3687
|
+
type OauthInventoryEventsSubscriber = {
|
|
3688
|
+
readonly stop: () => void;
|
|
3689
|
+
};
|
|
3690
|
+
declare function startOauthInventoryEventsSubscriber(options: OauthInventoryEventsSubscriberOptions): OauthInventoryEventsSubscriber;
|
|
3691
|
+
//#endregion
|
|
3091
3692
|
//#region src/webhook/verify.d.ts
|
|
3092
3693
|
declare const oauthPaymentWebhookBodySchema: z.ZodObject<{
|
|
3093
3694
|
event: z.ZodEnum<{
|
|
@@ -3162,6 +3763,7 @@ type OauthPaymentEventsSubscriberOptions = {
|
|
|
3162
3763
|
readonly maxBackoffMs?: number;
|
|
3163
3764
|
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3164
3765
|
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
3766
|
+
readonly disableEventAck?: boolean;
|
|
3165
3767
|
};
|
|
3166
3768
|
type OauthPaymentEventsSubscriber = {
|
|
3167
3769
|
readonly stop: () => void;
|
|
@@ -3176,12 +3778,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
3176
3778
|
readonly bearer: string;
|
|
3177
3779
|
}): Promise<InventoryListResponse>;
|
|
3178
3780
|
//#endregion
|
|
3781
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
3782
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
3783
|
+
readonly bearer: string;
|
|
3784
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
3785
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
3786
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
3787
|
+
readonly bearer: string;
|
|
3788
|
+
readonly body: InventoryNftTransferRequest;
|
|
3789
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
3790
|
+
//#endregion
|
|
3791
|
+
//#region src/inventory/permits.d.ts
|
|
3792
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
3793
|
+
readonly bearer: string;
|
|
3794
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
3795
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
3796
|
+
readonly bearer: string;
|
|
3797
|
+
readonly permitId: string;
|
|
3798
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
3799
|
+
//#endregion
|
|
3179
3800
|
//#region src/inventory/request-mint.d.ts
|
|
3180
3801
|
declare function requestMint(context: TransportContext, input: {
|
|
3181
3802
|
readonly appBearer: string;
|
|
3182
3803
|
readonly body: MintRequestInput;
|
|
3183
3804
|
}): Promise<MintRequestResult>;
|
|
3184
3805
|
//#endregion
|
|
3806
|
+
//#region src/inventory/vault.d.ts
|
|
3807
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
3808
|
+
readonly bearer: string;
|
|
3809
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
3810
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
3811
|
+
readonly bearer: string;
|
|
3812
|
+
readonly permitId: string;
|
|
3813
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
3814
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
3815
|
+
readonly bearer: string;
|
|
3816
|
+
readonly permitId: string;
|
|
3817
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
3818
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
3819
|
+
readonly bearer: string;
|
|
3820
|
+
readonly permitId: string;
|
|
3821
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
3822
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
3823
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
3824
|
+
readonly bearer: string;
|
|
3825
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3826
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
3827
|
+
readonly bearer: string;
|
|
3828
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3829
|
+
//#endregion
|
|
3185
3830
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3186
3831
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3187
3832
|
readonly bearer: string;
|
|
@@ -3496,6 +4141,22 @@ declare function createTronDeposit(context: TransportContext, input: {
|
|
|
3496
4141
|
readonly bearer: string;
|
|
3497
4142
|
readonly body: TronDepositRequest;
|
|
3498
4143
|
}): Promise<TronDepositResponse>;
|
|
4144
|
+
declare function createTronTransfer(context: TransportContext, input: {
|
|
4145
|
+
readonly bearer: string;
|
|
4146
|
+
readonly body: TronTransferRequest;
|
|
4147
|
+
readonly idempotencyKey?: string;
|
|
4148
|
+
}): Promise<TronTransferResponse>;
|
|
4149
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
4150
|
+
readonly bearer: string;
|
|
4151
|
+
}): Promise<TronSecuritySetting>;
|
|
4152
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
4153
|
+
readonly bearer: string;
|
|
4154
|
+
readonly setting: TronSecuritySetting;
|
|
4155
|
+
}): Promise<TronSecuritySetting>;
|
|
4156
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
4157
|
+
readonly bearer: string;
|
|
4158
|
+
readonly body: TronTransferChallengeRequest;
|
|
4159
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3499
4160
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3500
4161
|
readonly bearer: string;
|
|
3501
4162
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3670,6 +4331,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3670
4331
|
readonly bearer: string;
|
|
3671
4332
|
readonly userId: string;
|
|
3672
4333
|
}): Promise<void>;
|
|
4334
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
4335
|
+
readonly bearer: string;
|
|
4336
|
+
readonly userId: string;
|
|
4337
|
+
}): Promise<void>;
|
|
3673
4338
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3674
4339
|
readonly bearer: string;
|
|
3675
4340
|
readonly requestId: string;
|
|
@@ -3808,6 +4473,7 @@ declare class TronNodeClient {
|
|
|
3808
4473
|
};
|
|
3809
4474
|
};
|
|
3810
4475
|
subscribeOauthPaymentEvents(lifecycle: OauthPaymentEventsSubscriberLifecycle): OauthPaymentEventsSubscriber;
|
|
4476
|
+
subscribeOauthInventoryEvents(lifecycle: OauthInventoryEventsSubscriberLifecycle): OauthInventoryEventsSubscriber;
|
|
3811
4477
|
get users(): {
|
|
3812
4478
|
get: (input: {
|
|
3813
4479
|
bearer?: string;
|
|
@@ -3929,4 +4595,4 @@ declare class TronNodeClient {
|
|
|
3929
4595
|
};
|
|
3930
4596
|
}
|
|
3931
4597
|
//#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 };
|
|
4598
|
+
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, commentOnGameReview, completePaymentIntent, confirmPlaySession, consolidateDeveloperAppWallet, createAppTokenCache, 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, 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, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getIntentStatus, getLibrary, getMoonpayAvailability, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronGameBalance, getTronSecurity, heartbeatPlaySession, hideAppPage, hideThread, inventoryUpdateEventSchema, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppInventoryCollections, listDeveloperAppInventoryItems, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listGameReviewComments, listGameReviews, listInventory, listInventoryForApp, listInventoryMintPermits, listInventoryVaultPermits, listInventoryVaulted, listNotifications, listOauthInventoryVaulted, listPaymentAuthorizations, listSocials, listThreadMessages, listThreads, listTronCashoutQueue, listTronCashouts, listTronLedger, listUsers, listWalletManager, listWallets, markAllNotificationsRead, markThreadRead, mintClientCredentialsToken, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, parseJson, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerDeveloperAppInventoryItem, registerOauthClient, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, requestPayout, resolveAppeal, reviewAppPage, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, send, sendFriendRequest, sendJson, sendMessage, sendPresenceHeartbeat, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, startOauthInventoryEventsSubscriber, startOauthPaymentEventsSubscriber, submitAppContentReport, submitAppPageForReview, submitDeveloperRequest, submitRelayedVaultPermit, tipGameReview, 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, uploadDeveloperAppInventoryItemBanner, uploadDeveloperAppInventoryItemImage, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|