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

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.
@@ -114,7 +114,7 @@ type Username = string;
114
114
  type DisplayName = string | null;
115
115
  type Bio = string | null;
116
116
  type WebsiteUrl = string | null;
117
- type BannerVariant = "yellow" | "green" | "blue" | "white" | "black";
117
+ type BannerVariant = "yellow" | "green" | "blue" | "white" | "black" | "red";
118
118
  type AdminRole = "super-admin" | "admin" | "read-only" | null;
119
119
  type PresenceStatusMode = "auto" | "online" | "offline";
120
120
  type PlatformEnvironment = "development" | "production";
@@ -129,7 +129,7 @@ type OauthAuthorizationServerMetadata = {
129
129
  grant_types_supported: Array<"authorization_code" | "refresh_token" | "client_credentials">;
130
130
  code_challenge_methods_supported: Array<"S256">;
131
131
  token_endpoint_auth_methods_supported: Array<"client_secret_basic" | "client_secret_post" | "none">;
132
- scopes_supported: Array<"openid" | "profile" | "payments:charge" | "inventory:read" | "developer:read" | "developer:apps" | "developer:pages">;
132
+ scopes_supported: Array<"openid" | "profile" | "payments:charge" | "inventory:read" | "social:read" | "developer:read" | "developer:apps" | "developer:pages">;
133
133
  };
