@nekro-nxt/contracts 0.4.0 → 0.6.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/README.md +2 -0
- package/dist/index.mjs +3092 -164
- package/dist/index.mjs.map +1 -1
- package/lib/types/commands.d.ts +408 -0
- package/lib/types/commands.d.ts.map +1 -0
- package/lib/types/community-feedback-host.d.ts +442 -0
- package/lib/types/community-feedback-host.d.ts.map +1 -0
- package/lib/types/community-feedback.d.ts +1072 -0
- package/lib/types/community-feedback.d.ts.map +1 -0
- package/lib/types/community-personas.d.ts +4 -0
- package/lib/types/community-personas.d.ts.map +1 -1
- package/lib/types/community.d.ts +260 -13
- package/lib/types/community.d.ts.map +1 -1
- package/lib/types/config-schema.d.ts +16 -2
- package/lib/types/config-schema.d.ts.map +1 -1
- package/lib/types/credentials.d.ts +328 -0
- package/lib/types/credentials.d.ts.map +1 -0
- package/lib/types/domain.d.ts +44 -2
- package/lib/types/domain.d.ts.map +1 -1
- package/lib/types/extension-capabilities.d.ts +58 -3
- package/lib/types/extension-capabilities.d.ts.map +1 -1
- package/lib/types/extension-ui.d.ts +46 -4
- package/lib/types/extension-ui.d.ts.map +1 -1
- package/lib/types/host-api.d.ts +10805 -2887
- package/lib/types/host-api.d.ts.map +1 -1
- package/lib/types/index.d.ts +7 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/linked-accounts.d.ts +100 -0
- package/lib/types/linked-accounts.d.ts.map +1 -0
- package/lib/types/logs.d.ts +355 -0
- package/lib/types/logs.d.ts.map +1 -0
- package/lib/types/response-timing.d.ts +60 -0
- package/lib/types/response-timing.d.ts.map +1 -0
- package/lib/types/runtime-compatibility.d.ts +2 -2
- package/package.json +1 -1
- package/src/commands.ts +366 -0
- package/src/community-feedback-host.ts +121 -0
- package/src/community-feedback.ts +289 -0
- package/src/community.ts +63 -1
- package/src/config-schema.ts +33 -2
- package/src/credentials.ts +260 -0
- package/src/domain.ts +74 -8
- package/src/extension-capabilities.ts +78 -4
- package/src/extension-ui.ts +3 -0
- package/src/host-api.ts +1873 -163
- package/src/index.ts +8 -0
- package/src/linked-accounts.ts +77 -0
- package/src/logs.ts +138 -0
- package/src/management-api.ts +1 -1
- package/src/response-timing.ts +77 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Named credentials (智能体扩展配置与凭据 C1–C5): one entry is added once and reused by extensions, MCP servers and
|
|
4
|
+
* commands. The value is write-only; every view below carries metadata only. Accounts on platforms such as GitHub are
|
|
5
|
+
* linked accounts (`linked-accounts.ts`), granted per agent, not credentials.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CREDENTIAL_NAME_MAX_CHARS = 64;
|
|
8
|
+
export declare const CREDENTIAL_DESCRIPTION_MAX_CHARS = 500;
|
|
9
|
+
export declare const CREDENTIAL_VALUE_MAX_CHARS = 16384;
|
|
10
|
+
/** Values shorter than this are not hidden from tool results; the form warns when one is saved. */
|
|
11
|
+
export declare const CREDENTIAL_REDACTABLE_MIN_CHARS = 8;
|
|
12
|
+
/** How a credential reaches code: `request` only as a placeholder filled by `nxt.http.fetch`; `program` as the value. */
|
|
13
|
+
export declare const CredentialUsageSchema: z.ZodEnum<{
|
|
14
|
+
request: "request";
|
|
15
|
+
program: "program";
|
|
16
|
+
}>;
|
|
17
|
+
export type CredentialUsage = z.output<typeof CredentialUsageSchema>;
|
|
18
|
+
/** Agents that may use a credential: every agent, or the listed ones. */
|
|
19
|
+
export declare const CredentialAgentScopeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
20
|
+
all: z.ZodLiteral<true>;
|
|
21
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
23
|
+
}, z.core.$strict>]>;
|
|
24
|
+
export type CredentialAgentScope = z.output<typeof CredentialAgentScopeSchema>;
|
|
25
|
+
/** Shown in redaction markers (`[凭据:名称]`), so brackets and control characters are not allowed. */
|
|
26
|
+
export declare const CredentialNameSchema: z.ZodString;
|
|
27
|
+
export declare const CredentialDescriptionSchema: z.ZodString;
|
|
28
|
+
export declare const CredentialDomainsSchema: z.ZodArray<z.ZodString>;
|
|
29
|
+
/** The environment variable a program credential reaches commands under. */
|
|
30
|
+
export declare const CredentialEnvNameSchema: z.ZodString;
|
|
31
|
+
export declare const CredentialValueSchema: z.ZodString;
|
|
32
|
+
/** What uses one credential right now: extension secret fields bound to it and agents whose commands receive it. */
|
|
33
|
+
export declare const CredentialUsersSchema: z.ZodObject<{
|
|
34
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
35
|
+
extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
38
|
+
host: z.ZodBoolean;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
export type CredentialUsers = z.output<typeof CredentialUsersSchema>;
|
|
43
|
+
export declare const CredentialViewSchema: z.ZodObject<{
|
|
44
|
+
id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
description: z.ZodString;
|
|
47
|
+
usage: z.ZodEnum<{
|
|
48
|
+
request: "request";
|
|
49
|
+
program: "program";
|
|
50
|
+
}>;
|
|
51
|
+
domains: z.ZodArray<z.ZodString>;
|
|
52
|
+
agentScope: z.ZodUnion<readonly [z.ZodObject<{
|
|
53
|
+
all: z.ZodLiteral<true>;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
56
|
+
}, z.core.$strict>]>;
|
|
57
|
+
autoUse: z.ZodBoolean;
|
|
58
|
+
envName: z.ZodNullable<z.ZodString>;
|
|
59
|
+
approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
60
|
+
redactable: z.ZodBoolean;
|
|
61
|
+
available: z.ZodBoolean;
|
|
62
|
+
usedBy: z.ZodObject<{
|
|
63
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
64
|
+
extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
67
|
+
host: z.ZodBoolean;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
createdAt: z.ZodNumber;
|
|
72
|
+
updatedAt: z.ZodNumber;
|
|
73
|
+
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export type CredentialView = z.output<typeof CredentialViewSchema>;
|
|
76
|
+
/** A model provider listed with the credentials; `open` lets agents and extensions call it through the host. */
|
|
77
|
+
export declare const ModelProviderAccessSchema: z.ZodObject<{
|
|
78
|
+
provider: z.ZodString;
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
open: z.ZodBoolean;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
export type ModelProviderAccess = z.output<typeof ModelProviderAccessSchema>;
|
|
83
|
+
/**
|
|
84
|
+
* An agent asked for a credential that does not exist yet. The settings link pre-fills the add form; saving a
|
|
85
|
+
* credential with this name wakes the agent in the channel it asked from.
|
|
86
|
+
*/
|
|
87
|
+
export declare const CredentialRequestViewSchema: z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
purpose: z.ZodString;
|
|
91
|
+
domains: z.ZodArray<z.ZodString>;
|
|
92
|
+
usage: z.ZodEnum<{
|
|
93
|
+
request: "request";
|
|
94
|
+
program: "program";
|
|
95
|
+
}>;
|
|
96
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
97
|
+
channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
|
|
98
|
+
createdAt: z.ZodNumber;
|
|
99
|
+
route: z.ZodString;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
export type CredentialRequestView = z.output<typeof CredentialRequestViewSchema>;
|
|
102
|
+
export declare const CredentialsViewSchema: z.ZodObject<{
|
|
103
|
+
credentials: z.ZodArray<z.ZodObject<{
|
|
104
|
+
id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
description: z.ZodString;
|
|
107
|
+
usage: z.ZodEnum<{
|
|
108
|
+
request: "request";
|
|
109
|
+
program: "program";
|
|
110
|
+
}>;
|
|
111
|
+
domains: z.ZodArray<z.ZodString>;
|
|
112
|
+
agentScope: z.ZodUnion<readonly [z.ZodObject<{
|
|
113
|
+
all: z.ZodLiteral<true>;
|
|
114
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
115
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
116
|
+
}, z.core.$strict>]>;
|
|
117
|
+
autoUse: z.ZodBoolean;
|
|
118
|
+
envName: z.ZodNullable<z.ZodString>;
|
|
119
|
+
approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
120
|
+
redactable: z.ZodBoolean;
|
|
121
|
+
available: z.ZodBoolean;
|
|
122
|
+
usedBy: z.ZodObject<{
|
|
123
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
124
|
+
extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
127
|
+
host: z.ZodBoolean;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
createdAt: z.ZodNumber;
|
|
132
|
+
updatedAt: z.ZodNumber;
|
|
133
|
+
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
134
|
+
}, z.core.$strict>>;
|
|
135
|
+
modelProviders: z.ZodArray<z.ZodObject<{
|
|
136
|
+
provider: z.ZodString;
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
open: z.ZodBoolean;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
name: z.ZodString;
|
|
143
|
+
purpose: z.ZodString;
|
|
144
|
+
domains: z.ZodArray<z.ZodString>;
|
|
145
|
+
usage: z.ZodEnum<{
|
|
146
|
+
request: "request";
|
|
147
|
+
program: "program";
|
|
148
|
+
}>;
|
|
149
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
150
|
+
channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
|
|
151
|
+
createdAt: z.ZodNumber;
|
|
152
|
+
route: z.ZodString;
|
|
153
|
+
}, z.core.$strict>>;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
export type CredentialsView = z.output<typeof CredentialsViewSchema>;
|
|
156
|
+
export declare const CreateCredentialRequestSchema: z.ZodObject<{
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
description: z.ZodDefault<z.ZodString>;
|
|
159
|
+
agentScope: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
160
|
+
all: z.ZodLiteral<true>;
|
|
161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
162
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
163
|
+
}, z.core.$strict>]>>;
|
|
164
|
+
autoUse: z.ZodDefault<z.ZodBoolean>;
|
|
165
|
+
usage: z.ZodDefault<z.ZodEnum<{
|
|
166
|
+
request: "request";
|
|
167
|
+
program: "program";
|
|
168
|
+
}>>;
|
|
169
|
+
domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
170
|
+
envName: z.ZodOptional<z.ZodString>;
|
|
171
|
+
value: z.ZodString;
|
|
172
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
export type CreateCredentialRequest = z.input<typeof CreateCredentialRequestSchema>;
|
|
175
|
+
/** Metadata changes; omitted fields keep their value. */
|
|
176
|
+
export declare const UpdateCredentialRequestSchema: z.ZodObject<{
|
|
177
|
+
name: z.ZodOptional<z.ZodString>;
|
|
178
|
+
description: z.ZodOptional<z.ZodString>;
|
|
179
|
+
usage: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
request: "request";
|
|
181
|
+
program: "program";
|
|
182
|
+
}>>;
|
|
183
|
+
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
184
|
+
agentScope: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
185
|
+
all: z.ZodLiteral<true>;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
188
|
+
}, z.core.$strict>]>>;
|
|
189
|
+
autoUse: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
envName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
+
approvedAgentIds: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>>;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
export type UpdateCredentialRequest = z.output<typeof UpdateCredentialRequestSchema>;
|
|
194
|
+
export declare const ReplaceCredentialValueRequestSchema: z.ZodObject<{
|
|
195
|
+
value: z.ZodString;
|
|
196
|
+
}, z.core.$strict>;
|
|
197
|
+
export type ReplaceCredentialValueRequest = z.output<typeof ReplaceCredentialValueRequestSchema>;
|
|
198
|
+
/** Removing a credential that is in use needs `confirm`; without it the result lists who uses it. */
|
|
199
|
+
export declare const RemoveCredentialRequestSchema: z.ZodObject<{
|
|
200
|
+
confirm: z.ZodDefault<z.ZodBoolean>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
export declare const RemoveCredentialResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
203
|
+
removed: z.ZodLiteral<true>;
|
|
204
|
+
view: z.ZodObject<{
|
|
205
|
+
credentials: z.ZodArray<z.ZodObject<{
|
|
206
|
+
id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
|
|
207
|
+
name: z.ZodString;
|
|
208
|
+
description: z.ZodString;
|
|
209
|
+
usage: z.ZodEnum<{
|
|
210
|
+
request: "request";
|
|
211
|
+
program: "program";
|
|
212
|
+
}>;
|
|
213
|
+
domains: z.ZodArray<z.ZodString>;
|
|
214
|
+
agentScope: z.ZodUnion<readonly [z.ZodObject<{
|
|
215
|
+
all: z.ZodLiteral<true>;
|
|
216
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
217
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
218
|
+
}, z.core.$strict>]>;
|
|
219
|
+
autoUse: z.ZodBoolean;
|
|
220
|
+
envName: z.ZodNullable<z.ZodString>;
|
|
221
|
+
approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
222
|
+
redactable: z.ZodBoolean;
|
|
223
|
+
available: z.ZodBoolean;
|
|
224
|
+
usedBy: z.ZodObject<{
|
|
225
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
226
|
+
extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
229
|
+
host: z.ZodBoolean;
|
|
230
|
+
}, z.core.$strict>>;
|
|
231
|
+
commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
232
|
+
}, z.core.$strict>;
|
|
233
|
+
createdAt: z.ZodNumber;
|
|
234
|
+
updatedAt: z.ZodNumber;
|
|
235
|
+
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
236
|
+
}, z.core.$strict>>;
|
|
237
|
+
modelProviders: z.ZodArray<z.ZodObject<{
|
|
238
|
+
provider: z.ZodString;
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
open: z.ZodBoolean;
|
|
241
|
+
}, z.core.$strict>>;
|
|
242
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
243
|
+
id: z.ZodString;
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
purpose: z.ZodString;
|
|
246
|
+
domains: z.ZodArray<z.ZodString>;
|
|
247
|
+
usage: z.ZodEnum<{
|
|
248
|
+
request: "request";
|
|
249
|
+
program: "program";
|
|
250
|
+
}>;
|
|
251
|
+
agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
252
|
+
channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
|
|
253
|
+
createdAt: z.ZodNumber;
|
|
254
|
+
route: z.ZodString;
|
|
255
|
+
}, z.core.$strict>>;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
258
|
+
removed: z.ZodLiteral<false>;
|
|
259
|
+
usedBy: z.ZodObject<{
|
|
260
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
261
|
+
extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
262
|
+
name: z.ZodString;
|
|
263
|
+
agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
264
|
+
host: z.ZodBoolean;
|
|
265
|
+
}, z.core.$strict>>;
|
|
266
|
+
commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
267
|
+
}, z.core.$strict>;
|
|
268
|
+
}, z.core.$strict>], "removed">;
|
|
269
|
+
export type RemoveCredentialResult = z.output<typeof RemoveCredentialResultSchema>;
|
|
270
|
+
export declare const CredentialConsumerKindSchema: z.ZodEnum<{
|
|
271
|
+
extension: "extension";
|
|
272
|
+
command: "command";
|
|
273
|
+
model: "model";
|
|
274
|
+
mcp: "mcp";
|
|
275
|
+
}>;
|
|
276
|
+
/** One recorded use. The newest 500 per credential are kept, none older than 90 days. */
|
|
277
|
+
export declare const CredentialUseSchema: z.ZodObject<{
|
|
278
|
+
at: z.ZodNumber;
|
|
279
|
+
agentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
280
|
+
channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
|
|
281
|
+
requesterMemberId: z.ZodNullable<z.ZodString>;
|
|
282
|
+
consumerKind: z.ZodEnum<{
|
|
283
|
+
extension: "extension";
|
|
284
|
+
command: "command";
|
|
285
|
+
model: "model";
|
|
286
|
+
mcp: "mcp";
|
|
287
|
+
}>;
|
|
288
|
+
consumerId: z.ZodString;
|
|
289
|
+
consumerName: z.ZodNullable<z.ZodString>;
|
|
290
|
+
targetHost: z.ZodNullable<z.ZodString>;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
export type CredentialUse = z.output<typeof CredentialUseSchema>;
|
|
293
|
+
export declare const CredentialUsesViewSchema: z.ZodObject<{
|
|
294
|
+
uses: z.ZodArray<z.ZodObject<{
|
|
295
|
+
at: z.ZodNumber;
|
|
296
|
+
agentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
|
|
297
|
+
channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
|
|
298
|
+
requesterMemberId: z.ZodNullable<z.ZodString>;
|
|
299
|
+
consumerKind: z.ZodEnum<{
|
|
300
|
+
extension: "extension";
|
|
301
|
+
command: "command";
|
|
302
|
+
model: "model";
|
|
303
|
+
mcp: "mcp";
|
|
304
|
+
}>;
|
|
305
|
+
consumerId: z.ZodString;
|
|
306
|
+
consumerName: z.ZodNullable<z.ZodString>;
|
|
307
|
+
targetHost: z.ZodNullable<z.ZodString>;
|
|
308
|
+
}, z.core.$strict>>;
|
|
309
|
+
}, z.core.$strict>;
|
|
310
|
+
export declare const SetModelProviderAccessRequestSchema: z.ZodObject<{
|
|
311
|
+
open: z.ZodBoolean;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
/**
|
|
314
|
+
* The settings route that opens the add form pre-filled from an agent's request: the credential section with `add=1`
|
|
315
|
+
* plus `name`, `purpose`, `domains` (comma separated), `usage` and `request` (the request id) as query parameters.
|
|
316
|
+
*/
|
|
317
|
+
export declare const credentialRequestRoute: (request: {
|
|
318
|
+
readonly id: string;
|
|
319
|
+
readonly name: string;
|
|
320
|
+
readonly purpose: string;
|
|
321
|
+
readonly domains: readonly string[];
|
|
322
|
+
readonly usage: CredentialUsage;
|
|
323
|
+
}) => string;
|
|
324
|
+
/** Secret fields of an extension configuration layer bound to a named credential, by field. */
|
|
325
|
+
export declare const BoundCredentialsSchema: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>;
|
|
326
|
+
/** Binds secret fields to named credentials; `null` removes the binding and leaves the field unset. */
|
|
327
|
+
export declare const CredentialBindingsRequestSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
|
|
328
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/credentials.ts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;;;;;;;kBAA4D,CAAA;AAEjG,eAAO,MAAM,mCAAmC;;kBAA2C,CAAA;AAE3F;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAA;CAChC,KAAG,MAKH,CAAA;AAED,+FAA+F;AAC/F,eAAO,MAAM,sBAAsB,kFAA2C,CAAA;AAE9E,uGAAuG;AACvG,eAAO,MAAM,+BAA+B,iGAAsD,CAAA"}
|
package/lib/types/domain.d.ts
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Rendered send-tool result consumed by both the agent and the product detail view. */
|
|
3
|
+
export declare const MessageDeliverySummarySchema: z.ZodObject<{
|
|
4
|
+
status: z.ZodEnum<{
|
|
5
|
+
sent: "sent";
|
|
6
|
+
"partially-sent": "partially-sent";
|
|
7
|
+
failed: "failed";
|
|
8
|
+
unknown: "unknown";
|
|
9
|
+
}>;
|
|
10
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
11
|
+
status: z.ZodEnum<{
|
|
12
|
+
failed: "failed";
|
|
13
|
+
unknown: "unknown";
|
|
14
|
+
}>;
|
|
15
|
+
message: z.ZodString;
|
|
16
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
transient: "transient";
|
|
18
|
+
permanent: "permanent";
|
|
19
|
+
"rate-limited": "rate-limited";
|
|
20
|
+
authentication: "authentication";
|
|
21
|
+
invalid: "invalid";
|
|
22
|
+
}>>;
|
|
23
|
+
action: z.ZodOptional<z.ZodString>;
|
|
24
|
+
retcode: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
omittedIssues: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
processing: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
processedBy: z.ZodArray<z.ZodString>;
|
|
29
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
30
|
+
followUps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
2
33
|
export declare const AgentIdSchema: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
3
34
|
export declare const AgentRevisionIdSchema: z.core.$ZodBranded<z.ZodString, "AgentRevisionId", "out">;
|
|
4
35
|
export declare const ConnectionIdSchema: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
|
|
@@ -21,7 +52,13 @@ export declare const DshPluginEntryIdSchema: z.core.$ZodBranded<z.ZodString, "Ds
|
|
|
21
52
|
export declare const HostUiPageInstanceIdSchema: z.core.$ZodBranded<z.ZodString, "HostUiPageInstanceId", "out">;
|
|
22
53
|
export declare const AuthoringTaskIdSchema: z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">;
|
|
23
54
|
export declare const AuthoringAttemptIdSchema: z.core.$ZodBranded<z.ZodString, "AuthoringAttemptId", "out">;
|
|
55
|
+
export declare const SubConversationIdSchema: z.core.$ZodBranded<z.ZodString, "SubConversationId", "out">;
|
|
56
|
+
export declare const CredentialIdSchema: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
|
|
57
|
+
export declare const LinkedAccountIdSchema: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
|
|
24
58
|
export type AgentId = z.infer<typeof AgentIdSchema>;
|
|
59
|
+
export type SubConversationId = z.infer<typeof SubConversationIdSchema>;
|
|
60
|
+
export type CredentialId = z.infer<typeof CredentialIdSchema>;
|
|
61
|
+
export type LinkedAccountId = z.infer<typeof LinkedAccountIdSchema>;
|
|
25
62
|
export type AgentRevisionId = z.infer<typeof AgentRevisionIdSchema>;
|
|
26
63
|
export type ConnectionId = z.infer<typeof ConnectionIdSchema>;
|
|
27
64
|
export type ConnectionEventId = z.infer<typeof ConnectionEventIdSchema>;
|
|
@@ -143,8 +180,8 @@ export interface DshPluginActivationRecord {
|
|
|
143
180
|
export interface DshPluginDiagnosticRecord {
|
|
144
181
|
readonly entryId: DshPluginEntryId;
|
|
145
182
|
readonly targetKey: string;
|
|
146
|
-
readonly status: 'active' | 'load-failed' | 'restore-failed' | 'dispose-failed';
|
|
147
|
-
readonly phase: 'import' | 'apply' | 'update' | 'dispose' | 'restore';
|
|
183
|
+
readonly status: 'active' | 'pending' | 'load-failed' | 'restore-failed' | 'dispose-failed';
|
|
184
|
+
readonly phase: 'import' | 'dependency' | 'apply' | 'update' | 'dispose' | 'restore';
|
|
148
185
|
readonly message?: string;
|
|
149
186
|
readonly observedAt: number;
|
|
150
187
|
}
|
|
@@ -196,6 +233,7 @@ export declare const MessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
196
233
|
type: z.ZodLiteral<"image">;
|
|
197
234
|
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
198
235
|
alt: z.ZodOptional<z.ZodString>;
|
|
236
|
+
sticker: z.ZodOptional<z.ZodLiteral<true>>;
|
|
199
237
|
}, z.core.$strict>, z.ZodObject<{
|
|
200
238
|
type: z.ZodLiteral<"file">;
|
|
201
239
|
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
@@ -228,6 +266,7 @@ export declare const MessagePartsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.Z
|
|
|
228
266
|
type: z.ZodLiteral<"image">;
|
|
229
267
|
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
230
268
|
alt: z.ZodOptional<z.ZodString>;
|
|
269
|
+
sticker: z.ZodOptional<z.ZodLiteral<true>>;
|
|
231
270
|
}, z.core.$strict>, z.ZodObject<{
|
|
232
271
|
type: z.ZodLiteral<"file">;
|
|
233
272
|
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
@@ -259,6 +298,7 @@ export declare const NonEmptyMessagePartsSchema: z.ZodArray<z.ZodDiscriminatedUn
|
|
|
259
298
|
type: z.ZodLiteral<"image">;
|
|
260
299
|
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
261
300
|
alt: z.ZodOptional<z.ZodString>;
|
|
301
|
+
sticker: z.ZodOptional<z.ZodLiteral<true>>;
|
|
262
302
|
}, z.core.$strict>, z.ZodObject<{
|
|
263
303
|
type: z.ZodLiteral<"file">;
|
|
264
304
|
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
@@ -283,6 +323,8 @@ export declare const NonEmptyMessagePartsSchema: z.ZodArray<z.ZodDiscriminatedUn
|
|
|
283
323
|
export declare function parseMessageParts(input: unknown): MessagePart[];
|
|
284
324
|
export declare const messagePartAssetIds: (part: MessagePart) => readonly AssetId[];
|
|
285
325
|
export declare const messagePartAssetId: (part: MessagePart) => AssetId | undefined;
|
|
326
|
+
/** Only actual pictures enter visual context; forwarded files and recordings retain their own media kind. */
|
|
327
|
+
export declare const messagePartImageAssetIds: (part: MessagePart) => readonly AssetId[];
|
|
286
328
|
/** Flatten a rich part for search and model context. */
|
|
287
329
|
export declare const richPartContextText: (part: Extract<MessagePart, {
|
|
288
330
|
type: "rich";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,wFAAwF;AACxF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2B9B,CAAA;AAQX,e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xB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAC3B;AAID,eAAO,MAAM,wBAAwB,QAAY,CAAA;AAEjD,eAAO,MAAM,mBAAmB,iBAG/B,CAAA;AAED,eAAO,MAAM,mBAAmB,UAMe,CAAA;AAE/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA+B5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA6B,CAAA;AAC5D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA4B,CAAA;AAEnE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,EAAE,CAE/D;AAwBD,eAAO,MAAM,mBAAmB,GAAI,MAAM,WAAW,KAAG,SAAS,OAAO,EAOvE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,MAAM,WAAW,KAAG,OAAO,GAAG,SAAyC,CAAA;AAE1G,6GAA6G;AAC7G,eAAO,MAAM,wBAAwB,GAAI,MAAM,WAAW,KAAG,SAAS,OAAO,EAM5E,CAAA;AA+BD,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,KAAG,MAalF,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,SAAS,WAAW,EAAE,KAAG,MAOxD,CAAA"}
|
|
@@ -3,9 +3,16 @@ import { z } from 'zod';
|
|
|
3
3
|
* Host capability level this build implements. A Revision that declares `requires.sdk` above it is rejected at
|
|
4
4
|
* import with an "upgrade NekroNXT" message instead of an opaque schema error. Bump when a Manifest capability
|
|
5
5
|
* ships; never reuse a level for a different meaning. Level 7 is Manifest V7 (host instance + agent attachments); level 8 adds the asset library, image info, tool result
|
|
6
|
-
* images, the search index and host-layer model calls.
|
|
6
|
+
* images, the search index and host-layer model calls. Level 9 adds the structured logger and explicit chat commands. Level 10 adds version lineage, the data version with its
|
|
7
|
+
* migration hook and administrator-only commands. Level 11 lists the pictures of an inbound message to inbound hooks.
|
|
8
|
+
* Level 12 adds credential placeholders (`secrets.placeholder`) that `http.fetch` fills for the credential's domains.
|
|
9
|
+
* Level 13 adds outbound processing (`harness.onOutbound`, `permissions.agent.outbound`).
|
|
7
10
|
*/
|
|
8
|
-
export declare const EXTENSION_SDK_LEVEL =
|
|
11
|
+
export declare const EXTENSION_SDK_LEVEL = 13;
|
|
12
|
+
/** Outbound processing needs this level; packages that declare `permissions.agent.outbound` declare it. */
|
|
13
|
+
export declare const EXTENSION_OUTBOUND_SDK_LEVEL = 13;
|
|
14
|
+
/** Lineage, `dataVersion` and administrator-only commands need this level; packages that carry them declare it. */
|
|
15
|
+
export declare const EXTENSION_GOVERNANCE_SDK_LEVEL = 10;
|
|
9
16
|
/**
|
|
10
17
|
* The first NekroNXT version of each capability level, so users read "needs NekroNXT 0.5.0" rather than a level
|
|
11
18
|
* number. Add the row for a new level in the change that raises EXTENSION_SDK_LEVEL; a test keeps the two in step.
|
|
@@ -84,6 +91,25 @@ export declare const ExtensionInboundHookCapabilitySchema: z.ZodObject<{
|
|
|
84
91
|
timeoutMs: z.ZodNumber;
|
|
85
92
|
}, z.core.$strict>;
|
|
86
93
|
export type ExtensionInboundHookCapability = z.output<typeof ExtensionInboundHookCapabilitySchema>;
|
|
94
|
+
export declare const EXTENSION_OUTBOUND_MAX_TIMEOUT_MS = 15000;
|
|
95
|
+
/**
|
|
96
|
+
* Outbound processing of the agent's own messages. `read` sees each message after it was delivered; `transform` may
|
|
97
|
+
* replace its content or append messages before it is sent; `cancel` may stop it. `onTimeout` decides what happens
|
|
98
|
+
* when the handler times out or throws before sending: `send` (default) sends the message as it is.
|
|
99
|
+
*/
|
|
100
|
+
export declare const ExtensionOutboundCapabilitySchema: z.ZodObject<{
|
|
101
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
102
|
+
transform: z.ZodOptional<z.ZodLiteral<true>>;
|
|
103
|
+
cancel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
104
|
+
timeoutMs: z.ZodNumber;
|
|
105
|
+
onTimeout: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
cancel: "cancel";
|
|
107
|
+
send: "send";
|
|
108
|
+
}>>;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
export type ExtensionOutboundCapability = z.output<typeof ExtensionOutboundCapabilitySchema>;
|
|
111
|
+
/** Whether the extension takes part before sending (and so in the agent's processing order). */
|
|
112
|
+
export declare const outboundProcessesBeforeSend: (outbound: ExtensionOutboundCapability | undefined) => boolean;
|
|
87
113
|
export declare const EXTENSION_JOB_MAX_RUNTIME = 50;
|
|
88
114
|
export declare const ExtensionDeclaredJobSchema: z.ZodObject<{
|
|
89
115
|
id: z.ZodString;
|
|
@@ -162,9 +188,14 @@ export declare const ExtensionModelsCapabilitySchema: z.ZodObject<{
|
|
|
162
188
|
maxOutputTokens: z.ZodNumber;
|
|
163
189
|
}, z.core.$strict>;
|
|
164
190
|
export type ExtensionModelsCapability = z.output<typeof ExtensionModelsCapabilitySchema>;
|
|
165
|
-
/**
|
|
191
|
+
/**
|
|
192
|
+
* A header or environment value: literal text, the current value of a `meta.role: 'secret'` config field, or a named
|
|
193
|
+
* credential (by id or name) that the agent may use.
|
|
194
|
+
*/
|
|
166
195
|
export declare const ExtensionMcpValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
167
196
|
secret: z.ZodString;
|
|
197
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
198
|
+
credential: z.ZodString;
|
|
168
199
|
}, z.core.$strict>]>;
|
|
169
200
|
export type ExtensionMcpValue = z.output<typeof ExtensionMcpValueSchema>;
|
|
170
201
|
/** Becomes the model-facing tool prefix `mcp__<name>__`. */
|
|
@@ -175,6 +206,8 @@ export declare const ExtensionMcpServerSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
175
206
|
url: z.ZodString;
|
|
176
207
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
177
208
|
secret: z.ZodString;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
credential: z.ZodString;
|
|
178
211
|
}, z.core.$strict>]>>>;
|
|
179
212
|
}, z.core.$strict>, z.ZodObject<{
|
|
180
213
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -183,6 +216,8 @@ export declare const ExtensionMcpServerSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
183
216
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
184
217
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
185
218
|
secret: z.ZodString;
|
|
219
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
220
|
+
credential: z.ZodString;
|
|
186
221
|
}, z.core.$strict>]>>>;
|
|
187
222
|
}, z.core.$strict>], "transport">;
|
|
188
223
|
export type ExtensionMcpServer = z.output<typeof ExtensionMcpServerSchema>;
|
|
@@ -197,6 +232,8 @@ export declare const ExtensionMcpCapabilitySchema: z.ZodObject<{
|
|
|
197
232
|
url: z.ZodString;
|
|
198
233
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
199
234
|
secret: z.ZodString;
|
|
235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
+
credential: z.ZodString;
|
|
200
237
|
}, z.core.$strict>]>>>;
|
|
201
238
|
}, z.core.$strict>, z.ZodObject<{
|
|
202
239
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -205,6 +242,8 @@ export declare const ExtensionMcpCapabilitySchema: z.ZodObject<{
|
|
|
205
242
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
206
243
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
207
244
|
secret: z.ZodString;
|
|
245
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
246
|
+
credential: z.ZodString;
|
|
208
247
|
}, z.core.$strict>]>>>;
|
|
209
248
|
}, z.core.$strict>], "transport">>;
|
|
210
249
|
}, z.core.$strict>;
|
|
@@ -217,6 +256,7 @@ export declare const McpServerFormSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
217
256
|
name: z.ZodString;
|
|
218
257
|
value: z.ZodString;
|
|
219
258
|
secret: z.ZodDefault<z.ZodBoolean>;
|
|
259
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
220
260
|
}, z.core.$strict>>>;
|
|
221
261
|
}, z.core.$strict>, z.ZodObject<{
|
|
222
262
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -227,6 +267,7 @@ export declare const McpServerFormSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
227
267
|
name: z.ZodString;
|
|
228
268
|
value: z.ZodString;
|
|
229
269
|
secret: z.ZodDefault<z.ZodBoolean>;
|
|
270
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
230
271
|
}, z.core.$strict>>>;
|
|
231
272
|
}, z.core.$strict>], "transport">;
|
|
232
273
|
export type McpServerForm = z.output<typeof McpServerFormSchema>;
|
|
@@ -288,6 +329,16 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
288
329
|
mayForceTrigger: z.ZodBoolean;
|
|
289
330
|
timeoutMs: z.ZodNumber;
|
|
290
331
|
}, z.core.$strict>>;
|
|
332
|
+
outbound: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
334
|
+
transform: z.ZodOptional<z.ZodLiteral<true>>;
|
|
335
|
+
cancel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
336
|
+
timeoutMs: z.ZodNumber;
|
|
337
|
+
onTimeout: z.ZodOptional<z.ZodEnum<{
|
|
338
|
+
cancel: "cancel";
|
|
339
|
+
send: "send";
|
|
340
|
+
}>>;
|
|
341
|
+
}, z.core.$strict>>;
|
|
291
342
|
jobs: z.ZodOptional<z.ZodObject<{
|
|
292
343
|
declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
293
344
|
id: z.ZodString;
|
|
@@ -317,6 +368,8 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
317
368
|
url: z.ZodString;
|
|
318
369
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
319
370
|
secret: z.ZodString;
|
|
371
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
372
|
+
credential: z.ZodString;
|
|
320
373
|
}, z.core.$strict>]>>>;
|
|
321
374
|
}, z.core.$strict>, z.ZodObject<{
|
|
322
375
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -325,6 +378,8 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
325
378
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
326
379
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
327
380
|
secret: z.ZodString;
|
|
381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
382
|
+
credential: z.ZodString;
|
|
328
383
|
}, z.core.$strict>]>>>;
|
|
329
384
|
}, z.core.$strict>], "transport">>;
|
|
330
385
|
}, z.core.$strict>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-capabilities.d.ts","sourceRoot":"","sources":["../../src/extension-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB
|
|
1
|
+
{"version":3,"file":"extension-capabilities.d.ts","sourceRoot":"","sources":["../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