@aws/agentcore 1.0.0-preview.13 → 1.0.0-preview.14

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 (91) hide show
  1. package/README.md +31 -17
  2. package/dist/agent-inspector/index.css +1 -1
  3. package/dist/agent-inspector/index.js +90 -85
  4. package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +966 -106
  5. package/dist/assets/agents/AGENTS.md +14 -0
  6. package/dist/assets/cdk/bin/cdk.ts +42 -20
  7. package/dist/assets/cdk/lib/cdk-stack.ts +19 -14
  8. package/dist/assets/cdk/test/cdk.test.ts +2 -1
  9. package/dist/assets/container/python/Dockerfile +4 -0
  10. package/dist/assets/python/a2a/strands/capabilities/memory/session.py +4 -1
  11. package/dist/assets/python/agui/strands/capabilities/memory/session.py +4 -1
  12. package/dist/assets/python/http/googleadk/base/mcp_client/client.py +7 -7
  13. package/dist/assets/python/http/googleadk/base/pyproject.toml +1 -1
  14. package/dist/assets/python/http/langchain_langgraph/base/mcp_client/client.py +10 -8
  15. package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +1 -1
  16. package/dist/assets/python/http/openaiagents/base/main.py +19 -9
  17. package/dist/assets/python/http/openaiagents/base/mcp_client/client.py +4 -4
  18. package/dist/assets/python/http/openaiagents/base/pyproject.toml +1 -1
  19. package/dist/assets/python/http/strands/base/main.py +438 -27
  20. package/dist/assets/python/http/strands/base/mcp_client/client.py +45 -5
  21. package/dist/assets/python/http/strands/base/model/load.py +3 -3
  22. package/dist/assets/python/http/strands/base/pyproject.toml +5 -2
  23. package/dist/assets/python/http/strands/base/skills/fetcher.py +279 -0
  24. package/dist/assets/python/http/strands/capabilities/execution-limits/hooks/execution_limits.py +54 -0
  25. package/dist/assets/python/http/strands/capabilities/memory/session.py +4 -1
  26. package/dist/cli/index.mjs +1274 -1088
  27. package/dist/lib/errors/types.d.ts +18 -0
  28. package/dist/lib/errors/types.d.ts.map +1 -1
  29. package/dist/lib/errors/types.js +28 -1
  30. package/dist/lib/errors/types.js.map +1 -1
  31. package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
  32. package/dist/lib/schemas/io/config-io.js +0 -2
  33. package/dist/lib/schemas/io/config-io.js.map +1 -1
  34. package/dist/schema/constants.d.ts +20 -0
  35. package/dist/schema/constants.d.ts.map +1 -1
  36. package/dist/schema/constants.js +25 -1
  37. package/dist/schema/constants.js.map +1 -1
  38. package/dist/schema/schemas/agent-env.d.ts +35 -0
  39. package/dist/schema/schemas/agent-env.d.ts.map +1 -1
  40. package/dist/schema/schemas/agentcore-project.d.ts +184 -25
  41. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
  42. package/dist/schema/schemas/agentcore-project.js +81 -31
  43. package/dist/schema/schemas/agentcore-project.js.map +1 -1
  44. package/dist/schema/schemas/auth.d.ts +175 -0
  45. package/dist/schema/schemas/auth.d.ts.map +1 -1
  46. package/dist/schema/schemas/auth.js +126 -3
  47. package/dist/schema/schemas/auth.js.map +1 -1
  48. package/dist/schema/schemas/deployed-state.d.ts +140 -46
  49. package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
  50. package/dist/schema/schemas/deployed-state.js +39 -14
  51. package/dist/schema/schemas/deployed-state.js.map +1 -1
  52. package/dist/schema/schemas/mcp-defs.d.ts +2 -1
  53. package/dist/schema/schemas/mcp-defs.d.ts.map +1 -1
  54. package/dist/schema/schemas/mcp-defs.js +3 -2
  55. package/dist/schema/schemas/mcp-defs.js.map +1 -1
  56. package/dist/schema/schemas/mcp.d.ts +186 -0
  57. package/dist/schema/schemas/mcp.d.ts.map +1 -1
  58. package/dist/schema/schemas/mcp.js +479 -4
  59. package/dist/schema/schemas/mcp.js.map +1 -1
  60. package/dist/schema/schemas/primitives/ab-test.d.ts +0 -6
  61. package/dist/schema/schemas/primitives/ab-test.d.ts.map +1 -1
  62. package/dist/schema/schemas/primitives/ab-test.js +0 -2
  63. package/dist/schema/schemas/primitives/ab-test.js.map +1 -1
  64. package/dist/schema/schemas/primitives/harness.d.ts +209 -11
  65. package/dist/schema/schemas/primitives/harness.d.ts.map +1 -1
  66. package/dist/schema/schemas/primitives/harness.js +268 -21
  67. package/dist/schema/schemas/primitives/harness.js.map +1 -1
  68. package/dist/schema/schemas/primitives/index.d.ts +6 -8
  69. package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
  70. package/dist/schema/schemas/primitives/index.js +6 -5
  71. package/dist/schema/schemas/primitives/index.js.map +1 -1
  72. package/dist/schema/schemas/primitives/knowledge-base.d.ts +104 -0
  73. package/dist/schema/schemas/primitives/knowledge-base.d.ts.map +1 -0
  74. package/dist/schema/schemas/primitives/knowledge-base.js +99 -0
  75. package/dist/schema/schemas/primitives/knowledge-base.js.map +1 -0
  76. package/dist/schema/schemas/primitives/online-eval-config.d.ts +20 -2
  77. package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +1 -1
  78. package/dist/schema/schemas/primitives/online-eval-config.js +43 -5
  79. package/dist/schema/schemas/primitives/online-eval-config.js.map +1 -1
  80. package/dist/schema/schemas/primitives/policy.d.ts +26 -0
  81. package/dist/schema/schemas/primitives/policy.d.ts.map +1 -1
  82. package/dist/schema/schemas/primitives/policy.js +5 -1
  83. package/dist/schema/schemas/primitives/policy.js.map +1 -1
  84. package/npm-shrinkwrap.json +195 -330
  85. package/package.json +10 -8
  86. package/scripts/bundle.mjs +51 -0
  87. package/scripts/run-e2e-local.sh +40 -8
  88. package/dist/schema/schemas/primitives/http-gateway.d.ts +0 -21
  89. package/dist/schema/schemas/primitives/http-gateway.d.ts.map +0 -1
  90. package/dist/schema/schemas/primitives/http-gateway.js +0 -34
  91. package/dist/schema/schemas/primitives/http-gateway.js.map +0 -1
