@metatrongg/sdk 0.8.0-dev.8f88ba8 → 0.8.0-dev.911f8da
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 +648 -19
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +7934 -3355
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +698 -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 +4 -3
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;
|
|
@@ -815,6 +899,8 @@ type ActivityRowTronPot = {
|
|
|
815
899
|
role: "incoming" | "outgoing";
|
|
816
900
|
leg: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
817
901
|
amountCents: number;
|
|
902
|
+
usdCents: number;
|
|
903
|
+
status: "settled";
|
|
818
904
|
app: {
|
|
819
905
|
id: string;
|
|
820
906
|
name: string;
|
|
@@ -822,8 +908,16 @@ type ActivityRowTronPot = {
|
|
|
822
908
|
slug: string | null;
|
|
823
909
|
bannerUrl: string | null;
|
|
824
910
|
} | null;
|
|
911
|
+
involvedUsers?: Array<ActivityTronInvolvedUser> | null;
|
|
825
912
|
metadata?: PaymentMetadata | null;
|
|
826
913
|
};
|
|
914
|
+
type ActivityTronInvolvedUser = {
|
|
915
|
+
userId: string;
|
|
916
|
+
handle: string | null;
|
|
917
|
+
displayName: string | null;
|
|
918
|
+
role: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
919
|
+
amountCents: number;
|
|
920
|
+
};
|
|
827
921
|
type ActivityRowTronCashout = {
|
|
828
922
|
kind: "tron_cashout";
|
|
829
923
|
groupId: string | null;
|
|
@@ -841,6 +935,20 @@ type ActivityRowTronCashout = {
|
|
|
841
935
|
rejectionReason: string | null;
|
|
842
936
|
settledAt: string | null;
|
|
843
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
|
+
};
|
|
844
952
|
type ActivityRowReferralEarning = {
|
|
845
953
|
kind: "referral_earning";
|
|
846
954
|
groupId: string | null;
|
|
@@ -857,6 +965,22 @@ type ActivityRowReferralEarning = {
|
|
|
857
965
|
logIndex: number;
|
|
858
966
|
usdCents: number | null;
|
|
859
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
|
+
};
|
|
860
984
|
type OutstandingResponse = {
|
|
861
985
|
rows: Array<OutstandingByToken>;
|
|
862
986
|
};
|
|
@@ -906,7 +1030,7 @@ type TronLedgerResponse = {
|
|
|
906
1030
|
};
|
|
907
1031
|
type TronLedgerEntry = {
|
|
908
1032
|
id: string;
|
|
909
|
-
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning";
|
|
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";
|
|
910
1034
|
amountCents: number;
|
|
911
1035
|
currency: string;
|
|
912
1036
|
createdAt: string;
|
|
@@ -921,6 +1045,45 @@ type TronDepositResponse = {
|
|
|
921
1045
|
type TronDepositRequest = {
|
|
922
1046
|
amountCents: number;
|
|
923
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
|
+
};
|
|
924
1087
|
type TronGameBalanceResponse = {
|
|
925
1088
|
balanceCents: number;
|
|
926
1089
|
rakeBps: number;
|
|
@@ -1163,6 +1326,7 @@ type ThreadLastMessagePreview = {
|
|
|
1163
1326
|
url: string;
|
|
1164
1327
|
count: number;
|
|
1165
1328
|
} | null;
|
|
1329
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1166
1330
|
sentAt: string;
|
|
1167
1331
|
} | null;
|
|
1168
1332
|
type MessageEnvelope = {
|
|
@@ -1174,6 +1338,19 @@ type MessageEnvelope = {
|
|
|
1174
1338
|
iv: string;
|
|
1175
1339
|
ct: string;
|
|
1176
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
|
+
};
|
|
1177
1354
|
type GroupThreadSummary = {
|
|
1178
1355
|
kind: "group";
|
|
1179
1356
|
id: string;
|
|
@@ -1220,6 +1397,7 @@ type MessageItem = {
|
|
|
1220
1397
|
id: string;
|
|
1221
1398
|
threadId: string;
|
|
1222
1399
|
senderUserId: string;
|
|
1400
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1223
1401
|
body: string;
|
|
1224
1402
|
envelope?: MessageEnvelope;
|
|
1225
1403
|
sentAt: string;
|
|
@@ -1410,11 +1588,45 @@ type InventoryHolding = {
|
|
|
1410
1588
|
tokenId: string;
|
|
1411
1589
|
amount: string;
|
|
1412
1590
|
name: string | null;
|
|
1591
|
+
description: string | null;
|
|
1413
1592
|
imageAssetId: string | null;
|
|
1414
1593
|
bannerAssetId: string | null;
|
|
1415
1594
|
devMetadata: {
|
|
1416
1595
|
[key: string]: unknown;
|
|
1417
1596
|
};
|
|
1597
|
+
appId: string | null;
|
|
1598
|
+
appName: string | null;
|
|
1599
|
+
appLogoUrl: string | null;
|
|
1600
|
+
};
|
|
1601
|
+
type InventoryPendingPermitListResponse = {
|
|
1602
|
+
permits: Array<InventoryPendingPermit>;
|
|
1603
|
+
};
|
|
1604
|
+
type InventoryPendingPermit = {
|
|
1605
|
+
id: string;
|
|
1606
|
+
appId: string;
|
|
1607
|
+
itemId: string;
|
|
1608
|
+
amount: string;
|
|
1609
|
+
priceCents: number | null;
|
|
1610
|
+
gasSponsored: boolean;
|
|
1611
|
+
environment: "development" | "production";
|
|
1612
|
+
createdAt: string;
|
|
1613
|
+
tokenId: string;
|
|
1614
|
+
name: string | null;
|
|
1615
|
+
description: string | null;
|
|
1616
|
+
imageAssetId: string | null;
|
|
1617
|
+
chain: string;
|
|
1618
|
+
collectionAddress: string;
|
|
1619
|
+
kind: "erc721" | "erc1155";
|
|
1620
|
+
};
|
|
1621
|
+
type InventoryPermitRedeemResult = {
|
|
1622
|
+
mint: MintRequestResult;
|
|
1623
|
+
charge: {
|
|
1624
|
+
currency: "tron";
|
|
1625
|
+
gasCents: number;
|
|
1626
|
+
priceCents: number;
|
|
1627
|
+
totalCents: number;
|
|
1628
|
+
gasPaidBy: "user" | "developer";
|
|
1629
|
+
};
|
|
1418
1630
|
};
|
|
1419
1631
|
type MintRequestResult = {
|
|
1420
1632
|
mintRequestId: string;
|
|
@@ -1430,6 +1642,247 @@ type MintRequestInput = {
|
|
|
1430
1642
|
tokenId?: string;
|
|
1431
1643
|
amount?: string;
|
|
1432
1644
|
};
|
|
1645
|
+
type InventoryCollectionListResponse = {
|
|
1646
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1647
|
+
};
|
|
1648
|
+
type InventoryCollectionSummary = {
|
|
1649
|
+
id: string;
|
|
1650
|
+
chain: string;
|
|
1651
|
+
collectionAddress: string;
|
|
1652
|
+
kind: "erc721" | "erc1155";
|
|
1653
|
+
name: string | null;
|
|
1654
|
+
environment: "development" | "production";
|
|
1655
|
+
};
|
|
1656
|
+
type InventoryRegistrationQuote = {
|
|
1657
|
+
itemCount: number;
|
|
1658
|
+
baselineUsdCents: number;
|
|
1659
|
+
gasUsdCents: number;
|
|
1660
|
+
tron: {
|
|
1661
|
+
baselineCents: number;
|
|
1662
|
+
gasCents: number;
|
|
1663
|
+
totalCents: number;
|
|
1664
|
+
};
|
|
1665
|
+
eth: {
|
|
1666
|
+
baselineWei: string;
|
|
1667
|
+
gasWei: string;
|
|
1668
|
+
totalWei: string;
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1671
|
+
type InventoryItemRegistrationInput = {
|
|
1672
|
+
collectionAddress: string;
|
|
1673
|
+
chain: string;
|
|
1674
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1675
|
+
};
|
|
1676
|
+
type InventoryItemRegistrationSpec = {
|
|
1677
|
+
name?: string | null;
|
|
1678
|
+
description?: string | null;
|
|
1679
|
+
devMetadata?: {
|
|
1680
|
+
[key: string]: unknown;
|
|
1681
|
+
};
|
|
1682
|
+
supplyType?: InventorySupplyType;
|
|
1683
|
+
maxSupply?: string | null;
|
|
1684
|
+
active?: boolean;
|
|
1685
|
+
};
|
|
1686
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1687
|
+
type InventoryItemRegistrationResult = {
|
|
1688
|
+
items: Array<InventoryItemRecord>;
|
|
1689
|
+
charge: {
|
|
1690
|
+
currency: "tron";
|
|
1691
|
+
amountCents: number;
|
|
1692
|
+
baselineCents: number;
|
|
1693
|
+
gasCents: number;
|
|
1694
|
+
addItemTxHash: string;
|
|
1695
|
+
};
|
|
1696
|
+
};
|
|
1697
|
+
type InventoryItemRecord = {
|
|
1698
|
+
id: string;
|
|
1699
|
+
collectionId: string;
|
|
1700
|
+
collectionAddress: string;
|
|
1701
|
+
chain: string;
|
|
1702
|
+
kind: "erc721" | "erc1155";
|
|
1703
|
+
tokenId: string;
|
|
1704
|
+
name: string | null;
|
|
1705
|
+
description: string | null;
|
|
1706
|
+
imageAssetId: string | null;
|
|
1707
|
+
bannerAssetId: string | null;
|
|
1708
|
+
devMetadata: {
|
|
1709
|
+
[key: string]: unknown;
|
|
1710
|
+
};
|
|
1711
|
+
supplyType: InventorySupplyType | null;
|
|
1712
|
+
maxSupply: string | null;
|
|
1713
|
+
active: boolean;
|
|
1714
|
+
};
|
|
1715
|
+
type InventoryItemListResponse = {
|
|
1716
|
+
items: Array<InventoryItemRecord>;
|
|
1717
|
+
};
|
|
1718
|
+
type InventoryMintPermitRecord = {
|
|
1719
|
+
id: string;
|
|
1720
|
+
appId: string;
|
|
1721
|
+
itemId: string;
|
|
1722
|
+
userId: string;
|
|
1723
|
+
amount: string;
|
|
1724
|
+
priceCents: number | null;
|
|
1725
|
+
gasSponsored: boolean;
|
|
1726
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1727
|
+
createdAt: string;
|
|
1728
|
+
};
|
|
1729
|
+
type InventoryMintPermitCreateInput = {
|
|
1730
|
+
toUserId: string;
|
|
1731
|
+
amount?: string;
|
|
1732
|
+
priceCents?: number | null;
|
|
1733
|
+
gasSponsored?: boolean;
|
|
1734
|
+
};
|
|
1735
|
+
type InventoryItemHoldersResponse = {
|
|
1736
|
+
stats: InventoryItemStats;
|
|
1737
|
+
holders: Array<InventoryItemHolder>;
|
|
1738
|
+
};
|
|
1739
|
+
type InventoryItemStats = {
|
|
1740
|
+
holderCount: number;
|
|
1741
|
+
walletCount: number;
|
|
1742
|
+
totalHeld: string;
|
|
1743
|
+
};
|
|
1744
|
+
type InventoryItemHolder = {
|
|
1745
|
+
walletAddress: string;
|
|
1746
|
+
userId: string | null;
|
|
1747
|
+
amount: string;
|
|
1748
|
+
};
|
|
1749
|
+
type InventoryVaultPermitRecord = {
|
|
1750
|
+
id: string;
|
|
1751
|
+
appId: string;
|
|
1752
|
+
itemId: string;
|
|
1753
|
+
userId: string;
|
|
1754
|
+
direction: "vault_in" | "withdraw";
|
|
1755
|
+
lockKind: "vault" | "burn" | null;
|
|
1756
|
+
amount: string;
|
|
1757
|
+
gasSponsored: boolean;
|
|
1758
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1759
|
+
custodyId: string | null;
|
|
1760
|
+
createdAt: string;
|
|
1761
|
+
};
|
|
1762
|
+
type InventoryVaultPermitCreateInput = {
|
|
1763
|
+
toUserId: string;
|
|
1764
|
+
lockKind: "vault" | "burn";
|
|
1765
|
+
amount?: string;
|
|
1766
|
+
gasSponsored?: boolean;
|
|
1767
|
+
};
|
|
1768
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1769
|
+
custodyId: string;
|
|
1770
|
+
};
|
|
1771
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1772
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1773
|
+
};
|
|
1774
|
+
type InventoryPendingVaultPermit = {
|
|
1775
|
+
id: string;
|
|
1776
|
+
appId: string;
|
|
1777
|
+
itemId: string;
|
|
1778
|
+
direction: "vault_in" | "withdraw";
|
|
1779
|
+
lockKind: "vault" | "burn" | null;
|
|
1780
|
+
amount: string;
|
|
1781
|
+
gasSponsored: boolean;
|
|
1782
|
+
environment: "development" | "production";
|
|
1783
|
+
custodyId: string | null;
|
|
1784
|
+
createdAt: string;
|
|
1785
|
+
tokenId: string;
|
|
1786
|
+
name: string | null;
|
|
1787
|
+
description: string | null;
|
|
1788
|
+
imageAssetId: string | null;
|
|
1789
|
+
chain: string;
|
|
1790
|
+
collectionAddress: string;
|
|
1791
|
+
kind: "erc721" | "erc1155";
|
|
1792
|
+
};
|
|
1793
|
+
type InventorySignedVaultPermit = {
|
|
1794
|
+
permitId: string;
|
|
1795
|
+
direction: "vault_in" | "withdraw";
|
|
1796
|
+
vault: string;
|
|
1797
|
+
collection: string;
|
|
1798
|
+
user: string;
|
|
1799
|
+
tokenId: string;
|
|
1800
|
+
amount: string;
|
|
1801
|
+
lockKind: "vault" | "burn" | null;
|
|
1802
|
+
destination: string | null;
|
|
1803
|
+
deadline: number;
|
|
1804
|
+
signature: string;
|
|
1805
|
+
};
|
|
1806
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1807
|
+
direction: "vault_in" | "withdraw";
|
|
1808
|
+
collection: string;
|
|
1809
|
+
vault: string;
|
|
1810
|
+
chainId: number;
|
|
1811
|
+
user: string;
|
|
1812
|
+
tokenId: string;
|
|
1813
|
+
amount: string;
|
|
1814
|
+
nonce: string | null;
|
|
1815
|
+
deadline: number;
|
|
1816
|
+
feeCents: number;
|
|
1817
|
+
gasWei: string;
|
|
1818
|
+
gasPaidBy: "developer" | "user";
|
|
1819
|
+
requiresUserSignature: boolean;
|
|
1820
|
+
};
|
|
1821
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1822
|
+
ok: boolean;
|
|
1823
|
+
txHash: string;
|
|
1824
|
+
chargedCents: number;
|
|
1825
|
+
gasPaidBy: "developer" | "user";
|
|
1826
|
+
};
|
|
1827
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1828
|
+
userSignature?: string;
|
|
1829
|
+
deadline?: number;
|
|
1830
|
+
};
|
|
1831
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1832
|
+
collection: string;
|
|
1833
|
+
chainId: number;
|
|
1834
|
+
from: string;
|
|
1835
|
+
to: string;
|
|
1836
|
+
tokenId: string;
|
|
1837
|
+
amount: string;
|
|
1838
|
+
nonce: string;
|
|
1839
|
+
deadline: number;
|
|
1840
|
+
feeCents: number;
|
|
1841
|
+
gasWei: string;
|
|
1842
|
+
selfPayAvailable: boolean;
|
|
1843
|
+
};
|
|
1844
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1845
|
+
toUserId: string;
|
|
1846
|
+
collection: string;
|
|
1847
|
+
tokenId: string;
|
|
1848
|
+
amount?: string;
|
|
1849
|
+
};
|
|
1850
|
+
type InventoryNftTransferResponse = {
|
|
1851
|
+
ok: boolean;
|
|
1852
|
+
txHash: string;
|
|
1853
|
+
chargedCents: number;
|
|
1854
|
+
};
|
|
1855
|
+
type InventoryNftTransferRequest = {
|
|
1856
|
+
toUserId: string;
|
|
1857
|
+
collection: string;
|
|
1858
|
+
tokenId: string;
|
|
1859
|
+
amount?: string;
|
|
1860
|
+
deadline: number;
|
|
1861
|
+
userSignature: string;
|
|
1862
|
+
threadId?: string;
|
|
1863
|
+
};
|
|
1864
|
+
type InventoryVaultCustodyListResponse = {
|
|
1865
|
+
custody: Array<InventoryVaultCustody>;
|
|
1866
|
+
};
|
|
1867
|
+
type InventoryVaultCustody = {
|
|
1868
|
+
id: string;
|
|
1869
|
+
collectionId: string;
|
|
1870
|
+
collectionAddress: string;
|
|
1871
|
+
chain: string;
|
|
1872
|
+
kind: "erc721" | "erc1155";
|
|
1873
|
+
tokenId: string;
|
|
1874
|
+
amount: string;
|
|
1875
|
+
lockKind: "vault" | "burn";
|
|
1876
|
+
vaultAddress: string;
|
|
1877
|
+
createdAt: string;
|
|
1878
|
+
name: string | null;
|
|
1879
|
+
description: string | null;
|
|
1880
|
+
imageAssetId: string | null;
|
|
1881
|
+
};
|
|
1882
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1883
|
+
ok: boolean;
|
|
1884
|
+
txHash: string;
|
|
1885
|
+
};
|
|
1433
1886
|
type NotificationListResponse = {
|
|
1434
1887
|
notifications: Array<NotificationItem>;
|
|
1435
1888
|
unreadCount: number;
|
|
@@ -1597,7 +2050,7 @@ type ProfileRecentReview = {
|
|
|
1597
2050
|
appId: string;
|
|
1598
2051
|
appName: string;
|
|
1599
2052
|
appLogoUrl: string | null;
|
|
1600
|
-
|
|
2053
|
+
recommended: boolean;
|
|
1601
2054
|
body: string;
|
|
1602
2055
|
createdAt: string;
|
|
1603
2056
|
};
|
|
@@ -1654,6 +2107,7 @@ type CreateDeveloperAppChain = {
|
|
|
1654
2107
|
};
|
|
1655
2108
|
type UpdateDeveloperApp = {
|
|
1656
2109
|
name?: DeveloperAppName;
|
|
2110
|
+
slug?: AppPageSlug | null;
|
|
1657
2111
|
logoUrl?: string | null;
|
|
1658
2112
|
testAccess?: "private" | "public";
|
|
1659
2113
|
redirectUris?: Array<string>;
|
|
@@ -1902,6 +2356,7 @@ type DeveloperProductionRequestPayload = {
|
|
|
1902
2356
|
type DeveloperAppItem = {
|
|
1903
2357
|
id: string;
|
|
1904
2358
|
name: DeveloperAppName;
|
|
2359
|
+
slug: AppPageSlug | null;
|
|
1905
2360
|
logoUrl: string | null;
|
|
1906
2361
|
environment: "development" | "production";
|
|
1907
2362
|
productionApprovedAt: string | null;
|
|
@@ -1953,6 +2408,11 @@ type AppPageDraft = {
|
|
|
1953
2408
|
gallery: AppPageGallery;
|
|
1954
2409
|
chapters: AppPageChapters;
|
|
1955
2410
|
links: AppPageLinks;
|
|
2411
|
+
platforms: AppPagePlatforms;
|
|
2412
|
+
gameType: AppPageGameType;
|
|
2413
|
+
ageRating: AppPageAgeRating;
|
|
2414
|
+
languages: AppPageLanguages;
|
|
2415
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1956
2416
|
firstPublishedAt: string | null;
|
|
1957
2417
|
reviewedAt: string | null;
|
|
1958
2418
|
reviewNotes: string | null;
|
|
@@ -1961,7 +2421,6 @@ type AppPageDraft = {
|
|
|
1961
2421
|
pendingReview: boolean;
|
|
1962
2422
|
};
|
|
1963
2423
|
type UpdateAppPage = {
|
|
1964
|
-
slug?: AppPageSlug | null;
|
|
1965
2424
|
categories?: AppPageCategories;
|
|
1966
2425
|
tagline?: AppPageTagline | null;
|
|
1967
2426
|
bannerUrl?: string | null;
|
|
@@ -1975,6 +2434,11 @@ type UpdateAppPage = {
|
|
|
1975
2434
|
gallery?: AppPageGallery;
|
|
1976
2435
|
chapters?: AppPageChapters;
|
|
1977
2436
|
links?: AppPageLinks;
|
|
2437
|
+
platforms?: AppPagePlatforms;
|
|
2438
|
+
gameType?: AppPageGameType;
|
|
2439
|
+
ageRating?: AppPageAgeRating;
|
|
2440
|
+
languages?: AppPageLanguages;
|
|
2441
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1978
2442
|
};
|
|
1979
2443
|
type AppPageGalleryUploadResponse = {
|
|
1980
2444
|
url: string;
|
|
@@ -2564,6 +3028,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2564
3028
|
readonly bearer: string;
|
|
2565
3029
|
}): Promise<AdminDeveloperListResponse>;
|
|
2566
3030
|
//#endregion
|
|
3031
|
+
//#region src/admin/inventory-vault.d.ts
|
|
3032
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
3033
|
+
readonly bearer: string;
|
|
3034
|
+
readonly custodyId: string;
|
|
3035
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
3036
|
+
//#endregion
|
|
2567
3037
|
//#region src/admin/payments.d.ts
|
|
2568
3038
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2569
3039
|
readonly bearer: string;
|
|
@@ -2726,6 +3196,41 @@ declare function deleteMyGameReview(context: TransportContext, input: {
|
|
|
2726
3196
|
readonly slug: string;
|
|
2727
3197
|
readonly bearer: string;
|
|
2728
3198
|
}): Promise<MyReviewResponse>;
|
|
3199
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3200
|
+
readonly slug: string;
|
|
3201
|
+
readonly bearer: string;
|
|
3202
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3203
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3204
|
+
readonly slug: string;
|
|
3205
|
+
readonly reviewId: string;
|
|
3206
|
+
readonly bearer: string;
|
|
3207
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3208
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3209
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3210
|
+
readonly slug: string;
|
|
3211
|
+
readonly reviewId: string;
|
|
3212
|
+
readonly bearer: string;
|
|
3213
|
+
readonly tip: TipReviewRequest;
|
|
3214
|
+
readonly idempotencyKey?: string;
|
|
3215
|
+
}): Promise<TipReviewResponse>;
|
|
3216
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3217
|
+
readonly slug: string;
|
|
3218
|
+
readonly reviewId: string;
|
|
3219
|
+
readonly bearer?: string;
|
|
3220
|
+
readonly limit?: number;
|
|
3221
|
+
readonly offset?: number;
|
|
3222
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3223
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3224
|
+
readonly slug: string;
|
|
3225
|
+
readonly reviewId: string;
|
|
3226
|
+
readonly bearer: string;
|
|
3227
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3228
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3229
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3230
|
+
readonly slug: string;
|
|
3231
|
+
readonly commentId: string;
|
|
3232
|
+
readonly bearer: string;
|
|
3233
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2729
3234
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2730
3235
|
readonly appId: string;
|
|
2731
3236
|
readonly reviewId: string;
|
|
@@ -2954,6 +3459,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2954
3459
|
readonly status: "acknowledged" | "dismissed";
|
|
2955
3460
|
}): Promise<AppContentReport>;
|
|
2956
3461
|
//#endregion
|
|
3462
|
+
//#region src/developer/inventory.d.ts
|
|
3463
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3464
|
+
readonly bearer: string;
|
|
3465
|
+
readonly appId: string;
|
|
3466
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3467
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3468
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3469
|
+
readonly bearer: string;
|
|
3470
|
+
readonly appId: string;
|
|
3471
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3472
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3473
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3474
|
+
readonly bearer: string;
|
|
3475
|
+
readonly appId: string;
|
|
3476
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3477
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3478
|
+
readonly bearer: string;
|
|
3479
|
+
readonly appId: string;
|
|
3480
|
+
}): Promise<InventoryItemListResponse>;
|
|
3481
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3482
|
+
readonly bearer: string;
|
|
3483
|
+
readonly appId: string;
|
|
3484
|
+
readonly itemId: string;
|
|
3485
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3486
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3487
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3488
|
+
readonly bearer: string;
|
|
3489
|
+
readonly appId: string;
|
|
3490
|
+
readonly itemId: string;
|
|
3491
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3492
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3493
|
+
readonly bearer: string;
|
|
3494
|
+
readonly appId: string;
|
|
3495
|
+
readonly itemId: string;
|
|
3496
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3497
|
+
readonly filename: string;
|
|
3498
|
+
readonly contentType: string;
|
|
3499
|
+
}): Promise<InventoryItemRecord>;
|
|
3500
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3501
|
+
readonly bearer: string;
|
|
3502
|
+
readonly appId: string;
|
|
3503
|
+
readonly itemId: string;
|
|
3504
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3505
|
+
readonly filename: string;
|
|
3506
|
+
readonly contentType: string;
|
|
3507
|
+
}): Promise<InventoryItemRecord>;
|
|
3508
|
+
//#endregion
|
|
2957
3509
|
//#region src/developer/pages.d.ts
|
|
2958
3510
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2959
3511
|
readonly bearer: string;
|
|
@@ -3078,6 +3630,68 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
3078
3630
|
readonly contentType: string;
|
|
3079
3631
|
}): Promise<unknown>;
|
|
3080
3632
|
//#endregion
|
|
3633
|
+
//#region src/developer/vault.d.ts
|
|
3634
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3635
|
+
readonly bearer: string;
|
|
3636
|
+
readonly appId: string;
|
|
3637
|
+
readonly itemId: string;
|
|
3638
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3639
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3640
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3641
|
+
readonly bearer: string;
|
|
3642
|
+
readonly appId: string;
|
|
3643
|
+
readonly itemId: string;
|
|
3644
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3645
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3646
|
+
//#endregion
|
|
3647
|
+
//#region src/events/inventory-socket.d.ts
|
|
3648
|
+
declare const inventoryUpdateEventSchema: z.ZodObject<{
|
|
3649
|
+
event: z.ZodLiteral<"inventory.updated">;
|
|
3650
|
+
deliveredAt: z.ZodString;
|
|
3651
|
+
environment: z.ZodEnum<{
|
|
3652
|
+
development: "development";
|
|
3653
|
+
production: "production";
|
|
3654
|
+
}>;
|
|
3655
|
+
subject: z.ZodString;
|
|
3656
|
+
collectionId: z.ZodString;
|
|
3657
|
+
collectionAddress: z.ZodString;
|
|
3658
|
+
chain: z.ZodString;
|
|
3659
|
+
kind: z.ZodEnum<{
|
|
3660
|
+
erc721: "erc721";
|
|
3661
|
+
erc1155: "erc1155";
|
|
3662
|
+
}>;
|
|
3663
|
+
tokenId: z.ZodString;
|
|
3664
|
+
direction: z.ZodEnum<{
|
|
3665
|
+
credit: "credit";
|
|
3666
|
+
debit: "debit";
|
|
3667
|
+
}>;
|
|
3668
|
+
amount: z.ZodString;
|
|
3669
|
+
balance: z.ZodString;
|
|
3670
|
+
}, z.core.$strip>;
|
|
3671
|
+
type InventoryUpdateEvent = z.infer<typeof inventoryUpdateEventSchema>;
|
|
3672
|
+
type OauthInventoryEventsSubscriberLifecycle = {
|
|
3673
|
+
onOpen?: () => void;
|
|
3674
|
+
onSubscribed?: (appId: string) => void;
|
|
3675
|
+
onMessage: (body: InventoryUpdateEvent) => void | Promise<void>;
|
|
3676
|
+
onClose?: (error: TronWsCloseError) => void;
|
|
3677
|
+
onError?: (error: Error) => void;
|
|
3678
|
+
};
|
|
3679
|
+
type OauthInventoryEventsSubscriberOptions = {
|
|
3680
|
+
readonly issuer: string;
|
|
3681
|
+
readonly clientId: string;
|
|
3682
|
+
readonly clientSecret: string;
|
|
3683
|
+
readonly logger?: Logger;
|
|
3684
|
+
readonly lifecycle: OauthInventoryEventsSubscriberLifecycle;
|
|
3685
|
+
readonly initialBackoffMs?: number;
|
|
3686
|
+
readonly maxBackoffMs?: number;
|
|
3687
|
+
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3688
|
+
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
3689
|
+
};
|
|
3690
|
+
type OauthInventoryEventsSubscriber = {
|
|
3691
|
+
readonly stop: () => void;
|
|
3692
|
+
};
|
|
3693
|
+
declare function startOauthInventoryEventsSubscriber(options: OauthInventoryEventsSubscriberOptions): OauthInventoryEventsSubscriber;
|
|
3694
|
+
//#endregion
|
|
3081
3695
|
//#region src/webhook/verify.d.ts
|
|
3082
3696
|
declare const oauthPaymentWebhookBodySchema: z.ZodObject<{
|
|
3083
3697
|
event: z.ZodEnum<{
|
|
@@ -3152,6 +3766,7 @@ type OauthPaymentEventsSubscriberOptions = {
|
|
|
3152
3766
|
readonly maxBackoffMs?: number;
|
|
3153
3767
|
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3154
3768
|
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
3769
|
+
readonly disableEventAck?: boolean;
|
|
3155
3770
|
};
|
|
3156
3771
|
type OauthPaymentEventsSubscriber = {
|
|
3157
3772
|
readonly stop: () => void;
|
|
@@ -3166,12 +3781,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
3166
3781
|
readonly bearer: string;
|
|
3167
3782
|
}): Promise<InventoryListResponse>;
|
|
3168
3783
|
//#endregion
|
|
3784
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
3785
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
3786
|
+
readonly bearer: string;
|
|
3787
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
3788
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
3789
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
3790
|
+
readonly bearer: string;
|
|
3791
|
+
readonly body: InventoryNftTransferRequest;
|
|
3792
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
3793
|
+
//#endregion
|
|
3794
|
+
//#region src/inventory/permits.d.ts
|
|
3795
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
3796
|
+
readonly bearer: string;
|
|
3797
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
3798
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
3799
|
+
readonly bearer: string;
|
|
3800
|
+
readonly permitId: string;
|
|
3801
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
3802
|
+
//#endregion
|
|
3169
3803
|
//#region src/inventory/request-mint.d.ts
|
|
3170
3804
|
declare function requestMint(context: TransportContext, input: {
|
|
3171
3805
|
readonly appBearer: string;
|
|
3172
3806
|
readonly body: MintRequestInput;
|
|
3173
3807
|
}): Promise<MintRequestResult>;
|
|
3174
3808
|
//#endregion
|
|
3809
|
+
//#region src/inventory/vault.d.ts
|
|
3810
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
3811
|
+
readonly bearer: string;
|
|
3812
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
3813
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
3814
|
+
readonly bearer: string;
|
|
3815
|
+
readonly permitId: string;
|
|
3816
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
3817
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
3818
|
+
readonly bearer: string;
|
|
3819
|
+
readonly permitId: string;
|
|
3820
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
3821
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
3822
|
+
readonly bearer: string;
|
|
3823
|
+
readonly permitId: string;
|
|
3824
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
3825
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
3826
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
3827
|
+
readonly bearer: string;
|
|
3828
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3829
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
3830
|
+
readonly bearer: string;
|
|
3831
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3832
|
+
//#endregion
|
|
3175
3833
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3176
3834
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3177
3835
|
readonly bearer: string;
|
|
@@ -3486,6 +4144,22 @@ declare function createTronDeposit(context: TransportContext, input: {
|
|
|
3486
4144
|
readonly bearer: string;
|
|
3487
4145
|
readonly body: TronDepositRequest;
|
|
3488
4146
|
}): Promise<TronDepositResponse>;
|
|
4147
|
+
declare function createTronTransfer(context: TransportContext, input: {
|
|
4148
|
+
readonly bearer: string;
|
|
4149
|
+
readonly body: TronTransferRequest;
|
|
4150
|
+
readonly idempotencyKey?: string;
|
|
4151
|
+
}): Promise<TronTransferResponse>;
|
|
4152
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
4153
|
+
readonly bearer: string;
|
|
4154
|
+
}): Promise<TronSecuritySetting>;
|
|
4155
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
4156
|
+
readonly bearer: string;
|
|
4157
|
+
readonly setting: TronSecuritySetting;
|
|
4158
|
+
}): Promise<TronSecuritySetting>;
|
|
4159
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
4160
|
+
readonly bearer: string;
|
|
4161
|
+
readonly body: TronTransferChallengeRequest;
|
|
4162
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3489
4163
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3490
4164
|
readonly bearer: string;
|
|
3491
4165
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3660,6 +4334,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3660
4334
|
readonly bearer: string;
|
|
3661
4335
|
readonly userId: string;
|
|
3662
4336
|
}): Promise<void>;
|
|
4337
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
4338
|
+
readonly bearer: string;
|
|
4339
|
+
readonly userId: string;
|
|
4340
|
+
}): Promise<void>;
|
|
3663
4341
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3664
4342
|
readonly bearer: string;
|
|
3665
4343
|
readonly requestId: string;
|
|
@@ -3798,6 +4476,7 @@ declare class TronNodeClient {
|
|
|
3798
4476
|
};
|
|
3799
4477
|
};
|
|
3800
4478
|
subscribeOauthPaymentEvents(lifecycle: OauthPaymentEventsSubscriberLifecycle): OauthPaymentEventsSubscriber;
|
|
4479
|
+
subscribeOauthInventoryEvents(lifecycle: OauthInventoryEventsSubscriberLifecycle): OauthInventoryEventsSubscriber;
|
|
3801
4480
|
get users(): {
|
|
3802
4481
|
get: (input: {
|
|
3803
4482
|
bearer?: string;
|
|
@@ -3919,4 +4598,4 @@ declare class TronNodeClient {
|
|
|
3919
4598
|
};
|
|
3920
4599
|
}
|
|
3921
4600
|
//#endregion
|
|
3922
|
-
export { AppTokenCache, AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, type FetchLike, GameHalfCredentials, HttpsGuardOptions, InflightDedup, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, type NodeClientConfig, OauthErrorCode, OauthPaymentEventsSubscriber, OauthPaymentEventsSubscriberLifecycle, OauthPaymentEventsSubscriberOptions, OauthPaymentWebhookBody, type OauthScope, PkcePair, PlaySessionGameStatus, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, RequestOptions, SERVER_RATE_LIMIT_MAX_MUTATING, SERVER_RATE_LIMIT_MAX_READ, SERVER_RATE_LIMIT_WINDOW_MS, type SdkBaseConfig, TRON_WS_CLOSE_CODES, type TokenSet, type TokenStore, TransportContext, TronError, TronNodeClient, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, assertSecureIssuer, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, cancelPot, charge, chargeTronDirect, chargeTronPot, completePaymentIntent, confirmPlaySession, consolidateDeveloperAppWallet, createAppTokenCache, createConsoleLogger, createDelegation, createDeveloperApiKey, createDeveloperApp, createDirectThread, createInMemoryTokenStore, createInflightDedup, createNoopLogger, createRateLimiter, createReferralCode, createTronCashout, createTronConnectOnboarding, createTronDeposit, decideFriendRequest, declineDeveloperInvite, defaultEndpoints, deleteAppPageBanner, deleteAppPageThumbnail, deleteAppPageThumbnailVideo, deleteAvatar, deleteDelegation, deleteDeveloperApp, deleteDeveloperAppLogo, deleteDeveloperProfileLogo, deleteDeveloperRequestLogo, deleteGameReviewReply, deleteMessage, deleteMyGameReview, deleteThread, deleteThreadLogo, denyPaymentIntent, distributePot, distributeTronPot, editMessage, endPlaySession, exchangeAuthorizationCode, fetchAuthorizationServerMetadata, fetchUserInfo, fileAppeal, fileAppealPotLeg, followUser, generatePkce, generateState, getActivity, getActivityGroup, getAdminAppealRoom, getAppFeeConfig, getAppPage, getAppPageChanges, getAppealRoom, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getIntentStatus, getLibrary, getMoonpayAvailability, getMyDmKey, getMyGameReview, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronGameBalance, heartbeatPlaySession, hideAppPage, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listGameReviews, listInventory, listInventoryForApp, listNotifications, listPaymentAuthorizations, listSocials, listThreadMessages, listThreads, listTronCashoutQueue, listTronCashouts, listTronLedger, listUsers, listWalletManager, listWallets, markAllNotificationsRead, markThreadRead, mintClientCredentialsToken, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, parseJson, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, refreshAccessToken, registerOauthClient, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, requestPayout, resolveAppeal, reviewAppPage, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, send, sendFriendRequest, sendJson, sendMessage, sendPresenceHeartbeat, setProcessorWhitelist, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signPaymentIntent, startOauthPaymentEventsSubscriber, submitAppContentReport, submitAppPageForReview, submitDeveloperRequest, toTokenSet, unfollowUser, unhideAppPage, unlockDmKeyBackup, unpinThread, unpublishAppPage, updateAdminRole, updateAppFeeConfig, updateAppPage, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|
|
4601
|
+
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 };
|