@@ -227,28 +227,6 @@ export const shareResponseSchema = z.object({
227227
228228export type ShareResponse = z . infer < typeof shareResponseSchema >
229229
230- /**
231- * UsageStats
232- */
233-
234- export const usageStatsSchema = z . object ( {
235- success : z . boolean ( ) ,
236- data : z . object ( {
237- dates : z . array ( z . string ( ) ) , // Array of date strings
238- tasks : z . array ( z . number ( ) ) , // Array of task counts
239- tokens : z . array ( z . number ( ) ) , // Array of token counts
240- costs : z . array ( z . number ( ) ) , // Array of costs in USD
241- totals : z . object ( {
242- tasks : z . number ( ) ,
243- tokens : z . number ( ) ,
244- cost : z . number ( ) , // Total cost in USD
245- } ) ,
246- } ) ,
247- period : z . number ( ) , // Period in days (e.g., 30)
248- } )
249-
250- export type UsageStats = z . infer < typeof usageStatsSchema >
251-
252230/**
253231 * AuthService
254232 */
@@ -743,3 +721,25 @@ export type LeaveResponse = {
743721 taskId ?: string
744722 timestamp ?: string
745723}
724+
725+ /**
726+ * UsageStats
727+ */
728+
729+ export const usageStatsSchema = z . object ( {
730+ success : z . boolean ( ) ,
731+ data : z . object ( {
732+ dates : z . array ( z . string ( ) ) , // Array of date strings
733+ tasks : z . array ( z . number ( ) ) , // Array of task counts
734+ tokens : z . array ( z . number ( ) ) , // Array of token counts
735+ costs : z . array ( z . number ( ) ) , // Array of costs in USD
736+ totals : z . object ( {
737+ tasks : z . number ( ) ,
738+ tokens : z . number ( ) ,
739+ cost : z . number ( ) , // Total cost in USD
740+ } ) ,
741+ } ) ,
742+ period : z . number ( ) , // Period in days (e.g., 30)
743+ } )
744+
745+ export type UsageStats = z . infer < typeof usageStatsSchema >
0 commit comments