@@ -17,8 +17,8 @@ export { ConfigBundleSchema };
17
17
  export type { ComponentConfiguration, ComponentConfigurationMap, ConfigBundle } from './primitives/config-bundle';
18
18
  export { ConfigBundleNameSchema, ComponentConfigurationMapSchema } from './primitives/config-bundle';
19
19
  export { PolicyEngineSchema };
20
- export type { Policy, PolicyEngine, ValidationMode } from './primitives/policy';
21
- export { PolicyEngineNameSchema, PolicyNameSchema, PolicySchema, ValidationModeSchema } from './primitives/policy';
20
+ export type { AuthorizationPhase, EnforcementMode, Policy, PolicyEngine, ValidationMode } from './primitives/policy';
21
+ export { AuthorizationPhaseSchema, EnforcementModeSchema, PolicyEngineNameSchema, PolicyNameSchema, PolicySchema, ValidationModeSchema, } from './primitives/policy';
22
22
  export { TagsSchema };
23
23
  export type { Tags } from './primitives/tags';
24
24
  export { DatasetSchema };
@@ -26,10 +26,10 @@ export { DatasetNameSchema, DatasetSchemaTypeSchema } from './primitives/dataset
26
26
  export type { Dataset, DatasetSchemaType } from './primitives/dataset';
27
27
  export type { ABTestMode, TargetRef, GatewayFilter, PerVariantOnlineEvaluationConfig } from './primitives/ab-test';
28
28
  export { ABTestModeSchema, TargetRefSchema, GatewayFilterSchema } from './primitives/ab-test';
29
- export type { HttpGatewayTarget } from './primitives/http-gateway';
30
- export { HttpGatewayTargetSchema } from './primitives/http-gateway';
31
- export type { BedrockApiFormat, HarnessApiFormat, HarnessGatewayOutboundAuth, HarnessMemoryRef, HarnessModel, HarnessModelProvider, HarnessSpec, OpenAiApiFormat, } from './primitives/harness';
32
- export { BedrockApiFormatSchema, HarnessApiFormatSchema, OpenAiApiFormatSchema, GatewayOAuthGrantTypeSchema, HarnessGatewayOutboundAuthSchema, HarnessModelProviderSchema, HarnessNameSchema, HarnessSpecSchema, HarnessToolTypeSchema, validateApiFormat, } from './primitives/harness';
29
+ export type { BedrockApiFormat, HarnessApiFormat, HarnessGatewayOutboundAuth, HarnessMemoryRef, HarnessModel, HarnessModelProvider, HarnessSpec, ManagedMemoryStrategy, OpenAiApiFormat, } from './primitives/harness';
30
+ export { BedrockApiFormatSchema, HarnessApiFormatSchema, OpenAiApiFormatSchema, GatewayOAuthGrantTypeSchema, HarnessGatewayOutboundAuthSchema, HarnessModelProviderSchema, HarnessNameSchema, HarnessSpecSchema, HarnessToolTypeSchema, ManagedMemoryStrategySchema, validateApiFormat, } from './primitives/harness';
31
+ export type { KnowledgeBase, DataSource, S3DataSource, ConnectorDataSourceType, ConnectorFileDataSource, } from './primitives/knowledge-base';
32
+ export { KnowledgeBaseNameSchema, KnowledgeBaseSchema, S3DataSourceSchema, DataSourceSchema, ConnectorDataSourceTypeSchema, ConnectorFileDataSourceSchema, } from './primitives/knowledge-base';
33
33
  export { DEFAULT_AUTO_PAYMENT, DEFAULT_SPEND_LIMIT, PaymentManagerSchema, PaymentManagerNameSchema, PaymentConnectorSchema, PaymentConnectorNameSchema, PaymentProviderSchema, PaymentAuthorizerTypeSchema, };
34
34
  export type { PaymentManager, PaymentConnector, PaymentProvider, PaymentAuthorizerType } from './primitives/payment';
35
35
  export declare const ManagedBySchema: z.ZodDefault<z.ZodEnum<{
@@ -319,6 +319,41 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
319
319
  }, z.core.$strip>;
320
320
  }, z.core.$strip>;
321
321
  }, z.core.$strict>>>;
322
+ privateEndpoint: z.ZodOptional<z.ZodObject<{
323
+ selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
324
+ resourceConfigurationIdentifier: z.ZodString;
325
+ }, z.core.$strict>>;
326
+ managedVpcResource: z.ZodOptional<z.ZodObject<{
327
+ vpcIdentifier: z.ZodString;
328
+ subnetIds: z.ZodArray<z.ZodString>;
329
+ endpointIpAddressType: z.ZodEnum<{
330
+ IPV4: "IPV4";
331
+ IPV6: "IPV6";
332
+ }>;
333
+ securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
334
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
335
+ routingDomain: z.ZodOptional<z.ZodString>;
336
+ }, z.core.$strict>>;
337
+ }, z.core.$strict>>;
338
+ privateEndpointOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
339
+ domain: z.ZodString;
340
+ privateEndpoint: z.ZodObject<{
341
+ selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
342
+ resourceConfigurationIdentifier: z.ZodString;
343
+ }, z.core.$strict>>;
344
+ managedVpcResource: z.ZodOptional<z.ZodObject<{
345
+ vpcIdentifier: z.ZodString;
346
+ subnetIds: z.ZodArray<z.ZodString>;
347
+ endpointIpAddressType: z.ZodEnum<{
348
+ IPV4: "IPV4";
349
+ IPV6: "IPV6";
350
+ }>;
351
+ securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
352
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
353
+ routingDomain: z.ZodOptional<z.ZodString>;
354
+ }, z.core.$strict>>;
355
+ }, z.core.$strict>;
356
+ }, z.core.$strict>>>;
322
357
  }, z.core.$strict>>;
