@metatrongg/sdk 0.8.0-dev.a548c7d → 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 = {
@@ -809,6 +822,20 @@ type ActivityRowTronCashout = {
809
822
  rejectionReason: string | null;
810
823
  settledAt: string | null;
811
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
+ };
812
839
  type ActivityRowReferralEarning = {
813
840
  kind: "referral_earning";
814
841
  groupId: string | null;
@@ -874,7 +901,7 @@ type TronLedgerResponse = {
874
901
  };
875
902
  type TronLedgerEntry = {
876
903
  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";
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";
878
905
  amountCents: number;
879
906
  currency: string;
880
907
  createdAt: string;
@@ -889,6 +916,21 @@ type TronDepositResponse = {
889
916
  type TronDepositRequest = {
890
917
  amountCents: number;
891
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
+ };
892
934
  type TronConnectOnboardingResponse = {
893
935
  url: string;
894
936
  };
@@ -1510,7 +1552,7 @@ type ProfileRecentReview = {
1510
1552
  appId: string;
1511
1553
  appName: string;
1512
1554
  appLogoUrl: string | null;
1513
- rating: number;
1555
+ recommended: boolean;
1514
1556
  body: string;
1515
1557
  createdAt: string;
1516
1558
  };
@@ -1866,6 +1908,11 @@ type AppPageDraft = {
1866
1908
  gallery: AppPageGallery;
1867
1909
  chapters: AppPageChapters;
1868
1910
  links: AppPageLinks;
1911
+ platforms: AppPagePlatforms;
1912
+ gameType: AppPageGameType;
1913
+ ageRating: AppPageAgeRating;
1914
+ languages: AppPageLanguages;
1915
+ releaseStatus: AppPageReleaseStatus;
1869
1916
  firstPublishedAt: string | null;
1870
1917
  reviewedAt: string | null;
1871
1918
  reviewNotes: string | null;
@@ -1888,6 +1935,11 @@ type UpdateAppPage = {
1888
1935
  gallery?: AppPageGallery;
1889
1936
  chapters?: AppPageChapters;
1890
1937
  links?: AppPageLinks;
1938
+ platforms?: AppPagePlatforms;
1939
+ gameType?: AppPageGameType;
1940
+ ageRating?: AppPageAgeRating;
1941
+ languages?: AppPageLanguages;
1942
+ releaseStatus?: AppPageReleaseStatus;
1891
1943
  };
1892
1944
  type AppPageGalleryUploadResponse = {
1893
1945
  url: string;
@@ -3213,6 +3265,11 @@ declare function createTronDeposit(context: TransportContext, input: {
3213
3265
  readonly bearer: string;
3214
3266
  readonly body: TronDepositRequest;
3215
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>;
3216
3273
  declare function createTronConnectOnboarding(context: TransportContext, input: {
3217
3274
  readonly bearer: string;
3218
3275
  }): Promise<TronConnectOnboardingResponse>;
@@ -3652,4 +3709,4 @@ type CookieTokenStoreOptions = {
3652
3709
  };
3653
3710
  declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
3654
3711
  //#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 };
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 };