@aws/agentcore 0.3.0-preview.8.0 → 0.3.0-preview.9.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/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +6 -4
- package/dist/assets/agents/AGENTS.md +1 -1
- package/dist/assets/python/http/langchain_langgraph/base/main.py +4 -1
- package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +1 -2
- package/dist/cli/index.mjs +342 -325
- package/dist/schema/schemas/agent-env.d.ts +47 -0
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +48 -1
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +43 -5
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +4 -3
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +140 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -0
- package/dist/schema/schemas/auth.js +114 -0
- package/dist/schema/schemas/auth.js.map +1 -0
- package/dist/schema/schemas/deployed-state.js +2 -2
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/index.d.ts +1 -0
- package/dist/schema/schemas/index.d.ts.map +1 -1
- package/dist/schema/schemas/index.js +1 -0
- package/dist/schema/schemas/index.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +0 -103
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +6 -105
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/index.d.ts +1 -1
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +2 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/memory.d.ts +9 -0
- package/dist/schema/schemas/primitives/memory.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/memory.js +26 -3
- package/dist/schema/schemas/primitives/memory.js.map +1 -1
- package/package.json +3 -1
|
@@ -53,6 +53,19 @@ export type NetworkConfig = z.infer<typeof NetworkConfigSchema>;
|
|
|
53
53
|
export declare const HEADER_ALLOWLIST_PREFIX = "X-Amzn-Bedrock-AgentCore-Runtime-Custom-";
|
|
54
54
|
export declare const MAX_HEADER_ALLOWLIST_SIZE = 20;
|
|
55
55
|
export declare const RequestHeaderAllowlistSchema: z.ZodArray<z.ZodString>;
|
|
56
|
+
/** Minimum allowed value for lifecycle timeout fields (seconds). */
|
|
57
|
+
export declare const LIFECYCLE_TIMEOUT_MIN = 60;
|
|
58
|
+
/** Maximum allowed value for lifecycle timeout fields (seconds). */
|
|
59
|
+
export declare const LIFECYCLE_TIMEOUT_MAX = 28800;
|
|
60
|
+
/**
|
|
61
|
+
* Lifecycle configuration for runtime sessions.
|
|
62
|
+
* Controls idle timeout and max lifetime of runtime instances.
|
|
63
|
+
*/
|
|
64
|
+
export declare const LifecycleConfigurationSchema: z.ZodObject<{
|
|
65
|
+
idleRuntimeSessionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type LifecycleConfiguration = z.infer<typeof LifecycleConfigurationSchema>;
|
|
56
69
|
/**
|
|
57
70
|
* AgentEnvSpec - represents an AgentCore Runtime.
|
|
58
71
|
* This is a top-level resource in the schema.
|
|
@@ -103,7 +116,41 @@ export declare const AgentEnvSpecSchema: z.ZodObject<{
|
|
|
103
116
|
A2A: "A2A";
|
|
104
117
|
}>>;
|
|
105
118
|
requestHeaderAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
authorizerType: z.ZodOptional<z.ZodEnum<{
|
|
120
|
+
AWS_IAM: "AWS_IAM";
|
|
121
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
122
|
+
}>>;
|
|
123
|
+
authorizerConfiguration: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
discoveryUrl: z.ZodString;
|
|
126
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
129
|
+
customClaims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
130
|
+
inboundTokenClaimName: z.ZodString;
|
|
131
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
132
|
+
STRING: "STRING";
|
|
133
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
134
|
+
}>;
|
|
135
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
136
|
+
claimMatchOperator: z.ZodEnum<{
|
|
137
|
+
EQUALS: "EQUALS";
|
|
138
|
+
CONTAINS: "CONTAINS";
|
|
139
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
140
|
+
}>;
|
|
141
|
+
claimMatchValue: z.ZodObject<{
|
|
142
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
143
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
}, z.core.$strict>>>;
|
|
147
|
+
}, z.core.$strict>>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
106
149
|
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
150
|
+
lifecycleConfiguration: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
idleRuntimeSessionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
107
154
|
}, z.core.$strip>;
|
|
108
155
|
export type AgentEnvSpec = z.infer<typeof AgentEnvSpecSchema>;
|
|
109
156
|
//# sourceMappingURL=agent-env.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-env.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agent-env.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-env.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agent-env.ts"],"names":[],"mappings":"AAWA,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,aAQ3B,CAAC;AAMJ,wCAAwC;AACxC,eAAO,MAAM,YAAY;;;EAAgC,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAMlD,eAAO,MAAM,eAAe,kCAAgC,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,eAAe;;;EAAmC,CAAC;AAChE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAKxD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAOX,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAItC,eAAO,MAAM,YAAY;;;iBAGvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;iBAOhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;iBAS9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,6CAA6C,CAAC;AAClF,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,eAAO,MAAM,4BAA4B,yBASgD,CAAC;AAE1F,oEAAoE;AACpE,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,oEAAoE;AACpE,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;iBAiBrC,CAAC;AACL,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2D3B,CAAC;AAEL,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentEnvSpecSchema = exports.RequestHeaderAllowlistSchema = exports.MAX_HEADER_ALLOWLIST_SIZE = exports.HEADER_ALLOWLIST_PREFIX = exports.NetworkConfigSchema = exports.InstrumentationSchema = exports.EnvVarSchema = exports.EntrypointSchema = exports.BuildTypeSchema = exports.AgentTypeSchema = exports.AccessSchema = exports.GatewayNameSchema = exports.EnvVarNameSchema = exports.AgentNameSchema = void 0;
|
|
3
|
+
exports.AgentEnvSpecSchema = exports.LifecycleConfigurationSchema = exports.LIFECYCLE_TIMEOUT_MAX = exports.LIFECYCLE_TIMEOUT_MIN = exports.RequestHeaderAllowlistSchema = exports.MAX_HEADER_ALLOWLIST_SIZE = exports.HEADER_ALLOWLIST_PREFIX = exports.NetworkConfigSchema = exports.InstrumentationSchema = exports.EnvVarSchema = exports.EntrypointSchema = exports.BuildTypeSchema = exports.AgentTypeSchema = exports.AccessSchema = exports.GatewayNameSchema = exports.EnvVarNameSchema = exports.AgentNameSchema = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Agent Schema v2 - Clean, simplified model
|
|
6
6
|
*
|
|
7
7
|
* @module agent-env
|
|
8
8
|
*/
|
|
9
9
|
const constants_1 = require("../constants");
|
|
10
|
+
const auth_1 = require("./auth");
|
|
10
11
|
const tags_1 = require("./primitives/tags");
|
|
11
12
|
const zod_1 = require("zod");
|
|
12
13
|
// ============================================================================
|
|
@@ -94,6 +95,32 @@ exports.RequestHeaderAllowlistSchema = zod_1.z
|
|
|
94
95
|
.string()
|
|
95
96
|
.refine(val => val === 'Authorization' || val.startsWith(exports.HEADER_ALLOWLIST_PREFIX), `Must be "Authorization" or start with "${exports.HEADER_ALLOWLIST_PREFIX}"`))
|
|
96
97
|
.max(exports.MAX_HEADER_ALLOWLIST_SIZE, `Maximum ${exports.MAX_HEADER_ALLOWLIST_SIZE} headers allowed`);
|
|
98
|
+
/** Minimum allowed value for lifecycle timeout fields (seconds). */
|
|
99
|
+
exports.LIFECYCLE_TIMEOUT_MIN = 60;
|
|
100
|
+
/** Maximum allowed value for lifecycle timeout fields (seconds). */
|
|
101
|
+
exports.LIFECYCLE_TIMEOUT_MAX = 28800;
|
|
102
|
+
/**
|
|
103
|
+
* Lifecycle configuration for runtime sessions.
|
|
104
|
+
* Controls idle timeout and max lifetime of runtime instances.
|
|
105
|
+
*/
|
|
106
|
+
exports.LifecycleConfigurationSchema = zod_1.z
|
|
107
|
+
.object({
|
|
108
|
+
/** Idle session timeout in seconds. API default: 900s. */
|
|
109
|
+
idleRuntimeSessionTimeout: zod_1.z.number().int().min(exports.LIFECYCLE_TIMEOUT_MIN).max(exports.LIFECYCLE_TIMEOUT_MAX).optional(),
|
|
110
|
+
/** Max instance lifetime in seconds. API default: 28800s. */
|
|
111
|
+
maxLifetime: zod_1.z.number().int().min(exports.LIFECYCLE_TIMEOUT_MIN).max(exports.LIFECYCLE_TIMEOUT_MAX).optional(),
|
|
112
|
+
})
|
|
113
|
+
.superRefine((data, ctx) => {
|
|
114
|
+
if (data.idleRuntimeSessionTimeout !== undefined && data.maxLifetime !== undefined) {
|
|
115
|
+
if (data.idleRuntimeSessionTimeout > data.maxLifetime) {
|
|
116
|
+
ctx.addIssue({
|
|
117
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
118
|
+
message: 'idleRuntimeSessionTimeout must be <= maxLifetime',
|
|
119
|
+
path: ['idleRuntimeSessionTimeout'],
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
});
|
|
97
124
|
/**
|
|
98
125
|
* AgentEnvSpec - represents an AgentCore Runtime.
|
|
99
126
|
* This is a top-level resource in the schema.
|
|
@@ -120,7 +147,13 @@ exports.AgentEnvSpecSchema = zod_1.z
|
|
|
120
147
|
protocol: constants_1.ProtocolModeSchema.optional(),
|
|
121
148
|
/** Allowed request headers forwarded to the runtime at invocation time. */
|
|
122
149
|
requestHeaderAllowlist: exports.RequestHeaderAllowlistSchema.optional(),
|
|
150
|
+
/** Authorizer type for inbound requests. Defaults to AWS_IAM. */
|
|
151
|
+
authorizerType: auth_1.RuntimeAuthorizerTypeSchema.optional(),
|
|
152
|
+
/** Authorizer configuration. Required when authorizerType is CUSTOM_JWT. */
|
|
153
|
+
authorizerConfiguration: auth_1.AuthorizerConfigSchema.optional(),
|
|
123
154
|
tags: tags_1.TagsSchema.optional(),
|
|
155
|
+
/** Lifecycle configuration for runtime sessions. */
|
|
156
|
+
lifecycleConfiguration: exports.LifecycleConfigurationSchema.optional(),
|
|
124
157
|
})
|
|
125
158
|
.superRefine((data, ctx) => {
|
|
126
159
|
if (data.networkMode === 'VPC' && !data.networkConfig) {
|
|
@@ -137,5 +170,19 @@ exports.AgentEnvSpecSchema = zod_1.z
|
|
|
137
170
|
path: ['networkConfig'],
|
|
138
171
|
});
|
|
139
172
|
}
|
|
173
|
+
if (data.authorizerType === 'CUSTOM_JWT' && !data.authorizerConfiguration?.customJwtAuthorizer) {
|
|
174
|
+
ctx.addIssue({
|
|
175
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
176
|
+
message: 'authorizerConfiguration with customJwtAuthorizer is required when authorizerType is CUSTOM_JWT',
|
|
177
|
+
path: ['authorizerConfiguration'],
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
if (data.authorizerType !== 'CUSTOM_JWT' && data.authorizerConfiguration) {
|
|
181
|
+
ctx.addIssue({
|
|
182
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
183
|
+
message: 'authorizerConfiguration is only allowed when authorizerType is CUSTOM_JWT',
|
|
184
|
+
path: ['authorizerConfiguration'],
|
|
185
|
+
});
|
|
186
|
+
}
|
|
140
187
|
});
|
|
141
188
|
//# sourceMappingURL=agent-env.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-env.js","sourceRoot":"","sources":["../../../src/schema/schemas/agent-env.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,4CAKsB;AAEtB,4CAA+C;AAC/C,6BAAwB;AAMxB,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAElE,QAAA,eAAe,GAAG,OAAC;KAC7B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,EAAE,C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AC5D,IAAI,EAAE,CAAC,eAAe,CAAC;SACxB,CAAC,CAAC;IACL,CAAC;IACD,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;QACrD,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,uDAAuD;YAChE,IAAI,EAAE,CAAC,eAAe,CAAC;SACxB,CAAC,CAAC;IACL,CAAC;IACD,IAAI,IAAI,CAAC,cAAc,KAAK,YAAY,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,mBAAmB,EAAE,CAAC;QAC/F,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,gGAAgG;YACzG,IAAI,EAAE,CAAC,yBAAyB,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;IACD,IAAI,IAAI,CAAC,cAAc,KAAK,YAAY,IAAI,IAAI,CAAC,uBAAuB,EAAE,CAAC;QACzE,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,2EAA2E;YACpF,IAAI,EAAE,CAAC,yBAAyB,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EvaluationLevelSchema } from './primitives/evaluator';
|
|
2
|
-
import { DEFAULT_STRATEGY_NAMESPACES, MemoryStrategySchema, MemoryStrategyTypeSchema } from './primitives/memory';
|
|
2
|
+
import { DEFAULT_EPISODIC_REFLECTION_NAMESPACES, DEFAULT_STRATEGY_NAMESPACES, MemoryStrategySchema, MemoryStrategyTypeSchema } from './primitives/memory';
|
|
3
3
|
import { PolicyEngineSchema } from './primitives/policy';
|
|
4
4
|
import { TagsSchema } from './primitives/tags';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { DEFAULT_STRATEGY_NAMESPACES, MemoryStrategySchema, MemoryStrategyTypeSchema };
|
|
6
|
+
export { DEFAULT_EPISODIC_REFLECTION_NAMESPACES, DEFAULT_STRATEGY_NAMESPACES, MemoryStrategySchema, MemoryStrategyTypeSchema, };
|
|
7
7
|
export { EvaluationLevelSchema };
|
|
8
8
|
export type { MemoryStrategy, MemoryStrategyType } from './primitives/memory';
|
|
9
9
|
export type { OnlineEvalConfig } from './primitives/online-eval-config';
|
|
@@ -30,10 +30,12 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
30
30
|
SEMANTIC: "SEMANTIC";
|
|
31
31
|
SUMMARIZATION: "SUMMARIZATION";
|
|
32
32
|
USER_PREFERENCE: "USER_PREFERENCE";
|
|
33
|
+
EPISODIC: "EPISODIC";
|
|
33
34
|
}>;
|
|
34
35
|
name: z.ZodOptional<z.ZodString>;
|
|
35
36
|
description: z.ZodOptional<z.ZodString>;
|
|
36
37
|
namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
reflectionNamespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
39
|
}, z.core.$strip>>>;
|
|
38
40
|
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39
41
|
}, z.core.$strip>;
|
|
@@ -52,7 +54,7 @@ export type ApiKeyCredential = z.infer<typeof ApiKeyCredentialSchema>;
|
|
|
52
54
|
export declare const OAuthCredentialSchema: z.ZodObject<{
|
|
53
55
|
type: z.ZodLiteral<"OAuthCredentialProvider">;
|
|
54
56
|
name: z.ZodString;
|
|
55
|
-
discoveryUrl: z.ZodString
|
|
57
|
+
discoveryUrl: z.ZodOptional<z.ZodString>;
|
|
56
58
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
59
|
vendor: z.ZodDefault<z.ZodString>;
|
|
58
60
|
managed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -68,7 +70,7 @@ export declare const CredentialSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
68
70
|
}, z.core.$strip>, z.ZodObject<{
|
|
69
71
|
type: z.ZodLiteral<"OAuthCredentialProvider">;
|
|
70
72
|
name: z.ZodString;
|
|
71
|
-
discoveryUrl: z.ZodString
|
|
73
|
+
discoveryUrl: z.ZodOptional<z.ZodString>;
|
|
72
74
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
75
|
vendor: z.ZodDefault<z.ZodString>;
|
|
74
76
|
managed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -159,7 +161,41 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
159
161
|
A2A: "A2A";
|
|
160
162
|
}>>;
|
|
161
163
|
requestHeaderAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
164
|
+
authorizerType: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
AWS_IAM: "AWS_IAM";
|
|
166
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
167
|
+
}>>;
|
|
168
|
+
authorizerConfiguration: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
discoveryUrl: z.ZodString;
|
|
171
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
173
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
customClaims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
175
|
+
inboundTokenClaimName: z.ZodString;
|
|
176
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
177
|
+
STRING: "STRING";
|
|
178
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
179
|
+
}>;
|
|
180
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
181
|
+
claimMatchOperator: z.ZodEnum<{
|
|
182
|
+
EQUALS: "EQUALS";
|
|
183
|
+
CONTAINS: "CONTAINS";
|
|
184
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
185
|
+
}>;
|
|
186
|
+
claimMatchValue: z.ZodObject<{
|
|
187
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
188
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
}, z.core.$strict>>>;
|
|
192
|
+
}, z.core.$strict>>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
162
194
|
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
195
|
+
lifecycleConfiguration: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
idleRuntimeSessionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
}, z.core.$strip>>;
|
|
163
199
|
}, z.core.$strip>>>;
|
|
164
200
|
memories: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
165
201
|
type: z.ZodLiteral<"AgentCoreMemory">;
|
|
@@ -170,10 +206,12 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
170
206
|
SEMANTIC: "SEMANTIC";
|
|
171
207
|
SUMMARIZATION: "SUMMARIZATION";
|
|
172
208
|
USER_PREFERENCE: "USER_PREFERENCE";
|
|
209
|
+
EPISODIC: "EPISODIC";
|
|
173
210
|
}>;
|
|
174
211
|
name: z.ZodOptional<z.ZodString>;
|
|
175
212
|
description: z.ZodOptional<z.ZodString>;
|
|
176
213
|
namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
214
|
+
reflectionNamespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
215
|
}, z.core.$strip>>>;
|
|
178
216
|
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
179
217
|
}, z.core.$strip>>>;
|
|
@@ -183,7 +221,7 @@ export declare const AgentCoreProjectSpecSchema: z.ZodObject<{
|
|
|
183
221
|
}, z.core.$strip>, z.ZodObject<{
|
|
184
222
|
type: z.ZodLiteral<"OAuthCredentialProvider">;
|
|
185
223
|
name: z.ZodString;
|
|
186
|
-
discoveryUrl: z.ZodString
|
|
224
|
+
discoveryUrl: z.ZodOptional<z.ZodString>;
|
|
187
225
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
226
|
vendor: z.ZodDefault<z.ZodString>;
|
|
189
227
|
managed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcore-project.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,qBAAqB,EAA8C,MAAM,wBAAwB,CAAC;AAC3G,OAAO,
|
|
1
|
+
{"version":3,"file":"agentcore-project.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,qBAAqB,EAA8C,MAAM,wBAAwB,CAAC;AAC3G,OAAO,EACL,sCAAsC,EACtC,2BAA2B,EAC3B,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,EACL,sCAAsC,EACtC,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,GACzB,CAAC;AACF,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,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6HnC,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.AgentCoreMcpRuntimeToolSchema = exports.AgentCoreGatewayTargetSchema = exports.AgentCoreGatewaySchema = exports.TagsSchema = 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;
|
|
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.AgentCoreMcpRuntimeToolSchema = exports.AgentCoreGatewayTargetSchema = exports.AgentCoreGatewaySchema = exports.TagsSchema = 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 = exports.DEFAULT_EPISODIC_REFLECTION_NAMESPACES = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* AgentCore Project Schema - Resource-centric model
|
|
6
6
|
*
|
|
@@ -15,6 +15,7 @@ const mcp_1 = require("./mcp");
|
|
|
15
15
|
const evaluator_1 = require("./primitives/evaluator");
|
|
16
16
|
Object.defineProperty(exports, "EvaluationLevelSchema", { enumerable: true, get: function () { return evaluator_1.EvaluationLevelSchema; } });
|
|
17
17
|
const memory_1 = require("./primitives/memory");
|
|
18
|
+
Object.defineProperty(exports, "DEFAULT_EPISODIC_REFLECTION_NAMESPACES", { enumerable: true, get: function () { return memory_1.DEFAULT_EPISODIC_REFLECTION_NAMESPACES; } });
|
|
18
19
|
Object.defineProperty(exports, "DEFAULT_STRATEGY_NAMESPACES", { enumerable: true, get: function () { return memory_1.DEFAULT_STRATEGY_NAMESPACES; } });
|
|
19
20
|
Object.defineProperty(exports, "MemoryStrategySchema", { enumerable: true, get: function () { return memory_1.MemoryStrategySchema; } });
|
|
20
21
|
Object.defineProperty(exports, "MemoryStrategyTypeSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyTypeSchema; } });
|
|
@@ -89,8 +90,8 @@ exports.ApiKeyCredentialSchema = zod_1.z.object({
|
|
|
89
90
|
exports.OAuthCredentialSchema = zod_1.z.object({
|
|
90
91
|
type: zod_1.z.literal('OAuthCredentialProvider'),
|
|
91
92
|
name: exports.CredentialNameSchema,
|
|
92
|
-
/** OIDC discovery URL for the OAuth provider */
|
|
93
|
-
discoveryUrl: zod_1.z.string().url(),
|
|
93
|
+
/** OIDC discovery URL for the OAuth provider (optional for imported providers that already exist in Identity service) */
|
|
94
|
+
discoveryUrl: zod_1.z.string().url().optional(),
|
|
94
95
|
/** Scopes this credential provider supports */
|
|
95
96
|
scopes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
96
97
|
/** Credential provider vendor type */
|
|
@@ -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,+BAA4G;AAC5G,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,+BAA4G;AAC5G,sDAA2G;AAoBlG,sGApBA,iCAAqB,OAoBA;AAnB9B,gDAK6B;AAS3B,uHAbA,+CAAsC,OAaA;AACtC,4GAbA,oCAA2B,OAaA;AAC3B,qGAbA,6BAAoB,OAaA;AACpB,yGAbA,iCAAwB,OAaA;AAX1B,wEAAyE;AACzE,gDAAyD;AAkBhD,mGAlBA,2BAAkB,OAkBA;AAjB3B,4CAA+C;AAoBtC,2FApBA,iBAAU,OAoBA;AAnBnB,yCAAsC;AACtC,6BAAwB;AAYxB,sEAAqG;AAA5F,4HAAA,sBAAsB,OAAA;AAAE,gIAAA,0BAA0B,OAAA;AAE3D,oDAA0G;AAAjG,iHAAA,oBAAoB,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AAGzE,8CAAmH;AAA1G,gHAAA,sBAAsB,OAAA;AAAE,0GAAA,gBAAgB,OAAA;AAAE,sGAAA,YAAY,OAAA;AAAE,8GAAA,oBAAoB,OAAA;AAMrF,6BAA4G;AAAnG,6GAAA,sBAAsB,OAAA;AAAE,mHAAA,4BAA4B,OAAA;AAAE,oHAAA,6BAA6B,OAAA;AAE5F,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAElE,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,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AQ,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"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GatewayAuthorizerTypeSchema: z.ZodEnum<{
|
|
3
|
+
NONE: "NONE";
|
|
4
|
+
AWS_IAM: "AWS_IAM";
|
|
5
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
6
|
+
}>;
|
|
7
|
+
export type GatewayAuthorizerType = z.infer<typeof GatewayAuthorizerTypeSchema>;
|
|
8
|
+
export declare const RuntimeAuthorizerTypeSchema: z.ZodEnum<{
|
|
9
|
+
AWS_IAM: "AWS_IAM";
|
|
10
|
+
CUSTOM_JWT: "CUSTOM_JWT";
|
|
11
|
+
}>;
|
|
12
|
+
export type RuntimeAuthorizerType = z.infer<typeof RuntimeAuthorizerTypeSchema>;
|
|
13
|
+
export declare const ClaimMatchOperatorSchema: z.ZodEnum<{
|
|
14
|
+
EQUALS: "EQUALS";
|
|
15
|
+
CONTAINS: "CONTAINS";
|
|
16
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
17
|
+
}>;
|
|
18
|
+
export type ClaimMatchOperator = z.infer<typeof ClaimMatchOperatorSchema>;
|
|
19
|
+
export declare const ClaimMatchValueSchema: z.ZodObject<{
|
|
20
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
21
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type ClaimMatchValue = z.infer<typeof ClaimMatchValueSchema>;
|
|
24
|
+
export declare const InboundTokenClaimValueTypeSchema: z.ZodEnum<{
|
|
25
|
+
STRING: "STRING";
|
|
26
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
27
|
+
}>;
|
|
28
|
+
export type InboundTokenClaimValueType = z.infer<typeof InboundTokenClaimValueTypeSchema>;
|
|
29
|
+
export declare const CustomClaimValidationSchema: z.ZodObject<{
|
|
30
|
+
inboundTokenClaimName: z.ZodString;
|
|
31
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
32
|
+
STRING: "STRING";
|
|
33
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
34
|
+
}>;
|
|
35
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
36
|
+
claimMatchOperator: z.ZodEnum<{
|
|
37
|
+
EQUALS: "EQUALS";
|
|
38
|
+
CONTAINS: "CONTAINS";
|
|
39
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
40
|
+
}>;
|
|
41
|
+
claimMatchValue: z.ZodObject<{
|
|
42
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
43
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
export type CustomClaimValidation = z.infer<typeof CustomClaimValidationSchema>;
|
|
48
|
+
/**
|
|
49
|
+
* Custom JWT authorizer configuration.
|
|
50
|
+
* Used when authorizerType is 'CUSTOM_JWT'.
|
|
51
|
+
*
|
|
52
|
+
* At least one of allowedAudience, allowedClients, allowedScopes, or customClaims
|
|
53
|
+
* must be provided. Only discoveryUrl is unconditionally required.
|
|
54
|
+
*/
|
|
55
|
+
export declare const CustomJwtAuthorizerConfigSchema: z.ZodObject<{
|
|
56
|
+
discoveryUrl: 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>>;
|
|
60
|
+
customClaims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
+
inboundTokenClaimName: z.ZodString;
|
|
62
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
63
|
+
STRING: "STRING";
|
|
64
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
65
|
+
}>;
|
|
66
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
67
|
+
claimMatchOperator: z.ZodEnum<{
|
|
68
|
+
EQUALS: "EQUALS";
|
|
69
|
+
CONTAINS: "CONTAINS";
|
|
70
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
71
|
+
}>;
|
|
72
|
+
claimMatchValue: z.ZodObject<{
|
|
73
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
74
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
}, z.core.$strict>>>;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export type CustomJwtAuthorizerConfig = z.infer<typeof CustomJwtAuthorizerConfigSchema>;
|
|
80
|
+
/**
|
|
81
|
+
* Resource-agnostic authorizer configuration container.
|
|
82
|
+
* Used by both Gateway and Runtime resources.
|
|
83
|
+
*/
|
|
84
|
+
export declare const AuthorizerConfigSchema: z.ZodObject<{
|
|
85
|
+
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
discoveryUrl: z.ZodString;
|
|
87
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
88
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
customClaims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
+
inboundTokenClaimName: z.ZodString;
|
|
92
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
93
|
+
STRING: "STRING";
|
|
94
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
95
|
+
}>;
|
|
96
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
97
|
+
claimMatchOperator: z.ZodEnum<{
|
|
98
|
+
EQUALS: "EQUALS";
|
|
99
|
+
CONTAINS: "CONTAINS";
|
|
100
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
101
|
+
}>;
|
|
102
|
+
claimMatchValue: z.ZodObject<{
|
|
103
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
104
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
}, z.core.$strict>>>;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type AuthorizerConfig = z.infer<typeof AuthorizerConfigSchema>;
|
|
111
|
+
/** @deprecated Use AuthorizerConfigSchema. Backwards-compatible alias for Gateway. */
|
|
112
|
+
export declare const GatewayAuthorizerConfigSchema: z.ZodObject<{
|
|
113
|
+
customJwtAuthorizer: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
discoveryUrl: z.ZodString;
|
|
115
|
+
allowedAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
116
|
+
allowedClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
customClaims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
|
+
inboundTokenClaimName: z.ZodString;
|
|
120
|
+
inboundTokenClaimValueType: z.ZodEnum<{
|
|
121
|
+
STRING: "STRING";
|
|
122
|
+
STRING_ARRAY: "STRING_ARRAY";
|
|
123
|
+
}>;
|
|
124
|
+
authorizingClaimMatchValue: z.ZodObject<{
|
|
125
|
+
claimMatchOperator: z.ZodEnum<{
|
|
126
|
+
EQUALS: "EQUALS";
|
|
127
|
+
CONTAINS: "CONTAINS";
|
|
128
|
+
CONTAINS_ANY: "CONTAINS_ANY";
|
|
129
|
+
}>;
|
|
130
|
+
claimMatchValue: z.ZodObject<{
|
|
131
|
+
matchValueString: z.ZodOptional<z.ZodString>;
|
|
132
|
+
matchValueStringList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
}, z.core.$strict>>>;
|
|
136
|
+
}, z.core.$strict>>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
/** @deprecated Use AuthorizerConfig. Backwards-compatible alias for Gateway. */
|
|
139
|
+
export type GatewayAuthorizerConfig = AuthorizerConfig;
|
|
140
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,2BAA2B;;;;EAA4C,CAAC;AACrF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;EAAoC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AA4BhF,eAAO,MAAM,wBAAwB;;;;EAAiD,CAAC;AACvF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,qBAAqB;;;iBAmB9B,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,gCAAgC;;;EAAqC,CAAC;AACnF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;kBAgB7B,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAIhF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;kBA0BxC,CAAC;AAEL,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,sFAAsF;AACtF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAC;AACpE,gFAAgF;AAChF,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GatewayAuthorizerConfigSchema = exports.AuthorizerConfigSchema = exports.CustomJwtAuthorizerConfigSchema = exports.CustomClaimValidationSchema = exports.InboundTokenClaimValueTypeSchema = exports.ClaimMatchValueSchema = exports.ClaimMatchOperatorSchema = exports.RuntimeAuthorizerTypeSchema = exports.GatewayAuthorizerTypeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// ============================================================================
|
|
6
|
+
// Shared Authorization Schemas
|
|
7
|
+
// ============================================================================
|
|
8
|
+
exports.GatewayAuthorizerTypeSchema = zod_1.z.enum(['NONE', 'AWS_IAM', 'CUSTOM_JWT']);
|
|
9
|
+
exports.RuntimeAuthorizerTypeSchema = zod_1.z.enum(['AWS_IAM', 'CUSTOM_JWT']);
|
|
10
|
+
/** OIDC well-known configuration endpoint suffix (per OpenID Connect Discovery 1.0 spec) */
|
|
11
|
+
const OIDC_WELL_KNOWN_SUFFIX = '/.well-known/openid-configuration';
|
|
12
|
+
/**
|
|
13
|
+
* OIDC Discovery URL schema.
|
|
14
|
+
* Must be a valid URL ending with the standard OIDC well-known endpoint.
|
|
15
|
+
* @see https://openid.net/specs/openid-connect-discovery-1_0.html
|
|
16
|
+
*/
|
|
17
|
+
const OidcDiscoveryUrlSchema = zod_1.z
|
|
18
|
+
.string()
|
|
19
|
+
.url('Must be a valid URL')
|
|
20
|
+
.refine(url => url.startsWith('https://'), {
|
|
21
|
+
message: 'OIDC discovery URL must use HTTPS',
|
|
22
|
+
})
|
|
23
|
+
.refine(url => url.endsWith(OIDC_WELL_KNOWN_SUFFIX), {
|
|
24
|
+
message: `OIDC discovery URL must end with '${OIDC_WELL_KNOWN_SUFFIX}'`,
|
|
25
|
+
});
|
|
26
|
+
// ── Custom Claims Schemas (matches CFN CustomClaimValidationType) ──
|
|
27
|
+
// API-documented patterns (from ClaimMatchValueType and CustomClaimValidationType)
|
|
28
|
+
const MATCH_VALUE_PATTERN = /^[A-Za-z0-9_.-]+$/;
|
|
29
|
+
const CLAIM_NAME_PATTERN = /^[A-Za-z0-9_.:-]+$/;
|
|
30
|
+
// Server-side reserved claim names (not regex-documented; API rejects these at deploy time)
|
|
31
|
+
const RESERVED_CLAIM_NAMES = ['client_id'];
|
|
32
|
+
exports.ClaimMatchOperatorSchema = zod_1.z.enum(['EQUALS', 'CONTAINS', 'CONTAINS_ANY']);
|
|
33
|
+
exports.ClaimMatchValueSchema = zod_1.z
|
|
34
|
+
.object({
|
|
35
|
+
matchValueString: zod_1.z
|
|
36
|
+
.string()
|
|
37
|
+
.min(1)
|
|
38
|
+
.max(255)
|
|
39
|
+
.regex(MATCH_VALUE_PATTERN, 'Match value must match [A-Za-z0-9_.-]+')
|
|
40
|
+
.optional(),
|
|
41
|
+
matchValueStringList: zod_1.z
|
|
42
|
+
.array(zod_1.z.string().min(1).max(255).regex(MATCH_VALUE_PATTERN, 'Each match value must match [A-Za-z0-9_.-]+'))
|
|
43
|
+
.min(1)
|
|
44
|
+
.max(255)
|
|
45
|
+
.optional(),
|
|
46
|
+
})
|
|
47
|
+
.refine(data => data.matchValueString !== undefined || data.matchValueStringList !== undefined, {
|
|
48
|
+
message: 'Either matchValueString or matchValueStringList must be provided',
|
|
49
|
+
})
|
|
50
|
+
.refine(data => !(data.matchValueString !== undefined && data.matchValueStringList !== undefined), {
|
|
51
|
+
message: 'Only one of matchValueString or matchValueStringList may be provided',
|
|
52
|
+
});
|
|
53
|
+
exports.InboundTokenClaimValueTypeSchema = zod_1.z.enum(['STRING', 'STRING_ARRAY']);
|
|
54
|
+
exports.CustomClaimValidationSchema = zod_1.z
|
|
55
|
+
.object({
|
|
56
|
+
inboundTokenClaimName: zod_1.z
|
|
57
|
+
.string()
|
|
58
|
+
.min(1)
|
|
59
|
+
.max(255)
|
|
60
|
+
.regex(CLAIM_NAME_PATTERN, 'Claim name must match [A-Za-z0-9_.-:]+')
|
|
61
|
+
.refine(name => !RESERVED_CLAIM_NAMES.includes(name), {
|
|
62
|
+
message: `Claim name cannot be a reserved name (${RESERVED_CLAIM_NAMES.join(', ')})`,
|
|
63
|
+
}),
|
|
64
|
+
inboundTokenClaimValueType: exports.InboundTokenClaimValueTypeSchema,
|
|
65
|
+
authorizingClaimMatchValue: zod_1.z.object({
|
|
66
|
+
claimMatchOperator: exports.ClaimMatchOperatorSchema,
|
|
67
|
+
claimMatchValue: exports.ClaimMatchValueSchema,
|
|
68
|
+
}),
|
|
69
|
+
})
|
|
70
|
+
.strict();
|
|
71
|
+
// ── Custom JWT Authorizer Configuration ──
|
|
72
|
+
/**
|
|
73
|
+
* Custom JWT authorizer configuration.
|
|
74
|
+
* Used when authorizerType is 'CUSTOM_JWT'.
|
|
75
|
+
*
|
|
76
|
+
* At least one of allowedAudience, allowedClients, allowedScopes, or customClaims
|
|
77
|
+
* must be provided. Only discoveryUrl is unconditionally required.
|
|
78
|
+
*/
|
|
79
|
+
exports.CustomJwtAuthorizerConfigSchema = zod_1.z
|
|
80
|
+
.object({
|
|
81
|
+
/** OIDC discovery URL (e.g., https://cognito-idp.{region}.amazonaws.com/{userPoolId}/.well-known/openid-configuration) */
|
|
82
|
+
discoveryUrl: OidcDiscoveryUrlSchema,
|
|
83
|
+
/** List of allowed audiences (typically client IDs) */
|
|
84
|
+
allowedAudience: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
85
|
+
/** List of allowed client IDs */
|
|
86
|
+
allowedClients: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
87
|
+
/** List of allowed scopes */
|
|
88
|
+
allowedScopes: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
89
|
+
/** Custom claim validations */
|
|
90
|
+
customClaims: zod_1.z.array(exports.CustomClaimValidationSchema).min(1).optional(),
|
|
91
|
+
})
|
|
92
|
+
.strict()
|
|
93
|
+
.superRefine((data, ctx) => {
|
|
94
|
+
const hasAudience = data.allowedAudience && data.allowedAudience.length > 0;
|
|
95
|
+
const hasClients = data.allowedClients && data.allowedClients.length > 0;
|
|
96
|
+
const hasScopes = data.allowedScopes && data.allowedScopes.length > 0;
|
|
97
|
+
const hasClaims = data.customClaims && data.customClaims.length > 0;
|
|
98
|
+
if (!hasAudience && !hasClients && !hasScopes && !hasClaims) {
|
|
99
|
+
ctx.addIssue({
|
|
100
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
101
|
+
message: 'At least one of allowedAudience, allowedClients, allowedScopes, or customClaims must be provided',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
/**
|
|
106
|
+
* Resource-agnostic authorizer configuration container.
|
|
107
|
+
* Used by both Gateway and Runtime resources.
|
|
108
|
+
*/
|
|
109
|
+
exports.AuthorizerConfigSchema = zod_1.z.object({
|
|
110
|
+
customJwtAuthorizer: exports.CustomJwtAuthorizerConfigSchema.optional(),
|
|
111
|
+
});
|
|
112
|
+
/** @deprecated Use AuthorizerConfigSchema. Backwards-compatible alias for Gateway. */
|
|
113
|
+
exports.GatewayAuthorizerConfigSchema = exports.AuthorizerConfigSchema;
|
|
114
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/schema/schemas/auth.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAElE,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;AAGxE,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;AAG7E,4FAA4F;AAC5F,MAAM,sBAAsB,GAAG,mCAAmC,CAAC;AAEnE;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,OAAC;KAC7B,MAAM,EAAE;KACR,GAAG,CAAC,qBAAqB,CAAC;KAC1B,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;IACzC,OAAO,EAAE,mCAAmC;CAC7C,CAAC;KACD,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE;IACnD,OAAO,EAAE,qCAAqC,sBAAsB,GAAG;CACxE,CAAC,CAAC;AAEL,sEAAsE;AAEtE,mFAAmF;AACnF,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAChD,MAAM,kBAA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