@aws-sdk/client-bedrock-agentcore 3.928.0 → 3.930.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-cjs/index.js +1843 -2155
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/BedrockAgentCoreClient.js +2 -0
- package/dist-es/commands/BatchCreateMemoryRecordsCommand.js +3 -10
- package/dist-es/commands/BatchDeleteMemoryRecordsCommand.js +3 -9
- package/dist-es/commands/BatchUpdateMemoryRecordsCommand.js +3 -10
- package/dist-es/commands/CompleteResourceTokenAuthCommand.js +3 -10
- package/dist-es/commands/CreateEventCommand.js +3 -10
- package/dist-es/commands/DeleteEventCommand.js +3 -9
- package/dist-es/commands/DeleteMemoryRecordCommand.js +3 -9
- package/dist-es/commands/GetAgentCardCommand.js +3 -9
- package/dist-es/commands/GetBrowserSessionCommand.js +3 -9
- package/dist-es/commands/GetCodeInterpreterSessionCommand.js +3 -9
- package/dist-es/commands/GetEventCommand.js +3 -10
- package/dist-es/commands/GetMemoryRecordCommand.js +3 -10
- package/dist-es/commands/GetResourceApiKeyCommand.js +3 -10
- package/dist-es/commands/GetResourceOauth2TokenCommand.js +3 -10
- package/dist-es/commands/GetWorkloadAccessTokenCommand.js +3 -10
- package/dist-es/commands/GetWorkloadAccessTokenForJWTCommand.js +3 -10
- package/dist-es/commands/GetWorkloadAccessTokenForUserIdCommand.js +3 -10
- package/dist-es/commands/InvokeAgentRuntimeCommand.js +3 -10
- package/dist-es/commands/InvokeCodeInterpreterCommand.js +3 -10
- package/dist-es/commands/ListActorsCommand.js +3 -9
- package/dist-es/commands/ListBrowserSessionsCommand.js +3 -9
- package/dist-es/commands/ListCodeInterpreterSessionsCommand.js +3 -9
- package/dist-es/commands/ListEventsCommand.js +3 -10
- package/dist-es/commands/ListMemoryRecordsCommand.js +3 -10
- package/dist-es/commands/ListSessionsCommand.js +3 -9
- package/dist-es/commands/RetrieveMemoryRecordsCommand.js +3 -10
- package/dist-es/commands/StartBrowserSessionCommand.js +3 -9
- package/dist-es/commands/StartCodeInterpreterSessionCommand.js +3 -9
- package/dist-es/commands/StopBrowserSessionCommand.js +3 -9
- package/dist-es/commands/StopCodeInterpreterSessionCommand.js +3 -9
- package/dist-es/commands/StopRuntimeSessionCommand.js +3 -9
- package/dist-es/commands/UpdateBrowserStreamCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -280
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1756 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +36 -157
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +179 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -115
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +186 -0
- package/package.json +37 -38
- package/dist-es/protocols/Aws_restJson1.js +0 -1593
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -290
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -393
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListCodeInterpreterSessions } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListCodeInterpreterSessionsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "ListCodeInterpreterSessions", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "ListCodeInterpreterSessionsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListCodeInterpreterSessionsCommand)
|
|
20
|
-
.de(de_ListCodeInterpreterSessionsCommand)
|
|
14
|
+
.sc(ListCodeInterpreterSessions)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_ListEventsCommand, se_ListEventsCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { ListEvents } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class ListEventsCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonBedrockAgentCore", "ListEvents", {})
|
|
18
13
|
.n("BedrockAgentCoreClient", "ListEventsCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_ListEventsCommand)
|
|
21
|
-
.de(de_ListEventsCommand)
|
|
14
|
+
.sc(ListEvents)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_ListMemoryRecordsCommand, se_ListMemoryRecordsCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { ListMemoryRecords } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class ListMemoryRecordsCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonBedrockAgentCore", "ListMemoryRecords", {})
|
|
18
13
|
.n("BedrockAgentCoreClient", "ListMemoryRecordsCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_ListMemoryRecordsCommand)
|
|
21
|
-
.de(de_ListMemoryRecordsCommand)
|
|
14
|
+
.sc(ListMemoryRecords)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListSessions } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListSessionsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "ListSessions", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "ListSessionsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListSessionsCommand)
|
|
20
|
-
.de(de_ListSessionsCommand)
|
|
14
|
+
.sc(ListSessions)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_RetrieveMemoryRecordsCommand, se_RetrieveMemoryRecordsCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { RetrieveMemoryRecords } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class RetrieveMemoryRecordsCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonBedrockAgentCore", "RetrieveMemoryRecords", {})
|
|
18
13
|
.n("BedrockAgentCoreClient", "RetrieveMemoryRecordsCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_RetrieveMemoryRecordsCommand)
|
|
21
|
-
.de(de_RetrieveMemoryRecordsCommand)
|
|
14
|
+
.sc(RetrieveMemoryRecords)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartBrowserSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartBrowserSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StartBrowserSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StartBrowserSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartBrowserSessionCommand)
|
|
20
|
-
.de(de_StartBrowserSessionCommand)
|
|
14
|
+
.sc(StartBrowserSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartCodeInterpreterSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartCodeInterpreterSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StartCodeInterpreterSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StartCodeInterpreterSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartCodeInterpreterSessionCommand)
|
|
20
|
-
.de(de_StartCodeInterpreterSessionCommand)
|
|
14
|
+
.sc(StartCodeInterpreterSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopBrowserSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopBrowserSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StopBrowserSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StopBrowserSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopBrowserSessionCommand)
|
|
20
|
-
.de(de_StopBrowserSessionCommand)
|
|
14
|
+
.sc(StopBrowserSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopCodeInterpreterSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopCodeInterpreterSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StopCodeInterpreterSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StopCodeInterpreterSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopCodeInterpreterSessionCommand)
|
|
20
|
-
.de(de_StopCodeInterpreterSessionCommand)
|
|
14
|
+
.sc(StopCodeInterpreterSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopRuntimeSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopRuntimeSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StopRuntimeSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StopRuntimeSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopRuntimeSessionCommand)
|
|
20
|
-
.de(de_StopRuntimeSessionCommand)
|
|
14
|
+
.sc(StopRuntimeSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateBrowserStream } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateBrowserStreamCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "UpdateBrowserStream", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "UpdateBrowserStreamCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateBrowserStreamCommand)
|
|
20
|
-
.de(de_UpdateBrowserStreamCommand)
|
|
14
|
+
.sc(UpdateBrowserStream)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { BedrockAgentCoreServiceException as __BaseException } from "./BedrockAgentCoreServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -127,28 +126,10 @@ export const AutomationStreamStatus = {
|
|
|
127
126
|
DISABLED: "DISABLED",
|
|
128
127
|
ENABLED: "ENABLED",
|
|
129
128
|
};
|
|
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
129
|
export const CodeInterpreterSessionStatus = {
|
|
139
130
|
READY: "READY",
|
|
140
131
|
TERMINATED: "TERMINATED",
|
|
141
132
|
};
|
|
142
|
-
export var UserIdentifier;
|
|
143
|
-
(function (UserIdentifier) {
|
|
144
|
-
UserIdentifier.visit = (value, visitor) => {
|
|
145
|
-
if (value.userToken !== undefined)
|
|
146
|
-
return visitor.userToken(value.userToken);
|
|
147
|
-
if (value.userId !== undefined)
|
|
148
|
-
return visitor.userId(value.userId);
|
|
149
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
150
|
-
};
|
|
151
|
-
})(UserIdentifier || (UserIdentifier = {}));
|
|
152
133
|
export const Oauth2FlowType = {
|
|
153
134
|
M2M: "M2M",
|
|
154
135
|
USER_FEDERATION: "USER_FEDERATION",
|
|
@@ -190,36 +171,6 @@ export const TaskStatus = {
|
|
|
190
171
|
SUBMITTED: "submitted",
|
|
191
172
|
WORKING: "working",
|
|
192
173
|
};
|
|
193
|
-
export var CodeInterpreterStreamOutput;
|
|
194
|
-
(function (CodeInterpreterStreamOutput) {
|
|
195
|
-
CodeInterpreterStreamOutput.visit = (value, visitor) => {
|
|
196
|
-
if (value.result !== undefined)
|
|
197
|
-
return visitor.result(value.result);
|
|
198
|
-
if (value.accessDeniedException !== undefined)
|
|
199
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
200
|
-
if (value.conflictException !== undefined)
|
|
201
|
-
return visitor.conflictException(value.conflictException);
|
|
202
|
-
if (value.internalServerException !== undefined)
|
|
203
|
-
return visitor.internalServerException(value.internalServerException);
|
|
204
|
-
if (value.resourceNotFoundException !== undefined)
|
|
205
|
-
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
206
|
-
if (value.serviceQuotaExceededException !== undefined)
|
|
207
|
-
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
208
|
-
if (value.throttlingException !== undefined)
|
|
209
|
-
return visitor.throttlingException(value.throttlingException);
|
|
210
|
-
if (value.validationException !== undefined)
|
|
211
|
-
return visitor.validationException(value.validationException);
|
|
212
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
213
|
-
};
|
|
214
|
-
})(CodeInterpreterStreamOutput || (CodeInterpreterStreamOutput = {}));
|
|
215
|
-
export var MemoryContent;
|
|
216
|
-
(function (MemoryContent) {
|
|
217
|
-
MemoryContent.visit = (value, visitor) => {
|
|
218
|
-
if (value.text !== undefined)
|
|
219
|
-
return visitor.text(value.text);
|
|
220
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
221
|
-
};
|
|
222
|
-
})(MemoryContent || (MemoryContent = {}));
|
|
223
174
|
export const MemoryRecordStatus = {
|
|
224
175
|
FAILED: "FAILED",
|
|
225
176
|
SUCCEEDED: "SUCCEEDED",
|
|
@@ -248,38 +199,12 @@ export class ThrottledException extends __BaseException {
|
|
|
248
199
|
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
249
200
|
}
|
|
250
201
|
}
|
|
251
|
-
export var MetadataValue;
|
|
252
|
-
(function (MetadataValue) {
|
|
253
|
-
MetadataValue.visit = (value, visitor) => {
|
|
254
|
-
if (value.stringValue !== undefined)
|
|
255
|
-
return visitor.stringValue(value.stringValue);
|
|
256
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
257
|
-
};
|
|
258
|
-
})(MetadataValue || (MetadataValue = {}));
|
|
259
|
-
export var Content;
|
|
260
|
-
(function (Content) {
|
|
261
|
-
Content.visit = (value, visitor) => {
|
|
262
|
-
if (value.text !== undefined)
|
|
263
|
-
return visitor.text(value.text);
|
|
264
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
265
|
-
};
|
|
266
|
-
})(Content || (Content = {}));
|
|
267
202
|
export const Role = {
|
|
268
203
|
ASSISTANT: "ASSISTANT",
|
|
269
204
|
OTHER: "OTHER",
|
|
270
205
|
TOOL: "TOOL",
|
|
271
206
|
USER: "USER",
|
|
272
207
|
};
|
|
273
|
-
export var PayloadType;
|
|
274
|
-
(function (PayloadType) {
|
|
275
|
-
PayloadType.visit = (value, visitor) => {
|
|
276
|
-
if (value.conversational !== undefined)
|
|
277
|
-
return visitor.conversational(value.conversational);
|
|
278
|
-
if (value.blob !== undefined)
|
|
279
|
-
return visitor.blob(value.blob);
|
|
280
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
281
|
-
};
|
|
282
|
-
})(PayloadType || (PayloadType = {}));
|
|
283
208
|
export class InvalidInputException extends __BaseException {
|
|
284
209
|
name = "InvalidInputException";
|
|
285
210
|
$fault = "client";
|
|
@@ -292,213 +217,8 @@ export class InvalidInputException extends __BaseException {
|
|
|
292
217
|
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
293
218
|
}
|
|
294
219
|
}
|
|
295
|
-
export var LeftExpression;
|
|
296
|
-
(function (LeftExpression) {
|
|
297
|
-
LeftExpression.visit = (value, visitor) => {
|
|
298
|
-
if (value.metadataKey !== undefined)
|
|
299
|
-
return visitor.metadataKey(value.metadataKey);
|
|
300
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
301
|
-
};
|
|
302
|
-
})(LeftExpression || (LeftExpression = {}));
|
|
303
220
|
export const OperatorType = {
|
|
304
221
|
EQUALS_TO: "EQUALS_TO",
|
|
305
222
|
EXISTS: "EXISTS",
|
|
306
223
|
NOT_EXISTS: "NOT_EXISTS",
|
|
307
224
|
};
|
|
308
|
-
export var RightExpression;
|
|
309
|
-
(function (RightExpression) {
|
|
310
|
-
RightExpression.visit = (value, visitor) => {
|
|
311
|
-
if (value.metadataValue !== undefined)
|
|
312
|
-
return visitor.metadataValue(value.metadataValue);
|
|
313
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
314
|
-
};
|
|
315
|
-
})(RightExpression || (RightExpression = {}));
|
|
316
|
-
export const InvokeAgentRuntimeRequestFilterSensitiveLog = (obj) => ({
|
|
317
|
-
...obj,
|
|
318
|
-
...(obj.payload && { payload: SENSITIVE_STRING }),
|
|
319
|
-
});
|
|
320
|
-
export const InvokeAgentRuntimeResponseFilterSensitiveLog = (obj) => ({
|
|
321
|
-
...obj,
|
|
322
|
-
...(obj.response && { response: SENSITIVE_STRING }),
|
|
323
|
-
});
|
|
324
|
-
export const UserIdentifierFilterSensitiveLog = (obj) => {
|
|
325
|
-
if (obj.userToken !== undefined)
|
|
326
|
-
return { userToken: SENSITIVE_STRING };
|
|
327
|
-
if (obj.userId !== undefined)
|
|
328
|
-
return { userId: obj.userId };
|
|
329
|
-
if (obj.$unknown !== undefined)
|
|
330
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
331
|
-
};
|
|
332
|
-
export const CompleteResourceTokenAuthRequestFilterSensitiveLog = (obj) => ({
|
|
333
|
-
...obj,
|
|
334
|
-
...(obj.userIdentifier && { userIdentifier: UserIdentifierFilterSensitiveLog(obj.userIdentifier) }),
|
|
335
|
-
});
|
|
336
|
-
export const GetResourceApiKeyRequestFilterSensitiveLog = (obj) => ({
|
|
337
|
-
...obj,
|
|
338
|
-
...(obj.workloadIdentityToken && { workloadIdentityToken: SENSITIVE_STRING }),
|
|
339
|
-
});
|
|
340
|
-
export const GetResourceApiKeyResponseFilterSensitiveLog = (obj) => ({
|
|
341
|
-
...obj,
|
|
342
|
-
...(obj.apiKey && { apiKey: SENSITIVE_STRING }),
|
|
343
|
-
});
|
|
344
|
-
export const GetResourceOauth2TokenRequestFilterSensitiveLog = (obj) => ({
|
|
345
|
-
...obj,
|
|
346
|
-
...(obj.workloadIdentityToken && { workloadIdentityToken: SENSITIVE_STRING }),
|
|
347
|
-
...(obj.customParameters && { customParameters: SENSITIVE_STRING }),
|
|
348
|
-
...(obj.customState && { customState: SENSITIVE_STRING }),
|
|
349
|
-
});
|
|
350
|
-
export const GetResourceOauth2TokenResponseFilterSensitiveLog = (obj) => ({
|
|
351
|
-
...obj,
|
|
352
|
-
...(obj.authorizationUrl && { authorizationUrl: SENSITIVE_STRING }),
|
|
353
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
354
|
-
});
|
|
355
|
-
export const GetWorkloadAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
356
|
-
...obj,
|
|
357
|
-
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
358
|
-
});
|
|
359
|
-
export const GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog = (obj) => ({
|
|
360
|
-
...obj,
|
|
361
|
-
...(obj.userToken && { userToken: SENSITIVE_STRING }),
|
|
362
|
-
});
|
|
363
|
-
export const GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog = (obj) => ({
|
|
364
|
-
...obj,
|
|
365
|
-
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
366
|
-
});
|
|
367
|
-
export const GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog = (obj) => ({
|
|
368
|
-
...obj,
|
|
369
|
-
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
370
|
-
});
|
|
371
|
-
export const InputContentBlockFilterSensitiveLog = (obj) => ({
|
|
372
|
-
...obj,
|
|
373
|
-
...(obj.blob && { blob: SENSITIVE_STRING }),
|
|
374
|
-
});
|
|
375
|
-
export const ToolArgumentsFilterSensitiveLog = (obj) => ({
|
|
376
|
-
...obj,
|
|
377
|
-
...(obj.content && { content: obj.content.map((item) => InputContentBlockFilterSensitiveLog(item)) }),
|
|
378
|
-
});
|
|
379
|
-
export const InvokeCodeInterpreterRequestFilterSensitiveLog = (obj) => ({
|
|
380
|
-
...obj,
|
|
381
|
-
...(obj.arguments && { arguments: ToolArgumentsFilterSensitiveLog(obj.arguments) }),
|
|
382
|
-
});
|
|
383
|
-
export const CodeInterpreterStreamOutputFilterSensitiveLog = (obj) => {
|
|
384
|
-
if (obj.result !== undefined)
|
|
385
|
-
return { result: obj.result };
|
|
386
|
-
if (obj.accessDeniedException !== undefined)
|
|
387
|
-
return { accessDeniedException: obj.accessDeniedException };
|
|
388
|
-
if (obj.conflictException !== undefined)
|
|
389
|
-
return { conflictException: obj.conflictException };
|
|
390
|
-
if (obj.internalServerException !== undefined)
|
|
391
|
-
return { internalServerException: obj.internalServerException };
|
|
392
|
-
if (obj.resourceNotFoundException !== undefined)
|
|
393
|
-
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
394
|
-
if (obj.serviceQuotaExceededException !== undefined)
|
|
395
|
-
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
396
|
-
if (obj.throttlingException !== undefined)
|
|
397
|
-
return { throttlingException: obj.throttlingException };
|
|
398
|
-
if (obj.validationException !== undefined)
|
|
399
|
-
return { validationException: obj.validationException };
|
|
400
|
-
if (obj.$unknown !== undefined)
|
|
401
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
402
|
-
};
|
|
403
|
-
export const InvokeCodeInterpreterResponseFilterSensitiveLog = (obj) => ({
|
|
404
|
-
...obj,
|
|
405
|
-
...(obj.stream && { stream: "STREAMING_CONTENT" }),
|
|
406
|
-
});
|
|
407
|
-
export const MemoryContentFilterSensitiveLog = (obj) => {
|
|
408
|
-
if (obj.text !== undefined)
|
|
409
|
-
return { text: SENSITIVE_STRING };
|
|
410
|
-
if (obj.$unknown !== undefined)
|
|
411
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
412
|
-
};
|
|
413
|
-
export const MemoryRecordCreateInputFilterSensitiveLog = (obj) => ({
|
|
414
|
-
...obj,
|
|
415
|
-
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
416
|
-
});
|
|
417
|
-
export const BatchCreateMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
418
|
-
...obj,
|
|
419
|
-
...(obj.records && { records: obj.records.map((item) => MemoryRecordCreateInputFilterSensitiveLog(item)) }),
|
|
420
|
-
});
|
|
421
|
-
export const MemoryRecordUpdateInputFilterSensitiveLog = (obj) => ({
|
|
422
|
-
...obj,
|
|
423
|
-
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
424
|
-
});
|
|
425
|
-
export const BatchUpdateMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
426
|
-
...obj,
|
|
427
|
-
...(obj.records && { records: obj.records.map((item) => MemoryRecordUpdateInputFilterSensitiveLog(item)) }),
|
|
428
|
-
});
|
|
429
|
-
export const ContentFilterSensitiveLog = (obj) => {
|
|
430
|
-
if (obj.text !== undefined)
|
|
431
|
-
return { text: SENSITIVE_STRING };
|
|
432
|
-
if (obj.$unknown !== undefined)
|
|
433
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
434
|
-
};
|
|
435
|
-
export const ConversationalFilterSensitiveLog = (obj) => ({
|
|
436
|
-
...obj,
|
|
437
|
-
...(obj.content && { content: ContentFilterSensitiveLog(obj.content) }),
|
|
438
|
-
});
|
|
439
|
-
export const PayloadTypeFilterSensitiveLog = (obj) => {
|
|
440
|
-
if (obj.conversational !== undefined)
|
|
441
|
-
return { conversational: ConversationalFilterSensitiveLog(obj.conversational) };
|
|
442
|
-
if (obj.blob !== undefined)
|
|
443
|
-
return { blob: obj.blob };
|
|
444
|
-
if (obj.$unknown !== undefined)
|
|
445
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
446
|
-
};
|
|
447
|
-
export const CreateEventInputFilterSensitiveLog = (obj) => ({
|
|
448
|
-
...obj,
|
|
449
|
-
...(obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }),
|
|
450
|
-
...(obj.metadata && {
|
|
451
|
-
metadata: Object.entries(obj.metadata).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
|
|
452
|
-
}),
|
|
453
|
-
});
|
|
454
|
-
export const EventFilterSensitiveLog = (obj) => ({
|
|
455
|
-
...obj,
|
|
456
|
-
...(obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }),
|
|
457
|
-
...(obj.metadata && {
|
|
458
|
-
metadata: Object.entries(obj.metadata).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
|
|
459
|
-
}),
|
|
460
|
-
});
|
|
461
|
-
export const CreateEventOutputFilterSensitiveLog = (obj) => ({
|
|
462
|
-
...obj,
|
|
463
|
-
...(obj.event && { event: EventFilterSensitiveLog(obj.event) }),
|
|
464
|
-
});
|
|
465
|
-
export const GetEventOutputFilterSensitiveLog = (obj) => ({
|
|
466
|
-
...obj,
|
|
467
|
-
...(obj.event && { event: EventFilterSensitiveLog(obj.event) }),
|
|
468
|
-
});
|
|
469
|
-
export const MemoryRecordFilterSensitiveLog = (obj) => ({
|
|
470
|
-
...obj,
|
|
471
|
-
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
472
|
-
});
|
|
473
|
-
export const GetMemoryRecordOutputFilterSensitiveLog = (obj) => ({
|
|
474
|
-
...obj,
|
|
475
|
-
...(obj.memoryRecord && { memoryRecord: MemoryRecordFilterSensitiveLog(obj.memoryRecord) }),
|
|
476
|
-
});
|
|
477
|
-
export const ListEventsOutputFilterSensitiveLog = (obj) => ({
|
|
478
|
-
...obj,
|
|
479
|
-
...(obj.events && { events: obj.events.map((item) => EventFilterSensitiveLog(item)) }),
|
|
480
|
-
});
|
|
481
|
-
export const MemoryRecordSummaryFilterSensitiveLog = (obj) => ({
|
|
482
|
-
...obj,
|
|
483
|
-
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
484
|
-
});
|
|
485
|
-
export const ListMemoryRecordsOutputFilterSensitiveLog = (obj) => ({
|
|
486
|
-
...obj,
|
|
487
|
-
...(obj.memoryRecordSummaries && {
|
|
488
|
-
memoryRecordSummaries: obj.memoryRecordSummaries.map((item) => MemoryRecordSummaryFilterSensitiveLog(item)),
|
|
489
|
-
}),
|
|
490
|
-
});
|
|
491
|
-
export const SearchCriteriaFilterSensitiveLog = (obj) => ({
|
|
492
|
-
...obj,
|
|
493
|
-
...(obj.searchQuery && { searchQuery: SENSITIVE_STRING }),
|
|
494
|
-
});
|
|
495
|
-
export const RetrieveMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
496
|
-
...obj,
|
|
497
|
-
...(obj.searchCriteria && { searchCriteria: SearchCriteriaFilterSensitiveLog(obj.searchCriteria) }),
|
|
498
|
-
});
|
|
499
|
-
export const RetrieveMemoryRecordsOutputFilterSensitiveLog = (obj) => ({
|
|
500
|
-
...obj,
|
|
501
|
-
...(obj.memoryRecordSummaries && {
|
|
502
|
-
memoryRecordSummaries: obj.memoryRecordSummaries.map((item) => MemoryRecordSummaryFilterSensitiveLog(item)),
|
|
503
|
-
}),
|
|
504
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -23,6 +24,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
24
|
},
|
|
24
25
|
],
|
|
25
26
|
logger: config?.logger ?? new NoOpLogger(),
|
|
27
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.bedrockagentcore" }),
|
|
26
28
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
27
29
|
serviceId: config?.serviceId ?? "Bedrock AgentCore",
|
|
28
30
|
urlParser: config?.urlParser ?? parseUrl,
|