@aws/agentcore-cdk 0.1.0-alpha.35 → 0.1.0-alpha.38
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/dist/cdk/constructs/components/mcp/Gateway.d.ts +11 -0
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts.map +1 -1
- package/dist/cdk/constructs/components/mcp/Gateway.js +377 -4
- package/dist/cdk/constructs/components/mcp/Gateway.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/connector-defaults.d.ts +20 -0
- package/dist/cdk/constructs/components/mcp/connector-defaults.d.ts.map +1 -0
- package/dist/cdk/constructs/components/mcp/connector-defaults.js +16 -0
- package/dist/cdk/constructs/components/mcp/connector-defaults.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts +36 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js +65 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js +68 -22
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts +64 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js +91 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts +25 -6
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js +133 -11
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts +47 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js +388 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/index.d.ts +1 -0
- package/dist/cdk/constructs/components/primitives/harness/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/harness/index.js +3 -1
- package/dist/cdk/constructs/components/primitives/harness/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/index.d.ts +4 -1
- package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/index.js +9 -1
- package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts +69 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js +292 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts +28 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js +44 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts +38 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js +111 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/payment/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/index.js +8 -0
- package/dist/cdk/constructs/components/primitives/payment/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js +20 -5
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js.map +1 -1
- package/dist/cdk/constructs/index.d.ts +2 -2
- package/dist/cdk/constructs/index.d.ts.map +1 -1
- package/dist/cdk/constructs/index.js +6 -1
- package/dist/cdk/constructs/index.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +74 -4
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.js +264 -2
- package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts +24 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js +27 -3
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.js +25 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts +6 -0
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.js +7 -0
- package/dist/cdk/constructs/l3/AgentEnvironment.js.map +1 -1
- package/dist/cdk/constructs/l3/index.d.ts +1 -1
- package/dist/cdk/constructs/l3/index.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/index.js.map +1 -1
- package/dist/cdk/feature-flags.d.ts +15 -0
- package/dist/cdk/feature-flags.d.ts.map +1 -0
- package/dist/cdk/feature-flags.js +19 -0
- package/dist/cdk/feature-flags.js.map +1 -0
- package/dist/cdk/index.d.ts +1 -1
- package/dist/cdk/index.d.ts.map +1 -1
- package/dist/cdk/index.js +7 -1
- package/dist/cdk/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +35 -0
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +233 -4
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +125 -6
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +171 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -1
- package/dist/schema/schemas/auth.js +125 -3
- package/dist/schema/schemas/auth.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +254 -0
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +452 -4
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/harness.d.ts +369 -19
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/harness.js +390 -21
- package/dist/schema/schemas/primitives/harness.js.map +1 -1
- package/dist/schema/schemas/primitives/index.d.ts +5 -1
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +31 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/knowledge-base.d.ts +103 -0
- package/dist/schema/schemas/primitives/knowledge-base.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/knowledge-base.js +98 -0
- package/dist/schema/schemas/primitives/knowledge-base.js.map +1 -0
- package/dist/schema/schemas/primitives/memory.d.ts +2 -2
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts +19 -2
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/online-evaluation-config.js +39 -5
- package/dist/schema/schemas/primitives/online-evaluation-config.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-env.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agent-env.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAClE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM1G,eAAO,MAAM,eAAe,aAOzB,CAAC;AAEJ,eAAO,MAAM,gBAAgB,aAO1B,CAAC;AAEJ,eAAO,MAAM,iBAAiB,aAO3B,CAAC;AAMJ,wCAAwC;AACxC,eAAO,MAAM,YAAY;;;EAAgC,CAAC;AAC1D,MAAM,MAA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CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,uEAAuE;AACvE,eAAO,MAAM,0BAA0B;;;iBAcrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,4EAA4E;AAC5E,eAAO,MAAM,8BAA8B;;;iBAiBzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;mBAIxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;iBAiBrC,CAAC;AACL,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAMlF;;GAEG;AACH,eAAO,MAAM,yBAAyB,aAOnC,CAAC;AAEJ,eAAO,MAAM,qBAAqB;;;iBAKhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiJ3B,CAAC;AAEL,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -12,11 +12,15 @@ export type { Policy, PolicyEngine, ValidationMode } from './primitives/policy';
|
|
|
12
12
|
export { PolicyEngineNameSchema, PolicyNameSchema, PolicySchema, ValidationModeSchema } from './primitives/policy';
|
|
13
13
|
export type { Dataset, DatasetSchemaType } from './primitives/dataset';
|
|
14
14
|
export { DatasetNameSchema, DatasetSchema, DatasetSchemaTypeSchema } from './primitives/dataset';
|
|
15
|
+
export type { KnowledgeBase, DataSource, S3DataSource } from './primitives/knowledge-base';
|
|
16
|
+
export { KnowledgeBaseSchema, KnowledgeBaseNameSchema, S3DataSourceSchema, DataSourceSchema, } from './primitives/knowledge-base';
|
|
15
17
|
export { ConfigBundleSchema };
|
|
16
18
|
export type { ConfigBundle, ComponentConfiguration, ComponentConfigurationMap } from './primitives/config-bundle';
|
|
17
19
|
export { ConfigBundleNameSchema, ConfigBundleDescriptionSchema, ComponentConfigurationSchema, ComponentConfigurationMapSchema, } from './primitives/config-bundle';
|
|
18
20
|
export { TagsSchema };
|
|
19
21
|
export type { Tags } from './primitives/tags';
|
|
22
|
+
export type { HarnessSpec, HarnessModel, HarnessModelProvider, HarnessTool, HarnessToolType, HarnessMemoryRef, HarnessTruncationConfig, HarnessGatewayOutboundAuth, BedrockApiFormat, OpenAiApiFormat, HarnessApiFormat, } from './primitives/harness';
|
|
23
|
+
export { HarnessSpecSchema, HarnessModelSchema, HarnessModelProviderSchema, HarnessToolSchema, HarnessToolTypeSchema, HarnessMemoryRefSchema, HarnessTruncationConfigSchema, HarnessGatewayOutboundAuthSchema, GatewayOAuthGrantTypeSchema, BedrockApiFormatSchema, OpenAiApiFormatSchema, HarnessApiFormatSchema, validateApiFormat, } from './primitives/harness';
|
|
20
24
|
export declare const ManagedBySchema: z.ZodDefault<z.ZodEnum<{
|
|
21
25
|
CDK: "CDK";
|
|
22
26
|
}>>;
|
|
@@ -50,10 +54,10 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
50
54
|
eventExpiryDuration: z.ZodNumber;
|
|
51
55
|
strategies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
52
56
|
type: z.ZodEnum<{
|
|
57
|
+
CUSTOM: "CUSTOM";
|
|
53
58
|
SEMANTIC: "SEMANTIC";
|
|
54
59
|
SUMMARIZATION: "SUMMARIZATION";
|
|
55
60
|
USER_PREFERENCE: "USER_PREFERENCE";
|
|
56
|
-
CUSTOM: "CUSTOM";
|
|
57
61
|
EPISODIC: "EPISODIC";
|
|
58
62
|
}>;
|
|
59
63
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -94,6 +98,7 @@ export declare const CredentialNameSchema: z.ZodString;
|
|
|
94
98
|
export declare const CredentialTypeSchema: z.ZodEnum<{
|
|
95
99
|
ApiKeyCredentialProvider: "ApiKeyCredentialProvider";
|
|
96
100
|
OAuthCredentialProvider: "OAuthCredentialProvider";
|
|
101
|
+
PaymentCredentialProvider: "PaymentCredentialProvider";
|
|
97
102
|
}>;
|
|
98
103
|
export type CredentialType = z.infer<typeof CredentialTypeSchema>;
|
|
99
104
|
export declare const ApiKeyCredentialSchema: z.ZodObject<{
|
|
@@ -110,6 +115,20 @@ export declare const OAuthCredentialSchema: z.ZodObject<{
|
|
|
110
115
|
managed: z.ZodOptional<z.ZodBoolean>;
|
|
111
116
|
}, z.core.$strip>;
|
|
112
117
|
export type OAuthCredential = z.infer<typeof OAuthCredentialSchema>;
|
|
118
|
+
export declare const PaymentProviderSchema: z.ZodEnum<{
|
|
119
|
+
CoinbaseCDP: "CoinbaseCDP";
|
|
120
|
+
StripePrivy: "StripePrivy";
|
|
121
|
+
}>;
|
|
122
|
+
export type PaymentProvider = z.infer<typeof PaymentProviderSchema>;
|
|
123
|
+
export declare const PaymentCredentialSchema: z.ZodObject<{
|
|
124
|
+
authorizerType: z.ZodLiteral<"PaymentCredentialProvider">;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
provider: z.ZodEnum<{
|
|
127
|
+
CoinbaseCDP: "CoinbaseCDP";
|
|
128
|
+
StripePrivy: "StripePrivy";
|
|
129
|
+
}>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type PaymentCredential = z.infer<typeof PaymentCredentialSchema>;
|
|
113
132
|
export declare const CredentialSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
114
133
|
authorizerType: z.ZodLiteral<"ApiKeyCredentialProvider">;
|
|
115
134
|
name: z.ZodString;
|
|
@@ -120,6 +139,13 @@ export declare const CredentialSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
120
139
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
140
|
vendor: z.ZodDefault<z.ZodString>;
|
|
122
141
|
managed: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
143
|
+
authorizerType: z.ZodLiteral<"PaymentCredentialProvider">;
|
|
144
|
+
name: z.ZodString;
|
|
145
|
+
provider: z.ZodEnum<{
|
|
146
|
+
CoinbaseCDP: "CoinbaseCDP";
|
|
147
|
+
StripePrivy: "StripePrivy";
|
|
148
|
+
}>;
|
|
123
149
|
}, z.core.$strip>], "authorizerType">;
|
|
124
150
|
export type Credential = z.infer<typeof CredentialSchema>;
|
|
125
151
|
export declare const EvaluatorTypeSchema: z.ZodLiteral<"CustomEvaluator">;
|
|
@@ -170,6 +196,7 @@ export declare const HarnessRegistryEntrySchema: z.ZodObject<{
|
|
|
170
196
|
}, z.core.$strip>;
|
|
171
197
|
export type HarnessRegistryEntry = z.infer<typeof HarnessRegistryEntrySchema>;
|
|
172
198
|
export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
199
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
173
200
|
name: z.ZodString;
|
|
174
201
|
version: z.ZodNumber;
|
|
175
202
|
managedBy: z.ZodDefault<z.ZodEnum<{
|
|
@@ -247,6 +274,41 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
247
274
|
}, z.core.$strip>;
|
|
248
275
|
}, z.core.$strip>;
|
|
249
276
|
}, z.core.$strict>>>;
|
|
277
|
+
privateEndpoint: z.ZodOptional<z.ZodObject<{
|
|
278
|
+
selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
resourceConfigurationIdentifier: z.ZodString;
|
|
280
|
+
}, z.core.$strict>>;
|
|
281
|
+
managedVpcResource: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
vpcIdentifier: z.ZodString;
|
|
283
|
+
subnetIds: z.ZodArray<z.ZodString>;
|
|
284
|
+
endpointIpAddressType: z.ZodEnum<{
|
|
285
|
+
IPV4: "IPV4";
|
|
286
|
+
IPV6: "IPV6";
|
|
287
|
+
}>;
|
|
288
|
+
securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
289
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
290
|
+
routingDomain: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strict>>;
|
|
292
|
+
}, z.core.$strict>>;
|
|
293
|
+
privateEndpointOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
+
domain: z.ZodString;
|
|
295
|
+
privateEndpoint: z.ZodObject<{
|
|
296
|
+
selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
|
|
297
|
+
resourceConfigurationIdentifier: z.ZodString;
|
|
298
|
+
}, z.core.$strict>>;
|
|
299
|
+
managedVpcResource: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
vpcIdentifier: z.ZodString;
|
|
301
|
+
subnetIds: z.ZodArray<z.ZodString>;
|
|
302
|
+
endpointIpAddressType: z.ZodEnum<{
|
|
303
|
+
IPV4: "IPV4";
|
|
304
|
+
IPV6: "IPV6";
|
|
305
|
+
}>;
|
|
306
|
+
securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
307
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
308
|
+
routingDomain: z.ZodOptional<z.ZodString>;
|
|
309
|
+
}, z.core.$strict>>;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
}, z.core.$strict>>>;
|
|
250
312
|
}, z.core.$strict>>;
|
|
251
313
|
}, z.core.$strip>>;
|
|
252
314
|
executionRoleArn: z.ZodOptional<z.ZodString>;
|
|
@@ -280,10 +342,10 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
280
342
|
eventExpiryDuration: z.ZodNumber;
|
|
281
343
|
strategies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
282
344
|
type: z.ZodEnum<{
|
|
345
|
+
CUSTOM: "CUSTOM";
|
|
283
346
|
SEMANTIC: "SEMANTIC";
|
|
284
347
|
SUMMARIZATION: "SUMMARIZATION";
|
|
285
348
|
USER_PREFERENCE: "USER_PREFERENCE";
|
|
286
|
-
CUSTOM: "CUSTOM";
|
|
287
349
|
EPISODIC: "EPISODIC";
|
|
288
350
|
}>;
|
|
289
351
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -319,6 +381,25 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
319
381
|
}>;
|
|
320
382
|
}, z.core.$strip>>>;
|
|
321
383
|
}, z.core.$strip>>>;
|
|
384
|
+
knowledgeBases: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
385
|
+
type: z.ZodDefault<z.ZodLiteral<"AgentCoreKnowledgeBase">>;
|
|
386
|
+
name: z.ZodString;
|
|
387
|
+
description: z.ZodOptional<z.ZodString>;
|
|
388
|
+
dataSources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
389
|
+
type: z.ZodLiteral<"S3">;
|
|
390
|
+
uri: z.ZodString;
|
|
391
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
392
|
+
type: z.ZodEnum<{
|
|
393
|
+
WEB: "WEB";
|
|
394
|
+
CONFLUENCE: "CONFLUENCE";
|
|
395
|
+
SHAREPOINT: "SHAREPOINT";
|
|
396
|
+
ONEDRIVE: "ONEDRIVE";
|
|
397
|
+
GOOGLEDRIVE: "GOOGLEDRIVE";
|
|
398
|
+
}>;
|
|
399
|
+
connectorConfigFile: z.ZodString;
|
|
400
|
+
}, z.core.$strict>], "type">>;
|
|
401
|
+
gateway: z.ZodOptional<z.ZodString>;
|
|
402
|
+
}, z.core.$strict>>>>;
|
|
322
403
|
credentials: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
323
404
|
authorizerType: z.ZodLiteral<"ApiKeyCredentialProvider">;
|
|
324
405
|
name: z.ZodString;
|
|
@@ -329,6 +410,13 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
329
410
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
330
411
|
vendor: z.ZodDefault<z.ZodString>;
|
|
331
412
|
managed: z.ZodOptional<z.ZodBoolean>;
|
|
413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
414
|
+
authorizerType: z.ZodLiteral<"PaymentCredentialProvider">;
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
provider: z.ZodEnum<{
|
|
417
|
+
CoinbaseCDP: "CoinbaseCDP";
|
|
418
|
+
StripePrivy: "StripePrivy";
|
|
419
|
+
}>;
|
|
332
420
|
}, z.core.$strip>], "authorizerType">>>;
|
|
333
421
|
evaluators: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
334
422
|
name: z.ZodString;
|
|
@@ -371,9 +459,19 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
371
459
|
}, z.core.$strip>>>;
|
|
372
460
|
onlineEvalConfigs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
373
461
|
name: z.ZodString;
|
|
374
|
-
agent: z.ZodString
|
|
462
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
375
463
|
endpoint: z.ZodOptional<z.ZodString>;
|
|
376
|
-
|
|
464
|
+
logGroupNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
465
|
+
serviceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
466
|
+
evaluators: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
467
|
+
insights: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
468
|
+
clusteringConfig: z.ZodOptional<z.ZodObject<{
|
|
469
|
+
frequencies: z.ZodArray<z.ZodEnum<{
|
|
470
|
+
DAILY: "DAILY";
|
|
471
|
+
WEEKLY: "WEEKLY";
|
|
472
|
+
MONTHLY: "MONTHLY";
|
|
473
|
+
}>>;
|
|
474
|
+
}, z.core.$strip>>;
|
|
377
475
|
samplingRate: z.ZodNumber;
|
|
378
476
|
description: z.ZodOptional<z.ZodString>;
|
|
379
477
|
sessionTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -411,6 +509,34 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
411
509
|
kmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
412
510
|
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
413
511
|
}, z.core.$strip>>>;
|
|
512
|
+
payments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
513
|
+
name: z.ZodString;
|
|
514
|
+
description: z.ZodOptional<z.ZodString>;
|
|
515
|
+
authorizerType: z.ZodEnum<{
|
|
516
|
+
AWS_IAM: "AWS_IAM";
|
|
517
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
518
|
+
}>;
|
|
519
|
+
authorizerConfiguration: z.ZodOptional<z.ZodObject<{
|
|
520
|
+
customJWTAuthorizer: z.ZodObject<{
|
|
521
|
+
discoveryUrl: z.ZodString;
|
|
522
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
523
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
524
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
525
|
+
}, z.core.$strip>;
|
|
526
|
+
}, z.core.$strip>>;
|
|
527
|
+
autoPayment: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
+
paymentToolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
529
|
+
networkPreferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
530
|
+
defaultSpendLimit: z.ZodOptional<z.ZodString>;
|
|
531
|
+
connectors: z.ZodArray<z.ZodObject<{
|
|
532
|
+
name: z.ZodString;
|
|
533
|
+
provider: z.ZodEnum<{
|
|
534
|
+
CoinbaseCDP: "CoinbaseCDP";
|
|
535
|
+
StripePrivy: "StripePrivy";
|
|
536
|
+
}>;
|
|
537
|
+
credentialName: z.ZodString;
|
|
538
|
+
}, z.core.$strip>>;
|
|
539
|
+
}, z.core.$strip>>>;
|
|
414
540
|
agentCoreGateways: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
415
541
|
name: z.ZodString;
|
|
416
542
|
resourceName: z.ZodOptional<z.ZodString>;
|
|
@@ -424,6 +550,10 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
424
550
|
smithyModel: "smithyModel";
|
|
425
551
|
apiGateway: "apiGateway";
|
|
426
552
|
lambdaFunctionArn: "lambdaFunctionArn";
|
|
553
|
+
httpRuntime: "httpRuntime";
|
|
554
|
+
connector: "connector";
|
|
555
|
+
passthrough: "passthrough";
|
|
556
|
+
webSearch: "webSearch";
|
|
427
557
|
}>;
|
|
428
558
|
toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
429
559
|
name: z.ZodString;
|
|
@@ -501,9 +631,13 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
501
631
|
NONE: "NONE";
|
|
502
632
|
OAUTH: "OAUTH";
|
|
503
633
|
API_KEY: "API_KEY";
|
|
634
|
+
GATEWAY_IAM_ROLE: "GATEWAY_IAM_ROLE";
|
|
635
|
+
JWT_PASSTHROUGH: "JWT_PASSTHROUGH";
|
|
504
636
|
}>>;
|
|
505
637
|
credentialName: z.ZodOptional<z.ZodString>;
|
|
506
638
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
639
|
+
service: z.ZodOptional<z.ZodString>;
|
|
640
|
+
region: z.ZodOptional<z.ZodString>;
|
|
507
641
|
}, z.core.$strict>>;
|
|
508
642
|
apiGateway: z.ZodOptional<z.ZodObject<{
|
|
509
643
|
restApiId: z.ZodString;
|
|
@@ -551,6 +685,30 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
551
685
|
lambdaArn: z.ZodString;
|
|
552
686
|
toolSchemaFile: z.ZodString;
|
|
553
687
|
}, z.core.$strict>>;
|
|
688
|
+
httpRuntime: z.ZodOptional<z.ZodObject<{
|
|
689
|
+
runtime: z.ZodString;
|
|
690
|
+
runtimeEndpoint: z.ZodOptional<z.ZodString>;
|
|
691
|
+
}, z.core.$strict>>;
|
|
692
|
+
connectorId: z.ZodOptional<z.ZodEnum<{
|
|
693
|
+
"bedrock-knowledge-bases": "bedrock-knowledge-bases";
|
|
694
|
+
"bedrock-agentic-retrieve": "bedrock-agentic-retrieve";
|
|
695
|
+
}>>;
|
|
696
|
+
knowledgeBaseId: z.ZodOptional<z.ZodString>;
|
|
697
|
+
knowledgeBaseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
698
|
+
passthrough: z.ZodOptional<z.ZodObject<{
|
|
699
|
+
endpoint: z.ZodString;
|
|
700
|
+
protocolType: z.ZodDefault<z.ZodEnum<{
|
|
701
|
+
MCP: "MCP";
|
|
702
|
+
A2A: "A2A";
|
|
703
|
+
INFERENCE: "INFERENCE";
|
|
704
|
+
CUSTOM: "CUSTOM";
|
|
705
|
+
}>>;
|
|
706
|
+
stickinessConfiguration: z.ZodOptional<z.ZodObject<{
|
|
707
|
+
identifier: z.ZodString;
|
|
708
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
709
|
+
}, z.core.$strict>>;
|
|
710
|
+
}, z.core.$strict>>;
|
|
711
|
+
excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
554
712
|
}, z.core.$strict>>;
|
|
555
713
|
authorizerType: z.ZodDefault<z.ZodEnum<{
|
|
556
714
|
NONE: "NONE";
|
|
@@ -581,6 +739,41 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
581
739
|
}, z.core.$strip>;
|
|
582
740
|
}, z.core.$strip>;
|
|
583
741
|
}, z.core.$strict>>>;
|
|
742
|
+
privateEndpoint: z.ZodOptional<z.ZodObject<{
|
|
743
|
+
selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
|
|
744
|
+
resourceConfigurationIdentifier: z.ZodString;
|
|
745
|
+
}, z.core.$strict>>;
|
|
746
|
+
managedVpcResource: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
vpcIdentifier: z.ZodString;
|
|
748
|
+
subnetIds: z.ZodArray<z.ZodString>;
|
|
749
|
+
endpointIpAddressType: z.ZodEnum<{
|
|
750
|
+
IPV4: "IPV4";
|
|
751
|
+
IPV6: "IPV6";
|
|
752
|
+
}>;
|
|
753
|
+
securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
754
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
755
|
+
routingDomain: z.ZodOptional<z.ZodString>;
|
|
756
|
+
}, z.core.$strict>>;
|
|
757
|
+
}, z.core.$strict>>;
|
|
758
|
+
privateEndpointOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
759
|
+
domain: z.ZodString;
|
|
760
|
+
privateEndpoint: z.ZodObject<{
|
|
761
|
+
selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
|
|
762
|
+
resourceConfigurationIdentifier: z.ZodString;
|
|
763
|
+
}, z.core.$strict>>;
|
|
764
|
+
managedVpcResource: z.ZodOptional<z.ZodObject<{
|
|
765
|
+
vpcIdentifier: z.ZodString;
|
|
766
|
+
subnetIds: z.ZodArray<z.ZodString>;
|
|
767
|
+
endpointIpAddressType: z.ZodEnum<{
|
|
768
|
+
IPV4: "IPV4";
|
|
769
|
+
IPV6: "IPV6";
|
|
770
|
+
}>;
|
|
771
|
+
securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
772
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
773
|
+
routingDomain: z.ZodOptional<z.ZodString>;
|
|
774
|
+
}, z.core.$strict>>;
|
|
775
|
+
}, z.core.$strict>;
|
|
776
|
+
}, z.core.$strict>>>;
|
|
584
777
|
}, z.core.$strict>>;
|
|
585
778
|
}, z.core.$strip>>;
|
|
586
779
|
enableSemanticSearch: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -588,6 +781,10 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
588
781
|
NONE: "NONE";
|
|
589
782
|
DEBUG: "DEBUG";
|
|
590
783
|
}>>;
|
|
784
|
+
protocolType: z.ZodOptional<z.ZodEnum<{
|
|
785
|
+
MCP: "MCP";
|
|
786
|
+
None: "None";
|
|
787
|
+
}>>;
|
|
591
788
|
policyEngineConfiguration: z.ZodOptional<z.ZodObject<{
|
|
592
789
|
policyEngineName: z.ZodString;
|
|
593
790
|
mode: z.ZodEnum<{
|
|
@@ -656,6 +853,10 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
656
853
|
smithyModel: "smithyModel";
|
|
657
854
|
apiGateway: "apiGateway";
|
|
658
855
|
lambdaFunctionArn: "lambdaFunctionArn";
|
|
856
|
+
httpRuntime: "httpRuntime";
|
|
857
|
+
connector: "connector";
|
|
858
|
+
passthrough: "passthrough";
|
|
859
|
+
webSearch: "webSearch";
|
|
659
860
|
}>;
|
|
660
861
|
toolDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
661
862
|
name: z.ZodString;
|
|
@@ -733,9 +934,13 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
733
934
|
NONE: "NONE";
|
|
734
935
|
OAUTH: "OAUTH";
|
|
735
936
|
API_KEY: "API_KEY";
|
|
937
|
+
GATEWAY_IAM_ROLE: "GATEWAY_IAM_ROLE";
|
|
938
|
+
JWT_PASSTHROUGH: "JWT_PASSTHROUGH";
|
|
736
939
|
}>>;
|
|
737
940
|
credentialName: z.ZodOptional<z.ZodString>;
|
|
738
941
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
942
|
+
service: z.ZodOptional<z.ZodString>;
|
|
943
|
+
region: z.ZodOptional<z.ZodString>;
|
|
739
944
|
}, z.core.$strict>>;
|
|
740
945
|
apiGateway: z.ZodOptional<z.ZodObject<{
|
|
741
946
|
restApiId: z.ZodString;
|
|
@@ -783,6 +988,30 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
783
988
|
lambdaArn: z.ZodString;
|
|
784
989
|
toolSchemaFile: z.ZodString;
|
|
785
990
|
}, z.core.$strict>>;
|
|
991
|
+
httpRuntime: z.ZodOptional<z.ZodObject<{
|
|
992
|
+
runtime: z.ZodString;
|
|
993
|
+
runtimeEndpoint: z.ZodOptional<z.ZodString>;
|
|
994
|
+
}, z.core.$strict>>;
|
|
995
|
+
connectorId: z.ZodOptional<z.ZodEnum<{
|
|
996
|
+
"bedrock-knowledge-bases": "bedrock-knowledge-bases";
|
|
997
|
+
"bedrock-agentic-retrieve": "bedrock-agentic-retrieve";
|
|
998
|
+
}>>;
|
|
999
|
+
knowledgeBaseId: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
knowledgeBaseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1001
|
+
passthrough: z.ZodOptional<z.ZodObject<{
|
|
1002
|
+
endpoint: z.ZodString;
|
|
1003
|
+
protocolType: z.ZodDefault<z.ZodEnum<{
|
|
1004
|
+
MCP: "MCP";
|
|
1005
|
+
A2A: "A2A";
|
|
1006
|
+
INFERENCE: "INFERENCE";
|
|
1007
|
+
CUSTOM: "CUSTOM";
|
|
1008
|
+
}>>;
|
|
1009
|
+
stickinessConfiguration: z.ZodOptional<z.ZodObject<{
|
|
1010
|
+
identifier: z.ZodString;
|
|
1011
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1012
|
+
}, z.core.$strict>>;
|
|
1013
|
+
}, z.core.$strict>>;
|
|
1014
|
+
excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
786
1015
|
}, z.core.$strict>>>;
|
|
787
1016
|
configBundles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
788
1017
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcore-project.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"agentcore-project.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAKhE,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,CAAC;AAClG,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC1G,YAAY,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,YAAY,EACV,eAAe,EACf,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,cA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsOnC,CAAC;AAEL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EvaluatorTypeSchema = exports.CredentialSchema = exports.PaymentCredentialSchema = exports.PaymentProviderSchema = exports.OAuthCredentialSchema = exports.ApiKeyCredentialSchema = exports.CredentialTypeSchema = exports.CredentialNameSchema = exports.MemorySchema = exports.StreamDeliveryResourcesSchema = exports.StreamContentLevelSchema = exports.MemoryNameSchema = exports.MemoryTypeSchema = exports.ProjectNameSchema = exports.ManagedBySchema = exports.validateApiFormat = exports.HarnessApiFormatSchema = exports.OpenAiApiFormatSchema = exports.BedrockApiFormatSchema = exports.GatewayOAuthGrantTypeSchema = exports.HarnessGatewayOutboundAuthSchema = exports.HarnessTruncationConfigSchema = exports.HarnessMemoryRefSchema = exports.HarnessToolTypeSchema = exports.HarnessToolSchema = exports.HarnessModelProviderSchema = exports.HarnessModelSchema = exports.HarnessSpecSchema = exports.TagsSchema = exports.ComponentConfigurationMapSchema = exports.ComponentConfigurationSchema = exports.ConfigBundleDescriptionSchema = exports.ConfigBundleNameSchema = exports.ConfigBundleSchema = exports.DataSourceSchema = exports.S3DataSourceSchema = exports.KnowledgeBaseNameSchema = exports.KnowledgeBaseSchema = exports.DatasetSchemaTypeSchema = exports.DatasetSchema = exports.DatasetNameSchema = exports.ValidationModeSchema = exports.PolicySchema = exports.PolicyNameSchema = exports.PolicyEngineNameSchema = exports.PolicyEngineSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = exports.IndexedKeyTypeSchema = exports.IndexedKeySchema = void 0;
|
|
4
|
+
exports.AgentCoreProjectSpecSchema = exports.HarnessRegistryEntrySchema = exports.EvaluatorSchema = void 0;
|
|
4
5
|
/**
|
|
5
6
|
* AgentCore Project Schema - Resource-centric model
|
|
6
7
|
*
|
|
@@ -17,6 +18,7 @@ Object.defineProperty(exports, "ConfigBundleSchema", { enumerable: true, get: fu
|
|
|
17
18
|
const dataset_1 = require("./primitives/dataset");
|
|
18
19
|
const evaluator_1 = require("./primitives/evaluator");
|
|
19
20
|
const harness_1 = require("./primitives/harness");
|
|
21
|
+
const knowledge_base_1 = require("./primitives/knowledge-base");
|
|
20
22
|
const memory_1 = require("./primitives/memory");
|
|
21
23
|
Object.defineProperty(exports, "IndexedKeySchema", { enumerable: true, get: function () { return memory_1.IndexedKeySchema; } });
|
|
22
24
|
Object.defineProperty(exports, "IndexedKeyTypeSchema", { enumerable: true, get: function () { return memory_1.IndexedKeyTypeSchema; } });
|
|
@@ -38,11 +40,30 @@ var dataset_2 = require("./primitives/dataset");
|
|
|
38
40
|
Object.defineProperty(exports, "DatasetNameSchema", { enumerable: true, get: function () { return dataset_2.DatasetNameSchema; } });
|
|
39
41
|
Object.defineProperty(exports, "DatasetSchema", { enumerable: true, get: function () { return dataset_2.DatasetSchema; } });
|
|
40
42
|
Object.defineProperty(exports, "DatasetSchemaTypeSchema", { enumerable: true, get: function () { return dataset_2.DatasetSchemaTypeSchema; } });
|
|
43
|
+
var knowledge_base_2 = require("./primitives/knowledge-base");
|
|
44
|
+
Object.defineProperty(exports, "KnowledgeBaseSchema", { enumerable: true, get: function () { return knowledge_base_2.KnowledgeBaseSchema; } });
|
|
45
|
+
Object.defineProperty(exports, "KnowledgeBaseNameSchema", { enumerable: true, get: function () { return knowledge_base_2.KnowledgeBaseNameSchema; } });
|
|
46
|
+
Object.defineProperty(exports, "S3DataSourceSchema", { enumerable: true, get: function () { return knowledge_base_2.S3DataSourceSchema; } });
|
|
47
|
+
Object.defineProperty(exports, "DataSourceSchema", { enumerable: true, get: function () { return knowledge_base_2.DataSourceSchema; } });
|
|
41
48
|
var config_bundle_2 = require("./primitives/config-bundle");
|
|
42
49
|
Object.defineProperty(exports, "ConfigBundleNameSchema", { enumerable: true, get: function () { return config_bundle_2.ConfigBundleNameSchema; } });
|
|
43
50
|
Object.defineProperty(exports, "ConfigBundleDescriptionSchema", { enumerable: true, get: function () { return config_bundle_2.ConfigBundleDescriptionSchema; } });
|
|
44
51
|
Object.defineProperty(exports, "ComponentConfigurationSchema", { enumerable: true, get: function () { return config_bundle_2.ComponentConfigurationSchema; } });
|
|
45
52
|
Object.defineProperty(exports, "ComponentConfigurationMapSchema", { enumerable: true, get: function () { return config_bundle_2.ComponentConfigurationMapSchema; } });
|
|
53
|
+
var harness_2 = require("./primitives/harness");
|
|
54
|
+
Object.defineProperty(exports, "HarnessSpecSchema", { enumerable: true, get: function () { return harness_2.HarnessSpecSchema; } });
|
|
55
|
+
Object.defineProperty(exports, "HarnessModelSchema", { enumerable: true, get: function () { return harness_2.HarnessModelSchema; } });
|
|
56
|
+
Object.defineProperty(exports, "HarnessModelProviderSchema", { enumerable: true, get: function () { return harness_2.HarnessModelProviderSchema; } });
|
|
57
|
+
Object.defineProperty(exports, "HarnessToolSchema", { enumerable: true, get: function () { return harness_2.HarnessToolSchema; } });
|
|
58
|
+
Object.defineProperty(exports, "HarnessToolTypeSchema", { enumerable: true, get: function () { return harness_2.HarnessToolTypeSchema; } });
|
|
59
|
+
Object.defineProperty(exports, "HarnessMemoryRefSchema", { enumerable: true, get: function () { return harness_2.HarnessMemoryRefSchema; } });
|
|
60
|
+
Object.defineProperty(exports, "HarnessTruncationConfigSchema", { enumerable: true, get: function () { return harness_2.HarnessTruncationConfigSchema; } });
|
|
61
|
+
Object.defineProperty(exports, "HarnessGatewayOutboundAuthSchema", { enumerable: true, get: function () { return harness_2.HarnessGatewayOutboundAuthSchema; } });
|
|
62
|
+
Object.defineProperty(exports, "GatewayOAuthGrantTypeSchema", { enumerable: true, get: function () { return harness_2.GatewayOAuthGrantTypeSchema; } });
|
|
63
|
+
Object.defineProperty(exports, "BedrockApiFormatSchema", { enumerable: true, get: function () { return harness_2.BedrockApiFormatSchema; } });
|
|
64
|
+
Object.defineProperty(exports, "OpenAiApiFormatSchema", { enumerable: true, get: function () { return harness_2.OpenAiApiFormatSchema; } });
|
|
65
|
+
Object.defineProperty(exports, "HarnessApiFormatSchema", { enumerable: true, get: function () { return harness_2.HarnessApiFormatSchema; } });
|
|
66
|
+
Object.defineProperty(exports, "validateApiFormat", { enumerable: true, get: function () { return harness_2.validateApiFormat; } });
|
|
46
67
|
// ============================================================================
|
|
47
68
|
// ManagedBy Schema
|
|
48
69
|
// ============================================================================
|
|
@@ -118,7 +139,11 @@ exports.CredentialNameSchema = zod_1.z
|
|
|
118
139
|
.min(3, 'Credential name must be at least 3 characters')
|
|
119
140
|
.max(255)
|
|
120
141
|
.regex(/^[A-Za-z0-9_.-]+$/, 'Must contain only alphanumeric characters, underscores, dots, and hyphens (3-255 chars)');
|
|
121
|
-
exports.CredentialTypeSchema = zod_1.z.enum([
|
|
142
|
+
exports.CredentialTypeSchema = zod_1.z.enum([
|
|
143
|
+
'ApiKeyCredentialProvider',
|
|
144
|
+
'OAuthCredentialProvider',
|
|
145
|
+
'PaymentCredentialProvider',
|
|
146
|
+
]);
|
|
122
147
|
exports.ApiKeyCredentialSchema = zod_1.z.object({
|
|
123
148
|
authorizerType: zod_1.z.literal('ApiKeyCredentialProvider'),
|
|
124
149
|
name: exports.CredentialNameSchema,
|
|
@@ -135,7 +160,17 @@ exports.OAuthCredentialSchema = zod_1.z.object({
|
|
|
135
160
|
/** Whether this credential was auto-created by the CLI (e.g., for CUSTOM_JWT inbound auth) */
|
|
136
161
|
managed: zod_1.z.boolean().optional(),
|
|
137
162
|
});
|
|
138
|
-
exports.
|
|
163
|
+
exports.PaymentProviderSchema = zod_1.z.enum(['CoinbaseCDP', 'StripePrivy']);
|
|
164
|
+
exports.PaymentCredentialSchema = zod_1.z.object({
|
|
165
|
+
authorizerType: zod_1.z.literal('PaymentCredentialProvider'),
|
|
166
|
+
name: exports.CredentialNameSchema,
|
|
167
|
+
provider: exports.PaymentProviderSchema,
|
|
168
|
+
});
|
|
169
|
+
exports.CredentialSchema = zod_1.z.discriminatedUnion('authorizerType', [
|
|
170
|
+
exports.ApiKeyCredentialSchema,
|
|
171
|
+
exports.OAuthCredentialSchema,
|
|
172
|
+
exports.PaymentCredentialSchema,
|
|
173
|
+
]);
|
|
139
174
|
// ============================================================================
|
|
140
175
|
// Evaluator Schema
|
|
141
176
|
// ============================================================================
|
|
@@ -163,6 +198,7 @@ const BUILTIN_EVALUATOR_PREFIX = 'Builtin.';
|
|
|
163
198
|
const ARN_PREFIX = 'arn:';
|
|
164
199
|
exports.AgentCoreProjectSpecSchema = zod_1.z
|
|
165
200
|
.object({
|
|
201
|
+
$schema: zod_1.z.string().optional(),
|
|
166
202
|
name: exports.ProjectNameSchema,
|
|
167
203
|
version: zod_1.z.number().int(),
|
|
168
204
|
managedBy: exports.ManagedBySchema,
|
|
@@ -175,6 +211,21 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
|
|
|
175
211
|
.array(exports.MemorySchema)
|
|
176
212
|
.default([])
|
|
177
213
|
.superRefine((0, zod_util_1.uniqueBy)(memory => memory.name, name => `Duplicate memory name: ${name}`)),
|
|
214
|
+
knowledgeBases: zod_1.z
|
|
215
|
+
.array(knowledge_base_1.KnowledgeBaseSchema)
|
|
216
|
+
.default([])
|
|
217
|
+
.optional()
|
|
218
|
+
.superRefine((val, ctx) => {
|
|
219
|
+
if (!val)
|
|
220
|
+
return;
|
|
221
|
+
const seen = new Set();
|
|
222
|
+
for (const kb of val) {
|
|
223
|
+
if (seen.has(kb.name)) {
|
|
224
|
+
ctx.addIssue({ code: zod_1.z.ZodIssueCode.custom, message: `Duplicate knowledge base name: ${kb.name}` });
|
|
225
|
+
}
|
|
226
|
+
seen.add(kb.name);
|
|
227
|
+
}
|
|
228
|
+
}),
|
|
178
229
|
credentials: zod_1.z
|
|
179
230
|
.array(exports.CredentialSchema)
|
|
180
231
|
.default([])
|
|
@@ -205,6 +256,33 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
|
|
|
205
256
|
seen.add(dataset.name);
|
|
206
257
|
}
|
|
207
258
|
}),
|
|
259
|
+
// Payment resources (consumed by the AgentCorePaymentManager/Connector constructs)
|
|
260
|
+
payments: zod_1.z
|
|
261
|
+
.array(zod_1.z.object({
|
|
262
|
+
name: zod_1.z.string(),
|
|
263
|
+
description: zod_1.z.string().optional(),
|
|
264
|
+
authorizerType: zod_1.z.enum(['AWS_IAM', 'CUSTOM_JWT']),
|
|
265
|
+
authorizerConfiguration: zod_1.z
|
|
266
|
+
.object({
|
|
267
|
+
customJWTAuthorizer: zod_1.z.object({
|
|
268
|
+
discoveryUrl: zod_1.z.string(),
|
|
269
|
+
allowedClients: zod_1.z.array(zod_1.z.string()).optional(),
|
|
270
|
+
allowedAudience: zod_1.z.array(zod_1.z.string()).optional(),
|
|
271
|
+
allowedScopes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
272
|
+
}),
|
|
273
|
+
})
|
|
274
|
+
.optional(),
|
|
275
|
+
autoPayment: zod_1.z.boolean().optional(),
|
|
276
|
+
paymentToolAllowlist: zod_1.z.array(zod_1.z.string()).optional(),
|
|
277
|
+
networkPreferences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
278
|
+
defaultSpendLimit: zod_1.z.string().optional(),
|
|
279
|
+
connectors: zod_1.z.array(zod_1.z.object({
|
|
280
|
+
name: zod_1.z.string(),
|
|
281
|
+
provider: zod_1.z.enum(['CoinbaseCDP', 'StripePrivy']),
|
|
282
|
+
credentialName: zod_1.z.string(),
|
|
283
|
+
})),
|
|
284
|
+
}))
|
|
285
|
+
.optional(),
|
|
208
286
|
// MCP / Gateway resources (merged from former mcp.json)
|
|
209
287
|
agentCoreGateways: zod_1.z.array(mcp_1.AgentCoreGatewaySchema).default([]),
|
|
210
288
|
mcpRuntimeTools: zod_1.z.array(mcp_1.AgentCoreMcpRuntimeToolSchema).optional(),
|
|
@@ -238,16 +316,17 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
|
|
|
238
316
|
.superRefine((spec, ctx) => {
|
|
239
317
|
const agentNames = new Set(spec.runtimes.map(a => a.name));
|
|
240
318
|
const evaluatorNames = new Set(spec.evaluators.map(e => e.name));
|
|
319
|
+
const knowledgeBaseNames = new Set((spec.knowledgeBases ?? []).map(kb => kb.name));
|
|
241
320
|
for (const config of spec.onlineEvalConfigs) {
|
|
242
|
-
// Validate agent reference
|
|
243
|
-
if (!agentNames.has(config.agent)) {
|
|
321
|
+
// Validate agent reference (only when agent is specified — custom log groups don't need one)
|
|
322
|
+
if (config.agent && !agentNames.has(config.agent)) {
|
|
244
323
|
ctx.addIssue({
|
|
245
324
|
code: zod_1.z.ZodIssueCode.custom,
|
|
246
325
|
message: `Online evaluation config "${config.name}" references unknown agent "${config.agent}"`,
|
|
247
326
|
});
|
|
248
327
|
}
|
|
249
328
|
// Validate evaluator references
|
|
250
|
-
for (const evalName of config.evaluators) {
|
|
329
|
+
for (const evalName of config.evaluators ?? []) {
|
|
251
330
|
if (evalName.startsWith(BUILTIN_EVALUATOR_PREFIX) || evalName.startsWith(ARN_PREFIX))
|
|
252
331
|
continue;
|
|
253
332
|
if (!evaluatorNames.has(evalName)) {
|
|
@@ -258,5 +337,45 @@ exports.AgentCoreProjectSpecSchema = zod_1.z
|
|
|
258
337
|
}
|
|
259
338
|
}
|
|
260
339
|
}
|
|
340
|
+
// Connector gateway target KB reference: a project KB name (entry in
|
|
341
|
+
// knowledgeBases[]) or a literal 10-char KB ID (an external KB this
|
|
342
|
+
// project does not own). Real KB IDs match ^[A-Z0-9]{10}$; KB names
|
|
343
|
+
// start with a letter and may include dashes/underscores. The two
|
|
344
|
+
// formats can never collide.
|
|
345
|
+
const REAL_KB_ID_PATTERN = /^[A-Z0-9]{10}$/;
|
|
346
|
+
const validateKbReference = (target, value, fieldLabel) => {
|
|
347
|
+
const looksLikeRealId = REAL_KB_ID_PATTERN.test(value);
|
|
348
|
+
if (looksLikeRealId) {
|
|
349
|
+
if (knowledgeBaseNames.has(value)) {
|
|
350
|
+
ctx.addIssue({
|
|
351
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
352
|
+
message: `Connector target "${target.name}" ${fieldLabel} "${value}" looks like a literal KB ID but also matches a knowledgeBases[] entry. Rename the knowledge base or reference it by its project name instead.`,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
if (!knowledgeBaseNames.has(value)) {
|
|
358
|
+
ctx.addIssue({
|
|
359
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
360
|
+
message: `Connector target "${target.name}" ${fieldLabel} "${value}" does not match any knowledgeBases[] entry. To wire an external KB this project does not own, use its 10-character KB ID.`,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
for (const gateway of spec.agentCoreGateways) {
|
|
366
|
+
for (const target of gateway.targets ?? []) {
|
|
367
|
+
if (target.targetType !== 'connector')
|
|
368
|
+
continue;
|
|
369
|
+
if (target.connectorId !== 'bedrock-knowledge-bases' && target.connectorId !== 'bedrock-agentic-retrieve') {
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
if (target.knowledgeBaseId) {
|
|
373
|
+
validateKbReference(target, target.knowledgeBaseId, 'knowledgeBaseId');
|
|
374
|
+
}
|
|
375
|
+
for (const value of target.knowledgeBaseIds ?? []) {
|
|
376
|
+
validateKbReference(target, value, 'knowledgeBaseIds[]');
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
261
380
|
});
|
|
262
381
|
//# sourceMappingURL=agentcore-project.js.map
|