lighter-sdk-client 0.2.11
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/README.md +574 -0
- package/dist/api/exchange/change-account-tier.cjs +6 -0
- package/dist/api/exchange/change-account-tier.d.cts +14 -0
- package/dist/api/exchange/change-account-tier.d.ts +14 -0
- package/dist/api/exchange/change-account-tier.js +6 -0
- package/dist/api/exchange/fastwithdraw.cjs +6 -0
- package/dist/api/exchange/fastwithdraw.d.cts +14 -0
- package/dist/api/exchange/fastwithdraw.d.ts +14 -0
- package/dist/api/exchange/fastwithdraw.js +6 -0
- package/dist/api/exchange/index.cjs +37 -0
- package/dist/api/exchange/index.d.cts +8 -0
- package/dist/api/exchange/index.d.ts +8 -0
- package/dist/api/exchange/index.js +37 -0
- package/dist/api/exchange/notification-ack.cjs +6 -0
- package/dist/api/exchange/notification-ack.d.cts +13 -0
- package/dist/api/exchange/notification-ack.d.ts +13 -0
- package/dist/api/exchange/notification-ack.js +6 -0
- package/dist/api/exchange/send-tx-batch.cjs +6 -0
- package/dist/api/exchange/send-tx-batch.d.cts +22 -0
- package/dist/api/exchange/send-tx-batch.d.ts +22 -0
- package/dist/api/exchange/send-tx-batch.js +6 -0
- package/dist/api/exchange/send-tx.cjs +12 -0
- package/dist/api/exchange/send-tx.d.cts +33 -0
- package/dist/api/exchange/send-tx.d.ts +33 -0
- package/dist/api/exchange/send-tx.js +12 -0
- package/dist/api/exchange/tokens-create.cjs +6 -0
- package/dist/api/exchange/tokens-create.d.cts +24 -0
- package/dist/api/exchange/tokens-create.d.ts +24 -0
- package/dist/api/exchange/tokens-create.js +6 -0
- package/dist/api/exchange/tokens-revoke.cjs +6 -0
- package/dist/api/exchange/tokens-revoke.d.cts +15 -0
- package/dist/api/exchange/tokens-revoke.d.ts +15 -0
- package/dist/api/exchange/tokens-revoke.js +6 -0
- package/dist/api/info/account-by-l1-address.cjs +6 -0
- package/dist/api/info/account-by-l1-address.d.cts +28 -0
- package/dist/api/info/account-by-l1-address.d.ts +28 -0
- package/dist/api/info/account-by-l1-address.js +6 -0
- package/dist/api/info/account.cjs +6 -0
- package/dist/api/info/account.d.cts +67 -0
- package/dist/api/info/account.d.ts +67 -0
- package/dist/api/info/account.js +6 -0
- package/dist/api/info/announcement.cjs +6 -0
- package/dist/api/info/announcement.d.cts +15 -0
- package/dist/api/info/announcement.d.ts +15 -0
- package/dist/api/info/announcement.js +6 -0
- package/dist/api/info/api-keys.cjs +6 -0
- package/dist/api/info/api-keys.d.cts +19 -0
- package/dist/api/info/api-keys.d.ts +19 -0
- package/dist/api/info/api-keys.js +6 -0
- package/dist/api/info/asset-details.cjs +6 -0
- package/dist/api/info/asset-details.d.cts +26 -0
- package/dist/api/info/asset-details.d.ts +26 -0
- package/dist/api/info/asset-details.js +6 -0
- package/dist/api/info/candles.cjs +6 -0
- package/dist/api/info/candles.d.cts +23 -0
- package/dist/api/info/candles.d.ts +23 -0
- package/dist/api/info/candles.js +6 -0
- package/dist/api/info/exchange-stats.cjs +6 -0
- package/dist/api/info/exchange-stats.d.cts +11 -0
- package/dist/api/info/exchange-stats.d.ts +11 -0
- package/dist/api/info/exchange-stats.js +6 -0
- package/dist/api/info/fastbridge-info.cjs +6 -0
- package/dist/api/info/fastbridge-info.d.cts +10 -0
- package/dist/api/info/fastbridge-info.d.ts +10 -0
- package/dist/api/info/fastbridge-info.js +6 -0
- package/dist/api/info/funding-rates.cjs +6 -0
- package/dist/api/info/funding-rates.d.cts +16 -0
- package/dist/api/info/funding-rates.d.ts +16 -0
- package/dist/api/info/funding-rates.js +6 -0
- package/dist/api/info/fundings.cjs +6 -0
- package/dist/api/info/fundings.d.cts +21 -0
- package/dist/api/info/fundings.d.ts +21 -0
- package/dist/api/info/fundings.js +6 -0
- package/dist/api/info/index.cjs +85 -0
- package/dist/api/info/index.d.cts +22 -0
- package/dist/api/info/index.d.ts +22 -0
- package/dist/api/info/index.js +85 -0
- package/dist/api/info/next-nonce.cjs +6 -0
- package/dist/api/info/next-nonce.d.cts +14 -0
- package/dist/api/info/next-nonce.d.ts +14 -0
- package/dist/api/info/next-nonce.js +6 -0
- package/dist/api/info/order-book-details.cjs +8 -0
- package/dist/api/info/order-book-details.d.cts +95 -0
- package/dist/api/info/order-book-details.d.ts +95 -0
- package/dist/api/info/order-book-details.js +8 -0
- package/dist/api/info/order-books.cjs +6 -0
- package/dist/api/info/order-books.d.cts +16 -0
- package/dist/api/info/order-books.d.ts +16 -0
- package/dist/api/info/order-books.js +6 -0
- package/dist/api/info/recent-trades.cjs +6 -0
- package/dist/api/info/recent-trades.d.cts +11 -0
- package/dist/api/info/recent-trades.d.ts +11 -0
- package/dist/api/info/recent-trades.js +6 -0
- package/dist/api/info/root-info.cjs +6 -0
- package/dist/api/info/root-info.d.cts +8 -0
- package/dist/api/info/root-info.d.ts +8 -0
- package/dist/api/info/root-info.js +6 -0
- package/dist/api/info/root-status.cjs +6 -0
- package/dist/api/info/root-status.d.cts +10 -0
- package/dist/api/info/root-status.d.ts +10 -0
- package/dist/api/info/root-status.js +6 -0
- package/dist/api/info/tx-from-l1-hash.cjs +6 -0
- package/dist/api/info/tx-from-l1-hash.d.cts +9 -0
- package/dist/api/info/tx-from-l1-hash.d.ts +9 -0
- package/dist/api/info/tx-from-l1-hash.js +6 -0
- package/dist/api/info/tx.cjs +6 -0
- package/dist/api/info/tx.d.cts +33 -0
- package/dist/api/info/tx.d.ts +33 -0
- package/dist/api/info/tx.js +6 -0
- package/dist/api/info/txs.cjs +6 -0
- package/dist/api/info/txs.d.cts +11 -0
- package/dist/api/info/txs.d.ts +11 -0
- package/dist/api/info/txs.js +6 -0
- package/dist/api/info/withdrawal-delay.cjs +6 -0
- package/dist/api/info/withdrawal-delay.d.cts +8 -0
- package/dist/api/info/withdrawal-delay.d.ts +8 -0
- package/dist/api/info/withdrawal-delay.js +6 -0
- package/dist/api/info-private/account-active-orders.cjs +6 -0
- package/dist/api/info-private/account-active-orders.d.cts +11 -0
- package/dist/api/info-private/account-active-orders.d.ts +11 -0
- package/dist/api/info-private/account-active-orders.js +6 -0
- package/dist/api/info-private/account-inactive-orders.cjs +6 -0
- package/dist/api/info-private/account-inactive-orders.d.cts +52 -0
- package/dist/api/info-private/account-inactive-orders.d.ts +52 -0
- package/dist/api/info-private/account-inactive-orders.js +6 -0
- package/dist/api/info-private/account-limits.cjs +6 -0
- package/dist/api/info-private/account-limits.d.cts +16 -0
- package/dist/api/info-private/account-limits.d.ts +16 -0
- package/dist/api/info-private/account-limits.js +6 -0
- package/dist/api/info-private/account-metadata.cjs +6 -0
- package/dist/api/info-private/account-metadata.d.cts +22 -0
- package/dist/api/info-private/account-metadata.d.ts +22 -0
- package/dist/api/info-private/account-metadata.js +6 -0
- package/dist/api/info-private/deposit-history.cjs +6 -0
- package/dist/api/info-private/deposit-history.d.cts +27 -0
- package/dist/api/info-private/deposit-history.d.ts +27 -0
- package/dist/api/info-private/deposit-history.js +6 -0
- package/dist/api/info-private/export.cjs +6 -0
- package/dist/api/info-private/export.d.cts +16 -0
- package/dist/api/info-private/export.d.ts +16 -0
- package/dist/api/info-private/export.js +6 -0
- package/dist/api/info-private/fastwithdraw-info.cjs +6 -0
- package/dist/api/info-private/fastwithdraw-info.d.cts +16 -0
- package/dist/api/info-private/fastwithdraw-info.d.ts +16 -0
- package/dist/api/info-private/fastwithdraw-info.js +6 -0
- package/dist/api/info-private/index.cjs +75 -0
- package/dist/api/info-private/index.d.cts +19 -0
- package/dist/api/info-private/index.d.ts +19 -0
- package/dist/api/info-private/index.js +75 -0
- package/dist/api/info-private/l1-metadata.cjs +6 -0
- package/dist/api/info-private/l1-metadata.d.cts +16 -0
- package/dist/api/info-private/l1-metadata.d.ts +16 -0
- package/dist/api/info-private/l1-metadata.js +6 -0
- package/dist/api/info-private/liquidations.cjs +6 -0
- package/dist/api/info-private/liquidations.d.cts +66 -0
- package/dist/api/info-private/liquidations.d.ts +66 -0
- package/dist/api/info-private/liquidations.js +6 -0
- package/dist/api/info-private/pnl.cjs +6 -0
- package/dist/api/info-private/pnl.d.cts +24 -0
- package/dist/api/info-private/pnl.d.ts +24 -0
- package/dist/api/info-private/pnl.js +6 -0
- package/dist/api/info-private/position-funding.cjs +6 -0
- package/dist/api/info-private/position-funding.d.cts +28 -0
- package/dist/api/info-private/position-funding.d.ts +28 -0
- package/dist/api/info-private/position-funding.js +6 -0
- package/dist/api/info-private/public-pools-metadata.cjs +6 -0
- package/dist/api/info-private/public-pools-metadata.d.cts +24 -0
- package/dist/api/info-private/public-pools-metadata.d.ts +24 -0
- package/dist/api/info-private/public-pools-metadata.js +6 -0
- package/dist/api/info-private/referral-points.cjs +6 -0
- package/dist/api/info-private/referral-points.d.cts +24 -0
- package/dist/api/info-private/referral-points.d.ts +24 -0
- package/dist/api/info-private/referral-points.js +6 -0
- package/dist/api/info-private/tokens.cjs +6 -0
- package/dist/api/info-private/tokens.d.cts +24 -0
- package/dist/api/info-private/tokens.d.ts +24 -0
- package/dist/api/info-private/tokens.js +6 -0
- package/dist/api/info-private/trades.cjs +6 -0
- package/dist/api/info-private/trades.d.cts +49 -0
- package/dist/api/info-private/trades.d.ts +49 -0
- package/dist/api/info-private/trades.js +6 -0
- package/dist/api/info-private/transfer-fee-info.cjs +6 -0
- package/dist/api/info-private/transfer-fee-info.d.cts +15 -0
- package/dist/api/info-private/transfer-fee-info.d.ts +15 -0
- package/dist/api/info-private/transfer-fee-info.js +6 -0
- package/dist/api/info-private/transfer-history.cjs +6 -0
- package/dist/api/info-private/transfer-history.d.cts +27 -0
- package/dist/api/info-private/transfer-history.d.ts +27 -0
- package/dist/api/info-private/transfer-history.js +6 -0
- package/dist/api/info-private/withdraw-history.cjs +6 -0
- package/dist/api/info-private/withdraw-history.d.cts +27 -0
- package/dist/api/info-private/withdraw-history.d.ts +27 -0
- package/dist/api/info-private/withdraw-history.js +6 -0
- package/dist/chunk-2R5COGAH.cjs +10 -0
- package/dist/chunk-3OSXAPI3.js +8 -0
- package/dist/chunk-3R4OL3TU.cjs +17 -0
- package/dist/chunk-3SKO62BC.js +0 -0
- package/dist/chunk-3Y76Q54G.js +18 -0
- package/dist/chunk-3ZIFHX7Q.cjs +1 -0
- package/dist/chunk-467IJZRE.js +14 -0
- package/dist/chunk-472ULOSN.js +10 -0
- package/dist/chunk-4LNJ2577.js +17 -0
- package/dist/chunk-4MZ3XQUJ.cjs +13 -0
- package/dist/chunk-4TIJW7PH.cjs +14 -0
- package/dist/chunk-4VAZ7ZA2.js +10 -0
- package/dist/chunk-5JDRAN7L.cjs +22 -0
- package/dist/chunk-5P5CPB5A.js +18 -0
- package/dist/chunk-5U6X6DI7.cjs +13 -0
- package/dist/chunk-5WEMEUUI.js +22 -0
- package/dist/chunk-5YGIBBTZ.js +357 -0
- package/dist/chunk-62KDFQ7D.js +367 -0
- package/dist/chunk-6CD3YMMG.cjs +1 -0
- package/dist/chunk-6GCE6YQR.cjs +8 -0
- package/dist/chunk-6LUEPRL7.cjs +16 -0
- package/dist/chunk-76SPKVHT.js +48 -0
- package/dist/chunk-77QSYYAW.js +13 -0
- package/dist/chunk-7U2USLAM.cjs +8 -0
- package/dist/chunk-A2APDMN3.js +13 -0
- package/dist/chunk-AKEQDKGA.js +167 -0
- package/dist/chunk-AMNDQGYL.js +18 -0
- package/dist/chunk-BA2QFD27.cjs +19 -0
- package/dist/chunk-BES73YEF.js +8 -0
- package/dist/chunk-BKIL4UXV.cjs +22 -0
- package/dist/chunk-BKJGDTS3.js +8 -0
- package/dist/chunk-BVC2AA7Y.cjs +8 -0
- package/dist/chunk-BXMXWCMD.js +13 -0
- package/dist/chunk-C7OTZCGC.js +0 -0
- package/dist/chunk-DCKMNDS3.js +0 -0
- package/dist/chunk-DOZF64YC.cjs +17 -0
- package/dist/chunk-DW6W5SX2.cjs +18 -0
- package/dist/chunk-E3GJJZER.cjs +8 -0
- package/dist/chunk-EBSW5ZYW.js +19 -0
- package/dist/chunk-F24JA2OV.cjs +22 -0
- package/dist/chunk-FJJWUBKM.js +17 -0
- package/dist/chunk-FM4WWIRI.cjs +17 -0
- package/dist/chunk-FODEDUT4.js +8 -0
- package/dist/chunk-GEWTGUEG.cjs +1 -0
- package/dist/chunk-GI4WUHSL.cjs +1 -0
- package/dist/chunk-GYABNQWH.js +8 -0
- package/dist/chunk-GYQ6HJQY.cjs +21 -0
- package/dist/chunk-INCL3WRA.cjs +13 -0
- package/dist/chunk-IQQRFW4A.cjs +8 -0
- package/dist/chunk-IT6LK2G5.cjs +19 -0
- package/dist/chunk-IXF4QUC6.js +8 -0
- package/dist/chunk-J3UZK77O.cjs +18 -0
- package/dist/chunk-J7GXRK7R.cjs +19 -0
- package/dist/chunk-JNTYHWDJ.js +22 -0
- package/dist/chunk-JTE4UBAX.js +8 -0
- package/dist/chunk-JTP6DTDN.js +0 -0
- package/dist/chunk-K7ZQARON.js +8 -0
- package/dist/chunk-KV6G2ZCR.js +539 -0
- package/dist/chunk-L5SDFTHR.cjs +242 -0
- package/dist/chunk-LBVNEQ5R.cjs +21 -0
- package/dist/chunk-LYNZNSLV.js +18 -0
- package/dist/chunk-MAPH47LH.cjs +1 -0
- package/dist/chunk-MO4PMYTS.js +0 -0
- package/dist/chunk-MOMFTZ7N.cjs +357 -0
- package/dist/chunk-MZCKU6FF.js +8 -0
- package/dist/chunk-NIMYOIVU.cjs +1 -0
- package/dist/chunk-NIT6TCVS.cjs +8 -0
- package/dist/chunk-NOFXPTLU.js +8 -0
- package/dist/chunk-NRZGE42C.js +23 -0
- package/dist/chunk-NSFKW27X.js +0 -0
- package/dist/chunk-O3PA6HV2.js +18 -0
- package/dist/chunk-ON64OVOQ.cjs +20 -0
- package/dist/chunk-OPSCTD6W.js +17 -0
- package/dist/chunk-P32EPCEM.js +19 -0
- package/dist/chunk-PEALQBVN.js +19 -0
- package/dist/chunk-PP4Q2W66.cjs +10 -0
- package/dist/chunk-PPU2VWXX.js +12 -0
- package/dist/chunk-Q2MT7FZ7.js +242 -0
- package/dist/chunk-QCE5PEXE.cjs +8 -0
- package/dist/chunk-QMXZQNBK.cjs +8 -0
- package/dist/chunk-QNM3HYIV.cjs +8 -0
- package/dist/chunk-QXGO7TJ2.js +17 -0
- package/dist/chunk-RGVFMOQI.js +20 -0
- package/dist/chunk-RYDJEI67.cjs +48 -0
- package/dist/chunk-S4OE3IME.js +13 -0
- package/dist/chunk-SA6CXVP6.js +22 -0
- package/dist/chunk-SK6Y2YH6.js +0 -0
- package/dist/chunk-TELGVFFP.js +13 -0
- package/dist/chunk-TPGO4YD3.js +21 -0
- package/dist/chunk-TSHQJVUP.js +0 -0
- package/dist/chunk-TWGXKYO2.cjs +23 -0
- package/dist/chunk-U25GSCR7.cjs +17 -0
- package/dist/chunk-U2SM46CP.cjs +17 -0
- package/dist/chunk-UICTRTWB.cjs +367 -0
- package/dist/chunk-UORSMHI2.js +21 -0
- package/dist/chunk-VDBWTSBC.cjs +1 -0
- package/dist/chunk-VNQKWIQG.cjs +13 -0
- package/dist/chunk-VT3N7TOX.js +325 -0
- package/dist/chunk-VW77SNCY.js +24 -0
- package/dist/chunk-W2BVNVOC.cjs +1 -0
- package/dist/chunk-W2CTGWUW.cjs +539 -0
- package/dist/chunk-W5VY4TWP.js +16 -0
- package/dist/chunk-WDQ4YM6C.cjs +167 -0
- package/dist/chunk-WK6OQRMG.cjs +8 -0
- package/dist/chunk-WWLOQFSW.cjs +12 -0
- package/dist/chunk-X7E6XJVQ.cjs +18 -0
- package/dist/chunk-XOG6T533.cjs +18 -0
- package/dist/chunk-XPZBVL56.cjs +325 -0
- package/dist/chunk-XQGOXCT4.js +22 -0
- package/dist/chunk-YVJVFJ24.cjs +19 -0
- package/dist/chunk-YWN57BJF.js +8 -0
- package/dist/chunk-Z5XTWR2A.cjs +8 -0
- package/dist/chunk-ZDNQFOED.js +17 -0
- package/dist/chunk-ZGWYI7Q2.cjs +24 -0
- package/dist/chunk-ZIMFMYT2.cjs +22 -0
- package/dist/chunk-ZJVQD6JD.cjs +18 -0
- package/dist/chunk-ZKFXRN6W.cjs +13 -0
- package/dist/chunk-ZWYNOAL3.js +19 -0
- package/dist/client/exchange-client.cjs +14 -0
- package/dist/client/exchange-client.d.cts +352 -0
- package/dist/client/exchange-client.d.ts +352 -0
- package/dist/client/exchange-client.js +14 -0
- package/dist/client/index.cjs +71 -0
- package/dist/client/index.d.cts +53 -0
- package/dist/client/index.d.ts +53 -0
- package/dist/client/index.js +71 -0
- package/dist/client/info-client.cjs +27 -0
- package/dist/client/info-client.d.cts +255 -0
- package/dist/client/info-client.d.ts +255 -0
- package/dist/client/info-client.js +27 -0
- package/dist/client/info-private-client.cjs +25 -0
- package/dist/client/info-private-client.d.cts +293 -0
- package/dist/client/info-private-client.d.ts +293 -0
- package/dist/client/info-private-client.js +25 -0
- package/dist/client/l1-bridge-client.cjs +6 -0
- package/dist/client/l1-bridge-client.d.cts +45 -0
- package/dist/client/l1-bridge-client.d.ts +45 -0
- package/dist/client/l1-bridge-client.js +6 -0
- package/dist/client/ws-client.cjs +6 -0
- package/dist/client/ws-client.d.cts +63 -0
- package/dist/client/ws-client.d.ts +63 -0
- package/dist/client/ws-client.js +6 -0
- package/dist/index.cjs +79 -0
- package/dist/index.d.cts +53 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +79 -0
- package/dist/signing/index.cjs +7 -0
- package/dist/signing/index.d.cts +1 -0
- package/dist/signing/index.d.ts +1 -0
- package/dist/signing/index.js +7 -0
- package/dist/signing/wasm-signer.cjs +6 -0
- package/dist/signing/wasm-signer.d.cts +101 -0
- package/dist/signing/wasm-signer.d.ts +101 -0
- package/dist/signing/wasm-signer.js +6 -0
- package/dist/types/bridge.cjs +1 -0
- package/dist/types/bridge.d.cts +24 -0
- package/dist/types/bridge.d.ts +24 -0
- package/dist/types/bridge.js +1 -0
- package/dist/types/index.cjs +3 -0
- package/dist/types/index.d.cts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +3 -0
- package/dist/types/ws.cjs +1 -0
- package/dist/types/ws.d.cts +351 -0
- package/dist/types/ws.d.ts +351 -0
- package/dist/types/ws.js +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ChangeAccountTierRequest, ChangeAccountTierResponse, changeAccountTier } from './change-account-tier.cjs';
|
|
2
|
+
export { FastWithdrawRequest, FastWithdrawResponse, fastWithdraw } from './fastwithdraw.cjs';
|
|
3
|
+
export { NotificationAckRequest, NotificationAckResponse, acknowledgeNotification } from './notification-ack.cjs';
|
|
4
|
+
export { SendTransactionRequest, SendTxFormRequest, SendTxWithIndicesRequest, TxHashResponse, sendTransaction, sendTx, sendTxJson, sendTxWithIndices } from './send-tx.cjs';
|
|
5
|
+
export { SendTransactionBatchFormRequest, SendTransactionBatchJsonRequest, SendTransactionBatchRequest, TxHashesResponse, sendTransactionBatch } from './send-tx-batch.cjs';
|
|
6
|
+
export { TokensCreateRequest, TokensCreateResponse, createToken } from './tokens-create.cjs';
|
|
7
|
+
export { TokensRevokeRequest, TokensRevokeResponse, revokeToken } from './tokens-revoke.cjs';
|
|
8
|
+
import 'axios';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ChangeAccountTierRequest, ChangeAccountTierResponse, changeAccountTier } from './change-account-tier.js';
|
|
2
|
+
export { FastWithdrawRequest, FastWithdrawResponse, fastWithdraw } from './fastwithdraw.js';
|
|
3
|
+
export { NotificationAckRequest, NotificationAckResponse, acknowledgeNotification } from './notification-ack.js';
|
|
4
|
+
export { SendTransactionRequest, SendTxFormRequest, SendTxWithIndicesRequest, TxHashResponse, sendTransaction, sendTx, sendTxJson, sendTxWithIndices } from './send-tx.js';
|
|
5
|
+
export { SendTransactionBatchFormRequest, SendTransactionBatchJsonRequest, SendTransactionBatchRequest, TxHashesResponse, sendTransactionBatch } from './send-tx-batch.js';
|
|
6
|
+
export { TokensCreateRequest, TokensCreateResponse, createToken } from './tokens-create.js';
|
|
7
|
+
export { TokensRevokeRequest, TokensRevokeResponse, revokeToken } from './tokens-revoke.js';
|
|
8
|
+
import 'axios';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "../../chunk-DCKMNDS3.js";
|
|
2
|
+
import {
|
|
3
|
+
sendTransactionBatch
|
|
4
|
+
} from "../../chunk-JNTYHWDJ.js";
|
|
5
|
+
import {
|
|
6
|
+
sendTransaction,
|
|
7
|
+
sendTx,
|
|
8
|
+
sendTxJson,
|
|
9
|
+
sendTxWithIndices
|
|
10
|
+
} from "../../chunk-76SPKVHT.js";
|
|
11
|
+
import {
|
|
12
|
+
createToken
|
|
13
|
+
} from "../../chunk-VW77SNCY.js";
|
|
14
|
+
import {
|
|
15
|
+
revokeToken
|
|
16
|
+
} from "../../chunk-UORSMHI2.js";
|
|
17
|
+
import {
|
|
18
|
+
changeAccountTier
|
|
19
|
+
} from "../../chunk-5WEMEUUI.js";
|
|
20
|
+
import {
|
|
21
|
+
fastWithdraw
|
|
22
|
+
} from "../../chunk-SA6CXVP6.js";
|
|
23
|
+
import {
|
|
24
|
+
acknowledgeNotification
|
|
25
|
+
} from "../../chunk-FJJWUBKM.js";
|
|
26
|
+
export {
|
|
27
|
+
acknowledgeNotification,
|
|
28
|
+
changeAccountTier,
|
|
29
|
+
createToken,
|
|
30
|
+
fastWithdraw,
|
|
31
|
+
revokeToken,
|
|
32
|
+
sendTransaction,
|
|
33
|
+
sendTransactionBatch,
|
|
34
|
+
sendTx,
|
|
35
|
+
sendTxJson,
|
|
36
|
+
sendTxWithIndices
|
|
37
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface NotificationAckRequest {
|
|
4
|
+
notif_id: string;
|
|
5
|
+
account_index: number;
|
|
6
|
+
}
|
|
7
|
+
interface NotificationAckResponse {
|
|
8
|
+
code: number;
|
|
9
|
+
message?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function acknowledgeNotification(client: AxiosInstance, params: NotificationAckRequest, authorization?: string): Promise<NotificationAckResponse>;
|
|
12
|
+
|
|
13
|
+
export { type NotificationAckRequest, type NotificationAckResponse, acknowledgeNotification };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface NotificationAckRequest {
|
|
4
|
+
notif_id: string;
|
|
5
|
+
account_index: number;
|
|
6
|
+
}
|
|
7
|
+
interface NotificationAckResponse {
|
|
8
|
+
code: number;
|
|
9
|
+
message?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function acknowledgeNotification(client: AxiosInstance, params: NotificationAckRequest, authorization?: string): Promise<NotificationAckResponse>;
|
|
12
|
+
|
|
13
|
+
export { type NotificationAckRequest, type NotificationAckResponse, acknowledgeNotification };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface SendTransactionBatchFormRequest {
|
|
4
|
+
tx_types: string;
|
|
5
|
+
tx_infos: string;
|
|
6
|
+
}
|
|
7
|
+
interface SendTransactionBatchJsonRequest {
|
|
8
|
+
account_index: number;
|
|
9
|
+
api_key_index: number;
|
|
10
|
+
transactions: string[];
|
|
11
|
+
}
|
|
12
|
+
type SendTransactionBatchRequest = SendTransactionBatchFormRequest | SendTransactionBatchJsonRequest;
|
|
13
|
+
interface TxHashesResponse {
|
|
14
|
+
hashes?: string[];
|
|
15
|
+
tx_hash?: string[];
|
|
16
|
+
code?: number;
|
|
17
|
+
message?: string;
|
|
18
|
+
predicted_execution_time_ms?: number;
|
|
19
|
+
}
|
|
20
|
+
declare function sendTransactionBatch(client: AxiosInstance, params: SendTransactionBatchRequest): Promise<TxHashesResponse>;
|
|
21
|
+
|
|
22
|
+
export { type SendTransactionBatchFormRequest, type SendTransactionBatchJsonRequest, type SendTransactionBatchRequest, type TxHashesResponse, sendTransactionBatch };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface SendTransactionBatchFormRequest {
|
|
4
|
+
tx_types: string;
|
|
5
|
+
tx_infos: string;
|
|
6
|
+
}
|
|
7
|
+
interface SendTransactionBatchJsonRequest {
|
|
8
|
+
account_index: number;
|
|
9
|
+
api_key_index: number;
|
|
10
|
+
transactions: string[];
|
|
11
|
+
}
|
|
12
|
+
type SendTransactionBatchRequest = SendTransactionBatchFormRequest | SendTransactionBatchJsonRequest;
|
|
13
|
+
interface TxHashesResponse {
|
|
14
|
+
hashes?: string[];
|
|
15
|
+
tx_hash?: string[];
|
|
16
|
+
code?: number;
|
|
17
|
+
message?: string;
|
|
18
|
+
predicted_execution_time_ms?: number;
|
|
19
|
+
}
|
|
20
|
+
declare function sendTransactionBatch(client: AxiosInstance, params: SendTransactionBatchRequest): Promise<TxHashesResponse>;
|
|
21
|
+
|
|
22
|
+
export { type SendTransactionBatchFormRequest, type SendTransactionBatchJsonRequest, type SendTransactionBatchRequest, type TxHashesResponse, sendTransactionBatch };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkRYDJEI67cjs = require('../../chunk-RYDJEI67.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.sendTransaction = _chunkRYDJEI67cjs.sendTransaction; exports.sendTx = _chunkRYDJEI67cjs.sendTx; exports.sendTxJson = _chunkRYDJEI67cjs.sendTxJson; exports.sendTxWithIndices = _chunkRYDJEI67cjs.sendTxWithIndices;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface SendTransactionRequest {
|
|
4
|
+
account_index: number;
|
|
5
|
+
api_key_index: number;
|
|
6
|
+
transaction: string;
|
|
7
|
+
price_protection?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface SendTxFormRequest {
|
|
10
|
+
tx_type: number;
|
|
11
|
+
tx_info: string;
|
|
12
|
+
price_protection?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface SendTxWithIndicesRequest {
|
|
15
|
+
tx_type: number;
|
|
16
|
+
tx_info: string;
|
|
17
|
+
account_index: number;
|
|
18
|
+
api_key_index: number;
|
|
19
|
+
price_protection?: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface TxHashResponse {
|
|
22
|
+
hash?: string;
|
|
23
|
+
tx_hash?: string;
|
|
24
|
+
code?: number;
|
|
25
|
+
message?: string;
|
|
26
|
+
predicted_execution_time_ms?: number;
|
|
27
|
+
}
|
|
28
|
+
declare function sendTransaction(client: AxiosInstance, params: SendTransactionRequest): Promise<TxHashResponse>;
|
|
29
|
+
declare function sendTx(client: AxiosInstance, params: SendTxFormRequest): Promise<TxHashResponse>;
|
|
30
|
+
declare function sendTxWithIndices(client: AxiosInstance, params: SendTxWithIndicesRequest): Promise<TxHashResponse>;
|
|
31
|
+
declare function sendTxJson(client: AxiosInstance, params: SendTxWithIndicesRequest): Promise<TxHashResponse>;
|
|
32
|
+
|
|
33
|
+
export { type SendTransactionRequest, type SendTxFormRequest, type SendTxWithIndicesRequest, type TxHashResponse, sendTransaction, sendTx, sendTxJson, sendTxWithIndices };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface SendTransactionRequest {
|
|
4
|
+
account_index: number;
|
|
5
|
+
api_key_index: number;
|
|
6
|
+
transaction: string;
|
|
7
|
+
price_protection?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface SendTxFormRequest {
|
|
10
|
+
tx_type: number;
|
|
11
|
+
tx_info: string;
|
|
12
|
+
price_protection?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface SendTxWithIndicesRequest {
|
|
15
|
+
tx_type: number;
|
|
16
|
+
tx_info: string;
|
|
17
|
+
account_index: number;
|
|
18
|
+
api_key_index: number;
|
|
19
|
+
price_protection?: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface TxHashResponse {
|
|
22
|
+
hash?: string;
|
|
23
|
+
tx_hash?: string;
|
|
24
|
+
code?: number;
|
|
25
|
+
message?: string;
|
|
26
|
+
predicted_execution_time_ms?: number;
|
|
27
|
+
}
|
|
28
|
+
declare function sendTransaction(client: AxiosInstance, params: SendTransactionRequest): Promise<TxHashResponse>;
|
|
29
|
+
declare function sendTx(client: AxiosInstance, params: SendTxFormRequest): Promise<TxHashResponse>;
|
|
30
|
+
declare function sendTxWithIndices(client: AxiosInstance, params: SendTxWithIndicesRequest): Promise<TxHashResponse>;
|
|
31
|
+
declare function sendTxJson(client: AxiosInstance, params: SendTxWithIndicesRequest): Promise<TxHashResponse>;
|
|
32
|
+
|
|
33
|
+
export { type SendTransactionRequest, type SendTxFormRequest, type SendTxWithIndicesRequest, type TxHashResponse, sendTransaction, sendTx, sendTxJson, sendTxWithIndices };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface TokensCreateRequest {
|
|
4
|
+
name: string;
|
|
5
|
+
account_index: number;
|
|
6
|
+
expiry: number;
|
|
7
|
+
sub_account_access: boolean;
|
|
8
|
+
scopes?: string;
|
|
9
|
+
}
|
|
10
|
+
interface TokensCreateResponse {
|
|
11
|
+
code: number;
|
|
12
|
+
message?: string;
|
|
13
|
+
token_id: number;
|
|
14
|
+
api_token: string;
|
|
15
|
+
name: string;
|
|
16
|
+
account_index: number;
|
|
17
|
+
expiry: number;
|
|
18
|
+
sub_account_access: boolean;
|
|
19
|
+
revoked: boolean;
|
|
20
|
+
scopes: string;
|
|
21
|
+
}
|
|
22
|
+
declare function createToken(client: AxiosInstance, params: TokensCreateRequest, authorization?: string): Promise<TokensCreateResponse>;
|
|
23
|
+
|
|
24
|
+
export { type TokensCreateRequest, type TokensCreateResponse, createToken };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface TokensCreateRequest {
|
|
4
|
+
name: string;
|
|
5
|
+
account_index: number;
|
|
6
|
+
expiry: number;
|
|
7
|
+
sub_account_access: boolean;
|
|
8
|
+
scopes?: string;
|
|
9
|
+
}
|
|
10
|
+
interface TokensCreateResponse {
|
|
11
|
+
code: number;
|
|
12
|
+
message?: string;
|
|
13
|
+
token_id: number;
|
|
14
|
+
api_token: string;
|
|
15
|
+
name: string;
|
|
16
|
+
account_index: number;
|
|
17
|
+
expiry: number;
|
|
18
|
+
sub_account_access: boolean;
|
|
19
|
+
revoked: boolean;
|
|
20
|
+
scopes: string;
|
|
21
|
+
}
|
|
22
|
+
declare function createToken(client: AxiosInstance, params: TokensCreateRequest, authorization?: string): Promise<TokensCreateResponse>;
|
|
23
|
+
|
|
24
|
+
export { type TokensCreateRequest, type TokensCreateResponse, createToken };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface TokensRevokeRequest {
|
|
4
|
+
token_id: number;
|
|
5
|
+
account_index: number;
|
|
6
|
+
}
|
|
7
|
+
interface TokensRevokeResponse {
|
|
8
|
+
code: number;
|
|
9
|
+
message?: string;
|
|
10
|
+
token_id: number;
|
|
11
|
+
revoked: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function revokeToken(client: AxiosInstance, params: TokensRevokeRequest, authorization?: string): Promise<TokensRevokeResponse>;
|
|
14
|
+
|
|
15
|
+
export { type TokensRevokeRequest, type TokensRevokeResponse, revokeToken };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface TokensRevokeRequest {
|
|
4
|
+
token_id: number;
|
|
5
|
+
account_index: number;
|
|
6
|
+
}
|
|
7
|
+
interface TokensRevokeResponse {
|
|
8
|
+
code: number;
|
|
9
|
+
message?: string;
|
|
10
|
+
token_id: number;
|
|
11
|
+
revoked: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function revokeToken(client: AxiosInstance, params: TokensRevokeRequest, authorization?: string): Promise<TokensRevokeResponse>;
|
|
14
|
+
|
|
15
|
+
export { type TokensRevokeRequest, type TokensRevokeResponse, revokeToken };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface AccountByL1AddressRequest {
|
|
4
|
+
l1_address: string;
|
|
5
|
+
}
|
|
6
|
+
interface AccountByL1AddressInfo {
|
|
7
|
+
code: number;
|
|
8
|
+
message?: string;
|
|
9
|
+
account_type: number;
|
|
10
|
+
index: number;
|
|
11
|
+
l1_address: string;
|
|
12
|
+
cancel_all_time: number;
|
|
13
|
+
total_order_count: number;
|
|
14
|
+
total_isolated_order_count: number;
|
|
15
|
+
pending_order_count: number;
|
|
16
|
+
available_balance: string;
|
|
17
|
+
status: number;
|
|
18
|
+
collateral: string;
|
|
19
|
+
}
|
|
20
|
+
interface AccountAccountByL1AddressResponse {
|
|
21
|
+
code: number;
|
|
22
|
+
message?: string;
|
|
23
|
+
l1_address: string;
|
|
24
|
+
sub_accounts: AccountByL1AddressInfo[];
|
|
25
|
+
}
|
|
26
|
+
declare function getAccountByL1Address(client: AxiosInstance, params: AccountByL1AddressRequest): Promise<AccountAccountByL1AddressResponse>;
|
|
27
|
+
|
|
28
|
+
export { type AccountAccountByL1AddressResponse, type AccountByL1AddressInfo, type AccountByL1AddressRequest, getAccountByL1Address };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface AccountByL1AddressRequest {
|
|
4
|
+
l1_address: string;
|
|
5
|
+
}
|
|
6
|
+
interface AccountByL1AddressInfo {
|
|
7
|
+
code: number;
|
|
8
|
+
message?: string;
|
|
9
|
+
account_type: number;
|
|
10
|
+
index: number;
|
|
11
|
+
l1_address: string;
|
|
12
|
+
cancel_all_time: number;
|
|
13
|
+
total_order_count: number;
|
|
14
|
+
total_isolated_order_count: number;
|
|
15
|
+
pending_order_count: number;
|
|
16
|
+
available_balance: string;
|
|
17
|
+
status: number;
|
|
18
|
+
collateral: string;
|
|
19
|
+
}
|
|
20
|
+
interface AccountAccountByL1AddressResponse {
|
|
21
|
+
code: number;
|
|
22
|
+
message?: string;
|
|
23
|
+
l1_address: string;
|
|
24
|
+
sub_accounts: AccountByL1AddressInfo[];
|
|
25
|
+
}
|
|
26
|
+
declare function getAccountByL1Address(client: AxiosInstance, params: AccountByL1AddressRequest): Promise<AccountAccountByL1AddressResponse>;
|
|
27
|
+
|
|
28
|
+
export { type AccountAccountByL1AddressResponse, type AccountByL1AddressInfo, type AccountByL1AddressRequest, getAccountByL1Address };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface AccountRequest {
|
|
4
|
+
by: "index" | "l1_address";
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface AccountPosition {
|
|
8
|
+
market_id: number;
|
|
9
|
+
symbol: string;
|
|
10
|
+
initial_margin_fraction: string;
|
|
11
|
+
open_order_count: number;
|
|
12
|
+
pending_order_count: number;
|
|
13
|
+
position_tied_order_count: number;
|
|
14
|
+
sign: number;
|
|
15
|
+
position: string;
|
|
16
|
+
avg_entry_price: string;
|
|
17
|
+
position_value: string;
|
|
18
|
+
unrealized_pnl: string;
|
|
19
|
+
realized_pnl: string;
|
|
20
|
+
liquidation_price: string;
|
|
21
|
+
margin_mode: number;
|
|
22
|
+
allocated_margin: string;
|
|
23
|
+
}
|
|
24
|
+
interface AccountAsset {
|
|
25
|
+
symbol: string;
|
|
26
|
+
asset_id: number;
|
|
27
|
+
balance: string;
|
|
28
|
+
locked_balance: string;
|
|
29
|
+
}
|
|
30
|
+
interface AccountShare {
|
|
31
|
+
public_pool_index: number;
|
|
32
|
+
shares_amount: number;
|
|
33
|
+
entry_usdc: string;
|
|
34
|
+
}
|
|
35
|
+
interface AccountInfo {
|
|
36
|
+
code: number;
|
|
37
|
+
message?: string;
|
|
38
|
+
account_type: number;
|
|
39
|
+
index: number;
|
|
40
|
+
l1_address: string;
|
|
41
|
+
cancel_all_time: number;
|
|
42
|
+
total_order_count: number;
|
|
43
|
+
total_isolated_order_count: number;
|
|
44
|
+
pending_order_count: number;
|
|
45
|
+
available_balance: string;
|
|
46
|
+
status: number;
|
|
47
|
+
collateral: string;
|
|
48
|
+
account_index: number;
|
|
49
|
+
name: string;
|
|
50
|
+
description: string;
|
|
51
|
+
can_invite: boolean;
|
|
52
|
+
referral_points_percentage: string;
|
|
53
|
+
positions: AccountPosition[];
|
|
54
|
+
assets: AccountAsset[];
|
|
55
|
+
total_asset_value: string;
|
|
56
|
+
cross_asset_value: string;
|
|
57
|
+
shares: AccountShare[];
|
|
58
|
+
}
|
|
59
|
+
interface AccountResponse {
|
|
60
|
+
code: number;
|
|
61
|
+
message?: string;
|
|
62
|
+
total: number;
|
|
63
|
+
accounts: AccountInfo[];
|
|
64
|
+
}
|
|
65
|
+
declare function getAccountInfo(client: AxiosInstance, params: AccountRequest): Promise<AccountResponse>;
|
|
66
|
+
|
|
67
|
+
export { type AccountAsset, type AccountInfo, type AccountPosition, type AccountRequest, type AccountResponse, type AccountShare, getAccountInfo };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface AccountRequest {
|
|
4
|
+
by: "index" | "l1_address";
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface AccountPosition {
|
|
8
|
+
market_id: number;
|
|
9
|
+
symbol: string;
|
|
10
|
+
initial_margin_fraction: string;
|
|
11
|
+
open_order_count: number;
|
|
12
|
+
pending_order_count: number;
|
|
13
|
+
position_tied_order_count: number;
|
|
14
|
+
sign: number;
|
|
15
|
+
position: string;
|
|
16
|
+
avg_entry_price: string;
|
|
17
|
+
position_value: string;
|
|
18
|
+
unrealized_pnl: string;
|
|
19
|
+
realized_pnl: string;
|
|
20
|
+
liquidation_price: string;
|
|
21
|
+
margin_mode: number;
|
|
22
|
+
allocated_margin: string;
|
|
23
|
+
}
|
|
24
|
+
interface AccountAsset {
|
|
25
|
+
symbol: string;
|
|
26
|
+
asset_id: number;
|
|
27
|
+
balance: string;
|
|
28
|
+
locked_balance: string;
|
|
29
|
+
}
|
|
30
|
+
interface AccountShare {
|
|
31
|
+
public_pool_index: number;
|
|
32
|
+
shares_amount: number;
|
|
33
|
+
entry_usdc: string;
|
|
34
|
+
}
|
|
35
|
+
interface AccountInfo {
|
|
36
|
+
code: number;
|
|
37
|
+
message?: string;
|
|
38
|
+
account_type: number;
|
|
39
|
+
index: number;
|
|
40
|
+
l1_address: string;
|
|
41
|
+
cancel_all_time: number;
|
|
42
|
+
total_order_count: number;
|
|
43
|
+
total_isolated_order_count: number;
|
|
44
|
+
pending_order_count: number;
|
|
45
|
+
available_balance: string;
|
|
46
|
+
status: number;
|
|
47
|
+
collateral: string;
|
|
48
|
+
account_index: number;
|
|
49
|
+
name: string;
|
|
50
|
+
description: string;
|
|
51
|
+
can_invite: boolean;
|
|
52
|
+
referral_points_percentage: string;
|
|
53
|
+
positions: AccountPosition[];
|
|
54
|
+
assets: AccountAsset[];
|
|
55
|
+
total_asset_value: string;
|
|
56
|
+
cross_asset_value: string;
|
|
57
|
+
shares: AccountShare[];
|
|
58
|
+
}
|
|
59
|
+
interface AccountResponse {
|
|
60
|
+
code: number;
|
|
61
|
+
message?: string;
|
|
62
|
+
total: number;
|
|
63
|
+
accounts: AccountInfo[];
|
|
64
|
+
}
|
|
65
|
+
declare function getAccountInfo(client: AxiosInstance, params: AccountRequest): Promise<AccountResponse>;
|
|
66
|
+
|
|
67
|
+
export { type AccountAsset, type AccountInfo, type AccountPosition, type AccountRequest, type AccountResponse, type AccountShare, getAccountInfo };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface Announcement {
|
|
4
|
+
title: string;
|
|
5
|
+
content: string;
|
|
6
|
+
created_at: number;
|
|
7
|
+
}
|
|
8
|
+
interface AnnouncementsResponse {
|
|
9
|
+
code: number;
|
|
10
|
+
message?: string;
|
|
11
|
+
announcements: Announcement[];
|
|
12
|
+
}
|
|
13
|
+
declare function getAnnouncements(client: AxiosInstance): Promise<AnnouncementsResponse>;
|
|
14
|
+
|
|
15
|
+
export { type Announcement, type AnnouncementsResponse, getAnnouncements };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
|
|
3
|
+
interface Announcement {
|
|
4
|
+
title: string;
|
|
5
|
+
content: string;
|
|
6
|
+
created_at: number;
|
|
7
|
+
}
|
|
8
|
+
interface AnnouncementsResponse {
|
|
9
|
+
code: number;
|
|
10
|
+
message?: string;
|
|
11
|
+
announcements: Announcement[];
|
|
12
|
+
}
|
|
13
|
+
declare function getAnnouncements(client: AxiosInstance): Promise<AnnouncementsResponse>;
|
|
14
|
+
|
|
15
|
+
export { type Announcement, type AnnouncementsResponse, getAnnouncements };
|