@meistrari/chat-nuxt 4.8.0-rc.1 → 4.8.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -195,3 +195,29 @@ export declare const dailyUsageRowSchema: z.ZodObject<{
|
|
|
195
195
|
conversationCount: z.ZodNumber;
|
|
196
196
|
}, z.core.$strip>;
|
|
197
197
|
export type DailyUsageRow = z.infer<typeof dailyUsageRowSchema>;
|
|
198
|
+
export declare const usageDashboardDaySchema: z.ZodObject<{
|
|
199
|
+
date: z.ZodString;
|
|
200
|
+
workspaceId: z.ZodString;
|
|
201
|
+
usd: z.ZodNumber;
|
|
202
|
+
credits: z.ZodNumber;
|
|
203
|
+
totalTokens: z.ZodNumber;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export type UsageDashboardDay = z.infer<typeof usageDashboardDaySchema>;
|
|
206
|
+
export declare const usageDashboardResponseSchema: z.ZodObject<{
|
|
207
|
+
timezone: z.ZodString;
|
|
208
|
+
startDate: z.ZodString;
|
|
209
|
+
endDate: z.ZodString;
|
|
210
|
+
generatedAt: z.ZodString;
|
|
211
|
+
days: z.ZodArray<z.ZodObject<{
|
|
212
|
+
date: z.ZodString;
|
|
213
|
+
workspaceId: z.ZodString;
|
|
214
|
+
usd: z.ZodNumber;
|
|
215
|
+
credits: z.ZodNumber;
|
|
216
|
+
totalTokens: z.ZodNumber;
|
|
217
|
+
}, z.core.$strip>>;
|
|
218
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
219
|
+
workspaceId: z.ZodString;
|
|
220
|
+
workspaceName: z.ZodString;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
export type UsageDashboardResponse = z.infer<typeof usageDashboardResponseSchema>;
|
|
@@ -94,3 +94,21 @@ export const dailyUsageRowSchema = z.object({
|
|
|
94
94
|
completionTokens: z.number(),
|
|
95
95
|
conversationCount: z.number(),
|
|
96
96
|
});
|
|
97
|
+
export const usageDashboardDaySchema = z.object({
|
|
98
|
+
date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
99
|
+
workspaceId: z.string(),
|
|
100
|
+
usd: z.number(),
|
|
101
|
+
credits: z.number(),
|
|
102
|
+
totalTokens: z.number(),
|
|
103
|
+
});
|
|
104
|
+
export const usageDashboardResponseSchema = z.object({
|
|
105
|
+
timezone: z.string(),
|
|
106
|
+
startDate: z.string(),
|
|
107
|
+
endDate: z.string(),
|
|
108
|
+
generatedAt: z.string(),
|
|
109
|
+
days: z.array(usageDashboardDaySchema),
|
|
110
|
+
workspaces: z.array(z.object({
|
|
111
|
+
workspaceId: z.string(),
|
|
112
|
+
workspaceName: z.string(),
|
|
113
|
+
})),
|
|
114
|
+
});
|