@metatrongg/sdk 0.8.0-dev.a5ae117 → 0.8.0-dev.a70a494

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>;
@@ -372,29 +386,26 @@ type ReviewListResponse = {
372
386
  hasMore: boolean;
373
387
  };
374
388
  type ReviewAggregate = {
375
- average: number | null;
376
389
  count: number;
377
- distribution: ReviewDistribution;
378
- };
379
- type ReviewDistribution = {
380
- 1: number;
381
- 2: number;
382
- 3: number;
383
- 4: number;
384
- 5: number;
390
+ recommendedCount: number;
391
+ recommendedPct: number | null;
392
+ summaryLabel: ReviewSummaryLabel;
385
393
  };
394
+ type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
386
395
  type Review = {
387
396
  id: string;
388
- rating: ReviewRating;
397
+ recommended: ReviewRecommended;
389
398
  body: ReviewBody;
390
399
  author: ReviewAuthor;
391
400
  developerReply: ReviewReply;
392
401
  createdAt: string;
393
402
  updatedAt: string;
394
403
  };
395
- type ReviewRating = number;
404
+ type ReviewRecommended = boolean;
396
405
  type ReviewBody = string;
397
406
  type ReviewAuthor = {
407
+ userId: string;
408
+ handle: string | null;
398
409
  name: string | null;
399
410
  avatarUrl: string | null;
400
411
  };
@@ -403,7 +414,7 @@ type ReviewReply = {
403
414
  repliedAt: string;
404
415
  } | null;
405
416
  type ReviewReplyBody = string;
