@metatrongg/sdk 0.8.0-dev.3dc9fcb → 0.8.0-dev.40e1ce9

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.
@@ -287,6 +287,13 @@ type OauthPaymentIntentCompleteSigned = {
287
287
  type OauthPaymentIntentCompleteOffline = {
288
288
  method: "offline";
289
289
  };
290
+ type OauthPaymentIntentSolanaPrepareResponse = {
291
+ transaction: string;
292
+ payer: string;
293
+ };
294
+ type OauthPaymentIntentSolanaCompleteRequest = {
295
+ signedTransaction: string;
296
+ };
290
297
  type ListAppPaymentAuthorizationsResponse = {
291
298
  authorizations: Array<AppPaymentAuthorizationItem>;
292
299
  };
@@ -353,6 +360,7 @@ type PublicAppPage = {
353
360
  paymentsMode: AppPagePaymentsMode;
354
361
  oauthScopes: Array<string>;
355
362
  chains: Array<string>;
363
+ devlog: boolean;
356
364
  publishedAt: string;
357
365
  updatedAt: string;
358
366
  };
@@ -418,6 +426,7 @@ type BipUpdateListResponse = {
418
426
  updates: Array<BipUpdate>;
419
427
  total: number;
420
428
  hasMore: boolean;
429
+ pinned: BipUpdate | null;
421
430
  };
422
431
  type BipUpdate = {
423
432
  id: string;
@@ -428,6 +437,7 @@ type BipUpdate = {
428
437
  commentCount: number;
429
438
  createdAt: string;
430
439
  updatedAt: string;
440
+ pinnedAt: string | null;
431
441
  };
432
442
  type BipUpdateBody = string;
433
443
  type BipUpdateAttachments = Array<BipUpdateAttachment>;
@@ -726,7 +736,11 @@ type ActivityRow = ({
726
736
  kind: "referral_earning";
727
737
  } & ActivityRowReferralEarning) | ({
728
738
  kind: "nft_charge";
729
- } & ActivityRowNftCharge);
739
+ } & ActivityRowNftCharge) | ({
740
+ kind: "solana_stake";
741
+ } & ActivityRowSolanaStake) | ({
742
+ kind: "solana_pot_leg";
743
+ } & ActivityRowSolanaPotLeg);
730
744
  type ActivityRowPayment = {
731
745
  kind: "payment";
732
746
  groupId: string | null;
@@ -1054,6 +1068,56 @@ type ActivityRowNftCharge = {
1054
1068
  counterpartyHandle: string | null;
1055
1069
  counterpartyDisplayName: string | null;
1056
1070
  };
1071
+ type ActivityRowSolanaStake = {
1072
+ kind: "solana_stake";
1073
+ groupId: string | null;
1074
+ id: string;
1075
+ chain: string;
1076
+ occurredAt: string;
1077
+ role: "outgoing" | "incoming";
1078
+ amount: string;
1079
+ token: string;
1080
+ potId: string | null;
1081
+ usdCents: number;
1082
+ status: "completed";
1083
+ txHash: string | null;
1084
+ app: {
1085
+ id: string;
1086
+ name: string;
1087
+ logoUrl: string | null;
1088
+ slug: string | null;
1089
+ bannerUrl: string | null;
1090
+ } | null;
1091
+ stakerUserId?: string | null;
1092
+ stakerHandle?: string | null;
1093
+ stakerDisplayName?: string | null;
1094
+ metadata?: PaymentMetadata | null;
1095
+ };
1096
+ type ActivityRowSolanaPotLeg = {
1097
+ kind: "solana_pot_leg";
1098
+ groupId: string | null;
1099
+ id: string;
1100
+ chain: string;
1101
+ occurredAt: string;
1102
+ role: "outgoing" | "incoming";
1103
+ beneficiary: string;
1104
+ potId: string | null;
1105
+ amount: string;
1106
+ token: string;
1107
+ usdCents: number | null;
1108
+ status: "settled";
1109
+ app: {
1110
+ id: string;
1111
+ name: string;
1112
+ logoUrl: string | null;
1113
+ slug: string | null;
1114
+ bannerUrl: string | null;
1115
+ } | null;
1116
+ txHash: string | null;
1117
+ recipientUserId?: string | null;
1118
+ recipientHandle?: string | null;
1119
+ recipientDisplayName?: string | null;
1120
+ };
1057
1121
  type OutstandingResponse = {
1058
1122
  rows: Array<OutstandingByToken>;
1059
1123
  };
@@ -2236,7 +2300,7 @@ type DeveloperAppWalletsResponse = {
2236
2300
  };
2237
2301
  type DeveloperAppWalletItem = {
2238
2302
  chain: string;
2239
- address: string;
2303
+ address: string | string;
2240
2304
  custody: "server" | null;
2241
2305
  walletId: string | null;
2242
2306
  autoSweepEnabled: boolean;
@@ -2257,7 +2321,7 @@ type DeveloperAppProvisionWalletResponse = {
2257
2321
  chain: string;
2258
2322
  custody: "server";
2259
2323
  walletId: string;
2260
- address: string;
2324
+ address: string | string;
2261
2325
  };
2262
2326
  type DeveloperAppWithdrawResponse = {
2263
2327
  appId: string;
@@ -2879,6 +2943,13 @@ type AppealResolveRequest = {
2879
2943
  decision: "refund" | "dismiss";
2880
2944
  notes?: string;
2881
2945
  };
2946
+ type PaymentRatesResponse = {
2947
+ asOf: string;
2948
+ ethUsd: number | null;
2949
+ solUsd: number | null;
2950
+ solLamportsPerCent: number | null;
2951
+ tronUsdPerToken: number;
2952
+ };
2882
2953
  type AppealFileResponse = {
2883
2954
  appealId: string;
2884
2955
  paymentId: string;
@@ -3267,6 +3338,16 @@ declare function deleteBipUpdate(context: TransportContext, input: {
3267
3338
  readonly appId: string;
3268
3339
  readonly updateId: string;
3269
3340
  }): Promise<DeleteBipUpdateResponse>;
3341
+ declare function pinBipUpdate(context: TransportContext, input: {
3342
+ readonly bearer: string;
3343
+ readonly appId: string;
3344
+ readonly updateId: string;
3345
+ }): Promise<BipUpdate>;
3346
+ declare function unpinBipUpdate(context: TransportContext, input: {
3347
+ readonly bearer: string;
3348
+ readonly appId: string;
3349
+ readonly updateId: string;
3350
+ }): Promise<BipUpdate>;
3270
3351
  declare function uploadBipUpdateMedia(context: TransportContext, input: {
3271
3352
  readonly bearer: string;
3272
3353
  readonly appId: string;
@@ -3298,6 +3379,7 @@ declare function getBipDirectory(context: TransportContext, input: {
3298
3379
  readonly bearer?: string;
3299
3380
  readonly genre?: string;
3300
3381
  readonly q?: string;
3382
+ readonly sort?: "newest" | "top";
3301
3383
  readonly before?: string;
3302
3384
  readonly limit?: number;
3303
3385
  }): Promise<LibraryListResponse>;
@@ -3318,6 +3400,7 @@ declare function getLibrary(context: TransportContext, input: {
3318
3400
  readonly bearer?: string;
3319
3401
  readonly genre?: string;
3320
3402
  readonly q?: string;
3403
+ readonly sort?: "newest" | "top";
3321
3404
  readonly before?: string;
3322
3405
  readonly limit?: number;
3323
3406
  }): Promise<LibraryListResponse>;
@@ -3470,6 +3553,9 @@ declare function getPaymentHistory(context: TransportContext, input: {
3470
3553
  readonly before?: string;
3471
3554
  }): Promise<PaymentHistoryResponse>;
3472
3555
  //#endregion
3556
+ //#region src/dashboard/rates.d.ts
3557
+ declare function getPaymentRates(context: TransportContext): Promise<PaymentRatesResponse>;
3558
+ //#endregion
3473
3559
  //#region src/developer/api-keys.d.ts
3474
3560
  declare function createDeveloperApiKey(context: TransportContext, input: {
3475
3561
  readonly bearer: string;
@@ -4096,6 +4182,15 @@ declare function denyPaymentIntent(context: TransportContext, input: {
4096
4182
  readonly bearer: string;
4097
4183
  readonly intentId: string;
4098
4184
  }): Promise<OauthPaymentIntentResolveResponse>;
4185
+ declare function preparePaymentIntentSolana(context: TransportContext, input: {
4186
+ readonly bearer: string;
4187
+ readonly intentId: string;
4188
+ }): Promise<OauthPaymentIntentSolanaPrepareResponse>;
4189
+ declare function completePaymentIntentSolana(context: TransportContext, input: {
4190
+ readonly bearer: string;
4191
+ readonly intentId: string;
4192
+ readonly body: OauthPaymentIntentSolanaCompleteRequest;
4193
+ }): Promise<OauthPaymentIntentResolveResponse>;
4099
4194
  //#endregion
4100
4195
  //#region src/payments/limits.d.ts
4101
4196
  declare function getPaymentLimits(context: TransportContext, input: {
@@ -4600,4 +4695,4 @@ type CookieTokenStoreOptions = {
4600
4695
  };
4601
4696
  declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
4602
4697
  //#endregion
4603
- 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, commentOnBipUpdate, commentOnGameReview, completePaymentIntent, consolidateDeveloperAppWallet, createBipUpdate, createConsoleLogger, createCookieTokenStore, createDelegation, createDeveloperApiKey, createDeveloperApp, createDeveloperAppMintPermit, createDeveloperVaultPermit, createDeveloperWithdrawPermit, createDirectThread, createInMemoryTokenStore, createInflightDedup, createNoopLogger, createRateLimiter, createReferralCode, createTronCashout, createTronConnectOnboarding, createTronDeposit, createTronTransfer, createTronTransferChallenge, decideFriendRequest, declineDeveloperInvite, defaultEndpoints, deleteAppPageBanner, deleteAppPageThumbnail, deleteAppPageThumbnailVideo, deleteAvatar, deleteBipUpdate, deleteBipUpdateComment, deleteDelegation, deleteDeveloperApp, deleteDeveloperAppLogo, deleteDeveloperProfileLogo, deleteDeveloperRequestLogo, deleteGameReviewComment, deleteGameReviewReply, deleteMessage, deleteMyGameReview, deleteThread, deleteThreadLogo, denyPaymentIntent, editMessage, exchangeAuthorizationCode, executeNftTransfer, fetchAuthorizationServerMetadata, fetchUserInfo, fileAppeal, fileAppealPotLeg, followUser, forceWithdrawVaultCustody, generatePkce, generateState, getActivity, getActivityGroup, getAdminAppealRoom, getAppFeeConfig, getAppPage, getAppPageChanges, getAppealRoom, getBipDirectory, getBipInterestCount, getBipPage, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getEarningsTimeseries, getIntentStatus, getLibrary, getMeStats, getMoonpayAvailability, getMyBipEngagement, getMyBipUpdateReactions, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronSecurity, hideAppPage, hideAppPageBip, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdminContentReports, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listBipUpdateComments, listBipUpdates, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppInventoryCollections, listDeveloperAppInventoryItems, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperBipUpdates, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listFriendsForApp, listGameReviewComments, listGameReviews, listInventory, listInventoryForApp, listInventoryMintPermits, listInventoryVaultPermits, listInventoryVaulted, listNotifications, listOauthInventoryVaulted, listPaymentAuthorizations, listSocials, listThreadMessages, listThreads, listTronCashoutQueue, listTronCashouts, listTronLedger, listUsers, listWalletManager, listWallets, markAllNotificationsRead, markThreadRead, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerBipInterest, registerDeveloperAppInventoryItem, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, resolveAppeal, reviewAppPage, reviewAppPageBip, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, sendFriendRequest, sendMessage, sendPresenceHeartbeat, setAppPageBip, setBipUpdateReaction, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, submitAppContentReport, submitAppPageBipForReview, submitAppPageForReview, submitDeveloperRequest, submitRelayedVaultPermit, subscribeBipUpdates, tipGameReview, toTokenSet, triageAdminContentReport, unfollowUser, unhideAppPage, unhideAppPageBip, unlockDmKeyBackup, unpinThread, unpublishAppPage, unpublishAppPageBip, updateAdminRole, updateAppFeeConfig, updateAppPage, updateBipUpdate, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadBipUpdateMedia, uploadDeveloperAppInventoryItemBanner, uploadDeveloperAppInventoryItemImage, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
4698
+ 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, commentOnBipUpdate, commentOnGameReview, completePaymentIntent, completePaymentIntentSolana, consolidateDeveloperAppWallet, createBipUpdate, createConsoleLogger, createCookieTokenStore, createDelegation, createDeveloperApiKey, createDeveloperApp, createDeveloperAppMintPermit, createDeveloperVaultPermit, createDeveloperWithdrawPermit, createDirectThread, createInMemoryTokenStore, createInflightDedup, createNoopLogger, createRateLimiter, createReferralCode, createTronCashout, createTronConnectOnboarding, createTronDeposit, createTronTransfer, createTronTransferChallenge, decideFriendRequest, declineDeveloperInvite, defaultEndpoints, deleteAppPageBanner, deleteAppPageThumbnail, deleteAppPageThumbnailVideo, deleteAvatar, deleteBipUpdate, deleteBipUpdateComment, deleteDelegation, deleteDeveloperApp, deleteDeveloperAppLogo, deleteDeveloperProfileLogo, deleteDeveloperRequestLogo, deleteGameReviewComment, deleteGameReviewReply, deleteMessage, deleteMyGameReview, deleteThread, deleteThreadLogo, denyPaymentIntent, editMessage, exchangeAuthorizationCode, executeNftTransfer, fetchAuthorizationServerMetadata, fetchUserInfo, fileAppeal, fileAppealPotLeg, followUser, forceWithdrawVaultCustody, generatePkce, generateState, getActivity, getActivityGroup, getAdminAppealRoom, getAppFeeConfig, getAppPage, getAppPageChanges, getAppealRoom, getBipDirectory, getBipInterestCount, getBipPage, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getEarningsTimeseries, getIntentStatus, getLibrary, getMeStats, getMoonpayAvailability, getMyBipEngagement, getMyBipUpdateReactions, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPaymentRates, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronSecurity, hideAppPage, hideAppPageBip, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdminContentReports, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listBipUpdateComments, listBipUpdates, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppInventoryCollections, listDeveloperAppInventoryItems, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperBipUpdates, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listFriendsForApp, listGameReviewComments, listGameReviews, listInventory, listInventoryForApp, listInventoryMintPermits, listInventoryVaultPermits, listInventoryVaulted, listNotifications, listOauthInventoryVaulted, listPaymentAuthorizations, listSocials, listThreadMessages, listThreads, listTronCashoutQueue, listTronCashouts, listTronLedger, listUsers, listWalletManager, listWallets, markAllNotificationsRead, markThreadRead, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, pinBipUpdate, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, preparePaymentIntentSolana, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerBipInterest, registerDeveloperAppInventoryItem, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, resolveAppeal, reviewAppPage, reviewAppPageBip, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, sendFriendRequest, sendMessage, sendPresenceHeartbeat, setAppPageBip, setBipUpdateReaction, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, submitAppContentReport, submitAppPageBipForReview, submitAppPageForReview, submitDeveloperRequest, submitRelayedVaultPermit, subscribeBipUpdates, tipGameReview, toTokenSet, triageAdminContentReport, unfollowUser, unhideAppPage, unhideAppPageBip, unlockDmKeyBackup, unpinBipUpdate, unpinThread, unpublishAppPage, unpublishAppPageBip, updateAdminRole, updateAppFeeConfig, updateAppPage, updateBipUpdate, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadBipUpdateMedia, uploadDeveloperAppInventoryItemBanner, uploadDeveloperAppInventoryItemImage, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };