@aws/agentcore-cdk 0.1.0-alpha.9 → 1.0.0-rc.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 (449) hide show
  1. package/README.md +242 -40
  2. package/dist/cdk/constants.d.ts +1 -0
  3. package/dist/cdk/constants.d.ts.map +1 -1
  4. package/dist/cdk/constants.js +2 -1
  5. package/dist/cdk/constants.js.map +1 -1
  6. package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.d.ts +26 -4
  7. package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.d.ts.map +1 -1
  8. package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.js +69 -10
  9. package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.js.map +1 -1
  10. package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.d.ts +17 -0
  11. package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.d.ts.map +1 -0
  12. package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.js +20 -0
  13. package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.js.map +1 -0
  14. package/dist/cdk/constructs/bundling/container/index.d.ts +1 -0
  15. package/dist/cdk/constructs/bundling/container/index.d.ts.map +1 -1
  16. package/dist/cdk/constructs/bundling/container/index.js +3 -1
  17. package/dist/cdk/constructs/bundling/container/index.js.map +1 -1
  18. package/dist/cdk/constructs/bundling/index.d.ts +2 -0
  19. package/dist/cdk/constructs/bundling/index.d.ts.map +1 -1
  20. package/dist/cdk/constructs/bundling/index.js +6 -2
  21. package/dist/cdk/constructs/bundling/index.js.map +1 -1
  22. package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.d.ts +5 -0
  23. package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.d.ts.map +1 -1
  24. package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.js +2 -7
  25. package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.js.map +1 -1
  26. package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.d.ts +7 -0
  27. package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.d.ts.map +1 -0
  28. package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.js +30 -0
  29. package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.js.map +1 -0
  30. package/dist/cdk/constructs/bundling/zip/index.d.ts +1 -0
  31. package/dist/cdk/constructs/bundling/zip/index.d.ts.map +1 -1
  32. package/dist/cdk/constructs/bundling/zip/index.js +3 -1
  33. package/dist/cdk/constructs/bundling/zip/index.js.map +1 -1
  34. package/dist/cdk/constructs/components/base-props.d.ts +9 -2
  35. package/dist/cdk/constructs/components/base-props.d.ts.map +1 -1
  36. package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts +35 -8
  37. package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts.map +1 -1
  38. package/dist/cdk/constructs/components/container/ContainerBuildProject.js +117 -13
  39. package/dist/cdk/constructs/components/container/ContainerBuildProject.js.map +1 -1
  40. package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts +25 -7
  41. package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts.map +1 -1
  42. package/dist/cdk/constructs/components/container/ContainerImageBuilder.js +45 -7
  43. package/dist/cdk/constructs/components/container/ContainerImageBuilder.js.map +1 -1
  44. package/dist/cdk/constructs/components/container/ContainerRepository.d.ts +30 -0
  45. package/dist/cdk/constructs/components/container/ContainerRepository.d.ts.map +1 -0
  46. package/dist/cdk/constructs/components/container/{AgentEcrRepository.js → ContainerRepository.js} +19 -8
  47. package/dist/cdk/constructs/components/container/ContainerRepository.js.map +1 -0
  48. package/dist/cdk/constructs/components/container/container-build-handler.d.ts +4 -1
  49. package/dist/cdk/constructs/components/container/container-build-handler.d.ts.map +1 -1
  50. package/dist/cdk/constructs/components/container/container-build-handler.js +16 -3
  51. package/dist/cdk/constructs/components/container/container-build-handler.js.map +1 -1
  52. package/dist/cdk/constructs/components/container/index.d.ts +1 -1
  53. package/dist/cdk/constructs/components/container/index.d.ts.map +1 -1
  54. package/dist/cdk/constructs/components/container/index.js +3 -3
  55. package/dist/cdk/constructs/components/container/index.js.map +1 -1
  56. package/dist/cdk/constructs/components/gateway/AgentCoreGateway.d.ts +111 -0
  57. package/dist/cdk/constructs/components/gateway/AgentCoreGateway.d.ts.map +1 -0
  58. package/dist/cdk/constructs/components/gateway/AgentCoreGateway.js +611 -0
  59. package/dist/cdk/constructs/components/gateway/AgentCoreGateway.js.map +1 -0
  60. package/dist/cdk/constructs/components/gateway/connector-defaults.d.ts +20 -0
  61. package/dist/cdk/constructs/components/gateway/connector-defaults.d.ts.map +1 -0
  62. package/dist/cdk/constructs/components/gateway/connector-defaults.js +16 -0
  63. package/dist/cdk/constructs/components/gateway/connector-defaults.js.map +1 -0
  64. package/dist/cdk/constructs/components/gateway/gateway-targets.d.ts +25 -0
  65. package/dist/cdk/constructs/components/gateway/gateway-targets.d.ts.map +1 -0
  66. package/dist/cdk/constructs/components/gateway/gateway-targets.js +95 -0
  67. package/dist/cdk/constructs/components/gateway/gateway-targets.js.map +1 -0
  68. package/dist/cdk/constructs/components/gateway/index.d.ts +3 -0
  69. package/dist/cdk/constructs/components/gateway/index.d.ts.map +1 -0
  70. package/dist/cdk/constructs/components/gateway/index.js +8 -0
  71. package/dist/cdk/constructs/components/gateway/index.js.map +1 -0
  72. package/dist/cdk/constructs/components/index.d.ts +2 -1
  73. package/dist/cdk/constructs/components/index.d.ts.map +1 -1
  74. package/dist/cdk/constructs/components/index.js +2 -1
  75. package/dist/cdk/constructs/components/index.js.map +1 -1
  76. package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.d.ts +42 -0
  77. package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.d.ts.map +1 -0
  78. package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.js +126 -0
  79. package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.js.map +1 -0
  80. package/dist/cdk/constructs/components/primitives/capacity-provider/index.d.ts +2 -0
  81. package/dist/cdk/constructs/components/primitives/capacity-provider/index.d.ts.map +1 -0
  82. package/dist/cdk/constructs/components/primitives/capacity-provider/index.js +6 -0
  83. package/dist/cdk/constructs/components/primitives/capacity-provider/index.js.map +1 -0
  84. package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts +31 -0
  85. package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts.map +1 -0
  86. package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js +62 -0
  87. package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js.map +1 -0
  88. package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts +3 -0
  89. package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts.map +1 -0
  90. package/dist/cdk/constructs/components/primitives/config-bundle/index.js +6 -0
  91. package/dist/cdk/constructs/components/primitives/config-bundle/index.js.map +1 -0
  92. package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts +29 -0
  93. package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts.map +1 -0
  94. package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js +80 -0
  95. package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js.map +1 -0
  96. package/dist/cdk/constructs/components/primitives/dataset/index.d.ts +2 -0
  97. package/dist/cdk/constructs/components/primitives/dataset/index.d.ts.map +1 -0
  98. package/dist/cdk/constructs/components/primitives/dataset/index.js +6 -0
  99. package/dist/cdk/constructs/components/primitives/dataset/index.js.map +1 -0
  100. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts +27 -5
  101. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts.map +1 -1
  102. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js +129 -40
  103. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js.map +1 -1
  104. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts +8 -8
  105. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts.map +1 -1
  106. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js +98 -124
  107. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js.map +1 -1
  108. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts +124 -0
  109. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts.map +1 -0
  110. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js +185 -0
  111. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js.map +1 -0
  112. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts +71 -0
  113. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts.map +1 -0
  114. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js +389 -0
  115. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js.map +1 -0
  116. package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.d.ts +2 -0
  117. package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.d.ts.map +1 -0
  118. package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.js +182 -0
  119. package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.js.map +1 -0
  120. package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts +30 -0
  121. package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts.map +1 -0
  122. package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js +165 -0
  123. package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js.map +1 -0
  124. package/dist/cdk/constructs/components/primitives/harness/index.d.ts +3 -0
  125. package/dist/cdk/constructs/components/primitives/harness/index.d.ts.map +1 -0
  126. package/dist/cdk/constructs/components/primitives/harness/index.js +8 -0
  127. package/dist/cdk/constructs/components/primitives/harness/index.js.map +1 -0
  128. package/dist/cdk/constructs/components/primitives/index.d.ts +9 -3
  129. package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
  130. package/dist/cdk/constructs/components/primitives/index.js +17 -3
  131. package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
  132. package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts +67 -0
  133. package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts.map +1 -0
  134. package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js +282 -0
  135. package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js.map +1 -0
  136. package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts +2 -0
  137. package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts.map +1 -0
  138. package/dist/cdk/constructs/components/primitives/knowledge-base/index.js +6 -0
  139. package/dist/cdk/constructs/components/primitives/knowledge-base/index.js.map +1 -0
  140. package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts +30 -44
  141. package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts.map +1 -1
  142. package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js +147 -154
  143. package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js.map +1 -1
  144. package/dist/cdk/constructs/components/primitives/memory/index.d.ts +1 -1
  145. package/dist/cdk/constructs/components/primitives/memory/index.d.ts.map +1 -1
  146. package/dist/cdk/constructs/components/primitives/memory/index.js.map +1 -1
  147. package/dist/cdk/constructs/components/primitives/memory/memory-actions.d.ts +17 -0
  148. package/dist/cdk/constructs/components/primitives/memory/memory-actions.d.ts.map +1 -0
  149. package/dist/cdk/constructs/components/primitives/memory/memory-actions.js +34 -0
  150. package/dist/cdk/constructs/components/primitives/memory/memory-actions.js.map +1 -0
  151. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts +36 -0
  152. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts.map +1 -0
  153. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js +52 -0
  154. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js.map +1 -0
  155. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts +65 -0
  156. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts.map +1 -0
  157. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js +143 -0
  158. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js.map +1 -0
  159. package/dist/cdk/constructs/components/primitives/payment/index.d.ts +3 -0
  160. package/dist/cdk/constructs/components/primitives/payment/index.d.ts.map +1 -0
  161. package/dist/cdk/constructs/components/primitives/payment/index.js +8 -0
  162. package/dist/cdk/constructs/components/primitives/payment/index.js.map +1 -0
  163. package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts +47 -0
  164. package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts.map +1 -0
  165. package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js +94 -0
  166. package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js.map +1 -0
  167. package/dist/cdk/constructs/components/primitives/policy/index.d.ts +2 -0
  168. package/dist/cdk/constructs/components/primitives/policy/index.d.ts.map +1 -0
  169. package/dist/cdk/constructs/components/primitives/policy/index.js +6 -0
  170. package/dist/cdk/constructs/components/primitives/policy/index.js.map +1 -0
  171. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts +110 -9
  172. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts.map +1 -1
  173. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js +324 -149
  174. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js.map +1 -1
  175. package/dist/cdk/constructs/components/primitives/runtime/index.d.ts +1 -1
  176. package/dist/cdk/constructs/components/primitives/runtime/index.d.ts.map +1 -1
  177. package/dist/cdk/constructs/components/primitives/runtime/index.js.map +1 -1
  178. package/dist/cdk/constructs/components/shared/bindable.d.ts +30 -0
  179. package/dist/cdk/constructs/components/shared/bindable.d.ts.map +1 -0
  180. package/dist/cdk/constructs/components/shared/bindable.js +9 -0
  181. package/dist/cdk/constructs/components/shared/bindable.js.map +1 -0
  182. package/dist/cdk/constructs/components/shared/environment-variables.d.ts +41 -0
  183. package/dist/cdk/constructs/components/shared/environment-variables.d.ts.map +1 -0
  184. package/dist/cdk/constructs/components/shared/environment-variables.js +77 -0
  185. package/dist/cdk/constructs/components/shared/environment-variables.js.map +1 -0
  186. package/dist/cdk/constructs/components/shared/execution-role-grants.d.ts +17 -0
  187. package/dist/cdk/constructs/components/shared/execution-role-grants.d.ts.map +1 -0
  188. package/dist/cdk/constructs/components/shared/execution-role-grants.js +65 -0
  189. package/dist/cdk/constructs/components/shared/execution-role-grants.js.map +1 -0
  190. package/dist/cdk/constructs/components/shared/filesystem-access.d.ts +15 -0
  191. package/dist/cdk/constructs/components/shared/filesystem-access.d.ts.map +1 -0
  192. package/dist/cdk/constructs/components/shared/filesystem-access.js +53 -0
  193. package/dist/cdk/constructs/components/shared/filesystem-access.js.map +1 -0
  194. package/dist/cdk/constructs/components/shared/identity-access.d.ts +30 -0
  195. package/dist/cdk/constructs/components/shared/identity-access.d.ts.map +1 -0
  196. package/dist/cdk/constructs/components/shared/identity-access.js +44 -0
  197. package/dist/cdk/constructs/components/shared/identity-access.js.map +1 -0
  198. package/dist/cdk/constructs/components/shared/imported-role-principal.d.ts +32 -0
  199. package/dist/cdk/constructs/components/shared/imported-role-principal.d.ts.map +1 -0
  200. package/dist/cdk/constructs/components/shared/imported-role-principal.js +51 -0
  201. package/dist/cdk/constructs/components/shared/imported-role-principal.js.map +1 -0
  202. package/dist/cdk/constructs/components/shared/jwt-authorizer.d.ts +10 -0
  203. package/dist/cdk/constructs/components/shared/jwt-authorizer.d.ts.map +1 -0
  204. package/dist/cdk/constructs/components/shared/jwt-authorizer.js +20 -0
  205. package/dist/cdk/constructs/components/shared/jwt-authorizer.js.map +1 -0
  206. package/dist/cdk/constructs/components/shared/load-additional-policies.d.ts +20 -0
  207. package/dist/cdk/constructs/components/shared/load-additional-policies.d.ts.map +1 -0
  208. package/dist/cdk/constructs/components/shared/load-additional-policies.js +47 -0
  209. package/dist/cdk/constructs/components/shared/load-additional-policies.js.map +1 -0
  210. package/dist/cdk/constructs/components/shared/managed-tool-access.d.ts +6 -0
  211. package/dist/cdk/constructs/components/shared/managed-tool-access.d.ts.map +1 -0
  212. package/dist/cdk/constructs/components/shared/managed-tool-access.js +24 -0
  213. package/dist/cdk/constructs/components/shared/managed-tool-access.js.map +1 -0
  214. package/dist/cdk/constructs/components/shared/physical-names.d.ts +17 -0
  215. package/dist/cdk/constructs/components/shared/physical-names.d.ts.map +1 -0
  216. package/dist/cdk/constructs/components/shared/physical-names.js +20 -0
  217. package/dist/cdk/constructs/components/shared/physical-names.js.map +1 -0
  218. package/dist/cdk/constructs/components/{mcp/McpLambdaCompute.d.ts → tools/LambdaToolTarget.d.ts} +6 -6
  219. package/dist/cdk/constructs/components/tools/LambdaToolTarget.d.ts.map +1 -0
  220. package/dist/cdk/constructs/components/{mcp/McpLambdaCompute.js → tools/LambdaToolTarget.js} +20 -12
  221. package/dist/cdk/constructs/components/tools/LambdaToolTarget.js.map +1 -0
  222. package/dist/cdk/constructs/components/tools/RuntimeToolTarget.d.ts +28 -0
  223. package/dist/cdk/constructs/components/tools/RuntimeToolTarget.d.ts.map +1 -0
  224. package/dist/cdk/constructs/components/{mcp/McpRuntimeCompute.js → tools/RuntimeToolTarget.js} +12 -29
  225. package/dist/cdk/constructs/components/tools/RuntimeToolTarget.js.map +1 -0
  226. package/dist/cdk/constructs/components/tools/index.d.ts +3 -0
  227. package/dist/cdk/constructs/components/tools/index.d.ts.map +1 -0
  228. package/dist/cdk/constructs/components/tools/index.js +8 -0
  229. package/dist/cdk/constructs/components/tools/index.js.map +1 -0
  230. package/dist/cdk/constructs/connections/import-connection.d.ts +10 -0
  231. package/dist/cdk/constructs/connections/import-connection.d.ts.map +1 -0
  232. package/dist/cdk/constructs/connections/import-connection.js +64 -0
  233. package/dist/cdk/constructs/connections/import-connection.js.map +1 -0
  234. package/dist/cdk/constructs/index.d.ts +9 -3
  235. package/dist/cdk/constructs/index.d.ts.map +1 -1
  236. package/dist/cdk/constructs/index.js +23 -3
  237. package/dist/cdk/constructs/index.js.map +1 -1
  238. package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +190 -13
  239. package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -1
  240. package/dist/cdk/constructs/l3/AgentCoreApplication.js +746 -39
  241. package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -1
  242. package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts +34 -0
  243. package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts.map +1 -0
  244. package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js +96 -0
  245. package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js.map +1 -0
  246. package/dist/cdk/constructs/l3/AgentCorePayments.d.ts +24 -0
  247. package/dist/cdk/constructs/l3/AgentCorePayments.d.ts.map +1 -0
  248. package/dist/cdk/constructs/l3/AgentCorePayments.js +99 -0
  249. package/dist/cdk/constructs/l3/AgentCorePayments.js.map +1 -0
  250. package/dist/cdk/constructs/l3/RuntimeEnvironment.d.ts +47 -0
  251. package/dist/cdk/constructs/l3/RuntimeEnvironment.d.ts.map +1 -0
  252. package/dist/cdk/constructs/l3/RuntimeEnvironment.js +152 -0
  253. package/dist/cdk/constructs/l3/RuntimeEnvironment.js.map +1 -0
  254. package/dist/cdk/constructs/l3/index.d.ts +3 -3
  255. package/dist/cdk/constructs/l3/index.d.ts.map +1 -1
  256. package/dist/cdk/constructs/l3/index.js +5 -5
  257. package/dist/cdk/constructs/l3/index.js.map +1 -1
  258. package/dist/cdk/index.d.ts +2 -1
  259. package/dist/cdk/index.d.ts.map +1 -1
  260. package/dist/cdk/index.js +26 -3
  261. package/dist/cdk/index.js.map +1 -1
  262. package/dist/cdk/logical-ids.d.ts +5 -5
  263. package/dist/cdk/logical-ids.js +5 -5
  264. package/dist/cdk/project/index.d.ts +4 -0
  265. package/dist/cdk/project/index.d.ts.map +1 -0
  266. package/dist/cdk/project/index.js +13 -0
  267. package/dist/cdk/project/index.js.map +1 -0
  268. package/dist/cdk/project/read-project.d.ts +34 -0
  269. package/dist/cdk/project/read-project.d.ts.map +1 -0
  270. package/dist/cdk/project/read-project.js +86 -0
  271. package/dist/cdk/project/read-project.js.map +1 -0
  272. package/dist/cdk/project/target-stacks.d.ts +55 -0
  273. package/dist/cdk/project/target-stacks.d.ts.map +1 -0
  274. package/dist/cdk/project/target-stacks.js +50 -0
  275. package/dist/cdk/project/target-stacks.js.map +1 -0
  276. package/dist/cdk/project/transform.d.ts +38 -0
  277. package/dist/cdk/project/transform.d.ts.map +1 -0
  278. package/dist/cdk/project/transform.js +106 -0
  279. package/dist/cdk/project/transform.js.map +1 -0
  280. package/dist/cdk/utils/__tests__/tags.test.d.ts +2 -0
  281. package/dist/cdk/utils/__tests__/tags.test.d.ts.map +1 -0
  282. package/dist/cdk/utils/__tests__/tags.test.js +57 -0
  283. package/dist/cdk/utils/__tests__/tags.test.js.map +1 -0
  284. package/dist/cdk/utils/tags.d.ts +11 -0
  285. package/dist/cdk/utils/tags.d.ts.map +1 -0
  286. package/dist/cdk/utils/tags.js +22 -0
  287. package/dist/cdk/utils/tags.js.map +1 -0
  288. package/dist/index.d.ts +3 -7
  289. package/dist/index.d.ts.map +1 -1
  290. package/dist/index.js +27 -28
  291. package/dist/index.js.map +1 -1
  292. package/dist/lib/constants.d.ts +1 -1
  293. package/dist/lib/constants.d.ts.map +1 -1
  294. package/dist/lib/constants.js +2 -2
  295. package/dist/lib/constants.js.map +1 -1
  296. package/dist/lib/errors/config.d.ts +0 -16
  297. package/dist/lib/errors/config.d.ts.map +1 -1
  298. package/dist/lib/errors/config.js +2 -29
  299. package/dist/lib/errors/config.js.map +1 -1
  300. package/dist/lib/index.d.ts +1 -2
  301. package/dist/lib/index.d.ts.map +1 -1
  302. package/dist/lib/index.js +2 -3
  303. package/dist/lib/index.js.map +1 -1
  304. package/dist/lib/packaging/helpers.d.ts +19 -0
  305. package/dist/lib/packaging/helpers.d.ts.map +1 -1
  306. package/dist/lib/packaging/helpers.js +80 -27
  307. package/dist/lib/packaging/helpers.js.map +1 -1
  308. package/dist/lib/packaging/index.d.ts +3 -7
  309. package/dist/lib/packaging/index.d.ts.map +1 -1
  310. package/dist/lib/packaging/index.js +14 -11
  311. package/dist/lib/packaging/index.js.map +1 -1
  312. package/dist/lib/packaging/node.d.ts +6 -0
  313. package/dist/lib/packaging/node.d.ts.map +1 -0
  314. package/dist/lib/packaging/node.js +106 -0
  315. package/dist/lib/packaging/node.js.map +1 -0
  316. package/dist/lib/packaging/types/packaging.d.ts +2 -0
  317. package/dist/lib/packaging/types/packaging.d.ts.map +1 -1
  318. package/dist/lib/packaging/uv.d.ts.map +1 -1
  319. package/dist/lib/packaging/uv.js +1 -1
  320. package/dist/lib/packaging/uv.js.map +1 -1
  321. package/dist/lib/utils/subprocess.d.ts +5 -1
  322. package/dist/lib/utils/subprocess.d.ts.map +1 -1
  323. package/dist/lib/utils/subprocess.js +0 -6
  324. package/dist/lib/utils/subprocess.js.map +1 -1
  325. package/dist/schema/constants.d.ts +11 -0
  326. package/dist/schema/constants.d.ts.map +1 -1
  327. package/dist/schema/constants.js +33 -6
  328. package/dist/schema/constants.js.map +1 -1
  329. package/dist/schema/schemas/agent-env.d.ts +257 -9
  330. package/dist/schema/schemas/agent-env.d.ts.map +1 -1
  331. package/dist/schema/schemas/agent-env.js +407 -12
  332. package/dist/schema/schemas/agent-env.js.map +1 -1
  333. package/dist/schema/schemas/agentcore-project.d.ts +1042 -38
  334. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
  335. package/dist/schema/schemas/agentcore-project.js +290 -15
  336. package/dist/schema/schemas/agentcore-project.js.map +1 -1
  337. package/dist/schema/schemas/auth.d.ts +318 -0
  338. package/dist/schema/schemas/auth.d.ts.map +1 -0
  339. package/dist/schema/schemas/auth.js +238 -0
  340. package/dist/schema/schemas/auth.js.map +1 -0
  341. package/dist/schema/schemas/aws-targets.d.ts +39 -0
  342. package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
  343. package/dist/schema/schemas/aws-targets.js +16 -2
  344. package/dist/schema/schemas/aws-targets.js.map +1 -1
  345. package/dist/schema/schemas/connections.d.ts +183 -0
  346. package/dist/schema/schemas/connections.d.ts.map +1 -0
  347. package/dist/schema/schemas/connections.js +176 -0
  348. package/dist/schema/schemas/connections.js.map +1 -0
  349. package/dist/schema/schemas/deployed-state.d.ts +204 -16
  350. package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
  351. package/dist/schema/schemas/deployed-state.js +44 -4
  352. package/dist/schema/schemas/deployed-state.js.map +1 -1
  353. package/dist/schema/schemas/index.d.ts +2 -0
  354. package/dist/schema/schemas/index.d.ts.map +1 -1
  355. package/dist/schema/schemas/index.js +2 -0
  356. package/dist/schema/schemas/index.js.map +1 -1
  357. package/dist/schema/schemas/mcp.d.ts +255 -249
  358. package/dist/schema/schemas/mcp.d.ts.map +1 -1
  359. package/dist/schema/schemas/mcp.js +317 -60
  360. package/dist/schema/schemas/mcp.js.map +1 -1
  361. package/dist/schema/schemas/primitives/capacity-provider.d.ts +239 -0
  362. package/dist/schema/schemas/primitives/capacity-provider.d.ts.map +1 -0
  363. package/dist/schema/schemas/primitives/capacity-provider.js +220 -0
  364. package/dist/schema/schemas/primitives/capacity-provider.js.map +1 -0
  365. package/dist/schema/schemas/primitives/config-bundle.d.ts +31 -0
  366. package/dist/schema/schemas/primitives/config-bundle.d.ts.map +1 -0
  367. package/dist/schema/schemas/primitives/config-bundle.js +41 -0
  368. package/dist/schema/schemas/primitives/config-bundle.js.map +1 -0
  369. package/dist/schema/schemas/primitives/dataset.d.ts +53 -0
  370. package/dist/schema/schemas/primitives/dataset.d.ts.map +1 -0
  371. package/dist/schema/schemas/primitives/dataset.js +65 -0
  372. package/dist/schema/schemas/primitives/dataset.js.map +1 -0
  373. package/dist/schema/schemas/primitives/evaluator.d.ts +49 -2
  374. package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -1
  375. package/dist/schema/schemas/primitives/evaluator.js +30 -3
  376. package/dist/schema/schemas/primitives/evaluator.js.map +1 -1
  377. package/dist/schema/schemas/primitives/harness.d.ts +649 -0
  378. package/dist/schema/schemas/primitives/harness.d.ts.map +1 -0
  379. package/dist/schema/schemas/primitives/harness.js +596 -0
  380. package/dist/schema/schemas/primitives/harness.js.map +1 -0
  381. package/dist/schema/schemas/primitives/index.d.ts +17 -5
  382. package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
  383. package/dist/schema/schemas/primitives/index.js +71 -3
  384. package/dist/schema/schemas/primitives/index.js.map +1 -1
  385. package/dist/schema/schemas/primitives/knowledge-base.d.ts +103 -0
  386. package/dist/schema/schemas/primitives/knowledge-base.d.ts.map +1 -0
  387. package/dist/schema/schemas/primitives/knowledge-base.js +98 -0
  388. package/dist/schema/schemas/primitives/knowledge-base.js.map +1 -0
  389. package/dist/schema/schemas/primitives/memory.d.ts +33 -2
  390. package/dist/schema/schemas/primitives/memory.d.ts.map +1 -1
  391. package/dist/schema/schemas/primitives/memory.js +33 -3
  392. package/dist/schema/schemas/primitives/memory.js.map +1 -1
  393. package/dist/schema/schemas/primitives/online-evaluation-config.d.ts +22 -3
  394. package/dist/schema/schemas/primitives/online-evaluation-config.d.ts.map +1 -1
  395. package/dist/schema/schemas/primitives/online-evaluation-config.js +45 -6
  396. package/dist/schema/schemas/primitives/online-evaluation-config.js.map +1 -1
  397. package/dist/schema/schemas/primitives/policy.d.ts +62 -0
  398. package/dist/schema/schemas/primitives/policy.d.ts.map +1 -0
  399. package/dist/schema/schemas/primitives/policy.js +64 -0
  400. package/dist/schema/schemas/primitives/policy.js.map +1 -0
  401. package/dist/schema/schemas/primitives/tags.d.ts +6 -0
  402. package/dist/schema/schemas/primitives/tags.d.ts.map +1 -0
  403. package/dist/schema/schemas/primitives/tags.js +20 -0
  404. package/dist/schema/schemas/primitives/tags.js.map +1 -0
  405. package/package.json +13 -11
  406. package/dist/cdk/constructs/components/container/AgentEcrRepository.d.ts +0 -25
  407. package/dist/cdk/constructs/components/container/AgentEcrRepository.d.ts.map +0 -1
  408. package/dist/cdk/constructs/components/container/AgentEcrRepository.js.map +0 -1
  409. package/dist/cdk/constructs/components/mcp/Gateway.d.ts +0 -55
  410. package/dist/cdk/constructs/components/mcp/Gateway.d.ts.map +0 -1
  411. package/dist/cdk/constructs/components/mcp/Gateway.js +0 -454
  412. package/dist/cdk/constructs/components/mcp/Gateway.js.map +0 -1
  413. package/dist/cdk/constructs/components/mcp/McpLambdaCompute.d.ts.map +0 -1
  414. package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js.map +0 -1
  415. package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts +0 -36
  416. package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts.map +0 -1
  417. package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js.map +0 -1
  418. package/dist/cdk/constructs/components/mcp/index.d.ts +0 -5
  419. package/dist/cdk/constructs/components/mcp/index.d.ts.map +0 -1
  420. package/dist/cdk/constructs/components/mcp/index.js +0 -17
  421. package/dist/cdk/constructs/components/mcp/index.js.map +0 -1
  422. package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts +0 -25
  423. package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts.map +0 -1
  424. package/dist/cdk/constructs/components/mcp/mcp-utils.js +0 -43
  425. package/dist/cdk/constructs/components/mcp/mcp-utils.js.map +0 -1
  426. package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts +0 -46
  427. package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts.map +0 -1
  428. package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js +0 -49
  429. package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js.map +0 -1
  430. package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts +0 -86
  431. package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts.map +0 -1
  432. package/dist/cdk/constructs/l3/AgentCoreMcp.js +0 -241
  433. package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +0 -1
  434. package/dist/cdk/constructs/l3/AgentEnvironment.d.ts +0 -34
  435. package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +0 -1
  436. package/dist/cdk/constructs/l3/AgentEnvironment.js +0 -99
  437. package/dist/cdk/constructs/l3/AgentEnvironment.js.map +0 -1
  438. package/dist/lib/schemas/io/config-io.d.ts +0 -99
  439. package/dist/lib/schemas/io/config-io.d.ts.map +0 -1
  440. package/dist/lib/schemas/io/config-io.js +0 -283
  441. package/dist/lib/schemas/io/config-io.js.map +0 -1
  442. package/dist/lib/schemas/io/index.d.ts +0 -3
  443. package/dist/lib/schemas/io/index.d.ts.map +0 -1
  444. package/dist/lib/schemas/io/index.js +0 -17
  445. package/dist/lib/schemas/io/index.js.map +0 -1
  446. package/dist/lib/schemas/io/path-resolver.d.ts +0 -112
  447. package/dist/lib/schemas/io/path-resolver.d.ts.map +0 -1
  448. package/dist/lib/schemas/io/path-resolver.js +0 -195
  449. package/dist/lib/schemas/io/path-resolver.js.map +0 -1
