@metatrongg/sdk 0.8.0-dev.e892968 → 0.8.0-dev.f0ab15b
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 +639 -19
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +7994 -3513
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +689 -19
- 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
|
@@ -169,7 +169,9 @@ type OauthErrorResponse = {
|
|
|
169
169
|
type OauthUserInfoResponse = {
|
|
170
170
|
sub: string;
|
|
171
171
|
name: string | null;
|
|
172
|
+
preferred_username: string | null;
|
|
172
173
|
picture: string | null;
|
|
174
|
+
wallet_address: string | null;
|
|
173
175
|
};
|
|
174
176
|
type OauthPaymentChargeResponse = ({
|
|
175
177
|
status: "completed";
|
|
@@ -288,6 +290,7 @@ type OauthPaymentIntentContext = {
|
|
|
288
290
|
studioXHandle: string | null;
|
|
289
291
|
};
|
|
290
292
|
} | null;
|
|
293
|
+
environment: "development" | "production";
|
|
291
294
|
};
|
|
292
295
|
type OauthPaymentIntentSignResponse = {
|
|
293
296
|
chain: string;
|
|
@@ -376,9 +379,16 @@ type PublicAppPage = {
|
|
|
376
379
|
chapters: AppPageChapters;
|
|
377
380
|
links: AppPageLinks;
|
|
378
381
|
studio: PublicAppPageStudio;
|
|
382
|
+
platforms: AppPagePlatforms;
|
|
383
|
+
gameType: AppPageGameType;
|
|
384
|
+
ageRating: AppPageAgeRating;
|
|
385
|
+
languages: AppPageLanguages;
|
|
386
|
+
releaseStatus: AppPageReleaseStatus;
|
|
387
|
+
paymentsMode: AppPagePaymentsMode;
|
|
379
388
|
oauthScopes: Array<string>;
|
|
380
389
|
chains: Array<string>;
|
|
381
390
|
publishedAt: string;
|
|
391
|
+
updatedAt: string;
|
|
382
392
|
};
|
|
383
393
|
type AppPageCategories = Array<"adventure" | "battle_royale" | "board" | "cards" | "casino" | "casual" | "fighting" | "idle" | "mmo" | "moba" | "platformer" | "prediction" | "puzzle" | "racing" | "rhythm" | "roguelike" | "rpg" | "rts" | "sandbox" | "shooter" | "simulation" | "sports" | "strategy" | "survival" | "tools" | "tower_defense" | "visual_novel" | "other">;
|
|
384
394
|
type AppPageTagline = string;
|
|
@@ -401,12 +411,19 @@ type AppPageLink = {
|
|
|
401
411
|
order: number;
|
|
402
412
|
};
|
|
403
413
|
type PublicAppPageStudio = {
|
|
414
|
+
ownerUserId: string | null;
|
|
404
415
|
name: string | null;
|
|
405
416
|
logoUrl: string | null;
|
|
406
417
|
websiteUrl: string | null;
|
|
407
418
|
xHandle: string | null;
|
|
408
419
|
githubUrl: string | null;
|
|
409
420
|
};
|
|
421
|
+
type AppPagePlatforms = Array<"web" | "ios" | "android" | "pc" | "playstation" | "xbox" | "switch">;
|
|
422
|
+
type AppPageGameType = "single_player" | "multiplayer" | "both" | null;
|
|
423
|
+
type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
|
|
424
|
+
type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
|
|
425
|
+
type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
|
|
426
|
+
type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
|
|
410
427
|
type ReviewListResponse = {
|
|
411
428
|
aggregate: ReviewAggregate;
|
|
412
429
|
reviews: Array<Review>;
|
|
@@ -414,38 +431,49 @@ type ReviewListResponse = {
|
|
|
414
431
|
hasMore: boolean;
|
|
415
432
|
};
|
|
416
433
|
type ReviewAggregate = {
|
|
417
|
-
average: number | null;
|
|
418
434
|
count: number;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
1: number;
|
|
423
|
-
2: number;
|
|
424
|
-
3: number;
|
|
425
|
-
4: number;
|
|
426
|
-
5: number;
|
|
435
|
+
recommendedCount: number;
|
|
436
|
+
recommendedPct: number | null;
|
|
437
|
+
summaryLabel: ReviewSummaryLabel;
|
|
427
438
|
};
|
|
439
|
+
type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
|
|
428
440
|
type Review = {
|
|
429
441
|
id: string;
|
|
430
|
-
|
|
442
|
+
recommended: ReviewRecommended;
|
|
431
443
|
body: ReviewBody;
|
|
444
|
+
reactions: ReviewReactionCounts;
|
|
445
|
+
tippedCents: number;
|
|
446
|
+
commentCount: number;
|
|
432
447
|
author: ReviewAuthor;
|
|
448
|
+
authorStats: ReviewerStats;
|
|
433
449
|
developerReply: ReviewReply;
|
|
434
450
|
createdAt: string;
|
|
435
451
|
updatedAt: string;
|
|
436
452
|
};
|
|
437
|
-
type
|
|
453
|
+
type ReviewRecommended = boolean;
|
|
438
454
|
type ReviewBody = string;
|
|
455
|
+
type ReviewReactionCounts = {
|
|
456
|
+
helpful: number;
|
|
457
|
+
unhelpful: number;
|
|
458
|
+
funny: number;
|
|
459
|
+
};
|
|
439
460
|
type ReviewAuthor = {
|
|
461
|
+
userId: string;
|
|
462
|
+
handle: string | null;
|
|
440
463
|
name: string | null;
|
|
441
464
|
avatarUrl: string | null;
|
|
442
465
|
};
|
|
466
|
+
type ReviewerStats = {
|
|
467
|
+
playtimeSecondsThisGame: number;
|
|
468
|
+
gamesPlayed: number;
|
|
469
|
+
reviewsWritten: number;
|
|
470
|
+
};
|
|
443
471
|
type ReviewReply = {
|
|
444
472
|
body: ReviewReplyBody;
|
|
445
473
|
repliedAt: string;
|
|
446
474
|
} | null;
|
|
447
475
|
type ReviewReplyBody = string;
|
|
448
|
-
type ReviewSort = "newest" | "oldest" | "
|
|
476
|
+
type ReviewSort = "newest" | "oldest" | "helpful";
|
|
449
477
|
type MyReviewResponse = {
|
|
450
478
|
eligible: boolean;
|
|
451
479
|
eligibleVia: ReviewEligibilityReason;
|
|
@@ -455,15 +483,67 @@ type MyReviewResponse = {
|
|
|
455
483
|
type ReviewEligibilityReason = "payment" | "reward" | null;
|
|
456
484
|
type OwnReview = {
|
|
457
485
|
id: string;
|
|
458
|
-
|
|
486
|
+
recommended: ReviewRecommended;
|
|
459
487
|
body: ReviewBody;
|
|
460
488
|
createdAt: string;
|
|
461
489
|
updatedAt: string;
|
|
462
490
|
} | null;
|
|
463
491
|
type UpsertReviewRequest = {
|
|
464
|
-
|
|
492
|
+
recommended: ReviewRecommended;
|
|
465
493
|
body: ReviewBody;
|
|
466
494
|
};
|
|
495
|
+
type MyReviewReactionsResponse = {
|
|
496
|
+
reactions: Array<MyReviewReaction>;
|
|
497
|
+
};
|
|
498
|
+
type MyReviewReaction = {
|
|
499
|
+
reviewId: string;
|
|
500
|
+
vote: ReviewVote;
|
|
501
|
+
funny: boolean;
|
|
502
|
+
};
|
|
503
|
+
type ReviewVote = "helpful" | "unhelpful" | null;
|
|
504
|
+
type SetReviewReactionResponse = {
|
|
505
|
+
reactions: ReviewReactionCounts;
|
|
506
|
+
vote: ReviewVote;
|
|
507
|
+
funny: boolean;
|
|
508
|
+
};
|
|
509
|
+
type SetReviewReactionRequest = {
|
|
510
|
+
vote: ReviewVote;
|
|
511
|
+
funny: boolean;
|
|
512
|
+
};
|
|
513
|
+
type TipReviewResponse = {
|
|
514
|
+
status: "completed";
|
|
515
|
+
amountCents: number;
|
|
516
|
+
balanceCents: number;
|
|
517
|
+
tippedCents: number;
|
|
518
|
+
};
|
|
519
|
+
type TipReviewRequest = {
|
|
520
|
+
amountCents: number;
|
|
521
|
+
note?: string;
|
|
522
|
+
challengeId?: string;
|
|
523
|
+
signature?: string;
|
|
524
|
+
};
|
|
525
|
+
type ReviewCommentListResponse = {
|
|
526
|
+
comments: Array<ReviewComment>;
|
|
527
|
+
total: number;
|
|
528
|
+
hasMore: boolean;
|
|
529
|
+
};
|
|
530
|
+
type ReviewComment = {
|
|
531
|
+
id: string;
|
|
532
|
+
body: ReviewCommentBody;
|
|
533
|
+
author: ReviewAuthor;
|
|
534
|
+
createdAt: string;
|
|
535
|
+
};
|
|
536
|
+
type ReviewCommentBody = string;
|
|
537
|
+
type CreateReviewCommentResponse = {
|
|
538
|
+
comment: ReviewComment;
|
|
539
|
+
commentCount: number;
|
|
540
|
+
};
|
|
541
|
+
type CreateReviewCommentRequest = {
|
|
542
|
+
body: ReviewCommentBody;
|
|
543
|
+
};
|
|
544
|
+
type DeleteReviewCommentResponse = {
|
|
545
|
+
commentCount: number;
|
|
546
|
+
};
|
|
467
547
|
type ReviewReplyResponse = {
|
|
468
548
|
developerReply: ReviewReply;
|
|
469
549
|
};
|
|
@@ -568,8 +648,12 @@ type ActivityRow = ({
|
|
|
568
648
|
} & ActivityRowTronPot) | ({
|
|
569
649
|
kind: "tron_cashout";
|
|
570
650
|
} & ActivityRowTronCashout) | ({
|
|
651
|
+
kind: "tron_transfer";
|
|
652
|
+
} & ActivityRowTronTransfer) | ({
|
|
571
653
|
kind: "referral_earning";
|
|
572
|
-
} & ActivityRowReferralEarning)
|
|
654
|
+
} & ActivityRowReferralEarning) | ({
|
|
655
|
+
kind: "nft_charge";
|
|
656
|
+
} & ActivityRowNftCharge);
|
|
573
657
|
type ActivityRowPayment = {
|
|
574
658
|
kind: "payment";
|
|
575
659
|
groupId: string | null;
|
|
@@ -851,6 +935,20 @@ type ActivityRowTronCashout = {
|
|
|
851
935
|
rejectionReason: string | null;
|
|
852
936
|
settledAt: string | null;
|
|
853
937
|
};
|
|
938
|
+
type ActivityRowTronTransfer = {
|
|
939
|
+
kind: "tron_transfer";
|
|
940
|
+
groupId: string | null;
|
|
941
|
+
id: string;
|
|
942
|
+
occurredAt: string;
|
|
943
|
+
role: "incoming" | "outgoing";
|
|
944
|
+
amountCents: number;
|
|
945
|
+
usdCents: number;
|
|
946
|
+
status: "settled";
|
|
947
|
+
counterpartyUserId: string | null;
|
|
948
|
+
counterpartyHandle: string | null;
|
|
949
|
+
counterpartyDisplayName: string | null;
|
|
950
|
+
note: string | null;
|
|
951
|
+
};
|
|
854
952
|
type ActivityRowReferralEarning = {
|
|
855
953
|
kind: "referral_earning";
|
|
856
954
|
groupId: string | null;
|
|
@@ -867,6 +965,22 @@ type ActivityRowReferralEarning = {
|
|
|
867
965
|
logIndex: number;
|
|
868
966
|
usdCents: number | null;
|
|
869
967
|
};
|
|
968
|
+
type ActivityRowNftCharge = {
|
|
969
|
+
kind: "nft_charge";
|
|
970
|
+
groupId: string | null;
|
|
971
|
+
id: string;
|
|
972
|
+
occurredAt: string;
|
|
973
|
+
role: "outgoing";
|
|
974
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
975
|
+
amountCents: number;
|
|
976
|
+
usdCents: number;
|
|
977
|
+
status: "settled";
|
|
978
|
+
collectionAddress: string | null;
|
|
979
|
+
tokenId: string | null;
|
|
980
|
+
counterpartyUserId: string | null;
|
|
981
|
+
counterpartyHandle: string | null;
|
|
982
|
+
counterpartyDisplayName: string | null;
|
|
983
|
+
};
|
|
870
984
|
type OutstandingResponse = {
|
|
871
985
|
rows: Array<OutstandingByToken>;
|
|
872
986
|
};
|
|
@@ -916,7 +1030,7 @@ type TronLedgerResponse = {
|
|
|
916
1030
|
};
|
|
917
1031
|
type TronLedgerEntry = {
|
|
918
1032
|
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";
|
|
1033
|
+
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
1034
|
amountCents: number;
|
|
921
1035
|
currency: string;
|
|
922
1036
|
createdAt: string;
|
|
@@ -931,6 +1045,45 @@ type TronDepositResponse = {
|
|
|
931
1045
|
type TronDepositRequest = {
|
|
932
1046
|
amountCents: number;
|
|
933
1047
|
};
|
|
1048
|
+
type TronTransferResponse = {
|
|
1049
|
+
status: "completed";
|
|
1050
|
+
amountCents: number;
|
|
1051
|
+
balanceCents: number;
|
|
1052
|
+
recipient: {
|
|
1053
|
+
userId: string;
|
|
1054
|
+
handle: string | null;
|
|
1055
|
+
displayName: string | null;
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
type TronTransferRequest = {
|
|
1059
|
+
recipientUserId: string;
|
|
1060
|
+
amountCents: number;
|
|
1061
|
+
note?: string;
|
|
1062
|
+
challengeId?: string;
|
|
1063
|
+
signature?: string;
|
|
1064
|
+
threadId?: string;
|
|
1065
|
+
};
|
|
1066
|
+
type TronSecuritySetting = {
|
|
1067
|
+
requireSignature: boolean;
|
|
1068
|
+
};
|
|
1069
|
+
type TronTransferChallengeResponse = ({
|
|
1070
|
+
required: false;
|
|
1071
|
+
} & TronTransferChallengeNotRequired) | ({
|
|
1072
|
+
required: true;
|
|
1073
|
+
} & TronTransferChallengeRequired);
|
|
1074
|
+
type TronTransferChallengeNotRequired = {
|
|
1075
|
+
required: false;
|
|
1076
|
+
};
|
|
1077
|
+
type TronTransferChallengeRequired = {
|
|
1078
|
+
required: true;
|
|
1079
|
+
challengeId: string;
|
|
1080
|
+
message: string;
|
|
1081
|
+
expiresAt: string;
|
|
1082
|
+
};
|
|
1083
|
+
type TronTransferChallengeRequest = {
|
|
1084
|
+
recipientUserId: string;
|
|
1085
|
+
amountCents: number;
|
|
1086
|
+
};
|
|
934
1087
|
type TronGameBalanceResponse = {
|
|
935
1088
|
balanceCents: number;
|
|
936
1089
|
rakeBps: number;
|
|
@@ -1173,6 +1326,7 @@ type ThreadLastMessagePreview = {
|
|
|
1173
1326
|
url: string;
|
|
1174
1327
|
count: number;
|
|
1175
1328
|
} | null;
|
|
1329
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1176
1330
|
sentAt: string;
|
|
1177
1331
|
} | null;
|
|
1178
1332
|
type MessageEnvelope = {
|
|
@@ -1184,6 +1338,20 @@ type MessageEnvelope = {
|
|
|
1184
1338
|
iv: string;
|
|
1185
1339
|
ct: string;
|
|
1186
1340
|
} | null;
|
|
1341
|
+
type MessageTransactionTronTransfer = {
|
|
1342
|
+
kind: "tron_transfer";
|
|
1343
|
+
amountCents: number;
|
|
1344
|
+
recipientUserId: string;
|
|
1345
|
+
};
|
|
1346
|
+
type MessageTransactionNftTransfer = {
|
|
1347
|
+
kind: "nft_transfer";
|
|
1348
|
+
recipientUserId: string;
|
|
1349
|
+
collectionAddress: string;
|
|
1350
|
+
tokenId: string;
|
|
1351
|
+
amount: string;
|
|
1352
|
+
itemName: string | null;
|
|
1353
|
+
imageAssetId?: string | null;
|
|
1354
|
+
};
|
|
1187
1355
|
type GroupThreadSummary = {
|
|
1188
1356
|
kind: "group";
|
|
1189
1357
|
id: string;
|
|
@@ -1230,6 +1398,7 @@ type MessageItem = {
|
|
|
1230
1398
|
id: string;
|
|
1231
1399
|
threadId: string;
|
|
1232
1400
|
senderUserId: string;
|
|
1401
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1233
1402
|
body: string;
|
|
1234
1403
|
envelope?: MessageEnvelope;
|
|
1235
1404
|
sentAt: string;
|
|
@@ -1420,11 +1589,45 @@ type InventoryHolding = {
|
|
|
1420
1589
|
tokenId: string;
|
|
1421
1590
|
amount: string;
|
|
1422
1591
|
name: string | null;
|
|
1592
|
+
description: string | null;
|
|
1423
1593
|
imageAssetId: string | null;
|
|
1424
1594
|
bannerAssetId: string | null;
|
|
1425
1595
|
devMetadata: {
|
|
1426
1596
|
[key: string]: unknown;
|
|
1427
1597
|
};
|
|
1598
|
+
appId: string | null;
|
|
1599
|
+
appName: string | null;
|
|
1600
|
+
appLogoUrl: string | null;
|
|
1601
|
+
};
|
|
1602
|
+
type InventoryPendingPermitListResponse = {
|
|
1603
|
+
permits: Array<InventoryPendingPermit>;
|
|
1604
|
+
};
|
|
1605
|
+
type InventoryPendingPermit = {
|
|
1606
|
+
id: string;
|
|
1607
|
+
appId: string;
|
|
1608
|
+
itemId: string;
|
|
1609
|
+
amount: string;
|
|
1610
|
+
priceCents: number | null;
|
|
1611
|
+
gasSponsored: boolean;
|
|
1612
|
+
environment: "development" | "production";
|
|
1613
|
+
createdAt: string;
|
|
1614
|
+
tokenId: string;
|
|
1615
|
+
name: string | null;
|
|
1616
|
+
description: string | null;
|
|
1617
|
+
imageAssetId: string | null;
|
|
1618
|
+
chain: string;
|
|
1619
|
+
collectionAddress: string;
|
|
1620
|
+
kind: "erc721" | "erc1155";
|
|
1621
|
+
};
|
|
1622
|
+
type InventoryPermitRedeemResult = {
|
|
1623
|
+
mint: MintRequestResult;
|
|
1624
|
+
charge: {
|
|
1625
|
+
currency: "tron";
|
|
1626
|
+
gasCents: number;
|
|
1627
|
+
priceCents: number;
|
|
1628
|
+
totalCents: number;
|
|
1629
|
+
gasPaidBy: "user" | "developer";
|
|
1630
|
+
};
|
|
1428
1631
|
};
|
|
1429
1632
|
type MintRequestResult = {
|
|
1430
1633
|
mintRequestId: string;
|
|
@@ -1440,6 +1643,247 @@ type MintRequestInput = {
|
|
|
1440
1643
|
tokenId?: string;
|
|
1441
1644
|
amount?: string;
|
|
1442
1645
|
};
|
|
1646
|
+
type InventoryCollectionListResponse = {
|
|
1647
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1648
|
+
};
|
|
1649
|
+
type InventoryCollectionSummary = {
|
|
1650
|
+
id: string;
|
|
1651
|
+
chain: string;
|
|
1652
|
+
collectionAddress: string;
|
|
1653
|
+
kind: "erc721" | "erc1155";
|
|
1654
|
+
name: string | null;
|
|
1655
|
+
environment: "development" | "production";
|
|
1656
|
+
};
|
|
1657
|
+
type InventoryRegistrationQuote = {
|
|
1658
|
+
itemCount: number;
|
|
1659
|
+
baselineUsdCents: number;
|
|
1660
|
+
gasUsdCents: number;
|
|
1661
|
+
tron: {
|
|
1662
|
+
baselineCents: number;
|
|
1663
|
+
gasCents: number;
|
|
1664
|
+
totalCents: number;
|
|
1665
|
+
};
|
|
1666
|
+
eth: {
|
|
1667
|
+
baselineWei: string;
|
|
1668
|
+
gasWei: string;
|
|
1669
|
+
totalWei: string;
|
|
1670
|
+
};
|
|
1671
|
+
};
|
|
1672
|
+
type InventoryItemRegistrationInput = {
|
|
1673
|
+
collectionAddress: string;
|
|
1674
|
+
chain: string;
|
|
1675
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1676
|
+
};
|
|
1677
|
+
type InventoryItemRegistrationSpec = {
|
|
1678
|
+
name?: string | null;
|
|
1679
|
+
description?: string | null;
|
|
1680
|
+
devMetadata?: {
|
|
1681
|
+
[key: string]: unknown;
|
|
1682
|
+
};
|
|
1683
|
+
supplyType?: InventorySupplyType;
|
|
1684
|
+
maxSupply?: string | null;
|
|
1685
|
+
active?: boolean;
|
|
1686
|
+
};
|
|
1687
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1688
|
+
type InventoryItemRegistrationResult = {
|
|
1689
|
+
items: Array<InventoryItemRecord>;
|
|
1690
|
+
charge: {
|
|
1691
|
+
currency: "tron";
|
|
1692
|
+
amountCents: number;
|
|
1693
|
+
baselineCents: number;
|
|
1694
|
+
gasCents: number;
|
|
1695
|
+
addItemTxHash: string;
|
|
1696
|
+
};
|
|
1697
|
+
};
|
|
1698
|
+
type InventoryItemRecord = {
|
|
1699
|
+
id: string;
|
|
1700
|
+
collectionId: string;
|
|
1701
|
+
collectionAddress: string;
|
|
1702
|
+
chain: string;
|
|
1703
|
+
kind: "erc721" | "erc1155";
|
|
1704
|
+
tokenId: string;
|
|
1705
|
+
name: string | null;
|
|
1706
|
+
description: string | null;
|
|
1707
|
+
imageAssetId: string | null;
|
|
1708
|
+
bannerAssetId: string | null;
|
|
1709
|
+
devMetadata: {
|
|
1710
|
+
[key: string]: unknown;
|
|
1711
|
+
};
|
|
1712
|
+
supplyType: InventorySupplyType | null;
|
|
1713
|
+
maxSupply: string | null;
|
|
1714
|
+
active: boolean;
|
|
1715
|
+
};
|
|
1716
|
+
type InventoryItemListResponse = {
|
|
1717
|
+
items: Array<InventoryItemRecord>;
|
|
1718
|
+
};
|
|
1719
|
+
type InventoryMintPermitRecord = {
|
|
1720
|
+
id: string;
|
|
1721
|
+
appId: string;
|
|
1722
|
+
itemId: string;
|
|
1723
|
+
userId: string;
|
|
1724
|
+
amount: string;
|
|
1725
|
+
priceCents: number | null;
|
|
1726
|
+
gasSponsored: boolean;
|
|
1727
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1728
|
+
createdAt: string;
|
|
1729
|
+
};
|
|
1730
|
+
type InventoryMintPermitCreateInput = {
|
|
1731
|
+
toUserId: string;
|
|
1732
|
+
amount?: string;
|
|
1733
|
+
priceCents?: number | null;
|
|
1734
|
+
gasSponsored?: boolean;
|
|
1735
|
+
};
|
|
1736
|
+
type InventoryItemHoldersResponse = {
|
|
1737
|
+
stats: InventoryItemStats;
|
|
1738
|
+
holders: Array<InventoryItemHolder>;
|
|
1739
|
+
};
|
|
1740
|
+
type InventoryItemStats = {
|
|
1741
|
+
holderCount: number;
|
|
1742
|
+
walletCount: number;
|
|
1743
|
+
totalHeld: string;
|
|
1744
|
+
};
|
|
1745
|
+
type InventoryItemHolder = {
|
|
1746
|
+
walletAddress: string;
|
|
1747
|
+
userId: string | null;
|
|
1748
|
+
amount: string;
|
|
1749
|
+
};
|
|
1750
|
+
type InventoryVaultPermitRecord = {
|
|
1751
|
+
id: string;
|
|
1752
|
+
appId: string;
|
|
1753
|
+
itemId: string;
|
|
1754
|
+
userId: string;
|
|
1755
|
+
direction: "vault_in" | "withdraw";
|
|
1756
|
+
lockKind: "vault" | "burn" | null;
|
|
1757
|
+
amount: string;
|
|
1758
|
+
gasSponsored: boolean;
|
|
1759
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1760
|
+
custodyId: string | null;
|
|
1761
|
+
createdAt: string;
|
|
1762
|
+
};
|
|
1763
|
+
type InventoryVaultPermitCreateInput = {
|
|
1764
|
+
toUserId: string;
|
|
1765
|
+
lockKind: "vault" | "burn";
|
|
1766
|
+
amount?: string;
|
|
1767
|
+
gasSponsored?: boolean;
|
|
1768
|
+
};
|
|
1769
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1770
|
+
custodyId: string;
|
|
1771
|
+
};
|
|
1772
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1773
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1774
|
+
};
|
|
1775
|
+
type InventoryPendingVaultPermit = {
|
|
1776
|
+
id: string;
|
|
1777
|
+
appId: string;
|
|
1778
|
+
itemId: string;
|
|
1779
|
+
direction: "vault_in" | "withdraw";
|
|
1780
|
+
lockKind: "vault" | "burn" | null;
|
|
1781
|
+
amount: string;
|
|
1782
|
+
gasSponsored: boolean;
|
|
1783
|
+
environment: "development" | "production";
|
|
1784
|
+
custodyId: string | null;
|
|
1785
|
+
createdAt: string;
|
|
1786
|
+
tokenId: string;
|
|
1787
|
+
name: string | null;
|
|
1788
|
+
description: string | null;
|
|
1789
|
+
imageAssetId: string | null;
|
|
1790
|
+
chain: string;
|
|
1791
|
+
collectionAddress: string;
|
|
1792
|
+
kind: "erc721" | "erc1155";
|
|
1793
|
+
};
|
|
1794
|
+
type InventorySignedVaultPermit = {
|
|
1795
|
+
permitId: string;
|
|
1796
|
+
direction: "vault_in" | "withdraw";
|
|
1797
|
+
vault: string;
|
|
1798
|
+
collection: string;
|
|
1799
|
+
user: string;
|
|
1800
|
+
tokenId: string;
|
|
1801
|
+
amount: string;
|
|
1802
|
+
lockKind: "vault" | "burn" | null;
|
|
1803
|
+
destination: string | null;
|
|
1804
|
+
deadline: number;
|
|
1805
|
+
signature: string;
|
|
1806
|
+
};
|
|
1807
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1808
|
+
direction: "vault_in" | "withdraw";
|
|
1809
|
+
collection: string;
|
|
1810
|
+
vault: string;
|
|
1811
|
+
chainId: number;
|
|
1812
|
+
user: string;
|
|
1813
|
+
tokenId: string;
|
|
1814
|
+
amount: string;
|
|
1815
|
+
nonce: string | null;
|
|
1816
|
+
deadline: number;
|
|
1817
|
+
feeCents: number;
|
|
1818
|
+
gasWei: string;
|
|
1819
|
+
gasPaidBy: "developer" | "user";
|
|
1820
|
+
requiresUserSignature: boolean;
|
|
1821
|
+
};
|
|
1822
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1823
|
+
ok: boolean;
|
|
1824
|
+
txHash: string;
|
|
1825
|
+
chargedCents: number;
|
|
1826
|
+
gasPaidBy: "developer" | "user";
|
|
1827
|
+
};
|
|
1828
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1829
|
+
userSignature?: string;
|
|
1830
|
+
deadline?: number;
|
|
1831
|
+
};
|
|
1832
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1833
|
+
collection: string;
|
|
1834
|
+
chainId: number;
|
|
1835
|
+
from: string;
|
|
1836
|
+
to: string;
|
|
1837
|
+
tokenId: string;
|
|
1838
|
+
amount: string;
|
|
1839
|
+
nonce: string;
|
|
1840
|
+
deadline: number;
|
|
1841
|
+
feeCents: number;
|
|
1842
|
+
gasWei: string;
|
|
1843
|
+
selfPayAvailable: boolean;
|
|
1844
|
+
};
|
|
1845
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1846
|
+
toUserId: string;
|
|
1847
|
+
collection: string;
|
|
1848
|
+
tokenId: string;
|
|
1849
|
+
amount?: string;
|
|
1850
|
+
};
|
|
1851
|
+
type InventoryNftTransferResponse = {
|
|
1852
|
+
ok: boolean;
|
|
1853
|
+
txHash: string;
|
|
1854
|
+
chargedCents: number;
|
|
1855
|
+
};
|
|
1856
|
+
type InventoryNftTransferRequest = {
|
|
1857
|
+
toUserId: string;
|
|
1858
|
+
collection: string;
|
|
1859
|
+
tokenId: string;
|
|
1860
|
+
amount?: string;
|
|
1861
|
+
deadline: number;
|
|
1862
|
+
userSignature: string;
|
|
1863
|
+
threadId?: string;
|
|
1864
|
+
};
|
|
1865
|
+
type InventoryVaultCustodyListResponse = {
|
|
1866
|
+
custody: Array<InventoryVaultCustody>;
|
|
1867
|
+
};
|
|
1868
|
+
type InventoryVaultCustody = {
|
|
1869
|
+
id: string;
|
|
1870
|
+
collectionId: string;
|
|
1871
|
+
collectionAddress: string;
|
|
1872
|
+
chain: string;
|
|
1873
|
+
kind: "erc721" | "erc1155";
|
|
1874
|
+
tokenId: string;
|
|
1875
|
+
amount: string;
|
|
1876
|
+
lockKind: "vault" | "burn";
|
|
1877
|
+
vaultAddress: string;
|
|
1878
|
+
createdAt: string;
|
|
1879
|
+
name: string | null;
|
|
1880
|
+
description: string | null;
|
|
1881
|
+
imageAssetId: string | null;
|
|
1882
|
+
};
|
|
1883
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1884
|
+
ok: boolean;
|
|
1885
|
+
txHash: string;
|
|
1886
|
+
};
|
|
1443
1887
|
type NotificationListResponse = {
|
|
1444
1888
|
notifications: Array<NotificationItem>;
|
|
1445
1889
|
unreadCount: number;
|
|
@@ -1607,7 +2051,7 @@ type ProfileRecentReview = {
|
|
|
1607
2051
|
appId: string;
|
|
1608
2052
|
appName: string;
|
|
1609
2053
|
appLogoUrl: string | null;
|
|
1610
|
-
|
|
2054
|
+
recommended: boolean;
|
|
1611
2055
|
body: string;
|
|
1612
2056
|
createdAt: string;
|
|
1613
2057
|
};
|
|
@@ -1664,6 +2108,7 @@ type CreateDeveloperAppChain = {
|
|
|
1664
2108
|
};
|
|
1665
2109
|
type UpdateDeveloperApp = {
|
|
1666
2110
|
name?: DeveloperAppName;
|
|
2111
|
+
slug?: AppPageSlug | null;
|
|
1667
2112
|
logoUrl?: string | null;
|
|
1668
2113
|
testAccess?: "private" | "public";
|
|
1669
2114
|
redirectUris?: Array<string>;
|
|
@@ -1912,6 +2357,7 @@ type DeveloperProductionRequestPayload = {
|
|
|
1912
2357
|
type DeveloperAppItem = {
|
|
1913
2358
|
id: string;
|
|
1914
2359
|
name: DeveloperAppName;
|
|
2360
|
+
slug: AppPageSlug | null;
|
|
1915
2361
|
logoUrl: string | null;
|
|
1916
2362
|
environment: "development" | "production";
|
|
1917
2363
|
productionApprovedAt: string | null;
|
|
@@ -1963,6 +2409,11 @@ type AppPageDraft = {
|
|
|
1963
2409
|
gallery: AppPageGallery;
|
|
1964
2410
|
chapters: AppPageChapters;
|
|
1965
2411
|
links: AppPageLinks;
|
|
2412
|
+
platforms: AppPagePlatforms;
|
|
2413
|
+
gameType: AppPageGameType;
|
|
2414
|
+
ageRating: AppPageAgeRating;
|
|
2415
|
+
languages: AppPageLanguages;
|
|
2416
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1966
2417
|
firstPublishedAt: string | null;
|
|
1967
2418
|
reviewedAt: string | null;
|
|
1968
2419
|
reviewNotes: string | null;
|
|
@@ -1971,7 +2422,6 @@ type AppPageDraft = {
|
|
|
1971
2422
|
pendingReview: boolean;
|
|
1972
2423
|
};
|
|
1973
2424
|
type UpdateAppPage = {
|
|
1974
|
-
slug?: AppPageSlug | null;
|
|
1975
2425
|
categories?: AppPageCategories;
|
|
1976
2426
|
tagline?: AppPageTagline | null;
|
|
1977
2427
|
bannerUrl?: string | null;
|
|
@@ -1985,6 +2435,11 @@ type UpdateAppPage = {
|
|
|
1985
2435
|
gallery?: AppPageGallery;
|
|
1986
2436
|
chapters?: AppPageChapters;
|
|
1987
2437
|
links?: AppPageLinks;
|
|
2438
|
+
platforms?: AppPagePlatforms;
|
|
2439
|
+
gameType?: AppPageGameType;
|
|
2440
|
+
ageRating?: AppPageAgeRating;
|
|
2441
|
+
languages?: AppPageLanguages;
|
|
2442
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1988
2443
|
};
|
|
1989
2444
|
type AppPageGalleryUploadResponse = {
|
|
1990
2445
|
url: string;
|
|
@@ -2574,6 +3029,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2574
3029
|
readonly bearer: string;
|
|
2575
3030
|
}): Promise<AdminDeveloperListResponse>;
|
|
2576
3031
|
//#endregion
|
|
3032
|
+
//#region src/admin/inventory-vault.d.ts
|
|
3033
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
3034
|
+
readonly bearer: string;
|
|
3035
|
+
readonly custodyId: string;
|
|
3036
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
3037
|
+
//#endregion
|
|
2577
3038
|
//#region src/admin/payments.d.ts
|
|
2578
3039
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2579
3040
|
readonly bearer: string;
|
|
@@ -2736,6 +3197,41 @@ declare function deleteMyGameReview(context: TransportContext, input: {
|
|
|
2736
3197
|
readonly slug: string;
|
|
2737
3198
|
readonly bearer: string;
|
|
2738
3199
|
}): Promise<MyReviewResponse>;
|
|
3200
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3201
|
+
readonly slug: string;
|
|
3202
|
+
readonly bearer: string;
|
|
3203
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3204
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3205
|
+
readonly slug: string;
|
|
3206
|
+
readonly reviewId: string;
|
|
3207
|
+
readonly bearer: string;
|
|
3208
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3209
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3210
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3211
|
+
readonly slug: string;
|
|
3212
|
+
readonly reviewId: string;
|
|
3213
|
+
readonly bearer: string;
|
|
3214
|
+
readonly tip: TipReviewRequest;
|
|
3215
|
+
readonly idempotencyKey?: string;
|
|
3216
|
+
}): Promise<TipReviewResponse>;
|
|
3217
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3218
|
+
readonly slug: string;
|
|
3219
|
+
readonly reviewId: string;
|
|
3220
|
+
readonly bearer?: string;
|
|
3221
|
+
readonly limit?: number;
|
|
3222
|
+
readonly offset?: number;
|
|
3223
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3224
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3225
|
+
readonly slug: string;
|
|
3226
|
+
readonly reviewId: string;
|
|
3227
|
+
readonly bearer: string;
|
|
3228
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3229
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3230
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3231
|
+
readonly slug: string;
|
|
3232
|
+
readonly commentId: string;
|
|
3233
|
+
readonly bearer: string;
|
|
3234
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2739
3235
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2740
3236
|
readonly appId: string;
|
|
2741
3237
|
readonly reviewId: string;
|
|
@@ -2964,6 +3460,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2964
3460
|
readonly status: "acknowledged" | "dismissed";
|
|
2965
3461
|
}): Promise<AppContentReport>;
|
|
2966
3462
|
//#endregion
|
|
3463
|
+
//#region src/developer/inventory.d.ts
|
|
3464
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3465
|
+
readonly bearer: string;
|
|
3466
|
+
readonly appId: string;
|
|
3467
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3468
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3469
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3470
|
+
readonly bearer: string;
|
|
3471
|
+
readonly appId: string;
|
|
3472
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3473
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3474
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3475
|
+
readonly bearer: string;
|
|
3476
|
+
readonly appId: string;
|
|
3477
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3478
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3479
|
+
readonly bearer: string;
|
|
3480
|
+
readonly appId: string;
|
|
3481
|
+
}): Promise<InventoryItemListResponse>;
|
|
3482
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3483
|
+
readonly bearer: string;
|
|
3484
|
+
readonly appId: string;
|
|
3485
|
+
readonly itemId: string;
|
|
3486
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3487
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3488
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3489
|
+
readonly bearer: string;
|
|
3490
|
+
readonly appId: string;
|
|
3491
|
+
readonly itemId: string;
|
|
3492
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3493
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3494
|
+
readonly bearer: string;
|
|
3495
|
+
readonly appId: string;
|
|
3496
|
+
readonly itemId: string;
|
|
3497
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3498
|
+
readonly filename: string;
|
|
3499
|
+
readonly contentType: string;
|
|
3500
|
+
}): Promise<InventoryItemRecord>;
|
|
3501
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3502
|
+
readonly bearer: string;
|
|
3503
|
+
readonly appId: string;
|
|
3504
|
+
readonly itemId: string;
|
|
3505
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3506
|
+
readonly filename: string;
|
|
3507
|
+
readonly contentType: string;
|
|
3508
|
+
}): Promise<InventoryItemRecord>;
|
|
3509
|
+
//#endregion
|
|
2967
3510
|
//#region src/developer/pages.d.ts
|
|
2968
3511
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2969
3512
|
readonly bearer: string;
|
|
@@ -3088,6 +3631,68 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
3088
3631
|
readonly contentType: string;
|
|
3089
3632
|
}): Promise<unknown>;
|
|
3090
3633
|
//#endregion
|
|
3634
|
+
//#region src/developer/vault.d.ts
|
|
3635
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3636
|
+
readonly bearer: string;
|
|
3637
|
+
readonly appId: string;
|
|
3638
|
+
readonly itemId: string;
|
|
3639
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3640
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3641
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3642
|
+
readonly bearer: string;
|
|
3643
|
+
readonly appId: string;
|
|
3644
|
+
readonly itemId: string;
|
|
3645
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3646
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3647
|
+
//#endregion
|
|
3648
|
+
//#region src/events/inventory-socket.d.ts
|
|
3649
|
+
declare const inventoryUpdateEventSchema: z.ZodObject<{
|
|
3650
|
+
event: z.ZodLiteral<"inventory.updated">;
|
|
3651
|
+
deliveredAt: z.ZodString;
|
|
3652
|
+
environment: z.ZodEnum<{
|
|
3653
|
+
development: "development";
|
|
3654
|
+
production: "production";
|
|
3655
|
+
}>;
|
|
3656
|
+
subject: z.ZodString;
|
|
3657
|
+
collectionId: z.ZodString;
|
|
3658
|
+
collectionAddress: z.ZodString;
|
|
3659
|
+
chain: z.ZodString;
|
|
3660
|
+
kind: z.ZodEnum<{
|
|
3661
|
+
erc721: "erc721";
|
|
3662
|
+
erc1155: "erc1155";
|
|
3663
|
+
}>;
|
|
3664
|
+
tokenId: z.ZodString;
|
|
3665
|
+
direction: z.ZodEnum<{
|
|
3666
|
+
credit: "credit";
|
|
3667
|
+
debit: "debit";
|
|
3668
|
+
}>;
|
|
3669
|
+
amount: z.ZodString;
|
|
3670
|
+
balance: z.ZodString;
|
|
3671
|
+
}, z.core.$strip>;
|
|
3672
|
+
type InventoryUpdateEvent = z.infer<typeof inventoryUpdateEventSchema>;
|
|
3673
|
+
type OauthInventoryEventsSubscriberLifecycle = {
|
|
3674
|
+
onOpen?: () => void;
|
|
3675
|
+
onSubscribed?: (appId: string) => void;
|
|
3676
|
+
onMessage: (body: InventoryUpdateEvent) => void | Promise<void>;
|
|
3677
|
+
onClose?: (error: TronWsCloseError) => void;
|
|
3678
|
+
onError?: (error: Error) => void;
|
|
3679
|
+
};
|
|
3680
|
+
type OauthInventoryEventsSubscriberOptions = {
|
|
3681
|
+
readonly issuer: string;
|
|
3682
|
+
readonly clientId: string;
|
|
3683
|
+
readonly clientSecret: string;
|
|
3684
|
+
readonly logger?: Logger;
|
|
3685
|
+
readonly lifecycle: OauthInventoryEventsSubscriberLifecycle;
|
|
3686
|
+
readonly initialBackoffMs?: number;
|
|
3687
|
+
readonly maxBackoffMs?: number;
|
|
3688
|
+
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3689
|
+
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
3690
|
+
};
|
|
3691
|
+
type OauthInventoryEventsSubscriber = {
|
|
3692
|
+
readonly stop: () => void;
|
|
3693
|
+
};
|
|
3694
|
+
declare function startOauthInventoryEventsSubscriber(options: OauthInventoryEventsSubscriberOptions): OauthInventoryEventsSubscriber;
|
|
3695
|
+
//#endregion
|
|
3091
3696
|
//#region src/webhook/verify.d.ts
|
|
3092
3697
|
declare const oauthPaymentWebhookBodySchema: z.ZodObject<{
|
|
3093
3698
|
event: z.ZodEnum<{
|
|
@@ -3162,6 +3767,7 @@ type OauthPaymentEventsSubscriberOptions = {
|
|
|
3162
3767
|
readonly maxBackoffMs?: number;
|
|
3163
3768
|
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3164
3769
|
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
3770
|
+
readonly disableEventAck?: boolean;
|
|
3165
3771
|
};
|
|
3166
3772
|
type OauthPaymentEventsSubscriber = {
|
|
3167
3773
|
readonly stop: () => void;
|
|
@@ -3176,12 +3782,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
3176
3782
|
readonly bearer: string;
|
|
3177
3783
|
}): Promise<InventoryListResponse>;
|
|
3178
3784
|
//#endregion
|
|
3785
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
3786
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
3787
|
+
readonly bearer: string;
|
|
3788
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
3789
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
3790
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
3791
|
+
readonly bearer: string;
|
|
3792
|
+
readonly body: InventoryNftTransferRequest;
|
|
3793
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
3794
|
+
//#endregion
|
|
3795
|
+
//#region src/inventory/permits.d.ts
|
|
3796
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
3797
|
+
readonly bearer: string;
|
|
3798
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
3799
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
3800
|
+
readonly bearer: string;
|
|
3801
|
+
readonly permitId: string;
|
|
3802
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
3803
|
+
//#endregion
|
|
3179
3804
|
//#region src/inventory/request-mint.d.ts
|
|
3180
3805
|
declare function requestMint(context: TransportContext, input: {
|
|
3181
3806
|
readonly appBearer: string;
|
|
3182
3807
|
readonly body: MintRequestInput;
|
|
3183
3808
|
}): Promise<MintRequestResult>;
|
|
3184
3809
|
//#endregion
|
|
3810
|
+
//#region src/inventory/vault.d.ts
|
|
3811
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
3812
|
+
readonly bearer: string;
|
|
3813
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
3814
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
3815
|
+
readonly bearer: string;
|
|
3816
|
+
readonly permitId: string;
|
|
3817
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
3818
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
3819
|
+
readonly bearer: string;
|
|
3820
|
+
readonly permitId: string;
|
|
3821
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
3822
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
3823
|
+
readonly bearer: string;
|
|
3824
|
+
readonly permitId: string;
|
|
3825
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
3826
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
3827
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
3828
|
+
readonly bearer: string;
|
|
3829
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3830
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
3831
|
+
readonly bearer: string;
|
|
3832
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3833
|
+
//#endregion
|
|
3185
3834
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3186
3835
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3187
3836
|
readonly bearer: string;
|
|
@@ -3496,6 +4145,22 @@ declare function createTronDeposit(context: TransportContext, input: {
|
|
|
3496
4145
|
readonly bearer: string;
|
|
3497
4146
|
readonly body: TronDepositRequest;
|
|
3498
4147
|
}): Promise<TronDepositResponse>;
|
|
4148
|
+
declare function createTronTransfer(context: TransportContext, input: {
|
|
4149
|
+
readonly bearer: string;
|
|
4150
|
+
readonly body: TronTransferRequest;
|
|
4151
|
+
readonly idempotencyKey?: string;
|
|
4152
|
+
}): Promise<TronTransferResponse>;
|
|
4153
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
4154
|
+
readonly bearer: string;
|
|
4155
|
+
}): Promise<TronSecuritySetting>;
|
|
4156
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
4157
|
+
readonly bearer: string;
|
|
4158
|
+
readonly setting: TronSecuritySetting;
|
|
4159
|
+
}): Promise<TronSecuritySetting>;
|
|
4160
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
4161
|
+
readonly bearer: string;
|
|
4162
|
+
readonly body: TronTransferChallengeRequest;
|
|
4163
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3499
4164
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3500
4165
|
readonly bearer: string;
|
|
3501
4166
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3670,6 +4335,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3670
4335
|
readonly bearer: string;
|
|
3671
4336
|
readonly userId: string;
|
|
3672
4337
|
}): Promise<void>;
|
|
4338
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
4339
|
+
readonly bearer: string;
|
|
4340
|
+
readonly userId: string;
|
|
4341
|
+
}): Promise<void>;
|
|
3673
4342
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3674
4343
|
readonly bearer: string;
|
|
3675
4344
|
readonly requestId: string;
|
|
@@ -3808,6 +4477,7 @@ declare class TronNodeClient {
|
|
|
3808
4477
|
};
|
|
3809
4478
|
};
|
|
3810
4479
|
subscribeOauthPaymentEvents(lifecycle: OauthPaymentEventsSubscriberLifecycle): OauthPaymentEventsSubscriber;
|
|
4480
|
+
subscribeOauthInventoryEvents(lifecycle: OauthInventoryEventsSubscriberLifecycle): OauthInventoryEventsSubscriber;
|
|
3811
4481
|
get users(): {
|
|
3812
4482
|
get: (input: {
|
|
3813
4483
|
bearer?: string;
|
|
@@ -3929,4 +4599,4 @@ declare class TronNodeClient {
|
|
|
3929
4599
|
};
|
|
3930
4600
|
}
|
|
3931
4601
|
//#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 };
|
|
4602
|
+
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 };
|