@metatrongg/sdk 0.8.0-dev.ae9c911 → 0.8.0-dev.b4cd8bd
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 +72 -2
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +482 -4
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +72 -2
- 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 -4
package/dist/browser/index.d.ts
CHANGED
|
@@ -1583,6 +1583,19 @@ type DmKeyBackupUnlockBody = {
|
|
|
1583
1583
|
type UpdateParticipantRoleBody = {
|
|
1584
1584
|
role: ParticipantRole;
|
|
1585
1585
|
};
|
|
1586
|
+
type SubmitMessageReportResponse = {
|
|
1587
|
+
created: boolean;
|
|
1588
|
+
};
|
|
1589
|
+
type SubmitMessageReportRequest = {
|
|
1590
|
+
category: MessageReportCategory;
|
|
1591
|
+
note?: string;
|
|
1592
|
+
disclosures: Array<MessageReportDisclosure>;
|
|
1593
|
+
};
|
|
1594
|
+
type MessageReportCategory = "harassment" | "explicit_content" | "scam" | "other";
|
|
1595
|
+
type MessageReportDisclosure = {
|
|
1596
|
+
messageId: string;
|
|
1597
|
+
plaintext: string;
|
|
1598
|
+
};
|
|
1586
1599
|
type ReferralOverview = {
|
|
1587
1600
|
code: string | null;
|
|
1588
1601
|
xLinked: boolean;
|
|
@@ -2632,14 +2645,17 @@ type AdminUserListItem = {
|
|
|
2632
2645
|
email: string | null;
|
|
2633
2646
|
createdAt: string;
|
|
2634
2647
|
bannedAt: string | null;
|
|
2648
|
+
messagingRevokedAt: string | null;
|
|
2635
2649
|
deletedAt: string | null;
|
|
2636
2650
|
};
|
|
2637
2651
|
type AdminUserBanResponse = {
|
|
2638
2652
|
id: string;
|
|
2639
2653
|
banned: boolean;
|
|
2654
|
+
messagingRevoked: boolean;
|
|
2640
2655
|
};
|
|
2641
2656
|
type AdminUserBanRequest = {
|
|
2642
|
-
banned
|
|
2657
|
+
banned?: boolean;
|
|
2658
|
+
messagingRevoked?: boolean;
|
|
2643
2659
|
reason?: string;
|
|
2644
2660
|
};
|
|
2645
2661
|
type AdminAuditListResponse = {
|
|
@@ -2764,6 +2780,39 @@ type AdminAppContentReportItem = {
|
|
|
2764
2780
|
appName: string;
|
|
2765
2781
|
appSlug: string | null;
|
|
2766
2782
|
};
|
|
2783
|
+
type AdminMessageReportListResponse = {
|
|
2784
|
+
reports: Array<AdminMessageReportItem>;
|
|
2785
|
+
total: number;
|
|
2786
|
+
hasMore: boolean;
|
|
2787
|
+
};
|
|
2788
|
+
type AdminMessageReportItem = {
|
|
2789
|
+
id: string;
|
|
2790
|
+
threadId: string;
|
|
2791
|
+
reportedMessageId: string;
|
|
2792
|
+
reporterUserId: string;
|
|
2793
|
+
participants: Array<MessageReportParticipant>;
|
|
2794
|
+
category: MessageReportCategory;
|
|
2795
|
+
note: string | null;
|
|
2796
|
+
status: MessageReportStatus;
|
|
2797
|
+
evidence: Array<MessageReportEvidenceItem>;
|
|
2798
|
+
createdAt: string;
|
|
2799
|
+
updatedAt: string;
|
|
2800
|
+
};
|
|
2801
|
+
type MessageReportParticipant = {
|
|
2802
|
+
userId: string;
|
|
2803
|
+
handle: string | null;
|
|
2804
|
+
displayName: string | null;
|
|
2805
|
+
};
|
|
2806
|
+
type MessageReportStatus = "open" | "resolved" | "dismissed";
|
|
2807
|
+
type MessageReportEvidenceItem = {
|
|
2808
|
+
messageId: string;
|
|
2809
|
+
senderUserId: string;
|
|
2810
|
+
sentAt: string;
|
|
2811
|
+
contentKind: "plaintext" | "encrypted" | "transaction";
|
|
2812
|
+
disclosedPlaintext?: string;
|
|
2813
|
+
storedBody?: string;
|
|
2814
|
+
envelope?: MessageEnvelope;
|
|
2815
|
+
};
|
|
2767
2816
|
type PlatformFeesResponse = {
|
|
2768
2817
|
purchaseFeeBps: number;
|
|
2769
2818
|
stakeFeeBps: number;
|
|
@@ -3164,6 +3213,19 @@ declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
|
3164
3213
|
readonly custodyId: string;
|
|
3165
3214
|
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
3166
3215
|
//#endregion
|
|
3216
|
+
//#region src/admin/message-reports.d.ts
|
|
3217
|
+
declare function listAdminMessageReports(context: TransportContext, input: {
|
|
3218
|
+
readonly bearer: string;
|
|
3219
|
+
readonly status?: "open" | "resolved" | "dismissed" | "all";
|
|
3220
|
+
readonly limit?: number;
|
|
3221
|
+
readonly offset?: number;
|
|
3222
|
+
}): Promise<AdminMessageReportListResponse>;
|
|
3223
|
+
declare function triageAdminMessageReport(context: TransportContext, input: {
|
|
3224
|
+
readonly bearer: string;
|
|
3225
|
+
readonly reportId: string;
|
|
3226
|
+
readonly status: "resolved" | "dismissed";
|
|
3227
|
+
}): Promise<AdminMessageReportItem>;
|
|
3228
|
+
//#endregion
|
|
3167
3229
|
//#region src/admin/payments.d.ts
|
|
3168
3230
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
3169
3231
|
readonly bearer: string;
|
|
@@ -4031,6 +4093,14 @@ declare function updateParticipantRole(context: TransportContext, input: {
|
|
|
4031
4093
|
readonly body: UpdateParticipantRoleBody;
|
|
4032
4094
|
}): Promise<GroupThreadMutationResponse>;
|
|
4033
4095
|
//#endregion
|
|
4096
|
+
//#region src/messaging/reports.d.ts
|
|
4097
|
+
declare function submitMessageReport(context: TransportContext, input: {
|
|
4098
|
+
readonly bearer: string;
|
|
4099
|
+
readonly threadId: string;
|
|
4100
|
+
readonly messageId: string;
|
|
4101
|
+
readonly body: SubmitMessageReportRequest;
|
|
4102
|
+
}): Promise<SubmitMessageReportResponse>;
|
|
4103
|
+
//#endregion
|
|
4034
4104
|
//#region src/messaging/threads.d.ts
|
|
4035
4105
|
declare function deleteThread(context: TransportContext, input: {
|
|
4036
4106
|
readonly bearer: string;
|
|
@@ -4697,4 +4767,4 @@ type CookieTokenStoreOptions = {
|
|
|
4697
4767
|
};
|
|
4698
4768
|
declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
|
|
4699
4769
|
//#endregion
|
|
4700
|
-
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, commentOnBipUpdate, commentOnGameReview, completePaymentIntent, completePaymentIntentSolana, consolidateDeveloperAppWallet, createBipUpdate, 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, deleteBipUpdate, deleteBipUpdateComment, 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, getBipDirectory, getBipInterestCount, getBipPage, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getEarningsTimeseries, getIntentStatus, getLibrary, getMeStats, getMoonpayAvailability, getMyBipEngagement, getMyBipUpdateReactions, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPaymentRates, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronSecurity, hideAppPage, hideAppPageBip, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdminContentReports, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listBipUpdateComments, listBipUpdates, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppInventoryCollections, listDeveloperAppInventoryItems, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperBipUpdates, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listFriendsForApp, 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, pinBipUpdate, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, preparePaymentIntentSolana, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerBipInterest, registerDeveloperAppInventoryItem, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, resolveAppeal, reviewAppPage, reviewAppPageBip, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, sendFriendRequest, sendMessage, sendPresenceHeartbeat, setAppPageBip, setBipUpdateReaction, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, submitAppContentReport, submitAppPageBipForReview, submitAppPageForReview, submitDeveloperRequest, submitRelayedVaultPermit, subscribeBipUpdates, tipGameReview, toTokenSet, triageAdminContentReport, unfollowUser, unhideAppPage, unhideAppPageBip, unlockDmKeyBackup, unpinBipUpdate, unpinThread, unpublishAppPage, unpublishAppPageBip, updateAdminRole, updateAppFeeConfig, updateAppPage, updateBipUpdate, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadBipUpdateMedia, uploadDeveloperAppInventoryItemBanner, uploadDeveloperAppInventoryItemImage, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|
|
4770
|
+
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, commentOnBipUpdate, commentOnGameReview, completePaymentIntent, completePaymentIntentSolana, consolidateDeveloperAppWallet, createBipUpdate, 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, deleteBipUpdate, deleteBipUpdateComment, 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, getBipDirectory, getBipInterestCount, getBipPage, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getEarningsTimeseries, getIntentStatus, getLibrary, getMeStats, getMoonpayAvailability, getMyBipEngagement, getMyBipUpdateReactions, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPaymentRates, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronSecurity, hideAppPage, hideAppPageBip, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdminContentReports, listAdminMessageReports, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listBipUpdateComments, listBipUpdates, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppInventoryCollections, listDeveloperAppInventoryItems, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperBipUpdates, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listFriendsForApp, 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, pinBipUpdate, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, preparePaymentIntentSolana, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerBipInterest, registerDeveloperAppInventoryItem, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, resolveAppeal, reviewAppPage, reviewAppPageBip, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, sendFriendRequest, sendMessage, sendPresenceHeartbeat, setAppPageBip, setBipUpdateReaction, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, submitAppContentReport, submitAppPageBipForReview, submitAppPageForReview, submitDeveloperRequest, submitMessageReport, submitRelayedVaultPermit, subscribeBipUpdates, tipGameReview, toTokenSet, triageAdminContentReport, triageAdminMessageReport, unfollowUser, unhideAppPage, unhideAppPageBip, unlockDmKeyBackup, unpinBipUpdate, unpinThread, unpublishAppPage, unpublishAppPageBip, updateAdminRole, updateAppFeeConfig, updateAppPage, updateBipUpdate, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadBipUpdateMedia, uploadDeveloperAppInventoryItemBanner, uploadDeveloperAppInventoryItemImage, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|