@metatrongg/sdk 0.8.0-dev.731f2ff → 0.8.0-dev.89324f5
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.
- package/dist/browser/index.d.ts +427 -8
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +5916 -3087
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +477 -8
- package/dist/node/index.js +1 -1
- package/dist/webhook/express.js +1 -1
- package/dist/webhook/fastify.js +1 -1
- package/dist/webhook/hono.js +1 -1
- package/dist/webhook/index.js +1 -1
- package/package.json +4 -3
package/dist/browser/index.d.ts
CHANGED
|
@@ -127,7 +127,9 @@ type OauthErrorResponse = {
|
|
|
127
127
|
type OauthUserInfoResponse = {
|
|
128
128
|
sub: string;
|
|
129
129
|
name: string | null;
|
|
130
|
+
preferred_username: string | null;
|
|
130
131
|
picture: string | null;
|
|
132
|
+
wallet_address: string | null;
|
|
131
133
|
};
|
|
132
134
|
type OauthPaymentChargeResponse = ({
|
|
133
135
|
status: "completed";
|
|
@@ -246,6 +248,7 @@ type OauthPaymentIntentContext = {
|
|
|
246
248
|
studioXHandle: string | null;
|
|
247
249
|
};
|
|
248
250
|
} | null;
|
|
251
|
+
environment: "development" | "production";
|
|
249
252
|
};
|
|
250
253
|
type OauthPaymentIntentSignResponse = {
|
|
251
254
|
chain: string;
|
|
@@ -606,7 +609,9 @@ type ActivityRow = ({
|
|
|
606
609
|
kind: "tron_transfer";
|
|
607
610
|
} & ActivityRowTronTransfer) | ({
|
|
608
611
|
kind: "referral_earning";
|
|
609
|
-
} & ActivityRowReferralEarning)
|
|
612
|
+
} & ActivityRowReferralEarning) | ({
|
|
613
|
+
kind: "nft_charge";
|
|
614
|
+
} & ActivityRowNftCharge);
|
|
610
615
|
type ActivityRowPayment = {
|
|
611
616
|
kind: "payment";
|
|
612
617
|
groupId: string | null;
|
|
@@ -918,6 +923,22 @@ type ActivityRowReferralEarning = {
|
|
|
918
923
|
logIndex: number;
|
|
919
924
|
usdCents: number | null;
|
|
920
925
|
};
|
|
926
|
+
type ActivityRowNftCharge = {
|
|
927
|
+
kind: "nft_charge";
|
|
928
|
+
groupId: string | null;
|
|
929
|
+
id: string;
|
|
930
|
+
occurredAt: string;
|
|
931
|
+
role: "outgoing";
|
|
932
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
933
|
+
amountCents: number;
|
|
934
|
+
usdCents: number;
|
|
935
|
+
status: "settled";
|
|
936
|
+
collectionAddress: string | null;
|
|
937
|
+
tokenId: string | null;
|
|
938
|
+
counterpartyUserId: string | null;
|
|
939
|
+
counterpartyHandle: string | null;
|
|
940
|
+
counterpartyDisplayName: string | null;
|
|
941
|
+
};
|
|
921
942
|
type OutstandingResponse = {
|
|
922
943
|
rows: Array<OutstandingByToken>;
|
|
923
944
|
};
|
|
@@ -967,7 +988,7 @@ type TronLedgerResponse = {
|
|
|
967
988
|
};
|
|
968
989
|
type TronLedgerEntry = {
|
|
969
990
|
id: string;
|
|
970
|
-
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning" | "peer_transfer";
|
|
991
|
+
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";
|
|
971
992
|
amountCents: number;
|
|
972
993
|
currency: string;
|
|
973
994
|
createdAt: string;
|
|
@@ -1187,7 +1208,7 @@ type ThreadLastMessagePreview = {
|
|
|
1187
1208
|
url: string;
|
|
1188
1209
|
count: number;
|
|
1189
1210
|
} | null;
|
|
1190
|
-
transaction?:
|
|
1211
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1191
1212
|
sentAt: string;
|
|
1192
1213
|
} | null;
|
|
1193
1214
|
type MessageEnvelope = {
|
|
@@ -1199,11 +1220,19 @@ type MessageEnvelope = {
|
|
|
1199
1220
|
iv: string;
|
|
1200
1221
|
ct: string;
|
|
1201
1222
|
} | null;
|
|
1202
|
-
type
|
|
1223
|
+
type MessageTransactionTronTransfer = {
|
|
1203
1224
|
kind: "tron_transfer";
|
|
1204
1225
|
amountCents: number;
|
|
1205
1226
|
recipientUserId: string;
|
|
1206
|
-
}
|
|
1227
|
+
};
|
|
1228
|
+
type MessageTransactionNftTransfer = {
|
|
1229
|
+
kind: "nft_transfer";
|
|
1230
|
+
recipientUserId: string;
|
|
1231
|
+
collectionAddress: string;
|
|
1232
|
+
tokenId: string;
|
|
1233
|
+
amount: string;
|
|
1234
|
+
itemName: string | null;
|
|
1235
|
+
};
|
|
1207
1236
|
type GroupThreadSummary = {
|
|
1208
1237
|
kind: "group";
|
|
1209
1238
|
id: string;
|
|
@@ -1250,7 +1279,7 @@ type MessageItem = {
|
|
|
1250
1279
|
id: string;
|
|
1251
1280
|
threadId: string;
|
|
1252
1281
|
senderUserId: string;
|
|
1253
|
-
transaction?:
|
|
1282
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1254
1283
|
body: string;
|
|
1255
1284
|
envelope?: MessageEnvelope;
|
|
1256
1285
|
sentAt: string;
|
|
@@ -1462,11 +1491,45 @@ type InventoryHolding = {
|
|
|
1462
1491
|
tokenId: string;
|
|
1463
1492
|
amount: string;
|
|
1464
1493
|
name: string | null;
|
|
1494
|
+
description: string | null;
|
|
1465
1495
|
imageAssetId: string | null;
|
|
1466
1496
|
bannerAssetId: string | null;
|
|
1467
1497
|
devMetadata: {
|
|
1468
1498
|
[key: string]: unknown;
|
|
1469
1499
|
};
|
|
1500
|
+
appId: string | null;
|
|
1501
|
+
appName: string | null;
|
|
1502
|
+
appLogoUrl: string | null;
|
|
1503
|
+
};
|
|
1504
|
+
type InventoryPendingPermitListResponse = {
|
|
1505
|
+
permits: Array<InventoryPendingPermit>;
|
|
1506
|
+
};
|
|
1507
|
+
type InventoryPendingPermit = {
|
|
1508
|
+
id: string;
|
|
1509
|
+
appId: string;
|
|
1510
|
+
itemId: string;
|
|
1511
|
+
amount: string;
|
|
1512
|
+
priceCents: number | null;
|
|
1513
|
+
gasSponsored: boolean;
|
|
1514
|
+
environment: "development" | "production";
|
|
1515
|
+
createdAt: string;
|
|
1516
|
+
tokenId: string;
|
|
1517
|
+
name: string | null;
|
|
1518
|
+
description: string | null;
|
|
1519
|
+
imageAssetId: string | null;
|
|
1520
|
+
chain: string;
|
|
1521
|
+
collectionAddress: string;
|
|
1522
|
+
kind: "erc721" | "erc1155";
|
|
1523
|
+
};
|
|
1524
|
+
type InventoryPermitRedeemResult = {
|
|
1525
|
+
mint: MintRequestResult;
|
|
1526
|
+
charge: {
|
|
1527
|
+
currency: "tron";
|
|
1528
|
+
gasCents: number;
|
|
1529
|
+
priceCents: number;
|
|
1530
|
+
totalCents: number;
|
|
1531
|
+
gasPaidBy: "user" | "developer";
|
|
1532
|
+
};
|
|
1470
1533
|
};
|
|
1471
1534
|
type MintRequestResult = {
|
|
1472
1535
|
mintRequestId: string;
|
|
@@ -1482,6 +1545,247 @@ type MintRequestInput = {
|
|
|
1482
1545
|
tokenId?: string;
|
|
1483
1546
|
amount?: string;
|
|
1484
1547
|
};
|
|
1548
|
+
type InventoryCollectionListResponse = {
|
|
1549
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1550
|
+
};
|
|
1551
|
+
type InventoryCollectionSummary = {
|
|
1552
|
+
id: string;
|
|
1553
|
+
chain: string;
|
|
1554
|
+
collectionAddress: string;
|
|
1555
|
+
kind: "erc721" | "erc1155";
|
|
1556
|
+
name: string | null;
|
|
1557
|
+
environment: "development" | "production";
|
|
1558
|
+
};
|
|
1559
|
+
type InventoryRegistrationQuote = {
|
|
1560
|
+
itemCount: number;
|
|
1561
|
+
baselineUsdCents: number;
|
|
1562
|
+
gasUsdCents: number;
|
|
1563
|
+
tron: {
|
|
1564
|
+
baselineCents: number;
|
|
1565
|
+
gasCents: number;
|
|
1566
|
+
totalCents: number;
|
|
1567
|
+
};
|
|
1568
|
+
eth: {
|
|
1569
|
+
baselineWei: string;
|
|
1570
|
+
gasWei: string;
|
|
1571
|
+
totalWei: string;
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
type InventoryItemRegistrationInput = {
|
|
1575
|
+
collectionAddress: string;
|
|
1576
|
+
chain: string;
|
|
1577
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1578
|
+
};
|
|
1579
|
+
type InventoryItemRegistrationSpec = {
|
|
1580
|
+
name?: string | null;
|
|
1581
|
+
description?: string | null;
|
|
1582
|
+
devMetadata?: {
|
|
1583
|
+
[key: string]: unknown;
|
|
1584
|
+
};
|
|
1585
|
+
supplyType?: InventorySupplyType;
|
|
1586
|
+
maxSupply?: string | null;
|
|
1587
|
+
active?: boolean;
|
|
1588
|
+
};
|
|
1589
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1590
|
+
type InventoryItemRegistrationResult = {
|
|
1591
|
+
items: Array<InventoryItemRecord>;
|
|
1592
|
+
charge: {
|
|
1593
|
+
currency: "tron";
|
|
1594
|
+
amountCents: number;
|
|
1595
|
+
baselineCents: number;
|
|
1596
|
+
gasCents: number;
|
|
1597
|
+
addItemTxHash: string;
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1600
|
+
type InventoryItemRecord = {
|
|
1601
|
+
id: string;
|
|
1602
|
+
collectionId: string;
|
|
1603
|
+
collectionAddress: string;
|
|
1604
|
+
chain: string;
|
|
1605
|
+
kind: "erc721" | "erc1155";
|
|
1606
|
+
tokenId: string;
|
|
1607
|
+
name: string | null;
|
|
1608
|
+
description: string | null;
|
|
1609
|
+
imageAssetId: string | null;
|
|
1610
|
+
bannerAssetId: string | null;
|
|
1611
|
+
devMetadata: {
|
|
1612
|
+
[key: string]: unknown;
|
|
1613
|
+
};
|
|
1614
|
+
supplyType: InventorySupplyType | null;
|
|
1615
|
+
maxSupply: string | null;
|
|
1616
|
+
active: boolean;
|
|
1617
|
+
};
|
|
1618
|
+
type InventoryItemListResponse = {
|
|
1619
|
+
items: Array<InventoryItemRecord>;
|
|
1620
|
+
};
|
|
1621
|
+
type InventoryMintPermitRecord = {
|
|
1622
|
+
id: string;
|
|
1623
|
+
appId: string;
|
|
1624
|
+
itemId: string;
|
|
1625
|
+
userId: string;
|
|
1626
|
+
amount: string;
|
|
1627
|
+
priceCents: number | null;
|
|
1628
|
+
gasSponsored: boolean;
|
|
1629
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1630
|
+
createdAt: string;
|
|
1631
|
+
};
|
|
1632
|
+
type InventoryMintPermitCreateInput = {
|
|
1633
|
+
toUserId: string;
|
|
1634
|
+
amount?: string;
|
|
1635
|
+
priceCents?: number | null;
|
|
1636
|
+
gasSponsored?: boolean;
|
|
1637
|
+
};
|
|
1638
|
+
type InventoryItemHoldersResponse = {
|
|
1639
|
+
stats: InventoryItemStats;
|
|
1640
|
+
holders: Array<InventoryItemHolder>;
|
|
1641
|
+
};
|
|
1642
|
+
type InventoryItemStats = {
|
|
1643
|
+
holderCount: number;
|
|
1644
|
+
walletCount: number;
|
|
1645
|
+
totalHeld: string;
|
|
1646
|
+
};
|
|
1647
|
+
type InventoryItemHolder = {
|
|
1648
|
+
walletAddress: string;
|
|
1649
|
+
userId: string | null;
|
|
1650
|
+
amount: string;
|
|
1651
|
+
};
|
|
1652
|
+
type InventoryVaultPermitRecord = {
|
|
1653
|
+
id: string;
|
|
1654
|
+
appId: string;
|
|
1655
|
+
itemId: string;
|
|
1656
|
+
userId: string;
|
|
1657
|
+
direction: "vault_in" | "withdraw";
|
|
1658
|
+
lockKind: "vault" | "burn" | null;
|
|
1659
|
+
amount: string;
|
|
1660
|
+
gasSponsored: boolean;
|
|
1661
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1662
|
+
custodyId: string | null;
|
|
1663
|
+
createdAt: string;
|
|
1664
|
+
};
|
|
1665
|
+
type InventoryVaultPermitCreateInput = {
|
|
1666
|
+
toUserId: string;
|
|
1667
|
+
lockKind: "vault" | "burn";
|
|
1668
|
+
amount?: string;
|
|
1669
|
+
gasSponsored?: boolean;
|
|
1670
|
+
};
|
|
1671
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1672
|
+
custodyId: string;
|
|
1673
|
+
};
|
|
1674
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1675
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1676
|
+
};
|
|
1677
|
+
type InventoryPendingVaultPermit = {
|
|
1678
|
+
id: string;
|
|
1679
|
+
appId: string;
|
|
1680
|
+
itemId: string;
|
|
1681
|
+
direction: "vault_in" | "withdraw";
|
|
1682
|
+
lockKind: "vault" | "burn" | null;
|
|
1683
|
+
amount: string;
|
|
1684
|
+
gasSponsored: boolean;
|
|
1685
|
+
environment: "development" | "production";
|
|
1686
|
+
custodyId: string | null;
|
|
1687
|
+
createdAt: string;
|
|
1688
|
+
tokenId: string;
|
|
1689
|
+
name: string | null;
|
|
1690
|
+
description: string | null;
|
|
1691
|
+
imageAssetId: string | null;
|
|
1692
|
+
chain: string;
|
|
1693
|
+
collectionAddress: string;
|
|
1694
|
+
kind: "erc721" | "erc1155";
|
|
1695
|
+
};
|
|
1696
|
+
type InventorySignedVaultPermit = {
|
|
1697
|
+
permitId: string;
|
|
1698
|
+
direction: "vault_in" | "withdraw";
|
|
1699
|
+
vault: string;
|
|
1700
|
+
collection: string;
|
|
1701
|
+
user: string;
|
|
1702
|
+
tokenId: string;
|
|
1703
|
+
amount: string;
|
|
1704
|
+
lockKind: "vault" | "burn" | null;
|
|
1705
|
+
destination: string | null;
|
|
1706
|
+
deadline: number;
|
|
1707
|
+
signature: string;
|
|
1708
|
+
};
|
|
1709
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1710
|
+
direction: "vault_in" | "withdraw";
|
|
1711
|
+
collection: string;
|
|
1712
|
+
vault: string;
|
|
1713
|
+
chainId: number;
|
|
1714
|
+
user: string;
|
|
1715
|
+
tokenId: string;
|
|
1716
|
+
amount: string;
|
|
1717
|
+
nonce: string | null;
|
|
1718
|
+
deadline: number;
|
|
1719
|
+
feeCents: number;
|
|
1720
|
+
gasWei: string;
|
|
1721
|
+
gasPaidBy: "developer" | "user";
|
|
1722
|
+
requiresUserSignature: boolean;
|
|
1723
|
+
};
|
|
1724
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1725
|
+
ok: boolean;
|
|
1726
|
+
txHash: string;
|
|
1727
|
+
chargedCents: number;
|
|
1728
|
+
gasPaidBy: "developer" | "user";
|
|
1729
|
+
};
|
|
1730
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1731
|
+
userSignature?: string;
|
|
1732
|
+
deadline?: number;
|
|
1733
|
+
};
|
|
1734
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1735
|
+
collection: string;
|
|
1736
|
+
chainId: number;
|
|
1737
|
+
from: string;
|
|
1738
|
+
to: string;
|
|
1739
|
+
tokenId: string;
|
|
1740
|
+
amount: string;
|
|
1741
|
+
nonce: string;
|
|
1742
|
+
deadline: number;
|
|
1743
|
+
feeCents: number;
|
|
1744
|
+
gasWei: string;
|
|
1745
|
+
selfPayAvailable: boolean;
|
|
1746
|
+
};
|
|
1747
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1748
|
+
toUserId: string;
|
|
1749
|
+
collection: string;
|
|
1750
|
+
tokenId: string;
|
|
1751
|
+
amount?: string;
|
|
1752
|
+
};
|
|
1753
|
+
type InventoryNftTransferResponse = {
|
|
1754
|
+
ok: boolean;
|
|
1755
|
+
txHash: string;
|
|
1756
|
+
chargedCents: number;
|
|
1757
|
+
};
|
|
1758
|
+
type InventoryNftTransferRequest = {
|
|
1759
|
+
toUserId: string;
|
|
1760
|
+
collection: string;
|
|
1761
|
+
tokenId: string;
|
|
1762
|
+
amount?: string;
|
|
1763
|
+
deadline: number;
|
|
1764
|
+
userSignature: string;
|
|
1765
|
+
threadId?: string;
|
|
1766
|
+
};
|
|
1767
|
+
type InventoryVaultCustodyListResponse = {
|
|
1768
|
+
custody: Array<InventoryVaultCustody>;
|
|
1769
|
+
};
|
|
1770
|
+
type InventoryVaultCustody = {
|
|
1771
|
+
id: string;
|
|
1772
|
+
collectionId: string;
|
|
1773
|
+
collectionAddress: string;
|
|
1774
|
+
chain: string;
|
|
1775
|
+
kind: "erc721" | "erc1155";
|
|
1776
|
+
tokenId: string;
|
|
1777
|
+
amount: string;
|
|
1778
|
+
lockKind: "vault" | "burn";
|
|
1779
|
+
vaultAddress: string;
|
|
1780
|
+
createdAt: string;
|
|
1781
|
+
name: string | null;
|
|
1782
|
+
description: string | null;
|
|
1783
|
+
imageAssetId: string | null;
|
|
1784
|
+
};
|
|
1785
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1786
|
+
ok: boolean;
|
|
1787
|
+
txHash: string;
|
|
1788
|
+
};
|
|
1485
1789
|
type NotificationListResponse = {
|
|
1486
1790
|
notifications: Array<NotificationItem>;
|
|
1487
1791
|
unreadCount: number;
|
|
@@ -1706,6 +2010,7 @@ type CreateDeveloperAppChain = {
|
|
|
1706
2010
|
};
|
|
1707
2011
|
type UpdateDeveloperApp = {
|
|
1708
2012
|
name?: DeveloperAppName;
|
|
2013
|
+
slug?: AppPageSlug | null;
|
|
1709
2014
|
logoUrl?: string | null;
|
|
1710
2015
|
testAccess?: "private" | "public";
|
|
1711
2016
|
redirectUris?: Array<string>;
|
|
@@ -1954,6 +2259,7 @@ type DeveloperProductionRequestPayload = {
|
|
|
1954
2259
|
type DeveloperAppItem = {
|
|
1955
2260
|
id: string;
|
|
1956
2261
|
name: DeveloperAppName;
|
|
2262
|
+
slug: AppPageSlug | null;
|
|
1957
2263
|
logoUrl: string | null;
|
|
1958
2264
|
environment: "development" | "production";
|
|
1959
2265
|
productionApprovedAt: string | null;
|
|
@@ -2018,7 +2324,6 @@ type AppPageDraft = {
|
|
|
2018
2324
|
pendingReview: boolean;
|
|
2019
2325
|
};
|
|
2020
2326
|
type UpdateAppPage = {
|
|
2021
|
-
slug?: AppPageSlug | null;
|
|
2022
2327
|
categories?: AppPageCategories;
|
|
2023
2328
|
tagline?: AppPageTagline | null;
|
|
2024
2329
|
bannerUrl?: string | null;
|
|
@@ -2564,6 +2869,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2564
2869
|
readonly bearer: string;
|
|
2565
2870
|
}): Promise<AdminDeveloperListResponse>;
|
|
2566
2871
|
//#endregion
|
|
2872
|
+
//#region src/admin/inventory-vault.d.ts
|
|
2873
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
2874
|
+
readonly bearer: string;
|
|
2875
|
+
readonly custodyId: string;
|
|
2876
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
2877
|
+
//#endregion
|
|
2567
2878
|
//#region src/admin/payments.d.ts
|
|
2568
2879
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2569
2880
|
readonly bearer: string;
|
|
@@ -2983,6 +3294,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2983
3294
|
readonly status: "acknowledged" | "dismissed";
|
|
2984
3295
|
}): Promise<AppContentReport>;
|
|
2985
3296
|
//#endregion
|
|
3297
|
+
//#region src/developer/inventory.d.ts
|
|
3298
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3299
|
+
readonly bearer: string;
|
|
3300
|
+
readonly appId: string;
|
|
3301
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3302
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3303
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3304
|
+
readonly bearer: string;
|
|
3305
|
+
readonly appId: string;
|
|
3306
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3307
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3308
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3309
|
+
readonly bearer: string;
|
|
3310
|
+
readonly appId: string;
|
|
3311
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3312
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3313
|
+
readonly bearer: string;
|
|
3314
|
+
readonly appId: string;
|
|
3315
|
+
}): Promise<InventoryItemListResponse>;
|
|
3316
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3317
|
+
readonly bearer: string;
|
|
3318
|
+
readonly appId: string;
|
|
3319
|
+
readonly itemId: string;
|
|
3320
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3321
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3322
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3323
|
+
readonly bearer: string;
|
|
3324
|
+
readonly appId: string;
|
|
3325
|
+
readonly itemId: string;
|
|
3326
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3327
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3328
|
+
readonly bearer: string;
|
|
3329
|
+
readonly appId: string;
|
|
3330
|
+
readonly itemId: string;
|
|
3331
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3332
|
+
readonly filename: string;
|
|
3333
|
+
readonly contentType: string;
|
|
3334
|
+
}): Promise<InventoryItemRecord>;
|
|
3335
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3336
|
+
readonly bearer: string;
|
|
3337
|
+
readonly appId: string;
|
|
3338
|
+
readonly itemId: string;
|
|
3339
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3340
|
+
readonly filename: string;
|
|
3341
|
+
readonly contentType: string;
|
|
3342
|
+
}): Promise<InventoryItemRecord>;
|
|
3343
|
+
//#endregion
|
|
2986
3344
|
//#region src/developer/pages.d.ts
|
|
2987
3345
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2988
3346
|
readonly bearer: string;
|
|
@@ -3107,6 +3465,20 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
3107
3465
|
readonly contentType: string;
|
|
3108
3466
|
}): Promise<unknown>;
|
|
3109
3467
|
//#endregion
|
|
3468
|
+
//#region src/developer/vault.d.ts
|
|
3469
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3470
|
+
readonly bearer: string;
|
|
3471
|
+
readonly appId: string;
|
|
3472
|
+
readonly itemId: string;
|
|
3473
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3474
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3475
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3476
|
+
readonly bearer: string;
|
|
3477
|
+
readonly appId: string;
|
|
3478
|
+
readonly itemId: string;
|
|
3479
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3480
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3481
|
+
//#endregion
|
|
3110
3482
|
//#region src/inventory/list.d.ts
|
|
3111
3483
|
declare function listInventory(context: TransportContext, input: {
|
|
3112
3484
|
readonly bearer: string;
|
|
@@ -3115,12 +3487,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
3115
3487
|
readonly bearer: string;
|
|
3116
3488
|
}): Promise<InventoryListResponse>;
|
|
3117
3489
|
//#endregion
|
|
3490
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
3491
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
3492
|
+
readonly bearer: string;
|
|
3493
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
3494
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
3495
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
3496
|
+
readonly bearer: string;
|
|
3497
|
+
readonly body: InventoryNftTransferRequest;
|
|
3498
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
3499
|
+
//#endregion
|
|
3500
|
+
//#region src/inventory/permits.d.ts
|
|
3501
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
3502
|
+
readonly bearer: string;
|
|
3503
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
3504
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
3505
|
+
readonly bearer: string;
|
|
3506
|
+
readonly permitId: string;
|
|
3507
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
3508
|
+
//#endregion
|
|
3118
3509
|
//#region src/inventory/request-mint.d.ts
|
|
3119
3510
|
declare function requestMint(context: TransportContext, input: {
|
|
3120
3511
|
readonly appBearer: string;
|
|
3121
3512
|
readonly body: MintRequestInput;
|
|
3122
3513
|
}): Promise<MintRequestResult>;
|
|
3123
3514
|
//#endregion
|
|
3515
|
+
//#region src/inventory/vault.d.ts
|
|
3516
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
3517
|
+
readonly bearer: string;
|
|
3518
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
3519
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
3520
|
+
readonly bearer: string;
|
|
3521
|
+
readonly permitId: string;
|
|
3522
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
3523
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
3524
|
+
readonly bearer: string;
|
|
3525
|
+
readonly permitId: string;
|
|
3526
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
3527
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
3528
|
+
readonly bearer: string;
|
|
3529
|
+
readonly permitId: string;
|
|
3530
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
3531
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
3532
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
3533
|
+
readonly bearer: string;
|
|
3534
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3535
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
3536
|
+
readonly bearer: string;
|
|
3537
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3538
|
+
//#endregion
|
|
3124
3539
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3125
3540
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3126
3541
|
readonly bearer: string;
|
|
@@ -3549,6 +3964,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3549
3964
|
readonly bearer: string;
|
|
3550
3965
|
readonly userId: string;
|
|
3551
3966
|
}): Promise<void>;
|
|
3967
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
3968
|
+
readonly bearer: string;
|
|
3969
|
+
readonly userId: string;
|
|
3970
|
+
}): Promise<void>;
|
|
3552
3971
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3553
3972
|
readonly bearer: string;
|
|
3554
3973
|
readonly requestId: string;
|
|
@@ -3852,4 +4271,4 @@ type CookieTokenStoreOptions = {
|
|
|
3852
4271
|
};
|
|
3853
4272
|
declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
|
|
3854
4273
|
//#endregion
|
|
3855
|
-
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, createTronTransferChallenge, 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, getTronSecurity, 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, setTronSecurity, 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 };
|
|
4274
|
+
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, createDeveloperAppMintPermit, createDeveloperVaultPermit, createDeveloperWithdrawPermit, createDirectThread, createInMemoryTokenStore, createInflightDedup, createNoopLogger, createRateLimiter, createReferralCode, createTronCashout, createTronConnectOnboarding, createTronDeposit, createTronTransfer, createTronTransferChallenge, decideFriendRequest, declineDeveloperInvite, defaultEndpoints, deleteAppPageBanner, deleteAppPageThumbnail, deleteAppPageThumbnailVideo, deleteAvatar, 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, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, 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, getTronSecurity, hideAppPage, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppInventoryCollections, listDeveloperAppInventoryItems, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, 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, registerDeveloperAppInventoryItem, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, resolveAppeal, reviewAppPage, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, sendFriendRequest, sendMessage, sendPresenceHeartbeat, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, submitAppContentReport, submitAppPageForReview, submitDeveloperRequest, submitRelayedVaultPermit, 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, uploadDeveloperAppInventoryItemBanner, uploadDeveloperAppInventoryItemImage, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|