@8wave/ai-elements 0.115.0-beta.16 → 0.115.0-beta.23
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/_chunks/{PkToolShowSources-kGQlIKaN.js → PkToolShowSources-ClqmBUMB.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-kGQlIKaN.js.map → PkToolShowSources-ClqmBUMB.js.map} +1 -1
- package/dist/_chunks/{markdown-B4cYQGBo.js → markdown-BAq2EAVh.js} +18 -2
- package/dist/_chunks/markdown-BAq2EAVh.js.map +1 -0
- package/dist/ai-elements.es.js +16 -14
- 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/PkChatbotViewFiles.js +1 -1
- package/dist-vue/_chunks/{Document-BWz2HySu.js → Document-CRiJBpnk.js} +18 -2
- package/dist-vue/_chunks/Document-CRiJBpnk.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-Cw5sScma.js → PkChatbot-_7hJo-g0.js} +3 -3
- package/dist-vue/_chunks/{PkChatbot-Cw5sScma.js.map → PkChatbot-_7hJo-g0.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotFilePreview-CwiVQDF2.js.map +1 -1
- package/dist-vue/_chunks/PkChatbotInput-DcLmOqA1.js.map +1 -1
- package/dist-vue/_chunks/PkChatbotMessageFeedback-BYmrVaCE.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-62rYpwcM.js → PkChatbotMessages-ClPdP7sw.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotMessages-62rYpwcM.js.map → PkChatbotMessages-ClPdP7sw.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-CPPjwTJN.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-ML8aaCVN.js → PkChatbotViewChat-BBYfIQBR.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewChat-ML8aaCVN.js.map → PkChatbotViewChat-BBYfIQBR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DrMUsTv5.js → PkChatbotViewFiles-D7KcAEiB.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-DrMUsTv5.js.map → PkChatbotViewFiles-D7KcAEiB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CssUiP3o.js → PkToolShowDiagram-Co3GRItt.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CssUiP3o.js.map → PkToolShowDiagram-Co3GRItt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-C8r1vKJk.js → PkToolShowSources-CIccPA8Z.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-C8r1vKJk.js.map → PkToolShowSources-CIccPA8Z.js.map} +1 -1
- package/dist-vue/composables.js +6 -4
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +8 -8
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/models/src/schema/AgentApiTool.d.ts +0 -35
- package/dist-vue/packages/models/src/schema/Header.d.ts +39 -0
- package/dist-vue/packages/models/src/schema/McpServer.d.ts +20 -8
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/markdown-B4cYQGBo.js.map +0 -1
- package/dist-vue/_chunks/Document-BWz2HySu.js.map +0 -1
|
@@ -38,30 +38,6 @@ 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>>>;
|
|
65
41
|
/**
|
|
66
42
|
* The public parameters whose name looks like a credential: `apikey`,
|
|
67
43
|
* `api_key`, `token`, `secret` or `password` as a word of the name, in any
|
|
@@ -172,15 +148,4 @@ export type AgentApiToolCreate = z.infer<typeof AgentApiToolCreateSchema>;
|
|
|
172
148
|
export type AgentApiToolUpdate = z.infer<typeof AgentApiToolUpdateSchema>;
|
|
173
149
|
export type AgentApiToolSecretParameter = z.infer<typeof AgentApiToolSecretParameterSchema>;
|
|
174
150
|
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
|
-
};
|
|
186
151
|
export type AgentApiToolQuerystring = z.infer<typeof AgentApiToolQuerystringSchema>;
|
|
@@ -12,3 +12,42 @@ export declare const HeadesSchema: z.ZodCodec<z.ZodArray<z.ZodObject<{
|
|
|
12
12
|
}, z.core.$strip>>>;
|
|
13
13
|
export type Header = z.infer<typeof HeaderSchema>;
|
|
14
14
|
export type Headers = z.infer<typeof HeadesSchema>;
|
|
15
|
+
/** Upper bound of a secret value, so a form cannot store an arbitrarily large blob. */
|
|
16
|
+
export declare const MAX_SECRET_VALUE_LENGTH = 4096;
|
|
17
|
+
/**
|
|
18
|
+
* A header that carries a credential, as the API returns it: its name, and
|
|
19
|
+
* whether a value is stored. The headers of API tools and MCP servers carry
|
|
20
|
+
* the keys of the services they call (`Authorization`, `X-Api-Key`), so the
|
|
21
|
+
* value never leaves the backend, the contract of the headers of the
|
|
22
|
+
* organization's model provider.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SecretHeaderSchema: z.ZodObject<{
|
|
25
|
+
key: z.ZodString;
|
|
26
|
+
hasValue: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
/**
|
|
29
|
+
* Secret headers as a save sends them. On an update an empty value keeps the
|
|
30
|
+
* one stored under the same name, while the URL keeps its origin; a name left
|
|
31
|
+
* out is removed. A row without a name is an empty row of the form, and
|
|
32
|
+
* dropped. Two names that differ only in case are one HTTP header, so they
|
|
33
|
+
* are refused: a kept value would match the first and the request send the
|
|
34
|
+
* last.
|
|
35
|
+
*/
|
|
36
|
+
export declare const SecretHeaderListSchema: z.ZodCodec<z.ZodArray<z.ZodObject<{
|
|
37
|
+
key: z.ZodOptional<z.ZodString>;
|
|
38
|
+
value: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
40
|
+
key: z.ZodString;
|
|
41
|
+
value: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
export type SecretHeader = z.infer<typeof SecretHeaderSchema>;
|
|
44
|
+
export type SecretHeaderDto = z.infer<typeof SecretHeaderListSchema>[number];
|
|
45
|
+
/**
|
|
46
|
+
* A secret header as stored (`agent_api_tools.headers`, `mcp_server.headers`),
|
|
47
|
+
* with `value` encrypted by `encryptSecret`; rows saved before 0.115.0 hold it
|
|
48
|
+
* in clear until their next save. Backend only: it never reaches a response.
|
|
49
|
+
*/
|
|
50
|
+
export type StoredSecretHeader = {
|
|
51
|
+
key: string;
|
|
52
|
+
value: string;
|
|
53
|
+
};
|
|
@@ -48,13 +48,10 @@ export declare const McpServerSchema: z.ZodObject<{
|
|
|
48
48
|
status: z.ZodString;
|
|
49
49
|
url: z.ZodString;
|
|
50
50
|
healthCheckPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
-
headers: z.
|
|
52
|
-
key: z.ZodOptional<z.ZodString>;
|
|
53
|
-
value: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
51
|
+
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
55
52
|
key: z.ZodString;
|
|
56
|
-
|
|
57
|
-
}, z.core.$strip
|
|
53
|
+
hasValue: z.ZodBoolean;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
58
55
|
disabledTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
59
56
|
stateless: z.ZodDefault<z.ZodBoolean>;
|
|
60
57
|
organizationId: z.ZodString;
|
|
@@ -84,7 +81,7 @@ export declare const McpServerCreateSchema: z.ZodObject<{
|
|
|
84
81
|
value: z.ZodOptional<z.ZodString>;
|
|
85
82
|
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
86
83
|
key: z.ZodString;
|
|
87
|
-
value: z.ZodString
|
|
84
|
+
value: z.ZodOptional<z.ZodString>;
|
|
88
85
|
}, z.core.$strip>>>>>;
|
|
89
86
|
disabledTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
90
87
|
stateless: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -113,7 +110,7 @@ export declare const McpServerUpdateSchema: z.ZodObject<{
|
|
|
113
110
|
value: z.ZodOptional<z.ZodString>;
|
|
114
111
|
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
115
112
|
key: z.ZodString;
|
|
116
|
-
value: z.ZodString
|
|
113
|
+
value: z.ZodOptional<z.ZodString>;
|
|
117
114
|
}, z.core.$strip>>>>>;
|
|
118
115
|
disabledTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
119
116
|
stateless: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -160,6 +157,20 @@ export declare const McpServerConnectionSchema: z.ZodObject<{
|
|
|
160
157
|
organizationName: z.ZodNullable<z.ZodString>;
|
|
161
158
|
connectedAt: z.ZodCoercedDate<unknown>;
|
|
162
159
|
}, z.core.$strip>;
|
|
160
|
+
/**
|
|
161
|
+
* An integration the current user could sign in to from the profile, before
|
|
162
|
+
* an agent asks: an OAuth server of an agent they can use in the active
|
|
163
|
+
* organization, which they are not signed in to yet (phase 2 of
|
|
164
|
+
* docs/specs/user-mcp-connections-ui.md).
|
|
165
|
+
*/
|
|
166
|
+
export declare const McpConnectableServerSchema: z.ZodObject<{
|
|
167
|
+
mcpServerId: z.ZodString;
|
|
168
|
+
serverName: z.ZodString;
|
|
169
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
}, z.core.$strip>;
|
|
163
174
|
/**
|
|
164
175
|
* Whether a stored sign-in still does anything, as the system user page shows
|
|
165
176
|
* it. `active`: usable now or renewable. `stale`: expired with nothing to
|
|
@@ -202,6 +213,7 @@ export declare const McpConnectionRevocationSchema: z.ZodObject<{
|
|
|
202
213
|
}, z.core.$strip>;
|
|
203
214
|
export type McpServerInfo = z.infer<typeof McpServerInfoSchema>;
|
|
204
215
|
export type McpServerConnection = z.infer<typeof McpServerConnectionSchema>;
|
|
216
|
+
export type McpConnectableServer = z.infer<typeof McpConnectableServerSchema>;
|
|
205
217
|
export type McpUserConnectionAdmin = z.infer<typeof McpUserConnectionAdminSchema>;
|
|
206
218
|
export type McpConnectionRevocation = z.infer<typeof McpConnectionRevocationSchema>;
|
|
207
219
|
export type McpServer = z.infer<typeof McpServerSchema>;
|