@aws/agentcore-cdk 0.1.0-alpha.1

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 (235) hide show
  1. package/LICENSE +175 -0
  2. package/README.md +95 -0
  3. package/dist/cdk/constants.d.ts +3 -0
  4. package/dist/cdk/constants.d.ts.map +1 -0
  5. package/dist/cdk/constants.js +9 -0
  6. package/dist/cdk/constants.js.map +1 -0
  7. package/dist/cdk/constructs/bundling/index.d.ts +9 -0
  8. package/dist/cdk/constructs/bundling/index.d.ts.map +1 -0
  9. package/dist/cdk/constructs/bundling/index.js +15 -0
  10. package/dist/cdk/constructs/bundling/index.js.map +1 -0
  11. package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.d.ts +71 -0
  12. package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.d.ts.map +1 -0
  13. package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.js +71 -0
  14. package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.js.map +1 -0
  15. package/dist/cdk/constructs/bundling/zip/PythonBundledCodeZipAsset.d.ts +15 -0
  16. package/dist/cdk/constructs/bundling/zip/PythonBundledCodeZipAsset.d.ts.map +1 -0
  17. package/dist/cdk/constructs/bundling/zip/PythonBundledCodeZipAsset.js +40 -0
  18. package/dist/cdk/constructs/bundling/zip/PythonBundledCodeZipAsset.js.map +1 -0
  19. package/dist/cdk/constructs/bundling/zip/index.d.ts +3 -0
  20. package/dist/cdk/constructs/bundling/zip/index.d.ts.map +1 -0
  21. package/dist/cdk/constructs/bundling/zip/index.js +8 -0
  22. package/dist/cdk/constructs/bundling/zip/index.js.map +1 -0
  23. package/dist/cdk/constructs/components/base-props.d.ts +8 -0
  24. package/dist/cdk/constructs/components/base-props.d.ts.map +1 -0
  25. package/dist/cdk/constructs/components/base-props.js +3 -0
  26. package/dist/cdk/constructs/components/base-props.js.map +1 -0
  27. package/dist/cdk/constructs/components/index.d.ts +4 -0
  28. package/dist/cdk/constructs/components/index.d.ts.map +1 -0
  29. package/dist/cdk/constructs/components/index.js +19 -0
  30. package/dist/cdk/constructs/components/index.js.map +1 -0
  31. package/dist/cdk/constructs/components/mcp/McpGateway.d.ts +37 -0
  32. package/dist/cdk/constructs/components/mcp/McpGateway.d.ts.map +1 -0
  33. package/dist/cdk/constructs/components/mcp/McpGateway.js +154 -0
  34. package/dist/cdk/constructs/components/mcp/McpGateway.js.map +1 -0
  35. package/dist/cdk/constructs/components/mcp/McpLambdaCompute.d.ts +33 -0
  36. package/dist/cdk/constructs/components/mcp/McpLambdaCompute.d.ts.map +1 -0
  37. package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js +85 -0
  38. package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js.map +1 -0
  39. package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts +36 -0
  40. package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts.map +1 -0
  41. package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js +73 -0
  42. package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js.map +1 -0
  43. package/dist/cdk/constructs/components/mcp/index.d.ts +5 -0
  44. package/dist/cdk/constructs/components/mcp/index.d.ts.map +1 -0
  45. package/dist/cdk/constructs/components/mcp/index.js +17 -0
  46. package/dist/cdk/constructs/components/mcp/index.js.map +1 -0
  47. package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts +25 -0
  48. package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts.map +1 -0
  49. package/dist/cdk/constructs/components/mcp/mcp-utils.js +43 -0
  50. package/dist/cdk/constructs/components/mcp/mcp-utils.js.map +1 -0
  51. package/dist/cdk/constructs/components/primitives/index.d.ts +3 -0
  52. package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -0
  53. package/dist/cdk/constructs/components/primitives/index.js +9 -0
  54. package/dist/cdk/constructs/components/primitives/index.js.map +1 -0
  55. package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts +64 -0
  56. package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts.map +1 -0
  57. package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js +191 -0
  58. package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js.map +1 -0
  59. package/dist/cdk/constructs/components/primitives/memory/index.d.ts +2 -0
  60. package/dist/cdk/constructs/components/primitives/memory/index.d.ts.map +1 -0
  61. package/dist/cdk/constructs/components/primitives/memory/index.js +6 -0
  62. package/dist/cdk/constructs/components/primitives/memory/index.js.map +1 -0
  63. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts +52 -0
  64. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts.map +1 -0
  65. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js +179 -0
  66. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js.map +1 -0
  67. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntimeRole.d.ts +24 -0
  68. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntimeRole.d.ts.map +1 -0
  69. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntimeRole.js +39 -0
  70. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntimeRole.js.map +1 -0
  71. package/dist/cdk/constructs/components/primitives/runtime/index.d.ts +3 -0
  72. package/dist/cdk/constructs/components/primitives/runtime/index.d.ts.map +1 -0
  73. package/dist/cdk/constructs/components/primitives/runtime/index.js +8 -0
  74. package/dist/cdk/constructs/components/primitives/runtime/index.js.map +1 -0
  75. package/dist/cdk/constructs/index.d.ts +4 -0
  76. package/dist/cdk/constructs/index.d.ts.map +1 -0
  77. package/dist/cdk/constructs/index.js +18 -0
  78. package/dist/cdk/constructs/index.js.map +1 -0
  79. package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +44 -0
  80. package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -0
  81. package/dist/cdk/constructs/l3/AgentCoreApplication.js +121 -0
  82. package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -0
  83. package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts +76 -0
  84. package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts.map +1 -0
  85. package/dist/cdk/constructs/l3/AgentCoreMcp.js +203 -0
  86. package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +1 -0
  87. package/dist/cdk/constructs/l3/AgentEnvironment.d.ts +34 -0
  88. package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +1 -0
  89. package/dist/cdk/constructs/l3/AgentEnvironment.js +66 -0
  90. package/dist/cdk/constructs/l3/AgentEnvironment.js.map +1 -0
  91. package/dist/cdk/constructs/l3/index.d.ts +4 -0
  92. package/dist/cdk/constructs/l3/index.d.ts.map +1 -0
  93. package/dist/cdk/constructs/l3/index.js +10 -0
  94. package/dist/cdk/constructs/l3/index.js.map +1 -0
  95. package/dist/cdk/index.d.ts +4 -0
  96. package/dist/cdk/index.d.ts.map +1 -0
  97. package/dist/cdk/index.js +21 -0
  98. package/dist/cdk/index.js.map +1 -0
  99. package/dist/cdk/logical-ids.d.ts +36 -0
  100. package/dist/cdk/logical-ids.d.ts.map +1 -0
  101. package/dist/cdk/logical-ids.js +88 -0
  102. package/dist/cdk/logical-ids.js.map +1 -0
  103. package/dist/index.d.ts +14 -0
  104. package/dist/index.d.ts.map +1 -0
  105. package/dist/index.js +64 -0
  106. package/dist/index.js.map +1 -0
  107. package/dist/lib/constants.d.ts +24 -0
  108. package/dist/lib/constants.d.ts.map +1 -0
  109. package/dist/lib/constants.js +48 -0
  110. package/dist/lib/constants.js.map +1 -0
  111. package/dist/lib/errors/config.d.ts +49 -0
  112. package/dist/lib/errors/config.d.ts.map +1 -0
  113. package/dist/lib/errors/config.js +167 -0
  114. package/dist/lib/errors/config.js.map +1 -0
  115. package/dist/lib/errors/index.d.ts +2 -0
  116. package/dist/lib/errors/index.d.ts.map +1 -0
  117. package/dist/lib/errors/index.js +18 -0
  118. package/dist/lib/errors/index.js.map +1 -0
  119. package/dist/lib/index.d.ts +7 -0
  120. package/dist/lib/index.d.ts.map +1 -0
  121. package/dist/lib/index.js +37 -0
  122. package/dist/lib/index.js.map +1 -0
  123. package/dist/lib/packaging/errors.d.ts +16 -0
  124. package/dist/lib/packaging/errors.d.ts.map +1 -0
  125. package/dist/lib/packaging/errors.js +36 -0
  126. package/dist/lib/packaging/errors.js.map +1 -0
  127. package/dist/lib/packaging/helpers.d.ts +56 -0
  128. package/dist/lib/packaging/helpers.d.ts.map +1 -0
  129. package/dist/lib/packaging/helpers.js +428 -0
  130. package/dist/lib/packaging/helpers.js.map +1 -0
  131. package/dist/lib/packaging/index.d.ts +24 -0
  132. package/dist/lib/packaging/index.d.ts.map +1 -0
  133. package/dist/lib/packaging/index.js +55 -0
  134. package/dist/lib/packaging/index.js.map +1 -0
  135. package/dist/lib/packaging/python.d.ts +10 -0
  136. package/dist/lib/packaging/python.d.ts.map +1 -0
  137. package/dist/lib/packaging/python.js +94 -0
  138. package/dist/lib/packaging/python.js.map +1 -0
  139. package/dist/lib/packaging/types/index.d.ts +2 -0
  140. package/dist/lib/packaging/types/index.d.ts.map +1 -0
  141. package/dist/lib/packaging/types/index.js +3 -0
  142. package/dist/lib/packaging/types/index.js.map +1 -0
  143. package/dist/lib/packaging/types/packaging.d.ts +36 -0
  144. package/dist/lib/packaging/types/packaging.d.ts.map +1 -0
  145. package/dist/lib/packaging/types/packaging.js +3 -0
  146. package/dist/lib/packaging/types/packaging.js.map +1 -0
  147. package/dist/lib/packaging/uv.d.ts +7 -0
  148. package/dist/lib/packaging/uv.d.ts.map +1 -0
  149. package/dist/lib/packaging/uv.js +40 -0
  150. package/dist/lib/packaging/uv.js.map +1 -0
  151. package/dist/lib/schemas/io/config-io.d.ts +99 -0
  152. package/dist/lib/schemas/io/config-io.d.ts.map +1 -0
  153. package/dist/lib/schemas/io/config-io.js +283 -0
  154. package/dist/lib/schemas/io/config-io.js.map +1 -0
  155. package/dist/lib/schemas/io/index.d.ts +3 -0
  156. package/dist/lib/schemas/io/index.d.ts.map +1 -0
  157. package/dist/lib/schemas/io/index.js +17 -0
  158. package/dist/lib/schemas/io/index.js.map +1 -0
  159. package/dist/lib/schemas/io/path-resolver.d.ts +112 -0
  160. package/dist/lib/schemas/io/path-resolver.d.ts.map +1 -0
  161. package/dist/lib/schemas/io/path-resolver.js +195 -0
  162. package/dist/lib/schemas/io/path-resolver.js.map +1 -0
  163. package/dist/lib/utils/index.d.ts +4 -0
  164. package/dist/lib/utils/index.d.ts.map +1 -0
  165. package/dist/lib/utils/index.js +15 -0
  166. package/dist/lib/utils/index.js.map +1 -0
  167. package/dist/lib/utils/platform.d.ts +2 -0
  168. package/dist/lib/utils/platform.d.ts.map +1 -0
  169. package/dist/lib/utils/platform.js +5 -0
  170. package/dist/lib/utils/platform.js.map +1 -0
  171. package/dist/lib/utils/subprocess.d.ts +29 -0
  172. package/dist/lib/utils/subprocess.d.ts.map +1 -0
  173. package/dist/lib/utils/subprocess.js +94 -0
  174. package/dist/lib/utils/subprocess.js.map +1 -0
  175. package/dist/lib/utils/zod.d.ts +14 -0
  176. package/dist/lib/utils/zod.d.ts.map +1 -0
  177. package/dist/lib/utils/zod.js +32 -0
  178. package/dist/lib/utils/zod.js.map +1 -0
  179. package/dist/schema/constants.d.ts +83 -0
  180. package/dist/schema/constants.d.ts.map +1 -0
  181. package/dist/schema/constants.js +125 -0
  182. package/dist/schema/constants.js.map +1 -0
  183. package/dist/schema/index.d.ts +4 -0
  184. package/dist/schema/index.d.ts.map +1 -0
  185. package/dist/schema/index.js +21 -0
  186. package/dist/schema/index.js.map +1 -0
  187. package/dist/schema/schemas/agent-env.d.ts +75 -0
  188. package/dist/schema/schemas/agent-env.d.ts.map +1 -0
  189. package/dist/schema/schemas/agent-env.js +84 -0
  190. package/dist/schema/schemas/agent-env.js.map +1 -0
  191. package/dist/schema/schemas/agentcore-project.d.ts +90 -0
  192. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -0
  193. package/dist/schema/schemas/agentcore-project.js +82 -0
  194. package/dist/schema/schemas/agentcore-project.js.map +1 -0
  195. package/dist/schema/schemas/aws-targets.d.ts +50 -0
  196. package/dist/schema/schemas/aws-targets.d.ts.map +1 -0
  197. package/dist/schema/schemas/aws-targets.js +49 -0
  198. package/dist/schema/schemas/aws-targets.js.map +1 -0
  199. package/dist/schema/schemas/deployed-state.d.ts +251 -0
  200. package/dist/schema/schemas/deployed-state.d.ts.map +1 -0
  201. package/dist/schema/schemas/deployed-state.js +98 -0
  202. package/dist/schema/schemas/deployed-state.js.map +1 -0
  203. package/dist/schema/schemas/index.d.ts +8 -0
  204. package/dist/schema/schemas/index.d.ts.map +1 -0
  205. package/dist/schema/schemas/index.js +25 -0
  206. package/dist/schema/schemas/index.js.map +1 -0
  207. package/dist/schema/schemas/mcp-defs.d.ts +52 -0
  208. package/dist/schema/schemas/mcp-defs.d.ts.map +1 -0
  209. package/dist/schema/schemas/mcp-defs.js +50 -0
  210. package/dist/schema/schemas/mcp-defs.js.map +1 -0
  211. package/dist/schema/schemas/mcp.d.ts +660 -0
  212. package/dist/schema/schemas/mcp.d.ts.map +1 -0
  213. package/dist/schema/schemas/mcp.js +284 -0
  214. package/dist/schema/schemas/mcp.js.map +1 -0
  215. package/dist/schema/schemas/primitives/index.d.ts +3 -0
  216. package/dist/schema/schemas/primitives/index.d.ts.map +1 -0
  217. package/dist/schema/schemas/primitives/index.js +8 -0
  218. package/dist/schema/schemas/primitives/index.js.map +1 -0
  219. package/dist/schema/schemas/primitives/memory.d.ts +40 -0
  220. package/dist/schema/schemas/primitives/memory.d.ts.map +1 -0
  221. package/dist/schema/schemas/primitives/memory.js +42 -0
  222. package/dist/schema/schemas/primitives/memory.js.map +1 -0
  223. package/dist/schema/schemas/zod-util.d.ts +10 -0
  224. package/dist/schema/schemas/zod-util.d.ts.map +1 -0
  225. package/dist/schema/schemas/zod-util.js +23 -0
  226. package/dist/schema/schemas/zod-util.js.map +1 -0
  227. package/dist/schema/types/index.d.ts +2 -0
  228. package/dist/schema/types/index.d.ts.map +1 -0
  229. package/dist/schema/types/index.js +18 -0
  230. package/dist/schema/types/index.js.map +1 -0
  231. package/dist/schema/types/path.d.ts +27 -0
  232. package/dist/schema/types/path.d.ts.map +1 -0
  233. package/dist/schema/types/path.js +13 -0
  234. package/dist/schema/types/path.js.map +1 -0
  235. package/package.json +97 -0
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentEnvSpecSchema = exports.InstrumentationSchema = exports.EnvVarSchema = exports.EntrypointSchema = exports.BuildTypeSchema = exports.AgentTypeSchema = exports.AccessSchema = exports.GatewayNameSchema = exports.EnvVarNameSchema = exports.AgentNameSchema = void 0;
4
+ /**
5
+ * Agent Schema v2 - Clean, simplified model
6
+ *
7
+ * @module agent-env
8
+ */
9
+ const constants_1 = require("../constants");
10
+ const zod_1 = require("zod");
11
+ // ============================================================================
12
+ // Name Schemas
13
+ // ============================================================================
14
+ exports.AgentNameSchema = zod_1.z
15
+ .string()
16
+ .min(1, 'Name is required')
17
+ .max(48)
18
+ .regex(/^[a-zA-Z][a-zA-Z0-9_]{0,47}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 48 chars)');
19
+ exports.EnvVarNameSchema = zod_1.z
20
+ .string()
21
+ .min(1)
22
+ .max(255)
23
+ .regex(/^[A-Za-z_][A-Za-z0-9_]*$/, 'Must start with a letter or underscore, contain only letters, digits, and underscores');
24
+ exports.GatewayNameSchema = zod_1.z
25
+ .string()
26
+ .min(1)
27
+ .max(100)
28
+ .regex(/^([0-9a-zA-Z][-]?){1,100}$/, 'Gateway name must be alphanumeric with optional hyphens (max 100 chars)');
29
+ // ============================================================================
30
+ // Common Types
31
+ // ============================================================================
32
+ /** Access level for resource sharing */
33
+ exports.AccessSchema = zod_1.z.enum(['read', 'readwrite']);
34
+ // ============================================================================
35
+ // Agent Schema
36
+ // ============================================================================
37
+ exports.AgentTypeSchema = zod_1.z.literal('AgentCoreRuntime');
38
+ exports.BuildTypeSchema = zod_1.z.enum(['CodeZip', 'Container']);
39
+ // Use RuntimeVersionSchema from constants (supports both Python and Node/TypeScript)
40
+ // Not re-exported here to avoid duplicate export conflicts
41
+ /**
42
+ * Entrypoint schema - supports both Python (.py) and TypeScript (.ts/.js) files.
43
+ * Python: main.py or main.py:handler
44
+ * TypeScript: main.ts, main.js, or index.ts
45
+ */
46
+ exports.EntrypointSchema = zod_1.z
47
+ .string()
48
+ .min(1)
49
+ .regex(/^[a-zA-Z0-9_][a-zA-Z0-9_/.-]*\.(py|ts|js)(:[a-zA-Z_][a-zA-Z0-9_]*)?$/, 'Must be a Python (.py) or TypeScript (.ts/.js) file path with optional handler (e.g., "main.py:handler" or "index.ts")');
50
+ const DirectoryPathSchema = zod_1.z.string().min(1);
51
+ exports.EnvVarSchema = zod_1.z.object({
52
+ name: exports.EnvVarNameSchema,
53
+ value: zod_1.z.string(),
54
+ });
55
+ /**
56
+ * Instrumentation configuration for runtime observability.
57
+ */
58
+ exports.InstrumentationSchema = zod_1.z.object({
59
+ /**
60
+ * Enable OpenTelemetry instrumentation using aws-opentelemetry-distro.
61
+ * When enabled, the runtime entrypoint is wrapped with opentelemetry-instrument.
62
+ * Defaults to true for new runtimes.
63
+ */
64
+ enableOtel: zod_1.z.boolean().default(true),
65
+ });
66
+ /**
67
+ * AgentEnvSpec - represents an AgentCore Runtime.
68
+ * This is a top-level resource in the schema.
69
+ */
70
+ exports.AgentEnvSpecSchema = zod_1.z.object({
71
+ type: exports.AgentTypeSchema,
72
+ name: exports.AgentNameSchema,
73
+ build: exports.BuildTypeSchema,
74
+ entrypoint: exports.EntrypointSchema,
75
+ codeLocation: DirectoryPathSchema,
76
+ runtimeVersion: constants_1.RuntimeVersionSchema,
77
+ /** Environment variables to set on the runtime */
78
+ envVars: zod_1.z.array(exports.EnvVarSchema).optional(),
79
+ /** Network mode for the runtime. Defaults to PUBLIC. */
80
+ networkMode: constants_1.NetworkModeSchema.optional(),
81
+ /** Instrumentation settings for observability. Defaults to OTel enabled. */
82
+ instrumentation: exports.InstrumentationSchema.optional(),
83
+ });
84
+ //# sourceMappingURL=agent-env.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-env.js","sourceRoot":"","sources":["../../../src/schema/schemas/agent-env.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,4CAA4G;AAE5G,6BAAwB;AAMxB,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAElE,QAAA,eAAe,GAAG,OAAC;KAC7B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAES,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,KAAK,CACJ,0BAA0B,EAC1B,uFAAuF,CACxF,CAAC;AAES,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,KAAK,CAAC,4BAA4B,EAAE,yEAAyE,CAAC,CAAC;AAElH,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,wCAAwC;AAC3B,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;AAG1D,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAElE,QAAA,eAAe,GAAG,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAGhD,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;AAGhE,qFAAqF;AACrF,2DAA2D;AAE3D;;;;GAIG;AACU,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,KAAK,CACJ,sEAAsE,EACtE,wHAAwH,CACvF,CAAC;AAEtC,MAAM,mBAAmB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAwC,CAAC;AAExE,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,wBAAgB;IACtB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAGH;;GAEG;AACU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C;;;;OAIG;IACH,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CACtC,CAAC,CAAC;AAGH;;;GAGG;AACU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,uBAAe;IACrB,IAAI,EAAE,uBAAe;IACrB,KAAK,EAAE,uBAAe;IACtB,UAAU,EAAE,wBAAgB;IAC5B,YAAY,EAAE,mBAAmB;IACjC,cAAc,EAAE,gCAAiC;IACjD,kDAAkD;IAClD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,oBAAY,CAAC,CAAC,QAAQ,EAAE;IACzC,wDAAwD;IACxD,WAAW,EAAE,6BAAiB,CAAC,QAAQ,EAAE;IACzC,4EAA4E;IAC5E,eAAe,EAAE,6BAAqB,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC"}
@@ -0,0 +1,90 @@
1
+ import { MemoryStrategySchema, MemoryStrategyTypeSchema } from './primitives/memory';
2
+ import { z } from 'zod';
3
+ export { MemoryStrategySchema, MemoryStrategyTypeSchema };
4
+ export type { MemoryStrategy, MemoryStrategyType } from './primitives/memory';
5
+ export declare const ProjectNameSchema: z.ZodString;
6
+ export declare const MemoryTypeSchema: z.ZodLiteral<"AgentCoreMemory">;
7
+ export type MemoryType = z.infer<typeof MemoryTypeSchema>;
8
+ export declare const MemoryNameSchema: z.ZodString;
9
+ export declare const MemorySchema: z.ZodObject<{
10
+ type: z.ZodLiteral<"AgentCoreMemory">;
11
+ name: z.ZodString;
12
+ eventExpiryDuration: z.ZodNumber;
13
+ strategies: z.ZodDefault<z.ZodArray<z.ZodObject<{
14
+ type: z.ZodEnum<{
15
+ SEMANTIC: "SEMANTIC";
16
+ SUMMARIZATION: "SUMMARIZATION";
17
+ USER_PREFERENCE: "USER_PREFERENCE";
18
+ CUSTOM: "CUSTOM";
19
+ }>;
20
+ name: z.ZodOptional<z.ZodString>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
+ }, z.core.$strip>>>;
24
+ }, z.core.$strip>;
25
+ export type Memory = z.infer<typeof MemorySchema>;
26
+ export declare const CredentialTypeSchema: z.ZodLiteral<"ApiKeyCredentialProvider">;
27
+ export type CredentialType = z.infer<typeof CredentialTypeSchema>;
28
+ export declare const CredentialNameSchema: z.ZodString;
29
+ export declare const CredentialSchema: z.ZodObject<{
30
+ type: z.ZodLiteral<"ApiKeyCredentialProvider">;
31
+ name: z.ZodString;
32
+ }, z.core.$strip>;
33
+ export type Credential = z.infer<typeof CredentialSchema>;
34
+ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
35
+ name: z.ZodString;
36
+ version: z.ZodNumber;
37
+ agents: z.ZodDefault<z.ZodArray<z.ZodObject<{
38
+ type: z.ZodLiteral<"AgentCoreRuntime">;
39
+ name: z.ZodString;
40
+ build: z.ZodEnum<{
41
+ CodeZip: "CodeZip";
42
+ Container: "Container";
43
+ }>;
44
+ entrypoint: z.ZodType<import("./agent-env").FilePath, unknown, z.core.$ZodTypeInternals<import("./agent-env").FilePath, unknown>>;
45
+ codeLocation: z.ZodType<import("./agent-env").DirectoryPath, unknown, z.core.$ZodTypeInternals<import("./agent-env").DirectoryPath, unknown>>;
46
+ runtimeVersion: z.ZodUnion<readonly [z.ZodEnum<{
47
+ PYTHON_3_10: "PYTHON_3_10";
48
+ PYTHON_3_11: "PYTHON_3_11";
49
+ PYTHON_3_12: "PYTHON_3_12";
50
+ PYTHON_3_13: "PYTHON_3_13";
51
+ }>, z.ZodEnum<{
52
+ NODE_18: "NODE_18";
53
+ NODE_20: "NODE_20";
54
+ NODE_22: "NODE_22";
55
+ }>]>;
56
+ envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
+ name: z.ZodString;
58
+ value: z.ZodString;
59
+ }, z.core.$strip>>>;
60
+ networkMode: z.ZodOptional<z.ZodEnum<{
61
+ PUBLIC: "PUBLIC";
62
+ PRIVATE: "PRIVATE";
63
+ }>>;
64
+ instrumentation: z.ZodOptional<z.ZodObject<{
65
+ enableOtel: z.ZodDefault<z.ZodBoolean>;
66
+ }, z.core.$strip>>;
67
+ }, z.core.$strip>>>;
68
+ memories: z.ZodDefault<z.ZodArray<z.ZodObject<{
69
+ type: z.ZodLiteral<"AgentCoreMemory">;
70
+ name: z.ZodString;
71
+ eventExpiryDuration: z.ZodNumber;
72
+ strategies: z.ZodDefault<z.ZodArray<z.ZodObject<{
73
+ type: z.ZodEnum<{
74
+ SEMANTIC: "SEMANTIC";
75
+ SUMMARIZATION: "SUMMARIZATION";
76
+ USER_PREFERENCE: "USER_PREFERENCE";
77
+ CUSTOM: "CUSTOM";
78
+ }>;
79
+ name: z.ZodOptional<z.ZodString>;
80
+ description: z.ZodOptional<z.ZodString>;
81
+ namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
82
+ }, z.core.$strip>>>;
83
+ }, z.core.$strip>>>;
84
+ credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
85
+ type: z.ZodLiteral<"ApiKeyCredentialProvider">;
86
+ name: z.ZodString;
87
+ }, z.core.$strip>>>;
88
+ }, z.core.$strip>;
89
+ export type AgentCoreProjectSpec = z.infer<typeof AgentCoreProjectSpecSchema>;
90
+ //# sourceMappingURL=agentcore-project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentcore-project.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAErF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,CAAC;AAC1D,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAM9E,eAAO,MAAM,iBAAiB,aAU1B,CAAC;AAML,eAAO,MAAM,gBAAgB,iCAA+B,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB,aAO1B,CAAC;AAEJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;iBAevB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAMlD,eAAO,MAAM,oBAAoB,0CAAwC,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,oBAAoB,aAO9B,CAAC;AAEJ,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAM1D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentCoreProjectSpecSchema = exports.CredentialSchema = exports.CredentialNameSchema = exports.CredentialTypeSchema = exports.MemorySchema = exports.MemoryNameSchema = exports.MemoryTypeSchema = exports.ProjectNameSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = void 0;
4
+ /**
5
+ * AgentCore Project Schema - Resource-centric model
6
+ *
7
+ * Flat resource model where agents, memories, and credentials are top-level.
8
+ * All resources within a project implicitly have access to each other.
9
+ *
10
+ * @module agentcore-project
11
+ */
12
+ const constants_1 = require("../constants");
13
+ const agent_env_1 = require("./agent-env");
14
+ const memory_1 = require("./primitives/memory");
15
+ Object.defineProperty(exports, "MemoryStrategySchema", { enumerable: true, get: function () { return memory_1.MemoryStrategySchema; } });
16
+ Object.defineProperty(exports, "MemoryStrategyTypeSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyTypeSchema; } });
17
+ const zod_util_1 = require("./zod-util");
18
+ const zod_1 = require("zod");
19
+ // ============================================================================
20
+ // Project Name Schema
21
+ // ============================================================================
22
+ exports.ProjectNameSchema = zod_1.z
23
+ .string()
24
+ .min(1, 'Project name is required')
25
+ .max(23, 'Project name must be 23 characters or less')
26
+ .regex(/^[A-Za-z][A-Za-z0-9]{0,22}$/, 'Project name must start with a letter and contain only alphanumeric characters')
27
+ .refine(name => !(0, constants_1.isReservedProjectName)(name), {
28
+ message: 'This name conflicts with a Python package dependency. Please choose a different name.',
29
+ });
30
+ // ============================================================================
31
+ // Memory Schema
32
+ // ============================================================================
33
+ exports.MemoryTypeSchema = zod_1.z.literal('AgentCoreMemory');
34
+ exports.MemoryNameSchema = zod_1.z
35
+ .string()
36
+ .min(1, 'Name is required')
37
+ .max(48)
38
+ .regex(/^[a-zA-Z][a-zA-Z0-9_]{0,47}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 48 chars)');
39
+ exports.MemorySchema = zod_1.z.object({
40
+ type: exports.MemoryTypeSchema,
41
+ name: exports.MemoryNameSchema,
42
+ eventExpiryDuration: zod_1.z.number().int().min(7).max(365),
43
+ // Strategies array can be empty for short-term memory (just base memory with expiration)
44
+ // Long-term memory includes strategies like SEMANTIC, SUMMARIZATION, USER_PREFERENCE
45
+ strategies: zod_1.z
46
+ .array(memory_1.MemoryStrategySchema)
47
+ .default([])
48
+ .superRefine((0, zod_util_1.uniqueBy)(strategy => strategy.type, type => `Duplicate memory strategy type: ${type}`)),
49
+ });
50
+ // ============================================================================
51
+ // Credential Schema
52
+ // ============================================================================
53
+ exports.CredentialTypeSchema = zod_1.z.literal('ApiKeyCredentialProvider');
54
+ exports.CredentialNameSchema = zod_1.z
55
+ .string()
56
+ .min(3, 'Credential name must be at least 3 characters')
57
+ .max(255)
58
+ .regex(/^[A-Za-z0-9_.-]+$/, 'Must contain only alphanumeric characters, underscores, dots, and hyphens (3-255 chars)');
59
+ exports.CredentialSchema = zod_1.z.object({
60
+ type: exports.CredentialTypeSchema,
61
+ name: exports.CredentialNameSchema,
62
+ });
63
+ // ============================================================================
64
+ // Project Schema (Top Level)
65
+ // ============================================================================
66
+ exports.AgentCoreProjectSpecSchema = zod_1.z.object({
67
+ name: exports.ProjectNameSchema,
68
+ version: zod_1.z.number().int(),
69
+ agents: zod_1.z
70
+ .array(agent_env_1.AgentEnvSpecSchema)
71
+ .default([])
72
+ .superRefine((0, zod_util_1.uniqueBy)(agent => agent.name, name => `Duplicate agent name: ${name}`)),
73
+ memories: zod_1.z
74
+ .array(exports.MemorySchema)
75
+ .default([])
76
+ .superRefine((0, zod_util_1.uniqueBy)(memory => memory.name, name => `Duplicate memory name: ${name}`)),
77
+ credentials: zod_1.z
78
+ .array(exports.CredentialSchema)
79
+ .default([])
80
+ .superRefine((0, zod_util_1.uniqueBy)(credential => credential.name, name => `Duplicate credential name: ${name}`)),
81
+ });
82
+ //# sourceMappingURL=agentcore-project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentcore-project.js","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.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W,CACV,IAAA,mBAAQ,EACN,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,EAC7B,IAAI,CAAC,EAAE,CAAC,8BAA8B,IAAI,EAAE,CAC7C,CACF;CACJ,CAAC,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ export declare const AgentCoreRegionSchema: z.ZodEnum<{
3
+ "ap-northeast-1": "ap-northeast-1";
4
+ "ap-south-1": "ap-south-1";
5
+ "ap-southeast-1": "ap-southeast-1";
6
+ "ap-southeast-2": "ap-southeast-2";
7
+ "eu-central-1": "eu-central-1";
8
+ "eu-west-1": "eu-west-1";
9
+ "us-east-1": "us-east-1";
10
+ "us-east-2": "us-east-2";
11
+ "us-west-2": "us-west-2";
12
+ }>;
13
+ export type AgentCoreRegion = z.infer<typeof AgentCoreRegionSchema>;
14
+ export declare const DeploymentTargetNameSchema: z.ZodString;
15
+ export declare const AwsAccountIdSchema: z.ZodString;
16
+ export declare const AwsDeploymentTargetSchema: z.ZodObject<{
17
+ name: z.ZodString;
18
+ description: z.ZodOptional<z.ZodString>;
19
+ account: z.ZodString;
20
+ region: z.ZodEnum<{
21
+ "ap-northeast-1": "ap-northeast-1";
22
+ "ap-south-1": "ap-south-1";
23
+ "ap-southeast-1": "ap-southeast-1";
24
+ "ap-southeast-2": "ap-southeast-2";
25
+ "eu-central-1": "eu-central-1";
26
+ "eu-west-1": "eu-west-1";
27
+ "us-east-1": "us-east-1";
28
+ "us-east-2": "us-east-2";
29
+ "us-west-2": "us-west-2";
30
+ }>;
31
+ }, z.core.$strip>;
32
+ export type AwsDeploymentTarget = z.infer<typeof AwsDeploymentTargetSchema>;
33
+ export declare const AwsDeploymentTargetsSchema: z.ZodArray<z.ZodObject<{
34
+ name: z.ZodString;
35
+ description: z.ZodOptional<z.ZodString>;
36
+ account: z.ZodString;
37
+ region: z.ZodEnum<{
38
+ "ap-northeast-1": "ap-northeast-1";
39
+ "ap-south-1": "ap-south-1";
40
+ "ap-southeast-1": "ap-southeast-1";
41
+ "ap-southeast-2": "ap-southeast-2";
42
+ "eu-central-1": "eu-central-1";
43
+ "eu-west-1": "eu-west-1";
44
+ "us-east-1": "us-east-1";
45
+ "us-east-2": "us-east-2";
46
+ "us-west-2": "us-west-2";
47
+ }>;
48
+ }, z.core.$strip>>;
49
+ export type AwsDeploymentTargets = z.infer<typeof AwsDeploymentTargetsSchema>;
50
+ //# sourceMappingURL=aws-targets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-targets.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/aws-targets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qBAAqB;;;;;;;;;;EAUhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,0BAA0B,aAQmB,CAAC;AAM3D,eAAO,MAAM,kBAAkB,aAGF,CAAC;AAM9B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAM5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;kBAKtC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AwsDeploymentTargetsSchema = exports.AwsDeploymentTargetSchema = exports.AwsAccountIdSchema = exports.DeploymentTargetNameSchema = exports.AgentCoreRegionSchema = void 0;
4
+ const zod_util_1 = require("./zod-util");
5
+ const zod_1 = require("zod");
6
+ // ============================================================================
7
+ // AgentCore Regions
8
+ // ============================================================================
9
+ exports.AgentCoreRegionSchema = zod_1.z.enum([
10
+ 'ap-northeast-1',
11
+ 'ap-south-1',
12
+ 'ap-southeast-1',
13
+ 'ap-southeast-2',
14
+ 'eu-central-1',
15
+ 'eu-west-1',
16
+ 'us-east-1',
17
+ 'us-east-2',
18
+ 'us-west-2',
19
+ ]);
20
+ // ============================================================================
21
+ // Deployment Target Name
22
+ // ============================================================================
23
+ exports.DeploymentTargetNameSchema = zod_1.z
24
+ .string()
25
+ .min(1)
26
+ .max(64)
27
+ .regex(/^[a-zA-Z][a-zA-Z0-9_-]*$/, 'Name must start with a letter and contain only alphanumeric characters, hyphens, and underscores')
28
+ .describe('Unique identifier for the deployment target');
29
+ // ============================================================================
30
+ // AWS Account ID
31
+ // ============================================================================
32
+ exports.AwsAccountIdSchema = zod_1.z
33
+ .string()
34
+ .regex(/^[0-9]{12}$/, 'AWS account ID must be exactly 12 digits')
35
+ .describe('AWS account ID');
36
+ // ============================================================================
37
+ // AWS Deployment Target
38
+ // ============================================================================
39
+ exports.AwsDeploymentTargetSchema = zod_1.z.object({
40
+ name: exports.DeploymentTargetNameSchema,
41
+ description: zod_1.z.string().max(256).optional(),
42
+ account: exports.AwsAccountIdSchema,
43
+ region: exports.AgentCoreRegionSchema,
44
+ });
45
+ // ============================================================================
46
+ // AWS Deployment Targets Array
47
+ // ============================================================================
48
+ exports.AwsDeploymentTargetsSchema = zod_1.z.array(exports.AwsDeploymentTargetSchema).superRefine((0, zod_util_1.uniqueBy)(target => target.name, name => `Duplicate deployment target name: ${name}`));
49
+ //# sourceMappingURL=aws-targets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-targets.js","sourceRoot":"","sources":["../../../src/schema/schemas/aws-targets.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,6BAAwB;AAExB,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1C,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CACZ,CAAC,CAAC;AAGH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,0BAA0B,EAC1B,kGAAkG,CACnG;KACA,QAAQ,CAAC,6CAA6C,CAAC,CAAC;AAE3D,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAElE,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,EAAE;KACR,KAAK,CAAC,aAAa,EAAE,0CAA0C,CAAC;KAChE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAE9B,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAElE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,kCAA0B;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,0BAAkB;IAC3B,MAAM,EAAE,6BAAqB;CAC9B,CAAC,CAAC;AAIH,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC,WAAW,CACtF,IAAA,mBAAQ,EACN,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EACrB,IAAI,CAAC,EAAE,CAAC,qCAAqC,IAAI,EAAE,CACpD,CACF,CAAC"}
@@ -0,0 +1,251 @@
1
+ import { z } from 'zod';
2
+ export declare const AgentCoreDeployedStateSchema: z.ZodObject<{
3
+ runtimeId: z.ZodString;
4
+ runtimeArn: z.ZodString;
5
+ roleArn: z.ZodString;
6
+ memoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ browserId: z.ZodOptional<z.ZodString>;
8
+ codeInterpreterId: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export type AgentCoreDeployedState = z.infer<typeof AgentCoreDeployedStateSchema>;
11
+ export declare const GatewayDeployedStateSchema: z.ZodObject<{
12
+ gatewayId: z.ZodString;
13
+ gatewayArn: z.ZodString;
14
+ }, z.core.$strip>;
15
+ export type GatewayDeployedState = z.infer<typeof GatewayDeployedStateSchema>;
16
+ export declare const McpRuntimeDeployedStateSchema: z.ZodObject<{
17
+ runtimeId: z.ZodString;
18
+ runtimeArn: z.ZodString;
19
+ runtimeEndpoint: z.ZodString;
20
+ }, z.core.$strip>;
21
+ export type McpRuntimeDeployedState = z.infer<typeof McpRuntimeDeployedStateSchema>;
22
+ export declare const McpLambdaDeployedStateSchema: z.ZodObject<{
23
+ functionArn: z.ZodString;
24
+ functionName: z.ZodString;
25
+ }, z.core.$strip>;
26
+ export type McpLambdaDeployedState = z.infer<typeof McpLambdaDeployedStateSchema>;
27
+ export declare const McpDeployedStateSchema: z.ZodObject<{
28
+ gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
29
+ gatewayId: z.ZodString;
30
+ gatewayArn: z.ZodString;
31
+ }, z.core.$strip>>>;
32
+ runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
33
+ runtimeId: z.ZodString;
34
+ runtimeArn: z.ZodString;
35
+ runtimeEndpoint: z.ZodString;
36
+ }, z.core.$strip>>>;
37
+ lambdas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
38
+ functionArn: z.ZodString;
39
+ functionName: z.ZodString;
40
+ }, z.core.$strip>>>;
41
+ }, z.core.$strip>;
42
+ export type McpDeployedState = z.infer<typeof McpDeployedStateSchema>;
43
+ export declare const ExternallyManagedResourceSchema: z.ZodObject<{
44
+ name: z.ZodString;
45
+ }, z.core.$strip>;
46
+ export type ExternallyManagedResource = z.infer<typeof ExternallyManagedResourceSchema>;
47
+ export declare const CustomJwtAuthorizerSchema: z.ZodObject<{
48
+ name: z.ZodString;
49
+ allowedAudience: z.ZodArray<z.ZodString>;
50
+ allowedClients: z.ZodArray<z.ZodString>;
51
+ discoveryUrl: z.ZodString;
52
+ }, z.core.$strip>;
53
+ export type CustomJwtAuthorizer = z.infer<typeof CustomJwtAuthorizerSchema>;
54
+ export declare const VpcConfigSchema: z.ZodObject<{
55
+ name: z.ZodString;
56
+ securityGroups: z.ZodArray<z.ZodString>;
57
+ subnets: z.ZodArray<z.ZodString>;
58
+ }, z.core.$strip>;
59
+ export type VpcConfig = z.infer<typeof VpcConfigSchema>;
60
+ export declare const ExternallyManagedStateSchema: z.ZodObject<{
61
+ customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
62
+ name: z.ZodString;
63
+ allowedAudience: z.ZodArray<z.ZodString>;
64
+ allowedClients: z.ZodArray<z.ZodString>;
65
+ discoveryUrl: z.ZodString;
66
+ }, z.core.$strip>>;
67
+ vpcConfig: z.ZodOptional<z.ZodObject<{
68
+ name: z.ZodString;
69
+ securityGroups: z.ZodArray<z.ZodString>;
70
+ subnets: z.ZodArray<z.ZodString>;
71
+ }, z.core.$strip>>;
72
+ }, z.core.$strip>;
73
+ export type ExternallyManagedState = z.infer<typeof ExternallyManagedStateSchema>;
74
+ export declare const DeployedResourceStateSchema: z.ZodObject<{
75
+ agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
76
+ runtimeId: z.ZodString;
77
+ runtimeArn: z.ZodString;
78
+ roleArn: z.ZodString;
79
+ memoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
+ browserId: z.ZodOptional<z.ZodString>;
81
+ codeInterpreterId: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>>>;
83
+ mcp: z.ZodOptional<z.ZodObject<{
84
+ gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
85
+ gatewayId: z.ZodString;
86
+ gatewayArn: z.ZodString;
87
+ }, z.core.$strip>>>;
88
+ runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
89
+ runtimeId: z.ZodString;
90
+ runtimeArn: z.ZodString;
91
+ runtimeEndpoint: z.ZodString;
92
+ }, z.core.$strip>>>;
93
+ lambdas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
94
+ functionArn: z.ZodString;
95
+ functionName: z.ZodString;
96
+ }, z.core.$strip>>>;
97
+ }, z.core.$strip>>;
98
+ externallyManaged: z.ZodOptional<z.ZodObject<{
99
+ customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
100
+ name: z.ZodString;
101
+ allowedAudience: z.ZodArray<z.ZodString>;
102
+ allowedClients: z.ZodArray<z.ZodString>;
103
+ discoveryUrl: z.ZodString;
104
+ }, z.core.$strip>>;
105
+ vpcConfig: z.ZodOptional<z.ZodObject<{
106
+ name: z.ZodString;
107
+ securityGroups: z.ZodArray<z.ZodString>;
108
+ subnets: z.ZodArray<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>>;
111
+ stackName: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strip>;
113
+ export type DeployedResourceState = z.infer<typeof DeployedResourceStateSchema>;
114
+ export declare const TargetDeployedStateSchema: z.ZodObject<{
115
+ resources: z.ZodOptional<z.ZodObject<{
116
+ agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
117
+ runtimeId: z.ZodString;
118
+ runtimeArn: z.ZodString;
119
+ roleArn: z.ZodString;
120
+ memoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
121
+ browserId: z.ZodOptional<z.ZodString>;
122
+ codeInterpreterId: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strip>>>;
124
+ mcp: z.ZodOptional<z.ZodObject<{
125
+ gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
126
+ gatewayId: z.ZodString;
127
+ gatewayArn: z.ZodString;
128
+ }, z.core.$strip>>>;
129
+ runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
130
+ runtimeId: z.ZodString;
131
+ runtimeArn: z.ZodString;
132
+ runtimeEndpoint: z.ZodString;
133
+ }, z.core.$strip>>>;
134
+ lambdas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
135
+ functionArn: z.ZodString;
136
+ functionName: z.ZodString;
137
+ }, z.core.$strip>>>;
138
+ }, z.core.$strip>>;
139
+ externallyManaged: z.ZodOptional<z.ZodObject<{
140
+ customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
141
+ name: z.ZodString;
142
+ allowedAudience: z.ZodArray<z.ZodString>;
143
+ allowedClients: z.ZodArray<z.ZodString>;
144
+ discoveryUrl: z.ZodString;
145
+ }, z.core.$strip>>;
146
+ vpcConfig: z.ZodOptional<z.ZodObject<{
147
+ name: z.ZodString;
148
+ securityGroups: z.ZodArray<z.ZodString>;
149
+ subnets: z.ZodArray<z.ZodString>;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>>;
152
+ stackName: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>>;
154
+ }, z.core.$strip>;
155
+ export type TargetDeployedState = z.infer<typeof TargetDeployedStateSchema>;
156
+ /**
157
+ * Type alias for deployment target name (maps to aws-targets name field).
158
+ */
159
+ export type DeploymentTargetName = string;
160
+ export declare const DeployedStateSchema: z.ZodObject<{
161
+ targets: z.ZodRecord<z.ZodString, z.ZodObject<{
162
+ resources: z.ZodOptional<z.ZodObject<{
163
+ agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
164
+ runtimeId: z.ZodString;
165
+ runtimeArn: z.ZodString;
166
+ roleArn: z.ZodString;
167
+ memoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
+ browserId: z.ZodOptional<z.ZodString>;
169
+ codeInterpreterId: z.ZodOptional<z.ZodString>;
170
+ }, z.core.$strip>>>;
171
+ mcp: z.ZodOptional<z.ZodObject<{
172
+ gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
173
+ gatewayId: z.ZodString;
174
+ gatewayArn: z.ZodString;
175
+ }, z.core.$strip>>>;
176
+ runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
177
+ runtimeId: z.ZodString;
178
+ runtimeArn: z.ZodString;
179
+ runtimeEndpoint: z.ZodString;
180
+ }, z.core.$strip>>>;
181
+ lambdas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
182
+ functionArn: z.ZodString;
183
+ functionName: z.ZodString;
184
+ }, z.core.$strip>>>;
185
+ }, z.core.$strip>>;
186
+ externallyManaged: z.ZodOptional<z.ZodObject<{
187
+ customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
188
+ name: z.ZodString;
189
+ allowedAudience: z.ZodArray<z.ZodString>;
190
+ allowedClients: z.ZodArray<z.ZodString>;
191
+ discoveryUrl: z.ZodString;
192
+ }, z.core.$strip>>;
193
+ vpcConfig: z.ZodOptional<z.ZodObject<{
194
+ name: z.ZodString;
195
+ securityGroups: z.ZodArray<z.ZodString>;
196
+ subnets: z.ZodArray<z.ZodString>;
197
+ }, z.core.$strip>>;
198
+ }, z.core.$strip>>;
199
+ stackName: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strip>>;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$strip>;
203
+ export type DeployedState = z.infer<typeof DeployedStateSchema>;
204
+ /**
205
+ * Creates a DeployedState schema that validates target keys against aws-targets.
206
+ * Ensures all keys in deployed-state exist as names in aws-targets.
207
+ */
208
+ export declare function createValidatedDeployedStateSchema(targetNames: string[]): z.ZodObject<{
209
+ targets: z.ZodRecord<z.ZodString, z.ZodObject<{
210
+ resources: z.ZodOptional<z.ZodObject<{
211
+ agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
212
+ runtimeId: z.ZodString;
213
+ runtimeArn: z.ZodString;
214
+ roleArn: z.ZodString;
215
+ memoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
216
+ browserId: z.ZodOptional<z.ZodString>;
217
+ codeInterpreterId: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strip>>>;
219
+ mcp: z.ZodOptional<z.ZodObject<{
220
+ gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
221
+ gatewayId: z.ZodString;
222
+ gatewayArn: z.ZodString;
223
+ }, z.core.$strip>>>;
224
+ runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
225
+ runtimeId: z.ZodString;
226
+ runtimeArn: z.ZodString;
227
+ runtimeEndpoint: z.ZodString;
228
+ }, z.core.$strip>>>;
229
+ lambdas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
230
+ functionArn: z.ZodString;
231
+ functionName: z.ZodString;
232
+ }, z.core.$strip>>>;
233
+ }, z.core.$strip>>;
234
+ externallyManaged: z.ZodOptional<z.ZodObject<{
235
+ customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
236
+ name: z.ZodString;
237
+ allowedAudience: z.ZodArray<z.ZodString>;
238
+ allowedClients: z.ZodArray<z.ZodString>;
239
+ discoveryUrl: z.ZodString;
240
+ }, z.core.$strip>>;
241
+ vpcConfig: z.ZodOptional<z.ZodObject<{
242
+ name: z.ZodString;
243
+ securityGroups: z.ZodArray<z.ZodString>;
244
+ subnets: z.ZodArray<z.ZodString>;
245
+ }, z.core.$strip>>;
246
+ }, z.core.$strip>>;
247
+ stackName: z.ZodOptional<z.ZodString>;
248
+ }, z.core.$strip>>;
249
+ }, z.core.$strip>>;
250
+ }, z.core.$strip>;
251
+ //# sourceMappingURL=deployed-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployed-state.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/deployed-state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,4BAA4B;;;;;;;iBAOvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,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