@metatrongg/sdk 0.8.0-dev.3dc9fcb → 0.8.0-dev.42c667f
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 +4 -102
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +16 -692
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +5 -103
- 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
|
@@ -249,15 +249,7 @@ type OauthPaymentIntentContext = {
|
|
|
249
249
|
};
|
|
250
250
|
} | null;
|
|
251
251
|
environment: "development" | "production";
|
|
252
|
-
onramp?: {
|
|
253
|
-
kind: "bridge";
|
|
254
|
-
from: PaymentNetwork;
|
|
255
|
-
to: PaymentNetwork;
|
|
256
|
-
} | {
|
|
257
|
-
kind: "insufficient";
|
|
258
|
-
};
|
|
259
252
|
};
|
|
260
|
-
type PaymentNetwork = "ethereum" | "base" | "solana";
|
|
261
253
|
type OauthPaymentIntentSignResponse = {
|
|
262
254
|
chain: string;
|
|
263
255
|
chainId: number;
|
|
@@ -458,14 +450,6 @@ type ReviewAuthor = {
|
|
|
458
450
|
name: string | null;
|
|
459
451
|
avatarUrl: string | null;
|
|
460
452
|
};
|
|
461
|
-
type BipInterestCountResponse = {
|
|
462
|
-
interestCount: number;
|
|
463
|
-
};
|
|
464
|
-
type BipEngagementResponse = {
|
|
465
|
-
interested: boolean;
|
|
466
|
-
subscribed: boolean;
|
|
467
|
-
interestCount: number;
|
|
468
|
-
};
|
|
469
453
|
type MyBipUpdateReactionsResponse = {
|
|
470
454
|
reactions: Array<MyBipUpdateReaction>;
|
|
471
455
|
};
|
|
@@ -1213,15 +1197,12 @@ type WalletListResponse = {
|
|
|
1213
1197
|
wallets: Array<WalletItem>;
|
|
1214
1198
|
};
|
|
1215
1199
|
type WalletChainList = Array<{
|
|
1216
|
-
id: "ethereum-mainnet" | "base-mainnet" | "ethereum-sepolia"
|
|
1200
|
+
id: "ethereum-mainnet" | "base-mainnet" | "ethereum-sepolia";
|
|
1217
1201
|
displayName: string;
|
|
1218
|
-
|
|
1219
|
-
nativeSymbol: string;
|
|
1220
|
-
chainId?: number;
|
|
1202
|
+
chainId: number;
|
|
1221
1203
|
}>;
|
|
1222
1204
|
type WalletItem = {
|
|
1223
|
-
address: string
|
|
1224
|
-
family: "evm" | "solana";
|
|
1205
|
+
address: string;
|
|
1225
1206
|
label: WalletLabel;
|
|
1226
1207
|
kind: "personal" | "app";
|
|
1227
1208
|
app: WalletAppLink;
|
|
@@ -1238,9 +1219,6 @@ type WalletBalances = {
|
|
|
1238
1219
|
"ethereum-mainnet"?: WalletChainBalance;
|
|
1239
1220
|
"base-mainnet"?: WalletChainBalance;
|
|
1240
1221
|
"ethereum-sepolia"?: WalletChainBalance;
|
|
1241
|
-
"base-sepolia"?: WalletChainBalance;
|
|
1242
|
-
"solana-mainnet"?: WalletChainBalance;
|
|
1243
|
-
"solana-devnet"?: WalletChainBalance;
|
|
1244
1222
|
};
|
|
1245
1223
|
type WalletChainBalance = {
|
|
1246
1224
|
native: string;
|
|
@@ -1250,14 +1228,12 @@ type WalletDelegationStatus = {
|
|
|
1250
1228
|
mode: WalletDelegationMode;
|
|
1251
1229
|
caps: WalletDelegationCaps;
|
|
1252
1230
|
policyId: string | null;
|
|
1253
|
-
slippageBps: DelegationSlippageBps;
|
|
1254
1231
|
};
|
|
1255
1232
|
type WalletDelegationMode = "infinite" | "custom" | "scoped" | null;
|
|
1256
1233
|
type WalletDelegationCaps = {
|
|
1257
1234
|
native: string;
|
|
1258
1235
|
usdc: string;
|
|
1259
1236
|
} | null;
|
|
1260
|
-
type DelegationSlippageBps = number | null;
|
|
1261
1237
|
type WalletLabelUpdateResponse = {
|
|
1262
1238
|
address: string;
|
|
1263
1239
|
label: WalletLabel;
|
|
@@ -1938,18 +1914,6 @@ type NotificationItem = {
|
|
|
1938
1914
|
payload: AppPageRejectedNotificationPayload;
|
|
1939
1915
|
read: boolean;
|
|
1940
1916
|
createdAt: string;
|
|
1941
|
-
} | {
|
|
1942
|
-
id: string;
|
|
1943
|
-
kind: "bip_update_published";
|
|
1944
|
-
payload: BipUpdatePublishedNotificationPayload;
|
|
1945
|
-
read: boolean;
|
|
1946
|
-
createdAt: string;
|
|
1947
|
-
} | {
|
|
1948
|
-
id: string;
|
|
1949
|
-
kind: "bip_now_playable";
|
|
1950
|
-
payload: BipNowPlayableNotificationPayload;
|
|
1951
|
-
read: boolean;
|
|
1952
|
-
createdAt: string;
|
|
1953
1917
|
} | {
|
|
1954
1918
|
id: string;
|
|
1955
1919
|
kind: "app_participant_invite";
|
|
@@ -1988,17 +1952,6 @@ type AppPageRejectedNotificationPayload = {
|
|
|
1988
1952
|
scope: "publish" | "changes" | "bip_publish";
|
|
1989
1953
|
notes: string;
|
|
1990
1954
|
};
|
|
1991
|
-
type BipUpdatePublishedNotificationPayload = {
|
|
1992
|
-
appId: string;
|
|
1993
|
-
appName: string;
|
|
1994
|
-
appSlug: string | null;
|
|
1995
|
-
updateId: string;
|
|
1996
|
-
};
|
|
1997
|
-
type BipNowPlayableNotificationPayload = {
|
|
1998
|
-
appId: string;
|
|
1999
|
-
appName: string;
|
|
2000
|
-
appSlug: string | null;
|
|
2001
|
-
};
|
|
2002
1955
|
type AppParticipantInviteNotificationPayload = {
|
|
2003
1956
|
appId: string;
|
|
2004
1957
|
appName: string;
|
|
@@ -2166,14 +2119,12 @@ type UpdateDeveloperApp = {
|
|
|
2166
2119
|
redirectUris?: Array<string>;
|
|
2167
2120
|
embedOrigins?: Array<EmbedOrigin>;
|
|
2168
2121
|
acceptedCurrencies?: AcceptedCurrencies;
|
|
2169
|
-
acceptedNetworks?: AcceptedNetworks;
|
|
2170
2122
|
paymentStatusWebhookUrl?: string | null;
|
|
2171
2123
|
paymentStatusWebhookUrlTest?: string | null;
|
|
2172
2124
|
};
|
|
2173
2125
|
type EmbedOrigin = string;
|
|
2174
2126
|
type AcceptedCurrencies = Array<PlatformCurrency>;
|
|
2175
2127
|
type PlatformCurrency = "eth" | "tron";
|
|
2176
|
-
type AcceptedNetworks = Array<PaymentNetwork> | null;
|
|
2177
2128
|
type DeveloperLogoUploadResponse = {
|
|
2178
2129
|
logoUrl: string | null;
|
|
2179
2130
|
};
|
|
@@ -2420,7 +2371,6 @@ type DeveloperAppItem = {
|
|
|
2420
2371
|
redirectUris: Array<string>;
|
|
2421
2372
|
embedOrigins: Array<EmbedOrigin>;
|
|
2422
2373
|
acceptedCurrencies: AcceptedCurrencies;
|
|
2423
|
-
acceptedNetworks: AcceptedNetworks;
|
|
2424
2374
|
payoutAddresses: Array<DeveloperAppPayoutAddressItem>;
|
|
2425
2375
|
keys: Array<DeveloperAppKeyItem>;
|
|
2426
2376
|
pendingProductionRequestId: string | null;
|
|
@@ -2654,7 +2604,6 @@ type AdminAppPageItem = {
|
|
|
2654
2604
|
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2655
2605
|
bipFirstPublishedAt: string | null;
|
|
2656
2606
|
bipHiddenAt: string | null;
|
|
2657
|
-
openReportCount: number;
|
|
2658
2607
|
};
|
|
2659
2608
|
type AdminAppPageStatusResponse = {
|
|
2660
2609
|
status: "draft" | "pending_review" | "published" | "hidden";
|
|
@@ -2683,22 +2632,6 @@ type AdminAppPageDiffField = {
|
|
|
2683
2632
|
type AdminAppPageBipStatusResponse = {
|
|
2684
2633
|
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2685
2634
|
};
|
|
2686
|
-
type AdminAppContentReportListResponse = {
|
|
2687
|
-
reports: Array<AdminAppContentReportItem>;
|
|
2688
|
-
total: number;
|
|
2689
|
-
hasMore: boolean;
|
|
2690
|
-
};
|
|
2691
|
-
type AdminAppContentReportItem = {
|
|
2692
|
-
id: string;
|
|
2693
|
-
category: AppContentReportCategory;
|
|
2694
|
-
details: string | null;
|
|
2695
|
-
status: AppContentReportStatus;
|
|
2696
|
-
acknowledgedAt: string | null;
|
|
2697
|
-
createdAt: string;
|
|
2698
|
-
appId: string;
|
|
2699
|
-
appName: string;
|
|
2700
|
-
appSlug: string | null;
|
|
2701
|
-
};
|
|
2702
2635
|
type PlatformFeesResponse = {
|
|
2703
2636
|
purchaseFeeBps: number;
|
|
2704
2637
|
stakeFeeBps: number;
|
|
@@ -3058,19 +2991,6 @@ declare function resolveAppeal(context: TransportContext, input: {
|
|
|
3058
2991
|
readonly body: AppealResolveRequest;
|
|
3059
2992
|
}): Promise<AppealResolveSignedResponse>;
|
|
3060
2993
|
//#endregion
|
|
3061
|
-
//#region src/admin/content-reports.d.ts
|
|
3062
|
-
declare function listAdminContentReports(context: TransportContext, input: {
|
|
3063
|
-
readonly bearer: string;
|
|
3064
|
-
readonly status?: "open" | "acknowledged" | "dismissed" | "all";
|
|
3065
|
-
readonly limit?: number;
|
|
3066
|
-
readonly offset?: number;
|
|
3067
|
-
}): Promise<AdminAppContentReportListResponse>;
|
|
3068
|
-
declare function triageAdminContentReport(context: TransportContext, input: {
|
|
3069
|
-
readonly bearer: string;
|
|
3070
|
-
readonly reportId: string;
|
|
3071
|
-
readonly status: "acknowledged" | "dismissed";
|
|
3072
|
-
}): Promise<AppContentReport>;
|
|
3073
|
-
//#endregion
|
|
3074
2994
|
//#region src/admin/developers.d.ts
|
|
3075
2995
|
declare function listDeveloperRequests(context: TransportContext, input: {
|
|
3076
2996
|
readonly bearer: string;
|
|
@@ -3274,24 +3194,6 @@ declare function uploadBipUpdateMedia(context: TransportContext, input: {
|
|
|
3274
3194
|
readonly filename: string;
|
|
3275
3195
|
readonly contentType: string;
|
|
3276
3196
|
}): Promise<BipUpdateMediaUploadResponse>;
|
|
3277
|
-
declare function getBipInterestCount(context: TransportContext, input: {
|
|
3278
|
-
readonly bearer?: string;
|
|
3279
|
-
readonly slug: string;
|
|
3280
|
-
}): Promise<BipInterestCountResponse>;
|
|
3281
|
-
declare function getMyBipEngagement(context: TransportContext, input: {
|
|
3282
|
-
readonly bearer: string;
|
|
3283
|
-
readonly slug: string;
|
|
3284
|
-
}): Promise<BipEngagementResponse>;
|
|
3285
|
-
declare function registerBipInterest(context: TransportContext, input: {
|
|
3286
|
-
readonly bearer: string;
|
|
3287
|
-
readonly slug: string;
|
|
3288
|
-
readonly interested: boolean;
|
|
3289
|
-
}): Promise<BipEngagementResponse>;
|
|
3290
|
-
declare function subscribeBipUpdates(context: TransportContext, input: {
|
|
3291
|
-
readonly bearer: string;
|
|
3292
|
-
readonly slug: string;
|
|
3293
|
-
readonly subscribed: boolean;
|
|
3294
|
-
}): Promise<BipEngagementResponse>;
|
|
3295
3197
|
//#endregion
|
|
3296
3198
|
//#region src/catalog/build-in-public.d.ts
|
|
3297
3199
|
declare function getBipDirectory(context: TransportContext, input: {
|
|
@@ -4600,4 +4502,4 @@ type CookieTokenStoreOptions = {
|
|
|
4600
4502
|
};
|
|
4601
4503
|
declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
|
|
4602
4504
|
//#endregion
|
|
4603
|
-
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, 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,
|
|
4505
|
+
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, 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, getBipPage, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getEarningsTimeseries, getIntentStatus, getLibrary, getMeStats, getMoonpayAvailability, getMyBipUpdateReactions, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronSecurity, hideAppPage, hideAppPageBip, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, 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, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, 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, tipGameReview, toTokenSet, unfollowUser, unhideAppPage, unhideAppPageBip, unlockDmKeyBackup, 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 };
|