@metatrongg/sdk 0.8.0-dev.731f2ff → 0.8.0-dev.a250d62
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 +423 -7
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +6525 -3768
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +473 -7
- 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 +3 -2
package/dist/browser/index.d.ts
CHANGED
|
@@ -246,6 +246,7 @@ type OauthPaymentIntentContext = {
|
|
|
246
246
|
studioXHandle: string | null;
|
|
247
247
|
};
|
|
248
248
|
} | null;
|
|
249
|
+
environment: "development" | "production";
|
|
249
250
|
};
|
|
250
251
|
type OauthPaymentIntentSignResponse = {
|
|
251
252
|
chain: string;
|
|
@@ -606,7 +607,9 @@ type ActivityRow = ({
|
|
|
606
607
|
kind: "tron_transfer";
|
|
607
608
|
} & ActivityRowTronTransfer) | ({
|
|
608
609
|
kind: "referral_earning";
|
|
609
|
-
} & ActivityRowReferralEarning)
|
|
610
|
+
} & ActivityRowReferralEarning) | ({
|
|
611
|
+
kind: "nft_charge";
|
|
612
|
+
} & ActivityRowNftCharge);
|
|
610
613
|
type ActivityRowPayment = {
|
|
611
614
|
kind: "payment";
|
|
612
615
|
groupId: string | null;
|
|
@@ -918,6 +921,22 @@ type ActivityRowReferralEarning = {
|
|
|
918
921
|
logIndex: number;
|
|
919
922
|
usdCents: number | null;
|
|
920
923
|
};
|
|
924
|
+
type ActivityRowNftCharge = {
|
|
925
|
+
kind: "nft_charge";
|
|
926
|
+
groupId: string | null;
|
|
927
|
+
id: string;
|
|
928
|
+
occurredAt: string;
|
|
929
|
+
role: "outgoing";
|
|
930
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
931
|
+
amountCents: number;
|
|
932
|
+
usdCents: number;
|
|
933
|
+
status: "settled";
|
|
934
|
+
collectionAddress: string | null;
|
|
935
|
+
tokenId: string | null;
|
|
936
|
+
counterpartyUserId: string | null;
|
|
937
|
+
counterpartyHandle: string | null;
|
|
938
|
+
counterpartyDisplayName: string | null;
|
|
939
|
+
};
|
|
921
940
|
type OutstandingResponse = {
|
|
922
941
|
rows: Array<OutstandingByToken>;
|
|
923
942
|
};
|
|
@@ -967,7 +986,7 @@ type TronLedgerResponse = {
|
|
|
967
986
|
};
|
|
968
987
|
type TronLedgerEntry = {
|
|
969
988
|
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";
|
|
989
|
+
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
990
|
amountCents: number;
|
|
972
991
|
currency: string;
|
|
973
992
|
createdAt: string;
|
|
@@ -1187,7 +1206,7 @@ type ThreadLastMessagePreview = {
|
|
|
1187
1206
|
url: string;
|
|
1188
1207
|
count: number;
|
|
1189
1208
|
} | null;
|
|
1190
|
-
transaction?:
|
|
1209
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1191
1210
|
sentAt: string;
|
|
1192
1211
|
} | null;
|
|
1193
1212
|
type MessageEnvelope = {
|
|
@@ -1199,11 +1218,19 @@ type MessageEnvelope = {
|
|
|
1199
1218
|
iv: string;
|
|
1200
1219
|
ct: string;
|
|
1201
1220
|
} | null;
|
|
1202
|
-
type
|
|
1221
|
+
type MessageTransactionTronTransfer = {
|
|
1203
1222
|
kind: "tron_transfer";
|
|
1204
1223
|
amountCents: number;
|
|
1205
1224
|
recipientUserId: string;
|
|
1206
|
-
}
|
|
1225
|
+
};
|
|
1226
|
+
type MessageTransactionNftTransfer = {
|
|
1227
|
+
kind: "nft_transfer";
|
|
1228
|
+
recipientUserId: string;
|
|
1229
|
+
collectionAddress: string;
|
|
1230
|
+
tokenId: string;
|
|
1231
|
+
amount: string;
|
|
1232
|
+
itemName: string | null;
|
|
1233
|
+
};
|
|
1207
1234
|
type GroupThreadSummary = {
|
|
1208
1235
|
kind: "group";
|
|
1209
1236
|
id: string;
|
|
@@ -1250,7 +1277,7 @@ type MessageItem = {
|
|
|
1250
1277
|
id: string;
|
|
1251
1278
|
threadId: string;
|
|
1252
1279
|
senderUserId: string;
|
|
1253
|
-
transaction?:
|
|
1280
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1254
1281
|
body: string;
|
|
1255
1282
|
envelope?: MessageEnvelope;
|
|
1256
1283
|
sentAt: string;
|
|
@@ -1462,11 +1489,45 @@ type InventoryHolding = {
|
|
|
1462
1489
|
tokenId: string;
|
|
1463
1490
|
amount: string;
|
|
1464
1491
|
name: string | null;
|
|
1492
|
+
description: string | null;
|
|
1465
1493
|
imageAssetId: string | null;
|
|
1466
1494
|
bannerAssetId: string | null;
|
|
1467
1495
|
devMetadata: {
|
|
1468
1496
|
[key: string]: unknown;
|
|
1469
1497
|
};
|
|
1498
|
+
appId: string | null;
|
|
1499
|
+
appName: string | null;
|
|
1500
|
+
appLogoUrl: string | null;
|
|
1501
|
+
};
|
|
1502
|
+
type InventoryPendingPermitListResponse = {
|
|
1503
|
+
permits: Array<InventoryPendingPermit>;
|
|
1504
|
+
};
|
|
1505
|
+
type InventoryPendingPermit = {
|
|
1506
|
+
id: string;
|
|
1507
|
+
appId: string;
|
|
1508
|
+
itemId: string;
|
|
1509
|
+
amount: string;
|
|
1510
|
+
priceCents: number | null;
|
|
1511
|
+
gasSponsored: boolean;
|
|
1512
|
+
environment: "development" | "production";
|
|
1513
|
+
createdAt: string;
|
|
1514
|
+
tokenId: string;
|
|
1515
|
+
name: string | null;
|
|
1516
|
+
description: string | null;
|
|
1517
|
+
imageAssetId: string | null;
|
|
1518
|
+
chain: string;
|
|
1519
|
+
collectionAddress: string;
|
|
1520
|
+
kind: "erc721" | "erc1155";
|
|
1521
|
+
};
|
|
1522
|
+
type InventoryPermitRedeemResult = {
|
|
1523
|
+
mint: MintRequestResult;
|
|
1524
|
+
charge: {
|
|
1525
|
+
currency: "tron";
|
|
1526
|
+
gasCents: number;
|
|
1527
|
+
priceCents: number;
|
|
1528
|
+
totalCents: number;
|
|
1529
|
+
gasPaidBy: "user" | "developer";
|
|
1530
|
+
};
|
|
1470
1531
|
};
|
|
1471
1532
|
type MintRequestResult = {
|
|
1472
1533
|
mintRequestId: string;
|
|
@@ -1482,6 +1543,247 @@ type MintRequestInput = {
|
|
|
1482
1543
|
tokenId?: string;
|
|
1483
1544
|
amount?: string;
|
|
1484
1545
|
};
|
|
1546
|
+
type InventoryCollectionListResponse = {
|
|
1547
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1548
|
+
};
|
|
1549
|
+
type InventoryCollectionSummary = {
|
|
1550
|
+
id: string;
|
|
1551
|
+
chain: string;
|
|
1552
|
+
collectionAddress: string;
|
|
1553
|
+
kind: "erc721" | "erc1155";
|
|
1554
|
+
name: string | null;
|
|
1555
|
+
environment: "development" | "production";
|
|
1556
|
+
};
|
|
1557
|
+
type InventoryRegistrationQuote = {
|
|
1558
|
+
itemCount: number;
|
|
1559
|
+
baselineUsdCents: number;
|
|
1560
|
+
gasUsdCents: number;
|
|
1561
|
+
tron: {
|
|
1562
|
+
baselineCents: number;
|
|
1563
|
+
gasCents: number;
|
|
1564
|
+
totalCents: number;
|
|
1565
|
+
};
|
|
1566
|
+
eth: {
|
|
1567
|
+
baselineWei: string;
|
|
1568
|
+
gasWei: string;
|
|
1569
|
+
totalWei: string;
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
type InventoryItemRegistrationInput = {
|
|
1573
|
+
collectionAddress: string;
|
|
1574
|
+
chain: string;
|
|
1575
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1576
|
+
};
|
|
1577
|
+
type InventoryItemRegistrationSpec = {
|
|
1578
|
+
name?: string | null;
|
|
1579
|
+
description?: string | null;
|
|
1580
|
+
devMetadata?: {
|
|
1581
|
+
[key: string]: unknown;
|
|
1582
|
+
};
|
|
1583
|
+
supplyType?: InventorySupplyType;
|
|
1584
|
+
maxSupply?: string | null;
|
|
1585
|
+
active?: boolean;
|
|
1586
|
+
};
|
|
1587
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1588
|
+
type InventoryItemRegistrationResult = {
|
|
1589
|
+
items: Array<InventoryItemRecord>;
|
|
1590
|
+
charge: {
|
|
1591
|
+
currency: "tron";
|
|
1592
|
+
amountCents: number;
|
|
1593
|
+
baselineCents: number;
|
|
1594
|
+
gasCents: number;
|
|
1595
|
+
addItemTxHash: string;
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
type InventoryItemRecord = {
|
|
1599
|
+
id: string;
|
|
1600
|
+
collectionId: string;
|
|
1601
|
+
collectionAddress: string;
|
|
1602
|
+
chain: string;
|
|
1603
|
+
kind: "erc721" | "erc1155";
|
|
1604
|
+
tokenId: string;
|
|
1605
|
+
name: string | null;
|
|
1606
|
+
description: string | null;
|
|
1607
|
+
imageAssetId: string | null;
|
|
1608
|
+
bannerAssetId: string | null;
|
|
1609
|
+
devMetadata: {
|
|
1610
|
+
[key: string]: unknown;
|
|
1611
|
+
};
|
|
1612
|
+
supplyType: InventorySupplyType | null;
|
|
1613
|
+
maxSupply: string | null;
|
|
1614
|
+
active: boolean;
|
|
1615
|
+
};
|
|
1616
|
+
type InventoryItemListResponse = {
|
|
1617
|
+
items: Array<InventoryItemRecord>;
|
|
1618
|
+
};
|
|
1619
|
+
type InventoryMintPermitRecord = {
|
|
1620
|
+
id: string;
|
|
1621
|
+
appId: string;
|
|
1622
|
+
itemId: string;
|
|
1623
|
+
userId: string;
|
|
1624
|
+
amount: string;
|
|
1625
|
+
priceCents: number | null;
|
|
1626
|
+
gasSponsored: boolean;
|
|
1627
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1628
|
+
createdAt: string;
|
|
1629
|
+
};
|
|
1630
|
+
type InventoryMintPermitCreateInput = {
|
|
1631
|
+
toUserId: string;
|
|
1632
|
+
amount?: string;
|
|
1633
|
+
priceCents?: number | null;
|
|
1634
|
+
gasSponsored?: boolean;
|
|
1635
|
+
};
|
|
1636
|
+
type InventoryItemHoldersResponse = {
|
|
1637
|
+
stats: InventoryItemStats;
|
|
1638
|
+
holders: Array<InventoryItemHolder>;
|
|
1639
|
+
};
|
|
1640
|
+
type InventoryItemStats = {
|
|
1641
|
+
holderCount: number;
|
|
1642
|
+
walletCount: number;
|
|
1643
|
+
totalHeld: string;
|
|
1644
|
+
};
|
|
1645
|
+
type InventoryItemHolder = {
|
|
1646
|
+
walletAddress: string;
|
|
1647
|
+
userId: string | null;
|
|
1648
|
+
amount: string;
|
|
1649
|
+
};
|
|
1650
|
+
type InventoryVaultPermitRecord = {
|
|
1651
|
+
id: string;
|
|
1652
|
+
appId: string;
|
|
1653
|
+
itemId: string;
|
|
1654
|
+
userId: string;
|
|
1655
|
+
direction: "vault_in" | "withdraw";
|
|
1656
|
+
lockKind: "vault" | "burn" | null;
|
|
1657
|
+
amount: string;
|
|
1658
|
+
gasSponsored: boolean;
|
|
1659
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1660
|
+
custodyId: string | null;
|
|
1661
|
+
createdAt: string;
|
|
1662
|
+
};
|
|
1663
|
+
type InventoryVaultPermitCreateInput = {
|
|
1664
|
+
toUserId: string;
|
|
1665
|
+
lockKind: "vault" | "burn";
|
|
1666
|
+
amount?: string;
|
|
1667
|
+
gasSponsored?: boolean;
|
|
1668
|
+
};
|
|
1669
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1670
|
+
custodyId: string;
|
|
1671
|
+
};
|
|
1672
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1673
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1674
|
+
};
|
|
1675
|
+
type InventoryPendingVaultPermit = {
|
|
1676
|
+
id: string;
|
|
1677
|
+
appId: string;
|
|
1678
|
+
itemId: string;
|
|
1679
|
+
direction: "vault_in" | "withdraw";
|
|
1680
|
+
lockKind: "vault" | "burn" | null;
|
|
1681
|
+
amount: string;
|
|
1682
|
+
gasSponsored: boolean;
|
|
1683
|
+
environment: "development" | "production";
|
|
1684
|
+
custodyId: string | null;
|
|
1685
|
+
createdAt: string;
|
|
1686
|
+
tokenId: string;
|
|
1687
|
+
name: string | null;
|
|
1688
|
+
description: string | null;
|
|
1689
|
+
imageAssetId: string | null;
|
|
1690
|
+
chain: string;
|
|
1691
|
+
collectionAddress: string;
|
|
1692
|
+
kind: "erc721" | "erc1155";
|
|
1693
|
+
};
|
|
1694
|
+
type InventorySignedVaultPermit = {
|
|
1695
|
+
permitId: string;
|
|
1696
|
+
direction: "vault_in" | "withdraw";
|
|
1697
|
+
vault: string;
|
|
1698
|
+
collection: string;
|
|
1699
|
+
user: string;
|
|
1700
|
+
tokenId: string;
|
|
1701
|
+
amount: string;
|
|
1702
|
+
lockKind: "vault" | "burn" | null;
|
|
1703
|
+
destination: string | null;
|
|
1704
|
+
deadline: number;
|
|
1705
|
+
signature: string;
|
|
1706
|
+
};
|
|
1707
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1708
|
+
direction: "vault_in" | "withdraw";
|
|
1709
|
+
collection: string;
|
|
1710
|
+
vault: string;
|
|
1711
|
+
chainId: number;
|
|
1712
|
+
user: string;
|
|
1713
|
+
tokenId: string;
|
|
1714
|
+
amount: string;
|
|
1715
|
+
nonce: string | null;
|
|
1716
|
+
deadline: number;
|
|
1717
|
+
feeCents: number;
|
|
1718
|
+
gasWei: string;
|
|
1719
|
+
gasPaidBy: "developer" | "user";
|
|
1720
|
+
requiresUserSignature: boolean;
|
|
1721
|
+
};
|
|
1722
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
1723
|
+
ok: boolean;
|
|
1724
|
+
txHash: string;
|
|
1725
|
+
chargedCents: number;
|
|
1726
|
+
gasPaidBy: "developer" | "user";
|
|
1727
|
+
};
|
|
1728
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
1729
|
+
userSignature?: string;
|
|
1730
|
+
deadline?: number;
|
|
1731
|
+
};
|
|
1732
|
+
type InventoryNftTransferQuoteResponse = {
|
|
1733
|
+
collection: string;
|
|
1734
|
+
chainId: number;
|
|
1735
|
+
from: string;
|
|
1736
|
+
to: string;
|
|
1737
|
+
tokenId: string;
|
|
1738
|
+
amount: string;
|
|
1739
|
+
nonce: string;
|
|
1740
|
+
deadline: number;
|
|
1741
|
+
feeCents: number;
|
|
1742
|
+
gasWei: string;
|
|
1743
|
+
selfPayAvailable: boolean;
|
|
1744
|
+
};
|
|
1745
|
+
type InventoryNftTransferQuoteRequest = {
|
|
1746
|
+
toUserId: string;
|
|
1747
|
+
collection: string;
|
|
1748
|
+
tokenId: string;
|
|
1749
|
+
amount?: string;
|
|
1750
|
+
};
|
|
1751
|
+
type InventoryNftTransferResponse = {
|
|
1752
|
+
ok: boolean;
|
|
1753
|
+
txHash: string;
|
|
1754
|
+
chargedCents: number;
|
|
1755
|
+
};
|
|
1756
|
+
type InventoryNftTransferRequest = {
|
|
1757
|
+
toUserId: string;
|
|
1758
|
+
collection: string;
|
|
1759
|
+
tokenId: string;
|
|
1760
|
+
amount?: string;
|
|
1761
|
+
deadline: number;
|
|
1762
|
+
userSignature: string;
|
|
1763
|
+
threadId?: string;
|
|
1764
|
+
};
|
|
1765
|
+
type InventoryVaultCustodyListResponse = {
|
|
1766
|
+
custody: Array<InventoryVaultCustody>;
|
|
1767
|
+
};
|
|
1768
|
+
type InventoryVaultCustody = {
|
|
1769
|
+
id: string;
|
|
1770
|
+
collectionId: string;
|
|
1771
|
+
collectionAddress: string;
|
|
1772
|
+
chain: string;
|
|
1773
|
+
kind: "erc721" | "erc1155";
|
|
1774
|
+
tokenId: string;
|
|
1775
|
+
amount: string;
|
|
1776
|
+
lockKind: "vault" | "burn";
|
|
1777
|
+
vaultAddress: string;
|
|
1778
|
+
createdAt: string;
|
|
1779
|
+
name: string | null;
|
|
1780
|
+
description: string | null;
|
|
1781
|
+
imageAssetId: string | null;
|
|
1782
|
+
};
|
|
1783
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
1784
|
+
ok: boolean;
|
|
1785
|
+
txHash: string;
|
|
1786
|
+
};
|
|
1485
1787
|
type NotificationListResponse = {
|
|
1486
1788
|
notifications: Array<NotificationItem>;
|
|
1487
1789
|
unreadCount: number;
|
|
@@ -2564,6 +2866,12 @@ declare function listDevelopers(context: TransportContext, input: {
|
|
|
2564
2866
|
readonly bearer: string;
|
|
2565
2867
|
}): Promise<AdminDeveloperListResponse>;
|
|
2566
2868
|
//#endregion
|
|
2869
|
+
//#region src/admin/inventory-vault.d.ts
|
|
2870
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
2871
|
+
readonly bearer: string;
|
|
2872
|
+
readonly custodyId: string;
|
|
2873
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
2874
|
+
//#endregion
|
|
2567
2875
|
//#region src/admin/payments.d.ts
|
|
2568
2876
|
declare function getPlatformFees(context: TransportContext, input: {
|
|
2569
2877
|
readonly bearer: string;
|
|
@@ -2983,6 +3291,53 @@ declare function updateDeveloperAppContentReportStatus(context: TransportContext
|
|
|
2983
3291
|
readonly status: "acknowledged" | "dismissed";
|
|
2984
3292
|
}): Promise<AppContentReport>;
|
|
2985
3293
|
//#endregion
|
|
3294
|
+
//#region src/developer/inventory.d.ts
|
|
3295
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3296
|
+
readonly bearer: string;
|
|
3297
|
+
readonly appId: string;
|
|
3298
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3299
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3300
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3301
|
+
readonly bearer: string;
|
|
3302
|
+
readonly appId: string;
|
|
3303
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3304
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3305
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3306
|
+
readonly bearer: string;
|
|
3307
|
+
readonly appId: string;
|
|
3308
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3309
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3310
|
+
readonly bearer: string;
|
|
3311
|
+
readonly appId: string;
|
|
3312
|
+
}): Promise<InventoryItemListResponse>;
|
|
3313
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3314
|
+
readonly bearer: string;
|
|
3315
|
+
readonly appId: string;
|
|
3316
|
+
readonly itemId: string;
|
|
3317
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3318
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3319
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3320
|
+
readonly bearer: string;
|
|
3321
|
+
readonly appId: string;
|
|
3322
|
+
readonly itemId: string;
|
|
3323
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3324
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3325
|
+
readonly bearer: string;
|
|
3326
|
+
readonly appId: string;
|
|
3327
|
+
readonly itemId: string;
|
|
3328
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3329
|
+
readonly filename: string;
|
|
3330
|
+
readonly contentType: string;
|
|
3331
|
+
}): Promise<InventoryItemRecord>;
|
|
3332
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3333
|
+
readonly bearer: string;
|
|
3334
|
+
readonly appId: string;
|
|
3335
|
+
readonly itemId: string;
|
|
3336
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3337
|
+
readonly filename: string;
|
|
3338
|
+
readonly contentType: string;
|
|
3339
|
+
}): Promise<InventoryItemRecord>;
|
|
3340
|
+
//#endregion
|
|
2986
3341
|
//#region src/developer/pages.d.ts
|
|
2987
3342
|
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2988
3343
|
readonly bearer: string;
|
|
@@ -3107,6 +3462,20 @@ declare function uploadMultipart(context: TransportContext, input: {
|
|
|
3107
3462
|
readonly contentType: string;
|
|
3108
3463
|
}): Promise<unknown>;
|
|
3109
3464
|
//#endregion
|
|
3465
|
+
//#region src/developer/vault.d.ts
|
|
3466
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
3467
|
+
readonly bearer: string;
|
|
3468
|
+
readonly appId: string;
|
|
3469
|
+
readonly itemId: string;
|
|
3470
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
3471
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3472
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
3473
|
+
readonly bearer: string;
|
|
3474
|
+
readonly appId: string;
|
|
3475
|
+
readonly itemId: string;
|
|
3476
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
3477
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
3478
|
+
//#endregion
|
|
3110
3479
|
//#region src/inventory/list.d.ts
|
|
3111
3480
|
declare function listInventory(context: TransportContext, input: {
|
|
3112
3481
|
readonly bearer: string;
|
|
@@ -3115,12 +3484,55 @@ declare function listInventoryForApp(context: TransportContext, input: {
|
|
|
3115
3484
|
readonly bearer: string;
|
|
3116
3485
|
}): Promise<InventoryListResponse>;
|
|
3117
3486
|
//#endregion
|
|
3487
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
3488
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
3489
|
+
readonly bearer: string;
|
|
3490
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
3491
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
3492
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
3493
|
+
readonly bearer: string;
|
|
3494
|
+
readonly body: InventoryNftTransferRequest;
|
|
3495
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
3496
|
+
//#endregion
|
|
3497
|
+
//#region src/inventory/permits.d.ts
|
|
3498
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
3499
|
+
readonly bearer: string;
|
|
3500
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
3501
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
3502
|
+
readonly bearer: string;
|
|
3503
|
+
readonly permitId: string;
|
|
3504
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
3505
|
+
//#endregion
|
|
3118
3506
|
//#region src/inventory/request-mint.d.ts
|
|
3119
3507
|
declare function requestMint(context: TransportContext, input: {
|
|
3120
3508
|
readonly appBearer: string;
|
|
3121
3509
|
readonly body: MintRequestInput;
|
|
3122
3510
|
}): Promise<MintRequestResult>;
|
|
3123
3511
|
//#endregion
|
|
3512
|
+
//#region src/inventory/vault.d.ts
|
|
3513
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
3514
|
+
readonly bearer: string;
|
|
3515
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
3516
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
3517
|
+
readonly bearer: string;
|
|
3518
|
+
readonly permitId: string;
|
|
3519
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
3520
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
3521
|
+
readonly bearer: string;
|
|
3522
|
+
readonly permitId: string;
|
|
3523
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
3524
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
3525
|
+
readonly bearer: string;
|
|
3526
|
+
readonly permitId: string;
|
|
3527
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
3528
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
3529
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
3530
|
+
readonly bearer: string;
|
|
3531
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3532
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
3533
|
+
readonly bearer: string;
|
|
3534
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
3535
|
+
//#endregion
|
|
3124
3536
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3125
3537
|
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3126
3538
|
readonly bearer: string;
|
|
@@ -3549,6 +3961,10 @@ declare function sendFriendRequest(context: TransportContext, input: {
|
|
|
3549
3961
|
readonly bearer: string;
|
|
3550
3962
|
readonly userId: string;
|
|
3551
3963
|
}): Promise<void>;
|
|
3964
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
3965
|
+
readonly bearer: string;
|
|
3966
|
+
readonly userId: string;
|
|
3967
|
+
}): Promise<void>;
|
|
3552
3968
|
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3553
3969
|
readonly bearer: string;
|
|
3554
3970
|
readonly requestId: string;
|
|
@@ -3852,4 +4268,4 @@ type CookieTokenStoreOptions = {
|
|
|
3852
4268
|
};
|
|
3853
4269
|
declare function createCookieTokenStore(options?: CookieTokenStoreOptions): TokenStore;
|
|
3854
4270
|
//#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 };
|
|
4271
|
+
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 };
|