@8wave/ai-elements 0.115.0-beta.13 → 0.115.0-beta.16
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 +1609 -1560
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-DtyZYAzj.js → PkChatbot-Cw5sScma.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-DtyZYAzj.js.map → PkChatbot-Cw5sScma.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-CrhRrcBs.js → PkChatbotMessages-62rYpwcM.js} +108 -99
- package/dist-vue/_chunks/PkChatbotMessages-62rYpwcM.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-B13nCznB.js → PkChatbotViewChat-ML8aaCVN.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewChat-B13nCznB.js.map → PkChatbotViewChat-ML8aaCVN.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-CHpN4vhm.js → PkChatbotViewConversations-DvmRjVND.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-CHpN4vhm.js.map → PkChatbotViewConversations-DvmRjVND.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-cRyG5X3P.js → PkChatbotViewFiles-DrMUsTv5.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-cRyG5X3P.js.map → PkChatbotViewFiles-DrMUsTv5.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-CosaHA-g.js → PkChatbotViewProfile-C1eLHU7x.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-CosaHA-g.js.map → PkChatbotViewProfile-C1eLHU7x.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BnbkymPD.js → PkToolShowDiagram-CssUiP3o.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BnbkymPD.js.map → PkToolShowDiagram-CssUiP3o.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BlWs282E.js → createChatbotApiClient-BJz36z7v.js} +110 -110
- package/dist-vue/_chunks/createChatbotApiClient-BJz36z7v.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-CMo47fnS.js → useChatbotStore-D3Q1ZgQg.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-CMo47fnS.js.map → useChatbotStore-D3Q1ZgQg.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +50 -10
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +11 -10
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +2 -0
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +5 -0
- package/dist-vue/packages/models/src/schema/AgentApiTool.d.ts +40 -8
- package/dist-vue/packages/models/src/schema/ConversationAnalysis.d.ts +6 -1
- package/dist-vue/packages/models/src/schema/McpServer.d.ts +56 -0
- package/dist-vue/packages/models/src/schema/Notification.d.ts +2 -0
- package/package.json +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-CrhRrcBs.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BlWs282E.js.map +0 -1
package/dist-vue/locales.js
CHANGED
|
@@ -266,6 +266,7 @@ var e = {
|
|
|
266
266
|
comment: "Comment",
|
|
267
267
|
file: "File",
|
|
268
268
|
message: "Message",
|
|
269
|
+
messageNumber: "Message {n}",
|
|
269
270
|
tokens: "tokens",
|
|
270
271
|
answeringOnTheCall: "Answering…",
|
|
271
272
|
conversationOutline: "Conversation outline",
|
|
@@ -858,6 +859,7 @@ var e = {
|
|
|
858
859
|
comment: "Commento",
|
|
859
860
|
file: "File",
|
|
860
861
|
message: "Messaggio",
|
|
862
|
+
messageNumber: "Messaggio {n}",
|
|
861
863
|
tokens: "token",
|
|
862
864
|
answeringOnTheCall: "Sto rispondendo…",
|
|
863
865
|
conversationOutline: "Indice della conversazione",
|
|
@@ -19,6 +19,11 @@ type __VLS_Props = {
|
|
|
19
19
|
disableHeightAdjustment?: boolean;
|
|
20
20
|
showMessageDateTime?: boolean;
|
|
21
21
|
showMessageTokensCount?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Shows each answer's position in the chat, from 1, the numbering the
|
|
24
|
+
* conversation analysis cites ("message 62").
|
|
25
|
+
*/
|
|
26
|
+
showMessageNumber?: boolean;
|
|
22
27
|
showAllMessageParts?: boolean;
|
|
23
28
|
/**
|
|
24
29
|
* Lets the user answer the tool requests rendered in the feed (approval
|
|
@@ -38,6 +38,30 @@ export declare const AgentApiToolSecretParameterDtoSchema: z.ZodObject<{
|
|
|
38
38
|
position: z.ZodEnum<typeof AgentApiToolSecretPosition>;
|
|
39
39
|
value: z.ZodOptional<z.ZodString>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
|
+
/**
|
|
42
|
+
* A header as the API returns it: its name, and whether a value is stored.
|
|
43
|
+
* Headers carry the keys of the services a tool calls (`Authorization`,
|
|
44
|
+
* `X-Api-Key`), so like the secret parameters the value never leaves the
|
|
45
|
+
* backend, the contract of the headers of the organization's model provider.
|
|
46
|
+
*/
|
|
47
|
+
export declare const AgentApiToolHeaderSchema: z.ZodObject<{
|
|
48
|
+
key: z.ZodString;
|
|
49
|
+
hasValue: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
/**
|
|
52
|
+
* Headers as a save sends them. On an update an empty value keeps the one
|
|
53
|
+
* stored under the same name, while the URL keeps its origin; a name left out
|
|
54
|
+
* is removed. A row without a name is an empty row of the form, and dropped.
|
|
55
|
+
* Two names that differ only in case are one HTTP header, so they are refused:
|
|
56
|
+
* a kept value would match the first and the request send the last.
|
|
57
|
+
*/
|
|
58
|
+
export declare const AgentApiToolHeaderListSchema: z.ZodCodec<z.ZodArray<z.ZodObject<{
|
|
59
|
+
key: z.ZodOptional<z.ZodString>;
|
|
60
|
+
value: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
62
|
+
key: z.ZodString;
|
|
63
|
+
value: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>>>;
|
|
41
65
|
/**
|
|
42
66
|
* The public parameters whose name looks like a credential: `apikey`,
|
|
43
67
|
* `api_key`, `token`, `secret` or `password` as a word of the name, in any
|
|
@@ -64,13 +88,10 @@ export declare const AgentApiToolSchema: z.ZodObject<{
|
|
|
64
88
|
description: z.ZodString;
|
|
65
89
|
method: z.ZodEnum<typeof HttpMethod>;
|
|
66
90
|
url: z.ZodString;
|
|
67
|
-
headers: z.
|
|
68
|
-
key: z.ZodOptional<z.ZodString>;
|
|
69
|
-
value: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
91
|
+
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
71
92
|
key: z.ZodString;
|
|
72
|
-
|
|
73
|
-
}, z.core.$strip
|
|
93
|
+
hasValue: z.ZodBoolean;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
74
95
|
secretParameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
75
96
|
name: z.ZodString;
|
|
76
97
|
position: z.ZodEnum<typeof AgentApiToolSecretPosition>;
|
|
@@ -98,7 +119,7 @@ export declare const AgentApiToolCreateSchema: z.ZodObject<{
|
|
|
98
119
|
value: z.ZodOptional<z.ZodString>;
|
|
99
120
|
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
100
121
|
key: z.ZodString;
|
|
101
|
-
value: z.ZodString
|
|
122
|
+
value: z.ZodOptional<z.ZodString>;
|
|
102
123
|
}, z.core.$strip>>>>>;
|
|
103
124
|
secretParameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
104
125
|
name: z.ZodString;
|
|
@@ -120,7 +141,7 @@ export declare const AgentApiToolUpdateSchema: z.ZodObject<{
|
|
|
120
141
|
value: z.ZodOptional<z.ZodString>;
|
|
121
142
|
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
122
143
|
key: z.ZodString;
|
|
123
|
-
value: z.ZodString
|
|
144
|
+
value: z.ZodOptional<z.ZodString>;
|
|
124
145
|
}, z.core.$strip>>>>>;
|
|
125
146
|
secretParameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
126
147
|
name: z.ZodString;
|
|
@@ -151,4 +172,15 @@ export type AgentApiToolCreate = z.infer<typeof AgentApiToolCreateSchema>;
|
|
|
151
172
|
export type AgentApiToolUpdate = z.infer<typeof AgentApiToolUpdateSchema>;
|
|
152
173
|
export type AgentApiToolSecretParameter = z.infer<typeof AgentApiToolSecretParameterSchema>;
|
|
153
174
|
export type AgentApiToolSecretParameterDto = z.infer<typeof AgentApiToolSecretParameterDtoSchema>;
|
|
175
|
+
export type AgentApiToolHeader = z.infer<typeof AgentApiToolHeaderSchema>;
|
|
176
|
+
export type AgentApiToolHeaderDto = z.infer<typeof AgentApiToolHeaderListSchema>[number];
|
|
177
|
+
/**
|
|
178
|
+
* A header as stored in `agent_api_tools.headers`, with `value` encrypted by
|
|
179
|
+
* `encryptSecret` (rows saved before 0.115.0 hold it in clear until their
|
|
180
|
+
* next save). Backend only: it never reaches a response.
|
|
181
|
+
*/
|
|
182
|
+
export type AgentApiToolStoredHeader = {
|
|
183
|
+
key: string;
|
|
184
|
+
value: string;
|
|
185
|
+
};
|
|
154
186
|
export type AgentApiToolQuerystring = z.infer<typeof AgentApiToolQuerystringSchema>;
|
|
@@ -23,7 +23,10 @@ export declare enum LlmIssueCategory {
|
|
|
23
23
|
DataLeak = "data_leak",
|
|
24
24
|
InappropriateTone = "inappropriate_tone",
|
|
25
25
|
RefusalLoop = "refusal_loop",
|
|
26
|
-
Repetition = "repetition"
|
|
26
|
+
Repetition = "repetition",
|
|
27
|
+
FailedAction = "failed_action",
|
|
28
|
+
EmptyReply = "empty_reply",
|
|
29
|
+
StuckFlow = "stuck_flow"
|
|
27
30
|
}
|
|
28
31
|
export declare enum ConversationAnalysisTrigger {
|
|
29
32
|
SummaryCycle = "summary_cycle",
|
|
@@ -55,6 +58,8 @@ export declare enum SentimentTrend {
|
|
|
55
58
|
Stable = "stable",
|
|
56
59
|
Degrading = "degrading"
|
|
57
60
|
}
|
|
61
|
+
/** Longest abuse or LLM issue summary an analysis stores. */
|
|
62
|
+
export declare const CONVERSATION_ANALYSIS_SUMMARY_MAX_CHARS = 1000;
|
|
58
63
|
export declare const ConversationAnalysisSchema: z.ZodObject<{
|
|
59
64
|
analyzedAt: z.ZodCoercedDate<unknown>;
|
|
60
65
|
analysisTrigger: z.ZodEnum<typeof ConversationAnalysisTrigger>;
|
|
@@ -3,6 +3,20 @@ import * as z from 'zod';
|
|
|
3
3
|
export declare const PLATFORM_MCP_SERVER_NAME = "Agents Studio Platform MCP";
|
|
4
4
|
/** Name of the per-org Platform Agent created by seedPlatformMcp.ts */
|
|
5
5
|
export declare const PLATFORM_AGENT_NAME = "Assistente piattaforma";
|
|
6
|
+
/**
|
|
7
|
+
* How long the backend may spend discovering an integration's OAuth endpoints
|
|
8
|
+
* when a user starts a sign-in (Connect in the chat, the profile, the
|
|
9
|
+
* backoffice): long enough for a server scaled to zero to start, about 45 s
|
|
10
|
+
* on one of ours. The refresh inside a chat turn keeps a short budget of its
|
|
11
|
+
* own, bound to the refresh lock.
|
|
12
|
+
*/
|
|
13
|
+
export declare const MCP_OAUTH_AUTHORIZE_DISCOVERY_BUDGET_MS = 120000;
|
|
14
|
+
/**
|
|
15
|
+
* How long a client waits for an authorize URL: the discovery above, then the
|
|
16
|
+
* client registration that may follow it. Below the 240 s the Container Apps
|
|
17
|
+
* ingress gives a request.
|
|
18
|
+
*/
|
|
19
|
+
export declare const MCP_OAUTH_AUTHORIZE_TIMEOUT_MS: number;
|
|
6
20
|
export declare enum McpServerStatus {
|
|
7
21
|
Active = "active",
|
|
8
22
|
Inactive = "inactive",
|
|
@@ -146,8 +160,50 @@ export declare const McpServerConnectionSchema: z.ZodObject<{
|
|
|
146
160
|
organizationName: z.ZodNullable<z.ZodString>;
|
|
147
161
|
connectedAt: z.ZodCoercedDate<unknown>;
|
|
148
162
|
}, z.core.$strip>;
|
|
163
|
+
/**
|
|
164
|
+
* Whether a stored sign-in still does anything, as the system user page shows
|
|
165
|
+
* it. `active`: usable now or renewable. `stale`: expired with nothing to
|
|
166
|
+
* renew it from, the next turn deletes it. `orphan`: the integration was
|
|
167
|
+
* deleted, switched off or detached from every agent, so nothing uses the
|
|
168
|
+
* sign-in, yet it is still a credential and still revocable.
|
|
169
|
+
*/
|
|
170
|
+
export declare enum McpUserConnectionStatus {
|
|
171
|
+
Active = "active",
|
|
172
|
+
Stale = "stale",
|
|
173
|
+
Orphan = "orphan"
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* One sign-in of a user, as a platform administrator sees it: every row the
|
|
177
|
+
* user owns, the orphaned ones included, since offboarding is about the
|
|
178
|
+
* credentials that are left and not only the ones in use. Never a token, a
|
|
179
|
+
* refresh token or a client secret: whether a refresh token exists is all it
|
|
180
|
+
* says about one.
|
|
181
|
+
*/
|
|
182
|
+
export declare const McpUserConnectionAdminSchema: z.ZodObject<{
|
|
183
|
+
mcpServerId: z.ZodString;
|
|
184
|
+
serverName: z.ZodString;
|
|
185
|
+
organizationId: z.ZodString;
|
|
186
|
+
organizationName: z.ZodString;
|
|
187
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
connectedAt: z.ZodCoercedDate<unknown>;
|
|
192
|
+
renewedAt: z.ZodCoercedDate<unknown>;
|
|
193
|
+
expiresAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
194
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
195
|
+
refreshable: z.ZodBoolean;
|
|
196
|
+
status: z.ZodEnum<typeof McpUserConnectionStatus>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
/** What ending a sign-in did beyond deleting our copy of the token. */
|
|
199
|
+
export declare const McpConnectionRevocationSchema: z.ZodObject<{
|
|
200
|
+
success: z.ZodBoolean;
|
|
201
|
+
revokedAtProvider: z.ZodBoolean;
|
|
202
|
+
}, z.core.$strip>;
|
|
149
203
|
export type McpServerInfo = z.infer<typeof McpServerInfoSchema>;
|
|
150
204
|
export type McpServerConnection = z.infer<typeof McpServerConnectionSchema>;
|
|
205
|
+
export type McpUserConnectionAdmin = z.infer<typeof McpUserConnectionAdminSchema>;
|
|
206
|
+
export type McpConnectionRevocation = z.infer<typeof McpConnectionRevocationSchema>;
|
|
151
207
|
export type McpServer = z.infer<typeof McpServerSchema>;
|
|
152
208
|
export type McpServerCreate = z.infer<typeof McpServerCreateSchema>;
|
|
153
209
|
export type McpServerUpdate = z.infer<typeof McpServerUpdateSchema>;
|
|
@@ -12,6 +12,8 @@ export declare const NotificationType: {
|
|
|
12
12
|
readonly WebSourcePagesRemoved: "web_source_pages_removed";
|
|
13
13
|
/** A web source held back a removal too large to trust without a person. */
|
|
14
14
|
readonly WebSourceRemovalHeld: "web_source_removal_held";
|
|
15
|
+
/** A platform administrator ended one of the user's integration sign-ins. */
|
|
16
|
+
readonly McpConnectionRevoked: "mcp_connection_revoked";
|
|
15
17
|
readonly ChatWarning: "chat_warning";
|
|
16
18
|
readonly ChatBlocked: "chat_blocked";
|
|
17
19
|
readonly Generic: "generic";
|