@metatrongg/sdk 0.8.0-dev.e892968 → 0.8.0-dev.f7c6bfe

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.
@@ -334,9 +334,16 @@ type PublicAppPage = {
334
334
  chapters: AppPageChapters;
335
335
  links: AppPageLinks;
336
336
  studio: PublicAppPageStudio;
337
+ platforms: AppPagePlatforms;
338
+ gameType: AppPageGameType;
339
+ ageRating: AppPageAgeRating;
340
+ languages: AppPageLanguages;
341
+ releaseStatus: AppPageReleaseStatus;
342
+ paymentsMode: AppPagePaymentsMode;
337
343
  oauthScopes: Array<string>;
338
344
  chains: Array<string>;
339
345
  publishedAt: string;
346
+ updatedAt: string;
340
347
  };
341
348
  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
349
  type AppPageTagline = string;
@@ -359,12 +366,19 @@ type AppPageLink = {
359
366
  order: number;
360
367
  };
361
368
  type PublicAppPageStudio = {
369
+ ownerUserId: string | null;
362
370
  name: string | null;
363
371
  logoUrl: string | null;
364
372
  websiteUrl: string | null;
365
373
  xHandle: string | null;
366
374
  githubUrl: string | null;
367
375
  };
376
+ type AppPagePlatforms = Array<"web" | "ios" | "android" | "pc" | "playstation" | "xbox" | "switch">;
377
+ type AppPageGameType = "single_player" | "multiplayer" | "both" | null;
378
+ type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
379
+ type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
380
+ type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
381
+ type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
368
382
  type ReviewListResponse = {
369
383
  aggregate: ReviewAggregate;
370
384
  reviews: Array<Review>;
@@ -395,6 +409,8 @@ type Review = {
395
409
  type ReviewRating = number;
396
410
  type ReviewBody = string;
397
411
  type ReviewAuthor = {
412
+ userId: string;
413
+ handle: string | null;
398
414
  name: string | null;
399
415
  avatarUrl: string | null;
400
416
  };
@@ -526,6 +542,8 @@ type ActivityRow = ({
526
542
  } & ActivityRowTronPot) | ({
527
543
  kind: "tron_cashout";
528
544
  } & ActivityRowTronCashout) | ({
545
+ kind: "tron_transfer";
546
+ } & ActivityRowTronTransfer) | ({
529
547
  kind: "referral_earning";
530
548
  } & ActivityRowReferralEarning);
531
549
  type ActivityRowPayment = {
@@ -809,6 +827,20 @@ type ActivityRowTronCashout = {
809
827
  rejectionReason: string | null;
810
828
  settledAt: string | null;
811
829
  };
830
+ type ActivityRowTronTransfer = {
831
+ kind: "tron_transfer";
832
+ groupId: string | null;
833
+ id: string;
834
+ occurredAt: string;
835
+ role: "incoming" | "outgoing";
836
+ amountCents: number;
837
+ usdCents: number;
838
+ status: "settled";
839
+ counterpartyUserId: string | null;
840
+ counterpartyHandle: string | null;
841
+ counterpartyDisplayName: string | null;
842
+ note: string | null;
843
+ };
812
844
  type ActivityRowReferralEarning = {
813
845
  kind: "referral_earning";
814
846
  groupId: string | null;
@@ -874,7 +906,7 @@ type TronLedgerResponse = {
874
906
  };
875
907
  type TronLedgerEntry = {
876
908
  id: string;
877
- kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning";
909
+ kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning" | "peer_transfer";
878
910
  amountCents: number;
879
911
  currency: string;
880
912
  createdAt: string;
@@ -889,6 +921,21 @@ type TronDepositResponse = {
889
921
  type TronDepositRequest = {
890
922
  amountCents: number;
891
923
  };
924
+ type TronTransferResponse = {
925
+ status: "completed";
926
+ amountCents: number;
927
+ balanceCents: number;
928
+ recipient: {
929
+ userId: string;
930
+ handle: string | null;
931
+ displayName: string | null;
932
+ };
933
+ };
934
+ type TronTransferRequest = {
935
+ recipientUserId: string;
936
+ amountCents: number;
937
+ note?: string;
938
+ };
892
939
  type TronConnectOnboardingResponse = {
893
940
  url: string;
894
941
  };
@@ -1866,6 +1913,11 @@ type AppPageDraft = {
1866
1913
  gallery: AppPageGallery;
1867
1914
  chapters: AppPageChapters;
1868
1915
  links: AppPageLinks;
1916
+ platforms: AppPagePlatforms;
1917
+ gameType: AppPageGameType;
1918
+ ageRating: AppPageAgeRating;
1919
+ languages: AppPageLanguages;
1920
+ releaseStatus: AppPageReleaseStatus;
1869
1921
  firstPublishedAt: string | null;
1870
1922
  reviewedAt: string | null;
1871
1923
  reviewNotes: string | null;
@@ -1888,6 +1940,11 @@ type UpdateAppPage = {
1888
1940
  gallery?: AppPageGallery;
1889
1941
  chapters?: AppPageChapters;
1890
1942
  links?: AppPageLinks;
1943
+ platforms?: AppPagePlatforms;
1944
+ gameType?: AppPageGameType;
1945
+ ageRating?: AppPageAgeRating;
1946
+ languages?: AppPageLanguages;
1947
+ releaseStatus?: AppPageReleaseStatus;
1891
1948
  };
1892
1949
  type AppPageGalleryUploadResponse = {
1893
1950
  url: string;
@@ -3213,6 +3270,11 @@ declare function createTronDeposit(context: TransportContext, input: {
3213
3270
  readonly bearer: string;
3214
3271
  readonly body: TronDepositRequest;
3215
3272
  }): Promise<TronDepositResponse>;
3273
+ declare function createTronTransfer(context: TransportContext, input: {
3274
+ readonly bearer: string;
3275
+ readonly body: TronTransferRequest;
3276
+ readonly idempotencyKey?: string;
3277
+ }): Promise<TronTransferResponse>;
3216
3278
  declare function createTronConnectOnboarding(context: TransportContext, input: {
3217
3279
  readonly bearer: string;
3218
3280
  }): Promise<TronConnectOnboardingResponse>;
@@ -3652,4 +3714,4 @@ type CookieTokenStoreOptions = {
3652
3714
  };
3653
3715
  declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
3654
3716
  //#endregion
3655
- 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 };
3717
+ 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, 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 };