@metatrongg/sdk 0.8.0-dev.6ac4e78 → 0.8.0-dev.70f0c99
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 +644 -18
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +7999 -3492
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +694 -18
- package/dist/node/index.js +1 -1
- package/dist/webhook/express.js +1 -1
- package/dist/webhook/fastify.js +1 -1
- package/dist/webhook/hono.js +1 -1
- package/dist/webhook/index.js +1 -1
- package/package.json +2 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -246,6 +246,7 @@ type OauthPaymentIntentContext = {
|
|
|
246
246
|
studioXHandle: string | null;
|
|
247
247
|
};
|
|
248
248
|
} | null;
|
|
249
|
+
environment: "development" | "production";
|
|
249
250
|
};
|
|
250
251
|
type OauthPaymentIntentSignResponse = {
|
|
251
252
|
chain: string;
|
|
@@ -334,9 +335,16 @@ type PublicAppPage = {
|
|
|
334
335
|
chapters: AppPageChapters;
|
|
335
336
|
links: AppPageLinks;
|
|
336
337
|
studio: PublicAppPageStudio;
|
|
338
|
+
platforms: AppPagePlatforms;
|
|
339
|
+
gameType: AppPageGameType;
|
|
340
|
+
ageRating: AppPageAgeRating;
|
|
341
|
+
languages: AppPageLanguages;
|
|
342
|
+
releaseStatus: AppPageReleaseStatus;
|
|
343
|
+
paymentsMode: AppPagePaymentsMode;
|
|
337
344
|
oauthScopes: Array<string>;
|
|
338
345
|
chains: Array<string>;
|
|
339
346
|
publishedAt: string;
|
|
347
|
+
updatedAt: string;
|
|
340
348
|
};
|
|
341
349
|
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">;
|
|
342
350
|
type AppPageTagline = string;
|
|
@@ -359,12 +367,19 @@ type AppPageLink = {
|
|
|
359
367
|
order: number;
|
|
360
368
|
};
|
|
361
369
|
type PublicAppPageStudio = {
|
|
370
|
+
ownerUserId: string | null;
|
|
362
371
|
name: string | null;
|
|
363
372
|
logoUrl: string | null;
|
|
364
373
|
websiteUrl: string | null;
|
|
365
374
|
xHandle: string | null;
|
|
366
375
|
githubUrl: string | null;
|
|
367
376
|
};
|
|
377
|
+
type AppPagePlatforms = Array<"web" | "ios" | "android" | "pc" | "playstation" | "xbox" | "switch">;
|
|
378
|
+
type AppPageGameType = "single_player" | "multiplayer" | "both" | null;
|
|
379
|
+
type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
|
|
380
|
+
type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
|
|
381
|
+
type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
|
|
382
|
+
type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
|
|
368
383
|
type ReviewListResponse = {
|
|
369
384
|
aggregate: ReviewAggregate;
|
|
370
385
|
reviews: Array<Review>;
|
|
@@ -372,38 +387,49 @@ type ReviewListResponse = {
|
|
|
372
387
|
hasMore: boolean;
|
|
373
388
|
};
|
|
374
389
|
type ReviewAggregate = {
|
|
375
|
-
average: number | null;
|
|
376
390
|
count: number;
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
1: number;
|
|
381
|
-
2: number;
|
|
382
|
-
3: number;
|
|
383
|
-
4: number;
|
|
384
|
-
5: number;
|
|
391
|
+
recommendedCount: number;
|
|
392
|
+
recommendedPct: number | null;
|
|
393
|
+
summaryLabel: ReviewSummaryLabel;
|
|
385
394
|
};
|
|
395
|
+
type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
|
|
386
396
|
type Review = {
|
|
387
397
|
id: string;
|
|
388
|
-
|
|
398
|
+
recommended: ReviewRecommended;
|
|
389
399
|
body: ReviewBody;
|
|
400
|
+
reactions: ReviewReactionCounts;
|
|
401
|
+
tippedCents: number;
|
|
402
|
+
commentCount: number;
|
|
390
403
|
author: ReviewAuthor;
|
|
404
|
+
authorStats: ReviewerStats;
|
|
391
405
|
developerReply: ReviewReply;
|
|
392
406
|
createdAt: string;
|
|
393
407
|
updatedAt: string;
|
|
394
408
|
};
|
|
395
|
-
type
|
|
409
|
+
type ReviewRecommended = boolean;
|
|
396
410
|
type ReviewBody = string;
|
|
411
|
+
type ReviewReactionCounts = {
|
|
412
|
+
helpful: number;
|
|
413
|
+
unhelpful: number;
|
|
414
|
+
funny: number;
|
|
415
|
+
};
|
|
397
416
|
type ReviewAuthor = {
|
|
417
|
+
userId: string;
|
|
418
|
+
handle: string | null;
|
|
398
419
|
name: string | null;
|
|
399
420
|
avatarUrl: string | null;
|
|
400
421
|
};
|
|
422
|
+
type ReviewerStats = {
|
|
423
|
+
playtimeSecondsThisGame: number;
|
|
424
|
+
gamesPlayed: number;
|
|
425
|
+
reviewsWritten: number;
|
|
426
|
+
};
|
|
401
427
|
type ReviewReply = {
|
|
402
428
|
body: ReviewReplyBody;
|
|
403
429
|
repliedAt: string;
|
|
404
430
|
} | null;
|
|
405
431
|
type ReviewReplyBody = string;
|
|
406
|
-
type ReviewSort = "newest" | "oldest" | "
|
|
432
|
+
type ReviewSort = "newest" | "oldest" | "helpful";
|
|
407
433
|
type MyReviewResponse = {
|
|
408
434
|
eligible: boolean;
|
|
409
435
|
eligibleVia: ReviewEligibilityReason;
|
|
@@ -413,15 +439,67 @@ type MyReviewResponse = {
|
|
|
413
439
|
type ReviewEligibilityReason = "payment" | "reward" | null;
|
|
414
440
|
type OwnReview = {
|
|
415
441
|
id: string;
|
|
416
|
-
|
|
442
|
+
recommended: ReviewRecommended;
|
|
417
443
|
body: ReviewBody;
|
|
418
444
|
createdAt: string;
|
|
419
445
|
updatedAt: string;
|
|
420
446
|
} | null;
|
|
421
447
|
type UpsertReviewRequest = {
|
|
422
|
-
|
|
448
|
+
recommended: ReviewRecommended;
|
|
423
449
|
body: ReviewBody;
|
|
424
450
|
};
|
|
451
|
+
type MyReviewReactionsResponse = {
|
|
452
|
+
reactions: Array<MyReviewReaction>;
|
|
453
|
+
};
|
|
454
|
+
type MyReviewReaction = {
|
|
455
|
+
reviewId: string;
|
|
456
|
+
vote: ReviewVote;
|
|
457
|
+
funny: boolean;
|
|
458
|
+
};
|
|
459
|
+
type ReviewVote = "helpful" | "unhelpful" | null;
|
|
460
|
+
type SetReviewReactionResponse = {
|
|
461
|
+
reactions: ReviewReactionCounts;
|
|
462
|
+
vote: ReviewVote;
|
|
463
|
+
funny: boolean;
|
|
464
|
+
};
|
|
465
|
+
type SetReviewReactionRequest = {
|
|
466
|
+
vote: ReviewVote;
|
|
467
|
+
funny: boolean;
|
|
468
|
+
};
|
|
469
|
+
type TipReviewResponse = {
|
|
470
|
+
status: "completed";
|
|
471
|
+
amountCents: number;
|
|
472
|
+
balanceCents: number;
|
|
473
|
+
tippedCents: number;
|
|
474
|
+
};
|
|
475
|
+
type TipReviewRequest = {
|
|
476
|
+
amountCents: number;
|
|
477
|
+
note?: string;
|
|
478
|
+
challengeId?: string;
|
|
479
|
+
signature?: string;
|
|
480
|
+
};
|
|
481
|
+
type ReviewCommentListResponse = {
|
|
482
|
+
comments: Array<ReviewComment>;
|
|
483
|
+
total: number;
|
|
484
|
+
hasMore: boolean;
|
|
485
|
+
};
|
|
486
|
+
type ReviewComment = {
|
|
487
|
+
id: string;
|
|
488
|
+
body: ReviewCommentBody;
|
|
489
|
+
author: ReviewAuthor;
|
|
490
|
+
createdAt: string;
|
|
491
|
+
};
|
|
492
|
+
type ReviewCommentBody = string;
|
|
493
|
+
type CreateReviewCommentResponse = {
|
|
494
|
+
comment: ReviewComment;
|
|
495
|
+
commentCount: number;
|
|
496
|
+
};
|
|
497
|
+
type CreateReviewCommentRequest = {
|
|
498
|
+
body: ReviewCommentBody;
|
|
499
|
+
};
|
|
500
|
+
type DeleteReviewCommentResponse = {
|
|
501
|
+
commentCount: number;
|
|
502
|
+
};
|
|
425
503
|
type ReviewReplyResponse = {
|
|
426
504
|
developerReply: ReviewReply;
|
|
427
505
|
};
|
|
@@ -526,8 +604,12 @@ type ActivityRow = ({
|
|
|
526
604
|
} & ActivityRowTronPot) | ({
|
|
527
605
|
kind: "tron_cashout";
|
|
528
606
|
} & ActivityRowTronCashout) | ({
|
|
607
|
+
kind: "tron_transfer";
|
|
608
|
+
} & ActivityRowTronTransfer) | ({
|
|
529
609
|
kind: "referral_earning";
|
|
530
|
-
} & ActivityRowReferralEarning)
|
|
610
|
+
} & ActivityRowReferralEarning) | ({
|
|
611
|
+
kind: "nft_charge";
|
|
612
|
+
} & ActivityRowNftCharge);
|
|
531
613
|
type ActivityRowPayment = {
|
|
532
614
|
kind: "payment";
|
|
533
615
|
groupId: string | null;
|
|
@@ -773,6 +855,8 @@ type ActivityRowTronPot = {
|
|
|
773
855
|
role: "incoming" | "outgoing";
|
|
774
856
|
leg: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
775
857
|
amountCents: number;
|
|
858
|
+
usdCents: number;
|
|
859
|
+
status: "settled";
|
|
776
860
|
app: {
|
|
777
861
|
id: string;
|
|
778
862
|
name: string;
|
|
@@ -780,8 +864,16 @@ type ActivityRowTronPot = {
|
|
|
780
864
|
slug: string | null;
|
|
781
865
|
bannerUrl: string | null;
|
|
782
866
|
} | null;
|
|
867
|
+
involvedUsers?: Array<ActivityTronInvolvedUser> | null;
|
|
783
868
|
metadata?: PaymentMetadata | null;
|
|
784
869
|
};
|
|
870
|
+
type ActivityTronInvolvedUser = {
|
|
871
|
+
userId: string;
|
|
872
|
+
handle: string | null;
|
|
873
|
+
displayName: string | null;
|
|
874
|
+
role: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
875
|
+
amountCents: number;
|
|
876
|
+
};
|
|
785
877
|
type ActivityRowTronCashout = {
|
|
786
878
|
kind: "tron_cashout";
|
|
787
879
|
groupId: string | null;
|
|
@@ -799,6 +891,20 @@ type ActivityRowTronCashout = {
|
|
|
799
891
|
rejectionReason: string | null;
|
|
800
892
|
settledAt: string | null;
|
|
801
893
|
};
|
|
894
|
+
type ActivityRowTronTransfer = {
|
|
895
|
+
kind: "tron_transfer";
|
|
896
|
+
groupId: string | null;
|
|
897
|
+
id: string;
|
|
898
|
+
occurredAt: string;
|
|
899
|
+
role: "incoming" | "outgoing";
|
|
900
|
+
amountCents: number;
|
|
901
|
+
usdCents: number;
|
|
902
|
+
status: "settled";
|
|
903
|
+
counterpartyUserId: string | null;
|
|
904
|
+
counterpartyHandle: string | null;
|
|
905
|
+
counterpartyDisplayName: string | null;
|
|
906
|
+
note: string | null;
|
|
907
|
+
};
|
|
802
908
|
type ActivityRowReferralEarning = {
|
|
803
909
|
kind: "referral_earning";
|
|
804
910
|
groupId: string | null;
|
|
@@ -815,6 +921,22 @@ type ActivityRowReferralEarning = {
|
|
|
815
921
|
logIndex: number;
|
|
816
922
|
usdCents: number | null;
|
|
817
923
|
};
|
|
924
|
+
type ActivityRowNftCharge = {
|
|
925
|
+
kind: "nft_charge";
|
|
926
|
+
groupId: string | null;
|
|
927
|
+
id: string;
|
|
928
|
+
occurredAt: string;
|
|
929
|
+
role: "outgoing";
|
|
930
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
931
|
+
amountCents: number;
|
|
932
|
+
usdCents: number;
|
|
933
|
+
status: "settled";
|
|
934
|
+
collectionAddress: string | null;
|
|
935
|
+
tokenId: string | null;
|
|
936
|
+
counterpartyUserId: string | null;
|
|
937
|
+
counterpartyHandle: string | null;
|
|
938
|
+
counterpartyDisplayName: string | null;
|
|
939
|
+
};
|
|
818
940
|
type OutstandingResponse = {
|
|
819
941
|
rows: Array<OutstandingByToken>;
|
|
820
942
|
};
|
|
@@ -864,7 +986,7 @@ type TronLedgerResponse = {
|
|
|
864
986
|
};
|
|
865
987
|
type TronLedgerEntry = {
|
|
866
988
|
id: string;
|
|
867
|
-
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning";
|
|
989
|
+
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";
|
|
868
990
|
amountCents: number;
|
|
869
991
|
currency: string;
|
|
870
992
|
createdAt: string;
|
|
@@ -879,6 +1001,45 @@ type TronDepositResponse = {
|
|
|
879
1001
|
type TronDepositRequest = {
|
|
880
1002
|
amountCents: number;
|
|
881
1003
|
};
|
|
1004
|
+
type TronTransferResponse = {
|
|
1005
|
+
status: "completed";
|
|
1006
|
+
amountCents: number;
|
|
1007
|
+
balanceCents: number;
|
|
1008
|
+
recipient: {
|
|
1009
|
+
userId: string;
|
|
1010
|
+
handle: string | null;
|
|
1011
|
+
displayName: string | null;
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
type TronTransferRequest = {
|
|
1015
|
+
recipientUserId: string;
|
|
1016
|
+
amountCents: number;
|
|
1017
|
+
note?: string;
|
|
1018
|
+
challengeId?: string;
|
|
1019
|
+
signature?: string;
|
|
1020
|
+
threadId?: string;
|
|
1021
|
+
};
|
|
1022
|
+
type TronSecuritySetting = {
|
|
1023
|
+
requireSignature: boolean;
|
|
1024
|
+
};
|
|
1025
|
+
type TronTransferChallengeResponse = ({
|
|
1026
|
+
required: false;
|
|
1027
|
+
} & TronTransferChallengeNotRequired) | ({
|
|
1028
|
+
required: true;
|
|
1029
|
+
} & TronTransferChallengeRequired);
|
|
1030
|
+
type TronTransferChallengeNotRequired = {
|
|
1031
|
+
required: false;
|
|
1032
|
+
};
|
|
1033
|
+
type TronTransferChallengeRequired = {
|
|
1034
|
+
required: true;
|
|
1035
|
+
challengeId: string;
|
|
1036
|
+
message: string;
|
|
1037
|
+
expiresAt: string;
|
|
1038
|
+
};
|
|
1039
|
+
type TronTransferChallengeRequest = {
|
|
1040
|
+
recipientUserId: string;
|
|
1041
|
+
amountCents: number;
|
|
1042
|
+
};
|
|
882
1043
|
type TronConnectOnboardingResponse = {
|
|
883
1044
|
url: string;
|
|
884
1045
|
};
|
|
@@ -1045,6 +1206,7 @@ type ThreadLastMessagePreview = {
|
|
|
1045
1206
|
url: string;
|
|
1046
1207
|
count: number;
|
|
1047
1208
|
} | null;
|
|
1209
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1048
1210
|
sentAt: string;
|
|
1049
1211
|
} | null;
|
|
1050
1212
|
type MessageEnvelope = {
|
|
@@ -1056,6 +1218,19 @@ type MessageEnvelope = {
|
|
|
1056
1218
|
iv: string;
|
|
1057
1219
|
ct: string;
|
|
1058
1220
|
} | null;
|
|
1221
|
+
type MessageTransactionTronTransfer = {
|
|
1222
|
+
kind: "tron_transfer";
|
|
1223
|
+
amountCents: number;
|
|
1224
|
+
recipientUserId: string;
|
|
1225
|
+
};
|
|
1226
|
+
type MessageTransactionNftTransfer = {
|
|
1227
|
+
kind: "nft_transfer";
|
|
1228
|
+
recipientUserId: string;
|
|
1229
|
+
collectionAddress: string;
|
|
1230
|
+
tokenId: string;
|
|
1231
|
+
amount: string;
|
|
1232
|
+
itemName: string | null;
|
|
1233
|
+
};
|
|
1059
1234
|
type GroupThreadSummary = {
|
|
1060
1235
|
kind: "group";
|
|
1061
1236
|
id: string;
|
|
@@ -1102,6 +1277,7 @@ type MessageItem = {
|
|
|
1102
1277
|
id: string;
|
|
1103
1278
|
threadId: string;
|
|
1104
1279
|
senderUserId: string;
|
|
1280
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1105
1281
|
body: string;
|
|
1106
1282
|
envelope?: MessageEnvelope;
|
|
1107
1283
|
sentAt: string;
|
|
@@ -1313,11 +1489,45 @@ type InventoryHolding = {
|
|
|
1313
1489
|
tokenId: string;
|
|
1314
1490
|
amount: string;
|
|
1315
1491
|
name: string | null;
|
|
1492
|
+
description: string | null;
|
|
1316
1493
|
imageAssetId: string | null;
|
|
1317
1494
|
bannerAssetId: string | null;
|
|
1318
1495
|
devMetadata: {
|
|
1319
1496
|
[key: string]: unknown;
|
|
1320
1497
|
};
|
|
1498
|
+
appId: string | null;
|
|
1499
|
+
appName: string | null;
|
|
1500
|
+
appLogoUrl: string | null;
|
|
1501
|
+
};
|
|
1502
|
+
type InventoryPendingPermitListResponse = {
|
|
1503
|
+
permits: Array<InventoryPendingPermit>;
|
|
1504
|
+
};
|
|
1505
|
+
type InventoryPendingPermit = {
|
|
1506
|
+
id: string;
|
|
1507
|
+
appId: string;
|
|
1508
|
+
itemId: string;
|
|
1509
|
+
amount: string;
|
|
1510
|
+
priceCents: number | null;
|
|
1511
|
+
gasSponsored: boolean;
|
|
1512
|
+
environment: "development" | "production";
|
|
1513
|
+
createdAt: string;
|
|
1514
|
+
tokenId: string;
|
|
1515
|
+
name: string | null;
|
|
1516
|
+
description: string | null;
|
|
1517
|
+
imageAssetId: string | null;
|
|
1518
|
+
chain: string;
|
|
1519
|
+
collectionAddress: string;
|
|
1520
|
+
kind: "erc721" | "erc1155";
|
|
1521
|
+
};
|
|
1522
|
+
type InventoryPermitRedeemResult = {
|
|
1523
|
+
mint: MintRequestResult;
|
|
1524
|
+
charge: {
|
|
1525
|
+
currency: "tron";
|
|
1526
|
+
gasCents: number;
|
|
1527
|
+
priceCents: number;
|
|
1528
|
+
totalCents: number;
|
|
1529
|
+
gasPaidBy: "user" | "developer";
|
|
1530
|
+
};
|
|
1321
1531
|
};
|
|
1322
1532
|
type MintRequestResult = {
|
|
1323
1533
|
mintRequestId: string;
|
|
@@ -1333,6 +1543,247 @@ type MintRequestInput = {
|
|
|
1333
1543
|
tokenId?: string;
|
|
1334
1544
|
amount?: string;
|
|
1335
1545
|
};
|
|
1546
|
+
type InventoryCollectionListResponse = {
|
|
1547
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1548
|
+
};
|
|
1549
|
+
type InventoryCollectionSummary = {
|
|
1550
|
+
id: string;
|
|
1551
|
+
chain: string;
|
|
1552
|
+
collectionAddress: string;
|
|
1553
|
+
kind: "erc721" | "erc1155";
|
|
1554
|
+
name: string | null;
|
|
1555
|
+
environment: "development" | "production";
|
|
1556
|
+
};
|
|
1557
|
+
type InventoryRegistrationQuote = {
|
|
1558
|
+
itemCount: number;
|
|
1559
|
+
baselineUsdCents: number;
|
|
1560
|
+
gasUsdCents: number;
|
|
1561
|
+
tron: {
|
|
1562
|
+
baselineCents: number;
|
|
1563
|
+
gasCents: number;
|
|
1564
|
+
totalCents: number;
|
|
1565
|
+
};
|
|
1566
|
+
eth: {
|
|
1567
|
+
baselineWei: string;
|
|
1568
|
+
gasWei: string;
|
|
1569
|
+
totalWei: string;
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
type InventoryItemRegistrationInput = {
|
|
1573
|
+
collectionAddress: string;
|
|
1574
|
+
chain: string;
|
|
1575
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1576
|
+
};
|
|
1577
|
+
type InventoryItemRegistrationSpec = {
|
|
1578
|
+
name?: string | null;
|
|
1579
|
+
description?: string | null;
|
|
1580
|
+
devMetadata?: {
|
|
1581
|
+
[key: string]: unknown;
|
|
1582
|
+
};
|
|
1583
|
+
supplyType?: InventorySupplyType;
|
|
1584
|
+
maxSupply?: string | null;
|
|
1585
|
+
active?: boolean;
|
|
1586
|
+
};
|
|
1587
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1588
|
+
type InventoryItemRegistrationResult = {
|
|
1589
|
+
items: Array<InventoryItemRecord>;
|
|
1590
|
+
charge: {
|
|
1591
|
+
currency: "tron";
|
|
1592
|
+
amountCents: number;
|
|
1593
|
+
baselineCents: number;
|
|
1594
|
+
gasCents: number;
|
|
1595
|
+
addItemTxHash: string;
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
type InventoryItemRecord = {
|
|
1599
|
+
id: string;
|
|
1600
|
+
collectionId: string;
|
|
1601
|
+
collectionAddress: string;
|
|
1602
|
+
chain: string;
|
|
1603
|
+
kind: "erc721" | "erc1155";
|
|
1604
|
+
tokenId: string;
|
|
1605
|
+
name: string | null;
|
|
1606
|
+
description: string | null;
|
|
1607
|
+
imageAssetId: string | null;
|
|
1608
|
+
bannerAssetId: string | null;
|
|
1609
|
+
devMetadata: {
|
|
1610
|
+
[key: string]: unknown;
|
|
1611
|
+
};
|
|
1612
|
+
supplyType: InventorySupplyType | null;
|
|
1613
|
+
maxSupply: string | null;
|
|
1614
|
+
active: boolean;
|
|
1615
|
+
};
|
|
1616
|
+
type InventoryItemListResponse = {
|
|
1617
|
+
items: Array<InventoryItemRecord>;
|
|
1618
|
+
};
|
|
1619
|
+
type InventoryMintPermitRecord = {
|
|
1620
|
+
id: string;
|
|
1621
|
+
appId: string;
|
|
1622
|
+
itemId: string;
|
|
1623
|
+
userId: string;
|
|
1624
|
+
amount: string;
|
|
1625
|
+
priceCents: number | null;
|
|
1626
|
+
gasSponsored: boolean;
|
|
1627
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1628
|
+
createdAt: string;
|
|
1629
|
+
};
|
|
1630
|
+
type InventoryMintPermitCreateInput = {
|
|
1631
|
+
toUserId: string;
|
|
1632
|
+
amount?: string;
|
|
1633
|
+
priceCents?: number | null;
|
|
1634
|
+
gasSponsored?: boolean;
|
|
1635
|
+
};
|
|
1636
|
+
type InventoryItemHoldersResponse = {
|
|
1637
|
+
stats: InventoryItemStats;
|
|
1638
|
+
holders: Array<InventoryItemHolder>;
|
|
1639
|
+
};
|
|
1640
|
+
type InventoryItemStats = {
|
|
1641
|
+
holderCount: number;
|
|
1642
|
+
walletCount: number;
|
|
1643
|
+
totalHeld: string;
|
|
1644
|
+
};
|
|
1645
|
+
type InventoryItemHolder = {
|
|
1646
|
+
walletAddress: string;
|
|
1647
|
+
userId: string | null;
|
|
1648
|
+
amount: string;
|
|
1649
|
+
};
|
|
1650
|
+
type InventoryVaultPermitRecord = {
|
|
1651
|
+
id: string;
|
|
1652
|
+
appId: string;
|
|
1653
|
+
itemId: string;
|
|
1654
|
+
userId: string;
|
|
1655
|
+
direction: "vault_in" | "withdraw";
|
|
1656
|
+
lockKind: "vault" | "burn" | null;
|
|
1657
|
+
amount: string;
|
|
1658
|
+
gasSponsored: boolean;
|
|
1659
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1660
|
+
custodyId: string | null;
|
|
1661
|
+
createdAt: string;
|
|
1662
|
+
};
|
|
1663
|
+
type InventoryVaultPermitCreateInput = {
|
|
1664
|
+
toUserId: string;
|
|
1665
|
+
lockKind: "vault" | "burn";
|
|
1666
|
+
amount?: string;
|
|
1667
|
+
gasSponsored?: boolean;
|
|
1668
|
+
};
|
|
1669
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1670
|
+
custodyId: string;
|
|
1671
|
+
};
|
|
1672
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1673
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1674
|
+
};
|
|
1675
|
+
type InventoryPendingVaultPermit = {
|
|
1676
|
+
id: string;
|
|
1677
|
+
appId: string;
|
|
1678
|
+
itemId: string;
|
|
1679
|
+
direction: "vault_in" | "withdraw";
|
|
1680
|
+
lockKind: "vault" | "burn" | null;
|
|
1681
|
+
amount: string;
|
|
1682
|
+
gasSponsored: boolean;
|
|
1683
|
+
environment: "development" | "production";
|
|
1684
|
+
custodyId: string | null;
|
|
1685
|
+
createdAt: string;
|
|
1686
|
+
tokenId: string;
|
|
1687
|
+
name: string | null;
|
|
1688
|
+
description: string | null;
|
|
1689
|
+
imageAssetId: string | null;
|
|
1690
|
+
chain: string;
|
|
1691
|
+
collectionAddress: string;
|
|
1692
|
+
kind: "erc721" | "erc1155";
|
|
1693
|
+
};
|
|
1694
|
+
type InventorySignedVaultPermit = {
|
|
1695
|
+
permitId: string;
|
|
1696
|
+
direction: "vault_in" | "withdraw";
|
|
1697
|
+
vault: string;
|
|
1698
|
+
collection: string;
|
|
1699
|
+
user: string;
|
|
1700
|
+
tokenId: string;
|
|
1701
|
+
amount: string;
|
|
1702
|
+
lockKind: "vault" | "burn" | null;
|
|
1703
|
+
destination: string | null;
|
|
1704
|
+
deadline: number;
|
|
1705
|
+
signature: string;
|
|
1706
|
+
};
|
|
1707
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1708
|
+
direction: "vault_in" | "withdraw";
|
|
1709
|
+
collection: string;
|
|
1710
|
+
vault: string;
|
|
1711
|
+
chainId: number;
|
|
1712
|
+
user: string;
|
|
1713
|
+
tokenId: string;
|
|
1714
|
+
amount: string;
|
|
1715
|
+
nonce: string | null;
|
|
1716
|
+
deadline: number;
|
|
1717
|
+
feeCents: number;
|
|
1718
|
+
gasWei: string;
|
|
1719
|
+
gasPaidBy: "developer" | "user";
|
|
1720
|
+
requiresUserSignature: boolean;
|
|
1721
|
+
};
|
|
1722
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1723
|
+
ok: boolean;
|
|
1724
|
+
txHash: string;
|
|
1725
|
+
chargedCents: number;
|
|
1726
|
+
gasPaidBy: "developer" | "user";
|
|
1727
|
+
};
|
|
1728
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1729
|
+
userSignature?: string;
|
|
1730
|
+
deadline?: number;
|
|
1731
|
+
};
|
|
1732
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1733
|
+
collection: string;
|
|
1734
|
+
chainId: number;
|
|
1735
|
+
from: string;
|
|
1736
|
+
to: string;
|
|
1737
|
+
tokenId: string;
|
|
1738
|
+
amount: string;
|
|
1739
|
+
nonce: string;
|
|
1740
|
+
deadline: number;
|
|
1741
|
+
feeCents: number;
|
|
1742
|
+
gasWei: string;
|
|
1743
|
+
selfPayAvailable: boolean;
|
|
1744
|
+
};
|
|
1745
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1746
|
+
toUserId: string;
|
|
1747
|
+
collection: string;
|
|
1748
|
+
tokenId: string;
|
|
1749
|
+
amount?: string;
|
|
1750
|
+
};
|
|
1751
|
+
type InventoryNftTransferResponse = {
|
|
1752
|
+
ok: boolean;
|
|
1753
|
+
txHash: string;
|
|
1754
|
+
chargedCents: number;
|
|
1755
|
+
};
|
|
1756
|
+
type InventoryNftTransferRequest = {
|
|
1757
|
+
toUserId: string;
|
|
1758
|
+
collection: string;
|
|
1759
|
+
tokenId: string;
|
|
1760
|
+
amount?: string;
|
|
1761
|
+
deadline: number;
|
|
1762
|
+
userSignature: string;
|
|
1763
|
+
threadId?: string;
|
|
1764
|
+
};
|
|
1765
|
+
type InventoryVaultCustodyListResponse = {
|
|
1766
|
+
custody: Array<InventoryVaultCustody>;
|
|
1767
|
+
};
|
|
1768
|
+
type InventoryVaultCustody = {
|
|
1769
|
+
id: string;
|
|
1770
|
+
collectionId: string;
|
|
1771
|
+
collectionAddress: string;
|
|
1772
|
+
chain: string;
|
|
1773
|
+
kind: "erc721" | "erc1155";
|
|
1774
|
+
tokenId: string;
|
|
1775
|
+
amount: string;
|
|
1776
|
+
lockKind: "vault" | "burn";
|
|
1777
|
+
vaultAddress: string;
|
|
1778
|
+
createdAt: string;
|
|
1779
|
+
name: string | null;
|
|
1780
|
+
description: string | null;
|
|
1781
|
+
imageAssetId: string | null;
|
|
1782
|
+
};
|
|
1783
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1784
|
+
ok: boolean;
|
|
1785
|
+
txHash: string;
|
|
1786
|
+
};
|
|
1336
1787
|
type NotificationListResponse = {
|
|
1337
1788
|
notifications: Array<NotificationItem>;
|
|
1338
1789
|
unreadCount: number;
|
|
@@ -1500,7 +1951,7 @@ type ProfileRecentReview = {
|
|
|
1500
1951
|
appId: string;
|
|
1501
1952
|
appName: string;
|
|
1502
1953
|
appLogoUrl: string | null;
|
|
1503
|
-
|
|
1954
|
+
recommended: boolean;
|
|
1504
1955
|
body: string;
|
|
1505
1956
|
createdAt: string;
|
|
1506
1957
|
};
|
|
@@ -1856,6 +2307,11 @@ type AppPageDraft = {
|
|
|
1856
2307
|
gallery: AppPageGallery;
|
|
1857
2308
|
chapters: AppPageChapters;
|
|
1858
2309
|
links: AppPageLinks;
|
|
2310
|
+
platforms: AppPagePlatforms;
|
|
2311
|
+
gameType: AppPageGameType;
|
|
2312
|
+
ageRating: AppPageAgeRating;
|
|
2313
|
+
languages: AppPageLanguages;
|
|
2314
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1859
2315
|
firstPublishedAt: string | null;
|
|
1860
2316
|
reviewedAt: string | null;
|
|
1861
2317
|
reviewNotes: string | null;
|
|
@@ -1878,6 +2334,11 @@ type UpdateAppPage = {
|
|
|
1878
2334
|
gallery?: AppPageGallery;
|
|
1879
2335
|
chapters?: AppPageChapters;
|
|
1880
2336
|
links?: AppPageLinks;
|
|
2337
|
+
platforms?: AppPagePlatforms;
|
|
2338
|
+
gameType?: AppPageGameType;
|
|
2339
|
+
ageRating?: AppPageAgeRating;
|
|
2340
|
+
languages?: AppPageLanguages;
|
|
2341
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1881
2342
|
};
|
|
1882
2343
|
type AppPageGalleryUploadResponse = {
|
|
1883
2344
|
url: string;
|
|
@@ -2405,6 +2866,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2405
2866
|
readonly bearer: string;
|
|
2406
2867
|
}): Promise<AdminDeveloperListResponse>;
|
|
2407
2868
|
//#endregion
|
|
2869
|
+
//#region src/admin/inventory-vault.d.ts
|
|
2870
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
2871
|
+
readonly bearer: string;
|
|
2872
|
+
readonly custodyId: string;
|
|
2873
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
2874
|
+
//#endregion
|
|
2408
2875
|
//#region src/admin/payments.d.ts
|
|
2409
2876
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2410
2877
|
readonly bearer: string;
|
|
@@ -2567,6 +3034,41 @@ declare function deleteMyGameReview(context: TransportContext, input: {
|
|
|
2567
3034
|
readonly slug: string;
|
|
2568
3035
|
readonly bearer: string;
|
|
2569
3036
|
}): Promise<MyReviewResponse>;
|
|
3037
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3038
|
+
readonly slug: string;
|
|
3039
|
+
readonly bearer: string;
|
|
3040
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3041
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3042
|
+
readonly slug: string;
|
|
3043
|
+
readonly reviewId: string;
|
|
3044
|
+
readonly bearer: string;
|
|
3045
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3046
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3047
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3048
|
+
readonly slug: string;
|
|
3049
|
+
readonly reviewId: string;
|
|
3050
|
+
readonly bearer: string;
|
|
3051
|
+
readonly tip: TipReviewRequest;
|
|
3052
|
+
readonly idempotencyKey?: string;
|
|
3053
|
+
}): Promise<TipReviewResponse>;
|
|
3054
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3055
|
+
readonly slug: string;
|
|
3056
|
+
readonly reviewId: string;
|
|
3057
|
+
readonly bearer?: string;
|
|
3058
|
+
readonly limit?: number;
|
|
3059
|
+
readonly offset?: number;
|
|
3060
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3061
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3062
|
+
readonly slug: string;
|
|
3063
|
+
readonly reviewId: string;
|
|
3064
|
+
readonly bearer: string;
|
|
3065
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3066
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3067
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3068
|
+
readonly slug: string;
|
|
3069
|
+
readonly commentId: string;
|
|
3070
|
+
readonly bearer: string;
|
|
3071
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2570
3072
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2571
3073
|
readonly appId: string;
|
|
2572
3074
|
readonly reviewId: string;
|
|
@@ -2789,6 +3291,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2789
3291
|
readonly status: "acknowledged" | "dismissed";
|
|
2790
3292
|
}): Promise<AppContentReport>;
|
|
2791
3293
|
//#endregion
|
|
3294
|
+
//#region src/developer/inventory.d.ts
|
|
3295
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3296
|
+
readonly bearer: string;
|
|
3297
|
+
readonly appId: string;
|
|
3298
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3299
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3300
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3301
|
+
readonly bearer: string;
|
|
3302
|
+
readonly appId: string;
|
|
3303
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3304
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3305
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3306
|
+
readonly bearer: string;
|
|
3307
|
+
readonly appId: string;
|
|
3308
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3309
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3310
|
+
readonly bearer: string;
|
|
3311
|
+
readonly appId: string;
|
|
3312
|
+
}): Promise<InventoryItemListResponse>;
|
|
3313
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3314
|
+
readonly bearer: string;
|
|
3315
|
+
readonly appId: string;
|
|
3316
|
+
readonly itemId: string;
|
|
3317
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3318
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3319
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3320
|
+
readonly bearer: string;
|
|
3321
|
+
readonly appId: string;
|
|
3322
|
+
readonly itemId: string;
|
|
3323
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3324
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3325
|
+
readonly bearer: string;
|
|
3326
|
+
readonly appId: string;
|
|
3327
|
+
readonly itemId: string;
|
|
3328
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3329
|
+
readonly filename: string;
|
|
3330
|
+
readonly contentType: string;
|
|
3331
|
+
}): Promise<InventoryItemRecord>;
|
|
3332
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3333
|
+
readonly bearer: string;
|
|
3334
|
+
readonly appId: string;
|
|
3335
|
+
readonly itemId: string;
|
|
3336
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3337
|
+
readonly filename: string;
|
|
3338
|
+
readonly contentType: string;
|
|
3339
|
+
}): Promise<InventoryItemRecord>;
|
|
3340
|
+
//#endregion
|
|
2792
3341
|
//#region src/developer/pages.d.ts
|
|
2793
3342
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2794
3343
|
readonly bearer: string;
|
|
@@ -2913,6 +3462,20 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
2913
3462
|
readonly contentType: string;
|
|
2914
3463
|
}): Promise<unknown>;
|
|
2915
3464
|
//#endregion
|
|
3465
|
+
//#region src/developer/vault.d.ts
|
|
3466
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3467
|
+
readonly bearer: string;
|
|
3468
|
+
readonly appId: string;
|
|
3469
|
+
readonly itemId: string;
|
|
3470
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3471
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3472
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3473
|
+
readonly bearer: string;
|
|
3474
|
+
readonly appId: string;
|
|
3475
|
+
readonly itemId: string;
|
|
3476
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3477
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3478
|
+
//#endregion
|
|
2916
3479
|
//#region src/inventory/list.d.ts
|
|
2917
3480
|
declare function listInventory(context: TransportContext, input: {
|
|
2918
3481
|
readonly bearer: string;
|
|
@@ -2921,12 +3484,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
2921
3484
|
readonly bearer: string;
|
|
2922
3485
|
}): Promise<InventoryListResponse>;
|
|
2923
3486
|
//#endregion
|
|
3487
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
3488
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
3489
|
+
readonly bearer: string;
|
|
3490
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
3491
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
3492
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
3493
|
+
readonly bearer: string;
|
|
3494
|
+
readonly body: InventoryNftTransferRequest;
|
|
3495
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
3496
|
+
//#endregion
|
|
3497
|
+
//#region src/inventory/permits.d.ts
|
|
3498
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
3499
|
+
readonly bearer: string;
|
|
3500
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
3501
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
3502
|
+
readonly bearer: string;
|
|
3503
|
+
readonly permitId: string;
|
|
3504
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
3505
|
+
//#endregion
|
|
2924
3506
|
//#region src/inventory/request-mint.d.ts
|
|
2925
3507
|
declare function requestMint(context: TransportContext, input: {
|
|
2926
3508
|
readonly appBearer: string;
|
|
2927
3509
|
readonly body: MintRequestInput;
|
|
2928
3510
|
}): Promise<MintRequestResult>;
|
|
2929
3511
|
//#endregion
|
|
3512
|
+
//#region src/inventory/vault.d.ts
|
|
3513
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
3514
|
+
readonly bearer: string;
|
|
3515
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
3516
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
3517
|
+
readonly bearer: string;
|
|
3518
|
+
readonly permitId: string;
|
|
3519
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
3520
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
3521
|
+
readonly bearer: string;
|
|
3522
|
+
readonly permitId: string;
|
|
3523
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
3524
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
3525
|
+
readonly bearer: string;
|
|
3526
|
+
readonly permitId: string;
|
|
3527
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
3528
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
3529
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
3530
|
+
readonly bearer: string;
|
|
3531
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3532
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
3533
|
+
readonly bearer: string;
|
|
3534
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3535
|
+
//#endregion
|
|
2930
3536
|
//#region src/messaging/dm-key-backup.d.ts
|
|
2931
3537
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
2932
3538
|
readonly bearer: string;
|
|
@@ -3203,6 +3809,22 @@ declare function createTronDeposit(context: TransportContext, input: {
|
|
|
3203
3809
|
readonly bearer: string;
|
|
3204
3810
|
readonly body: TronDepositRequest;
|
|
3205
3811
|
}): Promise<TronDepositResponse>;
|
|
3812
|
+
declare function createTronTransfer(context: TransportContext, input: {
|
|
3813
|
+
readonly bearer: string;
|
|
3814
|
+
readonly body: TronTransferRequest;
|
|
3815
|
+
readonly idempotencyKey?: string;
|
|
3816
|
+
}): Promise<TronTransferResponse>;
|
|
3817
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
3818
|
+
readonly bearer: string;
|
|
3819
|
+
}): Promise<TronSecuritySetting>;
|
|
3820
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
3821
|
+
readonly bearer: string;
|
|
3822
|
+
readonly setting: TronSecuritySetting;
|
|
3823
|
+
}): Promise<TronSecuritySetting>;
|
|
3824
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
3825
|
+
readonly bearer: string;
|
|
3826
|
+
readonly body: TronTransferChallengeRequest;
|
|
3827
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3206
3828
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3207
3829
|
readonly bearer: string;
|
|
3208
3830
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3339,6 +3961,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3339
3961
|
readonly bearer: string;
|
|
3340
3962
|
readonly userId: string;
|
|
3341
3963
|
}): Promise<void>;
|
|
3964
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
3965
|
+
readonly bearer: string;
|
|
3966
|
+
readonly userId: string;
|
|
3967
|
+
}): Promise<void>;
|
|
3342
3968
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3343
3969
|
readonly bearer: string;
|
|
3344
3970
|
readonly requestId: string;
|
|
@@ -3642,4 +4268,4 @@ type CookieTokenStoreOptions = {
|
|
|
3642
4268
|
};
|
|
3643
4269
|
declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
|
|
3644
4270
|
//#endregion
|
|
3645
|
-
export { AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, CookieTokenStoreOptions, type FetchLike, InflightDedup, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, OauthErrorCode, OauthPaymentWebhookBody, type OauthScope, PkcePair, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, 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, TronBrowserClient, TronError, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, charge, completePaymentIntent, consolidateDeveloperAppWallet, createConsoleLogger, createCookieTokenStore, 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, editMessage, 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, getEarningsTimeseries, getIntentStatus, getLibrary, getMeStats, getMoonpayAvailability, getMyDmKey, getMyGameReview, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, 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, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, refreshAccessToken, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, resolveAppeal, reviewAppPage, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, sendFriendRequest, sendMessage, sendPresenceHeartbeat, setProcessorWhitelist, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signPaymentIntent, 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 };
|
|
4271
|
+
export { AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, CookieTokenStoreOptions, type FetchLike, InflightDedup, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, OauthErrorCode, OauthPaymentWebhookBody, type OauthScope, PkcePair, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, 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, TronBrowserClient, TronError, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, charge, commentOnGameReview, completePaymentIntent, consolidateDeveloperAppWallet, createConsoleLogger, createCookieTokenStore, 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, editMessage, 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, getEarningsTimeseries, getIntentStatus, getLibrary, getMeStats, getMoonpayAvailability, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronSecurity, hideAppPage, hideThread, 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, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerDeveloperAppInventoryItem, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, resolveAppeal, reviewAppPage, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, sendFriendRequest, sendMessage, sendPresenceHeartbeat, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, 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 };
|