323
358
  }, z.core.$strip>>;
324
359
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -389,6 +424,25 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
389
424
  }, z.core.$strip>>;
390
425
  }, z.core.$strip>>;
391
426
  }, z.core.$strip>>>;
427
+ knowledgeBases: z.ZodDefault<z.ZodArray<z.ZodObject<{
428
+ type: z.ZodDefault<z.ZodLiteral<"AgentCoreKnowledgeBase">>;
429
+ name: z.ZodString;
430
+ description: z.ZodOptional<z.ZodString>;
431
+ dataSources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
432
+ type: z.ZodLiteral<"S3">;
433
+ uri: z.ZodString;
434
+ }, z.core.$strict>, z.ZodObject<{
435
+ type: z.ZodEnum<{
436
+ WEB: "WEB";
437
+ CONFLUENCE: "CONFLUENCE";
438
+ SHAREPOINT: "SHAREPOINT";
439
+ ONEDRIVE: "ONEDRIVE";
440
+ GOOGLEDRIVE: "GOOGLEDRIVE";
441
+ }>;
442
+ connectorConfigFile: z.ZodString;
443
+ }, z.core.$strict>], "type">>;
444
+ gateway: z.ZodOptional<z.ZodString>;
445
+ }, z.core.$strict>>>;
392
446
  credentials: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
393
447
  authorizerType: z.ZodLiteral<"ApiKeyCredentialProvider">;
394
448
  name: z.ZodString;
@@ -452,9 +506,19 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
452
506
  }, z.core.$strip>>>;
453
507
  onlineEvalConfigs: z.ZodDefault<z.ZodArray<z.ZodObject<{
454
508
  name: z.ZodString;
455
- agent: z.ZodString;
509
+ agent: z.ZodOptional<z.ZodString>;
456
510
  endpoint: z.ZodOptional<z.ZodString>;
457
- evaluators: z.ZodArray<z.ZodString>;
511
+ logGroupNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
512
+ serviceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
513
+ evaluators: z.ZodOptional<z.ZodArray<z.ZodString>>;
514
+ insights: z.ZodOptional<z.ZodArray<z.ZodString>>;
515
+ clusteringConfig: z.ZodOptional<z.ZodObject<{
516
+ frequencies: z.ZodArray<z.ZodEnum<{
517
+ DAILY: "DAILY";
518
+ WEEKLY: "WEEKLY";
519
+ MONTHLY: "MONTHLY";
520
+ }>>;
521
+ }, z.core.$strip>>;
458
522
  samplingRate: z.ZodNumber;
459
523
  description: z.ZodOptional<z.ZodString>;
460
524
  enableOnCreate: z.ZodOptional<z.ZodBoolean>;
@@ -463,6 +527,10 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
463
527
  agentCoreGateways: z.ZodDefault<z.ZodArray<z.ZodObject<{
464
528
  name: z.ZodString;
465
529
  resourceName: z.ZodOptional<z.ZodString>;
530
+ protocolType: z.ZodOptional<z.ZodEnum<{
531
+ MCP: "MCP";
532
+ None: "None";
533
+ }>>;
466
534
  description: z.ZodOptional<z.ZodString>;
467
535
  targets: z.ZodArray<z.ZodObject<{
468
536
  name: z.ZodString;
@@ -473,6 +541,10 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
473
541
  smithyModel: "smithyModel";
474
542
  apiGateway: "apiGateway";
475
543
  lambdaFunctionArn: "lambdaFunctionArn";
544
+ httpRuntime: "httpRuntime";
545
+ connector: "connector";
546
+ passthrough: "passthrough";
547
+ webSearch: "webSearch";
476
548
  }>;
477
549
  toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
478
550
  name: z.ZodString;
@@ -550,9 +622,13 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
550
622
  NONE: "NONE";
551
623
  OAUTH: "OAUTH";
552
624
  API_KEY: "API_KEY";
625
+ GATEWAY_IAM_ROLE: "GATEWAY_IAM_ROLE";
626
+ JWT_PASSTHROUGH: "JWT_PASSTHROUGH";
553
627
  }>>;
554
628
  credentialName: z.ZodOptional<z.ZodString>;
555
629
  scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
630
+ service: z.ZodOptional<z.ZodString>;
631
+ region: z.ZodOptional<z.ZodString>;
556
632
  }, z.core.$strict>>;
557
633
  apiGateway: z.ZodOptional<z.ZodObject<{
558
634
  restApiId: z.ZodString;
@@ -600,6 +676,30 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
600
676
  lambdaArn: z.ZodString;
601
677
  toolSchemaFile: z.ZodString;
602
678
  }, z.core.$strict>>;
679
+ httpRuntime: z.ZodOptional<z.ZodObject<{
680
+ runtime: z.ZodString;
681
+ runtimeEndpoint: z.ZodOptional<z.ZodString>;
682
+ }, z.core.$strict>>;
683
+ connectorId: z.ZodOptional<z.ZodEnum<{
684
+ "bedrock-knowledge-bases": "bedrock-knowledge-bases";
685
+ "bedrock-agentic-retrieve": "bedrock-agentic-retrieve";
686
+ }>>;
687
+ knowledgeBaseId: z.ZodOptional<z.ZodString>;
688
+ knowledgeBaseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
689
+ passthrough: z.ZodOptional<z.ZodObject<{
690
+ endpoint: z.ZodString;
691
+ protocolType: z.ZodDefault<z.ZodEnum<{
692
+ MCP: "MCP";
693
+ A2A: "A2A";
694
+ INFERENCE: "INFERENCE";
695
+ CUSTOM: "CUSTOM";
696
+ }>>;
697
+ stickinessConfiguration: z.ZodOptional<z.ZodObject<{
698
+ identifier: z.ZodString;
699
+ timeout: z.ZodOptional<z.ZodNumber>;
700
+ }, z.core.$strict>>;
701
+ }, z.core.$strict>>;
702
+ excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
603
703
  }, z.core.$strict>>;
