@metatrongg/sdk 0.8.0-dev.d1c3c23 → 0.8.0-dev.d6c40ea
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 +84 -1
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +421 -1
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +84 -1
- 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
|
@@ -398,7 +398,9 @@ type Review = {
|
|
|
398
398
|
body: ReviewBody;
|
|
399
399
|
reactions: ReviewReactionCounts;
|
|
400
400
|
tippedCents: number;
|
|
401
|
+
commentCount: number;
|
|
401
402
|
author: ReviewAuthor;
|
|
403
|
+
authorStats: ReviewerStats;
|
|
402
404
|
developerReply: ReviewReply;
|
|
403
405
|
createdAt: string;
|
|
404
406
|
updatedAt: string;
|
|
@@ -416,6 +418,11 @@ type ReviewAuthor = {
|
|
|
416
418
|
name: string | null;
|
|
417
419
|
avatarUrl: string | null;
|
|
418
420
|
};
|
|
421
|
+
type ReviewerStats = {
|
|
422
|
+
playtimeSecondsThisGame: number;
|
|
423
|
+
gamesPlayed: number;
|
|
424
|
+
reviewsWritten: number;
|
|
425
|
+
};
|
|
419
426
|
type ReviewReply = {
|
|
420
427
|
body: ReviewReplyBody;
|
|
421
428
|
repliedAt: string;
|
|
@@ -467,6 +474,30 @@ type TipReviewResponse = {
|
|
|
467
474
|
type TipReviewRequest = {
|
|
468
475
|
amountCents: number;
|
|
469
476
|
note?: string;
|
|
477
|
+
challengeId?: string;
|
|
478
|
+
signature?: string;
|
|
479
|
+
};
|
|
480
|
+
type ReviewCommentListResponse = {
|
|
481
|
+
comments: Array<ReviewComment>;
|
|
482
|
+
total: number;
|
|
483
|
+
hasMore: boolean;
|
|
484
|
+
};
|
|
485
|
+
type ReviewComment = {
|
|
486
|
+
id: string;
|
|
487
|
+
body: ReviewCommentBody;
|
|
488
|
+
author: ReviewAuthor;
|
|
489
|
+
createdAt: string;
|
|
490
|
+
};
|
|
491
|
+
type ReviewCommentBody = string;
|
|
492
|
+
type CreateReviewCommentResponse = {
|
|
493
|
+
comment: ReviewComment;
|
|
494
|
+
commentCount: number;
|
|
495
|
+
};
|
|
496
|
+
type CreateReviewCommentRequest = {
|
|
497
|
+
body: ReviewCommentBody;
|
|
498
|
+
};
|
|
499
|
+
type DeleteReviewCommentResponse = {
|
|
500
|
+
commentCount: number;
|
|
470
501
|
};
|
|
471
502
|
type ReviewReplyResponse = {
|
|
472
503
|
developerReply: ReviewReply;
|
|
@@ -965,6 +996,29 @@ type TronTransferRequest = {
|
|
|
965
996
|
recipientUserId: string;
|
|
966
997
|
amountCents: number;
|
|
967
998
|
note?: string;
|
|
999
|
+
challengeId?: string;
|
|
1000
|
+
signature?: string;
|
|
1001
|
+
};
|
|
1002
|
+
type TronSecuritySetting = {
|
|
1003
|
+
requireSignature: boolean;
|
|
1004
|
+
};
|
|
1005
|
+
type TronTransferChallengeResponse = ({
|
|
1006
|
+
required: false;
|
|
1007
|
+
} & TronTransferChallengeNotRequired) | ({
|
|
1008
|
+
required: true;
|
|
1009
|
+
} & TronTransferChallengeRequired);
|
|
1010
|
+
type TronTransferChallengeNotRequired = {
|
|
1011
|
+
required: false;
|
|
1012
|
+
};
|
|
1013
|
+
type TronTransferChallengeRequired = {
|
|
1014
|
+
required: true;
|
|
1015
|
+
challengeId: string;
|
|
1016
|
+
message: string;
|
|
1017
|
+
expiresAt: string;
|
|
1018
|
+
};
|
|
1019
|
+
type TronTransferChallengeRequest = {
|
|
1020
|
+
recipientUserId: string;
|
|
1021
|
+
amountCents: number;
|
|
968
1022
|
};
|
|
969
1023
|
type TronConnectOnboardingResponse = {
|
|
970
1024
|
url: string;
|
|
@@ -2681,6 +2735,24 @@ declare function tipGameReview(context: TransportContext, input: {
|
|
|
2681
2735
|
readonly tip: TipReviewRequest;
|
|
2682
2736
|
readonly idempotencyKey?: string;
|
|
2683
2737
|
}): Promise<TipReviewResponse>;
|
|
2738
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
2739
|
+
readonly slug: string;
|
|
2740
|
+
readonly reviewId: string;
|
|
2741
|
+
readonly bearer?: string;
|
|
2742
|
+
readonly limit?: number;
|
|
2743
|
+
readonly offset?: number;
|
|
2744
|
+
}): Promise<ReviewCommentListResponse>;
|
|
2745
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
2746
|
+
readonly slug: string;
|
|
2747
|
+
readonly reviewId: string;
|
|
2748
|
+
readonly bearer: string;
|
|
2749
|
+
readonly comment: CreateReviewCommentRequest;
|
|
2750
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
2751
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
2752
|
+
readonly slug: string;
|
|
2753
|
+
readonly commentId: string;
|
|
2754
|
+
readonly bearer: string;
|
|
2755
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
2684
2756
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2685
2757
|
readonly appId: string;
|
|
2686
2758
|
readonly reviewId: string;
|
|
@@ -3322,6 +3394,17 @@ declare function createTronTransfer(context: TransportContext, input: {
|
|
|
3322
3394
|
readonly body: TronTransferRequest;
|
|
3323
3395
|
readonly idempotencyKey?: string;
|
|
3324
3396
|
}): Promise<TronTransferResponse>;
|
|
3397
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
3398
|
+
readonly bearer: string;
|
|
3399
|
+
}): Promise<TronSecuritySetting>;
|
|
3400
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
3401
|
+
readonly bearer: string;
|
|
3402
|
+
readonly setting: TronSecuritySetting;
|
|
3403
|
+
}): Promise<TronSecuritySetting>;
|
|
3404
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
3405
|
+
readonly bearer: string;
|
|
3406
|
+
readonly body: TronTransferChallengeRequest;
|
|
3407
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
3325
3408
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3326
3409
|
readonly bearer: string;
|
|
3327
3410
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3761,4 +3844,4 @@ type CookieTokenStoreOptions = {
|
|
|
3761
3844
|
};
|
|
3762
3845
|
declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
|
|
3763
3846
|
//#endregion
|
|
3764
|
-
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, createTronTransfer, 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, getMyGameReviewReactions, 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, setMyGameReviewReaction, setProcessorWhitelist, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signPaymentIntent, submitAppContentReport, submitAppPageForReview, submitDeveloperRequest, 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, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|
|
3847
|
+
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, 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, 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, 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, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listGameReviewComments, 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, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signPaymentIntent, submitAppContentReport, submitAppPageForReview, submitDeveloperRequest, 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, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|