---
agentTools:
  projectIndex: https://developers.pipefy.com/llms.txt
---

# GraphQL Changelog – Week 15/09 to 19/09

This update introduces new organization usage statistics types and queries, including AI credit usage details, while removing the `pages` field from `InterfaceType`.

## ✨ New

### Object Types

* **`AiResource`**: Represents an AI automation resource, with fields to indicate whether it is enabled and the number of times AI automation credit was used.
* **`UsageStats`**: Provides statistics related to organization usage.

  * Includes the field **`aiCredits`** (type: `UsageStatsAiCreditDetails`), which returns detailed information on AI credit usage.
* **`UsageStatsAiCreditDetails`**: Details about AI credits usage, including:

  * `active`: Whether AI credits are active.
  * `aiAutomation` / `assistants`: AI usage broken down by resource.
  * `filterDate`: A time filter to restrict results.
  * `freeAiCredit`: Free credit information.
  * `limit`: Credit limit.
  * `usage`: Number of times credits were consumed.
  * `updatedAt`: Last updated timestamp.
* **`FilterDate`**: Defines a period filter with `from` and `to` fields (both `ISO8601DateTime`).
* **`FreeAiCredit`**: Represents free AI credits with `limit` and `usage`.

### Schema Additions

* **Organization**

  * New field **`usageStats`**: Provides aggregated organization usage statistics (including AI credits).

* **Queries**

  * **`aiCreditUsageStats`**: Fetch AI credit usage statistics.

***

## 🗑️ Removed

* `pages` field removed from the **`InterfaceType`** interface.