604
704
  authorizerType: z.ZodDefault<z.ZodEnum<{
605
705
  NONE: "NONE";
@@ -630,6 +730,41 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
630
730
  }, z.core.$strip>;
631
731
  }, z.core.$strip>;
632
732
  }, z.core.$strict>>>;
733
+ privateEndpoint: z.ZodOptional<z.ZodObject<{
734
+ selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
735
+ resourceConfigurationIdentifier: z.ZodString;
736
+ }, z.core.$strict>>;
737
+ managedVpcResource: z.ZodOptional<z.ZodObject<{
738
+ vpcIdentifier: z.ZodString;
739
+ subnetIds: z.ZodArray<z.ZodString>;
740
+ endpointIpAddressType: z.ZodEnum<{
741
+ IPV4: "IPV4";
742
+ IPV6: "IPV6";
743
+ }>;
744
+ securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
745
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
746
+ routingDomain: z.ZodOptional<z.ZodString>;
747
+ }, z.core.$strict>>;
748
+ }, z.core.$strict>>;
749
+ privateEndpointOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
750
+ domain: z.ZodString;
751
+ privateEndpoint: z.ZodObject<{
752
+ selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
753
+ resourceConfigurationIdentifier: z.ZodString;
754
+ }, z.core.$strict>>;
755
+ managedVpcResource: z.ZodOptional<z.ZodObject<{
756
+ vpcIdentifier: z.ZodString;
757
+ subnetIds: z.ZodArray<z.ZodString>;
758
+ endpointIpAddressType: z.ZodEnum<{
759
+ IPV4: "IPV4";
760
+ IPV6: "IPV6";
761
+ }>;
762
+ securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
763
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
764
+ routingDomain: z.ZodOptional<z.ZodString>;
765
+ }, z.core.$strict>>;
766
+ }, z.core.$strict>;
767
+ }, z.core.$strict>>>;
633
768
  }, z.core.$strict>>;
634
769
  }, z.core.$strip>>;
635
770
  enableSemanticSearch: z.ZodDefault<z.ZodBoolean>;
@@ -705,6 +840,10 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
705
840
  smithyModel: "smithyModel";
706
841
  apiGateway: "apiGateway";
707
842
  lambdaFunctionArn: "lambdaFunctionArn";
843
+ httpRuntime: "httpRuntime";
844
+ connector: "connector";
845
+ passthrough: "passthrough";
846
+ webSearch: "webSearch";
708
847
  }>;
709
848
  toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
710
849
  name: z.ZodString;
@@ -782,9 +921,13 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
782
921
  NONE: "NONE";
783
922
  OAUTH: "OAUTH";
784
923
  API_KEY: "API_KEY";
924
+ GATEWAY_IAM_ROLE: "GATEWAY_IAM_ROLE";
925
+ JWT_PASSTHROUGH: "JWT_PASSTHROUGH";
785
926
  }>>;
786
927
  credentialName: z.ZodOptional<z.ZodString>;
787
928
  scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
929
+ service: z.ZodOptional<z.ZodString>;
930
+ region: z.ZodOptional<z.ZodString>;
788
931
  }, z.core.$strict>>;
789
932
  apiGateway: z.ZodOptional<z.ZodObject<{
790
933
  restApiId: z.ZodString;
@@ -832,6 +975,30 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
832
975
  lambdaArn: z.ZodString;
833
976
  toolSchemaFile: z.ZodString;
834
977
  }, z.core.$strict>>;
978
+ httpRuntime: z.ZodOptional<z.ZodObject<{
979
+ runtime: z.ZodString;
980
+ runtimeEndpoint: z.ZodOptional<z.ZodString>;
981
+ }, z.core.$strict>>;
982
+ connectorId: z.ZodOptional<z.ZodEnum<{
983
+ "bedrock-knowledge-bases": "bedrock-knowledge-bases";
984
+ "bedrock-agentic-retrieve": "bedrock-agentic-retrieve";
985
+ }>>;
986
+ knowledgeBaseId: z.ZodOptional<z.ZodString>;
987
+ knowledgeBaseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
988
+ passthrough: z.ZodOptional<z.ZodObject<{
989
+ endpoint: z.ZodString;
990
+ protocolType: z.ZodDefault<z.ZodEnum<{
991
+ MCP: "MCP";
992
+ A2A: "A2A";
993
+ INFERENCE: "INFERENCE";
994
+ CUSTOM: "CUSTOM";
995
+ }>>;
996
+ stickinessConfiguration: z.ZodOptional<z.ZodObject<{
997
+ identifier: z.ZodString;
998
+ timeout: z.ZodOptional<z.ZodNumber>;
999
+ }, z.core.$strict>>;
1000
+ }, z.core.$strict>>;
1001
+ excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
835
1002
  }, z.core.$strict>>>;
836
1003
  policyEngines: z.ZodDefault<z.ZodArray<z.ZodObject<{
837
1004
  name: z.ZodString;
@@ -847,6 +1014,14 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
847
1014
  FAIL_ON_ANY_FINDINGS: "FAIL_ON_ANY_FINDINGS";
848
1015
  IGNORE_ALL_FINDINGS: "IGNORE_ALL_FINDINGS";
849
1016
  }>>;
1017
+ enforcementMode: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
1018
+ LOG_ONLY: "LOG_ONLY";
1019
+ ACTIVE: "ACTIVE";
1020
+ }>>>;
1021
+ authorizationPhase: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1022
+ INITIATE: "INITIATE";
1023
+ RETURN_OUTPUT: "RETURN_OUTPUT";
1024
+ }>>>;
850
1025
  }, z.core.$strip>>>;
