@aws/agentcore 1.0.0-preview.12 → 1.0.0-preview.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -17
- package/dist/agent-inspector/index.css +1 -1
- package/dist/agent-inspector/index.js +90 -85
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +1373 -113
- package/dist/assets/agents/AGENTS.md +14 -0
- package/dist/assets/cdk/bin/cdk.ts +90 -24
- package/dist/assets/cdk/lib/cdk-stack.ts +178 -12
- package/dist/assets/cdk/test/cdk.test.ts +3 -0
- package/dist/assets/container/python/Dockerfile +4 -0
- package/dist/assets/python/a2a/langchain_langgraph/base/pyproject.toml +1 -1
- package/dist/assets/python/a2a/strands/capabilities/memory/session.py +4 -1
- package/dist/assets/python/agui/googleadk/base/pyproject.toml +1 -1
- package/dist/assets/python/agui/langchain_langgraph/base/pyproject.toml +1 -1
- package/dist/assets/python/agui/strands/capabilities/memory/session.py +4 -1
- package/dist/assets/python/http/autogen/base/pyproject.toml +1 -1
- package/dist/assets/python/http/googleadk/base/mcp_client/client.py +7 -7
- package/dist/assets/python/http/googleadk/base/pyproject.toml +1 -1
- package/dist/assets/python/http/langchain_langgraph/base/mcp_client/client.py +10 -8
- package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +2 -2
- package/dist/assets/python/http/openaiagents/base/main.py +19 -9
- package/dist/assets/python/http/openaiagents/base/mcp_client/client.py +4 -4
- package/dist/assets/python/http/openaiagents/base/pyproject.toml +2 -2
- package/dist/assets/python/http/strands/base/main.py +475 -27
- package/dist/assets/python/http/strands/base/mcp_client/client.py +45 -5
- package/dist/assets/python/http/strands/base/model/load.py +3 -3
- package/dist/assets/python/http/strands/base/pyproject.toml +5 -2
- package/dist/assets/python/http/strands/base/skills/fetcher.py +279 -0
- package/dist/assets/python/http/strands/capabilities/execution-limits/hooks/execution_limits.py +54 -0
- package/dist/assets/python/http/strands/capabilities/memory/session.py +4 -1
- package/dist/assets/python/http/strands/capabilities/payments/__init__.py +4 -0
- package/dist/assets/python/http/strands/capabilities/payments/payments.py +142 -0
- package/dist/cli/index.mjs +1235 -983
- package/dist/lib/errors/types.d.ts +18 -0
- package/dist/lib/errors/types.d.ts.map +1 -1
- package/dist/lib/errors/types.js +28 -1
- package/dist/lib/errors/types.js.map +1 -1
- package/dist/lib/packaging/helpers.d.ts.map +1 -1
- package/dist/lib/packaging/helpers.js +50 -10
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +0 -2
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/lib/utils/env.d.ts +4 -0
- package/dist/lib/utils/env.d.ts.map +1 -1
- package/dist/lib/utils/env.js +18 -0
- package/dist/lib/utils/env.js.map +1 -1
- package/dist/lib/utils/index.d.ts +1 -1
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +2 -1
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/schema/constants.d.ts +20 -0
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +25 -1
- package/dist/schema/constants.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 +239 -25
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +140 -34
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +175 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -1
- package/dist/schema/schemas/auth.js +126 -3
- package/dist/schema/schemas/auth.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +237 -46
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +62 -17
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/mcp-defs.d.ts +2 -1
- package/dist/schema/schemas/mcp-defs.d.ts.map +1 -1
- package/dist/schema/schemas/mcp-defs.js +3 -2
- package/dist/schema/schemas/mcp-defs.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +186 -0
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +479 -4
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/ab-test.d.ts +0 -6
- package/dist/schema/schemas/primitives/ab-test.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/ab-test.js +0 -2
- package/dist/schema/schemas/primitives/ab-test.js.map +1 -1
- package/dist/schema/schemas/primitives/harness.d.ts +242 -11
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/harness.js +309 -21
- package/dist/schema/schemas/primitives/harness.js.map +1 -1
- package/dist/schema/schemas/primitives/index.d.ts +8 -8
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +18 -5
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/knowledge-base.d.ts +104 -0
- package/dist/schema/schemas/primitives/knowledge-base.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/knowledge-base.js +99 -0
- package/dist/schema/schemas/primitives/knowledge-base.js.map +1 -0
- package/dist/schema/schemas/primitives/online-eval-config.d.ts +20 -2
- package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.js +43 -5
- package/dist/schema/schemas/primitives/online-eval-config.js.map +1 -1
- package/dist/schema/schemas/primitives/payment.d.ts +54 -0
- package/dist/schema/schemas/primitives/payment.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/payment.js +79 -0
- package/dist/schema/schemas/primitives/payment.js.map +1 -0
- package/dist/schema/schemas/primitives/policy.d.ts +26 -0
- package/dist/schema/schemas/primitives/policy.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/policy.js +5 -1
- package/dist/schema/schemas/primitives/policy.js.map +1 -1
- package/npm-shrinkwrap.json +941 -670
- package/package.json +11 -8
- package/scripts/bundle.mjs +51 -0
- package/scripts/run-e2e-local.sh +48 -10
- package/dist/schema/schemas/primitives/http-gateway.d.ts +0 -21
- package/dist/schema/schemas/primitives/http-gateway.d.ts.map +0 -1
- package/dist/schema/schemas/primitives/http-gateway.js +0 -34
- package/dist/schema/schemas/primitives/http-gateway.js.map +0 -1
|
@@ -15,10 +15,17 @@ export declare const MemoryDeployedStateSchema: z.ZodObject<{
|
|
|
15
15
|
memoryArn: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
export type MemoryDeployedState = z.infer<typeof MemoryDeployedStateSchema>;
|
|
18
|
+
export declare const GatewayTargetDeployedStateSchema: z.ZodObject<{
|
|
19
|
+
targetId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type GatewayTargetDeployedState = z.infer<typeof GatewayTargetDeployedStateSchema>;
|
|
18
22
|
export declare const GatewayDeployedStateSchema: z.ZodObject<{
|
|
19
23
|
gatewayId: z.ZodString;
|
|
20
24
|
gatewayArn: z.ZodString;
|
|
21
25
|
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
26
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27
|
+
targetId: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
22
29
|
}, z.core.$strip>;
|
|
23
30
|
export type GatewayDeployedState = z.infer<typeof GatewayDeployedStateSchema>;
|
|
24
31
|
export declare const McpRuntimeDeployedStateSchema: z.ZodObject<{
|
|
@@ -37,6 +44,9 @@ export declare const McpDeployedStateSchema: z.ZodObject<{
|
|
|
37
44
|
gatewayId: z.ZodString;
|
|
38
45
|
gatewayArn: z.ZodString;
|
|
39
46
|
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
47
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
48
|
+
targetId: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
40
50
|
}, z.core.$strip>>>;
|
|
41
51
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
42
52
|
runtimeId: z.ZodString;
|
|
@@ -134,9 +144,12 @@ export declare const HarnessDeployedStateSchema: z.ZodObject<{
|
|
|
134
144
|
harnessArn: z.ZodString;
|
|
135
145
|
roleArn: z.ZodString;
|
|
136
146
|
status: z.ZodString;
|
|
147
|
+
harnessVersion: z.ZodOptional<z.ZodNumber>;
|
|
137
148
|
agentRuntimeArn: z.ZodOptional<z.ZodString>;
|
|
138
149
|
memoryArn: z.ZodOptional<z.ZodString>;
|
|
139
|
-
|
|
150
|
+
provisioner: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
cloudformation: "cloudformation";
|
|
152
|
+
}>>;
|
|
140
153
|
}, z.core.$strip>;
|
|
141
154
|
export type HarnessDeployedState = z.infer<typeof HarnessDeployedStateSchema>;
|
|
142
155
|
export declare const CredentialDeployedStateSchema: z.ZodObject<{
|
|
@@ -167,6 +180,36 @@ export declare const DatasetDeployedStateSchema: z.ZodObject<{
|
|
|
167
180
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
168
181
|
}, z.core.$strip>;
|
|
169
182
|
export type DatasetDeployedState = z.infer<typeof DatasetDeployedStateSchema>;
|
|
183
|
+
export declare const KnowledgeBaseDataSourceDeployedStateSchema: z.ZodObject<{
|
|
184
|
+
dataSourceId: z.ZodString;
|
|
185
|
+
uri: z.ZodString;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
export type KnowledgeBaseDataSourceDeployedState = z.infer<typeof KnowledgeBaseDataSourceDeployedStateSchema>;
|
|
188
|
+
/**
|
|
189
|
+
* Per-target deployed state for a knowledge base. Captures the IDs the
|
|
190
|
+
* status command needs to call bedrock-agent for live KB and ingestion state.
|
|
191
|
+
*
|
|
192
|
+
* `dataSources` is an array (not a record) because the deploy step writes
|
|
193
|
+
* them in the same order as the local `dataSources[]` array; the index
|
|
194
|
+
* lets us correlate local sources with deployed DSs without extra IDs.
|
|
195
|
+
*
|
|
196
|
+
* `sourcesHash` is a SHA-256 of the data-source URIs (joined with newlines)
|
|
197
|
+
* captured at the time auto-ingestion last fired. The post-deploy ingestion
|
|
198
|
+
* hook computes a fresh hash from the current spec and compares — if equal,
|
|
199
|
+
* skip ingestion (no changes to ingest). Optional so projects deployed
|
|
200
|
+
* before the hook shipped don't fail validation; treated as "ingest needed"
|
|
201
|
+
* when absent.
|
|
202
|
+
*/
|
|
203
|
+
export declare const KnowledgeBaseDeployedStateSchema: z.ZodObject<{
|
|
204
|
+
knowledgeBaseId: z.ZodString;
|
|
205
|
+
knowledgeBaseArn: z.ZodString;
|
|
206
|
+
dataSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
207
|
+
dataSourceId: z.ZodString;
|
|
208
|
+
uri: z.ZodString;
|
|
209
|
+
}, z.core.$strip>>>;
|
|
210
|
+
sourcesHash: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export type KnowledgeBaseDeployedState = z.infer<typeof KnowledgeBaseDeployedStateSchema>;
|
|
170
213
|
export declare const ConfigBundleDeployedStateSchema: z.ZodObject<{
|
|
171
214
|
bundleId: z.ZodString;
|
|
172
215
|
bundleArn: z.ZodString;
|
|
@@ -181,20 +224,36 @@ export declare const ABTestDeployedStateSchema: z.ZodObject<{
|
|
|
181
224
|
configHash: z.ZodOptional<z.ZodString>;
|
|
182
225
|
}, z.core.$strip>;
|
|
183
226
|
export type ABTestDeployedState = z.infer<typeof ABTestDeployedStateSchema>;
|
|
184
|
-
export declare const HttpGatewayDeployedStateSchema: z.ZodObject<{
|
|
185
|
-
gatewayId: z.ZodString;
|
|
186
|
-
gatewayArn: z.ZodString;
|
|
187
|
-
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
188
|
-
targetId: z.ZodOptional<z.ZodString>;
|
|
189
|
-
roleArn: z.ZodOptional<z.ZodString>;
|
|
190
|
-
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
-
}, z.core.$strip>;
|
|
192
|
-
export type HttpGatewayDeployedState = z.infer<typeof HttpGatewayDeployedStateSchema>;
|
|
193
227
|
export declare const RuntimeEndpointDeployedStateSchema: z.ZodObject<{
|
|
194
228
|
endpointId: z.ZodString;
|
|
195
229
|
endpointArn: z.ZodString;
|
|
196
230
|
}, z.core.$strip>;
|
|
197
231
|
export type RuntimeEndpointDeployedState = z.infer<typeof RuntimeEndpointDeployedStateSchema>;
|
|
232
|
+
export declare const PaymentConnectorDeployedStateSchema: z.ZodObject<{
|
|
233
|
+
connectorId: z.ZodString;
|
|
234
|
+
credentialProviderArn: z.ZodString;
|
|
235
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
export type PaymentConnectorDeployedState = z.infer<typeof PaymentConnectorDeployedStateSchema>;
|
|
238
|
+
export declare const PaymentDeployedStateSchema: z.ZodObject<{
|
|
239
|
+
managerId: z.ZodString;
|
|
240
|
+
managerArn: z.ZodString;
|
|
241
|
+
connectors: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
242
|
+
connectorId: z.ZodString;
|
|
243
|
+
credentialProviderArn: z.ZodString;
|
|
244
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
245
|
+
}, z.core.$strip>>>;
|
|
246
|
+
processPaymentRoleArn: z.ZodString;
|
|
247
|
+
resourceRetrievalRoleArn: z.ZodString;
|
|
248
|
+
authorizerType: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
AWS_IAM: "AWS_IAM";
|
|
250
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
251
|
+
}>>;
|
|
252
|
+
autoPayment: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
paymentToolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
254
|
+
networkPreferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
export type PaymentDeployedState = z.infer<typeof PaymentDeployedStateSchema>;
|
|
198
257
|
export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
199
258
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
200
259
|
runtimeId: z.ZodString;
|
|
@@ -215,6 +274,9 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
215
274
|
gatewayId: z.ZodString;
|
|
216
275
|
gatewayArn: z.ZodString;
|
|
217
276
|
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
277
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
278
|
+
targetId: z.ZodString;
|
|
279
|
+
}, z.core.$strip>>>;
|
|
218
280
|
}, z.core.$strip>>>;
|
|
219
281
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
220
282
|
runtimeId: z.ZodString;
|
|
@@ -226,6 +288,14 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
226
288
|
functionName: z.ZodString;
|
|
227
289
|
}, z.core.$strip>>>;
|
|
228
290
|
}, z.core.$strip>>;
|
|
291
|
+
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
292
|
+
gatewayId: z.ZodString;
|
|
293
|
+
gatewayArn: z.ZodString;
|
|
294
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
295
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
296
|
+
targetId: z.ZodString;
|
|
297
|
+
}, z.core.$strip>>>;
|
|
298
|
+
}, z.core.$strip>>>;
|
|
229
299
|
externallyManaged: z.ZodOptional<z.ZodObject<{
|
|
230
300
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
231
301
|
name: z.ZodString;
|
|
@@ -282,6 +352,15 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
282
352
|
datasetArn: z.ZodString;
|
|
283
353
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
284
354
|
}, z.core.$strip>>>;
|
|
355
|
+
knowledgeBases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
356
|
+
knowledgeBaseId: z.ZodString;
|
|
357
|
+
knowledgeBaseArn: z.ZodString;
|
|
358
|
+
dataSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
359
|
+
dataSourceId: z.ZodString;
|
|
360
|
+
uri: z.ZodString;
|
|
361
|
+
}, z.core.$strip>>>;
|
|
362
|
+
sourcesHash: z.ZodOptional<z.ZodString>;
|
|
363
|
+
}, z.core.$strip>>>;
|
|
285
364
|
configBundles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
286
365
|
bundleId: z.ZodString;
|
|
287
366
|
bundleArn: z.ZodString;
|
|
@@ -294,14 +373,6 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
294
373
|
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
295
374
|
configHash: z.ZodOptional<z.ZodString>;
|
|
296
375
|
}, z.core.$strip>>>;
|
|
297
|
-
httpGateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
298
|
-
gatewayId: z.ZodString;
|
|
299
|
-
gatewayArn: z.ZodString;
|
|
300
|
-
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
301
|
-
targetId: z.ZodOptional<z.ZodString>;
|
|
302
|
-
roleArn: z.ZodOptional<z.ZodString>;
|
|
303
|
-
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
-
}, z.core.$strip>>>;
|
|
305
376
|
policyEngines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
306
377
|
policyEngineId: z.ZodString;
|
|
307
378
|
policyEngineArn: z.ZodString;
|
|
@@ -316,14 +387,35 @@ export declare const DeployedResourceStateSchema: z.ZodObject<{
|
|
|
316
387
|
harnessArn: z.ZodString;
|
|
317
388
|
roleArn: z.ZodString;
|
|
318
389
|
status: z.ZodString;
|
|
390
|
+
harnessVersion: z.ZodOptional<z.ZodNumber>;
|
|
319
391
|
agentRuntimeArn: z.ZodOptional<z.ZodString>;
|
|
320
392
|
memoryArn: z.ZodOptional<z.ZodString>;
|
|
321
|
-
|
|
393
|
+
provisioner: z.ZodOptional<z.ZodEnum<{
|
|
394
|
+
cloudformation: "cloudformation";
|
|
395
|
+
}>>;
|
|
322
396
|
}, z.core.$strip>>>;
|
|
323
397
|
runtimeEndpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
324
398
|
endpointId: z.ZodString;
|
|
325
399
|
endpointArn: z.ZodString;
|
|
326
400
|
}, z.core.$strip>>>;
|
|
401
|
+
payments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
402
|
+
managerId: z.ZodString;
|
|
403
|
+
managerArn: z.ZodString;
|
|
404
|
+
connectors: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
405
|
+
connectorId: z.ZodString;
|
|
406
|
+
credentialProviderArn: z.ZodString;
|
|
407
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, z.core.$strip>>>;
|
|
409
|
+
processPaymentRoleArn: z.ZodString;
|
|
410
|
+
resourceRetrievalRoleArn: z.ZodString;
|
|
411
|
+
authorizerType: z.ZodOptional<z.ZodEnum<{
|
|
412
|
+
AWS_IAM: "AWS_IAM";
|
|
413
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
414
|
+
}>>;
|
|
415
|
+
autoPayment: z.ZodOptional<z.ZodBoolean>;
|
|
416
|
+
paymentToolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
417
|
+
networkPreferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
418
|
+
}, z.core.$strip>>>;
|
|
327
419
|
stackName: z.ZodOptional<z.ZodString>;
|
|
328
420
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
329
421
|
deployHash: z.ZodOptional<z.ZodString>;
|
|
@@ -350,6 +442,9 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
350
442
|
gatewayId: z.ZodString;
|
|
351
443
|
gatewayArn: z.ZodString;
|
|
352
444
|
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
445
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
446
|
+
targetId: z.ZodString;
|
|
447
|
+
}, z.core.$strip>>>;
|
|
353
448
|
}, z.core.$strip>>>;
|
|
354
449
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
355
450
|
runtimeId: z.ZodString;
|
|
@@ -361,6 +456,14 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
361
456
|
functionName: z.ZodString;
|
|
362
457
|
}, z.core.$strip>>>;
|
|
363
458
|
}, z.core.$strip>>;
|
|
459
|
+
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
460
|
+
gatewayId: z.ZodString;
|
|
461
|
+
gatewayArn: z.ZodString;
|
|
462
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
463
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
464
|
+
targetId: z.ZodString;
|
|
465
|
+
}, z.core.$strip>>>;
|
|
466
|
+
}, z.core.$strip>>>;
|
|
364
467
|
externallyManaged: z.ZodOptional<z.ZodObject<{
|
|
365
468
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
366
469
|
name: z.ZodString;
|
|
@@ -417,6 +520,15 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
417
520
|
datasetArn: z.ZodString;
|
|
418
521
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
419
522
|
}, z.core.$strip>>>;
|
|
523
|
+
knowledgeBases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
524
|
+
knowledgeBaseId: z.ZodString;
|
|
525
|
+
knowledgeBaseArn: z.ZodString;
|
|
526
|
+
dataSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
527
|
+
dataSourceId: z.ZodString;
|
|
528
|
+
uri: z.ZodString;
|
|
529
|
+
}, z.core.$strip>>>;
|
|
530
|
+
sourcesHash: z.ZodOptional<z.ZodString>;
|
|
531
|
+
}, z.core.$strip>>>;
|
|
420
532
|
configBundles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
421
533
|
bundleId: z.ZodString;
|
|
422
534
|
bundleArn: z.ZodString;
|
|
@@ -429,14 +541,6 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
429
541
|
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
430
542
|
configHash: z.ZodOptional<z.ZodString>;
|
|
431
543
|
}, z.core.$strip>>>;
|
|
432
|
-
httpGateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
433
|
-
gatewayId: z.ZodString;
|
|
434
|
-
gatewayArn: z.ZodString;
|
|
435
|
-
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
436
|
-
targetId: z.ZodOptional<z.ZodString>;
|
|
437
|
-
roleArn: z.ZodOptional<z.ZodString>;
|
|
438
|
-
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
439
|
-
}, z.core.$strip>>>;
|
|
440
544
|
policyEngines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
441
545
|
policyEngineId: z.ZodString;
|
|
442
546
|
policyEngineArn: z.ZodString;
|
|
@@ -451,14 +555,35 @@ export declare const TargetDeployedStateSchema: z.ZodObject<{
|
|
|
451
555
|
harnessArn: z.ZodString;
|
|
452
556
|
roleArn: z.ZodString;
|
|
453
557
|
status: z.ZodString;
|
|
558
|
+
harnessVersion: z.ZodOptional<z.ZodNumber>;
|
|
454
559
|
agentRuntimeArn: z.ZodOptional<z.ZodString>;
|
|
455
560
|
memoryArn: z.ZodOptional<z.ZodString>;
|
|
456
|
-
|
|
561
|
+
provisioner: z.ZodOptional<z.ZodEnum<{
|
|
562
|
+
cloudformation: "cloudformation";
|
|
563
|
+
}>>;
|
|
457
564
|
}, z.core.$strip>>>;
|
|
458
565
|
runtimeEndpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
459
566
|
endpointId: z.ZodString;
|
|
460
567
|
endpointArn: z.ZodString;
|
|
461
568
|
}, z.core.$strip>>>;
|
|
569
|
+
payments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
570
|
+
managerId: z.ZodString;
|
|
571
|
+
managerArn: z.ZodString;
|
|
572
|
+
connectors: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
573
|
+
connectorId: z.ZodString;
|
|
574
|
+
credentialProviderArn: z.ZodString;
|
|
575
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
576
|
+
}, z.core.$strip>>>;
|
|
577
|
+
processPaymentRoleArn: z.ZodString;
|
|
578
|
+
resourceRetrievalRoleArn: z.ZodString;
|
|
579
|
+
authorizerType: z.ZodOptional<z.ZodEnum<{
|
|
580
|
+
AWS_IAM: "AWS_IAM";
|
|
581
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
582
|
+
}>>;
|
|
583
|
+
autoPayment: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
+
paymentToolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
585
|
+
networkPreferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
586
|
+
}, z.core.$strip>>>;
|
|
462
587
|
stackName: z.ZodOptional<z.ZodString>;
|
|
463
588
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
464
589
|
deployHash: z.ZodOptional<z.ZodString>;
|
|
@@ -491,6 +616,9 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
491
616
|
gatewayId: z.ZodString;
|
|
492
617
|
gatewayArn: z.ZodString;
|
|
493
618
|
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
619
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
620
|
+
targetId: z.ZodString;
|
|
621
|
+
}, z.core.$strip>>>;
|
|
494
622
|
}, z.core.$strip>>>;
|
|
495
623
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
496
624
|
runtimeId: z.ZodString;
|
|
@@ -502,6 +630,14 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
502
630
|
functionName: z.ZodString;
|
|
503
631
|
}, z.core.$strip>>>;
|
|
504
632
|
}, z.core.$strip>>;
|
|
633
|
+
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
634
|
+
gatewayId: z.ZodString;
|
|
635
|
+
gatewayArn: z.ZodString;
|
|
636
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
637
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
638
|
+
targetId: z.ZodString;
|
|
639
|
+
}, z.core.$strip>>>;
|
|
640
|
+
}, z.core.$strip>>>;
|
|
505
641
|
externallyManaged: z.ZodOptional<z.ZodObject<{
|
|
506
642
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
507
643
|
name: z.ZodString;
|
|
@@ -558,6 +694,15 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
558
694
|
datasetArn: z.ZodString;
|
|
559
695
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
560
696
|
}, z.core.$strip>>>;
|
|
697
|
+
knowledgeBases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
698
|
+
knowledgeBaseId: z.ZodString;
|
|
699
|
+
knowledgeBaseArn: z.ZodString;
|
|
700
|
+
dataSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
701
|
+
dataSourceId: z.ZodString;
|
|
702
|
+
uri: z.ZodString;
|
|
703
|
+
}, z.core.$strip>>>;
|
|
704
|
+
sourcesHash: z.ZodOptional<z.ZodString>;
|
|
705
|
+
}, z.core.$strip>>>;
|
|
561
706
|
configBundles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
562
707
|
bundleId: z.ZodString;
|
|
563
708
|
bundleArn: z.ZodString;
|
|
@@ -570,14 +715,6 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
570
715
|
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
571
716
|
configHash: z.ZodOptional<z.ZodString>;
|
|
572
717
|
}, z.core.$strip>>>;
|
|
573
|
-
httpGateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
574
|
-
gatewayId: z.ZodString;
|
|
575
|
-
gatewayArn: z.ZodString;
|
|
576
|
-
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
577
|
-
targetId: z.ZodOptional<z.ZodString>;
|
|
578
|
-
roleArn: z.ZodOptional<z.ZodString>;
|
|
579
|
-
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
580
|
-
}, z.core.$strip>>>;
|
|
581
718
|
policyEngines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
582
719
|
policyEngineId: z.ZodString;
|
|
583
720
|
policyEngineArn: z.ZodString;
|
|
@@ -592,14 +729,35 @@ export declare const DeployedStateSchema: z.ZodObject<{
|
|
|
592
729
|
harnessArn: z.ZodString;
|
|
593
730
|
roleArn: z.ZodString;
|
|
594
731
|
status: z.ZodString;
|
|
732
|
+
harnessVersion: z.ZodOptional<z.ZodNumber>;
|
|
595
733
|
agentRuntimeArn: z.ZodOptional<z.ZodString>;
|
|
596
734
|
memoryArn: z.ZodOptional<z.ZodString>;
|
|
597
|
-
|
|
735
|
+
provisioner: z.ZodOptional<z.ZodEnum<{
|
|
736
|
+
cloudformation: "cloudformation";
|
|
737
|
+
}>>;
|
|
598
738
|
}, z.core.$strip>>>;
|
|
599
739
|
runtimeEndpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
600
740
|
endpointId: z.ZodString;
|
|
601
741
|
endpointArn: z.ZodString;
|
|
602
742
|
}, z.core.$strip>>>;
|
|
743
|
+
payments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
744
|
+
managerId: z.ZodString;
|
|
745
|
+
managerArn: z.ZodString;
|
|
746
|
+
connectors: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
747
|
+
connectorId: z.ZodString;
|
|
748
|
+
credentialProviderArn: z.ZodString;
|
|
749
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
750
|
+
}, z.core.$strip>>>;
|
|
751
|
+
processPaymentRoleArn: z.ZodString;
|
|
752
|
+
resourceRetrievalRoleArn: z.ZodString;
|
|
753
|
+
authorizerType: z.ZodOptional<z.ZodEnum<{
|
|
754
|
+
AWS_IAM: "AWS_IAM";
|
|
755
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
756
|
+
}>>;
|
|
757
|
+
autoPayment: z.ZodOptional<z.ZodBoolean>;
|
|
758
|
+
paymentToolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
759
|
+
networkPreferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
760
|
+
}, z.core.$strip>>>;
|
|
603
761
|
stackName: z.ZodOptional<z.ZodString>;
|
|
604
762
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
605
763
|
deployHash: z.ZodOptional<z.ZodString>;
|
|
@@ -633,6 +791,9 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
633
791
|
gatewayId: z.ZodString;
|
|
634
792
|
gatewayArn: z.ZodString;
|
|
635
793
|
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
794
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
795
|
+
targetId: z.ZodString;
|
|
796
|
+
}, z.core.$strip>>>;
|
|
636
797
|
}, z.core.$strip>>>;
|
|
637
798
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
638
799
|
runtimeId: z.ZodString;
|
|
@@ -644,6 +805,14 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
644
805
|
functionName: z.ZodString;
|
|
645
806
|
}, z.core.$strip>>>;
|
|
646
807
|
}, z.core.$strip>>;
|
|
808
|
+
gateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
809
|
+
gatewayId: z.ZodString;
|
|
810
|
+
gatewayArn: z.ZodString;
|
|
811
|
+
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
812
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
813
|
+
targetId: z.ZodString;
|
|
814
|
+
}, z.core.$strip>>>;
|
|
815
|
+
}, z.core.$strip>>>;
|
|
647
816
|
externallyManaged: z.ZodOptional<z.ZodObject<{
|
|
648
817
|
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
649
818
|
name: z.ZodString;
|
|
@@ -700,6 +869,15 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
700
869
|
datasetArn: z.ZodString;
|
|
701
870
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
702
871
|
}, z.core.$strip>>>;
|
|
872
|
+
knowledgeBases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
873
|
+
knowledgeBaseId: z.ZodString;
|
|
874
|
+
knowledgeBaseArn: z.ZodString;
|
|
875
|
+
dataSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
876
|
+
dataSourceId: z.ZodString;
|
|
877
|
+
uri: z.ZodString;
|
|
878
|
+
}, z.core.$strip>>>;
|
|
879
|
+
sourcesHash: z.ZodOptional<z.ZodString>;
|
|
880
|
+
}, z.core.$strip>>>;
|
|
703
881
|
configBundles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
704
882
|
bundleId: z.ZodString;
|
|
705
883
|
bundleArn: z.ZodString;
|
|
@@ -712,14 +890,6 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
712
890
|
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
713
891
|
configHash: z.ZodOptional<z.ZodString>;
|
|
714
892
|
}, z.core.$strip>>>;
|
|
715
|
-
httpGateways: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
716
|
-
gatewayId: z.ZodString;
|
|
717
|
-
gatewayArn: z.ZodString;
|
|
718
|
-
gatewayUrl: z.ZodOptional<z.ZodString>;
|
|
719
|
-
targetId: z.ZodOptional<z.ZodString>;
|
|
720
|
-
roleArn: z.ZodOptional<z.ZodString>;
|
|
721
|
-
roleCreatedByCli: z.ZodOptional<z.ZodBoolean>;
|
|
722
|
-
}, z.core.$strip>>>;
|
|
723
893
|
policyEngines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
724
894
|
policyEngineId: z.ZodString;
|
|
725
895
|
policyEngineArn: z.ZodString;
|
|
@@ -734,14 +904,35 @@ export declare function createValidatedDeployedStateSchema(targetNames: string[]
|
|
|
734
904
|
harnessArn: z.ZodString;
|
|
735
905
|
roleArn: z.ZodString;
|
|
736
906
|
status: z.ZodString;
|
|
907
|
+
harnessVersion: z.ZodOptional<z.ZodNumber>;
|
|
737
908
|
agentRuntimeArn: z.ZodOptional<z.ZodString>;
|
|
738
909
|
memoryArn: z.ZodOptional<z.ZodString>;
|
|
739
|
-
|
|
910
|
+
provisioner: z.ZodOptional<z.ZodEnum<{
|
|
911
|
+
cloudformation: "cloudformation";
|
|
912
|
+
}>>;
|
|
740
913
|
}, z.core.$strip>>>;
|
|
741
914
|
runtimeEndpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
742
915
|
endpointId: z.ZodString;
|
|
743
916
|
endpointArn: z.ZodString;
|
|
744
917
|
}, z.core.$strip>>>;
|
|
918
|
+
payments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
919
|
+
managerId: z.ZodString;
|
|
920
|
+
managerArn: z.ZodString;
|
|
921
|
+
connectors: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
922
|
+
connectorId: z.ZodString;
|
|
923
|
+
credentialProviderArn: z.ZodString;
|
|
924
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
925
|
+
}, z.core.$strip>>>;
|
|
926
|
+
processPaymentRoleArn: z.ZodString;
|
|
927
|
+
resourceRetrievalRoleArn: z.ZodString;
|
|
928
|
+
authorizerType: z.ZodOptional<z.ZodEnum<{
|
|
929
|
+
AWS_IAM: "AWS_IAM";
|
|
930
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
931
|
+
}>>;
|
|
932
|
+
autoPayment: z.ZodOptional<z.ZodBoolean>;
|
|
933
|
+
paymentToolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
934
|
+
networkPreferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
935
|
+
}, z.core.$strip>>>;
|
|
745
936
|
stackName: z.ZodOptional<z.ZodString>;
|
|
746
937
|
identityKmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
747
938
|
deployHash: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployed-state.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/deployed-state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,4BAA4B;;;;;;;;;iBAUvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC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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.
|
|
3
|
+
exports.DeployedStateSchema = exports.TargetDeployedStateSchema = exports.DeployedResourceStateSchema = exports.PaymentDeployedStateSchema = exports.PaymentConnectorDeployedStateSchema = exports.RuntimeEndpointDeployedStateSchema = exports.ABTestDeployedStateSchema = exports.ConfigBundleDeployedStateSchema = exports.KnowledgeBaseDeployedStateSchema = exports.KnowledgeBaseDataSourceDeployedStateSchema = exports.DatasetDeployedStateSchema = exports.OnlineEvalDeployedStateSchema = exports.EvaluatorDeployedStateSchema = exports.CredentialDeployedStateSchema = exports.HarnessDeployedStateSchema = exports.PolicyDeployedStateSchema = exports.PolicyEngineDeployedStateSchema = exports.ExternallyManagedStateSchema = exports.VpcConfigSchema = exports.CustomJwtAuthorizerSchema = exports.ExternallyManagedResourceSchema = exports.McpDeployedStateSchema = exports.McpLambdaDeployedStateSchema = exports.McpRuntimeDeployedStateSchema = exports.GatewayDeployedStateSchema = exports.GatewayTargetDeployedStateSchema = exports.MemoryDeployedStateSchema = exports.AgentCoreDeployedStateSchema = void 0;
|
|
4
4
|
exports.createValidatedDeployedStateSchema = createValidatedDeployedStateSchema;
|
|
5
5
|
const auth_1 = require("./auth");
|
|
6
6
|
const aws_targets_1 = require("./aws-targets");
|
|
@@ -29,10 +29,14 @@ exports.MemoryDeployedStateSchema = zod_1.z.object({
|
|
|
29
29
|
// ============================================================================
|
|
30
30
|
// MCP Gateway Deployed State
|
|
31
31
|
// ============================================================================
|
|
32
|
+
exports.GatewayTargetDeployedStateSchema = zod_1.z.object({
|
|
33
|
+
targetId: zod_1.z.string().min(1),
|
|
34
|
+
});
|
|
32
35
|
exports.GatewayDeployedStateSchema = zod_1.z.object({
|
|
33
36
|
gatewayId: zod_1.z.string().min(1),
|
|
34
37
|
gatewayArn: zod_1.z.string().min(1),
|
|
35
38
|
gatewayUrl: zod_1.z.string().optional(),
|
|
39
|
+
targets: zod_1.z.record(zod_1.z.string(), exports.GatewayTargetDeployedStateSchema).optional(),
|
|
36
40
|
});
|
|
37
41
|
// ============================================================================
|
|
38
42
|
// MCP Runtime Deployed State
|
|
@@ -101,9 +105,12 @@ exports.HarnessDeployedStateSchema = zod_1.z.object({
|
|
|
101
105
|
harnessArn: zod_1.z.string().min(1),
|
|
102
106
|
roleArn: zod_1.z.string().min(1),
|
|
103
107
|
status: zod_1.z.string().min(1),
|
|
108
|
+
/** Read-only harness config version from the CFN `Version` output; service-incremented per update. */
|
|
109
|
+
harnessVersion: zod_1.z.number().int().min(1).optional(),
|
|
104
110
|
agentRuntimeArn: zod_1.z.string().optional(),
|
|
105
111
|
memoryArn: zod_1.z.string().optional(),
|
|
106
|
-
|
|
112
|
+
/** Which subsystem provisioned this harness. Stamped 'cloudformation' by the CDK deploy path. */
|
|
113
|
+
provisioner: zod_1.z.enum(['cloudformation']).optional(),
|
|
107
114
|
});
|
|
108
115
|
// ============================================================================
|
|
109
116
|
// Credential Deployed State
|
|
@@ -141,6 +148,34 @@ exports.DatasetDeployedStateSchema = zod_1.z.object({
|
|
|
141
148
|
contentHash: zod_1.z.string().optional(),
|
|
142
149
|
});
|
|
143
150
|
// ============================================================================
|
|
151
|
+
// Knowledge Base Deployed State
|
|
152
|
+
// ============================================================================
|
|
153
|
+
exports.KnowledgeBaseDataSourceDeployedStateSchema = zod_1.z.object({
|
|
154
|
+
dataSourceId: zod_1.z.string().min(1),
|
|
155
|
+
uri: zod_1.z.string().min(1),
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* Per-target deployed state for a knowledge base. Captures the IDs the
|
|
159
|
+
* status command needs to call bedrock-agent for live KB and ingestion state.
|
|
160
|
+
*
|
|
161
|
+
* `dataSources` is an array (not a record) because the deploy step writes
|
|
162
|
+
* them in the same order as the local `dataSources[]` array; the index
|
|
163
|
+
* lets us correlate local sources with deployed DSs without extra IDs.
|
|
164
|
+
*
|
|
165
|
+
* `sourcesHash` is a SHA-256 of the data-source URIs (joined with newlines)
|
|
166
|
+
* captured at the time auto-ingestion last fired. The post-deploy ingestion
|
|
167
|
+
* hook computes a fresh hash from the current spec and compares — if equal,
|
|
168
|
+
* skip ingestion (no changes to ingest). Optional so projects deployed
|
|
169
|
+
* before the hook shipped don't fail validation; treated as "ingest needed"
|
|
170
|
+
* when absent.
|
|
171
|
+
*/
|
|
172
|
+
exports.KnowledgeBaseDeployedStateSchema = zod_1.z.object({
|
|
173
|
+
knowledgeBaseId: zod_1.z.string().min(1),
|
|
174
|
+
knowledgeBaseArn: zod_1.z.string().min(1),
|
|
175
|
+
dataSources: zod_1.z.array(exports.KnowledgeBaseDataSourceDeployedStateSchema).default([]),
|
|
176
|
+
sourcesHash: zod_1.z.string().min(1).optional(),
|
|
177
|
+
});
|
|
178
|
+
// ============================================================================
|
|
144
179
|
// Configuration Bundle Deployed State
|
|
145
180
|
// ============================================================================
|
|
146
181
|
exports.ConfigBundleDeployedStateSchema = zod_1.z.object({
|
|
@@ -154,25 +189,11 @@ exports.ConfigBundleDeployedStateSchema = zod_1.z.object({
|
|
|
154
189
|
exports.ABTestDeployedStateSchema = zod_1.z.object({
|
|
155
190
|
abTestId: zod_1.z.string().min(1),
|
|
156
191
|
abTestArn: zod_1.z.string().min(1),
|
|
157
|
-
/** IAM role ARN used by this AB test. */
|
|
158
192
|
roleArn: zod_1.z.string().min(1).optional(),
|
|
159
|
-
/** Whether the CLI auto-created this role (true = CLI should delete on cleanup). */
|
|
160
193
|
roleCreatedByCli: zod_1.z.boolean().optional(),
|
|
161
|
-
/** SHA-256 hash of the AB test configuration for change detection. */
|
|
162
194
|
configHash: zod_1.z.string().optional(),
|
|
163
195
|
});
|
|
164
196
|
// ============================================================================
|
|
165
|
-
// HTTP Gateway Deployed State
|
|
166
|
-
// ============================================================================
|
|
167
|
-
exports.HttpGatewayDeployedStateSchema = zod_1.z.object({
|
|
168
|
-
gatewayId: zod_1.z.string().min(1),
|
|
169
|
-
gatewayArn: zod_1.z.string().min(1),
|
|
170
|
-
gatewayUrl: zod_1.z.string().optional(),
|
|
171
|
-
targetId: zod_1.z.string().min(1).optional(),
|
|
172
|
-
roleArn: zod_1.z.string().min(1).optional(),
|
|
173
|
-
roleCreatedByCli: zod_1.z.boolean().optional(),
|
|
174
|
-
});
|
|
175
|
-
// ============================================================================
|
|
176
197
|
// Runtime Endpoint Deployed State
|
|
177
198
|
// ============================================================================
|
|
178
199
|
exports.RuntimeEndpointDeployedStateSchema = zod_1.z.object({
|
|
@@ -180,24 +201,48 @@ exports.RuntimeEndpointDeployedStateSchema = zod_1.z.object({
|
|
|
180
201
|
endpointArn: zod_1.z.string().min(1),
|
|
181
202
|
});
|
|
182
203
|
// ============================================================================
|
|
204
|
+
// Payment Connector Deployed State
|
|
205
|
+
// ============================================================================
|
|
206
|
+
exports.PaymentConnectorDeployedStateSchema = zod_1.z.object({
|
|
207
|
+
connectorId: zod_1.z.string().min(1),
|
|
208
|
+
credentialProviderArn: zod_1.z.string().min(1),
|
|
209
|
+
credentialProviderName: zod_1.z.string().optional(),
|
|
210
|
+
});
|
|
211
|
+
// ============================================================================
|
|
212
|
+
// Payment Deployed State
|
|
213
|
+
// ============================================================================
|
|
214
|
+
exports.PaymentDeployedStateSchema = zod_1.z.object({
|
|
215
|
+
managerId: zod_1.z.string().min(1),
|
|
216
|
+
managerArn: zod_1.z.string().min(1),
|
|
217
|
+
connectors: zod_1.z.record(zod_1.z.string(), exports.PaymentConnectorDeployedStateSchema).default({}),
|
|
218
|
+
processPaymentRoleArn: zod_1.z.string().min(1),
|
|
219
|
+
resourceRetrievalRoleArn: zod_1.z.string().min(1),
|
|
220
|
+
authorizerType: zod_1.z.enum(['AWS_IAM', 'CUSTOM_JWT']).optional(),
|
|
221
|
+
autoPayment: zod_1.z.boolean().optional(),
|
|
222
|
+
paymentToolAllowlist: zod_1.z.array(zod_1.z.string()).optional(),
|
|
223
|
+
networkPreferences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
224
|
+
});
|
|
225
|
+
// ============================================================================
|
|
183
226
|
// Deployed Resource State
|
|
184
227
|
// ============================================================================
|
|
185
228
|
exports.DeployedResourceStateSchema = zod_1.z.object({
|
|
186
229
|
runtimes: zod_1.z.record(zod_1.z.string(), exports.AgentCoreDeployedStateSchema).optional(),
|
|
187
230
|
memories: zod_1.z.record(zod_1.z.string(), exports.MemoryDeployedStateSchema).optional(),
|
|
188
231
|
mcp: exports.McpDeployedStateSchema.optional(),
|
|
232
|
+
gateways: zod_1.z.record(zod_1.z.string(), exports.GatewayDeployedStateSchema).optional(),
|
|
189
233
|
externallyManaged: exports.ExternallyManagedStateSchema.optional(),
|
|
190
234
|
credentials: zod_1.z.record(zod_1.z.string(), exports.CredentialDeployedStateSchema).optional(),
|
|
191
235
|
evaluators: zod_1.z.record(zod_1.z.string(), exports.EvaluatorDeployedStateSchema).optional(),
|
|
192
236
|
onlineEvalConfigs: zod_1.z.record(zod_1.z.string(), exports.OnlineEvalDeployedStateSchema).optional(),
|
|
193
237
|
datasets: zod_1.z.record(zod_1.z.string(), exports.DatasetDeployedStateSchema).optional(),
|
|
238
|
+
knowledgeBases: zod_1.z.record(zod_1.z.string(), exports.KnowledgeBaseDeployedStateSchema).optional(),
|
|
194
239
|
configBundles: zod_1.z.record(zod_1.z.string(), exports.ConfigBundleDeployedStateSchema).optional(),
|
|
195
240
|
abTests: zod_1.z.record(zod_1.z.string(), exports.ABTestDeployedStateSchema).optional(),
|
|
196
|
-
httpGateways: zod_1.z.record(zod_1.z.string(), exports.HttpGatewayDeployedStateSchema).optional(),
|
|
197
241
|
policyEngines: zod_1.z.record(zod_1.z.string(), exports.PolicyEngineDeployedStateSchema).optional(),
|
|
198
242
|
policies: zod_1.z.record(zod_1.z.string(), exports.PolicyDeployedStateSchema).optional(),
|
|
199
243
|
harnesses: zod_1.z.record(zod_1.z.string(), exports.HarnessDeployedStateSchema).optional(),
|
|
200
244
|
runtimeEndpoints: zod_1.z.record(zod_1.z.string(), exports.RuntimeEndpointDeployedStateSchema).optional(),
|
|
245
|
+
payments: zod_1.z.record(zod_1.z.string(), exports.PaymentDeployedStateSchema).optional(),
|
|
201
246
|
stackName: zod_1.z.string().optional(),
|
|
202
247
|
identityKmsKeyArn: zod_1.z.string().optional(),
|
|
203
248
|
deployHash: zod_1.z.string().optional(),
|