@@ -1,7 +1,19 @@
1
- export type { MemoryStrategy, MemoryStrategyType } from './memory';
2
- export { MemoryStrategySchema, MemoryStrategyNameSchema, MemoryStrategyTypeSchema } from './memory';
3
- export type { EvaluationLevel, EvaluatorConfig, LlmAsAJudgeConfig, RatingScale, NumericalRating, CategoricalRating, } from './evaluator';
4
- export { EvaluationLevelSchema, EvaluatorConfigSchema, EvaluatorNameSchema, LlmAsAJudgeConfigSchema, RatingScaleSchema, NumericalRatingSchema, CategoricalRatingSchema, } from './evaluator';
1
+ export type { Dataset, DatasetSchemaType } from './dataset';
2
+ export { DatasetNameSchema, DatasetSchema, DatasetSchemaTypeSchema } from './dataset';
3
+ export type { CapacityProvider, ComputeConfiguration, Ec2Configuration, EbsVolumeConfiguration, InstanceLifecycleConfiguration, InstanceRequirements, LaunchParameters, OperatingSystem, VolumeConfiguration, VpcConfiguration, } from './capacity-provider';
4
+ export { CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN, CapacityProviderNameSchema, CapacityProviderSchema, ComputeConfigurationSchema, Ec2ConfigurationSchema, EbsVolumeConfigurationSchema, InstanceLifecycleConfigurationSchema, InstanceRequirementsSchema, isValidOperatorRoleArn, LaunchParametersSchema, OperatingSystemSchema, OperatorRoleArnSchema, VolumeConfigurationSchema, VpcConfigurationSchema, } from './capacity-provider';
5
+ export type { IndexedKey, IndexedKeyType, MemoryStrategy, MemoryStrategyType } from './memory';
6
+ export { IndexedKeySchema, IndexedKeyTypeSchema, MemoryStrategySchema, MemoryStrategyNameSchema, MemoryStrategyTypeSchema, } from './memory';
7
+ export type { CategoricalRating, CodeBasedConfig, EvaluationLevel, EvaluatorConfig, EvaluatorModelProvider, ExternalCodeBasedConfig, LlmAsAJudgeConfig, ManagedCodeBasedConfig, NumericalRating, RatingScale, } from './evaluator';
8
+ export { CategoricalRatingSchema, CodeBasedConfigSchema, EvaluationLevelSchema, EvaluatorConfigSchema, EvaluatorModelProviderSchema, EvaluatorNameSchema, ExternalCodeBasedConfigSchema, LlmAsAJudgeConfigSchema, ManagedCodeBasedConfigSchema, NumericalRatingSchema, RatingScaleSchema, } from './evaluator';
5
9
  export type { OnlineEvaluationConfig } from './online-evaluation-config';
