@aws/agentcore 0.3.0-preview.6.1 → 0.3.0-preview.7.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 +12 -8
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +1 -0
- package/dist/assets/cdk/test/cdk.test.ts +1 -0
- package/dist/cli/index.mjs +648 -346
- package/dist/schema/schemas/agentcore-project.d.ts +19 -0
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +12 -1
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +65 -12
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +21 -3
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +42 -12
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +37 -5
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/index.d.ts +2 -0
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +7 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/policy.d.ts +48 -0
- package/dist/schema/schemas/primitives/policy.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/policy.js +60 -0
- package/dist/schema/schemas/primitives/policy.js.map +1 -0
- package/package.json +10 -3
- package/scripts/check-old-cli.lib.mjs +104 -0
- package/scripts/check-old-cli.mjs +7 -22
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EvaluationLevelSchema } from './primitives/evaluator';
|
|
2
2
|
import { DEFAULT_STRATEGY_NAMESPACES, MemoryStrategySchema, MemoryStrategyTypeSchema } from './primitives/memory';
|
|
3
|
+
import { PolicyEngineSchema } from './primitives/policy';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
export { DEFAULT_STRATEGY_NAMESPACES, MemoryStrategySchema, MemoryStrategyTypeSchema };
|
|
5
6
|
export { EvaluationLevelSchema };
|
|
@@ -8,6 +9,9 @@ export type { OnlineEvalConfig } from './primitives/online-eval-config';
|
|
|
8
9
|
export { OnlineEvalConfigSchema, OnlineEvalConfigNameSchema } from './primitives/online-eval-config';
|
|
9
10
|
export type { EvaluationLevel, EvaluatorConfig, LlmAsAJudgeConfig, RatingScale } from './primitives/evaluator';
|
|
10
11
|
export { BedrockModelIdSchema, isValidBedrockModelId, EvaluatorNameSchema } from './primitives/evaluator';
|
|
12
|
+
export { PolicyEngineSchema };
|
|
13
|
+
export type { Policy, PolicyEngine, ValidationMode } from './primitives/policy';
|
|
14
|
+
export { PolicyEngineNameSchema, PolicyNameSchema, PolicySchema, ValidationModeSchema } from './primitives/policy';
|
|
11
15
|
export declare const ProjectNameSchema: z.ZodString;
|
|
12
16
|
export declare const MemoryTypeSchema: z.ZodLiteral<"AgentCoreMemory">;
|
|
13
17
|
export type MemoryType = z.infer<typeof MemoryTypeSchema>;
|
|
@@ -213,6 +217,21 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
213
217
|
description: z.ZodOptional<z.ZodString>;
|
|
214
218
|
enableOnCreate: z.ZodOptional<z.ZodBoolean>;
|
|
215
219
|
}, z.core.$strip>>>;
|
|
220
|
+
policyEngines: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
221
|
+
name: z.ZodString;
|
|
222
|
+
description: z.ZodOptional<z.ZodString>;
|
|
223
|
+
encryptionKeyArn: z.ZodOptional<z.ZodString>;
|
|
224
|
+
policies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
description: z.ZodOptional<z.ZodString>;
|
|
227
|
+
statement: z.ZodString;
|
|
228
|
+
sourceFile: z.ZodOptional<z.ZodString>;
|
|
229
|
+
validationMode: z.ZodDefault<z.ZodEnum<{
|
|
230
|
+
FAIL_ON_ANY_FINDINGS: "FAIL_ON_ANY_FINDINGS";
|
|
231
|
+
IGNORE_ALL_FINDINGS: "IGNORE_ALL_FINDINGS";
|
|
232
|
+
}>>;
|
|
233
|
+
}, z.core.$strip>>>;
|
|
234
|
+
}, z.core.$strip>>>;
|
|
216
235
|
}, z.core.$strip>;
|
|
217
236
|
export type AgentCoreProjectSpec = z.infer<typeof AgentCoreProjectSpecSchema>;
|
|
218
237
|
//# sourceMappingURL=agentcore-project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcore-project.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,qBAAqB,EAA8C,MAAM,wBAAwB,CAAC;AAC3G,OAAO,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"agentcore-project.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,qBAAqB,EAA8C,MAAM,wBAAwB,CAAC;AAC3G,OAAO,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAElH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,CAAC;AACjC,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,YAAY,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACrG,YAAY,EAAE,eAAe,EAAE,eAAe,EAA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AC,CAAC;AAM1D,eAAO,MAAM,mBAAmB,iCAA+B,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AASxD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0FnC,CAAC;AAEL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentCoreProjectSpecSchema = exports.EvaluatorSchema = exports.EvaluatorTypeSchema = exports.CredentialSchema = exports.OAuthCredentialSchema = exports.ApiKeyCredentialSchema = exports.CredentialTypeSchema = exports.CredentialNameSchema = exports.MemorySchema = exports.MemoryNameSchema = exports.MemoryTypeSchema = exports.ProjectNameSchema = exports.EvaluatorNameSchema = exports.isValidBedrockModelId = exports.BedrockModelIdSchema = exports.OnlineEvalConfigNameSchema = exports.OnlineEvalConfigSchema = exports.EvaluationLevelSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = exports.DEFAULT_STRATEGY_NAMESPACES = void 0;
|
|
3
|
+
exports.AgentCoreProjectSpecSchema = exports.EvaluatorSchema = exports.EvaluatorTypeSchema = exports.CredentialSchema = exports.OAuthCredentialSchema = exports.ApiKeyCredentialSchema = exports.CredentialTypeSchema = exports.CredentialNameSchema = exports.MemorySchema = exports.MemoryNameSchema = exports.MemoryTypeSchema = exports.ProjectNameSchema = exports.ValidationModeSchema = exports.PolicySchema = exports.PolicyNameSchema = exports.PolicyEngineNameSchema = exports.PolicyEngineSchema = exports.EvaluatorNameSchema = exports.isValidBedrockModelId = exports.BedrockModelIdSchema = exports.OnlineEvalConfigNameSchema = exports.OnlineEvalConfigSchema = exports.EvaluationLevelSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = exports.DEFAULT_STRATEGY_NAMESPACES = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* AgentCore Project Schema - Resource-centric model
|
|
6
6
|
*
|
|
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "DEFAULT_STRATEGY_NAMESPACES", { enumerable: true
|
|
|
18
18
|
Object.defineProperty(exports, "MemoryStrategySchema", { enumerable: true, get: function () { return memory_1.MemoryStrategySchema; } });
|
|
19
19
|
Object.defineProperty(exports, "MemoryStrategyTypeSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyTypeSchema; } });
|
|
20
20
|
const online_eval_config_1 = require("./primitives/online-eval-config");
|
|
21
|
+
const policy_1 = require("./primitives/policy");
|
|
22
|
+
Object.defineProperty(exports, "PolicyEngineSchema", { enumerable: true, get: function () { return policy_1.PolicyEngineSchema; } });
|
|
21
23
|
const zod_util_1 = require("./zod-util");
|
|
22
24
|
const zod_1 = require("zod");
|
|
23
25
|
var online_eval_config_2 = require("./primitives/online-eval-config");
|
|
@@ -27,6 +29,11 @@ var evaluator_2 = require("./primitives/evaluator");
|
|
|
27
29
|
Object.defineProperty(exports, "BedrockModelIdSchema", { enumerable: true, get: function () { return evaluator_2.BedrockModelIdSchema; } });
|
|
28
30
|
Object.defineProperty(exports, "isValidBedrockModelId", { enumerable: true, get: function () { return evaluator_2.isValidBedrockModelId; } });
|
|
29
31
|
Object.defineProperty(exports, "EvaluatorNameSchema", { enumerable: true, get: function () { return evaluator_2.EvaluatorNameSchema; } });
|
|
32
|
+
var policy_2 = require("./primitives/policy");
|
|
33
|
+
Object.defineProperty(exports, "PolicyEngineNameSchema", { enumerable: true, get: function () { return policy_2.PolicyEngineNameSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "PolicyNameSchema", { enumerable: true, get: function () { return policy_2.PolicyNameSchema; } });
|
|
35
|
+
Object.defineProperty(exports, "PolicySchema", { enumerable: true, get: function () { return policy_2.PolicySchema; } });
|
|
36
|
+
Object.defineProperty(exports, "ValidationModeSchema", { enumerable: true, get: function () { return policy_2.ValidationModeSchema; } });
|
|
30
37
|
// ============================================================================
|
|
31
38
|
// Project Name Schema
|
|
32
39
|
// ============================================================================
|
|
@@ -126,6 +133,10 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
|
|
|
126
133
|
.array(online_eval_config_1.OnlineEvalConfigSchema)
|
|
127
134
|
.default([])
|
|
128
135
|
.superRefine((0, zod_util_1.uniqueBy)(config => config.name, name => `Duplicate online eval config name: ${name}`)),
|
|
136
|
+
policyEngines: zod_1.z
|
|
137
|
+
.array(policy_1.PolicyEngineSchema)
|
|
138
|
+
.default([])
|
|
139
|
+
.superRefine((0, zod_util_1.uniqueBy)(engine => engine.name, name => `Duplicate policy engine name: ${name}`)),
|
|
129
140
|
})
|
|
130
141
|
.superRefine((spec, ctx) => {
|
|
131
142
|
const agentNames = new Set(spec.agents.map(a => a.name));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcore-project.js","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,4CAAqD;AACrD,2CAAiD;AACjD,sDAA2G;
|
|
1
|
+
{"version":3,"file":"agentcore-project.js","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,4CAAqD;AACrD,2CAAiD;AACjD,sDAA2G;AASlG,sGATA,iCAAqB,OASA;AAR9B,gDAAkH;AAOzG,4GAPA,oCAA2B,OAOA;AAAE,qGAPA,6BAAoB,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AAC,CAAC,CAAC;IACzD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAEjE,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC5C,2BAA2B;QAC3B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YAClC,GAAG,CAAC,QAAQ,CAAC;gBACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;gBAC3B,OAAO,EAAE,uBAAuB,MAAM,CAAC,IAAI,+BAA+B,MAAM,CAAC,KAAK,GAAG;aAC1F,CAAC,CAAC;QACL,CAAC;QAED,gCAAgC;QAChC,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;YACzC,mEAAmE;YACnE,IAAI,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;gBAAE,SAAS;YAC/F,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAClC,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;oBAC3B,OAAO,EAAE,uBAAuB,MAAM,CAAC,IAAI,mCAAmC,QAAQ,GAAG;iBAC1F,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -54,8 +54,9 @@ export declare const ExternallyManagedResourceSchema: z.ZodObject<{
|
|
|
54
54
|
export type ExternallyManagedResource = z.infer<typeof ExternallyManagedResourceSchema>;
|
|
55
55
|
export declare const CustomJwtAuthorizerSchema: z.ZodObject<{
|
|
56
56
|
name: z.ZodString;
|
|
57
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
58
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
57
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
60
|
discoveryUrl: z.ZodString;
|
|
60
61
|
}, z.core.$strip>;
|
|
61
62
|
export type CustomJwtAuthorizer = z.infer<typeof CustomJwtAuthorizerSchema>;
|
|
@@ -68,8 +69,9 @@ export type VpcConfig = z.infer<typeof VpcConfigSchema>;
|
|
|
68
69
|
export declare const ExternallyManagedStateSchema: z.ZodObject<{
|
|
69
70
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
70
71
|
name: z.ZodString;
|
|
71
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
72
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
72
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
75
|
discoveryUrl: z.ZodString;
|
|
74
76
|
}, z.core.$strip>>;
|
|
75
77
|
vpcConfig: z.ZodOptional<z.ZodObject<{
|
|
@@ -79,6 +81,17 @@ export declare const ExternallyManagedStateSchema: z.ZodObject<{
|
|
|
79
81
|
}, z.core.$strip>>;
|
|
80
82
|
}, z.core.$strip>;
|
|
81
83
|
export type ExternallyManagedState = z.infer<typeof ExternallyManagedStateSchema>;
|
|
84
|
+
export declare const PolicyEngineDeployedStateSchema: z.ZodObject<{
|
|
85
|
+
policyEngineId: z.ZodString;
|
|
86
|
+
policyEngineArn: z.ZodString;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export type PolicyEngineDeployedState = z.infer<typeof PolicyEngineDeployedStateSchema>;
|
|
89
|
+
export declare const PolicyDeployedStateSchema: z.ZodObject<{
|
|
90
|
+
policyId: z.ZodString;
|
|
91
|
+
policyArn: z.ZodString;
|
|
92
|
+
engineName: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type PolicyDeployedState = z.infer<typeof PolicyDeployedStateSchema>;
|
|
82
95
|
export declare const CredentialDeployedStateSchema: z.ZodObject<{
|
|
83
96
|
credentialProviderArn: z.ZodString;
|
|
84
97
|
clientSecretArn: z.ZodOptional<z.ZodString>;
|
|
@@ -132,8 +145,9 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
132
145
|
externallyManaged: z.ZodOptional<z.ZodObject<{
|
|
133
146
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
134
147
|
name: z.ZodString;
|
|
135
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
136
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
148
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
149
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
151
|
discoveryUrl: z.ZodString;
|
|
138
152
|
}, z.core.$strip>>;
|
|
139
153
|
vpcConfig: z.ZodOptional<z.ZodObject<{
|
|
@@ -159,6 +173,15 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
159
173
|
DISABLED: "DISABLED";
|
|
160
174
|
}>>;
|
|
161
175
|
}, z.core.$strip>>>;
|
|
176
|
+
policyEngines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
177
|
+
policyEngineId: z.ZodString;
|
|
178
|
+
policyEngineArn: z.ZodString;
|
|
179
|
+
}, z.core.$strip>>>;
|
|
180
|
+
policies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
181
|
+
policyId: z.ZodString;
|
|
182
|
+
policyArn: z.ZodString;
|
|
183
|
+
engineName: z.ZodString;
|
|
184
|
+
}, z.core.$strip>>>;
|
|
162
185
|
stackName: z.ZodOptional<z.ZodString>;
|
|
163
186
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
164
187
|
}, z.core.$strip>;
|
|
@@ -197,8 +220,9 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
197
220
|
externallyManaged: z.ZodOptional<z.ZodObject<{
|
|
198
221
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
199
222
|
name: z.ZodString;
|
|
200
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
201
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
223
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
225
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
226
|
discoveryUrl: z.ZodString;
|
|
203
227
|
}, z.core.$strip>>;
|
|
204
228
|
vpcConfig: z.ZodOptional<z.ZodObject<{
|
|
@@ -224,6 +248,15 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
224
248
|
DISABLED: "DISABLED";
|
|
225
249
|
}>>;
|
|
226
250
|
}, z.core.$strip>>>;
|
|
251
|
+
policyEngines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
252
|
+
policyEngineId: z.ZodString;
|
|
253
|
+
policyEngineArn: z.ZodString;
|
|
254
|
+
}, z.core.$strip>>>;
|
|
255
|
+
policies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
256
|
+
policyId: z.ZodString;
|
|
257
|
+
policyArn: z.ZodString;
|
|
258
|
+
engineName: z.ZodString;
|
|
259
|
+
}, z.core.$strip>>>;
|
|
227
260
|
stackName: z.ZodOptional<z.ZodString>;
|
|
228
261
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
229
262
|
}, z.core.$strip>>;
|
|
@@ -268,8 +301,9 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
268
301
|
externallyManaged: z.ZodOptional<z.ZodObject<{
|
|
269
302
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
270
303
|
name: z.ZodString;
|
|
271
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
272
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
304
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
305
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
306
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
273
307
|
discoveryUrl: z.ZodString;
|
|
274
308
|
}, z.core.$strip>>;
|
|
275
309
|
vpcConfig: z.ZodOptional<z.ZodObject<{
|
|
@@ -295,6 +329,15 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
295
329
|
DISABLED: "DISABLED";
|
|
296
330
|
}>>;
|
|
297
331
|
}, z.core.$strip>>>;
|
|
332
|
+
policyEngines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
333
|
+
policyEngineId: z.ZodString;
|
|
334
|
+
policyEngineArn: z.ZodString;
|
|
335
|
+
}, z.core.$strip>>>;
|
|
336
|
+
policies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
337
|
+
policyId: z.ZodString;
|
|
338
|
+
policyArn: z.ZodString;
|
|
339
|
+
engineName: z.ZodString;
|
|
340
|
+
}, z.core.$strip>>>;
|
|
298
341
|
stackName: z.ZodOptional<z.ZodString>;
|
|
299
342
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
300
343
|
}, z.core.$strip>>;
|
|
@@ -340,8 +383,9 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
340
383
|
externallyManaged: z.ZodOptional<z.ZodObject<{
|
|
341
384
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
342
385
|
name: z.ZodString;
|
|
343
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
344
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
386
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
387
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
388
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
345
389
|
discoveryUrl: z.ZodString;
|
|
346
390
|
}, z.core.$strip>>;
|
|
347
391
|
vpcConfig: z.ZodOptional<z.ZodObject<{
|
|
@@ -367,6 +411,15 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
367
411
|
DISABLED: "DISABLED";
|
|
368
412
|
}>>;
|
|
369
413
|
}, z.core.$strip>>>;
|
|
414
|
+
policyEngines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
415
|
+
policyEngineId: z.ZodString;
|
|
416
|
+
policyEngineArn: z.ZodString;
|
|
417
|
+
}, z.core.$strip>>>;
|
|
418
|
+
policies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
419
|
+
policyId: z.ZodString;
|
|
420
|
+
policyArn: z.ZodString;
|
|
421
|
+
engineName: z.ZodString;
|
|
422
|
+
}, z.core.$strip>>>;
|
|
370
423
|
stackName: z.ZodOptional<z.ZodString>;
|
|
371
424
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
372
425
|
}, 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,yBAAyB;;;iBAGpC,CAA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;;;;;;;;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.OnlineEvalDeployedStateSchema = exports.EvaluatorDeployedStateSchema = exports.CredentialDeployedStateSchema = exports.ExternallyManagedStateSchema = exports.VpcConfigSchema = exports.CustomJwtAuthorizerSchema = exports.ExternallyManagedResourceSchema = exports.McpDeployedStateSchema = exports.McpLambdaDeployedStateSchema = exports.McpRuntimeDeployedStateSchema = exports.GatewayDeployedStateSchema = exports.MemoryDeployedStateSchema = exports.AgentCoreDeployedStateSchema = void 0;
|
|
3
|
+
exports.DeployedStateSchema = exports.TargetDeployedStateSchema = exports.DeployedResourceStateSchema = exports.OnlineEvalDeployedStateSchema = exports.EvaluatorDeployedStateSchema = exports.CredentialDeployedStateSchema = exports.PolicyDeployedStateSchema = exports.PolicyEngineDeployedStateSchema = 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");
|
|
@@ -61,8 +61,9 @@ exports.ExternallyManagedResourceSchema = zod_1.z.object({
|
|
|
61
61
|
name: zod_1.z.string().min(1),
|
|
62
62
|
});
|
|
63
63
|
exports.CustomJwtAuthorizerSchema = exports.ExternallyManagedResourceSchema.extend({
|
|
64
|
-
allowedAudience: zod_1.z.array(zod_1.z.string()),
|
|
65
|
-
allowedClients: zod_1.z.array(zod_1.z.string()),
|
|
64
|
+
allowedAudience: zod_1.z.array(zod_1.z.string()).optional(),
|
|
65
|
+
allowedClients: zod_1.z.array(zod_1.z.string()).optional(),
|
|
66
|
+
allowedScopes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
66
67
|
discoveryUrl: zod_1.z.string(),
|
|
67
68
|
});
|
|
68
69
|
exports.VpcConfigSchema = exports.ExternallyManagedResourceSchema.extend({
|
|
@@ -74,6 +75,21 @@ exports.ExternallyManagedStateSchema = zod_1.z.object({
|
|
|
74
75
|
vpcConfig: exports.VpcConfigSchema.optional(),
|
|
75
76
|
});
|
|
76
77
|
// ============================================================================
|
|
78
|
+
// Policy Engine Deployed State
|
|
79
|
+
// ============================================================================
|
|
80
|
+
exports.PolicyEngineDeployedStateSchema = zod_1.z.object({
|
|
81
|
+
policyEngineId: zod_1.z.string().min(1),
|
|
82
|
+
policyEngineArn: zod_1.z.string().min(1),
|
|
83
|
+
});
|
|
84
|
+
// ============================================================================
|
|
85
|
+
// Policy Deployed State
|
|
86
|
+
// ============================================================================
|
|
87
|
+
exports.PolicyDeployedStateSchema = zod_1.z.object({
|
|
88
|
+
policyId: zod_1.z.string().min(1),
|
|
89
|
+
policyArn: zod_1.z.string().min(1),
|
|
90
|
+
engineName: zod_1.z.string().min(1),
|
|
91
|
+
});
|
|
92
|
+
// ============================================================================
|
|
77
93
|
// Credential Deployed State
|
|
78
94
|
// ============================================================================
|
|
79
95
|
exports.CredentialDeployedStateSchema = zod_1.z.object({
|
|
@@ -107,6 +123,8 @@ exports.DeployedResourceStateSchema = zod_1.z.object({
|
|
|
107
123
|
credentials: zod_1.z.record(zod_1.z.string(), exports.CredentialDeployedStateSchema).optional(),
|
|
108
124
|
evaluators: zod_1.z.record(zod_1.z.string(), exports.EvaluatorDeployedStateSchema).optional(),
|
|
109
125
|
onlineEvalConfigs: zod_1.z.record(zod_1.z.string(), exports.OnlineEvalDeployedStateSchema).optional(),
|
|
126
|
+
policyEngines: zod_1.z.record(zod_1.z.string(), exports.PolicyEngineDeployedStateSchema).optional(),
|
|
127
|
+
policies: zod_1.z.record(zod_1.z.string(), exports.PolicyDeployedStateSchema).optional(),
|
|
110
128
|
stackName: zod_1.z.string().optional(),
|
|
111
129
|
identityKmsKeyArn: zod_1.z.string().optional(),
|
|
112
130
|
});
|
|
@@ -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":";;;AAyNA,gFAYC;AArOD,+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,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAIH,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAElE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,SAAS,EAAE,OAAC,CAAC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,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAIH,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAElE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,SAAS,EAAE,mCAA2B,CAAC,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"}
|
|
@@ -18,13 +18,16 @@ export type GatewayAuthorizerType = z.infer<typeof GatewayAuthorizerTypeSchema>;
|
|
|
18
18
|
/**
|
|
19
19
|
* Custom JWT authorizer configuration.
|
|
20
20
|
* Used when authorizerType is 'CUSTOM_JWT'.
|
|
21
|
+
*
|
|
22
|
+
* At least one of allowedAudience, allowedClients, or allowedScopes
|
|
23
|
+
* must be provided. Only discoveryUrl is unconditionally required.
|
|
21
24
|
*/
|
|
22
25
|
export declare const CustomJwtAuthorizerConfigSchema: z.ZodObject<{
|
|
23
26
|
discoveryUrl: z.ZodString;
|
|
24
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
25
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
27
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
29
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$strict>;
|
|
28
31
|
export type CustomJwtAuthorizerConfig = z.infer<typeof CustomJwtAuthorizerConfigSchema>;
|
|
29
32
|
/**
|
|
30
33
|
* Gateway authorizer configuration container.
|
|
@@ -32,10 +35,10 @@ export type CustomJwtAuthorizerConfig = z.infer<typeof CustomJwtAuthorizerConfig
|
|
|
32
35
|
export declare const GatewayAuthorizerConfigSchema: z.ZodObject<{
|
|
33
36
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
34
37
|
discoveryUrl: z.ZodString;
|
|
35
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
36
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
38
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
40
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$strict>>;
|
|
39
42
|
}, z.core.$strip>;
|
|
40
43
|
export type GatewayAuthorizerConfig = z.infer<typeof GatewayAuthorizerConfigSchema>;
|
|
41
44
|
export declare const OutboundAuthTypeSchema: z.ZodEnum<{
|
|
@@ -553,6 +556,19 @@ export declare const GatewayExceptionLevelSchema: z.ZodEnum<{
|
|
|
553
556
|
DEBUG: "DEBUG";
|
|
554
557
|
}>;
|
|
555
558
|
export type GatewayExceptionLevel = z.infer<typeof GatewayExceptionLevelSchema>;
|
|
559
|
+
export declare const PolicyEngineModeSchema: z.ZodEnum<{
|
|
560
|
+
LOG_ONLY: "LOG_ONLY";
|
|
561
|
+
ENFORCE: "ENFORCE";
|
|
562
|
+
}>;
|
|
563
|
+
export type PolicyEngineMode = z.infer<typeof PolicyEngineModeSchema>;
|
|
564
|
+
export declare const GatewayPolicyEngineConfigurationSchema: z.ZodObject<{
|
|
565
|
+
policyEngineName: z.ZodString;
|
|
566
|
+
mode: z.ZodEnum<{
|
|
567
|
+
LOG_ONLY: "LOG_ONLY";
|
|
568
|
+
ENFORCE: "ENFORCE";
|
|
569
|
+
}>;
|
|
570
|
+
}, z.core.$strict>;
|
|
571
|
+
export type GatewayPolicyEngineConfiguration = z.infer<typeof GatewayPolicyEngineConfigurationSchema>;
|
|
556
572
|
/**
|
|
557
573
|
* Gateway abstraction with opinionated defaults.
|
|
558
574
|
* Supports NONE (default) or CUSTOM_JWT authorizer types.
|
|
@@ -703,16 +719,23 @@ export declare const AgentCoreGatewaySchema: z.ZodObject<{
|
|
|
703
719
|
authorizerConfiguration: z.ZodOptional<z.ZodObject<{
|
|
704
720
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
705
721
|
discoveryUrl: z.ZodString;
|
|
706
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
707
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
722
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
723
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
708
724
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
709
|
-
}, z.core.$
|
|
725
|
+
}, z.core.$strict>>;
|
|
710
726
|
}, z.core.$strip>>;
|
|
711
727
|
enableSemanticSearch: z.ZodDefault<z.ZodBoolean>;
|
|
712
728
|
exceptionLevel: z.ZodDefault<z.ZodEnum<{
|
|
713
729
|
NONE: "NONE";
|
|
714
730
|
DEBUG: "DEBUG";
|
|
715
731
|
}>>;
|
|
732
|
+
policyEngineConfiguration: z.ZodOptional<z.ZodObject<{
|
|
733
|
+
policyEngineName: z.ZodString;
|
|
734
|
+
mode: z.ZodEnum<{
|
|
735
|
+
LOG_ONLY: "LOG_ONLY";
|
|
736
|
+
ENFORCE: "ENFORCE";
|
|
737
|
+
}>;
|
|
738
|
+
}, z.core.$strict>>;
|
|
716
739
|
}, z.core.$strict>;
|
|
717
740
|
export type AgentCoreGateway = z.infer<typeof AgentCoreGatewaySchema>;
|
|
718
741
|
/**
|
|
@@ -934,16 +957,23 @@ export declare const AgentCoreMcpSpecSchema: z.ZodObject<{
|
|
|
934
957
|
authorizerConfiguration: z.ZodOptional<z.ZodObject<{
|
|
935
958
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
936
959
|
discoveryUrl: z.ZodString;
|
|
937
|
-
allowedAudience: z.ZodArray<z.ZodString
|
|
938
|
-
allowedClients: z.ZodArray<z.ZodString
|
|
960
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
961
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
939
962
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
940
|
-
}, z.core.$
|
|
963
|
+
}, z.core.$strict>>;
|
|
941
964
|
}, z.core.$strip>>;
|
|
942
965
|
enableSemanticSearch: z.ZodDefault<z.ZodBoolean>;
|
|
943
966
|
exceptionLevel: z.ZodDefault<z.ZodEnum<{
|
|
944
967
|
NONE: "NONE";
|
|
945
968
|
DEBUG: "DEBUG";
|
|
946
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>>;
|
|
947
977
|
}, z.core.$strict>>;
|
|
948
978
|
mcpRuntimeTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
949
979
|
name: z.ZodString;
|
|
@@ -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;AAGxD,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;AAMxE,eAAO,MAAM,2BAA2B;;;;EAA4C,CAAC;AACrF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,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;AAGxD,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;AAMxE,eAAO,MAAM,2BAA2B;;;;EAA4C,CAAC;AACrF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAoBhF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;kBAuBxC,CAAC;AAEL,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;iBAExC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,sBAAsB;;;;EAAuC,CAAC;AAC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G,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAO/B,CAAC;AAEZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAMpF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.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.GatewayAuthorizerTypeSchema = exports.GatewayTargetTypeSchema = void 0;
|
|
3
|
+
exports.AgentCoreMcpSpecSchema = 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.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");
|
|
@@ -30,21 +30,41 @@ const OIDC_WELL_KNOWN_SUFFIX = '/.well-known/openid-configuration';
|
|
|
30
30
|
const OidcDiscoveryUrlSchema = zod_1.z
|
|
31
31
|
.string()
|
|
32
32
|
.url('Must be a valid URL')
|
|
33
|
+
.refine(url => url.startsWith('https://'), {
|
|
34
|
+
message: 'OIDC discovery URL must use HTTPS',
|
|
35
|
+
})
|
|
33
36
|
.refine(url => url.endsWith(OIDC_WELL_KNOWN_SUFFIX), {
|
|
34
37
|
message: `OIDC discovery URL must end with '${OIDC_WELL_KNOWN_SUFFIX}'`,
|
|
35
38
|
});
|
|
36
39
|
/**
|
|
37
40
|
* Custom JWT authorizer configuration.
|
|
38
41
|
* Used when authorizerType is 'CUSTOM_JWT'.
|
|
42
|
+
*
|
|
43
|
+
* At least one of allowedAudience, allowedClients, or allowedScopes
|
|
44
|
+
* must be provided. Only discoveryUrl is unconditionally required.
|
|
39
45
|
*/
|
|
40
|
-
exports.CustomJwtAuthorizerConfigSchema = zod_1.z
|
|
46
|
+
exports.CustomJwtAuthorizerConfigSchema = zod_1.z
|
|
47
|
+
.object({
|
|
41
48
|
/** OIDC discovery URL (e.g., https://cognito-idp.{region}.amazonaws.com/{userPoolId}/.well-known/openid-configuration) */
|
|
42
49
|
discoveryUrl: OidcDiscoveryUrlSchema,
|
|
43
|
-
/** List of allowed audiences (typically client IDs)
|
|
44
|
-
allowedAudience: zod_1.z.array(zod_1.z.string().min(1)),
|
|
50
|
+
/** List of allowed audiences (typically client IDs) */
|
|
51
|
+
allowedAudience: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
45
52
|
/** List of allowed client IDs */
|
|
46
|
-
allowedClients: zod_1.z.array(zod_1.z.string().min(1)).
|
|
53
|
+
allowedClients: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
54
|
+
/** List of allowed scopes */
|
|
47
55
|
allowedScopes: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
56
|
+
})
|
|
57
|
+
.strict()
|
|
58
|
+
.superRefine((data, ctx) => {
|
|
59
|
+
const hasAudience = data.allowedAudience && data.allowedAudience.length > 0;
|
|
60
|
+
const hasClients = data.allowedClients && data.allowedClients.length > 0;
|
|
61
|
+
const hasScopes = data.allowedScopes && data.allowedScopes.length > 0;
|
|
62
|
+
if (!hasAudience && !hasClients && !hasScopes) {
|
|
63
|
+
ctx.addIssue({
|
|
64
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
65
|
+
message: 'At least one of allowedAudience, allowedClients, or allowedScopes must be provided',
|
|
66
|
+
});
|
|
67
|
+
}
|
|
48
68
|
});
|
|
49
69
|
/**
|
|
50
70
|
* Gateway authorizer configuration container.
|
|
@@ -506,6 +526,16 @@ exports.AgentCoreGatewayTargetSchema = zod_1.z
|
|
|
506
526
|
// ============================================================================
|
|
507
527
|
exports.GatewayExceptionLevelSchema = zod_1.z.enum(['NONE', 'DEBUG']);
|
|
508
528
|
// ============================================================================
|
|
529
|
+
// Gateway Policy Engine Configuration
|
|
530
|
+
// ============================================================================
|
|
531
|
+
exports.PolicyEngineModeSchema = zod_1.z.enum(['LOG_ONLY', 'ENFORCE']);
|
|
532
|
+
exports.GatewayPolicyEngineConfigurationSchema = zod_1.z
|
|
533
|
+
.object({
|
|
534
|
+
policyEngineName: zod_1.z.string().min(1),
|
|
535
|
+
mode: exports.PolicyEngineModeSchema,
|
|
536
|
+
})
|
|
537
|
+
.strict();
|
|
538
|
+
// ============================================================================
|
|
509
539
|
// Gateway
|
|
510
540
|
// ============================================================================
|
|
511
541
|
/**
|
|
@@ -525,6 +555,8 @@ exports.AgentCoreGatewaySchema = zod_1.z
|
|
|
525
555
|
enableSemanticSearch: zod_1.z.boolean().default(true),
|
|
526
556
|
/** Exception verbosity level. 'NONE' = generic errors (default), 'DEBUG' = verbose errors. */
|
|
527
557
|
exceptionLevel: exports.GatewayExceptionLevelSchema.default('NONE'),
|
|
558
|
+
/** Policy engine configuration for Cedar-based authorization of tool calls. */
|
|
559
|
+
policyEngineConfiguration: exports.GatewayPolicyEngineConfigurationSchema.optional(),
|
|
528
560
|
})
|
|
529
561
|
.strict()
|
|
530
562
|
.refine(data => {
|