@gt-fe/eap-sdk 0.0.6

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 (266) hide show
  1. package/README.md +370 -0
  2. package/dist/auth/index.d.ts +2 -0
  3. package/dist/auth/index.d.ts.map +1 -0
  4. package/dist/auth/index.js +2 -0
  5. package/dist/auth/index.js.map +1 -0
  6. package/dist/auth/user-session.d.ts +23 -0
  7. package/dist/auth/user-session.d.ts.map +1 -0
  8. package/dist/auth/user-session.js +162 -0
  9. package/dist/auth/user-session.js.map +1 -0
  10. package/dist/config/index.d.ts +2 -0
  11. package/dist/config/index.d.ts.map +1 -0
  12. package/dist/config/index.js +2 -0
  13. package/dist/config/index.js.map +1 -0
  14. package/dist/config/project-runtime.d.ts +25 -0
  15. package/dist/config/project-runtime.d.ts.map +1 -0
  16. package/dist/config/project-runtime.js +80 -0
  17. package/dist/config/project-runtime.js.map +1 -0
  18. package/dist/digest.d.ts +6 -0
  19. package/dist/digest.d.ts.map +1 -0
  20. package/dist/digest.js +17 -0
  21. package/dist/digest.js.map +1 -0
  22. package/dist/discovery/agent-errors.d.ts +6 -0
  23. package/dist/discovery/agent-errors.d.ts.map +1 -0
  24. package/dist/discovery/agent-errors.js +9 -0
  25. package/dist/discovery/agent-errors.js.map +1 -0
  26. package/dist/discovery/find-agent-root.d.ts +7 -0
  27. package/dist/discovery/find-agent-root.d.ts.map +1 -0
  28. package/dist/discovery/find-agent-root.js +32 -0
  29. package/dist/discovery/find-agent-root.js.map +1 -0
  30. package/dist/discovery/index.d.ts +4 -0
  31. package/dist/discovery/index.d.ts.map +1 -0
  32. package/dist/discovery/index.js +4 -0
  33. package/dist/discovery/index.js.map +1 -0
  34. package/dist/discovery/resolve-agent-project.d.ts +10 -0
  35. package/dist/discovery/resolve-agent-project.d.ts.map +1 -0
  36. package/dist/discovery/resolve-agent-project.js +68 -0
  37. package/dist/discovery/resolve-agent-project.js.map +1 -0
  38. package/dist/index.d.ts +15 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +15 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/lockfile/index.d.ts +5 -0
  43. package/dist/lockfile/index.d.ts.map +1 -0
  44. package/dist/lockfile/index.js +5 -0
  45. package/dist/lockfile/index.js.map +1 -0
  46. package/dist/lockfile/read-lockfile.d.ts +4 -0
  47. package/dist/lockfile/read-lockfile.d.ts.map +1 -0
  48. package/dist/lockfile/read-lockfile.js +22 -0
  49. package/dist/lockfile/read-lockfile.js.map +1 -0
  50. package/dist/lockfile/resolve-dependencies.d.ts +22 -0
  51. package/dist/lockfile/resolve-dependencies.d.ts.map +1 -0
  52. package/dist/lockfile/resolve-dependencies.js +117 -0
  53. package/dist/lockfile/resolve-dependencies.js.map +1 -0
  54. package/dist/lockfile/types.d.ts +9 -0
  55. package/dist/lockfile/types.d.ts.map +1 -0
  56. package/dist/lockfile/types.js +2 -0
  57. package/dist/lockfile/types.js.map +1 -0
  58. package/dist/lockfile/write-lockfile.d.ts +5 -0
  59. package/dist/lockfile/write-lockfile.d.ts.map +1 -0
  60. package/dist/lockfile/write-lockfile.js +53 -0
  61. package/dist/lockfile/write-lockfile.js.map +1 -0
  62. package/dist/materialization/copy-resource-directory.d.ts +2 -0
  63. package/dist/materialization/copy-resource-directory.d.ts.map +1 -0
  64. package/dist/materialization/copy-resource-directory.js +49 -0
  65. package/dist/materialization/copy-resource-directory.js.map +1 -0
  66. package/dist/materialization/index.d.ts +4 -0
  67. package/dist/materialization/index.d.ts.map +1 -0
  68. package/dist/materialization/index.js +4 -0
  69. package/dist/materialization/index.js.map +1 -0
  70. package/dist/materialization/prepare-agent-runtime.d.ts +3 -0
  71. package/dist/materialization/prepare-agent-runtime.d.ts.map +1 -0
  72. package/dist/materialization/prepare-agent-runtime.js +248 -0
  73. package/dist/materialization/prepare-agent-runtime.js.map +1 -0
  74. package/dist/materialization/types.d.ts +16 -0
  75. package/dist/materialization/types.d.ts.map +1 -0
  76. package/dist/materialization/types.js +2 -0
  77. package/dist/materialization/types.js.map +1 -0
  78. package/dist/packaging/archive.d.ts +10 -0
  79. package/dist/packaging/archive.d.ts.map +1 -0
  80. package/dist/packaging/archive.js +129 -0
  81. package/dist/packaging/archive.js.map +1 -0
  82. package/dist/packaging/index.d.ts +4 -0
  83. package/dist/packaging/index.d.ts.map +1 -0
  84. package/dist/packaging/index.js +4 -0
  85. package/dist/packaging/index.js.map +1 -0
  86. package/dist/packaging/package-agent-project.d.ts +20 -0
  87. package/dist/packaging/package-agent-project.d.ts.map +1 -0
  88. package/dist/packaging/package-agent-project.js +100 -0
  89. package/dist/packaging/package-agent-project.js.map +1 -0
  90. package/dist/packaging/read-package.d.ts +8 -0
  91. package/dist/packaging/read-package.d.ts.map +1 -0
  92. package/dist/packaging/read-package.js +48 -0
  93. package/dist/packaging/read-package.js.map +1 -0
  94. package/dist/platform/client.d.ts +3 -0
  95. package/dist/platform/client.d.ts.map +1 -0
  96. package/dist/platform/client.js +256 -0
  97. package/dist/platform/client.js.map +1 -0
  98. package/dist/platform/index.d.ts +3 -0
  99. package/dist/platform/index.d.ts.map +1 -0
  100. package/dist/platform/index.js +3 -0
  101. package/dist/platform/index.js.map +1 -0
  102. package/dist/platform/types.d.ts +190 -0
  103. package/dist/platform/types.d.ts.map +1 -0
  104. package/dist/platform/types.js +2 -0
  105. package/dist/platform/types.js.map +1 -0
  106. package/dist/project/agent-project.d.ts +21 -0
  107. package/dist/project/agent-project.d.ts.map +1 -0
  108. package/dist/project/agent-project.js +74 -0
  109. package/dist/project/agent-project.js.map +1 -0
  110. package/dist/project/index.d.ts +2 -0
  111. package/dist/project/index.d.ts.map +1 -0
  112. package/dist/project/index.js +2 -0
  113. package/dist/project/index.js.map +1 -0
  114. package/dist/resources/extract-resource-package.d.ts +9 -0
  115. package/dist/resources/extract-resource-package.d.ts.map +1 -0
  116. package/dist/resources/extract-resource-package.js +165 -0
  117. package/dist/resources/extract-resource-package.js.map +1 -0
  118. package/dist/resources/index.d.ts +7 -0
  119. package/dist/resources/index.d.ts.map +1 -0
  120. package/dist/resources/index.js +7 -0
  121. package/dist/resources/index.js.map +1 -0
  122. package/dist/resources/install-agent-dependencies.d.ts +3 -0
  123. package/dist/resources/install-agent-dependencies.d.ts.map +1 -0
  124. package/dist/resources/install-agent-dependencies.js +95 -0
  125. package/dist/resources/install-agent-dependencies.js.map +1 -0
  126. package/dist/resources/install-agent-resource.d.ts +3 -0
  127. package/dist/resources/install-agent-resource.d.ts.map +1 -0
  128. package/dist/resources/install-agent-resource.js +69 -0
  129. package/dist/resources/install-agent-resource.js.map +1 -0
  130. package/dist/resources/install-local-agent-resource.d.ts +9 -0
  131. package/dist/resources/install-local-agent-resource.d.ts.map +1 -0
  132. package/dist/resources/install-local-agent-resource.js +60 -0
  133. package/dist/resources/install-local-agent-resource.js.map +1 -0
  134. package/dist/resources/local-resource.d.ts +7 -0
  135. package/dist/resources/local-resource.d.ts.map +1 -0
  136. package/dist/resources/local-resource.js +36 -0
  137. package/dist/resources/local-resource.js.map +1 -0
  138. package/dist/resources/registry-resource-client.d.ts +16 -0
  139. package/dist/resources/registry-resource-client.d.ts.map +1 -0
  140. package/dist/resources/registry-resource-client.js +49 -0
  141. package/dist/resources/registry-resource-client.js.map +1 -0
  142. package/dist/resources/resource-files.d.ts +13 -0
  143. package/dist/resources/resource-files.d.ts.map +1 -0
  144. package/dist/resources/resource-files.js +123 -0
  145. package/dist/resources/resource-files.js.map +1 -0
  146. package/dist/resources/types.d.ts +32 -0
  147. package/dist/resources/types.d.ts.map +1 -0
  148. package/dist/resources/types.js +2 -0
  149. package/dist/resources/types.js.map +1 -0
  150. package/dist/resources/uninstall-agent-resource.d.ts +16 -0
  151. package/dist/resources/uninstall-agent-resource.d.ts.map +1 -0
  152. package/dist/resources/uninstall-agent-resource.js +64 -0
  153. package/dist/resources/uninstall-agent-resource.js.map +1 -0
  154. package/dist/schema/agent/index.d.ts +3 -0
  155. package/dist/schema/agent/index.d.ts.map +1 -0
  156. package/dist/schema/agent/index.js +3 -0
  157. package/dist/schema/agent/index.js.map +1 -0
  158. package/dist/schema/agent/manifest.d.ts +2256 -0
  159. package/dist/schema/agent/manifest.d.ts.map +1 -0
  160. package/dist/schema/agent/manifest.js +53 -0
  161. package/dist/schema/agent/manifest.js.map +1 -0
  162. package/dist/schema/agent/selector.d.ts +13 -0
  163. package/dist/schema/agent/selector.d.ts.map +1 -0
  164. package/dist/schema/agent/selector.js +6 -0
  165. package/dist/schema/agent/selector.js.map +1 -0
  166. package/dist/schema/common.d.ts +9 -0
  167. package/dist/schema/common.d.ts.map +1 -0
  168. package/dist/schema/common.js +40 -0
  169. package/dist/schema/common.js.map +1 -0
  170. package/dist/schema/dependencies-lock.d.ts +79 -0
  171. package/dist/schema/dependencies-lock.d.ts.map +1 -0
  172. package/dist/schema/dependencies-lock.js +18 -0
  173. package/dist/schema/dependencies-lock.js.map +1 -0
  174. package/dist/schema/graph.d.ts +2702 -0
  175. package/dist/schema/graph.d.ts.map +1 -0
  176. package/dist/schema/graph.js +143 -0
  177. package/dist/schema/graph.js.map +1 -0
  178. package/dist/schema/index.d.ts +11 -0
  179. package/dist/schema/index.d.ts.map +1 -0
  180. package/dist/schema/index.js +11 -0
  181. package/dist/schema/index.js.map +1 -0
  182. package/dist/schema/json-schema.d.ts +4 -0
  183. package/dist/schema/json-schema.d.ts.map +1 -0
  184. package/dist/schema/json-schema.js +14 -0
  185. package/dist/schema/json-schema.js.map +1 -0
  186. package/dist/schema/lockfile.d.ts +215 -0
  187. package/dist/schema/lockfile.d.ts.map +1 -0
  188. package/dist/schema/lockfile.js +33 -0
  189. package/dist/schema/lockfile.js.map +1 -0
  190. package/dist/schema/package-manifest.d.ts +65 -0
  191. package/dist/schema/package-manifest.d.ts.map +1 -0
  192. package/dist/schema/package-manifest.js +48 -0
  193. package/dist/schema/package-manifest.js.map +1 -0
  194. package/dist/schema/project-config.d.ts +138 -0
  195. package/dist/schema/project-config.d.ts.map +1 -0
  196. package/dist/schema/project-config.js +29 -0
  197. package/dist/schema/project-config.js.map +1 -0
  198. package/dist/schema/skill/index.d.ts +2 -0
  199. package/dist/schema/skill/index.d.ts.map +1 -0
  200. package/dist/schema/skill/index.js +2 -0
  201. package/dist/schema/skill/index.js.map +1 -0
  202. package/dist/schema/skill/manifest.d.ts +156 -0
  203. package/dist/schema/skill/manifest.d.ts.map +1 -0
  204. package/dist/schema/skill/manifest.js +43 -0
  205. package/dist/schema/skill/manifest.js.map +1 -0
  206. package/dist/schema/tool/index.d.ts +3 -0
  207. package/dist/schema/tool/index.d.ts.map +1 -0
  208. package/dist/schema/tool/index.js +3 -0
  209. package/dist/schema/tool/index.js.map +1 -0
  210. package/dist/schema/tool/manifest.d.ts +1342 -0
  211. package/dist/schema/tool/manifest.d.ts.map +1 -0
  212. package/dist/schema/tool/manifest.js +127 -0
  213. package/dist/schema/tool/manifest.js.map +1 -0
  214. package/dist/schema/tool/read-tool-manifest.d.ts +7 -0
  215. package/dist/schema/tool/read-tool-manifest.d.ts.map +1 -0
  216. package/dist/schema/tool/read-tool-manifest.js +42 -0
  217. package/dist/schema/tool/read-tool-manifest.js.map +1 -0
  218. package/dist/service/create-agent-service.d.ts +12 -0
  219. package/dist/service/create-agent-service.d.ts.map +1 -0
  220. package/dist/service/create-agent-service.js +260 -0
  221. package/dist/service/create-agent-service.js.map +1 -0
  222. package/dist/service/events.d.ts +49 -0
  223. package/dist/service/events.d.ts.map +1 -0
  224. package/dist/service/events.js +2 -0
  225. package/dist/service/events.js.map +1 -0
  226. package/dist/service/http-server.d.ts +4 -0
  227. package/dist/service/http-server.d.ts.map +1 -0
  228. package/dist/service/http-server.js +89 -0
  229. package/dist/service/http-server.js.map +1 -0
  230. package/dist/service/index.d.ts +5 -0
  231. package/dist/service/index.d.ts.map +1 -0
  232. package/dist/service/index.js +4 -0
  233. package/dist/service/index.js.map +1 -0
  234. package/dist/service/runtime-adapter.d.ts +4 -0
  235. package/dist/service/runtime-adapter.d.ts.map +1 -0
  236. package/dist/service/runtime-adapter.js +6 -0
  237. package/dist/service/runtime-adapter.js.map +1 -0
  238. package/dist/service/types.d.ts +48 -0
  239. package/dist/service/types.d.ts.map +1 -0
  240. package/dist/service/types.js +2 -0
  241. package/dist/service/types.js.map +1 -0
  242. package/dist/validation/index.d.ts +5 -0
  243. package/dist/validation/index.d.ts.map +1 -0
  244. package/dist/validation/index.js +5 -0
  245. package/dist/validation/index.js.map +1 -0
  246. package/dist/validation/types.d.ts +23 -0
  247. package/dist/validation/types.d.ts.map +1 -0
  248. package/dist/validation/types.js +2 -0
  249. package/dist/validation/types.js.map +1 -0
  250. package/dist/validation/validate-agent-directory.d.ts +8 -0
  251. package/dist/validation/validate-agent-directory.d.ts.map +1 -0
  252. package/dist/validation/validate-agent-directory.js +82 -0
  253. package/dist/validation/validate-agent-directory.js.map +1 -0
  254. package/dist/validation/validate-agent-project.d.ts +3 -0
  255. package/dist/validation/validate-agent-project.d.ts.map +1 -0
  256. package/dist/validation/validate-agent-project.js +99 -0
  257. package/dist/validation/validate-agent-project.js.map +1 -0
  258. package/dist/validation/validate-graph.d.ts +8 -0
  259. package/dist/validation/validate-graph.d.ts.map +1 -0
  260. package/dist/validation/validate-graph.js +127 -0
  261. package/dist/validation/validate-graph.js.map +1 -0
  262. package/dist/version.d.ts +2 -0
  263. package/dist/version.d.ts.map +1 -0
  264. package/dist/version.js +5 -0
  265. package/dist/version.js.map +1 -0
  266. package/package.json +39 -0
