@gt-fe/eap-sdk 0.1.7 → 0.1.8

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.
Files changed (38) hide show
  1. package/README.md +18 -18
  2. package/dist/lockfile/resolve-dependencies.js +1 -1
  3. package/dist/lockfile/resolve-dependencies.js.map +1 -1
  4. package/dist/lockfile/types.d.ts +1 -1
  5. package/dist/lockfile/types.d.ts.map +1 -1
  6. package/dist/resources/extract-resource-package.js +1 -1
  7. package/dist/resources/local-resource.d.ts +2 -2
  8. package/dist/resources/local-resource.d.ts.map +1 -1
  9. package/dist/resources/local-resource.js +5 -19
  10. package/dist/resources/local-resource.js.map +1 -1
  11. package/dist/schema/index.d.ts +1 -1
  12. package/dist/schema/index.d.ts.map +1 -1
  13. package/dist/schema/index.js +1 -1
  14. package/dist/schema/index.js.map +1 -1
  15. package/dist/schema/toolset/index.d.ts +3 -0
  16. package/dist/schema/toolset/index.d.ts.map +1 -0
  17. package/dist/schema/toolset/index.js +3 -0
  18. package/dist/schema/toolset/index.js.map +1 -0
  19. package/dist/schema/toolset/manifest.d.ts +447 -0
  20. package/dist/schema/toolset/manifest.d.ts.map +1 -0
  21. package/dist/schema/toolset/manifest.js +111 -0
  22. package/dist/schema/toolset/manifest.js.map +1 -0
  23. package/dist/schema/toolset/read-toolset-manifest.d.ts +7 -0
  24. package/dist/schema/toolset/read-toolset-manifest.d.ts.map +1 -0
  25. package/dist/schema/{tool/read-tool-manifest.js → toolset/read-toolset-manifest.js} +10 -10
  26. package/dist/schema/toolset/read-toolset-manifest.js.map +1 -0
  27. package/package.json +1 -1
  28. package/dist/schema/tool/index.d.ts +0 -3
  29. package/dist/schema/tool/index.d.ts.map +0 -1
  30. package/dist/schema/tool/index.js +0 -3
  31. package/dist/schema/tool/index.js.map +0 -1
  32. package/dist/schema/tool/manifest.d.ts +0 -1342
  33. package/dist/schema/tool/manifest.d.ts.map +0 -1
  34. package/dist/schema/tool/manifest.js +0 -127
  35. package/dist/schema/tool/manifest.js.map +0 -1
  36. package/dist/schema/tool/read-tool-manifest.d.ts +0 -7
  37. package/dist/schema/tool/read-tool-manifest.d.ts.map +0 -1
  38. package/dist/schema/tool/read-tool-manifest.js.map +0 -1