406
- type ReviewSort = "newest" | "oldest" | "highest" | "lowest";
417
+ type ReviewSort = "newest" | "oldest";
407
418
  type MyReviewResponse = {
408
419
  eligible: boolean;
409
420
  eligibleVia: ReviewEligibilityReason;
@@ -413,13 +424,13 @@ type MyReviewResponse = {
413
424
  type ReviewEligibilityReason = "payment" | "reward" | null;
414
425
  type OwnReview = {
415
426
  id: string;
416
- rating: ReviewRating;
427
+ recommended: ReviewRecommended;
417
428
  body: ReviewBody;
418
429
  createdAt: string;
419
430
  updatedAt: string;
420
431
  } | null;
421
432
  type UpsertReviewRequest = {
422
- rating: ReviewRating;
433
+ recommended: ReviewRecommended;
423
434
  body: ReviewBody;
424
435
  };
425
436
  type ReviewReplyResponse = {
@@ -526,6 +537,8 @@ type ActivityRow = ({
526
537
  } & ActivityRowTronPot) | ({
527
538
  kind: "tron_cashout";
528
539
  } & ActivityRowTronCashout) | ({
540
+ kind: "tron_transfer";
541
+ } & ActivityRowTronTransfer) | ({
529
542
  kind: "referral_earning";
530
543
  } & ActivityRowReferralEarning);
531
544
  type ActivityRowPayment = {
@@ -773,6 +786,8 @@ type ActivityRowTronPot = {
773
786
  role: "incoming" | "outgoing";
774
787
  leg: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
775
788
  amountCents: number;
789
+ usdCents: number;
790
+ status: "settled";
776
791
  app: {
777
792
  id: string;
778
793
  name: string;
@@ -780,8 +795,16 @@ type ActivityRowTronPot = {
780
795
  slug: string | null;
781
796
  bannerUrl: string | null;
782
797
  } | null;
798
+ involvedUsers?: Array<ActivityTronInvolvedUser> | null;
783
799
  metadata?: PaymentMetadata | null;
784
800
  };
801
+ type ActivityTronInvolvedUser = {
802
+ userId: string;
803
+ handle: string | null;
804
+ displayName: string | null;
805
+ role: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
806
+ amountCents: number;
807
+ };
785
808
  type ActivityRowTronCashout = {
786
809
  kind: "tron_cashout";
787
810
  groupId: string | null;
@@ -799,6 +822,20 @@ type ActivityRowTronCashout = {
799
822
  rejectionReason: string | null;
800
823
  settledAt: string | null;
801
824
  };
825
+ type ActivityRowTronTransfer = {
826
+ kind: "tron_transfer";
827
+ groupId: string | null;
828
+ id: string;
829
+ occurredAt: string;
830
+ role: "incoming" | "outgoing";
831
+ amountCents: number;
832
+ usdCents: number;
833
+ status: "settled";
834
+ counterpartyUserId: string | null;
835
+ counterpartyHandle: string | null;
836
+ counterpartyDisplayName: string | null;
837
+ note: string | null;
838
+ };
802
839
  type ActivityRowReferralEarning = {
803
840
  kind: "referral_earning";
804
841
  groupId: string | null;
@@ -864,7 +901,7 @@ type TronLedgerResponse = {
864
901
  };
865
902
  type TronLedgerEntry = {
866
903
  id: string;
867
- kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning";
904
+ kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning" | "peer_transfer";
868
905
  amountCents: number;
869
906
  currency: string;
870
907
  createdAt: string;
@@ -879,6 +916,21 @@ type TronDepositResponse = {
879
916
  type TronDepositRequest = {
880
917
  amountCents: number;
881
918
  };
919
+ type TronTransferResponse = {
920
+ status: "completed";
921
+ amountCents: number;
922
+ balanceCents: number;
923
+ recipient: {
924
+ userId: string;
925
+ handle: string | null;
926
+ displayName: string | null;
927
+ };
928
+ };
929
+ type TronTransferRequest = {
930
+ recipientUserId: string;
931
+ amountCents: number;
932
+ note?: string;
933
+ };
882
934
  type TronConnectOnboardingResponse = {
883
935
  url: string;
884
936
  };
@@ -1500,7 +1552,7 @@ type ProfileRecentReview = {
1500
1552
  appId: string;
1501
1553
  appName: string;
1502
1554
  appLogoUrl: string | null;
1503
- rating: number;
1555
+ recommended: boolean;
1504
1556
  body: string;
1505
1557
  createdAt: string;
1506
1558
  };
@@ -1856,6 +1908,11 @@ type AppPageDraft = {
1856
1908
  gallery: AppPageGallery;
1857
1909
  chapters: AppPageChapters;
1858
1910
  links: AppPageLinks;
1911
+ platforms: AppPagePlatforms;
1912
+ gameType: AppPageGameType;
1913
+ ageRating: AppPageAgeRating;
1914
+ languages: AppPageLanguages;
1915
+ releaseStatus: AppPageReleaseStatus;
1859
1916
  firstPublishedAt: string | null;
1860
1917
  reviewedAt: string | null;
1861
1918
  reviewNotes: string | null;
@@ -1878,6 +1935,11 @@ type UpdateAppPage = {
1878
1935
  gallery?: AppPageGallery;
1879
1936
  chapters?: AppPageChapters;
1880
1937
  links?: AppPageLinks;
1938
+ platforms?: AppPagePlatforms;
1939
+ gameType?: AppPageGameType;
1940
+ ageRating?: AppPageAgeRating;
1941
+ languages?: AppPageLanguages;
1942
+ releaseStatus?: AppPageReleaseStatus;
1881
1943
  };
1882
1944
  type AppPageGalleryUploadResponse = {
1883
1945
  url: string;
@@ -3203,6 +3265,11 @@ declare function createTronDeposit(context: TransportContext, input: {
3203
3265
  readonly bearer: string;
3204
3266
  readonly body: TronDepositRequest;
3205
3267
  }): Promise<TronDepositResponse>;
3268
+ declare function createTronTransfer(context: TransportContext, input: {
3269
+ readonly bearer: string;
3270
+ readonly body: TronTransferRequest;
3271
+ readonly idempotencyKey?: string;
3272
+ }): Promise<TronTransferResponse>;
3206
3273
  declare function createTronConnectOnboarding(context: TransportContext, input: {
3207
3274
  readonly bearer: string;
3208
3275
  }): Promise<TronConnectOnboardingResponse>;
@@ -3642,4 +3709,4 @@ type CookieTokenStoreOptions = {
3642
3709
  };
3643
3710
  declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
3644
3711
  //#endregion
3645
- 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 };
3712
+ 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 };