@@ -0,0 +1,1342 @@
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
+ metadata?: z.objectOutputType<{
107
+ owner: z.ZodOptional<z.ZodString>;
108
+ repository: z.ZodOptional<z.ZodString>;
109
+ bundlePath: z.ZodOptional<z.ZodString>;
110
+ }, z.ZodTypeAny, "passthrough"> | undefined;
111
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
112
+ tags?: string[] | 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
+ metadata?: z.objectInputType<{
148
+ owner: z.ZodOptional<z.ZodString>;
149
+ repository: z.ZodOptional<z.ZodString>;
150
+ bundlePath: z.ZodOptional<z.ZodString>;
151
+ }, z.ZodTypeAny, "passthrough"> | undefined;
152
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
153
+ tags?: string[] | 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
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
243
+ }, "strict", z.ZodTypeAny, {
244
+ args?: string[] | undefined;
245
+ command?: string | undefined;
246
+ cwd?: string | undefined;
247
+ env?: Record<string, string> | undefined;
248
+ url?: string | undefined;
249
+ headers?: Record<string, string> | undefined;
250
+ }, {
251
+ args?: string[] | undefined;
252
+ command?: string | undefined;
253
+ cwd?: string | undefined;
254
+ env?: Record<string, string> | undefined;
255
+ url?: string | undefined;
256
+ headers?: Record<string, string> | undefined;
257
+ }>;
258
+ toolName: z.ZodString;
259
+ timeout: z.ZodNumber;
260
+ }, "strict", z.ZodTypeAny, {
261
+ timeout: number;
262
+ server: {
263
+ args?: string[] | undefined;
264
+ command?: string | undefined;
265
+ cwd?: string | undefined;
266
+ env?: Record<string, string> | undefined;
267
+ url?: string | undefined;
268
+ headers?: 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
+ args?: string[] | undefined;
277
+ command?: string | undefined;
278
+ cwd?: string | undefined;
279
+ env?: Record<string, string> | undefined;
280
+ url?: string | undefined;
281
+ headers?: 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
+ metadata?: z.objectOutputType<{
295
+ owner: z.ZodOptional<z.ZodString>;
296
+ repository: z.ZodOptional<z.ZodString>;
297
+ bundlePath: z.ZodOptional<z.ZodString>;
298
+ }, z.ZodTypeAny, "passthrough"> | undefined;
299
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
300
+ tags?: string[] | 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
+ args?: string[] | undefined;
321
+ command?: string | undefined;
322
+ cwd?: string | undefined;
323
+ env?: Record<string, string> | undefined;
324
+ url?: string | undefined;
325
+ headers?: 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
+ metadata?: z.objectInputType<{
339
+ owner: z.ZodOptional<z.ZodString>;
340
+ repository: z.ZodOptional<z.ZodString>;
341
+ bundlePath: z.ZodOptional<z.ZodString>;
342
+ }, z.ZodTypeAny, "passthrough"> | undefined;
343
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
344
+ tags?: string[] | 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
+ args?: string[] | undefined;
365
+ command?: string | undefined;
366
+ cwd?: string | undefined;
367
+ env?: Record<string, string> | undefined;
368
+ url?: string | undefined;
369
+ headers?: 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
+ headers: 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
+ headers?: 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
+ headers?: 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
+ headers?: 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
+ headers?: 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
+ metadata?: z.objectOutputType<{
477
+ owner: z.ZodOptional<z.ZodString>;
478
+ repository: z.ZodOptional<z.ZodString>;
479
+ bundlePath: z.ZodOptional<z.ZodString>;
480
+ }, z.ZodTypeAny, "passthrough"> | undefined;
481
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
482
+ tags?: string[] | 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
+ headers?: 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
+ metadata?: z.objectInputType<{
517
+ owner: z.ZodOptional<z.ZodString>;
518
+ repository: z.ZodOptional<z.ZodString>;
519
+ bundlePath: z.ZodOptional<z.ZodString>;
520
+ }, z.ZodTypeAny, "passthrough"> | undefined;
521
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
522
+ tags?: string[] | 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
+ headers?: 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
+ metadata?: z.objectOutputType<{
646
+ owner: z.ZodOptional<z.ZodString>;
647
+ repository: z.ZodOptional<z.ZodString>;
648
+ bundlePath: z.ZodOptional<z.ZodString>;
649
+ }, z.ZodTypeAny, "passthrough"> | undefined;
650
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
651
+ tags?: string[] | 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
+ metadata?: z.objectInputType<{
687
+ owner: z.ZodOptional<z.ZodString>;
688
+ repository: z.ZodOptional<z.ZodString>;
689
+ bundlePath: z.ZodOptional<z.ZodString>;
690
+ }, z.ZodTypeAny, "passthrough"> | undefined;
691
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
692
+ tags?: string[] | 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
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
781
+ }, "strict", z.ZodTypeAny, {
782
+ args?: string[] | undefined;
783
+ command?: string | undefined;
784
+ cwd?: string | undefined;
785
+ env?: Record<string, string> | undefined;
786
+ url?: string | undefined;
787
+ headers?: Record<string, string> | undefined;
788
+ }, {
789
+ args?: string[] | undefined;
790
+ command?: string | undefined;
791
+ cwd?: string | undefined;
792
+ env?: Record<string, string> | undefined;
793
+ url?: string | undefined;
794
+ headers?: Record<string, string> | undefined;
795
+ }>;
796
+ toolName: z.ZodString;
797
+ timeout: z.ZodNumber;
798
+ }, "strict", z.ZodTypeAny, {
799
+ timeout: number;
800
+ server: {
801
+ args?: string[] | undefined;
802
+ command?: string | undefined;
803
+ cwd?: string | undefined;
804
+ env?: Record<string, string> | undefined;
805
+ url?: string | undefined;
806
+ headers?: 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
+ args?: string[] | undefined;
815
+ command?: string | undefined;
816
+ cwd?: string | undefined;
817
+ env?: Record<string, string> | undefined;
818
+ url?: string | undefined;
819
+ headers?: 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
+ metadata?: z.objectOutputType<{
833
+ owner: z.ZodOptional<z.ZodString>;
834
+ repository: z.ZodOptional<z.ZodString>;
835
+ bundlePath: z.ZodOptional<z.ZodString>;
836
+ }, z.ZodTypeAny, "passthrough"> | undefined;
837
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
838
+ tags?: string[] | 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
+ args?: string[] | undefined;
859
+ command?: string | undefined;
860
+ cwd?: string | undefined;
861
+ env?: Record<string, string> | undefined;
862
+ url?: string | undefined;
863
+ headers?: 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
+ metadata?: z.objectInputType<{
877
+ owner: z.ZodOptional<z.ZodString>;
878
+ repository: z.ZodOptional<z.ZodString>;
879
+ bundlePath: z.ZodOptional<z.ZodString>;
880
+ }, z.ZodTypeAny, "passthrough"> | undefined;
881
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
882
+ tags?: string[] | 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
+ args?: string[] | undefined;
903
+ command?: string | undefined;
904
+ cwd?: string | undefined;
905
+ env?: Record<string, string> | undefined;
906
+ url?: string | undefined;
907
+ headers?: 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
+ headers: 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
+ headers?: 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
+ headers?: 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
+ headers?: 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
+ headers?: 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
+ metadata?: z.objectOutputType<{
1014
+ owner: z.ZodOptional<z.ZodString>;
1015
+ repository: z.ZodOptional<z.ZodString>;
1016
+ bundlePath: z.ZodOptional<z.ZodString>;
1017
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1018
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1019
+ tags?: string[] | 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
+ headers?: 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
+ metadata?: z.objectInputType<{
1054
+ owner: z.ZodOptional<z.ZodString>;
1055
+ repository: z.ZodOptional<z.ZodString>;
1056
+ bundlePath: z.ZodOptional<z.ZodString>;
1057
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1058
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1059
+ tags?: string[] | 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
+ headers?: 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
+ metadata?: z.objectOutputType<{
1094
+ owner: z.ZodOptional<z.ZodString>;
1095
+ repository: z.ZodOptional<z.ZodString>;
1096
+ bundlePath: z.ZodOptional<z.ZodString>;
1097
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1098
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1099
+ tags?: string[] | 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
+ metadata?: z.objectOutputType<{
1135
+ owner: z.ZodOptional<z.ZodString>;
1136
+ repository: z.ZodOptional<z.ZodString>;
1137
+ bundlePath: z.ZodOptional<z.ZodString>;
1138
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1139
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1140
+ tags?: string[] | 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
+ args?: string[] | undefined;
1161
+ command?: string | undefined;
1162
+ cwd?: string | undefined;
1163
+ env?: Record<string, string> | undefined;
1164
+ url?: string | undefined;
1165
+ headers?: 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
+ metadata?: z.objectOutputType<{
1179
+ owner: z.ZodOptional<z.ZodString>;
1180
+ repository: z.ZodOptional<z.ZodString>;
1181
+ bundlePath: z.ZodOptional<z.ZodString>;
1182
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1183
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1184
+ tags?: string[] | 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
+ headers?: 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
+ metadata?: z.objectInputType<{
1219
+ owner: z.ZodOptional<z.ZodString>;
1220
+ repository: z.ZodOptional<z.ZodString>;
1221
+ bundlePath: z.ZodOptional<z.ZodString>;
1222
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1223
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1224
+ tags?: string[] | 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
+ metadata?: z.objectInputType<{
1260
+ owner: z.ZodOptional<z.ZodString>;
1261
+ repository: z.ZodOptional<z.ZodString>;
1262
+ bundlePath: z.ZodOptional<z.ZodString>;
1263
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1264
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1265
+ tags?: string[] | 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
+ args?: string[] | undefined;
1286
+ command?: string | undefined;
1287
+ cwd?: string | undefined;
1288
+ env?: Record<string, string> | undefined;
1289
+ url?: string | undefined;
1290
+ headers?: 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
+ metadata?: z.objectInputType<{
1304
+ owner: z.ZodOptional<z.ZodString>;
1305
+ repository: z.ZodOptional<z.ZodString>;
1306
+ bundlePath: z.ZodOptional<z.ZodString>;
1307
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1308
+ category?: "general" | "collaboration" | "enterprise-api" | "enterprise-data" | "enterprise-knowledge" | undefined;
1309
+ tags?: string[] | 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
+ headers?: 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