Repository navigation
v1.2.0
Generated from API version v2026-09-02.
Minor, not patch: one new client method. Nothing existing changed shape, so there is no upgrade step beyond installing it.
Added
get_credits()on both clients — the newGET /credits, returning the workspace's remaining credits for the current billing period asgeneration_creditsandai_credits, each aCreditBlockofavailable,limit,consumedandextra. The read
costs no credits.
Two things to know before branching on the numbers. available and limit are null on an unlimited plan — and since the generated models type nullable fields as plain int (as they do for Design.project_id), the tolerant parse is what keeps the
None readable; test for None before comparing, because available > 0 raises on an unlimited workspace. And available counts the recurring allowance only, so what a request can still spend is available + extra.
CreditsBalanceandCreditBlockare exported fromabyssale.models.