@metatrongg/sdk 0.8.0-dev.d0f6848 → 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 +102 -1
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +506 -1
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +102 -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
|
@@ -397,7 +397,10 @@ type Review = {
|
|
|
397
397
|
recommended: ReviewRecommended;
|
|
398
398
|
body: ReviewBody;
|
|
399
399
|
reactions: ReviewReactionCounts;
|
|
400
|
+
tippedCents: number;
|
|
401
|
+
commentCount: number;
|
|
400
402
|
author: ReviewAuthor;
|
|
403
|
+
authorStats: ReviewerStats;
|
|
401
404
|
developerReply: ReviewReply;
|
|
402
405
|
createdAt: string;
|
|
403
406
|
updatedAt: string;
|
|
@@ -415,6 +418,11 @@ type ReviewAuthor = {
|
|
|
415
418
|
name: string | null;
|
|
416
419
|
avatarUrl: string | null;
|
|
417
420
|
};
|
|
421
|
+
type ReviewerStats = {
|
|
422
|
+
playtimeSecondsThisGame: number;
|
|
423
|
+
gamesPlayed: number;
|
|
424
|
+
reviewsWritten: number;
|
|
425
|
+
};
|
|
418
426
|
type ReviewReply = {
|
|
419
427
|
body: ReviewReplyBody;
|
|
420
428
|
repliedAt: string;
|
|
@@ -457,6 +465,40 @@ type SetReviewReactionRequest = {
|
|
|
457
465
|
vote: ReviewVote;
|
|
458
466
|
funny: boolean;
|
|
459
467
|
};
|
|
468
|
+
type TipReviewResponse = {
|
|
469
|
+
status: "completed";
|
|
470
|
+
amountCents: number;
|
|
471
|
+
balanceCents: number;
|
|
472
|
+
tippedCents: number;
|
|
473
|
+
};
|
|
474
|
+
type TipReviewRequest = {
|
|
475
|
+
amountCents: number;
|
|
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;
|
|
501
|
+
};
|
|
460
502
|
type ReviewReplyResponse = {
|
|
461
503
|
developerReply: ReviewReply;
|
|
462
504
|
};
|
|
@@ -954,6 +996,29 @@ type TronTransferRequest = {
|
|
|
954
996
|
recipientUserId: string;
|
|
955
997
|
amountCents: number;
|
|
956
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;
|
|
957
1022
|
};
|
|
958
1023
|
type TronConnectOnboardingResponse = {
|
|
959
1024
|
url: string;
|
|
@@ -2663,6 +2728,31 @@ declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
|
2663
2728
|
readonly bearer: string;
|
|
2664
2729
|
readonly reaction: SetReviewReactionRequest;
|
|
2665
2730
|
}): Promise<SetReviewReactionResponse>;
|
|
2731
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
2732
|
+
readonly slug: string;
|
|
2733
|
+
readonly reviewId: string;
|
|
2734
|
+
readonly bearer: string;
|
|
2735
|
+
readonly tip: TipReviewRequest;
|
|
2736
|
+
readonly idempotencyKey?: string;
|
|
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>;
|
|
2666
2756
|
declare function replyToGameReview(context: TransportContext, input: {
|
|
2667
2757
|
readonly appId: string;
|
|
2668
2758
|
readonly reviewId: string;
|
|
@@ -3304,6 +3394,17 @@ declare function createTronTransfer(context: TransportContext, input: {
|
|
|
3304
3394
|
readonly body: TronTransferRequest;
|
|
3305
3395
|
readonly idempotencyKey?: string;
|
|
3306
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>;
|
|
3307
3408
|
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3308
3409
|
readonly bearer: string;
|
|
3309
3410
|
}): Promise<TronConnectOnboardingResponse>;
|
|
@@ -3743,4 +3844,4 @@ type CookieTokenStoreOptions = {
|
|
|
3743
3844
|
};
|
|
3744
3845
|
declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
|
|
3745
3846
|
//#endregion
|
|
3746
|
-
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, 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 };
|