6
- export { OnlineEvaluationConfigSchema, OnlineEvaluationConfigNameSchema } from './online-evaluation-config';
10
+ export { ClusteringConfigSchema, OnlineEvaluationConfigSchema, OnlineEvaluationConfigNameSchema, } from './online-evaluation-config';
11
+ export type { EnforcementMode, Policy, PolicyEngine, ValidationMode } from './policy';
12
+ export { EnforcementModeSchema, PolicyEngineNameSchema, PolicyEngineSchema, PolicyNameSchema, PolicySchema, ValidationModeSchema, } from './policy';
13
+ export type { ConfigBundle, ComponentConfiguration, ComponentConfigurationMap } from './config-bundle';
14
+ export { ConfigBundleSchema, ConfigBundleNameSchema, ConfigBundleDescriptionSchema, ComponentConfigurationSchema, ComponentConfigurationMapSchema, } from './config-bundle';
15
+ export type { DataSource, KnowledgeBase, KnowledgeBaseType, S3DataSource } from './knowledge-base';
16
+ export { DataSourceSchema, KnowledgeBaseNameSchema, KnowledgeBaseSchema, KnowledgeBaseTypeSchema, S3DataSourceSchema, } from './knowledge-base';
17
+ export type { HarnessSpec, HarnessModel, HarnessModelProvider, HarnessTool, HarnessToolType, HarnessMemoryRef, HarnessTruncationConfig, HarnessGatewayOutboundAuth, HarnessSkill, HarnessSkillInput, HarnessSkillS3Source, HarnessSkillGitSource, HarnessSkillGitAuth, HarnessSkillPathSource, HarnessSkillAwsSkillsSource, ManagedMemoryStrategy, BedrockApiFormat, OpenAiApiFormat, HarnessApiFormat, } from './harness';
18
+ export { HarnessNameSchema, HarnessSpecSchema, HarnessModelSchema, HarnessModelProviderSchema, HarnessToolSchema, HarnessToolTypeSchema, HarnessMemoryRefSchema, HarnessTruncationConfigSchema, HarnessGatewayOutboundAuthSchema, HarnessSkillSchema, HarnessSkillS3SourceSchema, HarnessSkillGitSourceSchema, HarnessSkillGitAuthSchema, HarnessSkillPathSourceSchema, HarnessSkillAwsSkillsSourceSchema, GatewayOAuthGrantTypeSchema, BedrockApiFormatSchema, OpenAiApiFormatSchema, HarnessApiFormatSchema, ManagedMemoryStrategySchema, validateApiFormat, } from './harness';
7
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpG,YAAY,EACV,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEtF,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,EAC9B,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,2CAA2C,EAC3C,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAC5B,oCAAoC,EACpC,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC/F,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,mBAAmB,EACnB,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,gCAAgC,GACjC,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACtF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACnG,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,6BAA6B,EAC7B,gCAAgC,EAChC,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,4BAA4B,EAC5B,iCAAiC,EACjC,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,iBAAiB,GAClB,MAAM,WAAW,CAAC"}
@@ -1,19 +1,87 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OnlineEvaluationConfigNameSchema = exports.OnlineEvaluationConfigSchema = exports.CategoricalRatingSchema = exports.NumericalRatingSchema = exports.RatingScaleSchema = exports.LlmAsAJudgeConfigSchema = exports.EvaluatorNameSchema = exports.EvaluatorConfigSchema = exports.EvaluationLevelSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategyNameSchema = exports.MemoryStrategySchema = void 0;
3
+ exports.KnowledgeBaseSchema = exports.KnowledgeBaseNameSchema = exports.DataSourceSchema = exports.ComponentConfigurationMapSchema = exports.ComponentConfigurationSchema = exports.ConfigBundleDescriptionSchema = exports.ConfigBundleNameSchema = exports.ConfigBundleSchema = exports.ValidationModeSchema = exports.PolicySchema = exports.PolicyNameSchema = exports.PolicyEngineSchema = exports.PolicyEngineNameSchema = exports.EnforcementModeSchema = exports.OnlineEvaluationConfigNameSchema = exports.OnlineEvaluationConfigSchema = exports.ClusteringConfigSchema = exports.RatingScaleSchema = exports.NumericalRatingSchema = exports.ManagedCodeBasedConfigSchema = exports.LlmAsAJudgeConfigSchema = exports.ExternalCodeBasedConfigSchema = exports.EvaluatorNameSchema = exports.EvaluatorModelProviderSchema = exports.EvaluatorConfigSchema = exports.EvaluationLevelSchema = exports.CodeBasedConfigSchema = exports.CategoricalRatingSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategyNameSchema = exports.MemoryStrategySchema = exports.IndexedKeyTypeSchema = exports.IndexedKeySchema = exports.VpcConfigurationSchema = exports.VolumeConfigurationSchema = exports.OperatorRoleArnSchema = exports.OperatingSystemSchema = exports.LaunchParametersSchema = exports.isValidOperatorRoleArn = exports.InstanceRequirementsSchema = exports.InstanceLifecycleConfigurationSchema = exports.EbsVolumeConfigurationSchema = exports.Ec2ConfigurationSchema = exports.ComputeConfigurationSchema = exports.CapacityProviderSchema = exports.CapacityProviderNameSchema = exports.CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN = exports.DatasetSchemaTypeSchema = exports.DatasetSchema = exports.DatasetNameSchema = void 0;
4
+ exports.validateApiFormat = exports.ManagedMemoryStrategySchema = exports.HarnessApiFormatSchema = exports.OpenAiApiFormatSchema = exports.BedrockApiFormatSchema = exports.GatewayOAuthGrantTypeSchema = exports.HarnessSkillAwsSkillsSourceSchema = exports.HarnessSkillPathSourceSchema = exports.HarnessSkillGitAuthSchema = exports.HarnessSkillGitSourceSchema = exports.HarnessSkillS3SourceSchema = exports.HarnessSkillSchema = exports.HarnessGatewayOutboundAuthSchema = exports.HarnessTruncationConfigSchema = exports.HarnessMemoryRefSchema = exports.HarnessToolTypeSchema = exports.HarnessToolSchema = exports.HarnessModelProviderSchema = exports.HarnessModelSchema = exports.HarnessSpecSchema = exports.HarnessNameSchema = exports.S3DataSourceSchema = exports.KnowledgeBaseTypeSchema = void 0;
5
+ var dataset_1 = require("./dataset");
6
+ Object.defineProperty(exports, "DatasetNameSchema", { enumerable: true, get: function () { return dataset_1.DatasetNameSchema; } });
7
+ Object.defineProperty(exports, "DatasetSchema", { enumerable: true, get: function () { return dataset_1.DatasetSchema; } });
8
+ Object.defineProperty(exports, "DatasetSchemaTypeSchema", { enumerable: true, get: function () { return dataset_1.DatasetSchemaTypeSchema; } });
9
+ var capacity_provider_1 = require("./capacity-provider");
10
+ Object.defineProperty(exports, "CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN", { enumerable: true, get: function () { return capacity_provider_1.CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN; } });
11
+ Object.defineProperty(exports, "CapacityProviderNameSchema", { enumerable: true, get: function () { return capacity_provider_1.CapacityProviderNameSchema; } });
12
+ Object.defineProperty(exports, "CapacityProviderSchema", { enumerable: true, get: function () { return capacity_provider_1.CapacityProviderSchema; } });
13
+ Object.defineProperty(exports, "ComputeConfigurationSchema", { enumerable: true, get: function () { return capacity_provider_1.ComputeConfigurationSchema; } });
14
+ Object.defineProperty(exports, "Ec2ConfigurationSchema", { enumerable: true, get: function () { return capacity_provider_1.Ec2ConfigurationSchema; } });
15
+ Object.defineProperty(exports, "EbsVolumeConfigurationSchema", { enumerable: true, get: function () { return capacity_provider_1.EbsVolumeConfigurationSchema; } });
16
+ Object.defineProperty(exports, "InstanceLifecycleConfigurationSchema", { enumerable: true, get: function () { return capacity_provider_1.InstanceLifecycleConfigurationSchema; } });
17
+ Object.defineProperty(exports, "InstanceRequirementsSchema", { enumerable: true, get: function () { return capacity_provider_1.InstanceRequirementsSchema; } });
18
+ Object.defineProperty(exports, "isValidOperatorRoleArn", { enumerable: true, get: function () { return capacity_provider_1.isValidOperatorRoleArn; } });
19
+ Object.defineProperty(exports, "LaunchParametersSchema", { enumerable: true, get: function () { return capacity_provider_1.LaunchParametersSchema; } });
20
+ Object.defineProperty(exports, "OperatingSystemSchema", { enumerable: true, get: function () { return capacity_provider_1.OperatingSystemSchema; } });
21
+ Object.defineProperty(exports, "OperatorRoleArnSchema", { enumerable: true, get: function () { return capacity_provider_1.OperatorRoleArnSchema; } });
22
+ Object.defineProperty(exports, "VolumeConfigurationSchema", { enumerable: true, get: function () { return capacity_provider_1.VolumeConfigurationSchema; } });
23
+ Object.defineProperty(exports, "VpcConfigurationSchema", { enumerable: true, get: function () { return capacity_provider_1.VpcConfigurationSchema; } });
4
24
  var memory_1 = require("./memory");
