@nekro-nxt/contracts 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/index.mjs +4694 -0
- package/dist/index.mjs.map +1 -0
- package/lib/types/community.d.ts +583 -0
- package/lib/types/community.d.ts.map +1 -0
- package/lib/types/config-schema.d.ts +133 -0
- package/lib/types/config-schema.d.ts.map +1 -0
- package/lib/types/domain.d.ts +291 -0
- package/lib/types/domain.d.ts.map +1 -0
- package/lib/types/extension-capabilities.d.ts +277 -0
- package/lib/types/extension-capabilities.d.ts.map +1 -0
- package/lib/types/extension-ui.d.ts +789 -0
- package/lib/types/extension-ui.d.ts.map +1 -0
- package/lib/types/host-api.d.ts +9495 -0
- package/lib/types/host-api.d.ts.map +1 -0
- package/lib/types/index.d.ts +9 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/management-api.d.ts +108 -0
- package/lib/types/management-api.d.ts.map +1 -0
- package/lib/types/runtime-compatibility.d.ts +72 -0
- package/lib/types/runtime-compatibility.d.ts.map +1 -0
- package/package.json +40 -3
- package/src/community.ts +268 -0
- package/src/config-schema.ts +351 -0
- package/src/domain.ts +365 -0
- package/src/extension-capabilities.ts +473 -0
- package/src/extension-ui.ts +433 -0
- package/src/host-api.ts +3468 -0
- package/src/index.ts +8 -0
- package/src/management-api.ts +168 -0
- package/src/runtime-compatibility.ts +28 -0
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const HostUiPermissionSchema: z.ZodEnum<{
|
|
3
|
+
"agents.read": "agents.read";
|
|
4
|
+
"channels.read": "channels.read";
|
|
5
|
+
"connections.read": "connections.read";
|
|
6
|
+
"extensions.read": "extensions.read";
|
|
7
|
+
"dsh-plugins.read": "dsh-plugins.read";
|
|
8
|
+
"runtime.read": "runtime.read";
|
|
9
|
+
"messages.read": "messages.read";
|
|
10
|
+
"assets.read": "assets.read";
|
|
11
|
+
"agents.manage": "agents.manage";
|
|
12
|
+
"channels.manage": "channels.manage";
|
|
13
|
+
"connections.manage": "connections.manage";
|
|
14
|
+
"credentials.write": "credentials.write";
|
|
15
|
+
"messages.send": "messages.send";
|
|
16
|
+
"notifications.publish": "notifications.publish";
|
|
17
|
+
"network.request": "network.request";
|
|
18
|
+
}>;
|
|
19
|
+
export type HostUiPermission = z.output<typeof HostUiPermissionSchema>;
|
|
20
|
+
export declare const HOST_UI_KIT_COMPONENT_NAMES: readonly ["Button", "IconButton", "Input", "Textarea", "Select", "Switch", "Tabs", "Dialog", "Popover", "Tooltip", "Field", "StatusBadge", "InlineFeedback", "EmptyState", "Spinner", "PageHeader", "MetricStrip", "Metric", "Section", "Stack", "Grid", "DataTable", "PropertyList", "PropertyRow"];
|
|
21
|
+
export declare const HostUiKitComponentNameSchema: z.ZodEnum<{
|
|
22
|
+
Button: "Button";
|
|
23
|
+
IconButton: "IconButton";
|
|
24
|
+
Input: "Input";
|
|
25
|
+
Textarea: "Textarea";
|
|
26
|
+
Select: "Select";
|
|
27
|
+
Switch: "Switch";
|
|
28
|
+
Tabs: "Tabs";
|
|
29
|
+
Dialog: "Dialog";
|
|
30
|
+
Popover: "Popover";
|
|
31
|
+
Tooltip: "Tooltip";
|
|
32
|
+
Field: "Field";
|
|
33
|
+
StatusBadge: "StatusBadge";
|
|
34
|
+
InlineFeedback: "InlineFeedback";
|
|
35
|
+
EmptyState: "EmptyState";
|
|
36
|
+
Spinner: "Spinner";
|
|
37
|
+
PageHeader: "PageHeader";
|
|
38
|
+
MetricStrip: "MetricStrip";
|
|
39
|
+
Metric: "Metric";
|
|
40
|
+
Section: "Section";
|
|
41
|
+
Stack: "Stack";
|
|
42
|
+
Grid: "Grid";
|
|
43
|
+
DataTable: "DataTable";
|
|
44
|
+
PropertyList: "PropertyList";
|
|
45
|
+
PropertyRow: "PropertyRow";
|
|
46
|
+
}>;
|
|
47
|
+
export type HostUiKitComponentName = z.output<typeof HostUiKitComponentNameSchema>;
|
|
48
|
+
export declare const HostUiPageGeometryEvidenceSchema: z.ZodObject<{
|
|
49
|
+
entryId: z.ZodString;
|
|
50
|
+
objectPane: z.ZodEnum<{
|
|
51
|
+
hidden: "hidden";
|
|
52
|
+
navigation: "navigation";
|
|
53
|
+
}>;
|
|
54
|
+
viewport: z.ZodObject<{
|
|
55
|
+
width: z.ZodNumber;
|
|
56
|
+
height: z.ZodNumber;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
insets: z.ZodObject<{
|
|
59
|
+
top: z.ZodNumber;
|
|
60
|
+
right: z.ZodNumber;
|
|
61
|
+
bottom: z.ZodNumber;
|
|
62
|
+
left: z.ZodNumber;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
contentAxesAligned: z.ZodBoolean;
|
|
65
|
+
horizontalOverflow: z.ZodBoolean;
|
|
66
|
+
titleDistinct: z.ZodBoolean;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
export type HostUiPageGeometryEvidence = z.output<typeof HostUiPageGeometryEvidenceSchema>;
|
|
69
|
+
export declare const HostIconNameSchema: z.ZodEnum<{
|
|
70
|
+
"app-window": "app-window";
|
|
71
|
+
"bar-chart": "bar-chart";
|
|
72
|
+
"book-open": "book-open";
|
|
73
|
+
boxes: "boxes";
|
|
74
|
+
database: "database";
|
|
75
|
+
"file-text": "file-text";
|
|
76
|
+
folder: "folder";
|
|
77
|
+
globe: "globe";
|
|
78
|
+
"layout-dashboard": "layout-dashboard";
|
|
79
|
+
puzzle: "puzzle";
|
|
80
|
+
terminal: "terminal";
|
|
81
|
+
workflow: "workflow";
|
|
82
|
+
wrench: "wrench";
|
|
83
|
+
}>;
|
|
84
|
+
export type HostIconName = z.output<typeof HostIconNameSchema>;
|
|
85
|
+
export declare const HostPageIconSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
kind: z.ZodLiteral<"host-icon">;
|
|
87
|
+
name: z.ZodEnum<{
|
|
88
|
+
"app-window": "app-window";
|
|
89
|
+
"bar-chart": "bar-chart";
|
|
90
|
+
"book-open": "book-open";
|
|
91
|
+
boxes: "boxes";
|
|
92
|
+
database: "database";
|
|
93
|
+
"file-text": "file-text";
|
|
94
|
+
folder: "folder";
|
|
95
|
+
globe: "globe";
|
|
96
|
+
"layout-dashboard": "layout-dashboard";
|
|
97
|
+
puzzle: "puzzle";
|
|
98
|
+
terminal: "terminal";
|
|
99
|
+
workflow: "workflow";
|
|
100
|
+
wrench: "wrench";
|
|
101
|
+
}>;
|
|
102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
+
kind: z.ZodLiteral<"svg">;
|
|
104
|
+
path: z.ZodString;
|
|
105
|
+
sha256: z.ZodString;
|
|
106
|
+
}, z.core.$strict>], "kind">;
|
|
107
|
+
export type HostPageIcon = z.output<typeof HostPageIconSchema>;
|
|
108
|
+
export declare const HostPageContributionSchema: z.ZodObject<{
|
|
109
|
+
kind: z.ZodLiteral<"host-page">;
|
|
110
|
+
entryId: z.ZodString;
|
|
111
|
+
title: z.ZodString;
|
|
112
|
+
description: z.ZodOptional<z.ZodString>;
|
|
113
|
+
icon: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
114
|
+
kind: z.ZodLiteral<"host-icon">;
|
|
115
|
+
name: z.ZodEnum<{
|
|
116
|
+
"app-window": "app-window";
|
|
117
|
+
"bar-chart": "bar-chart";
|
|
118
|
+
"book-open": "book-open";
|
|
119
|
+
boxes: "boxes";
|
|
120
|
+
database: "database";
|
|
121
|
+
"file-text": "file-text";
|
|
122
|
+
folder: "folder";
|
|
123
|
+
globe: "globe";
|
|
124
|
+
"layout-dashboard": "layout-dashboard";
|
|
125
|
+
puzzle: "puzzle";
|
|
126
|
+
terminal: "terminal";
|
|
127
|
+
workflow: "workflow";
|
|
128
|
+
wrench: "wrench";
|
|
129
|
+
}>;
|
|
130
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
131
|
+
kind: z.ZodLiteral<"svg">;
|
|
132
|
+
path: z.ZodString;
|
|
133
|
+
sha256: z.ZodString;
|
|
134
|
+
}, z.core.$strict>], "kind">;
|
|
135
|
+
objectPane: z.ZodEnum<{
|
|
136
|
+
hidden: "hidden";
|
|
137
|
+
navigation: "navigation";
|
|
138
|
+
}>;
|
|
139
|
+
startPath: z.ZodString;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
export type HostPageContribution = z.output<typeof HostPageContributionSchema>;
|
|
142
|
+
export declare const HostUiNavigationItemSchema: z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
label: z.ZodString;
|
|
145
|
+
description: z.ZodOptional<z.ZodString>;
|
|
146
|
+
icon: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
147
|
+
kind: z.ZodLiteral<"host-icon">;
|
|
148
|
+
name: z.ZodEnum<{
|
|
149
|
+
"app-window": "app-window";
|
|
150
|
+
"bar-chart": "bar-chart";
|
|
151
|
+
"book-open": "book-open";
|
|
152
|
+
boxes: "boxes";
|
|
153
|
+
database: "database";
|
|
154
|
+
"file-text": "file-text";
|
|
155
|
+
folder: "folder";
|
|
156
|
+
globe: "globe";
|
|
157
|
+
"layout-dashboard": "layout-dashboard";
|
|
158
|
+
puzzle: "puzzle";
|
|
159
|
+
terminal: "terminal";
|
|
160
|
+
workflow: "workflow";
|
|
161
|
+
wrench: "wrench";
|
|
162
|
+
}>;
|
|
163
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
164
|
+
kind: z.ZodLiteral<"svg">;
|
|
165
|
+
path: z.ZodString;
|
|
166
|
+
sha256: z.ZodString;
|
|
167
|
+
}, z.core.$strict>], "kind">>;
|
|
168
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
169
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
error: "error";
|
|
171
|
+
success: "success";
|
|
172
|
+
info: "info";
|
|
173
|
+
warning: "warning";
|
|
174
|
+
neutral: "neutral";
|
|
175
|
+
}>>;
|
|
176
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
177
|
+
path: z.ZodString;
|
|
178
|
+
}, z.core.$strict>;
|
|
179
|
+
export declare const HostUiNavigationGroupSchema: z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
label: z.ZodOptional<z.ZodString>;
|
|
182
|
+
items: z.ZodArray<z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
label: z.ZodString;
|
|
185
|
+
description: z.ZodOptional<z.ZodString>;
|
|
186
|
+
icon: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
187
|
+
kind: z.ZodLiteral<"host-icon">;
|
|
188
|
+
name: z.ZodEnum<{
|
|
189
|
+
"app-window": "app-window";
|
|
190
|
+
"bar-chart": "bar-chart";
|
|
191
|
+
"book-open": "book-open";
|
|
192
|
+
boxes: "boxes";
|
|
193
|
+
database: "database";
|
|
194
|
+
"file-text": "file-text";
|
|
195
|
+
folder: "folder";
|
|
196
|
+
globe: "globe";
|
|
197
|
+
"layout-dashboard": "layout-dashboard";
|
|
198
|
+
puzzle: "puzzle";
|
|
199
|
+
terminal: "terminal";
|
|
200
|
+
workflow: "workflow";
|
|
201
|
+
wrench: "wrench";
|
|
202
|
+
}>;
|
|
203
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
204
|
+
kind: z.ZodLiteral<"svg">;
|
|
205
|
+
path: z.ZodString;
|
|
206
|
+
sha256: z.ZodString;
|
|
207
|
+
}, z.core.$strict>], "kind">>;
|
|
208
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
209
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
210
|
+
error: "error";
|
|
211
|
+
success: "success";
|
|
212
|
+
info: "info";
|
|
213
|
+
warning: "warning";
|
|
214
|
+
neutral: "neutral";
|
|
215
|
+
}>>;
|
|
216
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
217
|
+
path: z.ZodString;
|
|
218
|
+
}, z.core.$strict>>;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
export declare const HostUiNavigationModelSchema: z.ZodObject<{
|
|
221
|
+
revision: z.ZodNumber;
|
|
222
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
label: z.ZodOptional<z.ZodString>;
|
|
225
|
+
items: z.ZodArray<z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
label: z.ZodString;
|
|
228
|
+
description: z.ZodOptional<z.ZodString>;
|
|
229
|
+
icon: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
230
|
+
kind: z.ZodLiteral<"host-icon">;
|
|
231
|
+
name: z.ZodEnum<{
|
|
232
|
+
"app-window": "app-window";
|
|
233
|
+
"bar-chart": "bar-chart";
|
|
234
|
+
"book-open": "book-open";
|
|
235
|
+
boxes: "boxes";
|
|
236
|
+
database: "database";
|
|
237
|
+
"file-text": "file-text";
|
|
238
|
+
folder: "folder";
|
|
239
|
+
globe: "globe";
|
|
240
|
+
"layout-dashboard": "layout-dashboard";
|
|
241
|
+
puzzle: "puzzle";
|
|
242
|
+
terminal: "terminal";
|
|
243
|
+
workflow: "workflow";
|
|
244
|
+
wrench: "wrench";
|
|
245
|
+
}>;
|
|
246
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
247
|
+
kind: z.ZodLiteral<"svg">;
|
|
248
|
+
path: z.ZodString;
|
|
249
|
+
sha256: z.ZodString;
|
|
250
|
+
}, z.core.$strict>], "kind">>;
|
|
251
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
252
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
253
|
+
error: "error";
|
|
254
|
+
success: "success";
|
|
255
|
+
info: "info";
|
|
256
|
+
warning: "warning";
|
|
257
|
+
neutral: "neutral";
|
|
258
|
+
}>>;
|
|
259
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
260
|
+
path: z.ZodString;
|
|
261
|
+
}, z.core.$strict>>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
export type HostUiNavigationModel = z.output<typeof HostUiNavigationModelSchema>;
|
|
265
|
+
export declare const HostUiNetworkOriginSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
266
|
+
export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
267
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
268
|
+
"agents.read": "agents.read";
|
|
269
|
+
"channels.read": "channels.read";
|
|
270
|
+
"connections.read": "connections.read";
|
|
271
|
+
"extensions.read": "extensions.read";
|
|
272
|
+
"dsh-plugins.read": "dsh-plugins.read";
|
|
273
|
+
"runtime.read": "runtime.read";
|
|
274
|
+
"messages.read": "messages.read";
|
|
275
|
+
"assets.read": "assets.read";
|
|
276
|
+
"agents.manage": "agents.manage";
|
|
277
|
+
"channels.manage": "channels.manage";
|
|
278
|
+
"connections.manage": "connections.manage";
|
|
279
|
+
"credentials.write": "credentials.write";
|
|
280
|
+
"messages.send": "messages.send";
|
|
281
|
+
"notifications.publish": "notifications.publish";
|
|
282
|
+
"network.request": "network.request";
|
|
283
|
+
}>>;
|
|
284
|
+
networkOrigins: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
285
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
network: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
287
|
+
mode: z.ZodLiteral<"domains">;
|
|
288
|
+
domains: z.ZodArray<z.ZodString>;
|
|
289
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
290
|
+
mode: z.ZodLiteral<"config">;
|
|
291
|
+
fields: z.ZodArray<z.ZodString>;
|
|
292
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
293
|
+
mode: z.ZodLiteral<"unrestricted">;
|
|
294
|
+
purpose: z.ZodString;
|
|
295
|
+
}, z.core.$strict>], "mode">>;
|
|
296
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
297
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
298
|
+
channel: "channel";
|
|
299
|
+
agent: "agent";
|
|
300
|
+
member: "member";
|
|
301
|
+
shared: "shared";
|
|
302
|
+
}>>;
|
|
303
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
}, z.core.$strict>>;
|
|
305
|
+
assets: z.ZodOptional<z.ZodObject<{
|
|
306
|
+
write: z.ZodLiteral<true>;
|
|
307
|
+
}, z.core.$strict>>;
|
|
308
|
+
history: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
read: z.ZodLiteral<true>;
|
|
310
|
+
}, z.core.$strict>>;
|
|
311
|
+
inboundHook: z.ZodOptional<z.ZodObject<{
|
|
312
|
+
reads: z.ZodEnum<{
|
|
313
|
+
triggered: "triggered";
|
|
314
|
+
all: "all";
|
|
315
|
+
}>;
|
|
316
|
+
mayHide: z.ZodBoolean;
|
|
317
|
+
mayForceTrigger: z.ZodBoolean;
|
|
318
|
+
timeoutMs: z.ZodNumber;
|
|
319
|
+
}, z.core.$strict>>;
|
|
320
|
+
jobs: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
322
|
+
id: z.ZodString;
|
|
323
|
+
label: z.ZodString;
|
|
324
|
+
cron: z.ZodString;
|
|
325
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, z.core.$strict>>>;
|
|
327
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
maxActive: z.ZodNumber;
|
|
329
|
+
}, z.core.$strict>>;
|
|
330
|
+
}, z.core.$strict>>;
|
|
331
|
+
platform: z.ZodOptional<z.ZodObject<{
|
|
332
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
333
|
+
adapter: z.ZodString;
|
|
334
|
+
action: z.ZodString;
|
|
335
|
+
}, z.core.$strict>>>;
|
|
336
|
+
raw: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
337
|
+
}, z.core.$strict>>;
|
|
338
|
+
llm: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
maxCallsPerTurn: z.ZodNumber;
|
|
340
|
+
maxOutputTokens: z.ZodNumber;
|
|
341
|
+
}, z.core.$strict>>;
|
|
342
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
servers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
344
|
+
transport: z.ZodLiteral<"streamable-http">;
|
|
345
|
+
name: z.ZodString;
|
|
346
|
+
url: z.ZodString;
|
|
347
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
348
|
+
secret: z.ZodString;
|
|
349
|
+
}, z.core.$strict>]>>>;
|
|
350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
351
|
+
transport: z.ZodLiteral<"stdio">;
|
|
352
|
+
name: z.ZodString;
|
|
353
|
+
command: z.ZodString;
|
|
354
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
355
|
+
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
356
|
+
secret: z.ZodString;
|
|
357
|
+
}, z.core.$strict>]>>>;
|
|
358
|
+
}, z.core.$strict>], "transport">>;
|
|
359
|
+
}, z.core.$strict>>;
|
|
360
|
+
context: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
361
|
+
name: z.ZodString;
|
|
362
|
+
kind: z.ZodEnum<{
|
|
363
|
+
dynamic: "dynamic";
|
|
364
|
+
static: "static";
|
|
365
|
+
}>;
|
|
366
|
+
maxChars: z.ZodNumber;
|
|
367
|
+
}, z.core.$strict>>>;
|
|
368
|
+
}, z.core.$strict>>;
|
|
369
|
+
}, z.core.$strict>;
|
|
370
|
+
export type HostUiPermissionDeclaration = z.output<typeof HostUiPermissionDeclarationSchema>;
|
|
371
|
+
export declare const HostUiOwnerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
372
|
+
kind: z.ZodLiteral<"extension">;
|
|
373
|
+
extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
374
|
+
revisionId: z.core.$ZodBranded<z.ZodString, "ExtensionRevisionId", "out">;
|
|
375
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
376
|
+
kind: z.ZodLiteral<"dsh-plugin">;
|
|
377
|
+
entryId: z.ZodString;
|
|
378
|
+
artifactDigest: z.ZodString;
|
|
379
|
+
}, z.core.$strict>], "kind">;
|
|
380
|
+
export type HostUiOwner = z.output<typeof HostUiOwnerSchema>;
|
|
381
|
+
export declare const HostUiPageEntrySchema: z.ZodObject<{
|
|
382
|
+
pageInstanceId: z.core.$ZodBranded<z.ZodString, "HostUiPageInstanceId", "out">;
|
|
383
|
+
owner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
384
|
+
kind: z.ZodLiteral<"extension">;
|
|
385
|
+
extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
386
|
+
revisionId: z.core.$ZodBranded<z.ZodString, "ExtensionRevisionId", "out">;
|
|
387
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
388
|
+
kind: z.ZodLiteral<"dsh-plugin">;
|
|
389
|
+
entryId: z.ZodString;
|
|
390
|
+
artifactDigest: z.ZodString;
|
|
391
|
+
}, z.core.$strict>], "kind">;
|
|
392
|
+
entryId: z.ZodString;
|
|
393
|
+
title: z.ZodString;
|
|
394
|
+
description: z.ZodOptional<z.ZodString>;
|
|
395
|
+
icon: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
396
|
+
kind: z.ZodLiteral<"host-icon">;
|
|
397
|
+
name: z.ZodEnum<{
|
|
398
|
+
"app-window": "app-window";
|
|
399
|
+
"bar-chart": "bar-chart";
|
|
400
|
+
"book-open": "book-open";
|
|
401
|
+
boxes: "boxes";
|
|
402
|
+
database: "database";
|
|
403
|
+
"file-text": "file-text";
|
|
404
|
+
folder: "folder";
|
|
405
|
+
globe: "globe";
|
|
406
|
+
"layout-dashboard": "layout-dashboard";
|
|
407
|
+
puzzle: "puzzle";
|
|
408
|
+
terminal: "terminal";
|
|
409
|
+
workflow: "workflow";
|
|
410
|
+
wrench: "wrench";
|
|
411
|
+
}>;
|
|
412
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
413
|
+
kind: z.ZodLiteral<"svg">;
|
|
414
|
+
path: z.ZodString;
|
|
415
|
+
sha256: z.ZodString;
|
|
416
|
+
}, z.core.$strict>], "kind">;
|
|
417
|
+
objectPane: z.ZodEnum<{
|
|
418
|
+
hidden: "hidden";
|
|
419
|
+
navigation: "navigation";
|
|
420
|
+
}>;
|
|
421
|
+
startPath: z.ZodString;
|
|
422
|
+
visible: z.ZodBoolean;
|
|
423
|
+
sortOrder: z.ZodNumber;
|
|
424
|
+
routeBase: z.ZodString;
|
|
425
|
+
client: z.ZodObject<{
|
|
426
|
+
moduleUrl: z.ZodString;
|
|
427
|
+
buildKey: z.ZodString;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
diagnostic: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
status: z.ZodEnum<{
|
|
431
|
+
"load-failed": "load-failed";
|
|
432
|
+
"restore-failed": "restore-failed";
|
|
433
|
+
ready: "ready";
|
|
434
|
+
"navigation-failed": "navigation-failed";
|
|
435
|
+
"rpc-failed": "rpc-failed";
|
|
436
|
+
}>;
|
|
437
|
+
message: z.ZodOptional<z.ZodString>;
|
|
438
|
+
observedAt: z.ZodNumber;
|
|
439
|
+
}, z.core.$strict>>;
|
|
440
|
+
createdAt: z.ZodNumber;
|
|
441
|
+
updatedAt: z.ZodNumber;
|
|
442
|
+
}, z.core.$strict>;
|
|
443
|
+
export type HostUiPageEntry = z.output<typeof HostUiPageEntrySchema>;
|
|
444
|
+
export declare const HostUiPagePreferencesSchema: z.ZodObject<{
|
|
445
|
+
revision: z.ZodNumber;
|
|
446
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
447
|
+
pageInstanceId: z.core.$ZodBranded<z.ZodString, "HostUiPageInstanceId", "out">;
|
|
448
|
+
visible: z.ZodBoolean;
|
|
449
|
+
}, z.core.$strict>>;
|
|
450
|
+
}, z.core.$strict>;
|
|
451
|
+
export type HostUiPagePreferences = z.output<typeof HostUiPagePreferencesSchema>;
|
|
452
|
+
export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
453
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
454
|
+
entryKey: z.ZodString;
|
|
455
|
+
client: z.ZodString;
|
|
456
|
+
css: z.ZodOptional<z.ZodString>;
|
|
457
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
458
|
+
kind: z.ZodLiteral<"host-page">;
|
|
459
|
+
entryId: z.ZodString;
|
|
460
|
+
title: z.ZodString;
|
|
461
|
+
description: z.ZodOptional<z.ZodString>;
|
|
462
|
+
icon: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
463
|
+
kind: z.ZodLiteral<"host-icon">;
|
|
464
|
+
name: z.ZodEnum<{
|
|
465
|
+
"app-window": "app-window";
|
|
466
|
+
"bar-chart": "bar-chart";
|
|
467
|
+
"book-open": "book-open";
|
|
468
|
+
boxes: "boxes";
|
|
469
|
+
database: "database";
|
|
470
|
+
"file-text": "file-text";
|
|
471
|
+
folder: "folder";
|
|
472
|
+
globe: "globe";
|
|
473
|
+
"layout-dashboard": "layout-dashboard";
|
|
474
|
+
puzzle: "puzzle";
|
|
475
|
+
terminal: "terminal";
|
|
476
|
+
workflow: "workflow";
|
|
477
|
+
wrench: "wrench";
|
|
478
|
+
}>;
|
|
479
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
480
|
+
kind: z.ZodLiteral<"svg">;
|
|
481
|
+
path: z.ZodString;
|
|
482
|
+
sha256: z.ZodString;
|
|
483
|
+
}, z.core.$strict>], "kind">;
|
|
484
|
+
objectPane: z.ZodEnum<{
|
|
485
|
+
hidden: "hidden";
|
|
486
|
+
navigation: "navigation";
|
|
487
|
+
}>;
|
|
488
|
+
startPath: z.ZodString;
|
|
489
|
+
}, z.core.$strict>>;
|
|
490
|
+
permissions: z.ZodDefault<z.ZodObject<{
|
|
491
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
492
|
+
"agents.read": "agents.read";
|
|
493
|
+
"channels.read": "channels.read";
|
|
494
|
+
"connections.read": "connections.read";
|
|
495
|
+
"extensions.read": "extensions.read";
|
|
496
|
+
"dsh-plugins.read": "dsh-plugins.read";
|
|
497
|
+
"runtime.read": "runtime.read";
|
|
498
|
+
"messages.read": "messages.read";
|
|
499
|
+
"assets.read": "assets.read";
|
|
500
|
+
"agents.manage": "agents.manage";
|
|
501
|
+
"channels.manage": "channels.manage";
|
|
502
|
+
"connections.manage": "connections.manage";
|
|
503
|
+
"credentials.write": "credentials.write";
|
|
504
|
+
"messages.send": "messages.send";
|
|
505
|
+
"notifications.publish": "notifications.publish";
|
|
506
|
+
"network.request": "network.request";
|
|
507
|
+
}>>;
|
|
508
|
+
networkOrigins: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
509
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
510
|
+
network: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
511
|
+
mode: z.ZodLiteral<"domains">;
|
|
512
|
+
domains: z.ZodArray<z.ZodString>;
|
|
513
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
514
|
+
mode: z.ZodLiteral<"config">;
|
|
515
|
+
fields: z.ZodArray<z.ZodString>;
|
|
516
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
517
|
+
mode: z.ZodLiteral<"unrestricted">;
|
|
518
|
+
purpose: z.ZodString;
|
|
519
|
+
}, z.core.$strict>], "mode">>;
|
|
520
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
522
|
+
channel: "channel";
|
|
523
|
+
agent: "agent";
|
|
524
|
+
member: "member";
|
|
525
|
+
shared: "shared";
|
|
526
|
+
}>>;
|
|
527
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
528
|
+
}, z.core.$strict>>;
|
|
529
|
+
assets: z.ZodOptional<z.ZodObject<{
|
|
530
|
+
write: z.ZodLiteral<true>;
|
|
531
|
+
}, z.core.$strict>>;
|
|
532
|
+
history: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
read: z.ZodLiteral<true>;
|
|
534
|
+
}, z.core.$strict>>;
|
|
535
|
+
inboundHook: z.ZodOptional<z.ZodObject<{
|
|
536
|
+
reads: z.ZodEnum<{
|
|
537
|
+
triggered: "triggered";
|
|
538
|
+
all: "all";
|
|
539
|
+
}>;
|
|
540
|
+
mayHide: z.ZodBoolean;
|
|
541
|
+
mayForceTrigger: z.ZodBoolean;
|
|
542
|
+
timeoutMs: z.ZodNumber;
|
|
543
|
+
}, z.core.$strict>>;
|
|
544
|
+
jobs: z.ZodOptional<z.ZodObject<{
|
|
545
|
+
declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
546
|
+
id: z.ZodString;
|
|
547
|
+
label: z.ZodString;
|
|
548
|
+
cron: z.ZodString;
|
|
549
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
550
|
+
}, z.core.$strict>>>;
|
|
551
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
552
|
+
maxActive: z.ZodNumber;
|
|
553
|
+
}, z.core.$strict>>;
|
|
554
|
+
}, z.core.$strict>>;
|
|
555
|
+
platform: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
557
|
+
adapter: z.ZodString;
|
|
558
|
+
action: z.ZodString;
|
|
559
|
+
}, z.core.$strict>>>;
|
|
560
|
+
raw: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
561
|
+
}, z.core.$strict>>;
|
|
562
|
+
llm: z.ZodOptional<z.ZodObject<{
|
|
563
|
+
maxCallsPerTurn: z.ZodNumber;
|
|
564
|
+
maxOutputTokens: z.ZodNumber;
|
|
565
|
+
}, z.core.$strict>>;
|
|
566
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
567
|
+
servers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
568
|
+
transport: z.ZodLiteral<"streamable-http">;
|
|
569
|
+
name: z.ZodString;
|
|
570
|
+
url: z.ZodString;
|
|
571
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
572
|
+
secret: z.ZodString;
|
|
573
|
+
}, z.core.$strict>]>>>;
|
|
574
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
575
|
+
transport: z.ZodLiteral<"stdio">;
|
|
576
|
+
name: z.ZodString;
|
|
577
|
+
command: z.ZodString;
|
|
578
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
579
|
+
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
580
|
+
secret: z.ZodString;
|
|
581
|
+
}, z.core.$strict>]>>>;
|
|
582
|
+
}, z.core.$strict>], "transport">>;
|
|
583
|
+
}, z.core.$strict>>;
|
|
584
|
+
context: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
585
|
+
name: z.ZodString;
|
|
586
|
+
kind: z.ZodEnum<{
|
|
587
|
+
dynamic: "dynamic";
|
|
588
|
+
static: "static";
|
|
589
|
+
}>;
|
|
590
|
+
maxChars: z.ZodNumber;
|
|
591
|
+
}, z.core.$strict>>>;
|
|
592
|
+
}, z.core.$strict>>;
|
|
593
|
+
}, z.core.$strict>>;
|
|
594
|
+
}, z.core.$strict>;
|
|
595
|
+
export type DshNxtHostUi = z.output<typeof DshNxtHostUiSchema>;
|
|
596
|
+
/** Where the product shell may place an extension panel. The Host decides the concrete page and position. */
|
|
597
|
+
export declare const ExtensionPanelAnchorSchema: z.ZodEnum<{
|
|
598
|
+
channel: "channel";
|
|
599
|
+
extension: "extension";
|
|
600
|
+
agent: "agent";
|
|
601
|
+
connection: "connection";
|
|
602
|
+
}>;
|
|
603
|
+
export type ExtensionPanelAnchor = z.output<typeof ExtensionPanelAnchorSchema>;
|
|
604
|
+
export declare const AGENT_PANEL_ANCHORS: readonly ["agent", "channel", "extension"];
|
|
605
|
+
export declare const ADAPTER_PANEL_ANCHORS: readonly ["connection", "channel"];
|
|
606
|
+
export declare const PanelDensitySchema: z.ZodEnum<{
|
|
607
|
+
compact: "compact";
|
|
608
|
+
full: "full";
|
|
609
|
+
}>;
|
|
610
|
+
export type PanelDensity = z.output<typeof PanelDensitySchema>;
|
|
611
|
+
export declare const ConnectionPanelRoleSchema: z.ZodEnum<{
|
|
612
|
+
status: "status";
|
|
613
|
+
setup: "setup";
|
|
614
|
+
diagnostics: "diagnostics";
|
|
615
|
+
}>;
|
|
616
|
+
export type ConnectionPanelRole = z.output<typeof ConnectionPanelRoleSchema>;
|
|
617
|
+
export declare const ToolViewDensitySchema: z.ZodEnum<{
|
|
618
|
+
card: "card";
|
|
619
|
+
chip: "chip";
|
|
620
|
+
}>;
|
|
621
|
+
export type ToolViewDensity = z.output<typeof ToolViewDensitySchema>;
|
|
622
|
+
/** Client-side registration options for one panel; identical to the Manifest contribution without `kind`. */
|
|
623
|
+
export declare const ExtensionPanelDeclarationSchema: z.ZodObject<{
|
|
624
|
+
id: z.ZodString;
|
|
625
|
+
anchor: z.ZodEnum<{
|
|
626
|
+
channel: "channel";
|
|
627
|
+
extension: "extension";
|
|
628
|
+
agent: "agent";
|
|
629
|
+
connection: "connection";
|
|
630
|
+
}>;
|
|
631
|
+
title: z.ZodString;
|
|
632
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
633
|
+
"app-window": "app-window";
|
|
634
|
+
"bar-chart": "bar-chart";
|
|
635
|
+
"book-open": "book-open";
|
|
636
|
+
boxes: "boxes";
|
|
637
|
+
database: "database";
|
|
638
|
+
"file-text": "file-text";
|
|
639
|
+
folder: "folder";
|
|
640
|
+
globe: "globe";
|
|
641
|
+
"layout-dashboard": "layout-dashboard";
|
|
642
|
+
puzzle: "puzzle";
|
|
643
|
+
terminal: "terminal";
|
|
644
|
+
workflow: "workflow";
|
|
645
|
+
wrench: "wrench";
|
|
646
|
+
}>>;
|
|
647
|
+
densities: z.ZodArray<z.ZodEnum<{
|
|
648
|
+
compact: "compact";
|
|
649
|
+
full: "full";
|
|
650
|
+
}>>;
|
|
651
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
652
|
+
status: "status";
|
|
653
|
+
setup: "setup";
|
|
654
|
+
diagnostics: "diagnostics";
|
|
655
|
+
}>>;
|
|
656
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
channelKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
658
|
+
group: "group";
|
|
659
|
+
internal: "internal";
|
|
660
|
+
direct: "direct";
|
|
661
|
+
}>>>;
|
|
662
|
+
}, z.core.$strict>>;
|
|
663
|
+
}, z.core.$strict>;
|
|
664
|
+
export type ExtensionPanelDeclaration = z.output<typeof ExtensionPanelDeclarationSchema>;
|
|
665
|
+
export declare const PanelContributionSchema: z.ZodObject<{
|
|
666
|
+
id: z.ZodString;
|
|
667
|
+
anchor: z.ZodEnum<{
|
|
668
|
+
channel: "channel";
|
|
669
|
+
extension: "extension";
|
|
670
|
+
agent: "agent";
|
|
671
|
+
connection: "connection";
|
|
672
|
+
}>;
|
|
673
|
+
title: z.ZodString;
|
|
674
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
675
|
+
"app-window": "app-window";
|
|
676
|
+
"bar-chart": "bar-chart";
|
|
677
|
+
"book-open": "book-open";
|
|
678
|
+
boxes: "boxes";
|
|
679
|
+
database: "database";
|
|
680
|
+
"file-text": "file-text";
|
|
681
|
+
folder: "folder";
|
|
682
|
+
globe: "globe";
|
|
683
|
+
"layout-dashboard": "layout-dashboard";
|
|
684
|
+
puzzle: "puzzle";
|
|
685
|
+
terminal: "terminal";
|
|
686
|
+
workflow: "workflow";
|
|
687
|
+
wrench: "wrench";
|
|
688
|
+
}>>;
|
|
689
|
+
densities: z.ZodArray<z.ZodEnum<{
|
|
690
|
+
compact: "compact";
|
|
691
|
+
full: "full";
|
|
692
|
+
}>>;
|
|
693
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
694
|
+
status: "status";
|
|
695
|
+
setup: "setup";
|
|
696
|
+
diagnostics: "diagnostics";
|
|
697
|
+
}>>;
|
|
698
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
699
|
+
channelKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
700
|
+
group: "group";
|
|
701
|
+
internal: "internal";
|
|
702
|
+
direct: "direct";
|
|
703
|
+
}>>>;
|
|
704
|
+
}, z.core.$strict>>;
|
|
705
|
+
kind: z.ZodLiteral<"panel">;
|
|
706
|
+
}, z.core.$strict>;
|
|
707
|
+
export type PanelContribution = z.output<typeof PanelContributionSchema>;
|
|
708
|
+
export declare const ToolViewContributionSchema: z.ZodObject<{
|
|
709
|
+
kind: z.ZodLiteral<"tool-view">;
|
|
710
|
+
tool: z.ZodString;
|
|
711
|
+
}, z.core.$strict>;
|
|
712
|
+
export type ToolViewContribution = z.output<typeof ToolViewContributionSchema>;
|
|
713
|
+
export declare const RichKindSchema: z.ZodString;
|
|
714
|
+
export declare const MessageRendererContributionSchema: z.ZodObject<{
|
|
715
|
+
kind: z.ZodLiteral<"message-renderer">;
|
|
716
|
+
richKind: z.ZodString;
|
|
717
|
+
}, z.core.$strict>;
|
|
718
|
+
export type MessageRendererContribution = z.output<typeof MessageRendererContributionSchema>;
|
|
719
|
+
/** Optional configuration surface shared by every extension scope. */
|
|
720
|
+
export declare const ExtensionConfigDeclarationSchema: z.ZodObject<{
|
|
721
|
+
schema: z.ZodType<import("./config-schema.js").ConfigSchemaNode, unknown, z.core.$ZodTypeInternals<import("./config-schema.js").ConfigSchemaNode, unknown>> & z.ZodType<{
|
|
722
|
+
readonly type: "object";
|
|
723
|
+
readonly dict: Readonly<Record<string, import("./config-schema.js").ConfigSchemaNode>>;
|
|
724
|
+
readonly meta?: import("./config-schema.js").ConfigSchemaMeta | undefined;
|
|
725
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
726
|
+
readonly type: "object";
|
|
727
|
+
readonly dict: Readonly<Record<string, import("./config-schema.js").ConfigSchemaNode>>;
|
|
728
|
+
readonly meta?: import("./config-schema.js").ConfigSchemaMeta | undefined;
|
|
729
|
+
}, unknown>>;
|
|
730
|
+
}, z.core.$strict>;
|
|
731
|
+
export type ExtensionConfigDeclaration = z.output<typeof ExtensionConfigDeclarationSchema>;
|
|
732
|
+
/** Product projection of what one Revision contributes to the shell. */
|
|
733
|
+
export declare const ExtensionUiContributionsSchema: z.ZodObject<{
|
|
734
|
+
panels: z.ZodArray<z.ZodObject<{
|
|
735
|
+
id: z.ZodString;
|
|
736
|
+
anchor: z.ZodEnum<{
|
|
737
|
+
channel: "channel";
|
|
738
|
+
extension: "extension";
|
|
739
|
+
agent: "agent";
|
|
740
|
+
connection: "connection";
|
|
741
|
+
}>;
|
|
742
|
+
title: z.ZodString;
|
|
743
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
744
|
+
"app-window": "app-window";
|
|
745
|
+
"bar-chart": "bar-chart";
|
|
746
|
+
"book-open": "book-open";
|
|
747
|
+
boxes: "boxes";
|
|
748
|
+
database: "database";
|
|
749
|
+
"file-text": "file-text";
|
|
750
|
+
folder: "folder";
|
|
751
|
+
globe: "globe";
|
|
752
|
+
"layout-dashboard": "layout-dashboard";
|
|
753
|
+
puzzle: "puzzle";
|
|
754
|
+
terminal: "terminal";
|
|
755
|
+
workflow: "workflow";
|
|
756
|
+
wrench: "wrench";
|
|
757
|
+
}>>;
|
|
758
|
+
densities: z.ZodArray<z.ZodEnum<{
|
|
759
|
+
compact: "compact";
|
|
760
|
+
full: "full";
|
|
761
|
+
}>>;
|
|
762
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
763
|
+
status: "status";
|
|
764
|
+
setup: "setup";
|
|
765
|
+
diagnostics: "diagnostics";
|
|
766
|
+
}>>;
|
|
767
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
768
|
+
channelKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
769
|
+
group: "group";
|
|
770
|
+
internal: "internal";
|
|
771
|
+
direct: "direct";
|
|
772
|
+
}>>>;
|
|
773
|
+
}, z.core.$strict>>;
|
|
774
|
+
kind: z.ZodLiteral<"panel">;
|
|
775
|
+
}, z.core.$strict>>;
|
|
776
|
+
toolViews: z.ZodArray<z.ZodString>;
|
|
777
|
+
messageRenderers: z.ZodArray<z.ZodString>;
|
|
778
|
+
}, z.core.$strict>;
|
|
779
|
+
export type ExtensionUiContributions = z.output<typeof ExtensionUiContributionsSchema>;
|
|
780
|
+
export declare const EMPTY_EXTENSION_UI_CONTRIBUTIONS: ExtensionUiContributions;
|
|
781
|
+
/** Read permission each Client data hook requires; the host enforces it in every runtime that renders a Client. */
|
|
782
|
+
export declare const EXTENSION_DATA_HOOK_PERMISSIONS: {
|
|
783
|
+
readonly useAgent: "agents.read";
|
|
784
|
+
readonly useChannel: "channels.read";
|
|
785
|
+
readonly useConnection: "connections.read";
|
|
786
|
+
readonly useChannelRuntime: "runtime.read";
|
|
787
|
+
};
|
|
788
|
+
export type ExtensionDataHookName = keyof typeof EXTENSION_DATA_HOOK_PERMISSIONS;
|
|
789
|
+
//# sourceMappingURL=extension-ui.d.ts.map
|