851
1026
  }, z.core.$strip>>>;
852
1027
  configBundles: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -901,26 +1076,9 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
901
1076
  gatewayFilter: z.ZodOptional<z.ZodObject<{
902
1077
  targetPaths: z.ZodArray<z.ZodString>;
903
1078
  }, z.core.$strip>>;
904
- trafficAllocationConfig: z.ZodOptional<z.ZodObject<{
905
- routeOnHeader: z.ZodObject<{
906
- headerName: z.ZodString;
907
- }, z.core.$strip>;
908
- }, z.core.$strip>>;
909
- maxDurationDays: z.ZodOptional<z.ZodNumber>;
910
1079
  enableOnCreate: z.ZodOptional<z.ZodBoolean>;
911
1080
  promoted: z.ZodOptional<z.ZodBoolean>;
912
1081
  }, z.core.$strip>>>;
913
- httpGateways: z.ZodDefault<z.ZodArray<z.ZodObject<{
914
- name: z.ZodString;
915
- description: z.ZodOptional<z.ZodString>;
916
- runtimeRef: z.ZodString;
917
- roleArn: z.ZodOptional<z.ZodString>;
918
- targets: z.ZodOptional<z.ZodArray<z.ZodObject<{
919
- name: z.ZodString;
920
- runtimeRef: z.ZodString;
921
- qualifier: z.ZodDefault<z.ZodString>;
922
- }, z.core.$strip>>>;
923
- }, z.core.$strict>>>;
924
1082
  harnesses: z.ZodDefault<z.ZodArray<z.ZodObject<{
925
1083
  name: z.ZodString;
926
1084
  path: z.ZodString;
@@ -939,6 +1097,7 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
939
1097
  }, z.core.$strip>;
940
1098
  kmsKeyArn: z.ZodOptional<z.ZodString>;
941
1099
  }, z.core.$strip>>>;