25
+ Object.defineProperty(exports, "IndexedKeySchema", { enumerable: true, get: function () { return memory_1.IndexedKeySchema; } });
26
+ Object.defineProperty(exports, "IndexedKeyTypeSchema", { enumerable: true, get: function () { return memory_1.IndexedKeyTypeSchema; } });
5
27
  Object.defineProperty(exports, "MemoryStrategySchema", { enumerable: true, get: function () { return memory_1.MemoryStrategySchema; } });
6
28
  Object.defineProperty(exports, "MemoryStrategyNameSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyNameSchema; } });
7
29
  Object.defineProperty(exports, "MemoryStrategyTypeSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyTypeSchema; } });
8
30
  var evaluator_1 = require("./evaluator");
31
+ Object.defineProperty(exports, "CategoricalRatingSchema", { enumerable: true, get: function () { return evaluator_1.CategoricalRatingSchema; } });
32
+ Object.defineProperty(exports, "CodeBasedConfigSchema", { enumerable: true, get: function () { return evaluator_1.CodeBasedConfigSchema; } });
9
33
  Object.defineProperty(exports, "EvaluationLevelSchema", { enumerable: true, get: function () { return evaluator_1.EvaluationLevelSchema; } });
10
34
  Object.defineProperty(exports, "EvaluatorConfigSchema", { enumerable: true, get: function () { return evaluator_1.EvaluatorConfigSchema; } });
35
+ Object.defineProperty(exports, "EvaluatorModelProviderSchema", { enumerable: true, get: function () { return evaluator_1.EvaluatorModelProviderSchema; } });
11
36
  Object.defineProperty(exports, "EvaluatorNameSchema", { enumerable: true, get: function () { return evaluator_1.EvaluatorNameSchema; } });
37
+ Object.defineProperty(exports, "ExternalCodeBasedConfigSchema", { enumerable: true, get: function () { return evaluator_1.ExternalCodeBasedConfigSchema; } });
12
38
  Object.defineProperty(exports, "LlmAsAJudgeConfigSchema", { enumerable: true, get: function () { return evaluator_1.LlmAsAJudgeConfigSchema; } });
13
- Object.defineProperty(exports, "RatingScaleSchema", { enumerable: true, get: function () { return evaluator_1.RatingScaleSchema; } });
39
+ Object.defineProperty(exports, "ManagedCodeBasedConfigSchema", { enumerable: true, get: function () { return evaluator_1.ManagedCodeBasedConfigSchema; } });
14
40
  Object.defineProperty(exports, "NumericalRatingSchema", { enumerable: true, get: function () { return evaluator_1.NumericalRatingSchema; } });
15
- Object.defineProperty(exports, "CategoricalRatingSchema", { enumerable: true, get: function () { return evaluator_1.CategoricalRatingSchema; } });
41
+ Object.defineProperty(exports, "RatingScaleSchema", { enumerable: true, get: function () { return evaluator_1.RatingScaleSchema; } });
16
42
  var online_evaluation_config_1 = require("./online-evaluation-config");
43
+ Object.defineProperty(exports, "ClusteringConfigSchema", { enumerable: true, get: function () { return online_evaluation_config_1.ClusteringConfigSchema; } });
17
44
  Object.defineProperty(exports, "OnlineEvaluationConfigSchema", { enumerable: true, get: function () { return online_evaluation_config_1.OnlineEvaluationConfigSchema; } });
18
45
  Object.defineProperty(exports, "OnlineEvaluationConfigNameSchema", { enumerable: true, get: function () { return online_evaluation_config_1.OnlineEvaluationConfigNameSchema; } });
46
+ var policy_1 = require("./policy");
47
+ Object.defineProperty(exports, "EnforcementModeSchema", { enumerable: true, get: function () { return policy_1.EnforcementModeSchema; } });
48
+ Object.defineProperty(exports, "PolicyEngineNameSchema", { enumerable: true, get: function () { return policy_1.PolicyEngineNameSchema; } });
49
+ Object.defineProperty(exports, "PolicyEngineSchema", { enumerable: true, get: function () { return policy_1.PolicyEngineSchema; } });
50
+ Object.defineProperty(exports, "PolicyNameSchema", { enumerable: true, get: function () { return policy_1.PolicyNameSchema; } });
51
+ Object.defineProperty(exports, "PolicySchema", { enumerable: true, get: function () { return policy_1.PolicySchema; } });
52
+ Object.defineProperty(exports, "ValidationModeSchema", { enumerable: true, get: function () { return policy_1.ValidationModeSchema; } });
53
+ var config_bundle_1 = require("./config-bundle");
54
+ Object.defineProperty(exports, "ConfigBundleSchema", { enumerable: true, get: function () { return config_bundle_1.ConfigBundleSchema; } });
55
+ Object.defineProperty(exports, "ConfigBundleNameSchema", { enumerable: true, get: function () { return config_bundle_1.ConfigBundleNameSchema; } });
56
+ Object.defineProperty(exports, "ConfigBundleDescriptionSchema", { enumerable: true, get: function () { return config_bundle_1.ConfigBundleDescriptionSchema; } });
57
+ Object.defineProperty(exports, "ComponentConfigurationSchema", { enumerable: true, get: function () { return config_bundle_1.ComponentConfigurationSchema; } });
58
+ Object.defineProperty(exports, "ComponentConfigurationMapSchema", { enumerable: true, get: function () { return config_bundle_1.ComponentConfigurationMapSchema; } });
59
+ var knowledge_base_1 = require("./knowledge-base");
60
+ Object.defineProperty(exports, "DataSourceSchema", { enumerable: true, get: function () { return knowledge_base_1.DataSourceSchema; } });
61
+ Object.defineProperty(exports, "KnowledgeBaseNameSchema", { enumerable: true, get: function () { return knowledge_base_1.KnowledgeBaseNameSchema; } });
62
+ Object.defineProperty(exports, "KnowledgeBaseSchema", { enumerable: true, get: function () { return knowledge_base_1.KnowledgeBaseSchema; } });
63
+ Object.defineProperty(exports, "KnowledgeBaseTypeSchema", { enumerable: true, get: function () { return knowledge_base_1.KnowledgeBaseTypeSchema; } });
64
+ Object.defineProperty(exports, "S3DataSourceSchema", { enumerable: true, get: function () { return knowledge_base_1.S3DataSourceSchema; } });
65
+ var harness_1 = require("./harness");
66
+ Object.defineProperty(exports, "HarnessNameSchema", { enumerable: true, get: function () { return harness_1.HarnessNameSchema; } });
67
+ Object.defineProperty(exports, "HarnessSpecSchema", { enumerable: true, get: function () { return harness_1.HarnessSpecSchema; } });
68
+ Object.defineProperty(exports, "HarnessModelSchema", { enumerable: true, get: function () { return harness_1.HarnessModelSchema; } });
69
+ Object.defineProperty(exports, "HarnessModelProviderSchema", { enumerable: true, get: function () { return harness_1.HarnessModelProviderSchema; } });
70
+ Object.defineProperty(exports, "HarnessToolSchema", { enumerable: true, get: function () { return harness_1.HarnessToolSchema; } });
71
+ Object.defineProperty(exports, "HarnessToolTypeSchema", { enumerable: true, get: function () { return harness_1.HarnessToolTypeSchema; } });
72
+ Object.defineProperty(exports, "HarnessMemoryRefSchema", { enumerable: true, get: function () { return harness_1.HarnessMemoryRefSchema; } });
73
+ Object.defineProperty(exports, "HarnessTruncationConfigSchema", { enumerable: true, get: function () { return harness_1.HarnessTruncationConfigSchema; } });
74
+ Object.defineProperty(exports, "HarnessGatewayOutboundAuthSchema", { enumerable: true, get: function () { return harness_1.HarnessGatewayOutboundAuthSchema; } });
75
+ Object.defineProperty(exports, "HarnessSkillSchema", { enumerable: true, get: function () { return harness_1.HarnessSkillSchema; } });
76
+ Object.defineProperty(exports, "HarnessSkillS3SourceSchema", { enumerable: true, get: function () { return harness_1.HarnessSkillS3SourceSchema; } });
77
+ Object.defineProperty(exports, "HarnessSkillGitSourceSchema", { enumerable: true, get: function () { return harness_1.HarnessSkillGitSourceSchema; } });
78
+ Object.defineProperty(exports, "HarnessSkillGitAuthSchema", { enumerable: true, get: function () { return harness_1.HarnessSkillGitAuthSchema; } });
79
+ Object.defineProperty(exports, "HarnessSkillPathSourceSchema", { enumerable: true, get: function () { return harness_1.HarnessSkillPathSourceSchema; } });
80
+ Object.defineProperty(exports, "HarnessSkillAwsSkillsSourceSchema", { enumerable: true, get: function () { return harness_1.HarnessSkillAwsSkillsSourceSchema; } });
81
+ Object.defineProperty(exports, "GatewayOAuthGrantTypeSchema", { enumerable: true, get: function () { return harness_1.GatewayOAuthGrantTypeSchema; } });
82
+ Object.defineProperty(exports, "BedrockApiFormatSchema", { enumerable: true, get: function () { return harness_1.BedrockApiFormatSchema; } });
83
+ Object.defineProperty(exports, "OpenAiApiFormatSchema", { enumerable: true, get: function () { return harness_1.OpenAiApiFormatSchema; } });
84
+ Object.defineProperty(exports, "HarnessApiFormatSchema", { enumerable: true, get: function () { return harness_1.HarnessApiFormatSchema; } });
85
+ Object.defineProperty(exports, "ManagedMemoryStrategySchema", { enumerable: true, get: function () { return harness_1.ManagedMemoryStrategySchema; } });
86
+ Object.defineProperty(exports, "validateApiFormat", { enumerable: true, get: function () { return harness_1.validateApiFormat; } });
19
87
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":";;;AACA,mCAAoG;AAA3F,8GAAA,oBAAoB,OAAA;AAAE,kHAAA,wBAAwB,OAAA;AAAE,kHAAA,wBAAwB,OAAA;AAUjF,yCAQqB;AAPnB,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,gHAAA,mBAAmB,OAAA;AACnB,oHAAA,uBAAuB,OAAA;AACvB,8GAAA,iBAAiB,OAAA;AACjB,kHAAA,qBAAqB,OAAA;AACrB,oHAAA,uBAAuB,OAAA;AAIzB,uEAA4G;AAAnG,wIAAA,4BAA4B,OAAA;AAAE,4IAAA,gCAAgC,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":";;;;AACA,qCAAsF;AAA7E,4GAAA,iBAAiB,OAAA;AAAE,wGAAA,aAAa,OAAA;AAAE,kHAAA,uBAAuB,OAAA;AAclE,yDAe6B;AAd3B,gJAAA,2CAA2C,OAAA;AAC3C,+HAAA,0BAA0B,OAAA;AAC1B,2HAAA,sBAAsB,OAAA;AACtB,+HAAA,0BAA0B,OAAA;AAC1B,2HAAA,sBAAsB,OAAA;AACtB,iIAAA,4BAA4B,OAAA;AAC5B,yIAAA,oCAAoC,OAAA;AACpC,+HAAA,0BAA0B,OAAA;AAC1B,2HAAA,sBAAsB,OAAA;AACtB,2HAAA,sBAAsB,OAAA;AACtB,0HAAA,qBAAqB,OAAA;AACrB,0HAAA,qBAAqB,OAAA;AACrB,8HAAA,yBAAyB,OAAA;AACzB,2HAAA,sBAAsB,OAAA;AAIxB,mCAMkB;AALhB,0GAAA,gBAAgB,OAAA;AAChB,8GAAA,oBAAoB,OAAA;AACpB,8GAAA,oBAAoB,OAAA;AACpB,kHAAA,wBAAwB,OAAA;AACxB,kHAAA,wBAAwB,OAAA;AAe1B,yCAYqB;AAXnB,oHAAA,uBAAuB,OAAA;AACvB,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,yHAAA,4BAA4B,OAAA;AAC5B,gHAAA,mBAAmB,OAAA;AACnB,0HAAA,6BAA6B,OAAA;AAC7B,oHAAA,uBAAuB,OAAA;AACvB,yHAAA,4BAA4B,OAAA;AAC5B,kHAAA,qBAAqB,OAAA;AACrB,8GAAA,iBAAiB,OAAA;AAInB,uEAIoC;AAHlC,kIAAA,sBAAsB,OAAA;AACtB,wIAAA,4BAA4B,OAAA;AAC5B,4IAAA,gCAAgC,OAAA;AAIlC,mCAOkB;AANhB,+GAAA,qBAAqB,OAAA;AACrB,gHAAA,sBAAsB,OAAA;AACtB,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAChB,sGAAA,YAAY,OAAA;AACZ,8GAAA,oBAAoB,OAAA;AAItB,iDAMyB;AALvB,mHAAA,kBAAkB,OAAA;AAClB,uHAAA,sBAAsB,OAAA;AACtB,8HAAA,6BAA6B,OAAA;AAC7B,6HAAA,4BAA4B,OAAA;AAC5B,gIAAA,+BAA+B,OAAA;AAIjC,mDAM0B;AALxB,kHAAA,gBAAgB,OAAA;AAChB,yHAAA,uBAAuB,OAAA;AACvB,qHAAA,mBAAmB,OAAA;AACnB,yHAAA,uBAAuB,OAAA;AACvB,oHAAA,kBAAkB,OAAA;AAuBpB,qCAsBmB;AArBjB,4GAAA,iBAAiB,OAAA;AACjB,4GAAA,iBAAiB,OAAA;AACjB,6GAAA,kBAAkB,OAAA;AAClB,qHAAA,0BAA0B,OAAA;AAC1B,4GAAA,iBAAiB,OAAA;AACjB,gHAAA,qBAAqB,OAAA;AACrB,iHAAA,sBAAsB,OAAA;AACtB,wHAAA,6BAA6B,OAAA;AAC7B,2HAAA,gCAAgC,OAAA;AAChC,6GAAA,kBAAkB,OAAA;AAClB,qHAAA,0BAA0B,OAAA;AAC1B,sHAAA,2BAA2B,OAAA;AAC3B,oHAAA,yBAAyB,OAAA;AACzB,uHAAA,4BAA4B,OAAA;AAC5B,4HAAA,iCAAiC,OAAA;AACjC,sHAAA,2BAA2B,OAAA;AAC3B,iHAAA,sBAAsB,OAAA;AACtB,gHAAA,qBAAqB,OAAA;AACrB,iHAAA,sBAAsB,OAAA;AACtB,sHAAA,2BAA2B,OAAA;AAC3B,4GAAA,iBAAiB,OAAA"}
@@ -0,0 +1,103 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Knowledge Base name validation.
4
+ * 1-48 chars, starts with a letter, alphanumeric + dash + underscore.
5
+ * Mirrors the naming convention used by Memory/Evaluator/Dataset primitives;
6
+ * stricter than the Bedrock CreateKnowledgeBase API allows (which permits up
7
+ * to 100 chars), but consistent with the rest of the agentcore-cli schemas.
8
+ */
9
+ export declare const KnowledgeBaseNameSchema: z.ZodString;
10
+ export declare const S3DataSourceSchema: z.ZodObject<{
11
+ type: z.ZodLiteral<"S3">;
12
+ uri: z.ZodString;
13
+ }, z.core.$strict>;
14
+ export type S3DataSource = z.infer<typeof S3DataSourceSchema>;
15
+ /**
16
+ * Wire-verbatim connector type values for non-S3 FMKB data sources. These are
17
+ * the exact `connectorParameters.type` literals the Bedrock managed-connector
18
+ * API uses (confirmed against the FMKB console module's read and write paths).
19
+ * Note `WEB` (not `WEBCRAWLER`) and the single-word `GOOGLEDRIVE`.
20
+ */
21
+ export declare const ConnectorDataSourceTypeSchema: z.ZodEnum<{
22
+ WEB: "WEB";
23
+ CONFLUENCE: "CONFLUENCE";
24
+ SHAREPOINT: "SHAREPOINT";
25
+ ONEDRIVE: "ONEDRIVE";
26
+ GOOGLEDRIVE: "GOOGLEDRIVE";
27
+ }>;
28
+ export type ConnectorDataSourceType = z.infer<typeof ConnectorDataSourceTypeSchema>;
29
+ /**
30
+ * Non-S3 data source. The connector-specific structure lives in a JSON file
31
+ * (`connectorConfigFile`, a project-relative path) and is passed through to
32
+ * the DataSource's connectorParameters verbatim at deploy time. This honors
33
+ * the DevEx "JSON file passthrough" decision: new connector params don't
34
+ * require CLI/schema changes.
35
+ */
36
+ export declare const ConnectorFileDataSourceSchema: z.ZodObject<{
37
+ type: z.ZodEnum<{
38
+ WEB: "WEB";
39
+ CONFLUENCE: "CONFLUENCE";
40
+ SHAREPOINT: "SHAREPOINT";
41
+ ONEDRIVE: "ONEDRIVE";
42
+ GOOGLEDRIVE: "GOOGLEDRIVE";
43
+ }>;
44
+ connectorConfigFile: z.ZodString;
45
+ }, z.core.$strict>;
46
+ export type ConnectorFileDataSource = z.infer<typeof ConnectorFileDataSourceSchema>;
47
+ /**
48
+ * Knowledge Base data source: S3 (inline `uri`) or a non-S3 connector
49
+ * (file-path reference). Discriminated union on `type`.
50
+ */
51
+ export declare const DataSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ type: z.ZodLiteral<"S3">;
53
+ uri: z.ZodString;
54
+ }, z.core.$strict>, z.ZodObject<{
55
+ type: z.ZodEnum<{
56
+ WEB: "WEB";
57
+ CONFLUENCE: "CONFLUENCE";
58
+ SHAREPOINT: "SHAREPOINT";
59
+ ONEDRIVE: "ONEDRIVE";
60
+ GOOGLEDRIVE: "GOOGLEDRIVE";
61
+ }>;
62
+ connectorConfigFile: z.ZodString;
63
+ }, z.core.$strict>], "type">;
64
+ export type DataSource = z.infer<typeof DataSourceSchema>;
65
+ /**
66
+ * Type literal for KnowledgeBase entries in `agentcore.json`.
67
+ * Mirrors how Memory/Evaluator/etc. tag themselves for forward-compat.
68
+ */
69
+ export declare const KnowledgeBaseTypeSchema: z.ZodLiteral<"AgentCoreKnowledgeBase">;
70
+ export type KnowledgeBaseType = z.infer<typeof KnowledgeBaseTypeSchema>;
71
+ /**
72
+ * Knowledge Base entry. The CLI creates and owns the KB, its data sources,
73
+ * its IAM role, and (when `gateway` is set in Wave 2) its connector gateway
74
+ * target.
75
+ *
76
+ * To wire an EXTERNAL KB (one this project does not own) as a gateway target,
77
+ * skip this schema and use a connector gateway target with the external KB's
78
+ * literal 10-char ID set on `knowledgeBaseId`.
79
+ *
80
+ * `gateway` is optional in Wave 1 — when set, it's stored but not yet wired
81
+ * to a gateway target. Wave 2 lights up the connector gateway target.
82
+ */
83
+ export declare const KnowledgeBaseSchema: z.ZodObject<{
84
+ type: z.ZodDefault<z.ZodLiteral<"AgentCoreKnowledgeBase">>;
85
+ name: z.ZodString;
86
+ description: z.ZodOptional<z.ZodString>;
87
+ dataSources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
88
+ type: z.ZodLiteral<"S3">;
89
+ uri: z.ZodString;
90
+ }, z.core.$strict>, z.ZodObject<{
91
+ type: z.ZodEnum<{
92
+ WEB: "WEB";
93
+ CONFLUENCE: "CONFLUENCE";
94
+ SHAREPOINT: "SHAREPOINT";
95
+ ONEDRIVE: "ONEDRIVE";
96
+ GOOGLEDRIVE: "GOOGLEDRIVE";
97
+ }>;
98
+ connectorConfigFile: z.ZodString;
99
+ }, z.core.$strict>], "type">>;
100
+ gateway: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$strict>;
102
+ export type KnowledgeBase = z.infer<typeof KnowledgeBaseSchema>;
103
+ //# sourceMappingURL=knowledge-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-base.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/knowledge-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,aAOjC,CAAC;AAgBJ,eAAO,MAAM,kBAAkB;;;kBAcpB,CAAC;AAEZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;;;EAAyE,CAAC;AACpH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;kBAK/B,CAAC;AAEZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;4BAAoF,CAAC;AAClH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,wCAAsC,CAAC;AAC3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;kBAgBrB,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KnowledgeBaseSchema = exports.KnowledgeBaseTypeSchema = exports.DataSourceSchema = exports.ConnectorFileDataSourceSchema = exports.ConnectorDataSourceTypeSchema = exports.S3DataSourceSchema = exports.KnowledgeBaseNameSchema = void 0;
4
+ const zod_util_1 = require("../zod-util");
5
+ const zod_1 = require("zod");
6
+ /**
7
+ * Knowledge Base name validation.
8
+ * 1-48 chars, starts with a letter, alphanumeric + dash + underscore.
9
+ * Mirrors the naming convention used by Memory/Evaluator/Dataset primitives;
10
+ * stricter than the Bedrock CreateKnowledgeBase API allows (which permits up
11
+ * to 100 chars), but consistent with the rest of the agentcore-cli schemas.
12
+ */
13
+ exports.KnowledgeBaseNameSchema = zod_1.z
14
+ .string()
15
+ .min(1, 'Name is required')
16
+ .max(48)
17
+ .regex(/^[a-zA-Z][a-zA-Z0-9_-]{0,47}$/, 'Must begin with a letter and contain only alphanumeric characters, dashes, and underscores (max 48 chars)');
18
+ /**
19
+ * S3 data source for FMKB. Wave 1 supports S3 only.
20
+ *
21
+ * `uri` must be an `s3://bucket[/prefix]` URI. Non-S3 connectors (Confluence,
22
+ * SharePoint, OneDrive, Google Drive, Web Crawler) are deferred to a later wave.
23
+ *
24
+ * Bucket validation enforces the AWS S3 bucket naming rules at parse time:
25
+ * 3-63 chars, lowercase + digits + dot + hyphen, must start and end with
26
+ * letter/digit, no consecutive dots, and none of the AWS-reserved prefixes
27
+ * (`xn--`, `sthree-`) or suffixes (`-s3alias`). AWS will ultimately reject
28
+ * non-conformant buckets server-side; failing fast at config-load time
29
+ * gives a better error surface.
30
+ */
31
+ const S3_BUCKET_NAME = /^(?!xn--)(?!sthree-)[a-z0-9](?!.*\.\.)[a-z0-9.-]{1,61}[a-z0-9](?<!-s3alias)$/;
32
+ exports.S3DataSourceSchema = zod_1.z
33
+ .object({
34
+ type: zod_1.z.literal('S3'),
35
+ uri: zod_1.z
36
+ .string()
37
+ .min(1)
38
+ .refine(s => {
39
+ const m = /^s3:\/\/([^/]+)(?:\/.*)?$/.exec(s);
40
+ return !!m && S3_BUCKET_NAME.test(m[1]);
41
+ }, { message: 'Must be a valid s3:// URI with an AWS-compliant bucket name' }),
42
+ })
43
+ .strict();
44
+ /**
45
+ * Wire-verbatim connector type values for non-S3 FMKB data sources. These are
46
+ * the exact `connectorParameters.type` literals the Bedrock managed-connector
47
+ * API uses (confirmed against the FMKB console module's read and write paths).
48
+ * Note `WEB` (not `WEBCRAWLER`) and the single-word `GOOGLEDRIVE`.
49
+ */
50
+ exports.ConnectorDataSourceTypeSchema = zod_1.z.enum(['WEB', 'CONFLUENCE', 'SHAREPOINT', 'ONEDRIVE', 'GOOGLEDRIVE']);
51
+ /**
52
+ * Non-S3 data source. The connector-specific structure lives in a JSON file
53
+ * (`connectorConfigFile`, a project-relative path) and is passed through to
54
+ * the DataSource's connectorParameters verbatim at deploy time. This honors
55
+ * the DevEx "JSON file passthrough" decision: new connector params don't
56
+ * require CLI/schema changes.
57
+ */
58
+ exports.ConnectorFileDataSourceSchema = zod_1.z
59
+ .object({
60
+ type: exports.ConnectorDataSourceTypeSchema,
61
+ connectorConfigFile: zod_1.z.string().min(1, 'connectorConfigFile path is required'),
62
+ })
63
+ .strict();
64
+ /**
65
+ * Knowledge Base data source: S3 (inline `uri`) or a non-S3 connector
66
+ * (file-path reference). Discriminated union on `type`.
67
+ */
68
+ exports.DataSourceSchema = zod_1.z.discriminatedUnion('type', [exports.S3DataSourceSchema, exports.ConnectorFileDataSourceSchema]);
69
+ /**
70
+ * Type literal for KnowledgeBase entries in `agentcore.json`.
71
+ * Mirrors how Memory/Evaluator/etc. tag themselves for forward-compat.
72
+ */
73
+ exports.KnowledgeBaseTypeSchema = zod_1.z.literal('AgentCoreKnowledgeBase');
74
+ /**
75
+ * Knowledge Base entry. The CLI creates and owns the KB, its data sources,
76
+ * its IAM role, and (when `gateway` is set in Wave 2) its connector gateway
77
+ * target.
78
+ *
79
+ * To wire an EXTERNAL KB (one this project does not own) as a gateway target,
80
+ * skip this schema and use a connector gateway target with the external KB's
81
+ * literal 10-char ID set on `knowledgeBaseId`.
82
+ *
83
+ * `gateway` is optional in Wave 1 — when set, it's stored but not yet wired
84
+ * to a gateway target. Wave 2 lights up the connector gateway target.
85
+ */
86
+ exports.KnowledgeBaseSchema = zod_1.z
87
+ .object({
88
+ type: exports.KnowledgeBaseTypeSchema.default('AgentCoreKnowledgeBase'),
89
+ name: exports.KnowledgeBaseNameSchema,
90
+ description: zod_1.z.string().max(2048).optional(),
91
+ dataSources: zod_1.z
92
+ .array(exports.DataSourceSchema)
93
+ .min(1, 'At least one data source is required')
94
+ .superRefine((0, zod_util_1.uniqueBy)(ds => (ds.type === 'S3' ? ds.uri : ds.connectorConfigFile), key => `Duplicate data source: ${key}`)),
95
+ gateway: zod_1.z.string().min(1).optional(),
96
+ })
97
+ .strict();
98
+ //# sourceMappingURL=knowledge-base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-base.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/knowledge-base.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AACvC,6BAAwB;AAExB;;;;;;GAMG;AACU,QAAA,uBAAuB,GAAG,OAAC;KACrC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,+BAA+B,EAC/B,2GAA2G,CAC5G,CAAC;AAEJ;;;;;;;;;;;;GAYG;AACH,MAAM,cAAc,GAAG,8EAA8E,CAAC;AACzF,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACrB,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CACL,CAAC,CAAC,EAAE;QACF,MAAM,CAAC,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC9C,OAAO,CAAC,CAAC,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;IAC3C,CAAC,EACD,EAAE,OAAO,EAAE,6DAA6D,EAAE,CAC3E;CACJ,CAAC;KACD,MAAM,EAAE,CAAC;AAIZ;;;;;GAKG;AACU,QAAA,6BAA6B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC;AAGpH;;;;;;GAMG;AACU,QAAA,6BAA6B,GAAG,OAAC;KAC3C,MAAM,CAAC;IACN,IAAI,EAAE,qCAA6B;IACnC,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,sCAAsC,CAAC;CAC/E,CAAC;KACD,MAAM,EAAE,CAAC;AAIZ;;;GAGG;AACU,QAAA,gBAAgB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC,0BAAkB,EAAE,qCAA6B,CAAC,CAAC,CAAC;AAGlH;;;GAGG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAG3E;;;;;;;;;;;GAWG;AACU,QAAA,mBAAmB,GAAG,OAAC;KACjC,MAAM,CAAC;IACN,IAAI,EAAE,+BAAuB,CAAC,OAAO,CAAC,wBAAwB,CAAC;IAC/D,IAAI,EAAE,+BAAuB;IAC7B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,OAAC;SACX,KAAK,CAAC,wBAAgB,CAAC;SACvB,GAAG,CAAC,CAAC,EAAE,sCAAsC,CAAC;SAC9C,WAAW,CACV,IAAA,mBAAQ,EACN,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,EAC1D,GAAG,CAAC,EAAE,CAAC,0BAA0B,GAAG,EAAE,CACvC,CACF;IACH,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACtC,CAAC;KACD,MAAM,EAAE,CAAC"}
@@ -6,13 +6,15 @@ import { z } from 'zod';
6
6
  * - SUMMARIZATION → SummaryMemoryStrategy (note: CloudFormation uses "Summary")
