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