@metatrongg/sdk 0.8.0-dev.f0f6902 → 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.
@@ -386,49 +386,40 @@ type ReviewListResponse = {
386
386
  hasMore: boolean;
387
387
  };
388
388
  type ReviewAggregate = {
389
+ average: number | null;
389
390
  count: number;
390
- recommendedCount: number;
391
- recommendedPct: number | null;
392
- summaryLabel: ReviewSummaryLabel;
391
+ distribution: ReviewDistribution;
392
+ };
393
+ type ReviewDistribution = {
394
+ 1: number;
395
+ 2: number;
396
+ 3: number;
397
+ 4: number;
398
+ 5: number;
393
399
  };
394
- type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
395
400
  type Review = {
396
401
  id: string;
397
- recommended: ReviewRecommended;
402
+ rating: ReviewRating;
398
403
  body: ReviewBody;
399
- reactions: ReviewReactionCounts;
400
- tippedCents: number;
401
- commentCount: number;
402
404
  author: ReviewAuthor;
403
- authorStats: ReviewerStats;
404
405
  developerReply: ReviewReply;
405
406
  createdAt: string;
406
407
  updatedAt: string;
407
408
  };
408
- type ReviewRecommended = boolean;
409
+ type ReviewRating = number;
409
410
  type ReviewBody = string;
410
- type ReviewReactionCounts = {
411
- helpful: number;
412
- unhelpful: number;
413
- funny: number;
414
- };
415
411
  type ReviewAuthor = {
416
412
  userId: string;
417
413
  handle: string | null;
418
414
  name: string | null;
419
415
  avatarUrl: string | null;
420
416
  };
421
- type ReviewerStats = {
422
- playtimeSecondsThisGame: number;
423
- gamesPlayed: number;
424
- reviewsWritten: number;
425
- };
426
417
  type ReviewReply = {
427
418
  body: ReviewReplyBody;
428
419
  repliedAt: string;
429
420
  } | null;
430
421
  type ReviewReplyBody = string;
431
- type ReviewSort = "newest" | "oldest" | "helpful";
422
+ type ReviewSort = "newest" | "oldest" | "highest" | "lowest";
432
423
  type MyReviewResponse = {
433
424
  eligible: boolean;
434
425
  eligibleVia: ReviewEligibilityReason;
@@ -438,65 +429,15 @@ type MyReviewResponse = {
438
429
  type ReviewEligibilityReason = "payment" | "reward" | null;
439
430
  type OwnReview = {
440
431
  id: string;
441
- recommended: ReviewRecommended;
432
+ rating: ReviewRating;
442
433
  body: ReviewBody;
443
434
  createdAt: string;
444
435
  updatedAt: string;
445
436
  } | null;
446
437
  type UpsertReviewRequest = {
447
- recommended: ReviewRecommended;
438
+ rating: ReviewRating;
448
439
  body: ReviewBody;
449
440
  };
450
- type MyReviewReactionsResponse = {
451
- reactions: Array<MyReviewReaction>;
452
- };
453
- type MyReviewReaction = {
454
- reviewId: string;
455
- vote: ReviewVote;
456
- funny: boolean;
457
- };
458
- type ReviewVote = "helpful" | "unhelpful" | null;
459
- type SetReviewReactionResponse = {
460
- reactions: ReviewReactionCounts;
461
- vote: ReviewVote;
462
- funny: boolean;
463
- };
464
- type SetReviewReactionRequest = {
465
- vote: ReviewVote;
466
- funny: boolean;
467
- };
468
- type TipReviewResponse = {
469
- status: "completed";
470
- amountCents: number;
471
- balanceCents: number;
472
- tippedCents: number;
473
- };
474
- type TipReviewRequest = {
475
- amountCents: number;
476
- note?: string;
477
- };
478
- type ReviewCommentListResponse = {
479
- comments: Array<ReviewComment>;
480
- total: number;
481
- hasMore: boolean;
482
- };
483
- type ReviewComment = {
484
- id: string;
485
- body: ReviewCommentBody;
486
- author: ReviewAuthor;
487
- createdAt: string;
488
- };
489
- type ReviewCommentBody = string;
490
- type CreateReviewCommentResponse = {
491
- comment: ReviewComment;
492
- commentCount: number;
493
- };
494
- type CreateReviewCommentRequest = {
495
- body: ReviewCommentBody;
496
- };
497
- type DeleteReviewCommentResponse = {
498
- commentCount: number;
499
- };
500
441
  type ReviewReplyResponse = {
501
442
  developerReply: ReviewReply;
502
443
  };
@@ -1616,7 +1557,7 @@ type ProfileRecentReview = {
1616
1557
  appId: string;
1617
1558
  appName: string;
1618
1559
  appLogoUrl: string | null;
1619
- recommended: boolean;
1560
+ rating: number;
1620
1561
  body: string;
1621
1562
  createdAt: string;
1622
1563
  };
@@ -2693,41 +2634,6 @@ declare function deleteMyGameReview(context: TransportContext, input: {
2693
2634
  readonly slug: string;
2694
2635
  readonly bearer: string;
2695
2636
  }): Promise<MyReviewResponse>;
2696
- declare function getMyGameReviewReactions(context: TransportContext, input: {
2697
- readonly slug: string;
2698
- readonly bearer: string;
2699
- }): Promise<MyReviewReactionsResponse>;
2700
- declare function setMyGameReviewReaction(context: TransportContext, input: {
2701
- readonly slug: string;
2702
- readonly reviewId: string;
2703
- readonly bearer: string;
2704
- readonly reaction: SetReviewReactionRequest;
2705
- }): Promise<SetReviewReactionResponse>;
2706
- declare function tipGameReview(context: TransportContext, input: {
2707
- readonly slug: string;
2708
- readonly reviewId: string;
2709
- readonly bearer: string;
2710
- readonly tip: TipReviewRequest;
2711
- readonly idempotencyKey?: string;
2712
- }): Promise<TipReviewResponse>;
2713
- declare function listGameReviewComments(context: TransportContext, input: {
2714
- readonly slug: string;
2715
- readonly reviewId: string;
2716
- readonly bearer?: string;
2717
- readonly limit?: number;
2718
- readonly offset?: number;
2719
- }): Promise<ReviewCommentListResponse>;
2720
- declare function commentOnGameReview(context: TransportContext, input: {
2721
- readonly slug: string;
2722
- readonly reviewId: string;
2723
- readonly bearer: string;
2724
- readonly comment: CreateReviewCommentRequest;
2725
- }): Promise<CreateReviewCommentResponse>;
2726
- declare function deleteGameReviewComment(context: TransportContext, input: {
2727
- readonly slug: string;
2728
- readonly commentId: string;
2729
- readonly bearer: string;
2730
- }): Promise<DeleteReviewCommentResponse>;
2731
2637
  declare function replyToGameReview(context: TransportContext, input: {
2732
2638
  readonly appId: string;
2733
2639
  readonly reviewId: string;
@@ -3808,4 +3714,4 @@ type CookieTokenStoreOptions = {
3808
3714
  };
3809
3715
  declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
3810
3716
  //#endregion
3811
- 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, commentOnGameReview, 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, deleteGameReviewComment, 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, getMyGameReviewReactions, 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, listGameReviewComments, 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, setMyGameReviewReaction, setProcessorWhitelist, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signPaymentIntent, submitAppContentReport, submitAppPageForReview, submitDeveloperRequest, tipGameReview, 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 };