7
7
  * - USER_PREFERENCE → UserPreferenceMemoryStrategy
8
8
  * - CUSTOM → CustomMemoryStrategy
9
+ * - EPISODIC → EpisodicMemoryStrategy
9
10
  * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-bedrockagentcore-memory-memorystrategy.html
10
11
  */
11
12
  export declare const MemoryStrategyTypeSchema: z.ZodEnum<{
13
+ CUSTOM: "CUSTOM";
12
14
  SEMANTIC: "SEMANTIC";
13
15
  SUMMARIZATION: "SUMMARIZATION";
14
16
  USER_PREFERENCE: "USER_PREFERENCE";
15
- CUSTOM: "CUSTOM";
17
+ EPISODIC: "EPISODIC";
16
18
  }>;
17
19
  export type MemoryStrategyType = z.infer<typeof MemoryStrategyTypeSchema>;
18
20
  /**
@@ -24,17 +26,46 @@ export declare const MemoryStrategyNameSchema: z.ZodString;
24
26
  /**
25
27
  * Memory strategy configuration.
26
28
  * Each memory can have multiple strategies with optional namespace scoping.
29
+ *
30
+ * Field naming:
31
+ * - `namespaceTemplates` / `reflectionNamespaceTemplates` are the preferred field names.
32
+ * - `namespaces` / `reflectionNamespaces` are deprecated aliases retained for backward
33
+ * compatibility. When both the deprecated and preferred form are supplied for the same
34
+ * concept, the preferred form wins.
27
35
  */
