@aws-sdk/client-bedrock-agentcore 3.901.0 → 3.904.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/index.js +432 -77
- package/dist-es/BedrockAgentCore.js +10 -0
- package/dist-es/commands/BatchCreateMemoryRecordsCommand.js +23 -0
- package/dist-es/commands/BatchDeleteMemoryRecordsCommand.js +22 -0
- package/dist-es/commands/BatchUpdateMemoryRecordsCommand.js +23 -0
- package/dist-es/commands/GetAgentCardCommand.js +22 -0
- package/dist-es/commands/StopRuntimeSessionCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +111 -56
- package/dist-es/protocols/Aws_restJson1.js +193 -6
- package/dist-types/BedrockAgentCore.d.ts +35 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +7 -2
- package/dist-types/commands/BatchCreateMemoryRecordsCommand.d.ts +123 -0
- package/dist-types/commands/BatchDeleteMemoryRecordsCommand.d.ts +114 -0
- package/dist-types/commands/BatchUpdateMemoryRecordsCommand.d.ts +122 -0
- package/dist-types/commands/CreateEventCommand.d.ts +10 -0
- package/dist-types/commands/GetAgentCardCommand.d.ts +99 -0
- package/dist-types/commands/GetEventCommand.d.ts +5 -0
- package/dist-types/commands/GetResourceApiKeyCommand.d.ts +1 -1
- package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +1 -1
- package/dist-types/commands/GetWorkloadAccessTokenCommand.d.ts +1 -1
- package/dist-types/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +1 -1
- package/dist-types/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +1 -1
- package/dist-types/commands/ListEventsCommand.d.ts +18 -0
- package/dist-types/commands/StopRuntimeSessionCommand.d.ts +105 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +632 -186
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +85 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchCreateMemoryRecordsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchDeleteMemoryRecordsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchUpdateMemoryRecordsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAgentCardCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/StopRuntimeSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +225 -70
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +1 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { BedrockAgentCoreClient } from "./BedrockAgentCoreClient";
|
|
3
|
+
import { BatchCreateMemoryRecordsCommand, } from "./commands/BatchCreateMemoryRecordsCommand";
|
|
4
|
+
import { BatchDeleteMemoryRecordsCommand, } from "./commands/BatchDeleteMemoryRecordsCommand";
|
|
5
|
+
import { BatchUpdateMemoryRecordsCommand, } from "./commands/BatchUpdateMemoryRecordsCommand";
|
|
3
6
|
import { CreateEventCommand } from "./commands/CreateEventCommand";
|
|
4
7
|
import { DeleteEventCommand } from "./commands/DeleteEventCommand";
|
|
5
8
|
import { DeleteMemoryRecordCommand, } from "./commands/DeleteMemoryRecordCommand";
|
|
9
|
+
import { GetAgentCardCommand, } from "./commands/GetAgentCardCommand";
|
|
6
10
|
import { GetBrowserSessionCommand, } from "./commands/GetBrowserSessionCommand";
|
|
7
11
|
import { GetCodeInterpreterSessionCommand, } from "./commands/GetCodeInterpreterSessionCommand";
|
|
8
12
|
import { GetEventCommand } from "./commands/GetEventCommand";
|
|
@@ -25,11 +29,16 @@ import { StartBrowserSessionCommand, } from "./commands/StartBrowserSessionComma
|
|
|
25
29
|
import { StartCodeInterpreterSessionCommand, } from "./commands/StartCodeInterpreterSessionCommand";
|
|
26
30
|
import { StopBrowserSessionCommand, } from "./commands/StopBrowserSessionCommand";
|
|
27
31
|
import { StopCodeInterpreterSessionCommand, } from "./commands/StopCodeInterpreterSessionCommand";
|
|
32
|
+
import { StopRuntimeSessionCommand, } from "./commands/StopRuntimeSessionCommand";
|
|
28
33
|
import { UpdateBrowserStreamCommand, } from "./commands/UpdateBrowserStreamCommand";
|
|
29
34
|
const commands = {
|
|
35
|
+
BatchCreateMemoryRecordsCommand,
|
|
36
|
+
BatchDeleteMemoryRecordsCommand,
|
|
37
|
+
BatchUpdateMemoryRecordsCommand,
|
|
30
38
|
CreateEventCommand,
|
|
31
39
|
DeleteEventCommand,
|
|
32
40
|
DeleteMemoryRecordCommand,
|
|
41
|
+
GetAgentCardCommand,
|
|
33
42
|
GetBrowserSessionCommand,
|
|
34
43
|
GetCodeInterpreterSessionCommand,
|
|
35
44
|
GetEventCommand,
|
|
@@ -52,6 +61,7 @@ const commands = {
|
|
|
52
61
|
StartCodeInterpreterSessionCommand,
|
|
53
62
|
StopBrowserSessionCommand,
|
|
54
63
|
StopCodeInterpreterSessionCommand,
|
|
64
|
+
StopRuntimeSessionCommand,
|
|
55
65
|
UpdateBrowserStreamCommand,
|
|
56
66
|
};
|
|
57
67
|
export class BedrockAgentCore extends BedrockAgentCoreClient {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { BatchCreateMemoryRecordsInputFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_BatchCreateMemoryRecordsCommand, se_BatchCreateMemoryRecordsCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class BatchCreateMemoryRecordsCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AmazonBedrockAgentCore", "BatchCreateMemoryRecords", {})
|
|
18
|
+
.n("BedrockAgentCoreClient", "BatchCreateMemoryRecordsCommand")
|
|
19
|
+
.f(BatchCreateMemoryRecordsInputFilterSensitiveLog, void 0)
|
|
20
|
+
.ser(se_BatchCreateMemoryRecordsCommand)
|
|
21
|
+
.de(de_BatchCreateMemoryRecordsCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchDeleteMemoryRecordsCommand, se_BatchDeleteMemoryRecordsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchDeleteMemoryRecordsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonBedrockAgentCore", "BatchDeleteMemoryRecords", {})
|
|
17
|
+
.n("BedrockAgentCoreClient", "BatchDeleteMemoryRecordsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchDeleteMemoryRecordsCommand)
|
|
20
|
+
.de(de_BatchDeleteMemoryRecordsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { BatchUpdateMemoryRecordsInputFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_BatchUpdateMemoryRecordsCommand, se_BatchUpdateMemoryRecordsCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class BatchUpdateMemoryRecordsCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AmazonBedrockAgentCore", "BatchUpdateMemoryRecords", {})
|
|
18
|
+
.n("BedrockAgentCoreClient", "BatchUpdateMemoryRecordsCommand")
|
|
19
|
+
.f(BatchUpdateMemoryRecordsInputFilterSensitiveLog, void 0)
|
|
20
|
+
.ser(se_BatchUpdateMemoryRecordsCommand)
|
|
21
|
+
.de(de_BatchUpdateMemoryRecordsCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetAgentCardCommand, se_GetAgentCardCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetAgentCardCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonBedrockAgentCore", "GetAgentCard", {})
|
|
17
|
+
.n("BedrockAgentCoreClient", "GetAgentCardCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetAgentCardCommand)
|
|
20
|
+
.de(de_GetAgentCardCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StopRuntimeSessionCommand, se_StopRuntimeSessionCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StopRuntimeSessionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonBedrockAgentCore", "StopRuntimeSession", {})
|
|
17
|
+
.n("BedrockAgentCoreClient", "StopRuntimeSessionCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_StopRuntimeSessionCommand)
|
|
20
|
+
.de(de_StopRuntimeSessionCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
export * from "./BatchCreateMemoryRecordsCommand";
|
|
2
|
+
export * from "./BatchDeleteMemoryRecordsCommand";
|
|
3
|
+
export * from "./BatchUpdateMemoryRecordsCommand";
|
|
1
4
|
export * from "./CreateEventCommand";
|
|
2
5
|
export * from "./DeleteEventCommand";
|
|
3
6
|
export * from "./DeleteMemoryRecordCommand";
|
|
7
|
+
export * from "./GetAgentCardCommand";
|
|
4
8
|
export * from "./GetBrowserSessionCommand";
|
|
5
9
|
export * from "./GetCodeInterpreterSessionCommand";
|
|
6
10
|
export * from "./GetEventCommand";
|
|
@@ -23,4 +27,5 @@ export * from "./StartBrowserSessionCommand";
|
|
|
23
27
|
export * from "./StartCodeInterpreterSessionCommand";
|
|
24
28
|
export * from "./StopBrowserSessionCommand";
|
|
25
29
|
export * from "./StopCodeInterpreterSessionCommand";
|
|
30
|
+
export * from "./StopRuntimeSessionCommand";
|
|
26
31
|
export * from "./UpdateBrowserStreamCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
3
3
|
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://bedrock-agentcore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://bedrock-agentcore-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://bedrock-agentcore.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://bedrock-agentcore.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -95,14 +95,6 @@ export class ValidationException extends __BaseException {
|
|
|
95
95
|
this.fieldList = opts.fieldList;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
export const BrowserSessionStatus = {
|
|
99
|
-
READY: "READY",
|
|
100
|
-
TERMINATED: "TERMINATED",
|
|
101
|
-
};
|
|
102
|
-
export const AutomationStreamStatus = {
|
|
103
|
-
DISABLED: "DISABLED",
|
|
104
|
-
ENABLED: "ENABLED",
|
|
105
|
-
};
|
|
106
98
|
export class ConflictException extends __BaseException {
|
|
107
99
|
name = "ConflictException";
|
|
108
100
|
$fault = "client";
|
|
@@ -115,18 +107,6 @@ export class ConflictException extends __BaseException {
|
|
|
115
107
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
116
108
|
}
|
|
117
109
|
}
|
|
118
|
-
export var StreamUpdate;
|
|
119
|
-
(function (StreamUpdate) {
|
|
120
|
-
StreamUpdate.visit = (value, visitor) => {
|
|
121
|
-
if (value.automationStreamUpdate !== undefined)
|
|
122
|
-
return visitor.automationStreamUpdate(value.automationStreamUpdate);
|
|
123
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
124
|
-
};
|
|
125
|
-
})(StreamUpdate || (StreamUpdate = {}));
|
|
126
|
-
export const CodeInterpreterSessionStatus = {
|
|
127
|
-
READY: "READY",
|
|
128
|
-
TERMINATED: "TERMINATED",
|
|
129
|
-
};
|
|
130
110
|
export class UnauthorizedException extends __BaseException {
|
|
131
111
|
name = "UnauthorizedException";
|
|
132
112
|
$fault = "client";
|
|
@@ -139,6 +119,26 @@ export class UnauthorizedException extends __BaseException {
|
|
|
139
119
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
140
120
|
}
|
|
141
121
|
}
|
|
122
|
+
export const BrowserSessionStatus = {
|
|
123
|
+
READY: "READY",
|
|
124
|
+
TERMINATED: "TERMINATED",
|
|
125
|
+
};
|
|
126
|
+
export const AutomationStreamStatus = {
|
|
127
|
+
DISABLED: "DISABLED",
|
|
128
|
+
ENABLED: "ENABLED",
|
|
129
|
+
};
|
|
130
|
+
export var StreamUpdate;
|
|
131
|
+
(function (StreamUpdate) {
|
|
132
|
+
StreamUpdate.visit = (value, visitor) => {
|
|
133
|
+
if (value.automationStreamUpdate !== undefined)
|
|
134
|
+
return visitor.automationStreamUpdate(value.automationStreamUpdate);
|
|
135
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
136
|
+
};
|
|
137
|
+
})(StreamUpdate || (StreamUpdate = {}));
|
|
138
|
+
export const CodeInterpreterSessionStatus = {
|
|
139
|
+
READY: "READY",
|
|
140
|
+
TERMINATED: "TERMINATED",
|
|
141
|
+
};
|
|
142
142
|
export const Oauth2FlowType = {
|
|
143
143
|
M2M: "M2M",
|
|
144
144
|
USER_FEDERATION: "USER_FEDERATION",
|
|
@@ -198,6 +198,50 @@ export var CodeInterpreterStreamOutput;
|
|
|
198
198
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
199
199
|
};
|
|
200
200
|
})(CodeInterpreterStreamOutput || (CodeInterpreterStreamOutput = {}));
|
|
201
|
+
export var MemoryContent;
|
|
202
|
+
(function (MemoryContent) {
|
|
203
|
+
MemoryContent.visit = (value, visitor) => {
|
|
204
|
+
if (value.text !== undefined)
|
|
205
|
+
return visitor.text(value.text);
|
|
206
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
207
|
+
};
|
|
208
|
+
})(MemoryContent || (MemoryContent = {}));
|
|
209
|
+
export const MemoryRecordStatus = {
|
|
210
|
+
FAILED: "FAILED",
|
|
211
|
+
SUCCEEDED: "SUCCEEDED",
|
|
212
|
+
};
|
|
213
|
+
export class ServiceException extends __BaseException {
|
|
214
|
+
name = "ServiceException";
|
|
215
|
+
$fault = "server";
|
|
216
|
+
constructor(opts) {
|
|
217
|
+
super({
|
|
218
|
+
name: "ServiceException",
|
|
219
|
+
$fault: "server",
|
|
220
|
+
...opts,
|
|
221
|
+
});
|
|
222
|
+
Object.setPrototypeOf(this, ServiceException.prototype);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
export class ThrottledException extends __BaseException {
|
|
226
|
+
name = "ThrottledException";
|
|
227
|
+
$fault = "client";
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "ThrottledException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts,
|
|
233
|
+
});
|
|
234
|
+
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
export var MetadataValue;
|
|
238
|
+
(function (MetadataValue) {
|
|
239
|
+
MetadataValue.visit = (value, visitor) => {
|
|
240
|
+
if (value.stringValue !== undefined)
|
|
241
|
+
return visitor.stringValue(value.stringValue);
|
|
242
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
243
|
+
};
|
|
244
|
+
})(MetadataValue || (MetadataValue = {}));
|
|
201
245
|
export var Content;
|
|
202
246
|
(function (Content) {
|
|
203
247
|
Content.visit = (value, visitor) => {
|
|
@@ -234,38 +278,27 @@ export class InvalidInputException extends __BaseException {
|
|
|
234
278
|
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
235
279
|
}
|
|
236
280
|
}
|
|
237
|
-
export
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
name: "ServiceException",
|
|
243
|
-
$fault: "server",
|
|
244
|
-
...opts,
|
|
245
|
-
});
|
|
246
|
-
Object.setPrototypeOf(this, ServiceException.prototype);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
export class ThrottledException extends __BaseException {
|
|
250
|
-
name = "ThrottledException";
|
|
251
|
-
$fault = "client";
|
|
252
|
-
constructor(opts) {
|
|
253
|
-
super({
|
|
254
|
-
name: "ThrottledException",
|
|
255
|
-
$fault: "client",
|
|
256
|
-
...opts,
|
|
257
|
-
});
|
|
258
|
-
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
export var MemoryContent;
|
|
262
|
-
(function (MemoryContent) {
|
|
263
|
-
MemoryContent.visit = (value, visitor) => {
|
|
264
|
-
if (value.text !== undefined)
|
|
265
|
-
return visitor.text(value.text);
|
|
281
|
+
export var LeftExpression;
|
|
282
|
+
(function (LeftExpression) {
|
|
283
|
+
LeftExpression.visit = (value, visitor) => {
|
|
284
|
+
if (value.metadataKey !== undefined)
|
|
285
|
+
return visitor.metadataKey(value.metadataKey);
|
|
266
286
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
267
287
|
};
|
|
268
|
-
})(
|
|
288
|
+
})(LeftExpression || (LeftExpression = {}));
|
|
289
|
+
export const OperatorType = {
|
|
290
|
+
EQUALS_TO: "EQUALS_TO",
|
|
291
|
+
EXISTS: "EXISTS",
|
|
292
|
+
NOT_EXISTS: "NOT_EXISTS",
|
|
293
|
+
};
|
|
294
|
+
export var RightExpression;
|
|
295
|
+
(function (RightExpression) {
|
|
296
|
+
RightExpression.visit = (value, visitor) => {
|
|
297
|
+
if (value.metadataValue !== undefined)
|
|
298
|
+
return visitor.metadataValue(value.metadataValue);
|
|
299
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
300
|
+
};
|
|
301
|
+
})(RightExpression || (RightExpression = {}));
|
|
269
302
|
export const InvokeAgentRuntimeRequestFilterSensitiveLog = (obj) => ({
|
|
270
303
|
...obj,
|
|
271
304
|
...(obj.payload && { payload: SENSITIVE_STRING }),
|
|
@@ -343,6 +376,28 @@ export const InvokeCodeInterpreterResponseFilterSensitiveLog = (obj) => ({
|
|
|
343
376
|
...obj,
|
|
344
377
|
...(obj.stream && { stream: "STREAMING_CONTENT" }),
|
|
345
378
|
});
|
|
379
|
+
export const MemoryContentFilterSensitiveLog = (obj) => {
|
|
380
|
+
if (obj.text !== undefined)
|
|
381
|
+
return { text: SENSITIVE_STRING };
|
|
382
|
+
if (obj.$unknown !== undefined)
|
|
383
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
384
|
+
};
|
|
385
|
+
export const MemoryRecordCreateInputFilterSensitiveLog = (obj) => ({
|
|
386
|
+
...obj,
|
|
387
|
+
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
388
|
+
});
|
|
389
|
+
export const BatchCreateMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
390
|
+
...obj,
|
|
391
|
+
...(obj.records && { records: obj.records.map((item) => MemoryRecordCreateInputFilterSensitiveLog(item)) }),
|
|
392
|
+
});
|
|
393
|
+
export const MemoryRecordUpdateInputFilterSensitiveLog = (obj) => ({
|
|
394
|
+
...obj,
|
|
395
|
+
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
396
|
+
});
|
|
397
|
+
export const BatchUpdateMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
398
|
+
...obj,
|
|
399
|
+
...(obj.records && { records: obj.records.map((item) => MemoryRecordUpdateInputFilterSensitiveLog(item)) }),
|
|
400
|
+
});
|
|
346
401
|
export const ContentFilterSensitiveLog = (obj) => {
|
|
347
402
|
if (obj.text !== undefined)
|
|
348
403
|
return { text: SENSITIVE_STRING };
|
|
@@ -364,10 +419,16 @@ export const PayloadTypeFilterSensitiveLog = (obj) => {
|
|
|
364
419
|
export const CreateEventInputFilterSensitiveLog = (obj) => ({
|
|
365
420
|
...obj,
|
|
366
421
|
...(obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }),
|
|
422
|
+
...(obj.metadata && {
|
|
423
|
+
metadata: Object.entries(obj.metadata).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
|
|
424
|
+
}),
|
|
367
425
|
});
|
|
368
426
|
export const EventFilterSensitiveLog = (obj) => ({
|
|
369
427
|
...obj,
|
|
370
428
|
...(obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }),
|
|
429
|
+
...(obj.metadata && {
|
|
430
|
+
metadata: Object.entries(obj.metadata).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
|
|
431
|
+
}),
|
|
371
432
|
});
|
|
372
433
|
export const CreateEventOutputFilterSensitiveLog = (obj) => ({
|
|
373
434
|
...obj,
|
|
@@ -377,12 +438,6 @@ export const GetEventOutputFilterSensitiveLog = (obj) => ({
|
|
|
377
438
|
...obj,
|
|
378
439
|
...(obj.event && { event: EventFilterSensitiveLog(obj.event) }),
|
|
379
440
|
});
|
|
380
|
-
export const MemoryContentFilterSensitiveLog = (obj) => {
|
|
381
|
-
if (obj.text !== undefined)
|
|
382
|
-
return { text: SENSITIVE_STRING };
|
|
383
|
-
if (obj.$unknown !== undefined)
|
|
384
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
385
|
-
};
|
|
386
441
|
export const MemoryRecordFilterSensitiveLog = (obj) => ({
|
|
387
442
|
...obj,
|
|
388
443
|
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|