@@ -1,1342 +0,0 @@
1
- import { z } from 'zod';
2
- /** Tool 对外主键(code),用作目录名和 function calling 路由键。 */
3
- export declare const ToolCodeSchema: z.ZodString;
4
- export declare const ToolVersionSchema: z.ZodString;
5
- export declare const ToolTypeSchema: z.ZodEnum<["code", "mcp", "http"]>;
6
- export declare const ToolCategorySchema: z.ZodEnum<["general", "collaboration", "enterprise-api", "enterprise-data", "enterprise-knowledge"]>;
7
- export declare const ToolRiskLevelSchema: z.ZodEnum<["low", "medium", "high"]>;
8
- export declare const ToolDeliveryPhaseSchema: z.ZodEnum<["P0", "P1", "P2"]>;
9
- export declare const ToolRuntimeSchema: z.ZodEnum<["local", "server", "both"]>;
10
- export declare const ToolStatusSchema: z.ZodLiteral<"published">;
11
- declare const CodeToolManifestSchema: z.ZodObject<{
12
- code: z.ZodString;
13
- name: z.ZodString;
14
- version: z.ZodString;
15
- description: z.ZodOptional<z.ZodString>;
16
- category: z.ZodOptional<z.ZodEnum<["general", "collaboration", "enterprise-api", "enterprise-data", "enterprise-knowledge"]>>;
17
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
19
- deliveryPhase: z.ZodOptional<z.ZodEnum<["P0", "P1", "P2"]>>;
20
- defaultEnabled: z.ZodOptional<z.ZodBoolean>;
21
- requireConfirmation: z.ZodOptional<z.ZodBoolean>;
22
- toolRuntime: z.ZodOptional<z.ZodEnum<["local", "server", "both"]>>;
23
- status: z.ZodDefault<z.ZodLiteral<"published">>;
24
- input: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
25
- output: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
26
- permissions: z.ZodOptional<z.ZodObject<{
27
- requiredRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
- dataScope: z.ZodOptional<z.ZodEnum<["user-bound", "department-bound", "department", "tenant-bound", "global"]>>;
29
- }, "strict", z.ZodTypeAny, {
30
- requiredRoles?: string[] | undefined;
31
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
32
- }, {
33
- requiredRoles?: string[] | undefined;
34
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
35
- }>>;
36
- rateLimit: z.ZodOptional<z.ZodObject<{
37
- maxCalls: z.ZodNumber;
38
- window: z.ZodString;
39
- }, "strict", z.ZodTypeAny, {
40
- maxCalls: number;
41
- window: string;
42
- }, {
43
- maxCalls: number;
44
- window: string;
45
- }>>;
46
- metadata: z.ZodOptional<z.ZodObject<{
47
- owner: z.ZodOptional<z.ZodString>;
48
- repository: z.ZodOptional<z.ZodString>;
49
- bundlePath: z.ZodOptional<z.ZodString>;
50
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
51
- owner: z.ZodOptional<z.ZodString>;
52
- repository: z.ZodOptional<z.ZodString>;
53
- bundlePath: z.ZodOptional<z.ZodString>;
54
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
55
- owner: z.ZodOptional<z.ZodString>;
56
- repository: z.ZodOptional<z.ZodString>;
57
- bundlePath: z.ZodOptional<z.ZodString>;
58
- }, z.ZodTypeAny, "passthrough">>>;
59
- mockResponse: z.ZodOptional<z.ZodUnknown>;
60
- } & {
61
- type: z.ZodLiteral<"code">;
62
- execution: z.ZodOptional<z.ZodObject<{
63
- runtime: z.ZodEnum<["node", "python", "executable"]>;
64
- handler: z.ZodString;
65
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
66
- timeout: z.ZodNumber;
67
- sandbox: z.ZodBoolean;
68
- resources: z.ZodOptional<z.ZodObject<{
69
- memory: z.ZodOptional<z.ZodString>;
70
- cpu: z.ZodOptional<z.ZodString>;
71
- }, "strict", z.ZodTypeAny, {
72
- memory?: string | undefined;
73
- cpu?: string | undefined;
74
- }, {
75
- memory?: string | undefined;
76
- cpu?: string | undefined;
77
- }>>;
78
- }, "strict", z.ZodTypeAny, {
79
- timeout: number;
80
- handler: string;
81
- runtime: "node" | "python" | "executable";
82
- sandbox: boolean;
83
- resources?: {
84
- memory?: string | undefined;
85
- cpu?: string | undefined;
86
- } | undefined;
87
- args?: string[] | undefined;
88
- }, {
89
- timeout: number;
90
- handler: string;
91
- runtime: "node" | "python" | "executable";
92
- sandbox: boolean;
93
- resources?: {
94
- memory?: string | undefined;
95
- cpu?: string | undefined;
96
- } | undefined;
97
- args?: string[] | undefined;
98
- }>>;
99
- }, "strict", z.ZodTypeAny, {
100
- code: string;
101
- type: "code";
102
- status: "published";
103
- name: string;
104
- version: string;
105
- description?: string | undefined;
106
- tags?: string[] | undefined;
107
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
108
- metadata?: z.objectOutputType<{
109
- owner: z.ZodOptional<z.ZodString>;
110
- repository: z.ZodOptional<z.ZodString>;
111
- bundlePath: z.ZodOptional<z.ZodString>;
112
- }, z.ZodTypeAny, "passthrough"> | undefined;
113
- riskLevel?: "low" | "medium" | "high" | undefined;
114
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
115
- defaultEnabled?: boolean | undefined;
116
- requireConfirmation?: boolean | undefined;
117
- toolRuntime?: "local" | "server" | "both" | undefined;
118
- input?: import("../json-schema.js").JsonSchema | undefined;
119
- output?: import("../json-schema.js").JsonSchema | undefined;
120
- permissions?: {
121
- requiredRoles?: string[] | undefined;
122
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
123
- } | undefined;
124
- rateLimit?: {
125
- maxCalls: number;
126
- window: string;
127
- } | undefined;
128
- mockResponse?: unknown;
129
- execution?: {
130
- timeout: number;
131
- handler: string;
132
- runtime: "node" | "python" | "executable";
133
- sandbox: boolean;
134
- resources?: {
135
- memory?: string | undefined;
136
- cpu?: string | undefined;
137
- } | undefined;
138
- args?: string[] | undefined;
139
- } | undefined;
140
- }, {
141
- code: string;
142
- type: "code";
143
- name: string;
144
- version: string;
145
- status?: "published" | undefined;
146
- description?: string | undefined;
147
- tags?: string[] | undefined;
148
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
149
- metadata?: z.objectInputType<{
150
- owner: z.ZodOptional<z.ZodString>;
151
- repository: z.ZodOptional<z.ZodString>;
152
- bundlePath: z.ZodOptional<z.ZodString>;
153
- }, z.ZodTypeAny, "passthrough"> | undefined;
154
- riskLevel?: "low" | "medium" | "high" | undefined;
155
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
156
- defaultEnabled?: boolean | undefined;
157
- requireConfirmation?: boolean | undefined;
158
- toolRuntime?: "local" | "server" | "both" | undefined;
159
- input?: import("../json-schema.js").JsonSchema | undefined;
160
- output?: import("../json-schema.js").JsonSchema | undefined;
161
- permissions?: {
162
- requiredRoles?: string[] | undefined;
163
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
164
- } | undefined;
165
- rateLimit?: {
166
- maxCalls: number;
167
- window: string;
168
- } | undefined;
169
- mockResponse?: unknown;
170
- execution?: {
171
- timeout: number;
172
- handler: string;
173
- runtime: "node" | "python" | "executable";
174
- sandbox: boolean;
175
- resources?: {
176
- memory?: string | undefined;
177
- cpu?: string | undefined;
178
- } | undefined;
179
- args?: string[] | undefined;
180
- } | undefined;
181
- }>;
182
- declare const McpToolManifestSchema: z.ZodObject<{
183
- code: z.ZodString;
184
- name: z.ZodString;
185
- version: z.ZodString;
186
- description: z.ZodOptional<z.ZodString>;
187
- category: z.ZodOptional<z.ZodEnum<["general", "collaboration", "enterprise-api", "enterprise-data", "enterprise-knowledge"]>>;
188
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
190
- deliveryPhase: z.ZodOptional<z.ZodEnum<["P0", "P1", "P2"]>>;
191
- defaultEnabled: z.ZodOptional<z.ZodBoolean>;
192
- requireConfirmation: z.ZodOptional<z.ZodBoolean>;
193
- toolRuntime: z.ZodOptional<z.ZodEnum<["local", "server", "both"]>>;
194
- status: z.ZodDefault<z.ZodLiteral<"published">>;
195
- input: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
196
- output: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
197
- permissions: z.ZodOptional<z.ZodObject<{
198
- requiredRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
199
- dataScope: z.ZodOptional<z.ZodEnum<["user-bound", "department-bound", "department", "tenant-bound", "global"]>>;
200
- }, "strict", z.ZodTypeAny, {
201
- requiredRoles?: string[] | undefined;
202
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
203
- }, {
204
- requiredRoles?: string[] | undefined;
205
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
206
- }>>;
207
- rateLimit: z.ZodOptional<z.ZodObject<{
208
- maxCalls: z.ZodNumber;
209
- window: z.ZodString;
210
- }, "strict", z.ZodTypeAny, {
211
- maxCalls: number;
212
- window: string;
213
- }, {
214
- maxCalls: number;
215
- window: string;
216
- }>>;
217
- metadata: z.ZodOptional<z.ZodObject<{
218
- owner: z.ZodOptional<z.ZodString>;
219
- repository: z.ZodOptional<z.ZodString>;
220
- bundlePath: z.ZodOptional<z.ZodString>;
221
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
222
- owner: z.ZodOptional<z.ZodString>;
223
- repository: z.ZodOptional<z.ZodString>;
224
- bundlePath: z.ZodOptional<z.ZodString>;
225
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
226
- owner: z.ZodOptional<z.ZodString>;
227
- repository: z.ZodOptional<z.ZodString>;
228
- bundlePath: z.ZodOptional<z.ZodString>;
229
- }, z.ZodTypeAny, "passthrough">>>;
230
- mockResponse: z.ZodOptional<z.ZodUnknown>;
231
- } & {
232
- type: z.ZodLiteral<"mcp">;
233
- execution: z.ZodOptional<z.ZodObject<{
234
- protocol: z.ZodLiteral<"mcp">;
235
- transport: z.ZodOptional<z.ZodEnum<["stdio", "sse", "streamable_http"]>>;
236
- server: z.ZodObject<{
237
- command: z.ZodOptional<z.ZodString>;
238
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
239
- cwd: z.ZodOptional<z.ZodString>;
240
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
241
- url: z.ZodOptional<z.ZodString>;
242
- header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
243
- }, "strict", z.ZodTypeAny, {
244
- url?: string | undefined;
245
- args?: string[] | undefined;
246
- command?: string | undefined;
247
- cwd?: string | undefined;
248
- env?: Record<string, string> | undefined;
249
- header?: Record<string, string> | undefined;
250
- }, {
251
- url?: string | undefined;
252
- args?: string[] | undefined;
253
- command?: string | undefined;
254
- cwd?: string | undefined;
255
- env?: Record<string, string> | undefined;
256
- header?: Record<string, string> | undefined;
257
- }>;
258
- toolName: z.ZodString;
259
- timeout: z.ZodNumber;
260
- }, "strict", z.ZodTypeAny, {
261
- timeout: number;
262
- server: {
263
- url?: string | undefined;
264
- args?: string[] | undefined;
265
- command?: string | undefined;
266
- cwd?: string | undefined;
267
- env?: Record<string, string> | undefined;
268
- header?: Record<string, string> | undefined;
269
- };
270
- protocol: "mcp";
271
- toolName: string;
272
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
273
- }, {
274
- timeout: number;
275
- server: {
276
- url?: string | undefined;
277
- args?: string[] | undefined;
278
- command?: string | undefined;
279
- cwd?: string | undefined;
280
- env?: Record<string, string> | undefined;
281
- header?: Record<string, string> | undefined;
282
- };
283
- protocol: "mcp";
284
- toolName: string;
285
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
286
- }>>;
287
- }, "strict", z.ZodTypeAny, {
288
- code: string;
289
- type: "mcp";
290
- status: "published";
291
- name: string;
292
- version: string;
293
- description?: string | undefined;
294
- tags?: string[] | undefined;
295
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
296
- metadata?: z.objectOutputType<{
297
- owner: z.ZodOptional<z.ZodString>;
298
- repository: z.ZodOptional<z.ZodString>;
299
- bundlePath: z.ZodOptional<z.ZodString>;
300
- }, z.ZodTypeAny, "passthrough"> | undefined;
301
- riskLevel?: "low" | "medium" | "high" | undefined;
302
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
303
- defaultEnabled?: boolean | undefined;
304
- requireConfirmation?: boolean | undefined;
305
- toolRuntime?: "local" | "server" | "both" | undefined;
306
- input?: import("../json-schema.js").JsonSchema | undefined;
307
- output?: import("../json-schema.js").JsonSchema | undefined;
308
- permissions?: {
309
- requiredRoles?: string[] | undefined;
310
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
311
- } | undefined;
312
- rateLimit?: {
313
- maxCalls: number;
314
- window: string;
315
- } | undefined;
316
- mockResponse?: unknown;
317
- execution?: {
318
- timeout: number;
319
- server: {
320
- url?: string | undefined;
321
- args?: string[] | undefined;
322
- command?: string | undefined;
323
- cwd?: string | undefined;
324
- env?: Record<string, string> | undefined;
325
- header?: Record<string, string> | undefined;
326
- };
327
- protocol: "mcp";
328
- toolName: string;
329
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
330
- } | undefined;
331
- }, {
332
- code: string;
333
- type: "mcp";
334
- name: string;
335
- version: string;
336
- status?: "published" | undefined;
337
- description?: string | undefined;
338
- tags?: string[] | undefined;
339
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
340
- metadata?: z.objectInputType<{
341
- owner: z.ZodOptional<z.ZodString>;
342
- repository: z.ZodOptional<z.ZodString>;
343
- bundlePath: z.ZodOptional<z.ZodString>;
344
- }, z.ZodTypeAny, "passthrough"> | undefined;
345
- riskLevel?: "low" | "medium" | "high" | undefined;
346
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
347
- defaultEnabled?: boolean | undefined;
348
- requireConfirmation?: boolean | undefined;
349
- toolRuntime?: "local" | "server" | "both" | undefined;
350
- input?: import("../json-schema.js").JsonSchema | undefined;
351
- output?: import("../json-schema.js").JsonSchema | undefined;
352
- permissions?: {
353
- requiredRoles?: string[] | undefined;
354
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
355
- } | undefined;
356
- rateLimit?: {
357
- maxCalls: number;
358
- window: string;
359
- } | undefined;
360
- mockResponse?: unknown;
361
- execution?: {
362
- timeout: number;
363
- server: {
364
- url?: string | undefined;
365
- args?: string[] | undefined;
366
- command?: string | undefined;
367
- cwd?: string | undefined;
368
- env?: Record<string, string> | undefined;
369
- header?: Record<string, string> | undefined;
370
- };
371
- protocol: "mcp";
372
- toolName: string;
373
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
374
- } | undefined;
375
- }>;
376
- declare const HttpToolManifestSchema: z.ZodObject<{
377
- code: z.ZodString;
378
- name: z.ZodString;
379
- version: z.ZodString;
380
- description: z.ZodOptional<z.ZodString>;
381
- category: z.ZodOptional<z.ZodEnum<["general", "collaboration", "enterprise-api", "enterprise-data", "enterprise-knowledge"]>>;
382
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
383
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
384
- deliveryPhase: z.ZodOptional<z.ZodEnum<["P0", "P1", "P2"]>>;
385
- defaultEnabled: z.ZodOptional<z.ZodBoolean>;
386
- requireConfirmation: z.ZodOptional<z.ZodBoolean>;
387
- toolRuntime: z.ZodOptional<z.ZodEnum<["local", "server", "both"]>>;
388
- status: z.ZodDefault<z.ZodLiteral<"published">>;
389
- input: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
390
- output: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
391
- permissions: z.ZodOptional<z.ZodObject<{
392
- requiredRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
393
- dataScope: z.ZodOptional<z.ZodEnum<["user-bound", "department-bound", "department", "tenant-bound", "global"]>>;
394
- }, "strict", z.ZodTypeAny, {
395
- requiredRoles?: string[] | undefined;
396
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
397
- }, {
398
- requiredRoles?: string[] | undefined;
399
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
400
- }>>;
401
- rateLimit: z.ZodOptional<z.ZodObject<{
402
- maxCalls: z.ZodNumber;
403
- window: z.ZodString;
404
- }, "strict", z.ZodTypeAny, {
405
- maxCalls: number;
406
- window: string;
407
- }, {
408
- maxCalls: number;
409
- window: string;
410
- }>>;
411
- metadata: z.ZodOptional<z.ZodObject<{
412
- owner: z.ZodOptional<z.ZodString>;
413
- repository: z.ZodOptional<z.ZodString>;
414
- bundlePath: z.ZodOptional<z.ZodString>;
415
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
416
- owner: z.ZodOptional<z.ZodString>;
417
- repository: z.ZodOptional<z.ZodString>;
418
- bundlePath: z.ZodOptional<z.ZodString>;
419
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
420
- owner: z.ZodOptional<z.ZodString>;
421
- repository: z.ZodOptional<z.ZodString>;
422
- bundlePath: z.ZodOptional<z.ZodString>;
423
- }, z.ZodTypeAny, "passthrough">>>;
424
- mockResponse: z.ZodOptional<z.ZodUnknown>;
425
- } & {
426
- type: z.ZodLiteral<"http">;
427
- execution: z.ZodOptional<z.ZodObject<{
428
- http: z.ZodObject<{
429
- baseUrl: z.ZodString;
430
- method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
431
- pathTemplate: z.ZodOptional<z.ZodString>;
432
- header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
433
- timeout: z.ZodOptional<z.ZodNumber>;
434
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
435
- }, "strict", z.ZodTypeAny, {
436
- baseUrl: string;
437
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
438
- timeout?: number | undefined;
439
- header?: Record<string, string> | undefined;
440
- pathTemplate?: string | undefined;
441
- allowedHosts?: string[] | undefined;
442
- }, {
443
- baseUrl: string;
444
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
445
- timeout?: number | undefined;
446
- header?: Record<string, string> | undefined;
447
- pathTemplate?: string | undefined;
448
- allowedHosts?: string[] | undefined;
449
- }>;
450
- }, "strict", z.ZodTypeAny, {
451
- http: {
452
- baseUrl: string;
453
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
454
- timeout?: number | undefined;
455
- header?: Record<string, string> | undefined;
456
- pathTemplate?: string | undefined;
457
- allowedHosts?: string[] | undefined;
458
- };
459
- }, {
460
- http: {
461
- baseUrl: string;
462
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
463
- timeout?: number | undefined;
464
- header?: Record<string, string> | undefined;
465
- pathTemplate?: string | undefined;
466
- allowedHosts?: string[] | undefined;
467
- };
468
- }>>;
469
- }, "strict", z.ZodTypeAny, {
470
- code: string;
471
- type: "http";
472
- status: "published";
473
- name: string;
474
- version: string;
475
- description?: string | undefined;
476
- tags?: string[] | undefined;
477
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
478
- metadata?: z.objectOutputType<{
479
- owner: z.ZodOptional<z.ZodString>;
480
- repository: z.ZodOptional<z.ZodString>;
481
- bundlePath: z.ZodOptional<z.ZodString>;
482
- }, z.ZodTypeAny, "passthrough"> | undefined;
483
- riskLevel?: "low" | "medium" | "high" | undefined;
484
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
485
- defaultEnabled?: boolean | undefined;
486
- requireConfirmation?: boolean | undefined;
487
- toolRuntime?: "local" | "server" | "both" | undefined;
488
- input?: import("../json-schema.js").JsonSchema | undefined;
489
- output?: import("../json-schema.js").JsonSchema | undefined;
490
- permissions?: {
491
- requiredRoles?: string[] | undefined;
492
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
493
- } | undefined;
494
- rateLimit?: {
495
- maxCalls: number;
496
- window: string;
497
- } | undefined;
498
- mockResponse?: unknown;
499
- execution?: {
500
- http: {
501
- baseUrl: string;
502
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
503
- timeout?: number | undefined;
504
- header?: Record<string, string> | undefined;
505
- pathTemplate?: string | undefined;
506
- allowedHosts?: string[] | undefined;
507
- };
508
- } | undefined;
509
- }, {
510
- code: string;
511
- type: "http";
512
- name: string;
513
- version: string;
514
- status?: "published" | undefined;
515
- description?: string | undefined;
516
- tags?: string[] | undefined;
517
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
518
- metadata?: z.objectInputType<{
519
- owner: z.ZodOptional<z.ZodString>;
520
- repository: z.ZodOptional<z.ZodString>;
521
- bundlePath: z.ZodOptional<z.ZodString>;
522
- }, z.ZodTypeAny, "passthrough"> | undefined;
523
- riskLevel?: "low" | "medium" | "high" | undefined;
524
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
525
- defaultEnabled?: boolean | undefined;
526
- requireConfirmation?: boolean | undefined;
527
- toolRuntime?: "local" | "server" | "both" | undefined;
528
- input?: import("../json-schema.js").JsonSchema | undefined;
529
- output?: import("../json-schema.js").JsonSchema | undefined;
530
- permissions?: {
531
- requiredRoles?: string[] | undefined;
532
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
533
- } | undefined;
534
- rateLimit?: {
535
- maxCalls: number;
536
- window: string;
537
- } | undefined;
538
- mockResponse?: unknown;
539
- execution?: {
540
- http: {
541
- baseUrl: string;
542
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
543
- timeout?: number | undefined;
544
- header?: Record<string, string> | undefined;
545
- pathTemplate?: string | undefined;
546
- allowedHosts?: string[] | undefined;
547
- };
548
- } | undefined;
549
- }>;
550
- export declare const ToolManifestSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
551
- code: z.ZodString;
552
- name: z.ZodString;
553
- version: z.ZodString;
554
- description: z.ZodOptional<z.ZodString>;
555
- category: z.ZodOptional<z.ZodEnum<["general", "collaboration", "enterprise-api", "enterprise-data", "enterprise-knowledge"]>>;
556
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
557
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
558
- deliveryPhase: z.ZodOptional<z.ZodEnum<["P0", "P1", "P2"]>>;
559
- defaultEnabled: z.ZodOptional<z.ZodBoolean>;
560
- requireConfirmation: z.ZodOptional<z.ZodBoolean>;
561
- toolRuntime: z.ZodOptional<z.ZodEnum<["local", "server", "both"]>>;
562
- status: z.ZodDefault<z.ZodLiteral<"published">>;
563
- input: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
564
- output: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
565
- permissions: z.ZodOptional<z.ZodObject<{
566
- requiredRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
567
- dataScope: z.ZodOptional<z.ZodEnum<["user-bound", "department-bound", "department", "tenant-bound", "global"]>>;
568
- }, "strict", z.ZodTypeAny, {
569
- requiredRoles?: string[] | undefined;
570
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
571
- }, {
572
- requiredRoles?: string[] | undefined;
573
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
574
- }>>;
575
- rateLimit: z.ZodOptional<z.ZodObject<{
576
- maxCalls: z.ZodNumber;
577
- window: z.ZodString;
578
- }, "strict", z.ZodTypeAny, {
579
- maxCalls: number;
580
- window: string;
581
- }, {
582
- maxCalls: number;
583
- window: string;
584
- }>>;
585
- metadata: z.ZodOptional<z.ZodObject<{
586
- owner: z.ZodOptional<z.ZodString>;
587
- repository: z.ZodOptional<z.ZodString>;
588
- bundlePath: z.ZodOptional<z.ZodString>;
589
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
590
- owner: z.ZodOptional<z.ZodString>;
591
- repository: z.ZodOptional<z.ZodString>;
592
- bundlePath: z.ZodOptional<z.ZodString>;
593
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
594
- owner: z.ZodOptional<z.ZodString>;
595
- repository: z.ZodOptional<z.ZodString>;
596
- bundlePath: z.ZodOptional<z.ZodString>;
597
- }, z.ZodTypeAny, "passthrough">>>;
598
- mockResponse: z.ZodOptional<z.ZodUnknown>;
599
- } & {
600
- type: z.ZodLiteral<"code">;
601
- execution: z.ZodOptional<z.ZodObject<{
602
- runtime: z.ZodEnum<["node", "python", "executable"]>;
603
- handler: z.ZodString;
604
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
605
- timeout: z.ZodNumber;
606
- sandbox: z.ZodBoolean;
607
- resources: z.ZodOptional<z.ZodObject<{
608
- memory: z.ZodOptional<z.ZodString>;
609
- cpu: z.ZodOptional<z.ZodString>;
610
- }, "strict", z.ZodTypeAny, {
611
- memory?: string | undefined;
612
- cpu?: string | undefined;
613
- }, {
614
- memory?: string | undefined;
615
- cpu?: string | undefined;
616
- }>>;
617
- }, "strict", z.ZodTypeAny, {
618
- timeout: number;
619
- handler: string;
620
- runtime: "node" | "python" | "executable";
621
- sandbox: boolean;
622
- resources?: {
623
- memory?: string | undefined;
624
- cpu?: string | undefined;
625
- } | undefined;
626
- args?: string[] | undefined;
627
- }, {
628
- timeout: number;
629
- handler: string;
630
- runtime: "node" | "python" | "executable";
631
- sandbox: boolean;
632
- resources?: {
633
- memory?: string | undefined;
634
- cpu?: string | undefined;
635
- } | undefined;
636
- args?: string[] | undefined;
637
- }>>;
638
- }, "strict", z.ZodTypeAny, {
639
- code: string;
640
- type: "code";
641
- status: "published";
642
- name: string;
643
- version: string;
644
- description?: string | undefined;
645
- tags?: string[] | undefined;
646
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
647
- metadata?: z.objectOutputType<{
648
- owner: z.ZodOptional<z.ZodString>;
649
- repository: z.ZodOptional<z.ZodString>;
650
- bundlePath: z.ZodOptional<z.ZodString>;
651
- }, z.ZodTypeAny, "passthrough"> | undefined;
652
- riskLevel?: "low" | "medium" | "high" | undefined;
653
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
654
- defaultEnabled?: boolean | undefined;
655
- requireConfirmation?: boolean | undefined;
656
- toolRuntime?: "local" | "server" | "both" | undefined;
657
- input?: import("../json-schema.js").JsonSchema | undefined;
658
- output?: import("../json-schema.js").JsonSchema | undefined;
659
- permissions?: {
660
- requiredRoles?: string[] | undefined;
661
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
662
- } | undefined;
663
- rateLimit?: {
664
- maxCalls: number;
665
- window: string;
666
- } | undefined;
667
- mockResponse?: unknown;
668
- execution?: {
669
- timeout: number;
670
- handler: string;
671
- runtime: "node" | "python" | "executable";
672
- sandbox: boolean;
673
- resources?: {
674
- memory?: string | undefined;
675
- cpu?: string | undefined;
676
- } | undefined;
677
- args?: string[] | undefined;
678
- } | undefined;
679
- }, {
680
- code: string;
681
- type: "code";
682
- name: string;
683
- version: string;
684
- status?: "published" | undefined;
685
- description?: string | undefined;
686
- tags?: string[] | undefined;
687
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
688
- metadata?: z.objectInputType<{
689
- owner: z.ZodOptional<z.ZodString>;
690
- repository: z.ZodOptional<z.ZodString>;
691
- bundlePath: z.ZodOptional<z.ZodString>;
692
- }, z.ZodTypeAny, "passthrough"> | undefined;
693
- riskLevel?: "low" | "medium" | "high" | undefined;
694
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
695
- defaultEnabled?: boolean | undefined;
696
- requireConfirmation?: boolean | undefined;
697
- toolRuntime?: "local" | "server" | "both" | undefined;
698
- input?: import("../json-schema.js").JsonSchema | undefined;
699
- output?: import("../json-schema.js").JsonSchema | undefined;
700
- permissions?: {
701
- requiredRoles?: string[] | undefined;
702
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
703
- } | undefined;
704
- rateLimit?: {
705
- maxCalls: number;
706
- window: string;
707
- } | undefined;
708
- mockResponse?: unknown;
709
- execution?: {
710
- timeout: number;
711
- handler: string;
712
- runtime: "node" | "python" | "executable";
713
- sandbox: boolean;
714
- resources?: {
715
- memory?: string | undefined;
716
- cpu?: string | undefined;
717
- } | undefined;
718
- args?: string[] | undefined;
719
- } | undefined;
720
- }>, z.ZodObject<{
721
- code: z.ZodString;
722
- name: z.ZodString;
723
- version: z.ZodString;
724
- description: z.ZodOptional<z.ZodString>;
725
- category: z.ZodOptional<z.ZodEnum<["general", "collaboration", "enterprise-api", "enterprise-data", "enterprise-knowledge"]>>;
726
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
727
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
728
- deliveryPhase: z.ZodOptional<z.ZodEnum<["P0", "P1", "P2"]>>;
729
- defaultEnabled: z.ZodOptional<z.ZodBoolean>;
730
- requireConfirmation: z.ZodOptional<z.ZodBoolean>;
731
- toolRuntime: z.ZodOptional<z.ZodEnum<["local", "server", "both"]>>;
732
- status: z.ZodDefault<z.ZodLiteral<"published">>;
733
- input: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
734
- output: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
735
- permissions: z.ZodOptional<z.ZodObject<{
736
- requiredRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
737
- dataScope: z.ZodOptional<z.ZodEnum<["user-bound", "department-bound", "department", "tenant-bound", "global"]>>;
738
- }, "strict", z.ZodTypeAny, {
739
- requiredRoles?: string[] | undefined;
740
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
741
- }, {
742
- requiredRoles?: string[] | undefined;
743
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
744
- }>>;
745
- rateLimit: z.ZodOptional<z.ZodObject<{
746
- maxCalls: z.ZodNumber;
747
- window: z.ZodString;
748
- }, "strict", z.ZodTypeAny, {
749
- maxCalls: number;
750
- window: string;
751
- }, {
752
- maxCalls: number;
753
- window: string;
754
- }>>;
755
- metadata: z.ZodOptional<z.ZodObject<{
756
- owner: z.ZodOptional<z.ZodString>;
757
- repository: z.ZodOptional<z.ZodString>;
758
- bundlePath: z.ZodOptional<z.ZodString>;
759
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
760
- owner: z.ZodOptional<z.ZodString>;
761
- repository: z.ZodOptional<z.ZodString>;
762
- bundlePath: z.ZodOptional<z.ZodString>;
763
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
764
- owner: z.ZodOptional<z.ZodString>;
765
- repository: z.ZodOptional<z.ZodString>;
766
- bundlePath: z.ZodOptional<z.ZodString>;
767
- }, z.ZodTypeAny, "passthrough">>>;
768
- mockResponse: z.ZodOptional<z.ZodUnknown>;
769
- } & {
770
- type: z.ZodLiteral<"mcp">;
771
- execution: z.ZodOptional<z.ZodObject<{
772
- protocol: z.ZodLiteral<"mcp">;
773
- transport: z.ZodOptional<z.ZodEnum<["stdio", "sse", "streamable_http"]>>;
774
- server: z.ZodObject<{
775
- command: z.ZodOptional<z.ZodString>;
776
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
777
- cwd: z.ZodOptional<z.ZodString>;
778
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
779
- url: z.ZodOptional<z.ZodString>;
780
- header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
781
- }, "strict", z.ZodTypeAny, {
782
- url?: string | undefined;
783
- args?: string[] | undefined;
784
- command?: string | undefined;
785
- cwd?: string | undefined;
786
- env?: Record<string, string> | undefined;
787
- header?: Record<string, string> | undefined;
788
- }, {
789
- url?: string | undefined;
790
- args?: string[] | undefined;
791
- command?: string | undefined;
792
- cwd?: string | undefined;
793
- env?: Record<string, string> | undefined;
794
- header?: Record<string, string> | undefined;
795
- }>;
796
- toolName: z.ZodString;
797
- timeout: z.ZodNumber;
798
- }, "strict", z.ZodTypeAny, {
799
- timeout: number;
800
- server: {
801
- url?: string | undefined;
802
- args?: string[] | undefined;
803
- command?: string | undefined;
804
- cwd?: string | undefined;
805
- env?: Record<string, string> | undefined;
806
- header?: Record<string, string> | undefined;
807
- };
808
- protocol: "mcp";
809
- toolName: string;
810
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
811
- }, {
812
- timeout: number;
813
- server: {
814
- url?: string | undefined;
815
- args?: string[] | undefined;
816
- command?: string | undefined;
817
- cwd?: string | undefined;
818
- env?: Record<string, string> | undefined;
819
- header?: Record<string, string> | undefined;
820
- };
821
- protocol: "mcp";
822
- toolName: string;
823
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
824
- }>>;
825
- }, "strict", z.ZodTypeAny, {
826
- code: string;
827
- type: "mcp";
828
- status: "published";
829
- name: string;
830
- version: string;
831
- description?: string | undefined;
832
- tags?: string[] | undefined;
833
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
834
- metadata?: z.objectOutputType<{
835
- owner: z.ZodOptional<z.ZodString>;
836
- repository: z.ZodOptional<z.ZodString>;
837
- bundlePath: z.ZodOptional<z.ZodString>;
838
- }, z.ZodTypeAny, "passthrough"> | undefined;
839
- riskLevel?: "low" | "medium" | "high" | undefined;
840
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
841
- defaultEnabled?: boolean | undefined;
842
- requireConfirmation?: boolean | undefined;
843
- toolRuntime?: "local" | "server" | "both" | undefined;
844
- input?: import("../json-schema.js").JsonSchema | undefined;
845
- output?: import("../json-schema.js").JsonSchema | undefined;
846
- permissions?: {
847
- requiredRoles?: string[] | undefined;
848
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
849
- } | undefined;
850
- rateLimit?: {
851
- maxCalls: number;
852
- window: string;
853
- } | undefined;
854
- mockResponse?: unknown;
855
- execution?: {
856
- timeout: number;
857
- server: {
858
- url?: string | undefined;
859
- args?: string[] | undefined;
860
- command?: string | undefined;
861
- cwd?: string | undefined;
862
- env?: Record<string, string> | undefined;
863
- header?: Record<string, string> | undefined;
864
- };
865
- protocol: "mcp";
866
- toolName: string;
867
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
868
- } | undefined;
869
- }, {
870
- code: string;
871
- type: "mcp";
872
- name: string;
873
- version: string;
874
- status?: "published" | undefined;
875
- description?: string | undefined;
876
- tags?: string[] | undefined;
877
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
878
- metadata?: z.objectInputType<{
879
- owner: z.ZodOptional<z.ZodString>;
880
- repository: z.ZodOptional<z.ZodString>;
881
- bundlePath: z.ZodOptional<z.ZodString>;
882
- }, z.ZodTypeAny, "passthrough"> | undefined;
883
- riskLevel?: "low" | "medium" | "high" | undefined;
884
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
885
- defaultEnabled?: boolean | undefined;
886
- requireConfirmation?: boolean | undefined;
887
- toolRuntime?: "local" | "server" | "both" | undefined;
888
- input?: import("../json-schema.js").JsonSchema | undefined;
889
- output?: import("../json-schema.js").JsonSchema | undefined;
890
- permissions?: {
891
- requiredRoles?: string[] | undefined;
892
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
893
- } | undefined;
894
- rateLimit?: {
895
- maxCalls: number;
896
- window: string;
897
- } | undefined;
898
- mockResponse?: unknown;
899
- execution?: {
900
- timeout: number;
901
- server: {
902
- url?: string | undefined;
903
- args?: string[] | undefined;
904
- command?: string | undefined;
905
- cwd?: string | undefined;
906
- env?: Record<string, string> | undefined;
907
- header?: Record<string, string> | undefined;
908
- };
909
- protocol: "mcp";
910
- toolName: string;
911
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
912
- } | undefined;
913
- }>, z.ZodObject<{
914
- code: z.ZodString;
915
- name: z.ZodString;
916
- version: z.ZodString;
917
- description: z.ZodOptional<z.ZodString>;
918
- category: z.ZodOptional<z.ZodEnum<["general", "collaboration", "enterprise-api", "enterprise-data", "enterprise-knowledge"]>>;
919
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
920
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
921
- deliveryPhase: z.ZodOptional<z.ZodEnum<["P0", "P1", "P2"]>>;
922
- defaultEnabled: z.ZodOptional<z.ZodBoolean>;
923
- requireConfirmation: z.ZodOptional<z.ZodBoolean>;
924
- toolRuntime: z.ZodOptional<z.ZodEnum<["local", "server", "both"]>>;
925
- status: z.ZodDefault<z.ZodLiteral<"published">>;
926
- input: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
927
- output: z.ZodOptional<z.ZodType<import("../json-schema.js").JsonSchema, z.ZodTypeDef, import("../json-schema.js").JsonSchema>>;
928
- permissions: z.ZodOptional<z.ZodObject<{
929
- requiredRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
930
- dataScope: z.ZodOptional<z.ZodEnum<["user-bound", "department-bound", "department", "tenant-bound", "global"]>>;
931
- }, "strict", z.ZodTypeAny, {
932
- requiredRoles?: string[] | undefined;
933
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
934
- }, {
935
- requiredRoles?: string[] | undefined;
936
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
937
- }>>;
938
- rateLimit: z.ZodOptional<z.ZodObject<{
939
- maxCalls: z.ZodNumber;
940
- window: z.ZodString;
941
- }, "strict", z.ZodTypeAny, {
942
- maxCalls: number;
943
- window: string;
944
- }, {
945
- maxCalls: number;
946
- window: string;
947
- }>>;
948
- metadata: z.ZodOptional<z.ZodObject<{
949
- owner: z.ZodOptional<z.ZodString>;
950
- repository: z.ZodOptional<z.ZodString>;
951
- bundlePath: z.ZodOptional<z.ZodString>;
952
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
953
- owner: z.ZodOptional<z.ZodString>;
954
- repository: z.ZodOptional<z.ZodString>;
955
- bundlePath: z.ZodOptional<z.ZodString>;
956
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
957
- owner: z.ZodOptional<z.ZodString>;
958
- repository: z.ZodOptional<z.ZodString>;
959
- bundlePath: z.ZodOptional<z.ZodString>;
960
- }, z.ZodTypeAny, "passthrough">>>;
961
- mockResponse: z.ZodOptional<z.ZodUnknown>;
962
- } & {
963
- type: z.ZodLiteral<"http">;
964
- execution: z.ZodOptional<z.ZodObject<{
965
- http: z.ZodObject<{
966
- baseUrl: z.ZodString;
967
- method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
968
- pathTemplate: z.ZodOptional<z.ZodString>;
969
- header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
970
- timeout: z.ZodOptional<z.ZodNumber>;
971
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
972
- }, "strict", z.ZodTypeAny, {
973
- baseUrl: string;
974
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
975
- timeout?: number | undefined;
976
- header?: Record<string, string> | undefined;
977
- pathTemplate?: string | undefined;
978
- allowedHosts?: string[] | undefined;
979
- }, {
980
- baseUrl: string;
981
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
982
- timeout?: number | undefined;
983
- header?: Record<string, string> | undefined;
984
- pathTemplate?: string | undefined;
985
- allowedHosts?: string[] | undefined;
986
- }>;
987
- }, "strict", z.ZodTypeAny, {
988
- http: {
989
- baseUrl: string;
990
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
991
- timeout?: number | undefined;
992
- header?: Record<string, string> | undefined;
993
- pathTemplate?: string | undefined;
994
- allowedHosts?: string[] | undefined;
995
- };
996
- }, {
997
- http: {
998
- baseUrl: string;
999
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1000
- timeout?: number | undefined;
1001
- header?: Record<string, string> | undefined;
1002
- pathTemplate?: string | undefined;
1003
- allowedHosts?: string[] | undefined;
1004
- };
1005
- }>>;
1006
- }, "strict", z.ZodTypeAny, {
1007
- code: string;
1008
- type: "http";
1009
- status: "published";
1010
- name: string;
1011
- version: string;
1012
- description?: string | undefined;
1013
- tags?: string[] | undefined;
1014
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1015
- metadata?: z.objectOutputType<{
1016
- owner: z.ZodOptional<z.ZodString>;
1017
- repository: z.ZodOptional<z.ZodString>;
1018
- bundlePath: z.ZodOptional<z.ZodString>;
1019
- }, z.ZodTypeAny, "passthrough"> | undefined;
1020
- riskLevel?: "low" | "medium" | "high" | undefined;
1021
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
1022
- defaultEnabled?: boolean | undefined;
1023
- requireConfirmation?: boolean | undefined;
1024
- toolRuntime?: "local" | "server" | "both" | undefined;
1025
- input?: import("../json-schema.js").JsonSchema | undefined;
1026
- output?: import("../json-schema.js").JsonSchema | undefined;
1027
- permissions?: {
1028
- requiredRoles?: string[] | undefined;
1029
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
1030
- } | undefined;
1031
- rateLimit?: {
1032
- maxCalls: number;
1033
- window: string;
1034
- } | undefined;
1035
- mockResponse?: unknown;
1036
- execution?: {
1037
- http: {
1038
- baseUrl: string;
1039
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1040
- timeout?: number | undefined;
1041
- header?: Record<string, string> | undefined;
1042
- pathTemplate?: string | undefined;
1043
- allowedHosts?: string[] | undefined;
1044
- };
1045
- } | undefined;
1046
- }, {
1047
- code: string;
1048
- type: "http";
1049
- name: string;
1050
- version: string;
1051
- status?: "published" | undefined;
1052
- description?: string | undefined;
1053
- tags?: string[] | undefined;
1054
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1055
- metadata?: z.objectInputType<{
1056
- owner: z.ZodOptional<z.ZodString>;
1057
- repository: z.ZodOptional<z.ZodString>;
1058
- bundlePath: z.ZodOptional<z.ZodString>;
1059
- }, z.ZodTypeAny, "passthrough"> | undefined;
1060
- riskLevel?: "low" | "medium" | "high" | undefined;
1061
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
1062
- defaultEnabled?: boolean | undefined;
1063
- requireConfirmation?: boolean | undefined;
1064
- toolRuntime?: "local" | "server" | "both" | undefined;
1065
- input?: import("../json-schema.js").JsonSchema | undefined;
1066
- output?: import("../json-schema.js").JsonSchema | undefined;
1067
- permissions?: {
1068
- requiredRoles?: string[] | undefined;
1069
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
1070
- } | undefined;
1071
- rateLimit?: {
1072
- maxCalls: number;
1073
- window: string;
1074
- } | undefined;
1075
- mockResponse?: unknown;
1076
- execution?: {
1077
- http: {
1078
- baseUrl: string;
1079
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1080
- timeout?: number | undefined;
1081
- header?: Record<string, string> | undefined;
1082
- pathTemplate?: string | undefined;
1083
- allowedHosts?: string[] | undefined;
1084
- };
1085
- } | undefined;
1086
- }>]>, {
1087
- code: string;
1088
- type: "code";
1089
- status: "published";
1090
- name: string;
1091
- version: string;
1092
- description?: string | undefined;
1093
- tags?: string[] | undefined;
1094
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1095
- metadata?: z.objectOutputType<{
1096
- owner: z.ZodOptional<z.ZodString>;
1097
- repository: z.ZodOptional<z.ZodString>;
1098
- bundlePath: z.ZodOptional<z.ZodString>;
1099
- }, z.ZodTypeAny, "passthrough"> | undefined;
1100
- riskLevel?: "low" | "medium" | "high" | undefined;
1101
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
1102
- defaultEnabled?: boolean | undefined;
1103
- requireConfirmation?: boolean | undefined;
1104
- toolRuntime?: "local" | "server" | "both" | undefined;
1105
- input?: import("../json-schema.js").JsonSchema | undefined;
1106
- output?: import("../json-schema.js").JsonSchema | undefined;
1107
- permissions?: {
1108
- requiredRoles?: string[] | undefined;
1109
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
1110
- } | undefined;
1111
- rateLimit?: {
1112
- maxCalls: number;
1113
- window: string;
1114
- } | undefined;
1115
- mockResponse?: unknown;
1116
- execution?: {
1117
- timeout: number;
1118
- handler: string;
1119
- runtime: "node" | "python" | "executable";
1120
- sandbox: boolean;
1121
- resources?: {
1122
- memory?: string | undefined;
1123
- cpu?: string | undefined;
1124
- } | undefined;
1125
- args?: string[] | undefined;
1126
- } | undefined;
1127
- } | {
1128
- code: string;
1129
- type: "mcp";
1130
- status: "published";
1131
- name: string;
1132
- version: string;
1133
- description?: string | undefined;
1134
- tags?: string[] | undefined;
1135
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1136
- metadata?: z.objectOutputType<{
1137
- owner: z.ZodOptional<z.ZodString>;
1138
- repository: z.ZodOptional<z.ZodString>;
1139
- bundlePath: z.ZodOptional<z.ZodString>;
1140
- }, z.ZodTypeAny, "passthrough"> | undefined;
1141
- riskLevel?: "low" | "medium" | "high" | undefined;
1142
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
1143
- defaultEnabled?: boolean | undefined;
1144
- requireConfirmation?: boolean | undefined;
1145
- toolRuntime?: "local" | "server" | "both" | undefined;
1146
- input?: import("../json-schema.js").JsonSchema | undefined;
1147
- output?: import("../json-schema.js").JsonSchema | undefined;
1148
- permissions?: {
1149
- requiredRoles?: string[] | undefined;
1150
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
1151
- } | undefined;
1152
- rateLimit?: {
1153
- maxCalls: number;
1154
- window: string;
1155
- } | undefined;
1156
- mockResponse?: unknown;
1157
- execution?: {
1158
- timeout: number;
1159
- server: {
1160
- url?: string | undefined;
1161
- args?: string[] | undefined;
1162
- command?: string | undefined;
1163
- cwd?: string | undefined;
1164
- env?: Record<string, string> | undefined;
1165
- header?: Record<string, string> | undefined;
1166
- };
1167
- protocol: "mcp";
1168
- toolName: string;
1169
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
1170
- } | undefined;
1171
- } | {
1172
- code: string;
1173
- type: "http";
1174
- status: "published";
1175
- name: string;
1176
- version: string;
1177
- description?: string | undefined;
1178
- tags?: string[] | undefined;
1179
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1180
- metadata?: z.objectOutputType<{
1181
- owner: z.ZodOptional<z.ZodString>;
1182
- repository: z.ZodOptional<z.ZodString>;
1183
- bundlePath: z.ZodOptional<z.ZodString>;
1184
- }, z.ZodTypeAny, "passthrough"> | undefined;
1185
- riskLevel?: "low" | "medium" | "high" | undefined;
1186
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
1187
- defaultEnabled?: boolean | undefined;
1188
- requireConfirmation?: boolean | undefined;
1189
- toolRuntime?: "local" | "server" | "both" | undefined;
1190
- input?: import("../json-schema.js").JsonSchema | undefined;
1191
- output?: import("../json-schema.js").JsonSchema | undefined;
1192
- permissions?: {
1193
- requiredRoles?: string[] | undefined;
1194
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
1195
- } | undefined;
1196
- rateLimit?: {
1197
- maxCalls: number;
1198
- window: string;
1199
- } | undefined;
1200
- mockResponse?: unknown;
1201
- execution?: {
1202
- http: {
1203
- baseUrl: string;
1204
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1205
- timeout?: number | undefined;
1206
- header?: Record<string, string> | undefined;
1207
- pathTemplate?: string | undefined;
1208
- allowedHosts?: string[] | undefined;
1209
- };
1210
- } | undefined;
1211
- }, {
1212
- code: string;
1213
- type: "code";
1214
- name: string;
1215
- version: string;
1216
- status?: "published" | undefined;
1217
- description?: string | undefined;
1218
- tags?: string[] | undefined;
1219
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1220
- metadata?: z.objectInputType<{
1221
- owner: z.ZodOptional<z.ZodString>;
1222
- repository: z.ZodOptional<z.ZodString>;
1223
- bundlePath: z.ZodOptional<z.ZodString>;
1224
- }, z.ZodTypeAny, "passthrough"> | undefined;
1225
- riskLevel?: "low" | "medium" | "high" | undefined;
1226
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
1227
- defaultEnabled?: boolean | undefined;
1228
- requireConfirmation?: boolean | undefined;
1229
- toolRuntime?: "local" | "server" | "both" | undefined;
1230
- input?: import("../json-schema.js").JsonSchema | undefined;
1231
- output?: import("../json-schema.js").JsonSchema | undefined;
1232
- permissions?: {
1233
- requiredRoles?: string[] | undefined;
1234
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
1235
- } | undefined;
1236
- rateLimit?: {
1237
- maxCalls: number;
1238
- window: string;
1239
- } | undefined;
1240
- mockResponse?: unknown;
1241
- execution?: {
1242
- timeout: number;
1243
- handler: string;
1244
- runtime: "node" | "python" | "executable";
1245
- sandbox: boolean;
1246
- resources?: {
1247
- memory?: string | undefined;
1248
- cpu?: string | undefined;
1249
- } | undefined;
1250
- args?: string[] | undefined;
1251
- } | undefined;
1252
- } | {
1253
- code: string;
1254
- type: "mcp";
1255
- name: string;
1256
- version: string;
1257
- status?: "published" | undefined;
1258
- description?: string | undefined;
1259
- tags?: string[] | undefined;
1260
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1261
- metadata?: z.objectInputType<{
1262
- owner: z.ZodOptional<z.ZodString>;
1263
- repository: z.ZodOptional<z.ZodString>;
1264
- bundlePath: z.ZodOptional<z.ZodString>;
1265
- }, z.ZodTypeAny, "passthrough"> | undefined;
1266
- riskLevel?: "low" | "medium" | "high" | undefined;
1267
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
1268
- defaultEnabled?: boolean | undefined;
1269
- requireConfirmation?: boolean | undefined;
1270
- toolRuntime?: "local" | "server" | "both" | undefined;
1271
- input?: import("../json-schema.js").JsonSchema | undefined;
1272
- output?: import("../json-schema.js").JsonSchema | undefined;
1273
- permissions?: {
1274
- requiredRoles?: string[] | undefined;
1275
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
1276
- } | undefined;
1277
- rateLimit?: {
1278
- maxCalls: number;
1279
- window: string;
1280
- } | undefined;
1281
- mockResponse?: unknown;
1282
- execution?: {
1283
- timeout: number;
1284
- server: {
1285
- url?: string | undefined;
1286
- args?: string[] | undefined;
1287
- command?: string | undefined;
1288
- cwd?: string | undefined;
1289
- env?: Record<string, string> | undefined;
1290
- header?: Record<string, string> | undefined;
1291
- };
1292
- protocol: "mcp";
1293
- toolName: string;
1294
- transport?: "stdio" | "sse" | "streamable_http" | undefined;
1295
- } | undefined;
1296
- } | {
1297
- code: string;
1298
- type: "http";
1299
- name: string;
1300
- version: string;
1301
- status?: "published" | undefined;
1302
- description?: string | undefined;
1303
- tags?: string[] | undefined;
1304
- category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1305
- metadata?: z.objectInputType<{
1306
- owner: z.ZodOptional<z.ZodString>;
1307
- repository: z.ZodOptional<z.ZodString>;
1308
- bundlePath: z.ZodOptional<z.ZodString>;
1309
- }, z.ZodTypeAny, "passthrough"> | undefined;
1310
- riskLevel?: "low" | "medium" | "high" | undefined;
1311
- deliveryPhase?: "P0" | "P1" | "P2" | undefined;
1312
- defaultEnabled?: boolean | undefined;
1313
- requireConfirmation?: boolean | undefined;
1314
- toolRuntime?: "local" | "server" | "both" | undefined;
1315
- input?: import("../json-schema.js").JsonSchema | undefined;
1316
- output?: import("../json-schema.js").JsonSchema | undefined;
1317
- permissions?: {
1318
- requiredRoles?: string[] | undefined;
1319
- dataScope?: "user-bound" | "department-bound" | "department" | "tenant-bound" | "global" | undefined;
1320
- } | undefined;
1321
- rateLimit?: {
1322
- maxCalls: number;
1323
- window: string;
1324
- } | undefined;
1325
- mockResponse?: unknown;
1326
- execution?: {
1327
- http: {
1328
- baseUrl: string;
1329
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1330
- timeout?: number | undefined;
1331
- header?: Record<string, string> | undefined;
1332
- pathTemplate?: string | undefined;
1333
- allowedHosts?: string[] | undefined;
1334
- };
1335
- } | undefined;
1336
- }>;
1337
- export type ToolManifest = z.infer<typeof ToolManifestSchema>;
1338
- export type CodeToolManifest = z.infer<typeof CodeToolManifestSchema>;
1339
- export type McpToolManifest = z.infer<typeof McpToolManifestSchema>;
1340
- export type HttpToolManifest = z.infer<typeof HttpToolManifestSchema>;
1341
- export {};
1342
- //# sourceMappingURL=manifest.d.ts.map