@aws/agentcore 0.3.0-preview.2.1 → 0.3.0-preview.3.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.
- package/README.md +1 -0
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +415 -58
- package/dist/assets/cdk/README.md +19 -7
- package/dist/assets/cdk/bin/cdk.ts +37 -2
- package/dist/assets/cdk/lib/cdk-stack.ts +25 -2
- package/dist/assets/cdk/package.json +1 -1
- package/dist/assets/cdk/test/cdk.test.ts +18 -14
- package/dist/assets/cdk/tsconfig.json +4 -4
- package/dist/assets/container/python/Dockerfile +7 -1
- package/dist/assets/python/googleadk/base/main.py +10 -1
- package/dist/assets/python/googleadk/base/mcp_client/client.py +54 -3
- package/dist/assets/python/googleadk/base/pyproject.toml +2 -0
- package/dist/assets/python/langchain_langgraph/base/main.py +11 -1
- package/dist/assets/python/langchain_langgraph/base/mcp_client/client.py +52 -3
- package/dist/assets/python/langchain_langgraph/base/pyproject.toml +2 -1
- package/dist/assets/python/openaiagents/base/main.py +43 -3
- package/dist/assets/python/openaiagents/base/mcp_client/client.py +54 -3
- package/dist/assets/python/openaiagents/base/pyproject.toml +2 -0
- package/dist/assets/python/strands/base/README.md +1 -1
- package/dist/assets/python/strands/base/main.py +16 -3
- package/dist/assets/python/strands/base/mcp_client/client.py +56 -4
- package/dist/assets/python/strands/base/pyproject.toml +2 -0
- package/dist/cli/index.mjs +360 -344
- package/dist/lib/packaging/build-args.d.ts +6 -0
- package/dist/lib/packaging/build-args.d.ts.map +1 -0
- package/dist/lib/packaging/build-args.js +18 -0
- package/dist/lib/packaging/build-args.js.map +1 -0
- package/dist/lib/packaging/container.d.ts.map +1 -1
- package/dist/lib/packaging/container.js +2 -1
- package/dist/lib/packaging/container.js.map +1 -1
- package/dist/lib/schemas/io/cli-config.d.ts +10 -0
- package/dist/lib/schemas/io/cli-config.d.ts.map +1 -0
- package/dist/lib/schemas/io/cli-config.js +27 -0
- package/dist/lib/schemas/io/cli-config.js.map +1 -0
- package/dist/lib/schemas/io/index.d.ts +1 -0
- package/dist/lib/schemas/io/index.d.ts.map +1 -1
- package/dist/lib/schemas/io/index.js +3 -1
- package/dist/lib/schemas/io/index.js.map +1 -1
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +3 -1
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/subprocess.d.ts.map +1 -1
- package/dist/lib/utils/subprocess.js +32 -10
- package/dist/lib/utils/subprocess.js.map +1 -1
- package/dist/lib/utils/time-parser.d.ts +11 -0
- package/dist/lib/utils/time-parser.d.ts.map +1 -0
- package/dist/lib/utils/time-parser.js +47 -0
- package/dist/lib/utils/time-parser.js.map +1 -0
- package/dist/schema/constants.d.ts +9 -0
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +12 -2
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +48 -5
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +19 -4
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/aws-targets.js +1 -1
- package/dist/schema/schemas/aws-targets.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +53 -0
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +19 -1
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/mcp-defs.d.ts +1 -1
- package/dist/schema/schemas/mcp-defs.js +1 -1
- package/dist/schema/schemas/mcp.d.ts +146 -6
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +49 -4
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/package.json +16 -7
|
@@ -24,7 +24,7 @@ exports.DeploymentTargetNameSchema = zod_1.z
|
|
|
24
24
|
.string()
|
|
25
25
|
.min(1)
|
|
26
26
|
.max(64)
|
|
27
|
-
.regex(/^[a-zA-Z][a-zA-Z0-
|
|
27
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9-]*$/, 'Name must start with a letter and contain only alphanumeric characters and hyphens')
|
|
28
28
|
.describe('Unique identifier for the deployment target');
|
|
29
29
|
// ============================================================================
|
|
30
30
|
// AWS Account ID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-targets.js","sourceRoot":"","sources":["../../../src/schema/schemas/aws-targets.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,6BAAwB;AAExB,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1C,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CACZ,CAAC,CAAC;AAGH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,
|
|
1
|
+
{"version":3,"file":"aws-targets.js","sourceRoot":"","sources":["../../../src/schema/schemas/aws-targets.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,6BAAwB;AAExB,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1C,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CACZ,CAAC,CAAC;AAGH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,yBAAyB,EACzB,oFAAoF,CACrF;KACA,QAAQ,CAAC,6CAA6C,CAAC,CAAC;AAE3D,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAElE,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,EAAE;KACR,KAAK,CAAC,aAAa,EAAE,0CAA0C,CAAC;KAChE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAE9B,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAElE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,kCAA0B;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,0BAAkB;IAC3B,MAAM,EAAE,6BAAqB;CAC9B,CAAC,CAAC;AAIH,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC,WAAW,CACtF,IAAA,mBAAQ,EACN,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EACrB,IAAI,CAAC,EAAE,CAAC,qCAAqC,IAAI,EAAE,CACpD,CACF,CAAC"}
|
|
@@ -9,9 +9,15 @@ export declare const AgentCoreDeployedStateSchema: z.ZodObject<{
|
|
|
9
9
|
codeInterpreterId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export type AgentCoreDeployedState = z.infer<typeof AgentCoreDeployedStateSchema>;
|
|
12
|
+
export declare const MemoryDeployedStateSchema: z.ZodObject<{
|
|
13
|
+
memoryId: z.ZodString;
|
|
14
|
+
memoryArn: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type MemoryDeployedState = z.infer<typeof MemoryDeployedStateSchema>;
|
|
12
17
|
export declare const GatewayDeployedStateSchema: z.ZodObject<{
|
|
13
18
|
gatewayId: z.ZodString;
|
|
14
19
|
gatewayArn: z.ZodString;
|
|
20
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
15
21
|
}, z.core.$strip>;
|
|
16
22
|
export type GatewayDeployedState = z.infer<typeof GatewayDeployedStateSchema>;
|
|
17
23
|
export declare const McpRuntimeDeployedStateSchema: z.ZodObject<{
|
|
@@ -29,6 +35,7 @@ export declare const McpDeployedStateSchema: z.ZodObject<{
|
|
|
29
35
|
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
30
36
|
gatewayId: z.ZodString;
|
|
31
37
|
gatewayArn: z.ZodString;
|
|
38
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
32
39
|
}, z.core.$strip>>>;
|
|
33
40
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
34
41
|
runtimeId: z.ZodString;
|
|
@@ -72,6 +79,12 @@ export declare const ExternallyManagedStateSchema: z.ZodObject<{
|
|
|
72
79
|
}, z.core.$strip>>;
|
|
73
80
|
}, z.core.$strip>;
|
|
74
81
|
export type ExternallyManagedState = z.infer<typeof ExternallyManagedStateSchema>;
|
|
82
|
+
export declare const CredentialDeployedStateSchema: z.ZodObject<{
|
|
83
|
+
credentialProviderArn: z.ZodString;
|
|
84
|
+
clientSecretArn: z.ZodOptional<z.ZodString>;
|
|
85
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type CredentialDeployedState = z.infer<typeof CredentialDeployedStateSchema>;
|
|
75
88
|
export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
76
89
|
agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
77
90
|
runtimeId: z.ZodString;
|
|
@@ -82,10 +95,15 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
82
95
|
browserId: z.ZodOptional<z.ZodString>;
|
|
83
96
|
codeInterpreterId: z.ZodOptional<z.ZodString>;
|
|
84
97
|
}, z.core.$strip>>>;
|
|
98
|
+
memories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
99
|
+
memoryId: z.ZodString;
|
|
100
|
+
memoryArn: z.ZodString;
|
|
101
|
+
}, z.core.$strip>>>;
|
|
85
102
|
mcp: z.ZodOptional<z.ZodObject<{
|
|
86
103
|
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
87
104
|
gatewayId: z.ZodString;
|
|
88
105
|
gatewayArn: z.ZodString;
|
|
106
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
89
107
|
}, z.core.$strip>>>;
|
|
90
108
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
91
109
|
runtimeId: z.ZodString;
|
|
@@ -110,6 +128,11 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
110
128
|
subnets: z.ZodArray<z.ZodString>;
|
|
111
129
|
}, z.core.$strip>>;
|
|
112
130
|
}, z.core.$strip>>;
|
|
131
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
132
|
+
credentialProviderArn: z.ZodString;
|
|
133
|
+
clientSecretArn: z.ZodOptional<z.ZodString>;
|
|
134
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>>>;
|
|
113
136
|
stackName: z.ZodOptional<z.ZodString>;
|
|
114
137
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
115
138
|
}, z.core.$strip>;
|
|
@@ -125,10 +148,15 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
125
148
|
browserId: z.ZodOptional<z.ZodString>;
|
|
126
149
|
codeInterpreterId: z.ZodOptional<z.ZodString>;
|
|
127
150
|
}, z.core.$strip>>>;
|
|
151
|
+
memories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
152
|
+
memoryId: z.ZodString;
|
|
153
|
+
memoryArn: z.ZodString;
|
|
154
|
+
}, z.core.$strip>>>;
|
|
128
155
|
mcp: z.ZodOptional<z.ZodObject<{
|
|
129
156
|
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
130
157
|
gatewayId: z.ZodString;
|
|
131
158
|
gatewayArn: z.ZodString;
|
|
159
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
132
160
|
}, z.core.$strip>>>;
|
|
133
161
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
134
162
|
runtimeId: z.ZodString;
|
|
@@ -153,6 +181,11 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
153
181
|
subnets: z.ZodArray<z.ZodString>;
|
|
154
182
|
}, z.core.$strip>>;
|
|
155
183
|
}, z.core.$strip>>;
|
|
184
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
185
|
+
credentialProviderArn: z.ZodString;
|
|
186
|
+
clientSecretArn: z.ZodOptional<z.ZodString>;
|
|
187
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>>>;
|
|
156
189
|
stackName: z.ZodOptional<z.ZodString>;
|
|
157
190
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
158
191
|
}, z.core.$strip>>;
|
|
@@ -174,10 +207,15 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
174
207
|
browserId: z.ZodOptional<z.ZodString>;
|
|
175
208
|
codeInterpreterId: z.ZodOptional<z.ZodString>;
|
|
176
209
|
}, z.core.$strip>>>;
|
|
210
|
+
memories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
211
|
+
memoryId: z.ZodString;
|
|
212
|
+
memoryArn: z.ZodString;
|
|
213
|
+
}, z.core.$strip>>>;
|
|
177
214
|
mcp: z.ZodOptional<z.ZodObject<{
|
|
178
215
|
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
179
216
|
gatewayId: z.ZodString;
|
|
180
217
|
gatewayArn: z.ZodString;
|
|
218
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
181
219
|
}, z.core.$strip>>>;
|
|
182
220
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
183
221
|
runtimeId: z.ZodString;
|
|
@@ -202,6 +240,11 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
202
240
|
subnets: z.ZodArray<z.ZodString>;
|
|
203
241
|
}, z.core.$strip>>;
|
|
204
242
|
}, z.core.$strip>>;
|
|
243
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
244
|
+
credentialProviderArn: z.ZodString;
|
|
245
|
+
clientSecretArn: z.ZodOptional<z.ZodString>;
|
|
246
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>>>;
|
|
205
248
|
stackName: z.ZodOptional<z.ZodString>;
|
|
206
249
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
207
250
|
}, z.core.$strip>>;
|
|
@@ -224,10 +267,15 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
224
267
|
browserId: z.ZodOptional<z.ZodString>;
|
|
225
268
|
codeInterpreterId: z.ZodOptional<z.ZodString>;
|
|
226
269
|
}, z.core.$strip>>>;
|
|
270
|
+
memories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
271
|
+
memoryId: z.ZodString;
|
|
272
|
+
memoryArn: z.ZodString;
|
|
273
|
+
}, z.core.$strip>>>;
|
|
227
274
|
mcp: z.ZodOptional<z.ZodObject<{
|
|
228
275
|
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
229
276
|
gatewayId: z.ZodString;
|
|
230
277
|
gatewayArn: z.ZodString;
|
|
278
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
231
279
|
}, z.core.$strip>>>;
|
|
232
280
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
233
281
|
runtimeId: z.ZodString;
|
|
@@ -252,6 +300,11 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
252
300
|
subnets: z.ZodArray<z.ZodString>;
|
|
253
301
|
}, z.core.$strip>>;
|
|
254
302
|
}, z.core.$strip>>;
|
|
303
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
304
|
+
credentialProviderArn: z.ZodString;
|
|
305
|
+
clientSecretArn: z.ZodOptional<z.ZodString>;
|
|
306
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>>>;
|
|
255
308
|
stackName: z.ZodOptional<z.ZodString>;
|
|
256
309
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
257
310
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployed-state.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/deployed-state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,4BAA4B;;;;;;;;iBAQvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAMlF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"deployed-state.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/deployed-state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,4BAA4B;;;;;;;;iBAQvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAA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M,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAMpF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMhF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAM5E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,WAAW,EAAE,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAYvE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeployedStateSchema = exports.TargetDeployedStateSchema = exports.DeployedResourceStateSchema = exports.ExternallyManagedStateSchema = exports.VpcConfigSchema = exports.CustomJwtAuthorizerSchema = exports.ExternallyManagedResourceSchema = exports.McpDeployedStateSchema = exports.McpLambdaDeployedStateSchema = exports.McpRuntimeDeployedStateSchema = exports.GatewayDeployedStateSchema = exports.AgentCoreDeployedStateSchema = void 0;
|
|
3
|
+
exports.DeployedStateSchema = exports.TargetDeployedStateSchema = exports.DeployedResourceStateSchema = exports.CredentialDeployedStateSchema = exports.ExternallyManagedStateSchema = exports.VpcConfigSchema = exports.CustomJwtAuthorizerSchema = exports.ExternallyManagedResourceSchema = exports.McpDeployedStateSchema = exports.McpLambdaDeployedStateSchema = exports.McpRuntimeDeployedStateSchema = exports.GatewayDeployedStateSchema = exports.MemoryDeployedStateSchema = exports.AgentCoreDeployedStateSchema = void 0;
|
|
4
4
|
exports.createValidatedDeployedStateSchema = createValidatedDeployedStateSchema;
|
|
5
5
|
const aws_targets_1 = require("./aws-targets");
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -17,11 +17,19 @@ exports.AgentCoreDeployedStateSchema = zod_1.z.object({
|
|
|
17
17
|
codeInterpreterId: zod_1.z.string().optional(),
|
|
18
18
|
});
|
|
19
19
|
// ============================================================================
|
|
20
|
+
// Memory Deployed State
|
|
21
|
+
// ============================================================================
|
|
22
|
+
exports.MemoryDeployedStateSchema = zod_1.z.object({
|
|
23
|
+
memoryId: zod_1.z.string().min(1),
|
|
24
|
+
memoryArn: zod_1.z.string().min(1),
|
|
25
|
+
});
|
|
26
|
+
// ============================================================================
|
|
20
27
|
// MCP Gateway Deployed State
|
|
21
28
|
// ============================================================================
|
|
22
29
|
exports.GatewayDeployedStateSchema = zod_1.z.object({
|
|
23
30
|
gatewayId: zod_1.z.string().min(1),
|
|
24
31
|
gatewayArn: zod_1.z.string().min(1),
|
|
32
|
+
gatewayUrl: zod_1.z.string().optional(),
|
|
25
33
|
});
|
|
26
34
|
// ============================================================================
|
|
27
35
|
// MCP Runtime Deployed State
|
|
@@ -66,12 +74,22 @@ exports.ExternallyManagedStateSchema = zod_1.z.object({
|
|
|
66
74
|
vpcConfig: exports.VpcConfigSchema.optional(),
|
|
67
75
|
});
|
|
68
76
|
// ============================================================================
|
|
77
|
+
// Credential Deployed State
|
|
78
|
+
// ============================================================================
|
|
79
|
+
exports.CredentialDeployedStateSchema = zod_1.z.object({
|
|
80
|
+
credentialProviderArn: zod_1.z.string(),
|
|
81
|
+
clientSecretArn: zod_1.z.string().optional(),
|
|
82
|
+
callbackUrl: zod_1.z.string().optional(),
|
|
83
|
+
});
|
|
84
|
+
// ============================================================================
|
|
69
85
|
// Deployed Resource State
|
|
70
86
|
// ============================================================================
|
|
71
87
|
exports.DeployedResourceStateSchema = zod_1.z.object({
|
|
72
88
|
agents: zod_1.z.record(zod_1.z.string(), exports.AgentCoreDeployedStateSchema).optional(),
|
|
89
|
+
memories: zod_1.z.record(zod_1.z.string(), exports.MemoryDeployedStateSchema).optional(),
|
|
73
90
|
mcp: exports.McpDeployedStateSchema.optional(),
|
|
74
91
|
externallyManaged: exports.ExternallyManagedStateSchema.optional(),
|
|
92
|
+
credentials: zod_1.z.record(zod_1.z.string(), exports.CredentialDeployedStateSchema).optional(),
|
|
75
93
|
stackName: zod_1.z.string().optional(),
|
|
76
94
|
identityKmsKeyArn: zod_1.z.string().optional(),
|
|
77
95
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployed-state.js","sourceRoot":"","sources":["../../../src/schema/schemas/deployed-state.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"deployed-state.js","sourceRoot":"","sources":["../../../src/schema/schemas/deployed-state.ts"],"names":[],"mappings":";;;AAsKA,gFAYC;AAlLD,+CAA2D;AAC3D,6BAAwB;AAExB,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAElE,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,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AAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAaU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,wCAA0B,EAAE,iCAAyB,CAAC;CACzE,CAAC,CAAC;AAIH;;;GAGG;AACH,SAAgB,kCAAkC,CAAC,WAAqB;IACtE,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC;IAE3C,OAAO,2BAAmB,CAAC,MAAM,CAC/B,KAAK,CAAC,EAAE;QACN,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC7C,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IACxD,CAAC,EACD;QACE,OAAO,EAAE,iEAAiE;KAC3E,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -28,7 +28,7 @@ export declare const SchemaDefinitionSchema: z.ZodType<SchemaDefinition>;
|
|
|
28
28
|
*/
|
|
29
29
|
export declare const ToolNameSchema: z.ZodString;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Gateway Target Definition schema.
|
|
32
32
|
*/
|
|
33
33
|
export declare const ToolDefinitionSchema: z.ZodObject<{
|
|
34
34
|
name: z.ZodString;
|
|
@@ -28,7 +28,7 @@ exports.ToolNameSchema = zod_1.z
|
|
|
28
28
|
.max(128, 'Tool name must be at most 128 characters')
|
|
29
29
|
.regex(/^[a-zA-Z][a-zA-Z0-9_-]*$/, 'Tool name must start with a letter and contain only alphanumeric characters, hyphens, or underscores');
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Gateway Target Definition schema.
|
|
32
32
|
*/
|
|
33
33
|
exports.ToolDefinitionSchema = zod_1.z
|
|
34
34
|
.object({
|
|
@@ -9,6 +9,7 @@ export declare const GatewayTargetTypeSchema: z.ZodEnum<{
|
|
|
9
9
|
export type GatewayTargetType = z.infer<typeof GatewayTargetTypeSchema>;
|
|
10
10
|
export declare const GatewayAuthorizerTypeSchema: z.ZodEnum<{
|
|
11
11
|
NONE: "NONE";
|
|
12
|
+
AWS_IAM: "AWS_IAM";
|
|
12
13
|
CUSTOM_JWT: "CUSTOM_JWT";
|
|
13
14
|
}>;
|
|
14
15
|
export type GatewayAuthorizerType = z.infer<typeof GatewayAuthorizerTypeSchema>;
|
|
@@ -20,6 +21,7 @@ export declare const CustomJwtAuthorizerConfigSchema: z.ZodObject<{
|
|
|
20
21
|
discoveryUrl: z.ZodString;
|
|
21
22
|
allowedAudience: z.ZodArray<z.ZodString>;
|
|
22
23
|
allowedClients: z.ZodArray<z.ZodString>;
|
|
24
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
25
|
}, z.core.$strip>;
|
|
24
26
|
export type CustomJwtAuthorizerConfig = z.infer<typeof CustomJwtAuthorizerConfigSchema>;
|
|
25
27
|
/**
|
|
@@ -30,9 +32,26 @@ export declare const GatewayAuthorizerConfigSchema: z.ZodObject<{
|
|
|
30
32
|
discoveryUrl: z.ZodString;
|
|
31
33
|
allowedAudience: z.ZodArray<z.ZodString>;
|
|
32
34
|
allowedClients: z.ZodArray<z.ZodString>;
|
|
35
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
36
|
}, z.core.$strip>>;
|
|
34
37
|
}, z.core.$strip>;
|
|
35
38
|
export type GatewayAuthorizerConfig = z.infer<typeof GatewayAuthorizerConfigSchema>;
|
|
39
|
+
export declare const OutboundAuthTypeSchema: z.ZodEnum<{
|
|
40
|
+
NONE: "NONE";
|
|
41
|
+
OAUTH: "OAUTH";
|
|
42
|
+
API_KEY: "API_KEY";
|
|
43
|
+
}>;
|
|
44
|
+
export type OutboundAuthType = z.infer<typeof OutboundAuthTypeSchema>;
|
|
45
|
+
export declare const OutboundAuthSchema: z.ZodObject<{
|
|
46
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
47
|
+
NONE: "NONE";
|
|
48
|
+
OAUTH: "OAUTH";
|
|
49
|
+
API_KEY: "API_KEY";
|
|
50
|
+
}>>;
|
|
51
|
+
credentialName: z.ZodOptional<z.ZodString>;
|
|
52
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export type OutboundAuth = z.infer<typeof OutboundAuthSchema>;
|
|
36
55
|
export declare const McpImplLanguageSchema: z.ZodEnum<{
|
|
37
56
|
Python: "Python";
|
|
38
57
|
TypeScript: "TypeScript";
|
|
@@ -273,12 +292,12 @@ export declare const AgentCoreGatewayTargetSchema: z.ZodObject<{
|
|
|
273
292
|
openApiSchema: "openApiSchema";
|
|
274
293
|
smithyModel: "smithyModel";
|
|
275
294
|
}>;
|
|
276
|
-
toolDefinitions: z.ZodArray<z.ZodObject<{
|
|
295
|
+
toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
277
296
|
name: z.ZodString;
|
|
278
297
|
description: z.ZodString;
|
|
279
298
|
inputSchema: z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>;
|
|
280
299
|
outputSchema: z.ZodOptional<z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>>;
|
|
281
|
-
}, z.core.$strict
|
|
300
|
+
}, z.core.$strict>>>;
|
|
282
301
|
compute: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
283
302
|
host: z.ZodLiteral<"Lambda">;
|
|
284
303
|
implementation: z.ZodObject<{
|
|
@@ -341,6 +360,16 @@ export declare const AgentCoreGatewayTargetSchema: z.ZodObject<{
|
|
|
341
360
|
Statement: z.ZodArray<z.ZodUnknown>;
|
|
342
361
|
}, z.core.$loose>>;
|
|
343
362
|
}, z.core.$strict>], "host">>;
|
|
363
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
364
|
+
outboundAuth: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
366
|
+
NONE: "NONE";
|
|
367
|
+
OAUTH: "OAUTH";
|
|
368
|
+
API_KEY: "API_KEY";
|
|
369
|
+
}>>;
|
|
370
|
+
credentialName: z.ZodOptional<z.ZodString>;
|
|
371
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
372
|
+
}, z.core.$strict>>;
|
|
344
373
|
}, z.core.$strict>;
|
|
345
374
|
export type AgentCoreGatewayTarget = z.infer<typeof AgentCoreGatewayTargetSchema>;
|
|
346
375
|
/**
|
|
@@ -358,12 +387,12 @@ export declare const AgentCoreGatewaySchema: z.ZodObject<{
|
|
|
358
387
|
openApiSchema: "openApiSchema";
|
|
359
388
|
smithyModel: "smithyModel";
|
|
360
389
|
}>;
|
|
361
|
-
toolDefinitions: z.ZodArray<z.ZodObject<{
|
|
390
|
+
toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
362
391
|
name: z.ZodString;
|
|
363
392
|
description: z.ZodString;
|
|
364
393
|
inputSchema: z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>;
|
|
365
394
|
outputSchema: z.ZodOptional<z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>>;
|
|
366
|
-
}, z.core.$strict
|
|
395
|
+
}, z.core.$strict>>>;
|
|
367
396
|
compute: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
368
397
|
host: z.ZodLiteral<"Lambda">;
|
|
369
398
|
implementation: z.ZodObject<{
|
|
@@ -426,9 +455,20 @@ export declare const AgentCoreGatewaySchema: z.ZodObject<{
|
|
|
426
455
|
Statement: z.ZodArray<z.ZodUnknown>;
|
|
427
456
|
}, z.core.$loose>>;
|
|
428
457
|
}, z.core.$strict>], "host">>;
|
|
458
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
459
|
+
outboundAuth: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
461
|
+
NONE: "NONE";
|
|
462
|
+
OAUTH: "OAUTH";
|
|
463
|
+
API_KEY: "API_KEY";
|
|
464
|
+
}>>;
|
|
465
|
+
credentialName: z.ZodOptional<z.ZodString>;
|
|
466
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
467
|
+
}, z.core.$strict>>;
|
|
429
468
|
}, z.core.$strict>>;
|
|
430
469
|
authorizerType: z.ZodDefault<z.ZodEnum<{
|
|
431
470
|
NONE: "NONE";
|
|
471
|
+
AWS_IAM: "AWS_IAM";
|
|
432
472
|
CUSTOM_JWT: "CUSTOM_JWT";
|
|
433
473
|
}>>;
|
|
434
474
|
authorizerConfiguration: z.ZodOptional<z.ZodObject<{
|
|
@@ -436,6 +476,7 @@ export declare const AgentCoreGatewaySchema: z.ZodObject<{
|
|
|
436
476
|
discoveryUrl: z.ZodString;
|
|
437
477
|
allowedAudience: z.ZodArray<z.ZodString>;
|
|
438
478
|
allowedClients: z.ZodArray<z.ZodString>;
|
|
479
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
439
480
|
}, z.core.$strip>>;
|
|
440
481
|
}, z.core.$strip>>;
|
|
441
482
|
}, z.core.$strict>;
|
|
@@ -524,12 +565,12 @@ export declare const AgentCoreMcpSpecSchema: z.ZodObject<{
|
|
|
524
565
|
openApiSchema: "openApiSchema";
|
|
525
566
|
smithyModel: "smithyModel";
|
|
526
567
|
}>;
|
|
527
|
-
toolDefinitions: z.ZodArray<z.ZodObject<{
|
|
568
|
+
toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
528
569
|
name: z.ZodString;
|
|
529
570
|
description: z.ZodString;
|
|
530
571
|
inputSchema: z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>;
|
|
531
572
|
outputSchema: z.ZodOptional<z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>>;
|
|
532
|
-
}, z.core.$strict
|
|
573
|
+
}, z.core.$strict>>>;
|
|
533
574
|
compute: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
534
575
|
host: z.ZodLiteral<"Lambda">;
|
|
535
576
|
implementation: z.ZodObject<{
|
|
@@ -592,9 +633,20 @@ export declare const AgentCoreMcpSpecSchema: z.ZodObject<{
|
|
|
592
633
|
Statement: z.ZodArray<z.ZodUnknown>;
|
|
593
634
|
}, z.core.$loose>>;
|
|
594
635
|
}, z.core.$strict>], "host">>;
|
|
636
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
637
|
+
outboundAuth: z.ZodOptional<z.ZodObject<{
|
|
638
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
639
|
+
NONE: "NONE";
|
|
640
|
+
OAUTH: "OAUTH";
|
|
641
|
+
API_KEY: "API_KEY";
|
|
642
|
+
}>>;
|
|
643
|
+
credentialName: z.ZodOptional<z.ZodString>;
|
|
644
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
645
|
+
}, z.core.$strict>>;
|
|
595
646
|
}, z.core.$strict>>;
|
|
596
647
|
authorizerType: z.ZodDefault<z.ZodEnum<{
|
|
597
648
|
NONE: "NONE";
|
|
649
|
+
AWS_IAM: "AWS_IAM";
|
|
598
650
|
CUSTOM_JWT: "CUSTOM_JWT";
|
|
599
651
|
}>>;
|
|
600
652
|
authorizerConfiguration: z.ZodOptional<z.ZodObject<{
|
|
@@ -602,6 +654,7 @@ export declare const AgentCoreMcpSpecSchema: z.ZodObject<{
|
|
|
602
654
|
discoveryUrl: z.ZodString;
|
|
603
655
|
allowedAudience: z.ZodArray<z.ZodString>;
|
|
604
656
|
allowedClients: z.ZodArray<z.ZodString>;
|
|
657
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
605
658
|
}, z.core.$strip>>;
|
|
606
659
|
}, z.core.$strip>>;
|
|
607
660
|
}, z.core.$strict>>;
|
|
@@ -653,6 +706,93 @@ export declare const AgentCoreMcpSpecSchema: z.ZodObject<{
|
|
|
653
706
|
envVarName: z.ZodString;
|
|
654
707
|
}, z.core.$strict>>>;
|
|
655
708
|
}, z.core.$strict>>>;
|
|
709
|
+
unassignedTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
710
|
+
name: z.ZodString;
|
|
711
|
+
targetType: z.ZodEnum<{
|
|
712
|
+
lambda: "lambda";
|
|
713
|
+
mcpServer: "mcpServer";
|
|
714
|
+
openApiSchema: "openApiSchema";
|
|
715
|
+
smithyModel: "smithyModel";
|
|
716
|
+
}>;
|
|
717
|
+
toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
718
|
+
name: z.ZodString;
|
|
719
|
+
description: z.ZodString;
|
|
720
|
+
inputSchema: z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>;
|
|
721
|
+
outputSchema: z.ZodOptional<z.ZodType<import("./mcp-defs").SchemaDefinition, unknown, z.core.$ZodTypeInternals<import("./mcp-defs").SchemaDefinition, unknown>>>;
|
|
722
|
+
}, z.core.$strict>>>;
|
|
723
|
+
compute: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
724
|
+
host: z.ZodLiteral<"Lambda">;
|
|
725
|
+
implementation: z.ZodObject<{
|
|
726
|
+
language: z.ZodEnum<{
|
|
727
|
+
Python: "Python";
|
|
728
|
+
TypeScript: "TypeScript";
|
|
729
|
+
}>;
|
|
730
|
+
path: z.ZodString;
|
|
731
|
+
handler: z.ZodString;
|
|
732
|
+
}, z.core.$strict>;
|
|
733
|
+
nodeVersion: z.ZodOptional<z.ZodEnum<{
|
|
734
|
+
NODE_18: "NODE_18";
|
|
735
|
+
NODE_20: "NODE_20";
|
|
736
|
+
NODE_22: "NODE_22";
|
|
737
|
+
}>>;
|
|
738
|
+
pythonVersion: z.ZodOptional<z.ZodEnum<{
|
|
739
|
+
PYTHON_3_10: "PYTHON_3_10";
|
|
740
|
+
PYTHON_3_11: "PYTHON_3_11";
|
|
741
|
+
PYTHON_3_12: "PYTHON_3_12";
|
|
742
|
+
PYTHON_3_13: "PYTHON_3_13";
|
|
743
|
+
}>>;
|
|
744
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
745
|
+
memorySize: z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
iamPolicy: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
Version: z.ZodString;
|
|
748
|
+
Statement: z.ZodArray<z.ZodUnknown>;
|
|
749
|
+
}, z.core.$loose>>;
|
|
750
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
751
|
+
host: z.ZodLiteral<"AgentCoreRuntime">;
|
|
752
|
+
implementation: z.ZodObject<{
|
|
753
|
+
language: z.ZodEnum<{
|
|
754
|
+
Python: "Python";
|
|
755
|
+
TypeScript: "TypeScript";
|
|
756
|
+
}>;
|
|
757
|
+
path: z.ZodString;
|
|
758
|
+
handler: z.ZodString;
|
|
759
|
+
}, z.core.$strict>;
|
|
760
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
761
|
+
artifact: z.ZodLiteral<"CodeZip">;
|
|
762
|
+
pythonVersion: z.ZodEnum<{
|
|
763
|
+
PYTHON_3_10: "PYTHON_3_10";
|
|
764
|
+
PYTHON_3_11: "PYTHON_3_11";
|
|
765
|
+
PYTHON_3_12: "PYTHON_3_12";
|
|
766
|
+
PYTHON_3_13: "PYTHON_3_13";
|
|
767
|
+
}>;
|
|
768
|
+
name: z.ZodString;
|
|
769
|
+
entrypoint: z.ZodType<FilePath, unknown, z.core.$ZodTypeInternals<FilePath, unknown>>;
|
|
770
|
+
codeLocation: z.ZodType<DirectoryPath, unknown, z.core.$ZodTypeInternals<DirectoryPath, unknown>>;
|
|
771
|
+
instrumentation: z.ZodOptional<z.ZodObject<{
|
|
772
|
+
enableOtel: z.ZodDefault<z.ZodBoolean>;
|
|
773
|
+
}, z.core.$strip>>;
|
|
774
|
+
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
775
|
+
PUBLIC: "PUBLIC";
|
|
776
|
+
PRIVATE: "PRIVATE";
|
|
777
|
+
}>>>;
|
|
778
|
+
description: z.ZodOptional<z.ZodString>;
|
|
779
|
+
}, z.core.$strict>>;
|
|
780
|
+
iamPolicy: z.ZodOptional<z.ZodObject<{
|
|
781
|
+
Version: z.ZodString;
|
|
782
|
+
Statement: z.ZodArray<z.ZodUnknown>;
|
|
783
|
+
}, z.core.$loose>>;
|
|
784
|
+
}, z.core.$strict>], "host">>;
|
|
785
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
786
|
+
outboundAuth: z.ZodOptional<z.ZodObject<{
|
|
787
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
788
|
+
NONE: "NONE";
|
|
789
|
+
OAUTH: "OAUTH";
|
|
790
|
+
API_KEY: "API_KEY";
|
|
791
|
+
}>>;
|
|
792
|
+
credentialName: z.ZodOptional<z.ZodString>;
|
|
793
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
794
|
+
}, z.core.$strict>>;
|
|
795
|
+
}, z.core.$strict>>>;
|
|
656
796
|
}, z.core.$strict>;
|
|
657
797
|
export type AgentCoreMcpSpec = z.infer<typeof AgentCoreMcpSpecSchema>;
|
|
658
798
|
export {};
|
|
@@ -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;AAGx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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAMxB,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentCoreMcpSpecSchema = exports.AgentCoreMcpRuntimeToolSchema = exports.McpRuntimeBindingSchema = exports.AgentCoreGatewaySchema = exports.AgentCoreGatewayTargetSchema = exports.ToolComputeConfigSchema = exports.RuntimeConfigSchema = exports.IamPolicyDocumentSchema = exports.ToolImplementationBindingSchema = exports.ComputeHostSchema = exports.McpImplLanguageSchema = exports.GatewayAuthorizerConfigSchema = exports.CustomJwtAuthorizerConfigSchema = exports.GatewayAuthorizerTypeSchema = exports.GatewayTargetTypeSchema = void 0;
|
|
3
|
+
exports.AgentCoreMcpSpecSchema = exports.AgentCoreMcpRuntimeToolSchema = exports.McpRuntimeBindingSchema = exports.AgentCoreGatewaySchema = exports.AgentCoreGatewayTargetSchema = exports.ToolComputeConfigSchema = exports.RuntimeConfigSchema = exports.IamPolicyDocumentSchema = exports.ToolImplementationBindingSchema = exports.ComputeHostSchema = exports.McpImplLanguageSchema = exports.OutboundAuthSchema = exports.OutboundAuthTypeSchema = exports.GatewayAuthorizerConfigSchema = exports.CustomJwtAuthorizerConfigSchema = 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");
|
|
@@ -12,7 +12,7 @@ exports.GatewayTargetTypeSchema = zod_1.z.enum(['lambda', 'mcpServer', 'openApiS
|
|
|
12
12
|
// ============================================================================
|
|
13
13
|
// Gateway Authorization Schemas
|
|
14
14
|
// ============================================================================
|
|
15
|
-
exports.GatewayAuthorizerTypeSchema = zod_1.z.enum(['NONE', 'CUSTOM_JWT']);
|
|
15
|
+
exports.GatewayAuthorizerTypeSchema = zod_1.z.enum(['NONE', 'AWS_IAM', 'CUSTOM_JWT']);
|
|
16
16
|
/** OIDC well-known configuration endpoint suffix (per OpenID Connect Discovery 1.0 spec) */
|
|
17
17
|
const OIDC_WELL_KNOWN_SUFFIX = '/.well-known/openid-configuration';
|
|
18
18
|
/**
|
|
@@ -37,6 +37,7 @@ exports.CustomJwtAuthorizerConfigSchema = zod_1.z.object({
|
|
|
37
37
|
allowedAudience: zod_1.z.array(zod_1.z.string().min(1)),
|
|
38
38
|
/** List of allowed client IDs */
|
|
39
39
|
allowedClients: zod_1.z.array(zod_1.z.string().min(1)).min(1),
|
|
40
|
+
allowedScopes: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
40
41
|
});
|
|
41
42
|
/**
|
|
42
43
|
* Gateway authorizer configuration container.
|
|
@@ -44,6 +45,14 @@ exports.CustomJwtAuthorizerConfigSchema = zod_1.z.object({
|
|
|
44
45
|
exports.GatewayAuthorizerConfigSchema = zod_1.z.object({
|
|
45
46
|
customJwtAuthorizer: exports.CustomJwtAuthorizerConfigSchema.optional(),
|
|
46
47
|
});
|
|
48
|
+
exports.OutboundAuthTypeSchema = zod_1.z.enum(['OAUTH', 'API_KEY', 'NONE']);
|
|
49
|
+
exports.OutboundAuthSchema = zod_1.z
|
|
50
|
+
.object({
|
|
51
|
+
type: exports.OutboundAuthTypeSchema.default('NONE'),
|
|
52
|
+
credentialName: zod_1.z.string().min(1).optional(),
|
|
53
|
+
scopes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
54
|
+
})
|
|
55
|
+
.strict();
|
|
47
56
|
exports.McpImplLanguageSchema = zod_1.z.enum(['TypeScript', 'Python']);
|
|
48
57
|
exports.ComputeHostSchema = zod_1.z.enum(['Lambda', 'AgentCoreRuntime']);
|
|
49
58
|
// ============================================================================
|
|
@@ -206,10 +215,45 @@ exports.AgentCoreGatewayTargetSchema = zod_1.z
|
|
|
206
215
|
.object({
|
|
207
216
|
name: zod_1.z.string().min(1),
|
|
208
217
|
targetType: exports.GatewayTargetTypeSchema,
|
|
209
|
-
|
|
218
|
+
/** Tool definitions. Required for Lambda targets. Optional for MCP Server (discovered via tools/list). */
|
|
219
|
+
toolDefinitions: zod_1.z.array(mcp_defs_1.ToolDefinitionSchema).optional(),
|
|
220
|
+
/** Compute configuration. Required for Lambda/Runtime scaffold targets. */
|
|
210
221
|
compute: exports.ToolComputeConfigSchema.optional(),
|
|
222
|
+
/** MCP Server endpoint URL. Required for external MCP Server targets. */
|
|
223
|
+
endpoint: zod_1.z.string().url().optional(),
|
|
224
|
+
/** Outbound auth configuration for the target. */
|
|
225
|
+
outboundAuth: exports.OutboundAuthSchema.optional(),
|
|
211
226
|
})
|
|
212
|
-
.strict()
|
|
227
|
+
.strict()
|
|
228
|
+
.superRefine((data, ctx) => {
|
|
229
|
+
if (data.targetType === 'mcpServer' && !data.compute && !data.endpoint) {
|
|
230
|
+
ctx.addIssue({
|
|
231
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
232
|
+
message: 'MCP Server targets require either an endpoint URL or compute configuration.',
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
if (data.targetType === 'lambda' && !data.compute) {
|
|
236
|
+
ctx.addIssue({
|
|
237
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
238
|
+
message: 'Lambda targets require compute configuration.',
|
|
239
|
+
path: ['compute'],
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
if (data.targetType === 'lambda' && (!data.toolDefinitions || data.toolDefinitions.length === 0)) {
|
|
243
|
+
ctx.addIssue({
|
|
244
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
245
|
+
message: 'Lambda targets require at least one tool definition.',
|
|
246
|
+
path: ['toolDefinitions'],
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
if (data.outboundAuth && data.outboundAuth.type !== 'NONE' && !data.outboundAuth.credentialName) {
|
|
250
|
+
ctx.addIssue({
|
|
251
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
252
|
+
message: `${data.outboundAuth.type} outbound auth requires a credentialName.`,
|
|
253
|
+
path: ['outboundAuth', 'credentialName'],
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
});
|
|
213
257
|
// ============================================================================
|
|
214
258
|
// Gateway
|
|
215
259
|
// ============================================================================
|
|
@@ -280,6 +324,7 @@ exports.AgentCoreMcpSpecSchema = zod_1.z
|
|
|
280
324
|
.object({
|
|
281
325
|
agentCoreGateways: zod_1.z.array(exports.AgentCoreGatewaySchema),
|
|
282
326
|
mcpRuntimeTools: zod_1.z.array(exports.AgentCoreMcpRuntimeToolSchema).optional(),
|
|
327
|
+
unassignedTargets: zod_1.z.array(exports.AgentCoreGatewayTargetSchema).optional(),
|
|
283
328
|
})
|
|
284
329
|
.strict();
|
|
285
330
|
//# sourceMappingURL=mcp.js.map
|