@metatrongg/sdk 0.8.0-dev.b082f17 → 0.8.0-dev.bace078
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 +645 -18
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +8242 -3718
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +696 -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 +3 -3
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?: MessageTransaction;
|
|
1048
1210
|
sentAt: string;
|
|
1049
1211
|
} | null;
|
|
1050
1212
|
type MessageEnvelope = {
|
|
@@ -1056,6 +1218,20 @@ type MessageEnvelope = {
|
|
|
1056
1218
|
iv: string;
|
|
1057
1219
|
ct: string;
|
|
1058
1220
|
} | null;
|
|
1221
|
+
type MessageTransaction = MessageTransactionTronTransfer | MessageTransactionNftTransfer;
|
|
1222
|
+
type MessageTransactionTronTransfer = {
|
|
1223
|
+
kind: "tron_transfer";
|
|
1224
|
+
amountCents: number;
|
|
1225
|
+
recipientUserId: string;
|
|
1226
|
+
};
|
|
1227
|
+
type MessageTransactionNftTransfer = {
|
|
1228
|
+
kind: "nft_transfer";
|
|
1229
|
+
recipientUserId: string;
|
|
1230
|
+
collectionAddress: string;
|
|
1231
|
+
tokenId: string;
|
|
1232
|
+
amount: string;
|
|
1233
|
+
itemName: string | null;
|
|
1234
|
+
};
|
|
1059
1235
|
type GroupThreadSummary = {
|
|
1060
1236
|
kind: "group";
|
|
1061
1237
|
id: string;
|
|
@@ -1102,6 +1278,7 @@ type MessageItem = {
|
|
|
1102
1278
|
id: string;
|
|
1103
1279
|
threadId: string;
|
|
1104
1280
|
senderUserId: string;
|
|
1281
|
+
transaction?: MessageTransaction;
|
|
1105
1282
|
body: string;
|
|
1106
1283
|
envelope?: MessageEnvelope;
|
|
1107
1284
|
sentAt: string;
|
|
@@ -1313,11 +1490,45 @@ type InventoryHolding = {
|
|
|
1313
1490
|
tokenId: string;
|
|
1314
1491
|
amount: string;
|
|
1315
1492
|
name: string | null;
|
|
1493
|
+
description: string | null;
|
|
1316
1494
|
imageAssetId: string | null;
|
|
1317
1495
|
bannerAssetId: string | null;
|
|
1318
1496
|
devMetadata: {
|
|
1319
1497
|
[key: string]: unknown;
|
|
1320
1498
|
};
|
|
1499
|
+
appId: string | null;
|
|
1500
|
+
appName: string | null;
|
|
1501
|
+
appLogoUrl: string | null;
|
|
1502
|
+
};
|
|
1503
|
+
type InventoryPendingPermitListResponse = {
|
|
1504
|
+
permits: Array<InventoryPendingPermit>;
|
|
1505
|
+
};
|
|
1506
|
+
type InventoryPendingPermit = {
|
|
1507
|
+
id: string;
|
|
1508
|
+
appId: string;
|
|
1509
|
+
itemId: string;
|
|
1510
|
+
amount: string;
|
|
1511
|
+
priceCents: number | null;
|
|
1512
|
+
gasSponsored: boolean;
|
|
1513
|
+
environment: "development" | "production";
|
|
1514
|
+
createdAt: string;
|
|
1515
|
+
tokenId: string;
|
|
1516
|
+
name: string | null;
|
|
1517
|
+
description: string | null;
|
|
1518
|
+
imageAssetId: string | null;
|
|
1519
|
+
chain: string;
|
|
1520
|
+
collectionAddress: string;
|
|
1521
|
+
kind: "erc721" | "erc1155";
|
|
1522
|
+
};
|
|
1523
|
+
type InventoryPermitRedeemResult = {
|
|
1524
|
+
mint: MintRequestResult;
|
|
1525
|
+
charge: {
|
|
1526
|
+
currency: "tron";
|
|
1527
|
+
gasCents: number;
|
|
1528
|
+
priceCents: number;
|
|
1529
|
+
totalCents: number;
|
|
1530
|
+
gasPaidBy: "user" | "developer";
|
|
1531
|
+
};
|
|
1321
1532
|
};
|
|
1322
1533
|
type MintRequestResult = {
|
|
1323
1534
|
mintRequestId: string;
|
|
@@ -1333,6 +1544,247 @@ type MintRequestInput = {
|
|
|
1333
1544
|
tokenId?: string;
|
|
1334
1545
|
amount?: string;
|
|
1335
1546
|
};
|
|
1547
|
+
type InventoryCollectionListResponse = {
|
|
1548
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1549
|
+
};
|
|
1550
|
+
type InventoryCollectionSummary = {
|
|
1551
|
+
id: string;
|
|
1552
|
+
chain: string;
|
|
1553
|
+
collectionAddress: string;
|
|
1554
|
+
kind: "erc721" | "erc1155";
|
|
1555
|
+
name: string | null;
|
|
1556
|
+
environment: "development" | "production";
|
|
1557
|
+
};
|
|
1558
|
+
type InventoryRegistrationQuote = {
|
|
1559
|
+
itemCount: number;
|
|
1560
|
+
baselineUsdCents: number;
|
|
1561
|
+
gasUsdCents: number;
|
|
1562
|
+
tron: {
|
|
1563
|
+
baselineCents: number;
|
|
1564
|
+
gasCents: number;
|
|
1565
|
+
totalCents: number;
|
|
1566
|
+
};
|
|
1567
|
+
eth: {
|
|
1568
|
+
baselineWei: string;
|
|
1569
|
+
gasWei: string;
|
|
1570
|
+
totalWei: string;
|
|
1571
|
+
};
|
|
1572
|
+
};
|
|
1573
|
+
type InventoryItemRegistrationInput = {
|
|
1574
|
+
collectionAddress: string;
|
|
1575
|
+
chain: string;
|
|
1576
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1577
|
+
};
|
|
1578
|
+
type InventoryItemRegistrationSpec = {
|
|
1579
|
+
name?: string | null;
|
|
1580
|
+
description?: string | null;
|
|
1581
|
+
devMetadata?: {
|
|
1582
|
+
[key: string]: unknown;
|
|
1583
|
+
};
|
|
1584
|
+
supplyType?: InventorySupplyType;
|
|
1585
|
+
maxSupply?: string | null;
|
|
1586
|
+
active?: boolean;
|
|
1587
|
+
};
|
|
1588
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1589
|
+
type InventoryItemRegistrationResult = {
|
|
1590
|
+
items: Array<InventoryItemRecord>;
|
|
1591
|
+
charge: {
|
|
1592
|
+
currency: "tron";
|
|
1593
|
+
amountCents: number;
|
|
1594
|
+
baselineCents: number;
|
|
1595
|
+
gasCents: number;
|
|
1596
|
+
addItemTxHash: string;
|
|
1597
|
+
};
|
|
1598
|
+
};
|
|
1599
|
+
type InventoryItemRecord = {
|
|
1600
|
+
id: string;
|
|
1601
|
+
collectionId: string;
|
|
1602
|
+
collectionAddress: string;
|
|
1603
|
+
chain: string;
|
|
1604
|
+
kind: "erc721" | "erc1155";
|
|
1605
|
+
tokenId: string;
|
|
1606
|
+
name: string | null;
|
|
1607
|
+
description: string | null;
|
|
1608
|
+
imageAssetId: string | null;
|
|
1609
|
+
bannerAssetId: string | null;
|
|
1610
|
+
devMetadata: {
|
|
1611
|
+
[key: string]: unknown;
|
|
1612
|
+
};
|
|
1613
|
+
supplyType: InventorySupplyType | null;
|
|
1614
|
+
maxSupply: string | null;
|
|
1615
|
+
active: boolean;
|
|
1616
|
+
};
|
|
1617
|
+
type InventoryItemListResponse = {
|
|
1618
|
+
items: Array<InventoryItemRecord>;
|
|
1619
|
+
};
|
|
1620
|
+
type InventoryMintPermitRecord = {
|
|
1621
|
+
id: string;
|
|
1622
|
+
appId: string;
|
|
1623
|
+
itemId: string;
|
|
1624
|
+
userId: string;
|
|
1625
|
+
amount: string;
|
|
1626
|
+
priceCents: number | null;
|
|
1627
|
+
gasSponsored: boolean;
|
|
1628
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1629
|
+
createdAt: string;
|
|
1630
|
+
};
|
|
1631
|
+
type InventoryMintPermitCreateInput = {
|
|
1632
|
+
toUserId: string;
|
|
1633
|
+
amount?: string;
|
|
1634
|
+
priceCents?: number | null;
|
|
1635
|
+
gasSponsored?: boolean;
|
|
1636
|
+
};
|
|
1637
|
+
type InventoryItemHoldersResponse = {
|
|
1638
|
+
stats: InventoryItemStats;
|
|
1639
|
+
holders: Array<InventoryItemHolder>;
|
|
1640
|
+
};
|
|
1641
|
+
type InventoryItemStats = {
|
|
1642
|
+
holderCount: number;
|
|
1643
|
+
walletCount: number;
|
|
1644
|
+
totalHeld: string;
|
|
1645
|
+
};
|
|
1646
|
+
type InventoryItemHolder = {
|
|
1647
|
+
walletAddress: string;
|
|
1648
|
+
userId: string | null;
|
|
1649
|
+
amount: string;
|
|
1650
|
+
};
|
|
1651
|
+
type InventoryVaultPermitRecord = {
|
|
1652
|
+
id: string;
|
|
1653
|
+
appId: string;
|
|
1654
|
+
itemId: string;
|
|
1655
|
+
userId: string;
|
|
1656
|
+
direction: "vault_in" | "withdraw";
|
|
1657
|
+
lockKind: "vault" | "burn" | null;
|
|
1658
|
+
amount: string;
|
|
1659
|
+
gasSponsored: boolean;
|
|
1660
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1661
|
+
custodyId: string | null;
|
|
1662
|
+
createdAt: string;
|
|
1663
|
+
};
|
|
1664
|
+
type InventoryVaultPermitCreateInput = {
|
|
1665
|
+
toUserId: string;
|
|
1666
|
+
lockKind: "vault" | "burn";
|
|
1667
|
+
amount?: string;
|
|
1668
|
+
gasSponsored?: boolean;
|
|
1669
|
+
};
|
|
1670
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1671
|
+
custodyId: string;
|
|
1672
|
+
};
|
|
1673
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1674
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1675
|
+
};
|
|
1676
|
+
type InventoryPendingVaultPermit = {
|
|
1677
|
+
id: string;
|
|
1678
|
+
appId: string;
|
|
1679
|
+
itemId: string;
|
|
1680
|
+
direction: "vault_in" | "withdraw";
|
|
1681
|
+
lockKind: "vault" | "burn" | null;
|
|
1682
|
+
amount: string;
|
|
1683
|
+
gasSponsored: boolean;
|
|
1684
|
+
environment: "development" | "production";
|
|
1685
|
+
custodyId: string | null;
|
|
1686
|
+
createdAt: string;
|
|
1687
|
+
tokenId: string;
|
|
1688
|
+
name: string | null;
|
|
1689
|
+
description: string | null;
|
|
1690
|
+
imageAssetId: string | null;
|
|
1691
|
+
chain: string;
|
|
1692
|
+
collectionAddress: string;
|
|
1693
|
+
kind: "erc721" | "erc1155";
|
|
1694
|
+
};
|
|
1695
|
+
type InventorySignedVaultPermit = {
|
|
1696
|
+
permitId: string;
|
|
1697
|
+
direction: "vault_in" | "withdraw";
|
|
1698
|
+
vault: string;
|
|
1699
|
+
collection: string;
|
|
1700
|
+
user: string;
|
|
1701
|
+
tokenId: string;
|
|
1702
|
+
amount: string;
|
|
1703
|
+
lockKind: "vault" | "burn" | null;
|
|
1704
|
+
destination: string | null;
|
|
1705
|
+
deadline: number;
|
|
1706
|
+
signature: string;
|
|
1707
|
+
};
|
|
1708
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1709
|
+
direction: "vault_in" | "withdraw";
|
|
1710
|
+
collection: string;
|
|
1711
|
+
vault: string;
|
|
1712
|
+
chainId: number;
|
|
1713
|
+
user: string;
|
|
1714
|
+
tokenId: string;
|
|
1715
|
+
amount: string;
|
|
1716
|
+
nonce: string | null;
|
|
1717
|
+
deadline: number;
|
|
1718
|
+
feeCents: number;
|
|
1719
|
+
gasWei: string;
|
|
1720
|
+
gasPaidBy: "developer" | "user";
|
|
1721
|
+
requiresUserSignature: boolean;
|
|
1722
|
+
};
|
|
1723
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1724
|
+
ok: boolean;
|
|
1725
|
+
txHash: string;
|
|
1726
|
+
chargedCents: number;
|
|
1727
|
+
gasPaidBy: "developer" | "user";
|
|
1728
|
+
};
|
|
1729
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1730
|
+
userSignature?: string;
|
|
1731
|
+
deadline?: number;
|
|
1732
|
+
};
|
|
1733
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1734
|
+
collection: string;
|
|
1735
|
+
chainId: number;
|
|
1736
|
+
from: string;
|
|
1737
|
+
to: string;
|
|
1738
|
+
tokenId: string;
|
|
1739
|
+
amount: string;
|
|
1740
|
+
nonce: string;
|
|
1741
|
+
deadline: number;
|
|
1742
|
+
feeCents: number;
|
|
1743
|
+
gasWei: string;
|
|
1744
|
+
selfPayAvailable: boolean;
|
|
1745
|
+
};
|
|
1746
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1747
|
+
toUserId: string;
|
|
1748
|
+
collection: string;
|
|
1749
|
+
tokenId: string;
|
|
1750
|
+
amount?: string;
|
|
1751
|
+
};
|
|
1752
|
+
type InventoryNftTransferResponse = {
|
|
1753
|
+
ok: boolean;
|
|
1754
|
+
txHash: string;
|
|
1755
|
+
chargedCents: number;
|
|
1756
|
+
};
|
|
1757
|
+
type InventoryNftTransferRequest = {
|
|
1758
|
+
toUserId: string;
|
|
1759
|
+
collection: string;
|
|
1760
|
+
tokenId: string;
|
|
1761
|
+
amount?: string;
|
|
1762
|
+
deadline: number;
|
|
1763
|
+
userSignature: string;
|
|
1764
|
+
threadId?: string;
|
|
1765
|
+
};
|
|
1766
|
+
type InventoryVaultCustodyListResponse = {
|
|
1767
|
+
custody: Array<InventoryVaultCustody>;
|
|
1768
|
+
};
|
|
1769
|
+
type InventoryVaultCustody = {
|
|
1770
|
+
id: string;
|
|
1771
|
+
collectionId: string;
|
|
1772
|
+
collectionAddress: string;
|
|
1773
|
+
chain: string;
|
|
1774
|
+
kind: "erc721" | "erc1155";
|
|
1775
|
+
tokenId: string;
|
|
1776
|
+
amount: string;
|
|
1777
|
+
lockKind: "vault" | "burn";
|
|
1778
|
+
vaultAddress: string;
|
|
1779
|
+
createdAt: string;
|
|
1780
|
+
name: string | null;
|
|
1781
|
+
description: string | null;
|
|
1782
|
+
imageAssetId: string | null;
|
|
1783
|
+
};
|
|
1784
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1785
|
+
ok: boolean;
|
|
1786
|
+
txHash: string;
|
|
1787
|
+
};
|
|
1336
1788
|
type NotificationListResponse = {
|
|
1337
1789
|
notifications: Array<NotificationItem>;
|
|
1338
1790
|
unreadCount: number;
|
|
@@ -1500,7 +1952,7 @@ type ProfileRecentReview = {
|
|
|
1500
1952
|
appId: string;
|
|
1501
1953
|
appName: string;
|
|
1502
1954
|
appLogoUrl: string | null;
|
|
1503
|
-
|
|
1955
|
+
recommended: boolean;
|
|
1504
1956
|
body: string;
|
|
1505
1957
|
createdAt: string;
|
|
1506
1958
|
};
|
|
@@ -1856,6 +2308,11 @@ type AppPageDraft = {
|
|
|
1856
2308
|
gallery: AppPageGallery;
|
|
1857
2309
|
chapters: AppPageChapters;
|
|
1858
2310
|
links: AppPageLinks;
|
|
2311
|
+
platforms: AppPagePlatforms;
|
|
2312
|
+
gameType: AppPageGameType;
|
|
2313
|
+
ageRating: AppPageAgeRating;
|
|
2314
|
+
languages: AppPageLanguages;
|
|
2315
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1859
2316
|
firstPublishedAt: string | null;
|
|
1860
2317
|
reviewedAt: string | null;
|
|
1861
2318
|
reviewNotes: string | null;
|
|
@@ -1878,6 +2335,11 @@ type UpdateAppPage = {
|
|
|
1878
2335
|
gallery?: AppPageGallery;
|
|
1879
2336
|
chapters?: AppPageChapters;
|
|
1880
2337
|
links?: AppPageLinks;
|
|
2338
|
+
platforms?: AppPagePlatforms;
|
|
2339
|
+
gameType?: AppPageGameType;
|
|
2340
|
+
ageRating?: AppPageAgeRating;
|
|
2341
|
+
languages?: AppPageLanguages;
|
|
2342
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1881
2343
|
};
|
|
1882
2344
|
type AppPageGalleryUploadResponse = {
|
|
1883
2345
|
url: string;
|
|
@@ -2405,6 +2867,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2405
2867
|
readonly bearer: string;
|
|
2406
2868
|
}): Promise<AdminDeveloperListResponse>;
|
|
2407
2869
|
//#endregion
|
|
2870
|
+
//#region src/admin/inventory-vault.d.ts
|
|
2871
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
2872
|
+
readonly bearer: string;
|
|
2873
|
+
readonly custodyId: string;
|
|
2874
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
2875
|
+
//#endregion
|
|
2408
2876
|
//#region src/admin/payments.d.ts
|
|
2409
2877
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2410
2878
|
readonly bearer: string;
|
|
@@ -2567,6 +3035,41 @@ declare function deleteMyGameReview(context: TransportContext, input: {
|
|
|
2567
3035
|
readonly slug: string;
|
|
2568
3036
|
readonly bearer: string;
|
|
2569
3037
|
}): Promise<MyReviewResponse>;
|
|
3038
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3039
|
+
readonly slug: string;
|
|
3040
|
+
readonly bearer: string;
|
|
3041
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3042
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3043
|
+
readonly slug: string;
|
|
3044
|
+
readonly reviewId: string;
|
|
3045
|
+
readonly bearer: string;
|
|
3046
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3047
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3048
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3049
|
+
readonly slug: string;
|
|
3050
|
+
readonly reviewId: string;
|
|
3051
|
+
readonly bearer: string;
|
|
3052
|
+
readonly tip: TipReviewRequest;
|
|
3053
|
+
readonly idempotencyKey?: string;
|
|
3054
|
+
}): Promise<TipReviewResponse>;
|
|
3055
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3056
|
+
readonly slug: string;
|
|
3057
|
+
readonly reviewId: string;
|
|
3058
|
+
readonly bearer?: string;
|
|
3059
|
+
readonly limit?: number;
|
|
3060
|
+
readonly offset?: number;
|
|
3061
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3062
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3063
|
+
readonly slug: string;
|
|
3064
|
+
readonly reviewId: string;
|
|
3065
|
+
readonly bearer: string;
|
|
3066
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3067
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3068
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3069
|
+
readonly slug: string;
|
|
3070
|
+
readonly commentId: string;
|
|
3071
|
+
readonly bearer: string;
|
|
3072
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2570
3073
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2571
3074
|
readonly appId: string;
|
|
2572
3075
|
readonly reviewId: string;
|
|
@@ -2789,6 +3292,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2789
3292
|
readonly status: "acknowledged" | "dismissed";
|
|
2790
3293
|
}): Promise<AppContentReport>;
|
|
2791
3294
|
//#endregion
|
|
3295
|
+
//#region src/developer/inventory.d.ts
|
|
3296
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3297
|
+
readonly bearer: string;
|
|
3298
|
+
readonly appId: string;
|
|
3299
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3300
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3301
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3302
|
+
readonly bearer: string;
|
|
3303
|
+
readonly appId: string;
|
|
3304
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3305
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3306
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3307
|
+
readonly bearer: string;
|
|
3308
|
+
readonly appId: string;
|
|
3309
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3310
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3311
|
+
readonly bearer: string;
|
|
3312
|
+
readonly appId: string;
|
|
3313
|
+
}): Promise<InventoryItemListResponse>;
|
|
3314
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3315
|
+
readonly bearer: string;
|
|
3316
|
+
readonly appId: string;
|
|
3317
|
+
readonly itemId: string;
|
|
3318
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3319
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3320
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3321
|
+
readonly bearer: string;
|
|
3322
|
+
readonly appId: string;
|
|
3323
|
+
readonly itemId: string;
|
|
3324
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3325
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3326
|
+
readonly bearer: string;
|
|
3327
|
+
readonly appId: string;
|
|
3328
|
+
readonly itemId: string;
|
|
3329
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3330
|
+
readonly filename: string;
|
|
3331
|
+
readonly contentType: string;
|
|
3332
|
+
}): Promise<InventoryItemRecord>;
|
|
3333
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3334
|
+
readonly bearer: string;
|
|
3335
|
+
readonly appId: string;
|
|
3336
|
+
readonly itemId: string;
|
|
3337
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3338
|
+
readonly filename: string;
|
|
3339
|
+
readonly contentType: string;
|
|
3340
|
+
}): Promise<InventoryItemRecord>;
|
|
3341
|
+
//#endregion
|
|
2792
3342
|
//#region src/developer/pages.d.ts
|
|
2793
3343
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2794
3344
|
readonly bearer: string;
|
|
@@ -2913,6 +3463,20 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
2913
3463
|
readonly contentType: string;
|
|
2914
3464
|
}): Promise<unknown>;
|
|
2915
3465
|
//#endregion
|
|
3466
|
+
//#region src/developer/vault.d.ts
|
|
3467
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3468
|
+
readonly bearer: string;
|
|
3469
|
+
readonly appId: string;
|
|
3470
|
+
readonly itemId: string;
|
|
3471
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3472
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3473
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3474
|
+
readonly bearer: string;
|
|
3475
|
+
readonly appId: string;
|
|
3476
|
+
readonly itemId: string;
|
|
3477
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3478
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3479
|
+
//#endregion
|
|
2916
3480
|
//#region src/inventory/list.d.ts
|
|
2917
3481
|
declare function listInventory(context: TransportContext, input: {
|
|
2918
3482
|
readonly bearer: string;
|
|
@@ -2921,12 +3485,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
2921
3485
|
readonly bearer: string;
|
|
2922
3486
|
}): Promise<InventoryListResponse>;
|
|
2923
3487
|
//#endregion
|
|
3488
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
3489
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
3490
|
+
readonly bearer: string;
|
|
3491
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
3492
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
3493
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
3494
|
+
readonly bearer: string;
|
|
3495
|
+
readonly body: InventoryNftTransferRequest;
|
|
3496
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
3497
|
+
//#endregion
|
|
3498
|
+
//#region src/inventory/permits.d.ts
|
|
3499
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
3500
|
+
readonly bearer: string;
|
|
3501
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
3502
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
3503
|
+
readonly bearer: string;
|
|
3504
|
+
readonly permitId: string;
|
|
3505
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
3506
|
+
//#endregion
|
|
2924
3507
|
//#region src/inventory/request-mint.d.ts
|
|
2925
3508
|
declare function requestMint(context: TransportContext, input: {
|
|
2926
3509
|
readonly appBearer: string;
|
|
2927
3510
|
readonly body: MintRequestInput;
|
|
2928
3511
|
}): Promise<MintRequestResult>;
|
|
2929
3512
|
//#endregion
|
|
3513
|
+
//#region src/inventory/vault.d.ts
|
|
3514
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
3515
|
+
readonly bearer: string;
|
|
3516
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
3517
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
3518
|
+
readonly bearer: string;
|
|
3519
|
+
readonly permitId: string;
|
|
3520
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
3521
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
3522
|
+
readonly bearer: string;
|
|
3523
|
+
readonly permitId: string;
|
|
3524
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
3525
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
3526
|
+
readonly bearer: string;
|
|
3527
|
+
readonly permitId: string;
|
|
3528
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
3529
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
3530
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
3531
|
+
readonly bearer: string;
|
|
3532
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3533
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
3534
|
+
readonly bearer: string;
|
|
3535
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3536
|
+
//#endregion
|
|
2930
3537
|
//#region src/messaging/dm-key-backup.d.ts
|
|
2931
3538
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
2932
3539
|
readonly bearer: string;
|
|
@@ -3203,6 +3810,22 @@ declare function createTronDeposit(context: TransportContext, input: {
|
|
|
3203
3810
|
readonly bearer: string;
|
|
3204
3811
|
readonly body: TronDepositRequest;
|
|
3205
3812
|
}): Promise<TronDepositResponse>;
|
|
3813
|
+
declare function createTronTransfer(context: TransportContext, input: {
|
|
3814
|
+
readonly bearer: string;
|
|
3815
|
+
readonly body: TronTransferRequest;
|
|
3816
|
+
readonly idempotencyKey?: string;
|
|
3817
|
+
}): Promise<TronTransferResponse>;
|
|
3818
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
3819
|
+
readonly bearer: string;
|
|
3820
|
+
}): Promise<TronSecuritySetting>;
|
|
3821
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
3822
|
+
readonly bearer: string;
|
|
3823
|
+
readonly setting: TronSecuritySetting;
|
|
3824
|
+
}): Promise<TronSecuritySetting>;
|
|
3825
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
3826
|
+
readonly bearer: string;
|
|
3827
|
+
readonly body: TronTransferChallengeRequest;
|
|
3828
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3206
3829
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3207
3830
|
readonly bearer: string;
|
|
3208
3831
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3339,6 +3962,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3339
3962
|
readonly bearer: string;
|
|
3340
3963
|
readonly userId: string;
|
|
3341
3964
|
}): Promise<void>;
|
|
3965
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
3966
|
+
readonly bearer: string;
|
|
3967
|
+
readonly userId: string;
|
|
3968
|
+
}): Promise<void>;
|
|
3342
3969
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3343
3970
|
readonly bearer: string;
|
|
3344
3971
|
readonly requestId: string;
|
|
@@ -3642,4 +4269,4 @@ type CookieTokenStoreOptions = {
|
|
|
3642
4269
|
};
|
|
3643
4270
|
declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
|
|
3644
4271
|
//#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 };
|
|
4272
|
+
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 };
|