@insignia-education/api-sdk-js 0.15.126 → 0.15.127

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insignia-education/api-sdk-js",
3
- "version": "0.15.126",
3
+ "version": "0.15.127",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -45,7 +45,21 @@ export default class Admin {
45
45
  return this.#client.get('/admin/statistics/stripe-transactions', { from_date: fromDate, to_date: toDate });
46
46
  }
47
47
 
48
- /** Our Binance Spot account's real exchange balance (every non-zero asset) — distinct from statisticsCryptoBalances()' on-chain wallet balance. Resolves `{ available: false }` if the API key isn't configured or the request fails. */
48
+ /**
49
+ * Our Binance holdings and recent money movement — distinct from
50
+ * statisticsCryptoBalances()' on-chain wallet balance. Resolves
51
+ * `{ available, spot, earn, transactions }`:
52
+ * - `spot` — non-zero Spot balances `{ asset, free, locked }`.
53
+ * - `earn` — Simple Earn positions `{ asset, amount, type }`. Read from the
54
+ * dedicated endpoints, not the `LD*` pseudo-assets in the Spot response
55
+ * (those lag and under-report), which are stripped from `spot`.
56
+ * - `transactions` — deposits, withdrawals and Binance Pay (C2C) over
57
+ * Binance's 90-day window, newest first:
58
+ * `{ type, at, asset, amount, network, counterparty, completed }` where
59
+ * type is `deposit` | `withdrawal` | `pay-in` | `pay-out`.
60
+ *
61
+ * Resolves `{ available: false }` if the proxy isn't configured or the call fails.
62
+ */
49
63
  statisticsBinanceBalances() {
50
64
  return this.#client.get('/admin/statistics/binance-balances');
51
65
  }