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

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