Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.33.0] - 2026-09-21

### Fixed

- **`UsageQuota` now matches what `GET /usage/quota` returns.** The type declared flat `rate_limit` / `remaining` / `reset_in_seconds` fields the API never sent, so every consumer reading them got `undefined` (the MCP server's quota tool printed "undefined/min" and "[object Object]", reported by a customer on 2026-09-21). The type is now the wire shape: `limits.{requestsPerMinute,requestsPerDay,requestsPerMonth}` (`-1` = unlimited), `current.{requestsThisMinute,requestsToday}`, `remaining.{requestsThisMinute,requestsToday}`, and optional `apiKeyId`. Types only; `getUsageQuota()` forwarded the raw response all along, so runtime values are unchanged. Code that read the old flat fields must move to the nested ones (it was reading `undefined` before).

### Added

- **`UsageQuota.resetsInSeconds`**, seconds until the per-minute window resets. Optional: absent on API deployments before 2026-09-21.

## [2.32.0] - 2026-08-28

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tuteliq/sdk",
"version": "2.32.0",
"version": "2.33.0",
"description": "TypeScript SDK for Tuteliq AI child safety API - Detect bullying, grooming, and unsafe content",
"type": "module",
"main": "./dist/index.js",
Expand Down
Loading