diff --git a/.changeset/ai-credits-api.md b/.changeset/ai-credits-api.md new file mode 100644 index 0000000..800dca6 --- /dev/null +++ b/.changeset/ai-credits-api.md @@ -0,0 +1,9 @@ +--- +'@mermaidchart/sdk': patch +--- + +feat: expose AI credit remaining API in SDK + +Add `getAICredits` method to the SDK for fetching user's AI credits from `/rest-api/users/me/ai-credit-usage` endpoint + +pr: 37 diff --git a/.changeset/chubby-experts-warn.md b/.changeset/chubby-experts-warn.md new file mode 100644 index 0000000..32e82c3 --- /dev/null +++ b/.changeset/chubby-experts-warn.md @@ -0,0 +1,7 @@ +--- +'@mermaidchart/sdk': patch +--- + +fix: correct request timeout initialization order in MermaidChart constructor so the Axios instance uses the configured timeout before making requests + +pr: 36