@aws-sdk/client-bedrock-agentcore 3.847.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/LICENSE +201 -0
- package/README.md +413 -0
- package/dist-cjs/BedrockAgentCore.js +63 -0
- package/dist-cjs/BedrockAgentCoreClient.js +54 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateEventCommand.js +27 -0
- package/dist-cjs/commands/DeleteEventCommand.js +26 -0
- package/dist-cjs/commands/DeleteMemoryRecordCommand.js +26 -0
- package/dist-cjs/commands/GetBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/GetCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/GetEventCommand.js +27 -0
- package/dist-cjs/commands/GetMemoryRecordCommand.js +27 -0
- package/dist-cjs/commands/GetResourceApiKeyCommand.js +27 -0
- package/dist-cjs/commands/GetResourceOauth2TokenCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenForJWTCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenForUserIdCommand.js +27 -0
- package/dist-cjs/commands/InvokeAgentRuntimeCommand.js +27 -0
- package/dist-cjs/commands/InvokeCodeInterpreterCommand.js +31 -0
- package/dist-cjs/commands/ListActorsCommand.js +26 -0
- package/dist-cjs/commands/ListBrowserSessionsCommand.js +26 -0
- package/dist-cjs/commands/ListCodeInterpreterSessionsCommand.js +26 -0
- package/dist-cjs/commands/ListEventsCommand.js +27 -0
- package/dist-cjs/commands/ListMemoryRecordsCommand.js +27 -0
- package/dist-cjs/commands/ListSessionsCommand.js +26 -0
- package/dist-cjs/commands/RetrieveMemoryRecordsCommand.js +27 -0
- package/dist-cjs/commands/StartBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/StartCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/StopBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/StopCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/UpdateBrowserStreamCommand.js +26 -0
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/endpoint/EndpointParameters.js +17 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/BedrockAgentCoreServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +468 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListActorsPaginator.js +7 -0
- package/dist-cjs/pagination/ListEventsPaginator.js +7 -0
- package/dist-cjs/pagination/ListMemoryRecordsPaginator.js +7 -0
- package/dist-cjs/pagination/ListSessionsPaginator.js +7 -0
- package/dist-cjs/pagination/RetrieveMemoryRecordsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1423 -0
- package/dist-cjs/runtimeConfig.browser.js +41 -0
- package/dist-cjs/runtimeConfig.js +58 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +36 -0
- package/dist-cjs/runtimeExtensions.js +13 -0
- package/dist-es/BedrockAgentCore.js +59 -0
- package/dist-es/BedrockAgentCoreClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateEventCommand.js +23 -0
- package/dist-es/commands/DeleteEventCommand.js +22 -0
- package/dist-es/commands/DeleteMemoryRecordCommand.js +22 -0
- package/dist-es/commands/GetBrowserSessionCommand.js +22 -0
- package/dist-es/commands/GetCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/GetEventCommand.js +23 -0
- package/dist-es/commands/GetMemoryRecordCommand.js +23 -0
- package/dist-es/commands/GetResourceApiKeyCommand.js +23 -0
- package/dist-es/commands/GetResourceOauth2TokenCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenForJWTCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenForUserIdCommand.js +23 -0
- package/dist-es/commands/InvokeAgentRuntimeCommand.js +23 -0
- package/dist-es/commands/InvokeCodeInterpreterCommand.js +27 -0
- package/dist-es/commands/ListActorsCommand.js +22 -0
- package/dist-es/commands/ListBrowserSessionsCommand.js +22 -0
- package/dist-es/commands/ListCodeInterpreterSessionsCommand.js +22 -0
- package/dist-es/commands/ListEventsCommand.js +23 -0
- package/dist-es/commands/ListMemoryRecordsCommand.js +23 -0
- package/dist-es/commands/ListSessionsCommand.js +22 -0
- package/dist-es/commands/RetrieveMemoryRecordsCommand.js +23 -0
- package/dist-es/commands/StartBrowserSessionCommand.js +22 -0
- package/dist-es/commands/StartCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/StopBrowserSessionCommand.js +22 -0
- package/dist-es/commands/StopCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/UpdateBrowserStreamCommand.js +22 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/BedrockAgentCoreServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +421 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListActorsPaginator.js +4 -0
- package/dist-es/pagination/ListEventsPaginator.js +4 -0
- package/dist-es/pagination/ListMemoryRecordsPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/RetrieveMemoryRecordsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +1367 -0
- package/dist-es/runtimeConfig.browser.js +36 -0
- package/dist-es/runtimeConfig.js +53 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +32 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-types/BedrockAgentCore.d.ts +192 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +223 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CreateEventCommand.d.ts +133 -0
- package/dist-types/commands/DeleteEventCommand.d.ts +96 -0
- package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +94 -0
- package/dist-types/commands/GetBrowserSessionCommand.d.ts +108 -0
- package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +93 -0
- package/dist-types/commands/GetEventCommand.d.ts +117 -0
- package/dist-types/commands/GetMemoryRecordCommand.d.ts +104 -0
- package/dist-types/commands/GetResourceApiKeyCommand.d.ts +91 -0
- package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +102 -0
- package/dist-types/commands/GetWorkloadAccessTokenCommand.d.ts +90 -0
- package/dist-types/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +91 -0
- package/dist-types/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +91 -0
- package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +126 -0
- package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +174 -0
- package/dist-types/commands/ListActorsCommand.d.ts +100 -0
- package/dist-types/commands/ListBrowserSessionsCommand.d.ts +100 -0
- package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +100 -0
- package/dist-types/commands/ListEventsCommand.d.ts +128 -0
- package/dist-types/commands/ListMemoryRecordsCommand.d.ts +111 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +103 -0
- package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +115 -0
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +111 -0
- package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +98 -0
- package/dist-types/commands/StopBrowserSessionCommand.d.ts +97 -0
- package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +97 -0
- package/dist-types/commands/UpdateBrowserStreamCommand.d.ts +111 -0
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/BedrockAgentCoreServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2440 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListActorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMemoryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/RetrieveMemoryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
- package/dist-types/runtimeConfig.browser.d.ts +52 -0
- package/dist-types/runtimeConfig.d.ts +52 -0
- package/dist-types/runtimeConfig.native.d.ts +51 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +449 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +288 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteMemoryRecordCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetMemoryRecordCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetResourceApiKeyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourceOauth2TokenCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommand.d.ts +66 -0
- package/dist-types/ts3.4/commands/InvokeCodeInterpreterCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListActorsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListBrowserSessionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeInterpreterSessionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListMemoryRecordsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/RetrieveMemoryRecordsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateBrowserStreamCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/BedrockAgentCoreServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +872 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListActorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMemoryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/RetrieveMemoryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +321 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +24 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +105 -0
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { BedrockAgentCoreServiceException as __BaseException } from "./BedrockAgentCoreServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
name = "AccessDeniedException";
|
|
5
|
+
$fault = "client";
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class InternalServerException extends __BaseException {
|
|
16
|
+
name = "InternalServerException";
|
|
17
|
+
$fault = "server";
|
|
18
|
+
constructor(opts) {
|
|
19
|
+
super({
|
|
20
|
+
name: "InternalServerException",
|
|
21
|
+
$fault: "server",
|
|
22
|
+
...opts,
|
|
23
|
+
});
|
|
24
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
28
|
+
name = "ResourceNotFoundException";
|
|
29
|
+
$fault = "client";
|
|
30
|
+
constructor(opts) {
|
|
31
|
+
super({
|
|
32
|
+
name: "ResourceNotFoundException",
|
|
33
|
+
$fault: "client",
|
|
34
|
+
...opts,
|
|
35
|
+
});
|
|
36
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class RuntimeClientError extends __BaseException {
|
|
40
|
+
name = "RuntimeClientError";
|
|
41
|
+
$fault = "client";
|
|
42
|
+
constructor(opts) {
|
|
43
|
+
super({
|
|
44
|
+
name: "RuntimeClientError",
|
|
45
|
+
$fault: "client",
|
|
46
|
+
...opts,
|
|
47
|
+
});
|
|
48
|
+
Object.setPrototypeOf(this, RuntimeClientError.prototype);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
52
|
+
name = "ServiceQuotaExceededException";
|
|
53
|
+
$fault = "client";
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "ServiceQuotaExceededException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export class ThrottlingException extends __BaseException {
|
|
64
|
+
name = "ThrottlingException";
|
|
65
|
+
$fault = "client";
|
|
66
|
+
constructor(opts) {
|
|
67
|
+
super({
|
|
68
|
+
name: "ThrottlingException",
|
|
69
|
+
$fault: "client",
|
|
70
|
+
...opts,
|
|
71
|
+
});
|
|
72
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export const ValidationExceptionReason = {
|
|
76
|
+
CANNOT_PARSE: "CannotParse",
|
|
77
|
+
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
78
|
+
IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
|
|
79
|
+
RESOURCE_CONFLICT: "ResourceConflict",
|
|
80
|
+
ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
|
|
81
|
+
};
|
|
82
|
+
export class ValidationException extends __BaseException {
|
|
83
|
+
name = "ValidationException";
|
|
84
|
+
$fault = "client";
|
|
85
|
+
reason;
|
|
86
|
+
fieldList;
|
|
87
|
+
constructor(opts) {
|
|
88
|
+
super({
|
|
89
|
+
name: "ValidationException",
|
|
90
|
+
$fault: "client",
|
|
91
|
+
...opts,
|
|
92
|
+
});
|
|
93
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
94
|
+
this.reason = opts.reason;
|
|
95
|
+
this.fieldList = opts.fieldList;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export const BrowserSessionStatus = {
|
|
99
|
+
READY: "READY",
|
|
100
|
+
TERMINATED: "TERMINATED",
|
|
101
|
+
};
|
|
102
|
+
export const AutomationStreamStatus = {
|
|
103
|
+
DISABLED: "DISABLED",
|
|
104
|
+
ENABLED: "ENABLED",
|
|
105
|
+
};
|
|
106
|
+
export class ConflictException extends __BaseException {
|
|
107
|
+
name = "ConflictException";
|
|
108
|
+
$fault = "client";
|
|
109
|
+
constructor(opts) {
|
|
110
|
+
super({
|
|
111
|
+
name: "ConflictException",
|
|
112
|
+
$fault: "client",
|
|
113
|
+
...opts,
|
|
114
|
+
});
|
|
115
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
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
|
+
export class UnauthorizedException extends __BaseException {
|
|
131
|
+
name = "UnauthorizedException";
|
|
132
|
+
$fault = "client";
|
|
133
|
+
constructor(opts) {
|
|
134
|
+
super({
|
|
135
|
+
name: "UnauthorizedException",
|
|
136
|
+
$fault: "client",
|
|
137
|
+
...opts,
|
|
138
|
+
});
|
|
139
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export const Oauth2FlowType = {
|
|
143
|
+
M2M: "M2M",
|
|
144
|
+
USER_FEDERATION: "USER_FEDERATION",
|
|
145
|
+
};
|
|
146
|
+
export const ProgrammingLanguage = {
|
|
147
|
+
JAVASCRIPT: "javascript",
|
|
148
|
+
PYTHON: "python",
|
|
149
|
+
TYPESCRIPT: "typescript",
|
|
150
|
+
};
|
|
151
|
+
export const ToolName = {
|
|
152
|
+
EXECUTE_CODE: "executeCode",
|
|
153
|
+
EXECUTE_COMMAND: "executeCommand",
|
|
154
|
+
GET_TASK: "getTask",
|
|
155
|
+
LIST_FILES: "listFiles",
|
|
156
|
+
READ_FILES: "readFiles",
|
|
157
|
+
REMOVE_FILES: "removeFiles",
|
|
158
|
+
START_COMMAND_EXECUTION: "startCommandExecution",
|
|
159
|
+
STOP_TASK: "stopTask",
|
|
160
|
+
WRITE_FILES: "writeFiles",
|
|
161
|
+
};
|
|
162
|
+
export const ResourceContentType = {
|
|
163
|
+
BLOB: "blob",
|
|
164
|
+
TEXT: "text",
|
|
165
|
+
};
|
|
166
|
+
export const ContentBlockType = {
|
|
167
|
+
EMBEDDED_RESOURCE: "resource",
|
|
168
|
+
IMAGE: "image",
|
|
169
|
+
RESOURCE_LINK: "resource_link",
|
|
170
|
+
TEXT: "text",
|
|
171
|
+
};
|
|
172
|
+
export const TaskStatus = {
|
|
173
|
+
CANCELED: "canceled",
|
|
174
|
+
COMPLETED: "completed",
|
|
175
|
+
FAILED: "failed",
|
|
176
|
+
SUBMITTED: "submitted",
|
|
177
|
+
WORKING: "working",
|
|
178
|
+
};
|
|
179
|
+
export var CodeInterpreterStreamOutput;
|
|
180
|
+
(function (CodeInterpreterStreamOutput) {
|
|
181
|
+
CodeInterpreterStreamOutput.visit = (value, visitor) => {
|
|
182
|
+
if (value.result !== undefined)
|
|
183
|
+
return visitor.result(value.result);
|
|
184
|
+
if (value.accessDeniedException !== undefined)
|
|
185
|
+
return visitor.accessDeniedException(value.accessDeniedException);
|
|
186
|
+
if (value.conflictException !== undefined)
|
|
187
|
+
return visitor.conflictException(value.conflictException);
|
|
188
|
+
if (value.internalServerException !== undefined)
|
|
189
|
+
return visitor.internalServerException(value.internalServerException);
|
|
190
|
+
if (value.resourceNotFoundException !== undefined)
|
|
191
|
+
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
192
|
+
if (value.serviceQuotaExceededException !== undefined)
|
|
193
|
+
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
194
|
+
if (value.throttlingException !== undefined)
|
|
195
|
+
return visitor.throttlingException(value.throttlingException);
|
|
196
|
+
if (value.validationException !== undefined)
|
|
197
|
+
return visitor.validationException(value.validationException);
|
|
198
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
199
|
+
};
|
|
200
|
+
})(CodeInterpreterStreamOutput || (CodeInterpreterStreamOutput = {}));
|
|
201
|
+
export var Content;
|
|
202
|
+
(function (Content) {
|
|
203
|
+
Content.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
|
+
})(Content || (Content = {}));
|
|
209
|
+
export const Role = {
|
|
210
|
+
ASSISTANT: "ASSISTANT",
|
|
211
|
+
OTHER: "OTHER",
|
|
212
|
+
TOOL: "TOOL",
|
|
213
|
+
USER: "USER",
|
|
214
|
+
};
|
|
215
|
+
export var PayloadType;
|
|
216
|
+
(function (PayloadType) {
|
|
217
|
+
PayloadType.visit = (value, visitor) => {
|
|
218
|
+
if (value.conversational !== undefined)
|
|
219
|
+
return visitor.conversational(value.conversational);
|
|
220
|
+
if (value.blob !== undefined)
|
|
221
|
+
return visitor.blob(value.blob);
|
|
222
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
223
|
+
};
|
|
224
|
+
})(PayloadType || (PayloadType = {}));
|
|
225
|
+
export class InvalidInputException extends __BaseException {
|
|
226
|
+
name = "InvalidInputException";
|
|
227
|
+
$fault = "client";
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "InvalidInputException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts,
|
|
233
|
+
});
|
|
234
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
export class ServiceException extends __BaseException {
|
|
238
|
+
name = "ServiceException";
|
|
239
|
+
$fault = "server";
|
|
240
|
+
constructor(opts) {
|
|
241
|
+
super({
|
|
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);
|
|
266
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
267
|
+
};
|
|
268
|
+
})(MemoryContent || (MemoryContent = {}));
|
|
269
|
+
export const InvokeAgentRuntimeRequestFilterSensitiveLog = (obj) => ({
|
|
270
|
+
...obj,
|
|
271
|
+
...(obj.payload && { payload: SENSITIVE_STRING }),
|
|
272
|
+
});
|
|
273
|
+
export const InvokeAgentRuntimeResponseFilterSensitiveLog = (obj) => ({
|
|
274
|
+
...obj,
|
|
275
|
+
...(obj.response && { response: SENSITIVE_STRING }),
|
|
276
|
+
});
|
|
277
|
+
export const GetResourceApiKeyRequestFilterSensitiveLog = (obj) => ({
|
|
278
|
+
...obj,
|
|
279
|
+
...(obj.workloadIdentityToken && { workloadIdentityToken: SENSITIVE_STRING }),
|
|
280
|
+
});
|
|
281
|
+
export const GetResourceApiKeyResponseFilterSensitiveLog = (obj) => ({
|
|
282
|
+
...obj,
|
|
283
|
+
...(obj.apiKey && { apiKey: SENSITIVE_STRING }),
|
|
284
|
+
});
|
|
285
|
+
export const GetResourceOauth2TokenRequestFilterSensitiveLog = (obj) => ({
|
|
286
|
+
...obj,
|
|
287
|
+
...(obj.workloadIdentityToken && { workloadIdentityToken: SENSITIVE_STRING }),
|
|
288
|
+
...(obj.customParameters && { customParameters: SENSITIVE_STRING }),
|
|
289
|
+
});
|
|
290
|
+
export const GetResourceOauth2TokenResponseFilterSensitiveLog = (obj) => ({
|
|
291
|
+
...obj,
|
|
292
|
+
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
293
|
+
});
|
|
294
|
+
export const GetWorkloadAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
295
|
+
...obj,
|
|
296
|
+
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
297
|
+
});
|
|
298
|
+
export const GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog = (obj) => ({
|
|
299
|
+
...obj,
|
|
300
|
+
...(obj.userToken && { userToken: SENSITIVE_STRING }),
|
|
301
|
+
});
|
|
302
|
+
export const GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog = (obj) => ({
|
|
303
|
+
...obj,
|
|
304
|
+
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
305
|
+
});
|
|
306
|
+
export const GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog = (obj) => ({
|
|
307
|
+
...obj,
|
|
308
|
+
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
309
|
+
});
|
|
310
|
+
export const InputContentBlockFilterSensitiveLog = (obj) => ({
|
|
311
|
+
...obj,
|
|
312
|
+
...(obj.blob && { blob: SENSITIVE_STRING }),
|
|
313
|
+
});
|
|
314
|
+
export const ToolArgumentsFilterSensitiveLog = (obj) => ({
|
|
315
|
+
...obj,
|
|
316
|
+
...(obj.content && { content: obj.content.map((item) => InputContentBlockFilterSensitiveLog(item)) }),
|
|
317
|
+
});
|
|
318
|
+
export const InvokeCodeInterpreterRequestFilterSensitiveLog = (obj) => ({
|
|
319
|
+
...obj,
|
|
320
|
+
...(obj.arguments && { arguments: ToolArgumentsFilterSensitiveLog(obj.arguments) }),
|
|
321
|
+
});
|
|
322
|
+
export const CodeInterpreterStreamOutputFilterSensitiveLog = (obj) => {
|
|
323
|
+
if (obj.result !== undefined)
|
|
324
|
+
return { result: obj.result };
|
|
325
|
+
if (obj.accessDeniedException !== undefined)
|
|
326
|
+
return { accessDeniedException: obj.accessDeniedException };
|
|
327
|
+
if (obj.conflictException !== undefined)
|
|
328
|
+
return { conflictException: obj.conflictException };
|
|
329
|
+
if (obj.internalServerException !== undefined)
|
|
330
|
+
return { internalServerException: obj.internalServerException };
|
|
331
|
+
if (obj.resourceNotFoundException !== undefined)
|
|
332
|
+
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
333
|
+
if (obj.serviceQuotaExceededException !== undefined)
|
|
334
|
+
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
335
|
+
if (obj.throttlingException !== undefined)
|
|
336
|
+
return { throttlingException: obj.throttlingException };
|
|
337
|
+
if (obj.validationException !== undefined)
|
|
338
|
+
return { validationException: obj.validationException };
|
|
339
|
+
if (obj.$unknown !== undefined)
|
|
340
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
341
|
+
};
|
|
342
|
+
export const InvokeCodeInterpreterResponseFilterSensitiveLog = (obj) => ({
|
|
343
|
+
...obj,
|
|
344
|
+
...(obj.stream && { stream: "STREAMING_CONTENT" }),
|
|
345
|
+
});
|
|
346
|
+
export const ContentFilterSensitiveLog = (obj) => {
|
|
347
|
+
if (obj.text !== undefined)
|
|
348
|
+
return { text: SENSITIVE_STRING };
|
|
349
|
+
if (obj.$unknown !== undefined)
|
|
350
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
351
|
+
};
|
|
352
|
+
export const ConversationalFilterSensitiveLog = (obj) => ({
|
|
353
|
+
...obj,
|
|
354
|
+
...(obj.content && { content: ContentFilterSensitiveLog(obj.content) }),
|
|
355
|
+
});
|
|
356
|
+
export const PayloadTypeFilterSensitiveLog = (obj) => {
|
|
357
|
+
if (obj.conversational !== undefined)
|
|
358
|
+
return { conversational: ConversationalFilterSensitiveLog(obj.conversational) };
|
|
359
|
+
if (obj.blob !== undefined)
|
|
360
|
+
return { blob: obj.blob };
|
|
361
|
+
if (obj.$unknown !== undefined)
|
|
362
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
363
|
+
};
|
|
364
|
+
export const CreateEventInputFilterSensitiveLog = (obj) => ({
|
|
365
|
+
...obj,
|
|
366
|
+
...(obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }),
|
|
367
|
+
});
|
|
368
|
+
export const EventFilterSensitiveLog = (obj) => ({
|
|
369
|
+
...obj,
|
|
370
|
+
...(obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }),
|
|
371
|
+
});
|
|
372
|
+
export const CreateEventOutputFilterSensitiveLog = (obj) => ({
|
|
373
|
+
...obj,
|
|
374
|
+
...(obj.event && { event: EventFilterSensitiveLog(obj.event) }),
|
|
375
|
+
});
|
|
376
|
+
export const GetEventOutputFilterSensitiveLog = (obj) => ({
|
|
377
|
+
...obj,
|
|
378
|
+
...(obj.event && { event: EventFilterSensitiveLog(obj.event) }),
|
|
379
|
+
});
|
|
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
|
+
export const MemoryRecordFilterSensitiveLog = (obj) => ({
|
|
387
|
+
...obj,
|
|
388
|
+
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
389
|
+
});
|
|
390
|
+
export const GetMemoryRecordOutputFilterSensitiveLog = (obj) => ({
|
|
391
|
+
...obj,
|
|
392
|
+
...(obj.memoryRecord && { memoryRecord: MemoryRecordFilterSensitiveLog(obj.memoryRecord) }),
|
|
393
|
+
});
|
|
394
|
+
export const ListEventsOutputFilterSensitiveLog = (obj) => ({
|
|
395
|
+
...obj,
|
|
396
|
+
...(obj.events && { events: obj.events.map((item) => EventFilterSensitiveLog(item)) }),
|
|
397
|
+
});
|
|
398
|
+
export const MemoryRecordSummaryFilterSensitiveLog = (obj) => ({
|
|
399
|
+
...obj,
|
|
400
|
+
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
401
|
+
});
|
|
402
|
+
export const ListMemoryRecordsOutputFilterSensitiveLog = (obj) => ({
|
|
403
|
+
...obj,
|
|
404
|
+
...(obj.memoryRecordSummaries && {
|
|
405
|
+
memoryRecordSummaries: obj.memoryRecordSummaries.map((item) => MemoryRecordSummaryFilterSensitiveLog(item)),
|
|
406
|
+
}),
|
|
407
|
+
});
|
|
408
|
+
export const SearchCriteriaFilterSensitiveLog = (obj) => ({
|
|
409
|
+
...obj,
|
|
410
|
+
...(obj.searchQuery && { searchQuery: SENSITIVE_STRING }),
|
|
411
|
+
});
|
|
412
|
+
export const RetrieveMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
413
|
+
...obj,
|
|
414
|
+
...(obj.searchCriteria && { searchCriteria: SearchCriteriaFilterSensitiveLog(obj.searchCriteria) }),
|
|
415
|
+
});
|
|
416
|
+
export const RetrieveMemoryRecordsOutputFilterSensitiveLog = (obj) => ({
|
|
417
|
+
...obj,
|
|
418
|
+
...(obj.memoryRecordSummaries && {
|
|
419
|
+
memoryRecordSummaries: obj.memoryRecordSummaries.map((item) => MemoryRecordSummaryFilterSensitiveLog(item)),
|
|
420
|
+
}),
|
|
421
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockAgentCoreClient } from "../BedrockAgentCoreClient";
|
|
3
|
+
import { ListActorsCommand } from "../commands/ListActorsCommand";
|
|
4
|
+
export const paginateListActors = createPaginator(BedrockAgentCoreClient, ListActorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockAgentCoreClient } from "../BedrockAgentCoreClient";
|
|
3
|
+
import { ListEventsCommand } from "../commands/ListEventsCommand";
|
|
4
|
+
export const paginateListEvents = createPaginator(BedrockAgentCoreClient, ListEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockAgentCoreClient } from "../BedrockAgentCoreClient";
|
|
3
|
+
import { ListMemoryRecordsCommand, } from "../commands/ListMemoryRecordsCommand";
|
|
4
|
+
export const paginateListMemoryRecords = createPaginator(BedrockAgentCoreClient, ListMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockAgentCoreClient } from "../BedrockAgentCoreClient";
|
|
3
|
+
import { ListSessionsCommand, } from "../commands/ListSessionsCommand";
|
|
4
|
+
export const paginateListSessions = createPaginator(BedrockAgentCoreClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockAgentCoreClient } from "../BedrockAgentCoreClient";
|
|
3
|
+
import { RetrieveMemoryRecordsCommand, } from "../commands/RetrieveMemoryRecordsCommand";
|
|
4
|
+
export const paginateRetrieveMemoryRecords = createPaginator(BedrockAgentCoreClient, RetrieveMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
|