28
36
  export declare const MemoryStrategySchema: z.ZodObject<{
29
37
  type: z.ZodEnum<{
38
+ CUSTOM: "CUSTOM";
30
39
  SEMANTIC: "SEMANTIC";
31
40
  SUMMARIZATION: "SUMMARIZATION";
32
41
  USER_PREFERENCE: "USER_PREFERENCE";
33
- CUSTOM: "CUSTOM";
42
+ EPISODIC: "EPISODIC";
34
43
  }>;
35
44
  name: z.ZodOptional<z.ZodString>;
36
45
  description: z.ZodOptional<z.ZodString>;
46
+ namespaceTemplates: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
47
  namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ reflectionNamespaceTemplates: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
+ reflectionNamespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
50
  }, z.core.$strip>;
39
51
  export type MemoryStrategy = z.infer<typeof MemoryStrategySchema>;
52
+ /**
53
+ * Supported metadata value types for indexed keys.
54
+ * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-bedrockagentcore-memory-indexedkey.html
55
+ */
56
+ export declare const IndexedKeyTypeSchema: z.ZodEnum<{
57
+ STRING: "STRING";
58
+ STRINGLIST: "STRINGLIST";
59
+ NUMBER: "NUMBER";
60
+ }>;
61
+ export type IndexedKeyType = z.infer<typeof IndexedKeyTypeSchema>;
62
+ export declare const IndexedKeySchema: z.ZodObject<{
63
+ key: z.ZodString;
64
+ type: z.ZodEnum<{
65
+ STRING: "STRING";
66
+ STRINGLIST: "STRINGLIST";
67
+ NUMBER: "NUMBER";
68
+ }>;
69
+ }, z.core.$strip>;
70
+ export type IndexedKey = z.infer<typeof IndexedKeySchema>;
40
71
  //# sourceMappingURL=memory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB;;;;;EAAqE,CAAC;AAC3G,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,aAOlC,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAS/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB;;;;;;EAAiF,CAAC;AACvH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,aAOlC,CAAC;AAEJ;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;iBAe/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAMlE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;EAA6C,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;iBAW3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MemoryStrategySchema = exports.MemoryStrategyNameSchema = exports.MemoryStrategyTypeSchema = void 0;
