ts / dist / esm / credits.js
81 words
1
2
3
4
5
6
7
8
9
import * as http from './http.js';
/** GET /credits/balance — Credit balance. */
export const balance = (client) => http.get(client, '/credits/balance');
/** GET /credits/ledger — Credit ledger history (cursor-paginated). */
export const ledger = (client, query) => http.get(client, '/credits/ledger', { query });
/** Every ledger entry, following cursor pagination. */
export const ledgerAll = (client, query) => http.paginate(client, '/credits/ledger', 'entries', { query });
/** GET /credits/prices — Current usage prices (decimal strings). */
export const prices = (client) => http.get(client, '/credits/prices');

static mirror of HEAD · about · clone: git clone https://ird.cod-sursa.ro/ts.git