1100
+ httpGateways: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
942
1101
  payments: z.ZodOptional<z.ZodArray<z.ZodObject<{
943
1102
  name: z.ZodString;
944
1103
  authorizerType: z.ZodDefault<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"agentcore-project.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmUnC,CAAC;AAEL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentCoreGatewaySchema = exports.ManagedBySchema = exports.PaymentAuthorizerTypeSchema = exports.PaymentProviderSchema = exports.PaymentConnectorNameSchema = exports.PaymentConnectorSchema = exports.PaymentManagerNameSchema = exports.PaymentManagerSchema = exports.DEFAULT_SPEND_LIMIT = exports.DEFAULT_AUTO_PAYMENT = exports.validateApiFormat = exports.HarnessToolTypeSchema = exports.HarnessSpecSchema = exports.HarnessNameSchema = exports.HarnessModelProviderSchema = exports.HarnessGatewayOutboundAuthSchema = exports.GatewayOAuthGrantTypeSchema = exports.OpenAiApiFormatSchema = exports.HarnessApiFormatSchema = exports.BedrockApiFormatSchema = exports.HttpGatewayTargetSchema = exports.GatewayFilterSchema = exports.TargetRefSchema = exports.ABTestModeSchema = exports.DatasetSchemaTypeSchema = exports.DatasetNameSchema = exports.DatasetSchema = exports.TagsSchema = exports.ValidationModeSchema = exports.PolicySchema = exports.PolicyNameSchema = exports.PolicyEngineNameSchema = exports.PolicyEngineSchema = exports.ComponentConfigurationMapSchema = exports.ConfigBundleNameSchema = exports.ConfigBundleSchema = exports.isValidKmsKeyArn = exports.KMS_KEY_ARN_PATTERN = exports.EvaluatorNameSchema = exports.isValidBedrockModelId = exports.BedrockModelIdSchema = exports.OnlineEvalConfigNameSchema = exports.OnlineEvalConfigSchema = exports.EvaluationLevelSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = exports.DEFAULT_STRATEGY_NAMESPACES = exports.DEFAULT_STRATEGY_NAMESPACE_TEMPLATES = exports.DEFAULT_EPISODIC_REFLECTION_NAMESPACES = exports.DEFAULT_EPISODIC_REFLECTION_NAMESPACE_TEMPLATES = void 0;
4
- exports.AgentCoreProjectSpecSchema = exports.HarnessRegistryEntrySchema = exports.EvaluatorSchema = exports.EvaluatorTypeSchema = exports.CredentialSchema = exports.PaymentCredentialSchema = exports.OAuthCredentialSchema = exports.ApiKeyCredentialSchema = exports.CredentialTypeSchema = exports.CredentialNameSchema = exports.MemorySchema = exports.IndexedKeySchema = exports.MAX_INDEXED_KEYS = exports.MAX_INDEXED_KEY_NAME_LENGTH = exports.INDEXED_KEY_NAME_PATTERN_MESSAGE = exports.INDEXED_KEY_NAME_PATTERN = exports.IndexedKeyTypeSchema = exports.StreamDeliveryResourcesSchema = exports.StreamContentLevelSchema = exports.MemoryNameSchema = exports.MemoryTypeSchema = exports.ProjectNameSchema = exports.AgentCoreMcpRuntimeToolSchema = exports.AgentCoreGatewayTargetSchema = void 0;
3
+ exports.DEFAULT_SPEND_LIMIT = exports.DEFAULT_AUTO_PAYMENT = exports.ConnectorFileDataSourceSchema = exports.ConnectorDataSourceTypeSchema = exports.DataSourceSchema = exports.S3DataSourceSchema = exports.KnowledgeBaseSchema = exports.KnowledgeBaseNameSchema = exports.validateApiFormat = exports.ManagedMemoryStrategySchema = exports.HarnessToolTypeSchema = exports.HarnessSpecSchema = exports.HarnessNameSchema = exports.HarnessModelProviderSchema = exports.HarnessGatewayOutboundAuthSchema = exports.GatewayOAuthGrantTypeSchema = exports.OpenAiApiFormatSchema = exports.HarnessApiFormatSchema = exports.BedrockApiFormatSchema = exports.GatewayFilterSchema = exports.TargetRefSchema = exports.ABTestModeSchema = exports.DatasetSchemaTypeSchema = exports.DatasetNameSchema = exports.DatasetSchema = exports.TagsSchema = exports.ValidationModeSchema = exports.PolicySchema = exports.PolicyNameSchema = exports.PolicyEngineNameSchema = exports.EnforcementModeSchema = exports.AuthorizationPhaseSchema = exports.PolicyEngineSchema = exports.ComponentConfigurationMapSchema = exports.ConfigBundleNameSchema = exports.ConfigBundleSchema = exports.isValidKmsKeyArn = exports.KMS_KEY_ARN_PATTERN = exports.EvaluatorNameSchema = exports.isValidBedrockModelId = exports.BedrockModelIdSchema = exports.OnlineEvalConfigNameSchema = exports.OnlineEvalConfigSchema = exports.EvaluationLevelSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = exports.DEFAULT_STRATEGY_NAMESPACES = exports.DEFAULT_STRATEGY_NAMESPACE_TEMPLATES = exports.DEFAULT_EPISODIC_REFLECTION_NAMESPACES = exports.DEFAULT_EPISODIC_REFLECTION_NAMESPACE_TEMPLATES = void 0;
4
+ exports.AgentCoreProjectSpecSchema = exports.HarnessRegistryEntrySchema = exports.EvaluatorSchema = exports.EvaluatorTypeSchema = exports.CredentialSchema = exports.PaymentCredentialSchema = exports.OAuthCredentialSchema = exports.ApiKeyCredentialSchema = exports.CredentialTypeSchema = exports.CredentialNameSchema = exports.MemorySchema = exports.IndexedKeySchema = exports.MAX_INDEXED_KEYS = exports.MAX_INDEXED_KEY_NAME_LENGTH = exports.INDEXED_KEY_NAME_PATTERN_MESSAGE = exports.INDEXED_KEY_NAME_PATTERN = exports.IndexedKeyTypeSchema = exports.StreamDeliveryResourcesSchema = exports.StreamContentLevelSchema = exports.MemoryNameSchema = exports.MemoryTypeSchema = exports.ProjectNameSchema = exports.AgentCoreMcpRuntimeToolSchema = exports.AgentCoreGatewayTargetSchema = exports.AgentCoreGatewaySchema = exports.ManagedBySchema = exports.PaymentAuthorizerTypeSchema = exports.PaymentProviderSchema = exports.PaymentConnectorNameSchema = exports.PaymentConnectorSchema = exports.PaymentManagerNameSchema = exports.PaymentManagerSchema = void 0;
5
5
  /**
6
6
  * AgentCore Project Schema - Resource-centric model
7
7
  *
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "DatasetSchema", { enumerable: true, get: functio
21
21
  const evaluator_1 = require("./primitives/evaluator");
22
22
  Object.defineProperty(exports, "EvaluationLevelSchema", { enumerable: true, get: function () { return evaluator_1.EvaluationLevelSchema; } });
23
23
  const harness_1 = require("./primitives/harness");
24
- const http_gateway_1 = require("./primitives/http-gateway");
24
+ const knowledge_base_1 = require("./primitives/knowledge-base");
25
25
  const memory_1 = require("./primitives/memory");
26
26
  Object.defineProperty(exports, "DEFAULT_EPISODIC_REFLECTION_NAMESPACES", { enumerable: true, get: function () { return memory_1.DEFAULT_EPISODIC_REFLECTION_NAMESPACES; } });
27
27
  Object.defineProperty(exports, "DEFAULT_EPISODIC_REFLECTION_NAMESPACE_TEMPLATES", { enumerable: true, get: function () { return memory_1.DEFAULT_EPISODIC_REFLECTION_NAMESPACE_TEMPLATES; } });
@@ -58,6 +58,8 @@ var config_bundle_2 = require("./primitives/config-bundle");
58
58
  Object.defineProperty(exports, "ConfigBundleNameSchema", { enumerable: true, get: function () { return config_bundle_2.ConfigBundleNameSchema; } });
59
59
  Object.defineProperty(exports, "ComponentConfigurationMapSchema", { enumerable: true, get: function () { return config_bundle_2.ComponentConfigurationMapSchema; } });
60
60
  var policy_2 = require("./primitives/policy");
61
+ Object.defineProperty(exports, "AuthorizationPhaseSchema", { enumerable: true, get: function () { return policy_2.AuthorizationPhaseSchema; } });
62
+ Object.defineProperty(exports, "EnforcementModeSchema", { enumerable: true, get: function () { return policy_2.EnforcementModeSchema; } });
61
63
  Object.defineProperty(exports, "PolicyEngineNameSchema", { enumerable: true, get: function () { return policy_2.PolicyEngineNameSchema; } });
62
64
  Object.defineProperty(exports, "PolicyNameSchema", { enumerable: true, get: function () { return policy_2.PolicyNameSchema; } });
63
65
  Object.defineProperty(exports, "PolicySchema", { enumerable: true, get: function () { return policy_2.PolicySchema; } });
@@ -69,8 +71,6 @@ var ab_test_2 = require("./primitives/ab-test");
69
71
  Object.defineProperty(exports, "ABTestModeSchema", { enumerable: true, get: function () { return ab_test_2.ABTestModeSchema; } });
70
72
  Object.defineProperty(exports, "TargetRefSchema", { enumerable: true, get: function () { return ab_test_2.TargetRefSchema; } });
71
73
  Object.defineProperty(exports, "GatewayFilterSchema", { enumerable: true, get: function () { return ab_test_2.GatewayFilterSchema; } });
72
- var http_gateway_2 = require("./primitives/http-gateway");
73
- Object.defineProperty(exports, "HttpGatewayTargetSchema", { enumerable: true, get: function () { return http_gateway_2.HttpGatewayTargetSchema; } });
74
74
  var harness_2 = require("./primitives/harness");
75
75
  Object.defineProperty(exports, "BedrockApiFormatSchema", { enumerable: true, get: function () { return harness_2.BedrockApiFormatSchema; } });
76
76
  Object.defineProperty(exports, "HarnessApiFormatSchema", { enumerable: true, get: function () { return harness_2.HarnessApiFormatSchema; } });
@@ -81,7 +81,15 @@ Object.defineProperty(exports, "HarnessModelProviderSchema", { enumerable: true,
81
81
  Object.defineProperty(exports, "HarnessNameSchema", { enumerable: true, get: function () { return harness_2.HarnessNameSchema; } });
82
82
  Object.defineProperty(exports, "HarnessSpecSchema", { enumerable: true, get: function () { return harness_2.HarnessSpecSchema; } });
83
83
  Object.defineProperty(exports, "HarnessToolTypeSchema", { enumerable: true, get: function () { return harness_2.HarnessToolTypeSchema; } });
84
+ Object.defineProperty(exports, "ManagedMemoryStrategySchema", { enumerable: true, get: function () { return harness_2.ManagedMemoryStrategySchema; } });
84
85
  Object.defineProperty(exports, "validateApiFormat", { enumerable: true, get: function () { return harness_2.validateApiFormat; } });
86
+ var knowledge_base_2 = require("./primitives/knowledge-base");
87
+ Object.defineProperty(exports, "KnowledgeBaseNameSchema", { enumerable: true, get: function () { return knowledge_base_2.KnowledgeBaseNameSchema; } });
88
+ Object.defineProperty(exports, "KnowledgeBaseSchema", { enumerable: true, get: function () { return knowledge_base_2.KnowledgeBaseSchema; } });
89
+ Object.defineProperty(exports, "S3DataSourceSchema", { enumerable: true, get: function () { return knowledge_base_2.S3DataSourceSchema; } });
90
+ Object.defineProperty(exports, "DataSourceSchema", { enumerable: true, get: function () { return knowledge_base_2.DataSourceSchema; } });
91
+ Object.defineProperty(exports, "ConnectorDataSourceTypeSchema", { enumerable: true, get: function () { return knowledge_base_2.ConnectorDataSourceTypeSchema; } });
92
+ Object.defineProperty(exports, "ConnectorFileDataSourceSchema", { enumerable: true, get: function () { return knowledge_base_2.ConnectorFileDataSourceSchema; } });
85
93
  // ============================================================================
86
94
  // ManagedBy Schema
87
95
  // ============================================================================
@@ -269,6 +277,10 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
269
277
  .array(exports.MemorySchema)
270
278
  .default([])
271
279
  .superRefine((0, zod_util_1.uniqueBy)(memory => memory.name, name => `Duplicate memory name: ${name}`)),
280
+ knowledgeBases: zod_1.z
281
+ .array(knowledge_base_1.KnowledgeBaseSchema)
282
+ .default([])
283
+ .superRefine((0, zod_util_1.uniqueBy)(kb => kb.name, name => `Duplicate knowledge base name: ${name}`)),
272
284
  credentials: zod_1.z
273
285
  .array(exports.CredentialSchema)
274
286
  .default([])
@@ -314,10 +326,6 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
314
326
  .array(ab_test_1.ABTestSchema)
315
327
  .default([])
316
328
  .superRefine((0, zod_util_1.uniqueBy)(test => test.name, name => `Duplicate AB test name: ${name}`)),
317
- httpGateways: zod_1.z
318
- .array(http_gateway_1.HttpGatewaySchema)
319
- .default([])
320
- .superRefine((0, zod_util_1.uniqueBy)(gw => gw.name, name => `Duplicate HTTP gateway name: ${name}`)),
321
329
  harnesses: zod_1.z
322
330
  .array(exports.HarnessRegistryEntrySchema)
323
331
  .default([])
@@ -336,6 +344,10 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
336
344
  seen.add(dataset.name);
337
345
  }
338
346
  }),
347
+ httpGateways: zod_1.z
348
+ .array(zod_1.z.unknown())
349
+ .max(0, '"httpGateways" is deprecated. Migrate to agentCoreGateways with protocolType: "None", or use "agentcore import gateway".')
350
+ .optional(),
339
351
  payments: zod_1.z
340
352
  .array(payment_1.PaymentManagerSchema)
341
353
  .optional()
@@ -350,15 +362,15 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
350
362
  const agentNames = new Set(spec.runtimes.map(a => a.name));
351
363
  const evaluatorNames = new Set(spec.evaluators.map(e => e.name));
352
364
  for (const config of spec.onlineEvalConfigs) {
353
- // Validate agent reference
354
- if (!agentNames.has(config.agent)) {
365
+ // Validate agent reference (only when agent is specified — custom log groups don't need one)
366
+ if (config.agent && !agentNames.has(config.agent)) {
355
367
  ctx.addIssue({
356
368
  code: zod_1.z.ZodIssueCode.custom,
357
369
  message: `Online eval config "${config.name}" references unknown agent "${config.agent}"`,
358
370
  });
359
371
  }
360
372
  // Validate evaluator references
361
- for (const evalName of config.evaluators) {
373
+ for (const evalName of config.evaluators ?? []) {
362
374
  // Skip built-in evaluators and ARN references (externally managed)
363
375
  if (evalName.startsWith(BUILTIN_EVALUATOR_PREFIX) || evalName.startsWith(ARN_PREFIX))
364
376
  continue;
@@ -370,14 +382,29 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
370
382
  }
371
383
  }
372
384
  }
373
- // Validate HTTP gateway runtimeRef references
374
- for (const gw of spec.httpGateways ?? []) {
375
- const runtimeExists = spec.runtimes.some(r => r.name === gw.runtimeRef);
376
- if (!runtimeExists) {
377
- ctx.addIssue({
378
- code: zod_1.z.ZodIssueCode.custom,
379
- message: `HTTP gateway "${gw.name}" references unknown runtime "${gw.runtimeRef}"`,
380
- });
385
+ // Validate httpRuntime target runtime references
386
+ for (const gw of spec.agentCoreGateways ?? []) {
387
+ for (const target of gw.targets) {
388
+ if (target.targetType === 'httpRuntime') {
389
+ if (target.httpRuntime?.runtime) {
390
+ const runtimeExists = spec.runtimes.some(r => r.name === target.httpRuntime.runtime);
391
+ if (!runtimeExists) {
392
+ ctx.addIssue({
393
+ code: zod_1.z.ZodIssueCode.custom,
394
+ message: `Gateway "${gw.name}" target "${target.name}" references unknown runtime "${target.httpRuntime.runtime}". Check spec.runtimes.`,
395
+ });
396
+ }
397
+ else if (target.httpRuntime.runtimeEndpoint && target.httpRuntime.runtimeEndpoint !== 'DEFAULT') {
398
+ const runtime = spec.runtimes.find(r => r.name === target.httpRuntime.runtime);
399
+ if (runtime && !runtime.endpoints?.[target.httpRuntime.runtimeEndpoint]) {
400
+ ctx.addIssue({
401
+ code: zod_1.z.ZodIssueCode.custom,
402
+ message: `Gateway "${gw.name}" target "${target.name}" references endpoint "${target.httpRuntime.runtimeEndpoint}" which does not exist on runtime "${target.httpRuntime.runtime}".`,
403
+ });
404
+ }
405
+ }
406
+ }
407
+ }
381
408
  }
382
409
  }
383
410
  // Validate AB test gateway references
@@ -387,16 +414,16 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
387
414
  const match = /^\{\{gateway:(.+)\}\}$/.exec(gwField);
388
415
  if (match) {
389
416
  const gwName = match[1];
390
- const gwExists = (spec.httpGateways ?? []).some(gw => gw.name === gwName);
417
+ const gwExists = (spec.agentCoreGateways ?? []).some(gw => gw.name === gwName);
391
418
  if (!gwExists) {
392
419
  ctx.addIssue({
393
420
  code: zod_1.z.ZodIssueCode.custom,
394
- message: `AB test "${test.name}" references gateway "${gwName}" which does not exist in httpGateways`,
421
+ message: `AB test "${test.name}" references gateway "${gwName}" which does not exist in agentCoreGateways`,
395
422
  });
396
423
  }
397
424
  // For target-based AB tests, validate target names exist in the gateway's targets array
398
425
  if (test.mode === 'target-based') {
399
- const gw = (spec.httpGateways ?? []).find(g => g.name === gwName);
426
+ const gw = (spec.agentCoreGateways ?? []).find(g => g.name === gwName);
400
427
  if (gw) {
401
428
  const gwTargetNames = new Set((gw.targets ?? []).map(t => t.name));
402
429
  for (const variant of test.variants) {
@@ -413,23 +440,46 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
413
440
  }
414
441
  }
415
442
  }
416
- // Validate HTTP gateway target runtimeRef and qualifier references
417
- for (const gw of spec.httpGateways ?? []) {
418
- for (const target of gw.targets ?? []) {
419
- const runtime = spec.runtimes.find(r => r.name === target.runtimeRef);
420
- if (!runtime) {
443
+ // Connector gateway target KB reference: a project KB name (entry in
444
+ // knowledgeBases[]) or a literal 10-char KB ID (an external KB this
445
+ // project does not own). Real KB IDs match ^[A-Z0-9]{10}$; KB names
446
+ // start with a letter and may include dashes/underscores. The two
447
+ // formats can never collide.
448
+ const knowledgeBaseNames = new Set((spec.knowledgeBases ?? []).map(kb => kb.name));
449
+ const REAL_KB_ID_PATTERN = /^[A-Z0-9]{10}$/;
450
+ const validateKbReference = (target, value, fieldLabel) => {
451
+ const looksLikeRealId = REAL_KB_ID_PATTERN.test(value);
452
+ if (looksLikeRealId) {
453
+ if (knowledgeBaseNames.has(value)) {
421
454
  ctx.addIssue({
422
455
  code: zod_1.z.ZodIssueCode.custom,
423
- message: `HTTP gateway "${gw.name}" target "${target.name}" references unknown runtime "${target.runtimeRef}"`,
456
+ message: `Connector target "${target.name}" ${fieldLabel} "${value}" looks like a literal KB ID but also matches a knowledgeBases[] entry. Rename the knowledge base or reference it by its project name instead.`,
424
457
  });
425
458
  }
426
- else if (target.qualifier && target.qualifier !== 'DEFAULT' && !runtime.endpoints?.[target.qualifier]) {
459
+ }
460
+ else {
461
+ if (!knowledgeBaseNames.has(value)) {
427
462
  ctx.addIssue({
428
463
  code: zod_1.z.ZodIssueCode.custom,
429
- message: `HTTP gateway "${gw.name}" target "${target.name}" references qualifier "${target.qualifier}" which is not an endpoint on runtime "${target.runtimeRef}"`,
464
+ message: `Connector target "${target.name}" ${fieldLabel} "${value}" does not match any knowledgeBases[] entry. To wire an external KB that this project does not own, use its 10-character KB ID.`,
430
465
  });
431
466
  }
432
467
  }
468
+ };
469
+ for (const gateway of spec.agentCoreGateways ?? []) {
470
+ for (const target of gateway.targets ?? []) {
471
+ if (target.targetType !== 'connector')
472
+ continue;
473
+ if (target.connectorId !== 'bedrock-knowledge-bases' && target.connectorId !== 'bedrock-agentic-retrieve') {
474
+ continue;
475
+ }
476
+ if (target.knowledgeBaseId) {
477
+ validateKbReference(target, target.knowledgeBaseId, 'knowledgeBaseId');
478
+ }
479
+ for (const value of target.knowledgeBaseIds ?? []) {
480
+ validateKbReference(target, value, 'knowledgeBaseIds[]');
481
+ }
482
+ }
433
483
  }
434
484
  // Validate payment connector credential references
435
485
  for (const payment of spec.payments ?? []) {