134
134
  type OauthClientRegistrationResponse = {
135
135
  client_id: string;
@@ -169,7 +169,9 @@ type OauthErrorResponse = {
169
169
  type OauthUserInfoResponse = {
170
170
  sub: string;
171
171
  name: string | null;
172
+ preferred_username: string | null;
172
173
  picture: string | null;
174
+ wallet_address: string | null;
173
175
  };
174
176
  type OauthPaymentChargeResponse = ({
175
177
  status: "completed";
@@ -288,7 +290,16 @@ type OauthPaymentIntentContext = {
288
290
  studioXHandle: string | null;
289
291
  };
290
292
  } | null;
293
+ environment: "development" | "production";
294
+ onramp?: {
295
+ kind: "bridge";
296
+ from: PaymentNetwork;
297
+ to: PaymentNetwork;
298
+ } | {
299
+ kind: "insufficient";
300
+ };
291
301
  };
302
+ type PaymentNetwork = "ethereum" | "base" | "solana";
292
303
  type OauthPaymentIntentSignResponse = {
293
304
  chain: string;
294
305
  chainId: number;
@@ -421,6 +432,119 @@ type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
421
432
  type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
422
433
  type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
423
434
  type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
435
+ type PublicBipPage = {
436
+ appId: string;
437
+ slug: AppPageSlug;
438
+ appName: string;
439
+ appLogoUrl: string | null;
440
+ categories: AppPageCategories;
441
+ tagline: AppPageTagline;
442
+ bannerUrl: string | null;
443
+ discordUrl: string | null;
444
+ twitterUrl: string | null;
445
+ redditUrl: string | null;
446
+ telegramUrl: string | null;
447
+ gallery: AppPageGallery;
448
+ chapters: AppPageChapters;
449
+ links: AppPageLinks;
450
+ studio: PublicAppPageStudio;
451
+ platforms: AppPagePlatforms;
452
+ gameType: AppPageGameType;
453
+ ageRating: AppPageAgeRating;
454
+ languages: AppPageLanguages;
455
+ releaseStatus: AppPageReleaseStatus;
456
+ publishedAt: string;
457
+ updatedAt: string;
458
+ };
459
+ type BipUpdateListResponse = {
460
+ updates: Array<BipUpdate>;
461
+ total: number;
462
+ hasMore: boolean;
463
+ };
464
+ type BipUpdate = {
465
+ id: string;
466
+ appId: string;
467
+ body: BipUpdateBody;
468
+ attachments: BipUpdateAttachments;
469
+ reactions: BipUpdateReactionCounts;
470
+ commentCount: number;
471
+ createdAt: string;
472
+ updatedAt: string;
473
+ };
474
+ type BipUpdateBody = string;
475
+ type BipUpdateAttachments = Array<BipUpdateAttachment>;
476
+ type BipUpdateAttachment = {
477
+ url: string;
478
+ kind: "image" | "video";
479
+ order: number;
480
+ };
481
+ type BipUpdateReactionCounts = {
482
+ up: number;
483
+ down: number;
484
+ };
485
+ type BipUpdateCommentListResponse = {
486
+ comments: Array<BipUpdateComment>;
487
+ total: number;
488
+ hasMore: boolean;
489
+ };
490
+ type BipUpdateComment = {
491
+ id: string;
492
+ body: BipUpdateCommentBody;
493
+ author: ReviewAuthor;
494
+ createdAt: string;
495
+ };
496
+ type BipUpdateCommentBody = string;
497
+ type ReviewAuthor = {
498
+ userId: string;
499
+ handle: string | null;
500
+ name: string | null;
501
+ avatarUrl: string | null;
502
+ };
503
+ type BipInterestCountResponse = {
504
+ interestCount: number;
505
+ };
506
+ type BipEngagementResponse = {
507
+ interested: boolean;
508
+ subscribed: boolean;
509
+ interestCount: number;
510
+ };
511
+ type MyBipUpdateReactionsResponse = {
512
+ reactions: Array<MyBipUpdateReaction>;
513
+ };
514
+ type MyBipUpdateReaction = {
515
+ updateId: string;
516
+ vote: "up" | "down";
517
+ };
518
+ type SetBipUpdateReactionResponse = {
519
+ reactions: BipUpdateReactionCounts;
520
+ vote: BipUpdateVote;
521
+ };
522
+ type BipUpdateVote = "up" | "down" | null;
523
+ type SetBipUpdateReactionRequest = {
524
+ vote: BipUpdateVote;
525
+ };
526
+ type CreateBipUpdateCommentResponse = {
527
+ comment: BipUpdateComment;
528
+ commentCount: number;
529
+ };
530
+ type DeleteBipUpdateCommentResponse = {
531
+ commentCount: number;
532
+ };
533
+ type CreateBipUpdateRequest = {
534
+ body: BipUpdateBody;
535
+ attachments?: BipUpdateAttachments;
536
+ };
537
+ type UpdateBipUpdateRequest = {
538
+ body?: BipUpdateBody;
539
+ attachments?: BipUpdateAttachments;
540
+ };
541
+ type DeleteBipUpdateResponse = {
542
+ deleted: true;
543
+ };
544
+ type BipUpdateMediaUploadResponse = {
545
+ url: string;
546
+ kind: "image" | "video";
547
+ };
424
548
  type ReviewListResponse = {
425
549
  aggregate: ReviewAggregate;
426
550
  reviews: Array<Review>;
@@ -442,6 +566,7 @@ type Review = {
442
566
  tippedCents: number;
443
567
  commentCount: number;
444
568
  author: ReviewAuthor;
569
+ authorStats: ReviewerStats;
445
570
  developerReply: ReviewReply;
446
571
  createdAt: string;
447
572
  updatedAt: string;
@@ -453,11 +578,10 @@ type ReviewReactionCounts = {
453
578
  unhelpful: number;
454
579
  funny: number;
455
580
  };
456
- type ReviewAuthor = {
457
- userId: string;
458
- handle: string | null;
459
- name: string | null;
460
- avatarUrl: string | null;
581
+ type ReviewerStats = {
582
+ playtimeSecondsThisGame: number;
583
+ gamesPlayed: number;
584
+ reviewsWritten: number;
461
585
  };
462
586
  type ReviewReply = {
463
587
  body: ReviewReplyBody;
@@ -510,6 +634,8 @@ type TipReviewResponse = {
510
634
  type TipReviewRequest = {
511
635
  amountCents: number;
512
636
  note?: string;
637
+ challengeId?: string;
638
+ signature?: string;
513
639
  };
514
640
  type ReviewCommentListResponse = {
515
641
  comments: Array<ReviewComment>;
@@ -640,7 +766,9 @@ type ActivityRow = ({
640
766
  kind: "tron_transfer";
641
767
  } & ActivityRowTronTransfer) | ({
642
768
  kind: "referral_earning";
643
- } & ActivityRowReferralEarning);
769
+ } & ActivityRowReferralEarning) | ({
770
+ kind: "nft_charge";
771
+ } & ActivityRowNftCharge);
644
772
  type ActivityRowPayment = {
645
773
  kind: "payment";
646
774
  groupId: string | null;
@@ -952,6 +1080,22 @@ type ActivityRowReferralEarning = {
952
1080
  logIndex: number;
953
1081
  usdCents: number | null;
954
1082
  };
1083
+ type ActivityRowNftCharge = {
1084
+ kind: "nft_charge";
1085
+ groupId: string | null;
1086
+ id: string;
1087
+ occurredAt: string;
1088
+ role: "outgoing";
1089
+ chargeKind: "registration" | "mint" | "transfer_gas";
1090
+ amountCents: number;
1091
+ usdCents: number;
1092
+ status: "settled";
1093
+ collectionAddress: string | null;
1094
+ tokenId: string | null;
1095
+ counterpartyUserId: string | null;
1096
+ counterpartyHandle: string | null;
1097
+ counterpartyDisplayName: string | null;
1098
+ };
955
1099
  type OutstandingResponse = {
956
1100
  rows: Array<OutstandingByToken>;
957
1101
  };
@@ -1001,7 +1145,7 @@ type TronLedgerResponse = {
1001
1145
  };
1002
1146
  type TronLedgerEntry = {
1003
1147
  id: string;
1004
- kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning" | "peer_transfer";
1148
+ kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning" | "peer_transfer" | "nft_registration" | "nft_mint" | "nft_gas";
1005
1149
  amountCents: number;
1006
1150
  currency: string;
1007
1151
  createdAt: string;
@@ -1030,6 +1174,30 @@ type TronTransferRequest = {
1030
1174
  recipientUserId: string;
1031
1175
  amountCents: number;
1032
1176
  note?: string;
1177
+ challengeId?: string;
1178
+ signature?: string;
1179
+ threadId?: string;
1180
+ };
1181
+ type TronSecuritySetting = {
1182
+ requireSignature: boolean;
1183
+ };
1184
+ type TronTransferChallengeResponse = ({
1185
+ required: false;
1186
+ } & TronTransferChallengeNotRequired) | ({
1187
+ required: true;
1188
+ } & TronTransferChallengeRequired);
1189
+ type TronTransferChallengeNotRequired = {
1190
+ required: false;
1191
+ };
1192
+ type TronTransferChallengeRequired = {
1193
+ required: true;
1194
+ challengeId: string;
1195
+ message: string;
1196
+ expiresAt: string;
1197
+ };
1198
+ type TronTransferChallengeRequest = {
1199
+ recipientUserId: string;
1200
+ amountCents: number;
1033
1201
  };
1034
1202
  type TronGameBalanceResponse = {
1035
1203
  balanceCents: number;
@@ -1163,12 +1331,15 @@ type WalletListResponse = {
1163
1331
  wallets: Array<WalletItem>;
1164
1332
  };
1165
1333
  type WalletChainList = Array<{
1166
- id: "ethereum-mainnet" | "base-mainnet" | "ethereum-sepolia";
1334
+ id: "ethereum-mainnet" | "base-mainnet" | "ethereum-sepolia" | "base-sepolia" | "solana-mainnet" | "solana-devnet";
1167
1335
  displayName: string;
1168
- chainId: number;
1336
+ family: "evm" | "solana";
1337
+ nativeSymbol: string;
1338
+ chainId?: number;
1169
1339
  }>;
1170
1340
  type WalletItem = {
1171
- address: string;
1341
+ address: string | string;
1342
+ family: "evm" | "solana";
1172
1343
  label: WalletLabel;
1173
1344
  kind: "personal" | "app";
1174
1345
  app: WalletAppLink;
@@ -1185,6 +1356,9 @@ type WalletBalances = {
1185
1356
  "ethereum-mainnet"?: WalletChainBalance;
1186
1357
  "base-mainnet"?: WalletChainBalance;
1187
1358
  "ethereum-sepolia"?: WalletChainBalance;
1359
+ "base-sepolia"?: WalletChainBalance;
1360
+ "solana-mainnet"?: WalletChainBalance;
1361
+ "solana-devnet"?: WalletChainBalance;
1188
1362
  };
1189
1363
  type WalletChainBalance = {
1190
1364
  native: string;
@@ -1194,12 +1368,14 @@ type WalletDelegationStatus = {
1194
1368
  mode: WalletDelegationMode;
1195
1369
  caps: WalletDelegationCaps;
1196
1370
  policyId: string | null;
1371
+ slippageBps: DelegationSlippageBps;
1197
1372
  };
1198
1373
  type WalletDelegationMode = "infinite" | "custom" | "scoped" | null;
1199
1374
  type WalletDelegationCaps = {
1200
1375
  native: string;
1201
1376
  usdc: string;
1202
1377
  } | null;
1378
+ type DelegationSlippageBps = number | null;
1203
1379
  type WalletLabelUpdateResponse = {
1204
1380
  address: string;
1205
1381
  label: WalletLabel;
@@ -1273,6 +1449,7 @@ type ThreadLastMessagePreview = {
1273
1449
  url: string;
1274
1450
  count: number;
1275
1451
  } | null;
1452
+ transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
1276
1453
  sentAt: string;
1277
1454
  } | null;
1278
1455
  type MessageEnvelope = {
@@ -1284,6 +1461,20 @@ type MessageEnvelope = {
1284
1461
  iv: string;
1285
1462
  ct: string;
1286
1463
  } | null;
1464
+ type MessageTransactionTronTransfer = {
1465
+ kind: "tron_transfer";
1466
+ amountCents: number;
1467
+ recipientUserId: string;
1468
+ };
1469
+ type MessageTransactionNftTransfer = {
1470
+ kind: "nft_transfer";
1471
+ recipientUserId: string;
1472
+ collectionAddress: string;
1473
+ tokenId: string;
1474
+ amount: string;
1475
+ itemName: string | null;
1476
+ imageAssetId?: string | null;
1477
+ };
1287
1478
  type GroupThreadSummary = {
1288
1479
  kind: "group";
1289
1480
  id: string;
@@ -1330,6 +1521,7 @@ type MessageItem = {
1330
1521
  id: string;
1331
1522
  threadId: string;
1332
1523
  senderUserId: string;
1524
+ transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
1333
1525
  body: string;
1334
1526
  envelope?: MessageEnvelope;
1335
1527
  sentAt: string;
@@ -1520,11 +1712,45 @@ type InventoryHolding = {
1520
1712
  tokenId: string;
1521
1713
  amount: string;
1522
1714
  name: string | null;
1715
+ description: string | null;
1523
1716
  imageAssetId: string | null;
1524
1717
  bannerAssetId: string | null;
1525
1718
  devMetadata: {
1526
1719
  [key: string]: unknown;
1527
1720
  };
1721
+ appId: string | null;
1722
+ appName: string | null;
1723
+ appLogoUrl: string | null;
1724
+ };
1725
+ type InventoryPendingPermitListResponse = {
1726
+ permits: Array<InventoryPendingPermit>;
1727
+ };
1728
+ type InventoryPendingPermit = {
1729
+ id: string;
1730
+ appId: string;
1731
+ itemId: string;
1732
+ amount: string;
1733
+ priceCents: number | null;
1734
+ gasSponsored: boolean;
1735
+ environment: "development" | "production";
1736
+ createdAt: string;
1737
+ tokenId: string;
1738
+ name: string | null;
1739
+ description: string | null;
1740
+ imageAssetId: string | null;
1741
+ chain: string;
1742
+ collectionAddress: string;
1743
+ kind: "erc721" | "erc1155";
1744
+ };
1745
+ type InventoryPermitRedeemResult = {
1746
+ mint: MintRequestResult;
1747
+ charge: {
1748
+ currency: "tron";
1749
+ gasCents: number;
1750
+ priceCents: number;
1751
+ totalCents: number;
1752
+ gasPaidBy: "user" | "developer";
1753
+ };
1528
1754
  };
1529
1755
  type MintRequestResult = {
1530
1756
  mintRequestId: string;
@@ -1540,6 +1766,247 @@ type MintRequestInput = {
1540
1766
  tokenId?: string;
1541
1767
  amount?: string;
1542
1768
  };
1769
+ type InventoryCollectionListResponse = {
1770
+ collections: Array<InventoryCollectionSummary>;
1771
+ };
1772
+ type InventoryCollectionSummary = {
1773
+ id: string;
1774
+ chain: string;
1775
+ collectionAddress: string;
1776
+ kind: "erc721" | "erc1155";
1777
+ name: string | null;
1778
+ environment: "development" | "production";
1779
+ };
1780
+ type InventoryRegistrationQuote = {
1781
+ itemCount: number;
1782
+ baselineUsdCents: number;
1783
+ gasUsdCents: number;
1784
+ tron: {
1785
+ baselineCents: number;
1786
+ gasCents: number;
1787
+ totalCents: number;
1788
+ };
1789
+ eth: {
1790
+ baselineWei: string;
1791
+ gasWei: string;
1792
+ totalWei: string;
1793
+ };
1794
+ };
1795
+ type InventoryItemRegistrationInput = {
1796
+ collectionAddress: string;
1797
+ chain: string;
1798
+ items: Array<InventoryItemRegistrationSpec>;
1799
+ };
1800
+ type InventoryItemRegistrationSpec = {
1801
+ name?: string | null;
1802
+ description?: string | null;
1803
+ devMetadata?: {
1804
+ [key: string]: unknown;
1805
+ };
1806
+ supplyType?: InventorySupplyType;
1807
+ maxSupply?: string | null;
1808
+ active?: boolean;
1809
+ };
1810
+ type InventorySupplyType = "capped" | "flexible" | "unlimited";
1811
+ type InventoryItemRegistrationResult = {
1812
+ items: Array<InventoryItemRecord>;
1813
+ charge: {
1814
+ currency: "tron";
1815
+ amountCents: number;
1816
+ baselineCents: number;
1817
+ gasCents: number;
1818
+ addItemTxHash: string;
1819
+ };
1820
+ };
1821
+ type InventoryItemRecord = {
1822
+ id: string;
1823
+ collectionId: string;
1824
+ collectionAddress: string;
1825
+ chain: string;
1826
+ kind: "erc721" | "erc1155";
1827
+ tokenId: string;
1828
+ name: string | null;
1829
+ description: string | null;
1830
+ imageAssetId: string | null;
1831
+ bannerAssetId: string | null;
1832
+ devMetadata: {
1833
+ [key: string]: unknown;
1834
+ };
1835
+ supplyType: InventorySupplyType | null;
1836
+ maxSupply: string | null;
1837
+ active: boolean;
1838
+ };
1839
+ type InventoryItemListResponse = {
1840
+ items: Array<InventoryItemRecord>;
1841
+ };
1842
+ type InventoryMintPermitRecord = {
1843
+ id: string;
1844
+ appId: string;
1845
+ itemId: string;
1846
+ userId: string;
1847
+ amount: string;
1848
+ priceCents: number | null;
1849
+ gasSponsored: boolean;
1850
+ status: "pending" | "redeemed" | "revoked";
1851
+ createdAt: string;
1852
+ };
1853
+ type InventoryMintPermitCreateInput = {
1854
+ toUserId: string;
1855
+ amount?: string;
1856
+ priceCents?: number | null;
1857
+ gasSponsored?: boolean;
1858
+ };
1859
+ type InventoryItemHoldersResponse = {
1860
+ stats: InventoryItemStats;
1861
+ holders: Array<InventoryItemHolder>;
1862
+ };
1863
+ type InventoryItemStats = {
1864
+ holderCount: number;
1865
+ walletCount: number;
1866
+ totalHeld: string;
1867
+ };
1868
+ type InventoryItemHolder = {
1869
+ walletAddress: string;
1870
+ userId: string | null;
1871
+ amount: string;
1872
+ };
1873
+ type InventoryVaultPermitRecord = {
1874
+ id: string;
1875
+ appId: string;
1876
+ itemId: string;
1877
+ userId: string;
1878
+ direction: "vault_in" | "withdraw";
1879
+ lockKind: "vault" | "burn" | null;
1880
+ amount: string;
1881
+ gasSponsored: boolean;
1882
+ status: "pending" | "redeemed" | "revoked";
1883
+ custodyId: string | null;
1884
+ createdAt: string;
1885
+ };
1886
+ type InventoryVaultPermitCreateInput = {
1887
+ toUserId: string;
1888
+ lockKind: "vault" | "burn";
1889
+ amount?: string;
1890
+ gasSponsored?: boolean;
1891
+ };
1892
+ type InventoryWithdrawPermitCreateInput = {
1893
+ custodyId: string;
1894
+ };
1895
+ type InventoryPendingVaultPermitListResponse = {
1896
+ permits: Array<InventoryPendingVaultPermit>;
1897
+ };
1898
+ type InventoryPendingVaultPermit = {
1899
+ id: string;
1900
+ appId: string;
1901
+ itemId: string;
1902
+ direction: "vault_in" | "withdraw";
1903
+ lockKind: "vault" | "burn" | null;
1904
+ amount: string;
1905
+ gasSponsored: boolean;
1906
+ environment: "development" | "production";
1907
+ custodyId: string | null;
1908
+ createdAt: string;
1909
+ tokenId: string;
1910
+ name: string | null;
1911
+ description: string | null;
1912
+ imageAssetId: string | null;
1913
+ chain: string;
1914
+ collectionAddress: string;
1915
+ kind: "erc721" | "erc1155";
1916
+ };
1917
+ type InventorySignedVaultPermit = {
1918
+ permitId: string;
1919
+ direction: "vault_in" | "withdraw";
1920
+ vault: string;
1921
+ collection: string;
1922
+ user: string;
1923
+ tokenId: string;
1924
+ amount: string;
1925
+ lockKind: "vault" | "burn" | null;
1926
+ destination: string | null;
1927
+ deadline: number;
1928
+ signature: string;
1929
+ };
1930
+ type InventoryRelayedVaultQuoteResponse = {
1931
+ direction: "vault_in" | "withdraw";
1932
+ collection: string;
1933
+ vault: string;
1934
+ chainId: number;
1935
+ user: string;
1936
+ tokenId: string;
1937
+ amount: string;
1938
+ nonce: string | null;
1939
+ deadline: number;
1940
+ feeCents: number;
1941
+ gasWei: string;
1942
+ gasPaidBy: "developer" | "user";
1943
+ requiresUserSignature: boolean;
1944
+ };
1945
+ type InventoryRelayedVaultSubmitResponse = {
1946
+ ok: boolean;
1947
+ txHash: string;
1948
+ chargedCents: number;
1949
+ gasPaidBy: "developer" | "user";
1950
+ };
1951
+ type InventoryRelayedVaultSubmitRequest = {
1952
+ userSignature?: string;
1953
+ deadline?: number;
1954
+ };
1955
+ type InventoryNftTransferQuoteResponse = {
1956
+ collection: string;
1957
+ chainId: number;
1958
+ from: string;
1959
+ to: string;
1960
+ tokenId: string;
1961
+ amount: string;
1962
+ nonce: string;
1963
+ deadline: number;
1964
+ feeCents: number;
1965
+ gasWei: string;
1966
+ selfPayAvailable: boolean;
1967
+ };
1968
+ type InventoryNftTransferQuoteRequest = {
1969
+ toUserId: string;
1970
+ collection: string;
1971
+ tokenId: string;
1972
+ amount?: string;
1973
+ };
1974
+ type InventoryNftTransferResponse = {
1975
+ ok: boolean;
1976
+ txHash: string;
1977
+ chargedCents: number;
1978
+ };
1979
+ type InventoryNftTransferRequest = {
1980
+ toUserId: string;
1981
+ collection: string;
1982
+ tokenId: string;
1983
+ amount?: string;
1984
+ deadline: number;
1985
+ userSignature: string;
1986
+ threadId?: string;
1987
+ };
1988
+ type InventoryVaultCustodyListResponse = {
1989
+ custody: Array<InventoryVaultCustody>;
1990
+ };
1991
+ type InventoryVaultCustody = {
1992
+ id: string;
1993
+ collectionId: string;
1994
+ collectionAddress: string;
1995
+ chain: string;
1996
+ kind: "erc721" | "erc1155";
1997
+ tokenId: string;
1998
+ amount: string;
1999
+ lockKind: "vault" | "burn";
2000
+ vaultAddress: string;
2001
+ createdAt: string;
2002
+ name: string | null;
2003
+ description: string | null;
2004
+ imageAssetId: string | null;
2005
+ };
2006
+ type InventoryVaultForceWithdrawResponse = {
2007
+ ok: boolean;
2008
+ txHash: string;
2009
+ };
1543
2010
  type NotificationListResponse = {
1544
2011
  notifications: Array<NotificationItem>;
1545
2012
  unreadCount: number;
@@ -1568,6 +2035,18 @@ type NotificationItem = {
1568
2035
  payload: AppPageRejectedNotificationPayload;
1569
2036
  read: boolean;
1570
2037
  createdAt: string;
2038
+ } | {
2039
+ id: string;
2040
+ kind: "bip_update_published";
2041
+ payload: BipUpdatePublishedNotificationPayload;
2042
+ read: boolean;
2043
+ createdAt: string;
2044
+ } | {
2045
+ id: string;
2046
+ kind: "bip_now_playable";
2047
+ payload: BipNowPlayableNotificationPayload;
2048
+ read: boolean;
2049
+ createdAt: string;
1571
2050
  } | {
1572
2051
  id: string;
1573
2052
  kind: "app_participant_invite";
@@ -1598,14 +2077,25 @@ type FriendAcceptedNotificationPayload = {
1598
2077
  type AppPageApprovedNotificationPayload = {
1599
2078
  appId: string;
1600
2079
  appName: string;
1601
- scope: "publish" | "changes";
2080
+ scope: "publish" | "changes" | "bip_publish";
1602
2081
  };
1603
2082
  type AppPageRejectedNotificationPayload = {
1604
2083
  appId: string;
1605
2084
  appName: string;
1606
- scope: "publish" | "changes";
2085
+ scope: "publish" | "changes" | "bip_publish";
1607
2086
  notes: string;
1608
2087
  };
2088
+ type BipUpdatePublishedNotificationPayload = {
2089
+ appId: string;
2090
+ appName: string;
2091
+ appSlug: string | null;
2092
+ updateId: string;
2093
+ };
2094
+ type BipNowPlayableNotificationPayload = {
2095
+ appId: string;
2096
+ appName: string;
2097
+ appSlug: string | null;
2098
+ };
1609
2099
  type AppParticipantInviteNotificationPayload = {
1610
2100
  appId: string;
1611
2101
  appName: string;
@@ -1635,6 +2125,9 @@ type FriendListItem = {
1635
2125
  onlineStatus: OnlineStatus;
1636
2126
  };
1637
2127
  type OnlineStatus = "online" | "offline";
2128
+ type AppFriendListResponse = {
2129
+ friends: Array<ThreadParticipant>;
2130
+ };
1638
2131
  type FriendRequestDecision = {
1639
2132
  decision: "accept" | "reject";
1640
2133
  };
@@ -1764,17 +2257,20 @@ type CreateDeveloperAppChain = {
1764
2257
  };
1765
2258
  type UpdateDeveloperApp = {
1766
2259
  name?: DeveloperAppName;
2260
+ slug?: AppPageSlug | null;
1767
2261
  logoUrl?: string | null;
1768
2262
  testAccess?: "private" | "public";
1769
2263
  redirectUris?: Array<string>;
1770
2264
  embedOrigins?: Array<EmbedOrigin>;
1771
2265
  acceptedCurrencies?: AcceptedCurrencies;
2266
+ acceptedNetworks?: AcceptedNetworks;
1772
2267
  paymentStatusWebhookUrl?: string | null;
1773
2268
  paymentStatusWebhookUrlTest?: string | null;
1774
2269
  };
1775
2270
  type EmbedOrigin = string;
1776
2271
  type AcceptedCurrencies = Array<PlatformCurrency>;
1777
2272
  type PlatformCurrency = "eth" | "tron";
2273
+ type AcceptedNetworks = Array<PaymentNetwork> | null;
1778
2274
  type DeveloperLogoUploadResponse = {
1779
2275
  logoUrl: string | null;
1780
2276
  };
@@ -2012,6 +2508,7 @@ type DeveloperProductionRequestPayload = {
2012
2508
  type DeveloperAppItem = {
2013
2509
  id: string;
2014
2510
  name: DeveloperAppName;
2511
+ slug: AppPageSlug | null;
2015
2512
  logoUrl: string | null;
2016
2513
  environment: "development" | "production";
2017
2514
  productionApprovedAt: string | null;
@@ -2020,6 +2517,7 @@ type DeveloperAppItem = {
2020
2517
  redirectUris: Array<string>;
2021
2518
  embedOrigins: Array<EmbedOrigin>;
2022
2519
  acceptedCurrencies: AcceptedCurrencies;
2520
+ acceptedNetworks: AcceptedNetworks;
2023
2521
  payoutAddresses: Array<DeveloperAppPayoutAddressItem>;
2024
2522
  keys: Array<DeveloperAppKeyItem>;
2025
2523
  pendingProductionRequestId: string | null;
@@ -2074,9 +2572,18 @@ type AppPageDraft = {
2074
2572
  hiddenAt: string | null;
2075
2573
  hiddenReasonPublic: string | null;
2076
2574
  pendingReview: boolean;
2575
+ bip: AppPageBipState;
2576
+ };
2577
+ type AppPageBipState = {
2578
+ enabled: boolean;
2579
+ status: "draft" | "pending_review" | "published" | "hidden";
2580
+ firstPublishedAt: string | null;
2581
+ reviewedAt: string | null;
2582
+ reviewNotes: string | null;
2583
+ hiddenAt: string | null;
2584
+ hiddenReasonPublic: string | null;
2077
2585
  };
2078
2586
  type UpdateAppPage = {
2079
- slug?: AppPageSlug | null;
2080
2587
  categories?: AppPageCategories;
2081
2588
  tagline?: AppPageTagline | null;
2082
2589
  bannerUrl?: string | null;
@@ -2099,6 +2606,9 @@ type UpdateAppPage = {
2099
2606
  type AppPageGalleryUploadResponse = {
2100
2607
  url: string;
2101
2608
  };
2609
+ type AppPageBipToggle = {
2610
+ enabled: boolean;
2611
+ };
2102
2612
  type AdminActivePlayersResponse = {
2103
2613
  players: Array<AdminActivePlayer>;
2104
2614
  total: number;
@@ -2237,6 +2747,11 @@ type AdminAppPageItem = {
2237
2747
  hiddenAt: string | null;
2238
2748
  hiddenReasonInternal: string | null;
2239
2749
  pendingChangesSubmittedAt: string | null;
2750
+ bipEnabled: boolean;
2751
+ bipStatus: "draft" | "pending_review" | "published" | "hidden";
2752
+ bipFirstPublishedAt: string | null;
2753
+ bipHiddenAt: string | null;
2754
+ openReportCount: number;
2240
2755
  };
2241
2756
  type AdminAppPageStatusResponse = {
2242
2757
  status: "draft" | "pending_review" | "published" | "hidden";
@@ -2262,6 +2777,25 @@ type AdminAppPageDiffField = {
2262
2777
  from: string;
2263
2778
  to: string;
2264
2779
  };
2780
+ type AdminAppPageBipStatusResponse = {
2781
+ bipStatus: "draft" | "pending_review" | "published" | "hidden";
2782
+ };
2783
+ type AdminAppContentReportListResponse = {
2784
+ reports: Array<AdminAppContentReportItem>;
2785
+ total: number;
2786
+ hasMore: boolean;
2787
+ };
2788
+ type AdminAppContentReportItem = {
2789
+ id: string;
2790
+ category: AppContentReportCategory;
2791
+ details: string | null;
2792
+ status: AppContentReportStatus;
2793
+ acknowledgedAt: string | null;
2794
+ createdAt: string;
2795
+ appId: string;
2796
+ appName: string;
2797
+ appSlug: string | null;
2798
+ };
2265
2799
  type PlatformFeesResponse = {
2266
2800
  purchaseFeeBps: number;
2267
2801
  stakeFeeBps: number;
@@ -2490,7 +3024,7 @@ type OauthPaymentPayoutRequest = {
2490
3024
  metadata?: PaymentMetadata;
2491
3025
  };
2492
3026
  type OauthPaymentDistributeResponse = {
2493
- distributionId: string;
3027
+ distributionId?: string;
2494
3028
  txHash: string;
2495
3029
  blockNumber: string;
2496
3030
  potId: string;
@@ -2613,7 +3147,7 @@ declare function listActivePlayers(context: TransportContext, input: {
2613
3147
  //#region src/admin/app-pages.d.ts
2614
3148
  declare function listAppPages(context: TransportContext, input: {
2615
3149
  readonly bearer: string;
2616
- readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes";
3150
+ readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes" | "bip_pending_review";
2617
3151
  }): Promise<AdminAppPageListResponse>;
2618
3152
  declare function getAppPageChanges(context: TransportContext, input: {
2619
3153
  readonly bearer: string;
@@ -2638,6 +3172,20 @@ declare function reviewAppPage(context: TransportContext, input: {
2638
3172
  readonly appId: string;
2639
3173
  readonly body: ReviewAppPage;
2640
3174
  }): Promise<AdminAppPageStatusResponse>;
3175
+ declare function reviewAppPageBip(context: TransportContext, input: {
3176
+ readonly bearer: string;
3177
+ readonly appId: string;
3178
+ readonly body: ReviewAppPage;
3179
+ }): Promise<AdminAppPageBipStatusResponse>;
3180
+ declare function hideAppPageBip(context: TransportContext, input: {
3181
+ readonly bearer: string;
3182
+ readonly appId: string;
3183
+ readonly body: HideAppPage;
3184
+ }): Promise<AdminAppPageBipStatusResponse>;
3185
+ declare function unhideAppPageBip(context: TransportContext, input: {
3186
+ readonly bearer: string;
3187
+ readonly appId: string;
3188
+ }): Promise<AdminAppPageBipStatusResponse>;
2641
3189
  //#endregion
2642
3190
  //#region src/admin/appeals.d.ts
2643
3191
  declare function listAppealQueue(context: TransportContext, input: {
@@ -2669,6 +3217,19 @@ declare function resolveAppeal(context: TransportContext, input: {
2669
3217
  readonly body: AppealResolveRequest;
2670
3218
  }): Promise<AppealResolveSignedResponse>;
2671
3219
  //#endregion
3220
+ //#region src/admin/content-reports.d.ts
3221
+ declare function listAdminContentReports(context: TransportContext, input: {
3222
+ readonly bearer: string;
3223
+ readonly status?: "open" | "acknowledged" | "dismissed" | "all";
3224
+ readonly limit?: number;
3225
+ readonly offset?: number;
3226
+ }): Promise<AdminAppContentReportListResponse>;
3227
+ declare function triageAdminContentReport(context: TransportContext, input: {
3228
+ readonly bearer: string;
3229
+ readonly reportId: string;
3230
+ readonly status: "acknowledged" | "dismissed";
3231
+ }): Promise<AppContentReport>;
3232
+ //#endregion
2672
3233
  //#region src/admin/developers.d.ts
2673
3234
  declare function listDeveloperRequests(context: TransportContext, input: {
2674
3235
  readonly bearer: string;
@@ -2684,6 +3245,12 @@ declare function listDevelopers(context: TransportContext, input: {
2684
3245
  readonly bearer: string;
2685
3246
  }): Promise<AdminDeveloperListResponse>;
2686
3247
  //#endregion
3248
+ //#region src/admin/inventory-vault.d.ts
3249
+ declare function forceWithdrawVaultCustody(context: TransportContext, input: {
3250
+ readonly bearer: string;
3251
+ readonly custodyId: string;
3252
+ }): Promise<InventoryVaultForceWithdrawResponse>;
3253
+ //#endregion
2687
3254
  //#region src/admin/payments.d.ts
2688
3255
  declare function getPlatformFees(context: TransportContext, input: {
2689
3256
  readonly bearer: string;
@@ -2802,6 +3369,102 @@ declare function getAppPage(context: TransportContext, input: {
2802
3369
  readonly slug: string;
2803
3370
  }): Promise<PublicAppPage>;
2804
3371
  //#endregion
3372
+ //#region src/catalog/bip-updates.d.ts
3373
+ declare function listBipUpdates(context: TransportContext, input: {
3374
+ readonly bearer?: string;
3375
+ readonly slug: string;
3376
+ readonly limit?: number;
3377
+ readonly offset?: number;
3378
+ }): Promise<BipUpdateListResponse>;
3379
+ declare function listBipUpdateComments(context: TransportContext, input: {
3380
+ readonly bearer?: string;
3381
+ readonly slug: string;
3382
+ readonly updateId: string;
3383
+ readonly limit?: number;
3384
+ readonly offset?: number;
3385
+ }): Promise<BipUpdateCommentListResponse>;
3386
+ declare function getMyBipUpdateReactions(context: TransportContext, input: {
3387
+ readonly bearer: string;
3388
+ readonly slug: string;
3389
+ }): Promise<MyBipUpdateReactionsResponse>;
3390
+ declare function setBipUpdateReaction(context: TransportContext, input: {
3391
+ readonly bearer: string;
3392
+ readonly slug: string;
3393
+ readonly updateId: string;
3394
+ readonly body: SetBipUpdateReactionRequest;
3395
+ }): Promise<SetBipUpdateReactionResponse>;
3396
+ declare function commentOnBipUpdate(context: TransportContext, input: {
3397
+ readonly bearer: string;
3398
+ readonly slug: string;
3399
+ readonly updateId: string;
3400
+ readonly body: string;
3401
+ }): Promise<CreateBipUpdateCommentResponse>;
3402
+ declare function deleteBipUpdateComment(context: TransportContext, input: {
3403
+ readonly bearer: string;
3404
+ readonly slug: string;
3405
+ readonly commentId: string;
3406
+ }): Promise<DeleteBipUpdateCommentResponse>;
3407
+ declare function listDeveloperBipUpdates(context: TransportContext, input: {
3408
+ readonly bearer: string;
3409
+ readonly appId: string;
3410
+ readonly limit?: number;
3411
+ readonly offset?: number;
3412
+ }): Promise<BipUpdateListResponse>;
3413
+ declare function createBipUpdate(context: TransportContext, input: {
3414
+ readonly bearer: string;
3415
+ readonly appId: string;
3416
+ readonly body: CreateBipUpdateRequest;
3417
+ }): Promise<BipUpdate>;
3418
+ declare function updateBipUpdate(context: TransportContext, input: {
3419
+ readonly bearer: string;
3420
+ readonly appId: string;
3421
+ readonly updateId: string;
3422
+ readonly body: UpdateBipUpdateRequest;
3423
+ }): Promise<BipUpdate>;
3424
+ declare function deleteBipUpdate(context: TransportContext, input: {
3425
+ readonly bearer: string;
3426
+ readonly appId: string;
3427
+ readonly updateId: string;
3428
+ }): Promise<DeleteBipUpdateResponse>;
3429
+ declare function uploadBipUpdateMedia(context: TransportContext, input: {
3430
+ readonly bearer: string;
3431
+ readonly appId: string;
3432
+ readonly file: Blob;
3433
+ readonly filename: string;
3434
+ readonly contentType: string;
3435
+ }): Promise<BipUpdateMediaUploadResponse>;
3436
+ declare function getBipInterestCount(context: TransportContext, input: {
3437
+ readonly bearer?: string;
3438
+ readonly slug: string;
3439
+ }): Promise<BipInterestCountResponse>;
3440
+ declare function getMyBipEngagement(context: TransportContext, input: {
3441
+ readonly bearer: string;
3442
+ readonly slug: string;
3443
+ }): Promise<BipEngagementResponse>;
3444
+ declare function registerBipInterest(context: TransportContext, input: {
3445
+ readonly bearer: string;
3446
+ readonly slug: string;
3447
+ readonly interested: boolean;
3448
+ }): Promise<BipEngagementResponse>;
3449
+ declare function subscribeBipUpdates(context: TransportContext, input: {
3450
+ readonly bearer: string;
3451
+ readonly slug: string;
3452
+ readonly subscribed: boolean;
3453
+ }): Promise<BipEngagementResponse>;
3454
+ //#endregion
3455
+ //#region src/catalog/build-in-public.d.ts
3456
+ declare function getBipDirectory(context: TransportContext, input: {
3457
+ readonly bearer?: string;
3458
+ readonly genre?: string;
3459
+ readonly q?: string;
3460
+ readonly before?: string;
3461
+ readonly limit?: number;
3462
+ }): Promise<LibraryListResponse>;
3463
+ declare function getBipPage(context: TransportContext, input: {
3464
+ readonly bearer?: string;
3465
+ readonly slug: string;
3466
+ }): Promise<PublicBipPage>;
3467
+ //#endregion
2805
3468
  //#region src/catalog/content-reports.d.ts
2806
3469
  declare function submitAppContentReport(context: TransportContext, input: {
2807
3470
  readonly appId: string;
@@ -3109,6 +3772,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
3109
3772
  readonly status: "acknowledged" | "dismissed";
3110
3773
  }): Promise<AppContentReport>;
3111
3774
  //#endregion
3775
+ //#region src/developer/inventory.d.ts
3776
+ declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
3777
+ readonly bearer: string;
3778
+ readonly appId: string;
3779
+ readonly registration: InventoryItemRegistrationInput;
3780
+ }): Promise<InventoryRegistrationQuote>;
3781
+ declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
3782
+ readonly bearer: string;
3783
+ readonly appId: string;
3784
+ readonly registration: InventoryItemRegistrationInput;
3785
+ }): Promise<InventoryItemRegistrationResult>;
3786
+ declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
3787
+ readonly bearer: string;
3788
+ readonly appId: string;
3789
+ }): Promise<InventoryCollectionListResponse>;
3790
+ declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
3791
+ readonly bearer: string;
3792
+ readonly appId: string;
3793
+ }): Promise<InventoryItemListResponse>;
3794
+ declare function createDeveloperAppMintPermit(context: TransportContext, input: {
3795
+ readonly bearer: string;
3796
+ readonly appId: string;
3797
+ readonly itemId: string;
3798
+ readonly grant: InventoryMintPermitCreateInput;
3799
+ }): Promise<InventoryMintPermitRecord>;
3800
+ declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
3801
+ readonly bearer: string;
3802
+ readonly appId: string;
3803
+ readonly itemId: string;
3804
+ }): Promise<InventoryItemHoldersResponse>;
3805
+ declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
3806
+ readonly bearer: string;
3807
+ readonly appId: string;
3808
+ readonly itemId: string;
3809
+ readonly file: Blob | ArrayBufferView | ArrayBuffer;
3810
+ readonly filename: string;
3811
+ readonly contentType: string;
3812
+ }): Promise<InventoryItemRecord>;
3813
+ declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
3814
+ readonly bearer: string;
3815
+ readonly appId: string;
3816
+ readonly itemId: string;
3817
+ readonly file: Blob | ArrayBufferView | ArrayBuffer;
3818
+ readonly filename: string;
3819
+ readonly contentType: string;
3820
+ }): Promise<InventoryItemRecord>;
3821
+ //#endregion
3112
3822
  //#region src/developer/pages.d.ts
3113
3823
  declare function getDeveloperAppPage(context: TransportContext, input: {
3114
3824
  readonly bearer: string;
@@ -3167,6 +3877,19 @@ declare function unpublishAppPage(context: TransportContext, input: {
3167
3877
  readonly bearer: string;
3168
3878
  readonly appId: string;
3169
3879
  }): Promise<AppPageDraft>;
3880
+ declare function setAppPageBip(context: TransportContext, input: {
3881
+ readonly bearer: string;
3882
+ readonly appId: string;
3883
+ readonly body: AppPageBipToggle;
3884
+ }): Promise<AppPageDraft>;
3885
+ declare function submitAppPageBipForReview(context: TransportContext, input: {
3886
+ readonly bearer: string;
3887
+ readonly appId: string;
3888
+ }): Promise<AppPageDraft>;
3889
+ declare function unpublishAppPageBip(context: TransportContext, input: {
3890
+ readonly bearer: string;
3891
+ readonly appId: string;
3892
+ }): Promise<AppPageDraft>;
3170
3893
  //#endregion
3171
3894
  //#region src/developer/participants.d.ts
3172
3895
  declare function listDeveloperAppParticipants(context: TransportContext, input: {
@@ -3233,6 +3956,68 @@ declare function uploadMultipart(context: TransportContext, input: {
3233
3956
  readonly contentType: string;
3234
3957
  }): Promise<unknown>;
3235
3958
  //#endregion
3959
+ //#region src/developer/vault.d.ts
3960
+ declare function createDeveloperVaultPermit(context: TransportContext, input: {
3961
+ readonly bearer: string;
3962
+ readonly appId: string;
3963
+ readonly itemId: string;
3964
+ readonly grant: InventoryVaultPermitCreateInput;
3965
+ }): Promise<InventoryVaultPermitRecord>;
3966
+ declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
3967
+ readonly bearer: string;
3968
+ readonly appId: string;
3969
+ readonly itemId: string;
3970
+ readonly grant: InventoryWithdrawPermitCreateInput;
3971
+ }): Promise<InventoryVaultPermitRecord>;
3972
+ //#endregion
3973
+ //#region src/events/inventory-socket.d.ts
3974
+ declare const inventoryUpdateEventSchema: z.ZodObject<{
3975
+ event: z.ZodLiteral<"inventory.updated">;
3976
+ deliveredAt: z.ZodString;
3977
+ environment: z.ZodEnum<{
3978
+ development: "development";
3979
+ production: "production";
3980
+ }>;
3981
+ subject: z.ZodString;
3982
+ collectionId: z.ZodString;
3983
+ collectionAddress: z.ZodString;
3984
+ chain: z.ZodString;
3985
+ kind: z.ZodEnum<{
3986
+ erc721: "erc721";
3987
+ erc1155: "erc1155";
3988
+ }>;
3989
+ tokenId: z.ZodString;
3990
+ direction: z.ZodEnum<{
3991
+ credit: "credit";
3992
+ debit: "debit";
3993
+ }>;
3994
+ amount: z.ZodString;
3995
+ balance: z.ZodString;
3996
+ }, z.core.$strip>;
3997
+ type InventoryUpdateEvent = z.infer<typeof inventoryUpdateEventSchema>;
3998
+ type OauthInventoryEventsSubscriberLifecycle = {
3999
+ onOpen?: () => void;
4000
+ onSubscribed?: (appId: string) => void;
4001
+ onMessage: (body: InventoryUpdateEvent) => void | Promise<void>;
4002
+ onClose?: (error: TronWsCloseError) => void;
4003
+ onError?: (error: Error) => void;
4004
+ };
4005
+ type OauthInventoryEventsSubscriberOptions = {
4006
+ readonly issuer: string;
4007
+ readonly clientId: string;
4008
+ readonly clientSecret: string;
4009
+ readonly logger?: Logger;
4010
+ readonly lifecycle: OauthInventoryEventsSubscriberLifecycle;
4011
+ readonly initialBackoffMs?: number;
4012
+ readonly maxBackoffMs?: number;
4013
+ readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
4014
+ readonly WebSocketImpl?: typeof globalThis.WebSocket;
4015
+ };
4016
+ type OauthInventoryEventsSubscriber = {
4017
+ readonly stop: () => void;
4018
+ };
4019
+ declare function startOauthInventoryEventsSubscriber(options: OauthInventoryEventsSubscriberOptions): OauthInventoryEventsSubscriber;
4020
+ //#endregion
3236
4021
  //#region src/webhook/verify.d.ts
3237
4022
  declare const oauthPaymentWebhookBodySchema: z.ZodObject<{
3238
4023
  event: z.ZodEnum<{
@@ -3307,6 +4092,7 @@ type OauthPaymentEventsSubscriberOptions = {
3307
4092
  readonly maxBackoffMs?: number;
3308
4093
  readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
3309
4094
  readonly WebSocketImpl?: typeof globalThis.WebSocket;
4095
+ readonly disableEventAck?: boolean;
3310
4096
  };
3311
4097
  type OauthPaymentEventsSubscriber = {
3312
4098
  readonly stop: () => void;
@@ -3321,12 +4107,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
3321
4107
  readonly bearer: string;
3322
4108
  }): Promise<InventoryListResponse>;
3323
4109
  //#endregion
4110
+ //#region src/inventory/nft-transfer.d.ts
4111
+ declare function quoteNftTransfer(context: TransportContext, input: {
4112
+ readonly bearer: string;
4113
+ readonly body: InventoryNftTransferQuoteRequest;
4114
+ }): Promise<InventoryNftTransferQuoteResponse>;
4115
+ declare function executeNftTransfer(context: TransportContext, input: {
4116
+ readonly bearer: string;
4117
+ readonly body: InventoryNftTransferRequest;
4118
+ }): Promise<InventoryNftTransferResponse>;
4119
+ //#endregion
4120
+ //#region src/inventory/permits.d.ts
4121
+ declare function listInventoryMintPermits(context: TransportContext, input: {
4122
+ readonly bearer: string;
4123
+ }): Promise<InventoryPendingPermitListResponse>;
4124
+ declare function redeemInventoryMintPermit(context: TransportContext, input: {
4125
+ readonly bearer: string;
4126
+ readonly permitId: string;
4127
+ }): Promise<InventoryPermitRedeemResult>;
4128
+ //#endregion
3324
4129
  //#region src/inventory/request-mint.d.ts
3325
4130
  declare function requestMint(context: TransportContext, input: {
3326
4131
  readonly appBearer: string;
3327
4132
  readonly body: MintRequestInput;
3328
4133
  }): Promise<MintRequestResult>;
3329
4134
  //#endregion
4135
+ //#region src/inventory/vault.d.ts
4136
+ declare function listInventoryVaultPermits(context: TransportContext, input: {
4137
+ readonly bearer: string;
4138
+ }): Promise<InventoryPendingVaultPermitListResponse>;
4139
+ declare function signInventoryVaultPermit(context: TransportContext, input: {
4140
+ readonly bearer: string;
4141
+ readonly permitId: string;
4142
+ }): Promise<InventorySignedVaultPermit>;
4143
+ declare function quoteRelayedVaultPermit(context: TransportContext, input: {
4144
+ readonly bearer: string;
4145
+ readonly permitId: string;
4146
+ }): Promise<InventoryRelayedVaultQuoteResponse>;
4147
+ declare function submitRelayedVaultPermit(context: TransportContext, input: {
4148
+ readonly bearer: string;
4149
+ readonly permitId: string;
4150
+ readonly body: InventoryRelayedVaultSubmitRequest;
4151
+ }): Promise<InventoryRelayedVaultSubmitResponse>;
4152
+ declare function listInventoryVaulted(context: TransportContext, input: {
4153
+ readonly bearer: string;
4154
+ }): Promise<InventoryVaultCustodyListResponse>;
4155
+ declare function listOauthInventoryVaulted(context: TransportContext, input: {
4156
+ readonly bearer: string;
4157
+ }): Promise<InventoryVaultCustodyListResponse>;
4158
+ //#endregion
3330
4159
  //#region src/messaging/dm-key-backup.d.ts
3331
4160
  declare function getDmKeyBackupStatus(context: TransportContext, input: {
3332
4161
  readonly bearer: string;
@@ -3646,6 +4475,17 @@ declare function createTronTransfer(context: TransportContext, input: {
3646
4475
  readonly body: TronTransferRequest;
3647
4476
  readonly idempotencyKey?: string;
3648
4477
  }): Promise<TronTransferResponse>;
4478
+ declare function getTronSecurity(context: TransportContext, input: {
4479
+ readonly bearer: string;
4480
+ }): Promise<TronSecuritySetting>;
4481
+ declare function setTronSecurity(context: TransportContext, input: {
4482
+ readonly bearer: string;
4483
+ readonly setting: TronSecuritySetting;
4484
+ }): Promise<TronSecuritySetting>;
4485
+ declare function createTronTransferChallenge(context: TransportContext, input: {
4486
+ readonly bearer: string;
4487
+ readonly body: TronTransferChallengeRequest;
4488
+ }): Promise<TronTransferChallengeResponse>;
3649
4489
  declare function createTronConnectOnboarding(context: TransportContext, input: {
3650
4490
  readonly bearer: string;
3651
4491
  }): Promise<TronConnectOnboardingResponse>;
@@ -3820,6 +4660,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
3820
4660
  readonly bearer: string;
3821
4661
  readonly userId: string;
3822
4662
  }): Promise<void>;
4663
+ declare function removeFriend(context: TransportContext, input: {
4664
+ readonly bearer: string;
4665
+ readonly userId: string;
4666
+ }): Promise<void>;
3823
4667
  declare function decideFriendRequest(context: TransportContext, input: {
3824
4668
  readonly bearer: string;
3825
4669
  readonly requestId: string;
@@ -3832,6 +4676,9 @@ declare function cancelFriendRequest(context: TransportContext, input: {
3832
4676
  declare function listFriends(context: TransportContext, input: {
3833
4677
  readonly bearer: string;
3834
4678
  }): Promise<FriendListResponse>;
4679
+ declare function listFriendsForApp(context: TransportContext, input: {
4680
+ readonly bearer: string;
4681
+ }): Promise<AppFriendListResponse>;
3835
4682
  //#endregion
3836
4683
  //#region src/reads/socials.d.ts
3837
4684
  declare function listSocials(context: TransportContext, input: {
@@ -3958,6 +4805,7 @@ declare class TronNodeClient {
3958
4805
  };
3959
4806
  };
3960
4807
  subscribeOauthPaymentEvents(lifecycle: OauthPaymentEventsSubscriberLifecycle): OauthPaymentEventsSubscriber;
4808
+ subscribeOauthInventoryEvents(lifecycle: OauthInventoryEventsSubscriberLifecycle): OauthInventoryEventsSubscriber;
3961
4809
  get users(): {
3962
4810
  get: (input: {
3963
4811
  bearer?: string;
@@ -4058,6 +4906,11 @@ declare class TronNodeClient {
4058
4906
  body: MintRequestInput;
4059
4907
  }) => Promise<MintRequestResult>;
4060
4908
  };
4909
+ get friends(): {
4910
+ list: (input: {
4911
+ bearer: string;
4912
+ }) => Promise<AppFriendListResponse>;
4913
+ };
4061
4914
  get socials(): {
4062
4915
  list: (input: {
4063
4916
  bearer: string;
@@ -4079,4 +4932,4 @@ declare class TronNodeClient {
4079
4932
  };
4080
4933
  }
4081
4934
  //#endregion
4082
- export { AppTokenCache, AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, type FetchLike, GameHalfCredentials, HttpsGuardOptions, InflightDedup, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, type NodeClientConfig, OauthErrorCode, OauthPaymentEventsSubscriber, OauthPaymentEventsSubscriberLifecycle, OauthPaymentEventsSubscriberOptions, OauthPaymentWebhookBody, type OauthScope, PkcePair, PlaySessionGameStatus, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, RequestOptions, 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, TransportContext, TronError, TronNodeClient, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, assertSecureIssuer, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, cancelPot, charge, chargeTronDirect, chargeTronPot, commentOnGameReview, completePaymentIntent, confirmPlaySession, consolidateDeveloperAppWallet, createAppTokenCache, createConsoleLogger, 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, distributePot, distributeTronPot, editMessage, endPlaySession, 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, getIntentStatus, getLibrary, getMoonpayAvailability, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronGameBalance, heartbeatPlaySession, 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, mintClientCredentialsToken, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, parseJson, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, refreshAccessToken, registerOauthClient, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, requestPayout, resolveAppeal, reviewAppPage, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, send, sendFriendRequest, sendJson, sendMessage, sendPresenceHeartbeat, setMyGameReviewReaction, setProcessorWhitelist, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signPaymentIntent, startOauthPaymentEventsSubscriber, 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 };
4935
+ export { AppTokenCache, AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, type FetchLike, GameHalfCredentials, HttpsGuardOptions, InflightDedup, InventoryUpdateEvent, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, type NodeClientConfig, OauthErrorCode, OauthInventoryEventsSubscriber, OauthInventoryEventsSubscriberLifecycle, OauthInventoryEventsSubscriberOptions, OauthPaymentEventsSubscriber, OauthPaymentEventsSubscriberLifecycle, OauthPaymentEventsSubscriberOptions, OauthPaymentWebhookBody, type OauthScope, PkcePair, PlaySessionGameStatus, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, RequestOptions, 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, TransportContext, TronError, TronNodeClient, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, assertSecureIssuer, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, cancelPot, charge, chargeTronDirect, chargeTronPot, commentOnBipUpdate, commentOnGameReview, completePaymentIntent, confirmPlaySession, consolidateDeveloperAppWallet, createAppTokenCache, createBipUpdate, createConsoleLogger, 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, distributePot, distributeTronPot, editMessage, endPlaySession, 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, getIntentStatus, getLibrary, getMoonpayAvailability, getMyBipEngagement, getMyBipUpdateReactions, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronGameBalance, getTronSecurity, heartbeatPlaySession, hideAppPage, hideAppPageBip, hideThread, inventoryUpdateEventSchema, 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, mintClientCredentialsToken, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, parseJson, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerBipInterest, registerDeveloperAppInventoryItem, registerOauthClient, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, requestPayout, resolveAppeal, reviewAppPage, reviewAppPageBip, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, send, sendFriendRequest, sendJson, sendMessage, sendPresenceHeartbeat, setAppPageBip, setBipUpdateReaction, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, startOauthInventoryEventsSubscriber, startOauthPaymentEventsSubscriber, 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 };