3
+ exports.IndexedKeySchema = exports.IndexedKeyTypeSchema = exports.MemoryStrategySchema = exports.MemoryStrategyNameSchema = exports.MemoryStrategyTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  // ============================================================================
6
6
  // Memory Strategy Types
@@ -12,9 +12,10 @@ const zod_1 = require("zod");
12
12
  * - SUMMARIZATION → SummaryMemoryStrategy (note: CloudFormation uses "Summary")
13
13
  * - USER_PREFERENCE → UserPreferenceMemoryStrategy
14
14
  * - CUSTOM → CustomMemoryStrategy
15
+ * - EPISODIC → EpisodicMemoryStrategy
15
16
  * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-bedrockagentcore-memory-memorystrategy.html
16
17
  */
17
- exports.MemoryStrategyTypeSchema = zod_1.z.enum(['SEMANTIC', 'SUMMARIZATION', 'USER_PREFERENCE', 'CUSTOM']);
18
+ exports.MemoryStrategyTypeSchema = zod_1.z.enum(['SEMANTIC', 'SUMMARIZATION', 'USER_PREFERENCE', 'CUSTOM', 'EPISODIC']);
18
19
  /**
19
20
  * Memory strategy name validation.
20
21
  * Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$
@@ -28,6 +29,12 @@ exports.MemoryStrategyNameSchema = zod_1.z
28
29
  /**
29
30
  * Memory strategy configuration.
30
31
  * Each memory can have multiple strategies with optional namespace scoping.
32
+ *
33
+ * Field naming:
34
+ * - `namespaceTemplates` / `reflectionNamespaceTemplates` are the preferred field names.
35
+ * - `namespaces` / `reflectionNamespaces` are deprecated aliases retained for backward
36
+ * compatibility. When both the deprecated and preferred form are supplied for the same
37
+ * concept, the preferred form wins.
31
38
  */
