@8wave/ai-elements 0.125.0-beta.34 → 0.125.0-beta.35
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/ai-elements.es.js +6 -6
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/composables.js +6 -6
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +2 -2
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/models/src/schema/AgentChatStatistics.d.ts +27 -0
- package/dist-vue/packages/models/src/schema/CostReport.d.ts +40 -0
- package/package.json +1 -1
|
@@ -10,6 +10,9 @@ export declare const AgentChatStatisticsQuerystringSchema: z.ZodObject<{
|
|
|
10
10
|
hour: "hour";
|
|
11
11
|
}>>;
|
|
12
12
|
channels: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof ChatChannel>, z.ZodArray<z.ZodEnum<typeof ChatChannel>>]>>;
|
|
13
|
+
compare: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
previous: "previous";
|
|
15
|
+
}>>;
|
|
13
16
|
}, z.core.$strip>;
|
|
14
17
|
export type AgentChatStatisticsQuerystring = z.infer<typeof AgentChatStatisticsQuerystringSchema>;
|
|
15
18
|
export declare const AgentChatStatisticsSummarySchema: z.ZodObject<{
|
|
@@ -168,6 +171,21 @@ export declare const AgentChatStatisticsTimeSeriesItemSchema: z.ZodObject<{
|
|
|
168
171
|
costUsd: z.ZodNumber;
|
|
169
172
|
}, z.core.$strip>;
|
|
170
173
|
export type AgentChatStatisticsTimeSeriesItem = z.infer<typeof AgentChatStatisticsTimeSeriesItemSchema>;
|
|
174
|
+
/**
|
|
175
|
+
* The headline figures of the period before, same filters, same number of
|
|
176
|
+
* buckets, ending right where the requested period starts. `dateFrom` and
|
|
177
|
+
* `dateTo` are its bounds, inclusive, after the truncation to the bucket.
|
|
178
|
+
*/
|
|
179
|
+
export declare const AgentChatStatisticsPreviousSchema: z.ZodObject<{
|
|
180
|
+
totalConversations: z.ZodNumber;
|
|
181
|
+
totalMessages: z.ZodNumber;
|
|
182
|
+
uniqueUsers: z.ZodNumber;
|
|
183
|
+
avgMessagesPerChat: z.ZodNumber;
|
|
184
|
+
avgConversationsPerUser: z.ZodNumber;
|
|
185
|
+
dateFrom: z.ZodString;
|
|
186
|
+
dateTo: z.ZodString;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
export type AgentChatStatisticsPrevious = z.infer<typeof AgentChatStatisticsPreviousSchema>;
|
|
171
189
|
export declare const AgentChatStatisticsResponseSchema: z.ZodObject<{
|
|
172
190
|
summary: z.ZodObject<{
|
|
173
191
|
totalConversations: z.ZodNumber;
|
|
@@ -323,5 +341,14 @@ export declare const AgentChatStatisticsResponseSchema: z.ZodObject<{
|
|
|
323
341
|
uniqueUsers: z.ZodNumber;
|
|
324
342
|
costUsd: z.ZodNumber;
|
|
325
343
|
}, z.core.$strip>>;
|
|
344
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
345
|
+
totalConversations: z.ZodNumber;
|
|
346
|
+
totalMessages: z.ZodNumber;
|
|
347
|
+
uniqueUsers: z.ZodNumber;
|
|
348
|
+
avgMessagesPerChat: z.ZodNumber;
|
|
349
|
+
avgConversationsPerUser: z.ZodNumber;
|
|
350
|
+
dateFrom: z.ZodString;
|
|
351
|
+
dateTo: z.ZodString;
|
|
352
|
+
}, z.core.$strip>>;
|
|
326
353
|
}, z.core.$strip>;
|
|
327
354
|
export type AgentChatStatisticsResponse = z.infer<typeof AgentChatStatisticsResponseSchema>;
|
|
@@ -37,3 +37,43 @@ export declare const costReportsQuerystringSchema: z.ZodObject<{
|
|
|
37
37
|
'page[size]': z.ZodDefault<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export type CostReportsQuerystring = z.infer<typeof costReportsQuerystringSchema>;
|
|
40
|
+
/**
|
|
41
|
+
* The period and agent of the per-user consumption table of the dashboard
|
|
42
|
+
* (docs/specs/dashboard-usage-reports.md, F2). No organization: the backend
|
|
43
|
+
* reads it from the session.
|
|
44
|
+
*/
|
|
45
|
+
export declare const UserUsageQuerystringSchema: z.ZodObject<{
|
|
46
|
+
dateFrom: z.ZodCoercedDate<unknown>;
|
|
47
|
+
dateTo: z.ZodCoercedDate<unknown>;
|
|
48
|
+
agentId: z.ZodOptional<z.ZodUUID>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type UserUsageQuerystring = z.infer<typeof UserUsageQuerystringSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* What one person spent with one agent over the period. `userId`, `name`
|
|
53
|
+
* and `email` are null on the rows of the people who cannot be named:
|
|
54
|
+
* anonymous visitors, unverified platform users and erased accounts, summed
|
|
55
|
+
* per agent.
|
|
56
|
+
*/
|
|
57
|
+
export declare const UserUsageRowSchema: z.ZodObject<{
|
|
58
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
59
|
+
name: z.ZodNullable<z.ZodString>;
|
|
60
|
+
email: z.ZodNullable<z.ZodString>;
|
|
61
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
conversations: z.ZodNumber;
|
|
63
|
+
tokens: z.ZodNumber;
|
|
64
|
+
cost: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type UserUsageRow = z.infer<typeof UserUsageRowSchema>;
|
|
67
|
+
export declare const UserUsageSchema: z.ZodObject<{
|
|
68
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
69
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
70
|
+
name: z.ZodNullable<z.ZodString>;
|
|
71
|
+
email: z.ZodNullable<z.ZodString>;
|
|
72
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
73
|
+
conversations: z.ZodNumber;
|
|
74
|
+
tokens: z.ZodNumber;
|
|
75
|
+
cost: z.ZodNumber;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
unidentifiedUsers: z.ZodNumber;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type UserUsage = z.infer<typeof UserUsageSchema>;
|