GraphQL Changelog – Week 15/09 to 19/09
about 1 month ago by ReadMe API
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.
- Includes the field
-
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 withfromandtofields (bothISO8601DateTime). -
FreeAiCredit: Represents free AI credits withlimitandusage.
Schema Additions
-
Organization
- New field
usageStats: Provides aggregated organization usage statistics (including AI credits).
- New field
-
Queries
aiCreditUsageStats: Fetch AI credit usage statistics.
🗑️ Removed
pagesfield removed from theInterfaceTypeinterface.
