@aws/agentcore 0.3.0-preview.7.0 → 0.3.0-preview.8.0
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.
- package/README.md +4 -6
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +18 -8
- package/dist/assets/agents/AGENTS.md +1 -1
- package/dist/assets/cdk/bin/cdk.ts +13 -7
- package/dist/assets/cdk/lib/cdk-stack.ts +1 -0
- package/dist/assets/cdk/test/cdk.test.ts +3 -0
- package/dist/cli/index.mjs +401 -370
- package/dist/lib/constants.d.ts +0 -1
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +0 -1
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/schemas/io/config-io.d.ts +2 -10
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +0 -15
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/lib/schemas/io/path-resolver.d.ts +0 -5
- package/dist/lib/schemas/io/path-resolver.d.ts.map +1 -1
- package/dist/lib/schemas/io/path-resolver.js +0 -6
- package/dist/lib/schemas/io/path-resolver.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +10 -0
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +17 -1
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +381 -1
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +33 -1
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +108 -0
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +2 -0
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +98 -352
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +55 -17
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.d.ts +1 -0
- package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.js +2 -0
- package/dist/schema/schemas/primitives/online-eval-config.js.map +1 -1
- package/dist/schema/schemas/primitives/policy.d.ts +1 -0
- package/dist/schema/schemas/primitives/policy.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/policy.js +2 -0
- package/dist/schema/schemas/primitives/policy.js.map +1 -1
- package/dist/schema/schemas/primitives/tags.d.ts +6 -0
- package/dist/schema/schemas/primitives/tags.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/tags.js +27 -0
- package/dist/schema/schemas/primitives/tags.js.map +1 -0
- package/package.json +2 -2
- package/scripts/check-old-cli.lib.mjs +13 -15
- package/scripts/check-old-cli.mjs +2 -3
|
@@ -15,11 +15,46 @@ export declare const GatewayAuthorizerTypeSchema: z.ZodEnum<{
|
|
|
15
15
|
CUSTOM_JWT: "CUSTOM_JWT";
|
|
16
16
|
}>;
|
|
17
17
|
export type GatewayAuthorizerType = z.infer<typeof GatewayAuthorizerTypeSchema>;
|
|
18
|
+
export declare const ClaimMatchOperatorSchema: z.ZodEnum<{
|
|
19
|
+
EQUALS: "EQUALS";
|
|
20
|
+
CONTAINS: "CONTAINS";
|
|
21
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
22
|
+
}>;
|
|
23
|
+
export type ClaimMatchOperator = z.infer<typeof ClaimMatchOperatorSchema>;
|
|
24
|
+
export declare const ClaimMatchValueSchema: z.ZodObject<{
|
|
25
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
26
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type ClaimMatchValue = z.infer<typeof ClaimMatchValueSchema>;
|
|
29
|
+
export declare const InboundTokenClaimValueTypeSchema: z.ZodEnum<{
|
|
30
|
+
STRING: "STRING";
|
|
31
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
32
|
+
}>;
|
|
33
|
+
export type InboundTokenClaimValueType = z.infer<typeof InboundTokenClaimValueTypeSchema>;
|
|
34
|
+
export declare const CustomClaimValidationSchema: z.ZodObject<{
|
|
35
|
+
inboundTokenClaimName: z.ZodString;
|
|
36
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
37
|
+
STRING: "STRING";
|
|
38
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
39
|
+
}>;
|
|
40
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
41
|
+
claimMatchOperator: z.ZodEnum<{
|
|
42
|
+
EQUALS: "EQUALS";
|
|
43
|
+
CONTAINS: "CONTAINS";
|
|
44
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
45
|
+
}>;
|
|
46
|
+
claimMatchValue: z.ZodObject<{
|
|
47
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
48
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export type CustomClaimValidation = z.infer<typeof CustomClaimValidationSchema>;
|
|
18
53
|
/**
|
|
19
54
|
* Custom JWT authorizer configuration.
|
|
20
55
|
* Used when authorizerType is 'CUSTOM_JWT'.
|
|
21
56
|
*
|
|
22
|
-
* At least one of allowedAudience, allowedClients, or
|
|
57
|
+
* At least one of allowedAudience, allowedClients, allowedScopes, or customClaims
|
|
23
58
|
* must be provided. Only discoveryUrl is unconditionally required.
|
|
24
59
|
*/
|
|
25
60
|
export declare const CustomJwtAuthorizerConfigSchema: z.ZodObject<{
|
|
@@ -27,6 +62,24 @@ export declare const CustomJwtAuthorizerConfigSchema: z.ZodObject<{
|
|
|
27
62
|
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
63
|
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
64
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
customClaims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
+
inboundTokenClaimName: z.ZodString;
|
|
67
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
68
|
+
STRING: "STRING";
|
|
69
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
70
|
+
}>;
|
|
71
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
72
|
+
claimMatchOperator: z.ZodEnum<{
|
|
73
|
+
EQUALS: "EQUALS";
|
|
74
|
+
CONTAINS: "CONTAINS";
|
|
75
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
76
|
+
}>;
|
|
77
|
+
claimMatchValue: z.ZodObject<{
|
|
78
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
79
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strict>>>;
|
|
30
83
|
}, z.core.$strict>;
|
|
31
84
|
export type CustomJwtAuthorizerConfig = z.infer<typeof CustomJwtAuthorizerConfigSchema>;
|
|
32
85
|
/**
|
|
@@ -38,6 +91,24 @@ export declare const GatewayAuthorizerConfigSchema: z.ZodObject<{
|
|
|
38
91
|
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
92
|
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
93
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
+
customClaims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
+
inboundTokenClaimName: z.ZodString;
|
|
96
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
97
|
+
STRING: "STRING";
|
|
98
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
99
|
+
}>;
|
|
100
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
101
|
+
claimMatchOperator: z.ZodEnum<{
|
|
102
|
+
EQUALS: "EQUALS";
|
|
103
|
+
CONTAINS: "CONTAINS";
|
|
104
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
105
|
+
}>;
|
|
106
|
+
claimMatchValue: z.ZodObject<{
|
|
107
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
108
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
}, z.core.$strict>>>;
|
|
41
112
|
}, z.core.$strict>>;
|
|
42
113
|
}, z.core.$strip>;
|
|
43
114
|
export type GatewayAuthorizerConfig = z.infer<typeof GatewayAuthorizerConfigSchema>;
|
|
@@ -722,6 +793,24 @@ export declare const AgentCoreGatewaySchema: z.ZodObject<{
|
|
|
722
793
|
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
723
794
|
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
724
795
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
796
|
+
customClaims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
797
|
+
inboundTokenClaimName: z.ZodString;
|
|
798
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
799
|
+
STRING: "STRING";
|
|
800
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
801
|
+
}>;
|
|
802
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
803
|
+
claimMatchOperator: z.ZodEnum<{
|
|
804
|
+
EQUALS: "EQUALS";
|
|
805
|
+
CONTAINS: "CONTAINS";
|
|
806
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
807
|
+
}>;
|
|
808
|
+
claimMatchValue: z.ZodObject<{
|
|
809
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
810
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
811
|
+
}, z.core.$strip>;
|
|
812
|
+
}, z.core.$strip>;
|
|
813
|
+
}, z.core.$strict>>>;
|
|
725
814
|
}, z.core.$strict>>;
|
|
726
815
|
}, z.core.$strip>>;
|
|
727
816
|
enableSemanticSearch: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -736,6 +825,7 @@ export declare const AgentCoreGatewaySchema: z.ZodObject<{
|
|
|
736
825
|
ENFORCE: "ENFORCE";
|
|
737
826
|
}>;
|
|
738
827
|
}, z.core.$strict>>;
|
|
828
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
739
829
|
}, z.core.$strict>;
|
|
740
830
|
export type AgentCoreGateway = z.infer<typeof AgentCoreGatewaySchema>;
|
|
741
831
|
/**
|
|
@@ -808,357 +898,13 @@ export declare const AgentCoreMcpRuntimeToolSchema: z.ZodObject<{
|
|
|
808
898
|
}, z.core.$strict>;
|
|
809
899
|
export type AgentCoreMcpRuntimeTool = z.infer<typeof AgentCoreMcpRuntimeToolSchema>;
|
|
810
900
|
/**
|
|
811
|
-
*
|
|
901
|
+
* Shape of MCP-related fields within AgentCoreProjectSpec.
|
|
902
|
+
* These fields are now part of agentcore.json (previously in mcp.json).
|
|
812
903
|
*/
|
|
813
|
-
export
|
|
814
|
-
agentCoreGateways:
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
name: z.ZodString;
|
|
819
|
-
targetType: z.ZodEnum<{
|
|
820
|
-
lambda: "lambda";
|
|
821
|
-
mcpServer: "mcpServer";
|
|
822
|
-
openApiSchema: "openApiSchema";
|
|
823
|
-
smithyModel: "smithyModel";
|
|
824
|
-
apiGateway: "apiGateway";
|
|
825
|
-
lambdaFunctionArn: "lambdaFunctionArn";
|
|
826
|
-
}>;
|
|
827
|
-
toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
828
|
-
name: z.ZodString;
|
|
829
|
-
description: z.ZodString;
|
|
830
|
-
inputSchema: z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>;
|
|
831
|
-
outputSchema: z.ZodOptional<z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>>;
|
|
832
|
-
}, z.core.$strict>>>;
|
|
833
|
-
compute: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
834
|
-
host: z.ZodLiteral<"Lambda">;
|
|
835
|
-
implementation: z.ZodObject<{
|
|
836
|
-
language: z.ZodEnum<{
|
|
837
|
-
Python: "Python";
|
|
838
|
-
TypeScript: "TypeScript";
|
|
839
|
-
}>;
|
|
840
|
-
path: z.ZodString;
|
|
841
|
-
handler: z.ZodString;
|
|
842
|
-
}, z.core.$strict>;
|
|
843
|
-
nodeVersion: z.ZodOptional<z.ZodEnum<{
|
|
844
|
-
NODE_18: "NODE_18";
|
|
845
|
-
NODE_20: "NODE_20";
|
|
846
|
-
NODE_22: "NODE_22";
|
|
847
|
-
}>>;
|
|
848
|
-
pythonVersion: z.ZodOptional<z.ZodEnum<{
|
|
849
|
-
PYTHON_3_10: "PYTHON_3_10";
|
|
850
|
-
PYTHON_3_11: "PYTHON_3_11";
|
|
851
|
-
PYTHON_3_12: "PYTHON_3_12";
|
|
852
|
-
PYTHON_3_13: "PYTHON_3_13";
|
|
853
|
-
}>>;
|
|
854
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
855
|
-
memorySize: z.ZodOptional<z.ZodNumber>;
|
|
856
|
-
iamPolicy: z.ZodOptional<z.ZodObject<{
|
|
857
|
-
Version: z.ZodString;
|
|
858
|
-
Statement: z.ZodArray<z.ZodUnknown>;
|
|
859
|
-
}, z.core.$loose>>;
|
|
860
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
861
|
-
host: z.ZodLiteral<"AgentCoreRuntime">;
|
|
862
|
-
implementation: z.ZodObject<{
|
|
863
|
-
language: z.ZodEnum<{
|
|
864
|
-
Python: "Python";
|
|
865
|
-
TypeScript: "TypeScript";
|
|
866
|
-
}>;
|
|
867
|
-
path: z.ZodString;
|
|
868
|
-
handler: z.ZodString;
|
|
869
|
-
}, z.core.$strict>;
|
|
870
|
-
runtime: z.ZodOptional<z.ZodObject<{
|
|
871
|
-
artifact: z.ZodLiteral<"CodeZip">;
|
|
872
|
-
pythonVersion: z.ZodEnum<{
|
|
873
|
-
PYTHON_3_10: "PYTHON_3_10";
|
|
874
|
-
PYTHON_3_11: "PYTHON_3_11";
|
|
875
|
-
PYTHON_3_12: "PYTHON_3_12";
|
|
876
|
-
PYTHON_3_13: "PYTHON_3_13";
|
|
877
|
-
}>;
|
|
878
|
-
name: z.ZodString;
|
|
879
|
-
entrypoint: z.ZodType<FilePath, unknown, z.core.$ZodTypeInternals<FilePath, unknown>>;
|
|
880
|
-
codeLocation: z.ZodType<DirectoryPath, unknown, z.core.$ZodTypeInternals<DirectoryPath, unknown>>;
|
|
881
|
-
instrumentation: z.ZodOptional<z.ZodObject<{
|
|
882
|
-
enableOtel: z.ZodDefault<z.ZodBoolean>;
|
|
883
|
-
}, z.core.$strip>>;
|
|
884
|
-
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
885
|
-
PUBLIC: "PUBLIC";
|
|
886
|
-
VPC: "VPC";
|
|
887
|
-
}>>>;
|
|
888
|
-
description: z.ZodOptional<z.ZodString>;
|
|
889
|
-
}, z.core.$strict>>;
|
|
890
|
-
iamPolicy: z.ZodOptional<z.ZodObject<{
|
|
891
|
-
Version: z.ZodString;
|
|
892
|
-
Statement: z.ZodArray<z.ZodUnknown>;
|
|
893
|
-
}, z.core.$loose>>;
|
|
894
|
-
}, z.core.$strict>], "host">>;
|
|
895
|
-
endpoint: z.ZodOptional<z.ZodString>;
|
|
896
|
-
outboundAuth: z.ZodOptional<z.ZodObject<{
|
|
897
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
898
|
-
NONE: "NONE";
|
|
899
|
-
OAUTH: "OAUTH";
|
|
900
|
-
API_KEY: "API_KEY";
|
|
901
|
-
}>>;
|
|
902
|
-
credentialName: z.ZodOptional<z.ZodString>;
|
|
903
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
904
|
-
}, z.core.$strict>>;
|
|
905
|
-
apiGateway: z.ZodOptional<z.ZodObject<{
|
|
906
|
-
restApiId: z.ZodString;
|
|
907
|
-
stage: z.ZodString;
|
|
908
|
-
apiGatewayToolConfiguration: z.ZodObject<{
|
|
909
|
-
toolFilters: z.ZodArray<z.ZodObject<{
|
|
910
|
-
filterPath: z.ZodString;
|
|
911
|
-
methods: z.ZodArray<z.ZodEnum<{
|
|
912
|
-
GET: "GET";
|
|
913
|
-
POST: "POST";
|
|
914
|
-
PUT: "PUT";
|
|
915
|
-
DELETE: "DELETE";
|
|
916
|
-
PATCH: "PATCH";
|
|
917
|
-
HEAD: "HEAD";
|
|
918
|
-
OPTIONS: "OPTIONS";
|
|
919
|
-
}>>;
|
|
920
|
-
}, z.core.$strict>>;
|
|
921
|
-
toolOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
922
|
-
name: z.ZodString;
|
|
923
|
-
path: z.ZodString;
|
|
924
|
-
method: z.ZodEnum<{
|
|
925
|
-
GET: "GET";
|
|
926
|
-
POST: "POST";
|
|
927
|
-
PUT: "PUT";
|
|
928
|
-
DELETE: "DELETE";
|
|
929
|
-
PATCH: "PATCH";
|
|
930
|
-
HEAD: "HEAD";
|
|
931
|
-
OPTIONS: "OPTIONS";
|
|
932
|
-
}>;
|
|
933
|
-
description: z.ZodOptional<z.ZodString>;
|
|
934
|
-
}, z.core.$strict>>>;
|
|
935
|
-
}, z.core.$strict>;
|
|
936
|
-
}, z.core.$strict>>;
|
|
937
|
-
schemaSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
938
|
-
inline: z.ZodObject<{
|
|
939
|
-
path: z.ZodString;
|
|
940
|
-
}, z.core.$strict>;
|
|
941
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
942
|
-
s3: z.ZodObject<{
|
|
943
|
-
uri: z.ZodString;
|
|
944
|
-
bucketOwnerAccountId: z.ZodOptional<z.ZodString>;
|
|
945
|
-
}, z.core.$strict>;
|
|
946
|
-
}, z.core.$strict>]>>;
|
|
947
|
-
lambdaFunctionArn: z.ZodOptional<z.ZodObject<{
|
|
948
|
-
lambdaArn: z.ZodString;
|
|
949
|
-
toolSchemaFile: z.ZodString;
|
|
950
|
-
}, z.core.$strict>>;
|
|
951
|
-
}, z.core.$strict>>;
|
|
952
|
-
authorizerType: z.ZodDefault<z.ZodEnum<{
|
|
953
|
-
NONE: "NONE";
|
|
954
|
-
AWS_IAM: "AWS_IAM";
|
|
955
|
-
CUSTOM_JWT: "CUSTOM_JWT";
|
|
956
|
-
}>>;
|
|
957
|
-
authorizerConfiguration: z.ZodOptional<z.ZodObject<{
|
|
958
|
-
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
959
|
-
discoveryUrl: z.ZodString;
|
|
960
|
-
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
961
|
-
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
962
|
-
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
963
|
-
}, z.core.$strict>>;
|
|
964
|
-
}, z.core.$strip>>;
|
|
965
|
-
enableSemanticSearch: z.ZodDefault<z.ZodBoolean>;
|
|
966
|
-
exceptionLevel: z.ZodDefault<z.ZodEnum<{
|
|
967
|
-
NONE: "NONE";
|
|
968
|
-
DEBUG: "DEBUG";
|
|
969
|
-
}>>;
|
|
970
|
-
policyEngineConfiguration: z.ZodOptional<z.ZodObject<{
|
|
971
|
-
policyEngineName: z.ZodString;
|
|
972
|
-
mode: z.ZodEnum<{
|
|
973
|
-
LOG_ONLY: "LOG_ONLY";
|
|
974
|
-
ENFORCE: "ENFORCE";
|
|
975
|
-
}>;
|
|
976
|
-
}, z.core.$strict>>;
|
|
977
|
-
}, z.core.$strict>>;
|
|
978
|
-
mcpRuntimeTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
979
|
-
name: z.ZodString;
|
|
980
|
-
toolDefinition: z.ZodObject<{
|
|
981
|
-
name: z.ZodString;
|
|
982
|
-
description: z.ZodString;
|
|
983
|
-
inputSchema: z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>;
|
|
984
|
-
outputSchema: z.ZodOptional<z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>>;
|
|
985
|
-
}, z.core.$strict>;
|
|
986
|
-
compute: z.ZodObject<{
|
|
987
|
-
host: z.ZodLiteral<"AgentCoreRuntime">;
|
|
988
|
-
implementation: z.ZodObject<{
|
|
989
|
-
language: z.ZodEnum<{
|
|
990
|
-
Python: "Python";
|
|
991
|
-
TypeScript: "TypeScript";
|
|
992
|
-
}>;
|
|
993
|
-
path: z.ZodString;
|
|
994
|
-
handler: z.ZodString;
|
|
995
|
-
}, z.core.$strict>;
|
|
996
|
-
runtime: z.ZodOptional<z.ZodObject<{
|
|
997
|
-
artifact: z.ZodLiteral<"CodeZip">;
|
|
998
|
-
pythonVersion: z.ZodEnum<{
|
|
999
|
-
PYTHON_3_10: "PYTHON_3_10";
|
|
1000
|
-
PYTHON_3_11: "PYTHON_3_11";
|
|
1001
|
-
PYTHON_3_12: "PYTHON_3_12";
|
|
1002
|
-
PYTHON_3_13: "PYTHON_3_13";
|
|
1003
|
-
}>;
|
|
1004
|
-
name: z.ZodString;
|
|
1005
|
-
entrypoint: z.ZodType<FilePath, unknown, z.core.$ZodTypeInternals<FilePath, unknown>>;
|
|
1006
|
-
codeLocation: z.ZodType<DirectoryPath, unknown, z.core.$ZodTypeInternals<DirectoryPath, unknown>>;
|
|
1007
|
-
instrumentation: z.ZodOptional<z.ZodObject<{
|
|
1008
|
-
enableOtel: z.ZodDefault<z.ZodBoolean>;
|
|
1009
|
-
}, z.core.$strip>>;
|
|
1010
|
-
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1011
|
-
PUBLIC: "PUBLIC";
|
|
1012
|
-
VPC: "VPC";
|
|
1013
|
-
}>>>;
|
|
1014
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1015
|
-
}, z.core.$strict>>;
|
|
1016
|
-
iamPolicy: z.ZodOptional<z.ZodObject<{
|
|
1017
|
-
Version: z.ZodString;
|
|
1018
|
-
Statement: z.ZodArray<z.ZodUnknown>;
|
|
1019
|
-
}, z.core.$loose>>;
|
|
1020
|
-
}, z.core.$strict>;
|
|
1021
|
-
bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1022
|
-
agentName: z.ZodString;
|
|
1023
|
-
envVarName: z.ZodString;
|
|
1024
|
-
}, z.core.$strict>>>;
|
|
1025
|
-
}, z.core.$strict>>>;
|
|
1026
|
-
unassignedTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1027
|
-
name: z.ZodString;
|
|
1028
|
-
targetType: z.ZodEnum<{
|
|
1029
|
-
lambda: "lambda";
|
|
1030
|
-
mcpServer: "mcpServer";
|
|
1031
|
-
openApiSchema: "openApiSchema";
|
|
1032
|
-
smithyModel: "smithyModel";
|
|
1033
|
-
apiGateway: "apiGateway";
|
|
1034
|
-
lambdaFunctionArn: "lambdaFunctionArn";
|
|
1035
|
-
}>;
|
|
1036
|
-
toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1037
|
-
name: z.ZodString;
|
|
1038
|
-
description: z.ZodString;
|
|
1039
|
-
inputSchema: z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>;
|
|
1040
|
-
outputSchema: z.ZodOptional<z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>>;
|
|
1041
|
-
}, z.core.$strict>>>;
|
|
1042
|
-
compute: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1043
|
-
host: z.ZodLiteral<"Lambda">;
|
|
1044
|
-
implementation: z.ZodObject<{
|
|
1045
|
-
language: z.ZodEnum<{
|
|
1046
|
-
Python: "Python";
|
|
1047
|
-
TypeScript: "TypeScript";
|
|
1048
|
-
}>;
|
|
1049
|
-
path: z.ZodString;
|
|
1050
|
-
handler: z.ZodString;
|
|
1051
|
-
}, z.core.$strict>;
|
|
1052
|
-
nodeVersion: z.ZodOptional<z.ZodEnum<{
|
|
1053
|
-
NODE_18: "NODE_18";
|
|
1054
|
-
NODE_20: "NODE_20";
|
|
1055
|
-
NODE_22: "NODE_22";
|
|
1056
|
-
}>>;
|
|
1057
|
-
pythonVersion: z.ZodOptional<z.ZodEnum<{
|
|
1058
|
-
PYTHON_3_10: "PYTHON_3_10";
|
|
1059
|
-
PYTHON_3_11: "PYTHON_3_11";
|
|
1060
|
-
PYTHON_3_12: "PYTHON_3_12";
|
|
1061
|
-
PYTHON_3_13: "PYTHON_3_13";
|
|
1062
|
-
}>>;
|
|
1063
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1064
|
-
memorySize: z.ZodOptional<z.ZodNumber>;
|
|
1065
|
-
iamPolicy: z.ZodOptional<z.ZodObject<{
|
|
1066
|
-
Version: z.ZodString;
|
|
1067
|
-
Statement: z.ZodArray<z.ZodUnknown>;
|
|
1068
|
-
}, z.core.$loose>>;
|
|
1069
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1070
|
-
host: z.ZodLiteral<"AgentCoreRuntime">;
|
|
1071
|
-
implementation: z.ZodObject<{
|
|
1072
|
-
language: z.ZodEnum<{
|
|
1073
|
-
Python: "Python";
|
|
1074
|
-
TypeScript: "TypeScript";
|
|
1075
|
-
}>;
|
|
1076
|
-
path: z.ZodString;
|
|
1077
|
-
handler: z.ZodString;
|
|
1078
|
-
}, z.core.$strict>;
|
|
1079
|
-
runtime: z.ZodOptional<z.ZodObject<{
|
|
1080
|
-
artifact: z.ZodLiteral<"CodeZip">;
|
|
1081
|
-
pythonVersion: z.ZodEnum<{
|
|
1082
|
-
PYTHON_3_10: "PYTHON_3_10";
|
|
1083
|
-
PYTHON_3_11: "PYTHON_3_11";
|
|
1084
|
-
PYTHON_3_12: "PYTHON_3_12";
|
|
1085
|
-
PYTHON_3_13: "PYTHON_3_13";
|
|
1086
|
-
}>;
|
|
1087
|
-
name: z.ZodString;
|
|
1088
|
-
entrypoint: z.ZodType<FilePath, unknown, z.core.$ZodTypeInternals<FilePath, unknown>>;
|
|
1089
|
-
codeLocation: z.ZodType<DirectoryPath, unknown, z.core.$ZodTypeInternals<DirectoryPath, unknown>>;
|
|
1090
|
-
instrumentation: z.ZodOptional<z.ZodObject<{
|
|
1091
|
-
enableOtel: z.ZodDefault<z.ZodBoolean>;
|
|
1092
|
-
}, z.core.$strip>>;
|
|
1093
|
-
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1094
|
-
PUBLIC: "PUBLIC";
|
|
1095
|
-
VPC: "VPC";
|
|
1096
|
-
}>>>;
|
|
1097
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1098
|
-
}, z.core.$strict>>;
|
|
1099
|
-
iamPolicy: z.ZodOptional<z.ZodObject<{
|
|
1100
|
-
Version: z.ZodString;
|
|
1101
|
-
Statement: z.ZodArray<z.ZodUnknown>;
|
|
1102
|
-
}, z.core.$loose>>;
|
|
1103
|
-
}, z.core.$strict>], "host">>;
|
|
1104
|
-
endpoint: z.ZodOptional<z.ZodString>;
|
|
1105
|
-
outboundAuth: z.ZodOptional<z.ZodObject<{
|
|
1106
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
1107
|
-
NONE: "NONE";
|
|
1108
|
-
OAUTH: "OAUTH";
|
|
1109
|
-
API_KEY: "API_KEY";
|
|
1110
|
-
}>>;
|
|
1111
|
-
credentialName: z.ZodOptional<z.ZodString>;
|
|
1112
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1113
|
-
}, z.core.$strict>>;
|
|
1114
|
-
apiGateway: z.ZodOptional<z.ZodObject<{
|
|
1115
|
-
restApiId: z.ZodString;
|
|
1116
|
-
stage: z.ZodString;
|
|
1117
|
-
apiGatewayToolConfiguration: z.ZodObject<{
|
|
1118
|
-
toolFilters: z.ZodArray<z.ZodObject<{
|
|
1119
|
-
filterPath: z.ZodString;
|
|
1120
|
-
methods: z.ZodArray<z.ZodEnum<{
|
|
1121
|
-
GET: "GET";
|
|
1122
|
-
POST: "POST";
|
|
1123
|
-
PUT: "PUT";
|
|
1124
|
-
DELETE: "DELETE";
|
|
1125
|
-
PATCH: "PATCH";
|
|
1126
|
-
HEAD: "HEAD";
|
|
1127
|
-
OPTIONS: "OPTIONS";
|
|
1128
|
-
}>>;
|
|
1129
|
-
}, z.core.$strict>>;
|
|
1130
|
-
toolOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1131
|
-
name: z.ZodString;
|
|
1132
|
-
path: z.ZodString;
|
|
1133
|
-
method: z.ZodEnum<{
|
|
1134
|
-
GET: "GET";
|
|
1135
|
-
POST: "POST";
|
|
1136
|
-
PUT: "PUT";
|
|
1137
|
-
DELETE: "DELETE";
|
|
1138
|
-
PATCH: "PATCH";
|
|
1139
|
-
HEAD: "HEAD";
|
|
1140
|
-
OPTIONS: "OPTIONS";
|
|
1141
|
-
}>;
|
|
1142
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1143
|
-
}, z.core.$strict>>>;
|
|
1144
|
-
}, z.core.$strict>;
|
|
1145
|
-
}, z.core.$strict>>;
|
|
1146
|
-
schemaSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1147
|
-
inline: z.ZodObject<{
|
|
1148
|
-
path: z.ZodString;
|
|
1149
|
-
}, z.core.$strict>;
|
|
1150
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1151
|
-
s3: z.ZodObject<{
|
|
1152
|
-
uri: z.ZodString;
|
|
1153
|
-
bucketOwnerAccountId: z.ZodOptional<z.ZodString>;
|
|
1154
|
-
}, z.core.$strict>;
|
|
1155
|
-
}, z.core.$strict>]>>;
|
|
1156
|
-
lambdaFunctionArn: z.ZodOptional<z.ZodObject<{
|
|
1157
|
-
lambdaArn: z.ZodString;
|
|
1158
|
-
toolSchemaFile: z.ZodString;
|
|
1159
|
-
}, z.core.$strict>>;
|
|
1160
|
-
}, z.core.$strict>>>;
|
|
1161
|
-
}, z.core.$strict>;
|
|
1162
|
-
export type AgentCoreMcpSpec = z.infer<typeof AgentCoreMcpSpecSchema>;
|
|
904
|
+
export interface AgentCoreMcpSpec {
|
|
905
|
+
agentCoreGateways: AgentCoreGateway[];
|
|
906
|
+
mcpRuntimeTools?: AgentCoreMcpRuntimeTool[];
|
|
907
|
+
unassignedTargets?: AgentCoreGatewayTarget[];
|
|
908
|
+
}
|
|
1163
909
|
export {};
|
|
1164
910
|
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/mcp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/mcp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,uBAAuB;;;;;;;EAOlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;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,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAMpF;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,eAAe,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC5C,iBAAiB,CAAC,EAAE,sBAAsB,EAAE,CAAC;CAC9C"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AgentCoreMcpRuntimeToolSchema = exports.McpRuntimeBindingSchema = exports.AgentCoreGatewaySchema = exports.GatewayPolicyEngineConfigurationSchema = exports.PolicyEngineModeSchema = exports.GatewayExceptionLevelSchema = exports.AgentCoreGatewayTargetSchema = exports.SchemaSourceSchema = exports.ToolComputeConfigSchema = exports.RuntimeConfigSchema = exports.IamPolicyDocumentSchema = exports.ToolImplementationBindingSchema = exports.ComputeHostSchema = exports.McpImplLanguageSchema = exports.LambdaFunctionArnConfigSchema = exports.ApiGatewayConfigSchema = exports.ApiGatewayToolConfigurationSchema = exports.ApiGatewayToolOverrideSchema = exports.ApiGatewayToolFilterSchema = exports.ApiGatewayHttpMethodSchema = exports.TARGET_TYPE_AUTH_CONFIG = exports.OutboundAuthSchema = exports.OutboundAuthTypeSchema = exports.GatewayAuthorizerConfigSchema = exports.CustomJwtAuthorizerConfigSchema = exports.CustomClaimValidationSchema = exports.InboundTokenClaimValueTypeSchema = exports.ClaimMatchValueSchema = exports.ClaimMatchOperatorSchema = exports.GatewayAuthorizerTypeSchema = exports.GatewayTargetTypeSchema = void 0;
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
5
|
const agent_env_1 = require("./agent-env");
|
|
6
6
|
const mcp_defs_1 = require("./mcp-defs");
|
|
7
|
+
const tags_1 = require("./primitives/tags");
|
|
7
8
|
const zod_1 = require("zod");
|
|
8
9
|
// ============================================================================
|
|
9
10
|
// MCP-Specific Schemas
|
|
@@ -36,11 +37,57 @@ const OidcDiscoveryUrlSchema = zod_1.z
|
|
|
36
37
|
.refine(url => url.endsWith(OIDC_WELL_KNOWN_SUFFIX), {
|
|
37
38
|
message: `OIDC discovery URL must end with '${OIDC_WELL_KNOWN_SUFFIX}'`,
|
|
38
39
|
});
|
|
40
|
+
// ── Custom Claims Schemas (matches CFN CustomClaimValidationType) ──
|
|
41
|
+
// API-documented patterns (from ClaimMatchValueType and CustomClaimValidationType)
|
|
42
|
+
const MATCH_VALUE_PATTERN = /^[A-Za-z0-9_.-]+$/;
|
|
43
|
+
const CLAIM_NAME_PATTERN = /^[A-Za-z0-9_.:-]+$/;
|
|
44
|
+
// Server-side reserved claim names (not regex-documented; API rejects these at deploy time)
|
|
45
|
+
const RESERVED_CLAIM_NAMES = ['client_id'];
|
|
46
|
+
exports.ClaimMatchOperatorSchema = zod_1.z.enum(['EQUALS', 'CONTAINS', 'CONTAINS_ANY']);
|
|
47
|
+
exports.ClaimMatchValueSchema = zod_1.z
|
|
48
|
+
.object({
|
|
49
|
+
matchValueString: zod_1.z
|
|
50
|
+
.string()
|
|
51
|
+
.min(1)
|
|
52
|
+
.max(255)
|
|
53
|
+
.regex(MATCH_VALUE_PATTERN, 'Match value must match [A-Za-z0-9_.-]+')
|
|
54
|
+
.optional(),
|
|
55
|
+
matchValueStringList: zod_1.z
|
|
56
|
+
.array(zod_1.z.string().min(1).max(255).regex(MATCH_VALUE_PATTERN, 'Each match value must match [A-Za-z0-9_.-]+'))
|
|
57
|
+
.min(1)
|
|
58
|
+
.max(255)
|
|
59
|
+
.optional(),
|
|
60
|
+
})
|
|
61
|
+
.refine(data => data.matchValueString !== undefined || data.matchValueStringList !== undefined, {
|
|
62
|
+
message: 'Either matchValueString or matchValueStringList must be provided',
|
|
63
|
+
})
|
|
64
|
+
.refine(data => !(data.matchValueString !== undefined && data.matchValueStringList !== undefined), {
|
|
65
|
+
message: 'Only one of matchValueString or matchValueStringList may be provided',
|
|
66
|
+
});
|
|
67
|
+
exports.InboundTokenClaimValueTypeSchema = zod_1.z.enum(['STRING', 'STRING_ARRAY']);
|
|
68
|
+
exports.CustomClaimValidationSchema = zod_1.z
|
|
69
|
+
.object({
|
|
70
|
+
inboundTokenClaimName: zod_1.z
|
|
71
|
+
.string()
|
|
72
|
+
.min(1)
|
|
73
|
+
.max(255)
|
|
74
|
+
.regex(CLAIM_NAME_PATTERN, 'Claim name must match [A-Za-z0-9_.-:]+')
|
|
75
|
+
.refine(name => !RESERVED_CLAIM_NAMES.includes(name), {
|
|
76
|
+
message: `Claim name cannot be a reserved name (${RESERVED_CLAIM_NAMES.join(', ')})`,
|
|
77
|
+
}),
|
|
78
|
+
inboundTokenClaimValueType: exports.InboundTokenClaimValueTypeSchema,
|
|
79
|
+
authorizingClaimMatchValue: zod_1.z.object({
|
|
80
|
+
claimMatchOperator: exports.ClaimMatchOperatorSchema,
|
|
81
|
+
claimMatchValue: exports.ClaimMatchValueSchema,
|
|
82
|
+
}),
|
|
83
|
+
})
|
|
84
|
+
.strict();
|
|
85
|
+
// ── Custom JWT Authorizer Configuration ──
|
|
39
86
|
/**
|
|
40
87
|
* Custom JWT authorizer configuration.
|
|
41
88
|
* Used when authorizerType is 'CUSTOM_JWT'.
|
|
42
89
|
*
|
|
43
|
-
* At least one of allowedAudience, allowedClients, or
|
|
90
|
+
* At least one of allowedAudience, allowedClients, allowedScopes, or customClaims
|
|
44
91
|
* must be provided. Only discoveryUrl is unconditionally required.
|
|
45
92
|
*/
|
|
46
93
|
exports.CustomJwtAuthorizerConfigSchema = zod_1.z
|
|
@@ -53,16 +100,19 @@ exports.CustomJwtAuthorizerConfigSchema = zod_1.z
|
|
|
53
100
|
allowedClients: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
54
101
|
/** List of allowed scopes */
|
|
55
102
|
allowedScopes: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
103
|
+
/** Custom claim validations */
|
|
104
|
+
customClaims: zod_1.z.array(exports.CustomClaimValidationSchema).min(1).optional(),
|
|
56
105
|
})
|
|
57
106
|
.strict()
|
|
58
107
|
.superRefine((data, ctx) => {
|
|
59
108
|
const hasAudience = data.allowedAudience && data.allowedAudience.length > 0;
|
|
60
109
|
const hasClients = data.allowedClients && data.allowedClients.length > 0;
|
|
61
110
|
const hasScopes = data.allowedScopes && data.allowedScopes.length > 0;
|
|
62
|
-
|
|
111
|
+
const hasClaims = data.customClaims && data.customClaims.length > 0;
|
|
112
|
+
if (!hasAudience && !hasClients && !hasScopes && !hasClaims) {
|
|
63
113
|
ctx.addIssue({
|
|
64
114
|
code: zod_1.z.ZodIssueCode.custom,
|
|
65
|
-
message: 'At least one of allowedAudience, allowedClients, or
|
|
115
|
+
message: 'At least one of allowedAudience, allowedClients, allowedScopes, or customClaims must be provided',
|
|
66
116
|
});
|
|
67
117
|
}
|
|
68
118
|
});
|
|
@@ -557,6 +607,7 @@ exports.AgentCoreGatewaySchema = zod_1.z
|
|
|
557
607
|
exceptionLevel: exports.GatewayExceptionLevelSchema.default('NONE'),
|
|
558
608
|
/** Policy engine configuration for Cedar-based authorization of tool calls. */
|
|
559
609
|
policyEngineConfiguration: exports.GatewayPolicyEngineConfigurationSchema.optional(),
|
|
610
|
+
tags: tags_1.TagsSchema.optional(),
|
|
560
611
|
})
|
|
561
612
|
.strict()
|
|
562
613
|
.refine(data => {
|
|
@@ -601,17 +652,4 @@ exports.AgentCoreMcpRuntimeToolSchema = zod_1.z
|
|
|
601
652
|
bindings: zod_1.z.array(exports.McpRuntimeBindingSchema).optional(),
|
|
602
653
|
})
|
|
603
654
|
.strict();
|
|
604
|
-
// ============================================================================
|
|
605
|
-
// Top-Level MCP Spec
|
|
606
|
-
// ============================================================================
|
|
607
|
-
/**
|
|
608
|
-
* Top-level MCP schema.
|
|
609
|
-
*/
|
|
610
|
-
exports.AgentCoreMcpSpecSchema = zod_1.z
|
|
611
|
-
.object({
|
|
612
|
-
agentCoreGateways: zod_1.z.array(exports.AgentCoreGatewaySchema),
|
|
613
|
-
mcpRuntimeTools: zod_1.z.array(exports.AgentCoreMcpRuntimeToolSchema).optional(),
|
|
614
|
-
unassignedTargets: zod_1.z.array(exports.AgentCoreGatewayTargetSchema).optional(),
|
|
615
|
-
})
|
|
616
|
-
.strict();
|
|
617
655
|
//# sourceMappingURL=mcp.js.map
|