32
39
  exports.MemoryStrategySchema = zod_1.z.object({
33
40
  /** Strategy type */
@@ -36,7 +43,30 @@ exports.MemoryStrategySchema = zod_1.z.object({
36
43
  name: exports.MemoryStrategyNameSchema.optional(),
37
44
  /** Optional description */
38
45
  description: zod_1.z.string().optional(),
39
- /** Optional namespaces for scoping memory access */
46
+ /** Optional namespace templates for scoping memory access */
47
+ namespaceTemplates: zod_1.z.array(zod_1.z.string()).optional(),
48
+ /** @deprecated Use `namespaceTemplates` instead. */
40
49
  namespaces: zod_1.z.array(zod_1.z.string()).optional(),
50
+ /** Reflection namespace templates for EPISODIC strategy */
51
+ reflectionNamespaceTemplates: zod_1.z.array(zod_1.z.string()).optional(),
52
+ /** @deprecated Use `reflectionNamespaceTemplates` instead. */
53
+ reflectionNamespaces: zod_1.z.array(zod_1.z.string()).optional(),
54
+ });
55
+ // ============================================================================
56
+ // Indexed Keys
57
+ // ============================================================================
58
+ /**
59
+ * Supported metadata value types for indexed keys.
60
+ * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-bedrockagentcore-memory-indexedkey.html
61
+ */
62
+ exports.IndexedKeyTypeSchema = zod_1.z.enum(['STRING', 'STRINGLIST', 'NUMBER']);
63
+ exports.IndexedKeySchema = zod_1.z.object({
64
+ key: zod_1.z
65
+ .string()
66
+ .min(1)
67
+ .max(128)
68
+ .regex(/^[a-zA-Z0-9\s._:/=+@-]+$/, 'Must contain only alphanumeric characters, whitespace, or the symbols . _ : / = + @ -')
69
+ .refine(s => s.trim().length > 0, 'Key cannot be only whitespace'),
70
+ type: exports.IndexedKeyTypeSchema,
41
71
  });
42
72
  //# sourceMappingURL=memory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/memory.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E;;;;;;;;GAQG;AACU,QAAA,wBAAwB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC;AAG3G;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,OAAC;KACtC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAEJ;;;GAGG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,oBAAoB;IACpB,IAAI,EAAE,gCAAwB;IAC9B,4CAA4C;IAC5C,IAAI,EAAE,gCAAwB,CAAC,QAAQ,EAAE;IACzC,2BAA2B;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,oDAAoD;IACpD,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/memory.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E;;;;;;;;;GASG;AACU,QAAA,wBAAwB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;AAGvH;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,OAAC;KACtC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAEJ;;;;;;;;;GASG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,oBAAoB;IACpB,IAAI,EAAE,gCAAwB;IAC9B,4CAA4C;IAC5C,IAAI,EAAE,gCAAwB,CAAC,QAAQ,EAAE;IACzC,2BAA2B;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,6DAA6D;IAC7D,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,oDAAoD;IACpD,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,2DAA2D;IAC3D,4BAA4B,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5D,8DAA8D;IAC9D,oBAAoB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAIH,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E;;;GAGG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGlE,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,GAAG,CAAC;SACR,KAAK,CACJ,0BAA0B,EAC1B,uFAAuF,CACxF;SACA,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,+BAA+B,CAAC;IACpE,IAAI,EAAE,4BAAoB;CAC3B,CAAC,CAAC"}
@@ -1,13 +1,32 @@
1
1
  import { z } from 'zod';
2
2
  export declare const OnlineEvaluationConfigNameSchema: z.ZodString;
3
+ export declare const ClusteringConfigSchema: z.ZodObject<{
4
+ frequencies: z.ZodArray<z.ZodEnum<{
5
+ DAILY: "DAILY";
6
+ WEEKLY: "WEEKLY";
7
+ MONTHLY: "MONTHLY";
8
+ }>>;
9
+ }, z.core.$strip>;
3
10
  export declare const OnlineEvaluationConfigSchema: z.ZodObject<{
4
- type: z.ZodLiteral<"OnlineEvaluationConfig">;
5
11
  name: z.ZodString;
6
- agent: z.ZodString;
7
- evaluators: z.ZodArray<z.ZodString>;
12
+ agent: z.ZodOptional<z.ZodString>;
13
+ endpoint: z.ZodOptional<z.ZodString>;
14
+ logGroupNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ serviceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ evaluators: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ insights: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ clusteringConfig: z.ZodOptional<z.ZodObject<{
19
+ frequencies: z.ZodArray<z.ZodEnum<{
20
+ DAILY: "DAILY";
21
+ WEEKLY: "WEEKLY";
22
+ MONTHLY: "MONTHLY";
23
+ }>>;
24
+ }, z.core.$strip>>;
8
25
  samplingRate: z.ZodNumber;
9
26
  description: z.ZodOptional<z.ZodString>;
27
+ sessionTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
10
28
  enableOnCreate: z.ZodOptional<z.ZodBoolean>;
29
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
30
  }, z.core.$strip>;
12
31
  export type OnlineEvaluationConfig = z.infer<typeof OnlineEvaluationConfigSchema>;
13
32
  //# sourceMappingURL=online-evaluation-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"online-evaluation-config.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/online-evaluation-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC,aAO1C,CAAC;AAEJ,eAAO,MAAM,4BAA4B;;;;;;;;iBAavC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"online-evaluation-config.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/online-evaluation-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC,aAO1C,CAAC;AAEJ,eAAO,MAAM,sBAAsB;;;;;;iBAKjC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;iBAgDtC,CAAC;AAEJ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OnlineEvaluationConfigSchema = exports.OnlineEvaluationConfigNameSchema = void 0;
3
+ exports.OnlineEvaluationConfigSchema = exports.ClusteringConfigSchema = exports.OnlineEvaluationConfigNameSchema = void 0;
4
+ const tags_1 = require("./tags");
4
5
  const zod_1 = require("zod");
5
6
  // ============================================================================
6
7
  // Online Evaluation Config Types
@@ -10,18 +11,56 @@ exports.OnlineEvaluationConfigNameSchema = zod_1.z
10
11
  .min(1, 'Name is required')
11
12
  .max(48)
12
13
  .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)');
13
- exports.OnlineEvaluationConfigSchema = zod_1.z.object({
14
- type: zod_1.z.literal('OnlineEvaluationConfig'),
14
+ exports.ClusteringConfigSchema = zod_1.z.object({
15
+ frequencies: zod_1.z
16
+ .array(zod_1.z.enum(['DAILY', 'WEEKLY', 'MONTHLY']))
17
+ .min(1)
18
+ .max(3),
19
+ });
20
+ exports.OnlineEvaluationConfigSchema = zod_1.z
21
+ .object({
15
22
  name: exports.OnlineEvaluationConfigNameSchema,
16
- /** Agent name to monitor (must match a project agent) */
17
- agent: zod_1.z.string().min(1, 'Agent name is required'),
23
+ /** Agent name to monitor (must match a project agent). Required for managed AgentCore agents. */
24
+ agent: zod_1.z.string().min(1, 'Agent name is required').optional(),
25
+ /** Optional runtime endpoint name to scope monitoring to a specific endpoint */
26
+ endpoint: zod_1.z.string().min(1).optional(),
27
+ /** CloudWatch log group names for custom/3rd-party agents (1-5 entries) */
28
+ logGroupNames: zod_1.z.array(zod_1.z.string().min(1)).min(1).max(5).optional(),
29
+ /** Service names to filter traces for custom/3rd-party agents */
30
+ serviceNames: zod_1.z.array(zod_1.z.string().min(1)).min(1).optional(),
18
31
  /** Evaluator names (custom), Builtin.* IDs, or evaluator ARNs */
19
- evaluators: zod_1.z.array(zod_1.z.string().min(1)).min(1, 'At least one evaluator is required'),
32
+ evaluators: zod_1.z.array(zod_1.z.string().min(1)).optional(),
33
+ /** Insight IDs to enable */
34
+ insights: zod_1.z.array(zod_1.z.string().min(1)).optional(),
35
+ /** Clustering configuration for insights */
36
+ clusteringConfig: exports.ClusteringConfigSchema.optional(),
20
37
  /** Sampling rate as a percentage (0.01 to 100) */
21
38
  samplingRate: zod_1.z.number().min(0.01).max(100),
22
39
  /** Optional description */
23
40
  description: zod_1.z.string().max(200).optional(),
41
+ /** Session idle timeout in minutes (1-1440). Default: 5 */
42
+ sessionTimeoutMinutes: zod_1.z.number().int().min(1).max(1440).optional(),
24
43
  /** Whether to enable evaluation immediately after deploy */
25
44
  enableOnCreate: zod_1.z.boolean().optional(),
45
+ tags: tags_1.TagsSchema.optional(),
46
+ })
47
+ .refine(data => data.agent ?? data.logGroupNames, {
48
+ message: 'Either "agent" or "logGroupNames" must be provided',
49
+ })
50
+ .refine(data => !(data.agent && data.logGroupNames), {
51
+ message: '"agent" and "logGroupNames" are mutually exclusive',
52
+ })
53
+ .refine(data => !data.endpoint || data.agent, {
54
+ message: '"endpoint" requires "agent"',
55
+ })
56
+ .refine(data => !data.serviceNames || data.logGroupNames, {
57
+ message: '"serviceNames" requires "logGroupNames"',
58
+ })
59
+ .refine(data => {
60
+ const hasEvaluators = (data.evaluators?.length ?? 0) > 0;
61
+ const hasInsights = (data.insights?.length ?? 0) > 0;
62
+ return hasEvaluators || hasInsights;
63
+ }, {
64
+ message: 'At least one of evaluators or insights must be non-empty',
26
65
  });
27
66
  //# sourceMappingURL=online-evaluation-config.js.map