@aws-sdk/client-bedrock-agentcore 3.893.0 → 3.895.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 +2696 -10
- package/package.json +7 -7
- package/dist-cjs/BedrockAgentCore.js +0 -63
- package/dist-cjs/BedrockAgentCoreClient.js +0 -54
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/CreateEventCommand.js +0 -27
- package/dist-cjs/commands/DeleteEventCommand.js +0 -26
- package/dist-cjs/commands/DeleteMemoryRecordCommand.js +0 -26
- package/dist-cjs/commands/GetBrowserSessionCommand.js +0 -26
- package/dist-cjs/commands/GetCodeInterpreterSessionCommand.js +0 -26
- package/dist-cjs/commands/GetEventCommand.js +0 -27
- package/dist-cjs/commands/GetMemoryRecordCommand.js +0 -27
- package/dist-cjs/commands/GetResourceApiKeyCommand.js +0 -27
- package/dist-cjs/commands/GetResourceOauth2TokenCommand.js +0 -27
- package/dist-cjs/commands/GetWorkloadAccessTokenCommand.js +0 -27
- package/dist-cjs/commands/GetWorkloadAccessTokenForJWTCommand.js +0 -27
- package/dist-cjs/commands/GetWorkloadAccessTokenForUserIdCommand.js +0 -27
- package/dist-cjs/commands/InvokeAgentRuntimeCommand.js +0 -27
- package/dist-cjs/commands/InvokeCodeInterpreterCommand.js +0 -31
- package/dist-cjs/commands/ListActorsCommand.js +0 -26
- package/dist-cjs/commands/ListBrowserSessionsCommand.js +0 -26
- package/dist-cjs/commands/ListCodeInterpreterSessionsCommand.js +0 -26
- package/dist-cjs/commands/ListEventsCommand.js +0 -27
- package/dist-cjs/commands/ListMemoryRecordsCommand.js +0 -27
- package/dist-cjs/commands/ListSessionsCommand.js +0 -26
- package/dist-cjs/commands/RetrieveMemoryRecordsCommand.js +0 -27
- package/dist-cjs/commands/StartBrowserSessionCommand.js +0 -26
- package/dist-cjs/commands/StartCodeInterpreterSessionCommand.js +0 -26
- package/dist-cjs/commands/StopBrowserSessionCommand.js +0 -26
- package/dist-cjs/commands/StopCodeInterpreterSessionCommand.js +0 -26
- package/dist-cjs/commands/UpdateBrowserStreamCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -29
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/BedrockAgentCoreServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -468
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListActorsPaginator.js +0 -7
- package/dist-cjs/pagination/ListEventsPaginator.js +0 -7
- package/dist-cjs/pagination/ListMemoryRecordsPaginator.js +0 -7
- package/dist-cjs/pagination/ListSessionsPaginator.js +0 -7
- package/dist-cjs/pagination/RetrieveMemoryRecordsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -9
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1422
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,1422 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_StopBrowserSessionCommand = exports.de_StartCodeInterpreterSessionCommand = exports.de_StartBrowserSessionCommand = exports.de_RetrieveMemoryRecordsCommand = exports.de_ListSessionsCommand = exports.de_ListMemoryRecordsCommand = exports.de_ListEventsCommand = exports.de_ListCodeInterpreterSessionsCommand = exports.de_ListBrowserSessionsCommand = exports.de_ListActorsCommand = exports.de_InvokeCodeInterpreterCommand = exports.de_InvokeAgentRuntimeCommand = exports.de_GetWorkloadAccessTokenForUserIdCommand = exports.de_GetWorkloadAccessTokenForJWTCommand = exports.de_GetWorkloadAccessTokenCommand = exports.de_GetResourceOauth2TokenCommand = exports.de_GetResourceApiKeyCommand = exports.de_GetMemoryRecordCommand = exports.de_GetEventCommand = exports.de_GetCodeInterpreterSessionCommand = exports.de_GetBrowserSessionCommand = exports.de_DeleteMemoryRecordCommand = exports.de_DeleteEventCommand = exports.de_CreateEventCommand = exports.se_UpdateBrowserStreamCommand = exports.se_StopCodeInterpreterSessionCommand = exports.se_StopBrowserSessionCommand = exports.se_StartCodeInterpreterSessionCommand = exports.se_StartBrowserSessionCommand = exports.se_RetrieveMemoryRecordsCommand = exports.se_ListSessionsCommand = exports.se_ListMemoryRecordsCommand = exports.se_ListEventsCommand = exports.se_ListCodeInterpreterSessionsCommand = exports.se_ListBrowserSessionsCommand = exports.se_ListActorsCommand = exports.se_InvokeCodeInterpreterCommand = exports.se_InvokeAgentRuntimeCommand = exports.se_GetWorkloadAccessTokenForUserIdCommand = exports.se_GetWorkloadAccessTokenForJWTCommand = exports.se_GetWorkloadAccessTokenCommand = exports.se_GetResourceOauth2TokenCommand = exports.se_GetResourceApiKeyCommand = exports.se_GetMemoryRecordCommand = exports.se_GetEventCommand = exports.se_GetCodeInterpreterSessionCommand = exports.se_GetBrowserSessionCommand = exports.se_DeleteMemoryRecordCommand = exports.se_DeleteEventCommand = exports.se_CreateEventCommand = void 0;
|
|
4
|
-
exports.de_UpdateBrowserStreamCommand = exports.de_StopCodeInterpreterSessionCommand = void 0;
|
|
5
|
-
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const core_2 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const BedrockAgentCoreServiceException_1 = require("../models/BedrockAgentCoreServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_CreateEventCommand = async (input, context) => {
|
|
12
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
|
-
const headers = {
|
|
14
|
-
"content-type": "application/json",
|
|
15
|
-
};
|
|
16
|
-
b.bp("/memories/{memoryId}/events");
|
|
17
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
|
-
actorId: [],
|
|
21
|
-
branch: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
23
|
-
eventTimestamp: (_) => _.getTime() / 1_000,
|
|
24
|
-
payload: (_) => se_PayloadTypeList(_, context),
|
|
25
|
-
sessionId: [],
|
|
26
|
-
}));
|
|
27
|
-
b.m("POST").h(headers).b(body);
|
|
28
|
-
return b.build();
|
|
29
|
-
};
|
|
30
|
-
exports.se_CreateEventCommand = se_CreateEventCommand;
|
|
31
|
-
const se_DeleteEventCommand = async (input, context) => {
|
|
32
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
33
|
-
const headers = {};
|
|
34
|
-
b.bp("/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}/events/{eventId}");
|
|
35
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
36
|
-
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
37
|
-
b.p("eventId", () => input.eventId, "{eventId}", false);
|
|
38
|
-
b.p("actorId", () => input.actorId, "{actorId}", false);
|
|
39
|
-
let body;
|
|
40
|
-
b.m("DELETE").h(headers).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
exports.se_DeleteEventCommand = se_DeleteEventCommand;
|
|
44
|
-
const se_DeleteMemoryRecordCommand = async (input, context) => {
|
|
45
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
46
|
-
const headers = {};
|
|
47
|
-
b.bp("/memories/{memoryId}/memoryRecords/{memoryRecordId}");
|
|
48
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
49
|
-
b.p("memoryRecordId", () => input.memoryRecordId, "{memoryRecordId}", false);
|
|
50
|
-
let body;
|
|
51
|
-
b.m("DELETE").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
exports.se_DeleteMemoryRecordCommand = se_DeleteMemoryRecordCommand;
|
|
55
|
-
const se_GetBrowserSessionCommand = async (input, context) => {
|
|
56
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
57
|
-
const headers = {};
|
|
58
|
-
b.bp("/browsers/{browserIdentifier}/sessions/get");
|
|
59
|
-
b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
|
|
60
|
-
const query = (0, smithy_client_1.map)({
|
|
61
|
-
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
62
|
-
});
|
|
63
|
-
let body;
|
|
64
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
exports.se_GetBrowserSessionCommand = se_GetBrowserSessionCommand;
|
|
68
|
-
const se_GetCodeInterpreterSessionCommand = async (input, context) => {
|
|
69
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
70
|
-
const headers = {};
|
|
71
|
-
b.bp("/code-interpreters/{codeInterpreterIdentifier}/sessions/get");
|
|
72
|
-
b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
|
|
73
|
-
const query = (0, smithy_client_1.map)({
|
|
74
|
-
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
75
|
-
});
|
|
76
|
-
let body;
|
|
77
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
78
|
-
return b.build();
|
|
79
|
-
};
|
|
80
|
-
exports.se_GetCodeInterpreterSessionCommand = se_GetCodeInterpreterSessionCommand;
|
|
81
|
-
const se_GetEventCommand = async (input, context) => {
|
|
82
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
83
|
-
const headers = {};
|
|
84
|
-
b.bp("/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}/events/{eventId}");
|
|
85
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
86
|
-
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
87
|
-
b.p("actorId", () => input.actorId, "{actorId}", false);
|
|
88
|
-
b.p("eventId", () => input.eventId, "{eventId}", false);
|
|
89
|
-
let body;
|
|
90
|
-
b.m("GET").h(headers).b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
exports.se_GetEventCommand = se_GetEventCommand;
|
|
94
|
-
const se_GetMemoryRecordCommand = async (input, context) => {
|
|
95
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
96
|
-
const headers = {};
|
|
97
|
-
b.bp("/memories/{memoryId}/memoryRecord/{memoryRecordId}");
|
|
98
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
99
|
-
b.p("memoryRecordId", () => input.memoryRecordId, "{memoryRecordId}", false);
|
|
100
|
-
let body;
|
|
101
|
-
b.m("GET").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
exports.se_GetMemoryRecordCommand = se_GetMemoryRecordCommand;
|
|
105
|
-
const se_GetResourceApiKeyCommand = async (input, context) => {
|
|
106
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
107
|
-
const headers = {
|
|
108
|
-
"content-type": "application/json",
|
|
109
|
-
};
|
|
110
|
-
b.bp("/identities/api-key");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
113
|
-
resourceCredentialProviderName: [],
|
|
114
|
-
workloadIdentityToken: [],
|
|
115
|
-
}));
|
|
116
|
-
b.m("POST").h(headers).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
exports.se_GetResourceApiKeyCommand = se_GetResourceApiKeyCommand;
|
|
120
|
-
const se_GetResourceOauth2TokenCommand = async (input, context) => {
|
|
121
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
122
|
-
const headers = {
|
|
123
|
-
"content-type": "application/json",
|
|
124
|
-
};
|
|
125
|
-
b.bp("/identities/oauth2/token");
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
128
|
-
customParameters: (_) => (0, smithy_client_1._json)(_),
|
|
129
|
-
forceAuthentication: [],
|
|
130
|
-
oauth2Flow: [],
|
|
131
|
-
resourceCredentialProviderName: [],
|
|
132
|
-
resourceOauth2ReturnUrl: [],
|
|
133
|
-
scopes: (_) => (0, smithy_client_1._json)(_),
|
|
134
|
-
workloadIdentityToken: [],
|
|
135
|
-
}));
|
|
136
|
-
b.m("POST").h(headers).b(body);
|
|
137
|
-
return b.build();
|
|
138
|
-
};
|
|
139
|
-
exports.se_GetResourceOauth2TokenCommand = se_GetResourceOauth2TokenCommand;
|
|
140
|
-
const se_GetWorkloadAccessTokenCommand = async (input, context) => {
|
|
141
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
142
|
-
const headers = {
|
|
143
|
-
"content-type": "application/json",
|
|
144
|
-
};
|
|
145
|
-
b.bp("/identities/GetWorkloadAccessToken");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
148
|
-
workloadName: [],
|
|
149
|
-
}));
|
|
150
|
-
b.m("POST").h(headers).b(body);
|
|
151
|
-
return b.build();
|
|
152
|
-
};
|
|
153
|
-
exports.se_GetWorkloadAccessTokenCommand = se_GetWorkloadAccessTokenCommand;
|
|
154
|
-
const se_GetWorkloadAccessTokenForJWTCommand = async (input, context) => {
|
|
155
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
156
|
-
const headers = {
|
|
157
|
-
"content-type": "application/json",
|
|
158
|
-
};
|
|
159
|
-
b.bp("/identities/GetWorkloadAccessTokenForJWT");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
162
|
-
userToken: [],
|
|
163
|
-
workloadName: [],
|
|
164
|
-
}));
|
|
165
|
-
b.m("POST").h(headers).b(body);
|
|
166
|
-
return b.build();
|
|
167
|
-
};
|
|
168
|
-
exports.se_GetWorkloadAccessTokenForJWTCommand = se_GetWorkloadAccessTokenForJWTCommand;
|
|
169
|
-
const se_GetWorkloadAccessTokenForUserIdCommand = async (input, context) => {
|
|
170
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
171
|
-
const headers = {
|
|
172
|
-
"content-type": "application/json",
|
|
173
|
-
};
|
|
174
|
-
b.bp("/identities/GetWorkloadAccessTokenForUserId");
|
|
175
|
-
let body;
|
|
176
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
177
|
-
userId: [],
|
|
178
|
-
workloadName: [],
|
|
179
|
-
}));
|
|
180
|
-
b.m("POST").h(headers).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
exports.se_GetWorkloadAccessTokenForUserIdCommand = se_GetWorkloadAccessTokenForUserIdCommand;
|
|
184
|
-
const se_InvokeAgentRuntimeCommand = async (input, context) => {
|
|
185
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
186
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
187
|
-
[_ct]: input[_cT] || "application/octet-stream",
|
|
188
|
-
[_a]: input[_a],
|
|
189
|
-
[_msi]: input[_mSI],
|
|
190
|
-
[_xabarsi]: input[_rSI] ?? (0, uuid_1.v4)(),
|
|
191
|
-
[_mpv]: input[_mPV],
|
|
192
|
-
[_xabarui]: input[_rUI],
|
|
193
|
-
[_xati]: input[_tI],
|
|
194
|
-
[_t]: input[_tP],
|
|
195
|
-
[_tr]: input[_tS],
|
|
196
|
-
[_b]: input[_b],
|
|
197
|
-
});
|
|
198
|
-
b.bp("/runtimes/{agentRuntimeArn}/invocations");
|
|
199
|
-
b.p("agentRuntimeArn", () => input.agentRuntimeArn, "{agentRuntimeArn}", false);
|
|
200
|
-
const query = (0, smithy_client_1.map)({
|
|
201
|
-
[_q]: [, input[_q]],
|
|
202
|
-
});
|
|
203
|
-
let body;
|
|
204
|
-
if (input.payload !== undefined) {
|
|
205
|
-
body = input.payload;
|
|
206
|
-
}
|
|
207
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
208
|
-
return b.build();
|
|
209
|
-
};
|
|
210
|
-
exports.se_InvokeAgentRuntimeCommand = se_InvokeAgentRuntimeCommand;
|
|
211
|
-
const se_InvokeCodeInterpreterCommand = async (input, context) => {
|
|
212
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
213
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
214
|
-
"content-type": "application/json",
|
|
215
|
-
[_xacisi]: input[_sI],
|
|
216
|
-
});
|
|
217
|
-
b.bp("/code-interpreters/{codeInterpreterIdentifier}/tools/invoke");
|
|
218
|
-
b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
|
|
219
|
-
let body;
|
|
220
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
221
|
-
arguments: (_) => se_ToolArguments(_, context),
|
|
222
|
-
name: [],
|
|
223
|
-
}));
|
|
224
|
-
b.m("POST").h(headers).b(body);
|
|
225
|
-
return b.build();
|
|
226
|
-
};
|
|
227
|
-
exports.se_InvokeCodeInterpreterCommand = se_InvokeCodeInterpreterCommand;
|
|
228
|
-
const se_ListActorsCommand = async (input, context) => {
|
|
229
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
230
|
-
const headers = {
|
|
231
|
-
"content-type": "application/json",
|
|
232
|
-
};
|
|
233
|
-
b.bp("/memories/{memoryId}/actors");
|
|
234
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
237
|
-
maxResults: [],
|
|
238
|
-
nextToken: [],
|
|
239
|
-
}));
|
|
240
|
-
b.m("POST").h(headers).b(body);
|
|
241
|
-
return b.build();
|
|
242
|
-
};
|
|
243
|
-
exports.se_ListActorsCommand = se_ListActorsCommand;
|
|
244
|
-
const se_ListBrowserSessionsCommand = async (input, context) => {
|
|
245
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
246
|
-
const headers = {
|
|
247
|
-
"content-type": "application/json",
|
|
248
|
-
};
|
|
249
|
-
b.bp("/browsers/{browserIdentifier}/sessions/list");
|
|
250
|
-
b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
253
|
-
maxResults: [],
|
|
254
|
-
nextToken: [],
|
|
255
|
-
status: [],
|
|
256
|
-
}));
|
|
257
|
-
b.m("POST").h(headers).b(body);
|
|
258
|
-
return b.build();
|
|
259
|
-
};
|
|
260
|
-
exports.se_ListBrowserSessionsCommand = se_ListBrowserSessionsCommand;
|
|
261
|
-
const se_ListCodeInterpreterSessionsCommand = async (input, context) => {
|
|
262
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
263
|
-
const headers = {
|
|
264
|
-
"content-type": "application/json",
|
|
265
|
-
};
|
|
266
|
-
b.bp("/code-interpreters/{codeInterpreterIdentifier}/sessions/list");
|
|
267
|
-
b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
|
|
268
|
-
let body;
|
|
269
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
270
|
-
maxResults: [],
|
|
271
|
-
nextToken: [],
|
|
272
|
-
status: [],
|
|
273
|
-
}));
|
|
274
|
-
b.m("POST").h(headers).b(body);
|
|
275
|
-
return b.build();
|
|
276
|
-
};
|
|
277
|
-
exports.se_ListCodeInterpreterSessionsCommand = se_ListCodeInterpreterSessionsCommand;
|
|
278
|
-
const se_ListEventsCommand = async (input, context) => {
|
|
279
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
280
|
-
const headers = {
|
|
281
|
-
"content-type": "application/json",
|
|
282
|
-
};
|
|
283
|
-
b.bp("/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}");
|
|
284
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
285
|
-
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
286
|
-
b.p("actorId", () => input.actorId, "{actorId}", false);
|
|
287
|
-
let body;
|
|
288
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
289
|
-
filter: (_) => (0, smithy_client_1._json)(_),
|
|
290
|
-
includePayloads: [],
|
|
291
|
-
maxResults: [],
|
|
292
|
-
nextToken: [],
|
|
293
|
-
}));
|
|
294
|
-
b.m("POST").h(headers).b(body);
|
|
295
|
-
return b.build();
|
|
296
|
-
};
|
|
297
|
-
exports.se_ListEventsCommand = se_ListEventsCommand;
|
|
298
|
-
const se_ListMemoryRecordsCommand = async (input, context) => {
|
|
299
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
300
|
-
const headers = {
|
|
301
|
-
"content-type": "application/json",
|
|
302
|
-
};
|
|
303
|
-
b.bp("/memories/{memoryId}/memoryRecords");
|
|
304
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
307
|
-
maxResults: [],
|
|
308
|
-
memoryStrategyId: [],
|
|
309
|
-
namespace: [],
|
|
310
|
-
nextToken: [],
|
|
311
|
-
}));
|
|
312
|
-
b.m("POST").h(headers).b(body);
|
|
313
|
-
return b.build();
|
|
314
|
-
};
|
|
315
|
-
exports.se_ListMemoryRecordsCommand = se_ListMemoryRecordsCommand;
|
|
316
|
-
const se_ListSessionsCommand = async (input, context) => {
|
|
317
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
318
|
-
const headers = {
|
|
319
|
-
"content-type": "application/json",
|
|
320
|
-
};
|
|
321
|
-
b.bp("/memories/{memoryId}/actor/{actorId}/sessions");
|
|
322
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
323
|
-
b.p("actorId", () => input.actorId, "{actorId}", false);
|
|
324
|
-
let body;
|
|
325
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
326
|
-
maxResults: [],
|
|
327
|
-
nextToken: [],
|
|
328
|
-
}));
|
|
329
|
-
b.m("POST").h(headers).b(body);
|
|
330
|
-
return b.build();
|
|
331
|
-
};
|
|
332
|
-
exports.se_ListSessionsCommand = se_ListSessionsCommand;
|
|
333
|
-
const se_RetrieveMemoryRecordsCommand = async (input, context) => {
|
|
334
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
335
|
-
const headers = {
|
|
336
|
-
"content-type": "application/json",
|
|
337
|
-
};
|
|
338
|
-
b.bp("/memories/{memoryId}/retrieve");
|
|
339
|
-
b.p("memoryId", () => input.memoryId, "{memoryId}", false);
|
|
340
|
-
let body;
|
|
341
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
342
|
-
maxResults: [],
|
|
343
|
-
namespace: [],
|
|
344
|
-
nextToken: [],
|
|
345
|
-
searchCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
346
|
-
}));
|
|
347
|
-
b.m("POST").h(headers).b(body);
|
|
348
|
-
return b.build();
|
|
349
|
-
};
|
|
350
|
-
exports.se_RetrieveMemoryRecordsCommand = se_RetrieveMemoryRecordsCommand;
|
|
351
|
-
const se_StartBrowserSessionCommand = async (input, context) => {
|
|
352
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
353
|
-
const headers = {
|
|
354
|
-
"content-type": "application/json",
|
|
355
|
-
};
|
|
356
|
-
b.bp("/browsers/{browserIdentifier}/sessions/start");
|
|
357
|
-
b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
|
|
358
|
-
let body;
|
|
359
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
360
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
361
|
-
name: [],
|
|
362
|
-
sessionTimeoutSeconds: [],
|
|
363
|
-
viewPort: (_) => (0, smithy_client_1._json)(_),
|
|
364
|
-
}));
|
|
365
|
-
b.m("PUT").h(headers).b(body);
|
|
366
|
-
return b.build();
|
|
367
|
-
};
|
|
368
|
-
exports.se_StartBrowserSessionCommand = se_StartBrowserSessionCommand;
|
|
369
|
-
const se_StartCodeInterpreterSessionCommand = async (input, context) => {
|
|
370
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
371
|
-
const headers = {
|
|
372
|
-
"content-type": "application/json",
|
|
373
|
-
};
|
|
374
|
-
b.bp("/code-interpreters/{codeInterpreterIdentifier}/sessions/start");
|
|
375
|
-
b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
378
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
379
|
-
name: [],
|
|
380
|
-
sessionTimeoutSeconds: [],
|
|
381
|
-
}));
|
|
382
|
-
b.m("PUT").h(headers).b(body);
|
|
383
|
-
return b.build();
|
|
384
|
-
};
|
|
385
|
-
exports.se_StartCodeInterpreterSessionCommand = se_StartCodeInterpreterSessionCommand;
|
|
386
|
-
const se_StopBrowserSessionCommand = async (input, context) => {
|
|
387
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
388
|
-
const headers = {
|
|
389
|
-
"content-type": "application/json",
|
|
390
|
-
};
|
|
391
|
-
b.bp("/browsers/{browserIdentifier}/sessions/stop");
|
|
392
|
-
b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
|
|
393
|
-
const query = (0, smithy_client_1.map)({
|
|
394
|
-
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
395
|
-
});
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
398
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
399
|
-
}));
|
|
400
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
401
|
-
return b.build();
|
|
402
|
-
};
|
|
403
|
-
exports.se_StopBrowserSessionCommand = se_StopBrowserSessionCommand;
|
|
404
|
-
const se_StopCodeInterpreterSessionCommand = async (input, context) => {
|
|
405
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
406
|
-
const headers = {
|
|
407
|
-
"content-type": "application/json",
|
|
408
|
-
};
|
|
409
|
-
b.bp("/code-interpreters/{codeInterpreterIdentifier}/sessions/stop");
|
|
410
|
-
b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
|
|
411
|
-
const query = (0, smithy_client_1.map)({
|
|
412
|
-
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
413
|
-
});
|
|
414
|
-
let body;
|
|
415
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
416
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
417
|
-
}));
|
|
418
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
419
|
-
return b.build();
|
|
420
|
-
};
|
|
421
|
-
exports.se_StopCodeInterpreterSessionCommand = se_StopCodeInterpreterSessionCommand;
|
|
422
|
-
const se_UpdateBrowserStreamCommand = async (input, context) => {
|
|
423
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
424
|
-
const headers = {
|
|
425
|
-
"content-type": "application/json",
|
|
426
|
-
};
|
|
427
|
-
b.bp("/browsers/{browserIdentifier}/sessions/streams/update");
|
|
428
|
-
b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
|
|
429
|
-
const query = (0, smithy_client_1.map)({
|
|
430
|
-
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
431
|
-
});
|
|
432
|
-
let body;
|
|
433
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
434
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
435
|
-
streamUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
436
|
-
}));
|
|
437
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
438
|
-
return b.build();
|
|
439
|
-
};
|
|
440
|
-
exports.se_UpdateBrowserStreamCommand = se_UpdateBrowserStreamCommand;
|
|
441
|
-
const de_CreateEventCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const contents = (0, smithy_client_1.map)({
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
});
|
|
448
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
449
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
450
|
-
event: (_) => de_Event(_, context),
|
|
451
|
-
});
|
|
452
|
-
Object.assign(contents, doc);
|
|
453
|
-
return contents;
|
|
454
|
-
};
|
|
455
|
-
exports.de_CreateEventCommand = de_CreateEventCommand;
|
|
456
|
-
const de_DeleteEventCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
458
|
-
return de_CommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const contents = (0, smithy_client_1.map)({
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
});
|
|
463
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
464
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
465
|
-
eventId: smithy_client_1.expectString,
|
|
466
|
-
});
|
|
467
|
-
Object.assign(contents, doc);
|
|
468
|
-
return contents;
|
|
469
|
-
};
|
|
470
|
-
exports.de_DeleteEventCommand = de_DeleteEventCommand;
|
|
471
|
-
const de_DeleteMemoryRecordCommand = async (output, context) => {
|
|
472
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
473
|
-
return de_CommandError(output, context);
|
|
474
|
-
}
|
|
475
|
-
const contents = (0, smithy_client_1.map)({
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
});
|
|
478
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
479
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
480
|
-
memoryRecordId: smithy_client_1.expectString,
|
|
481
|
-
});
|
|
482
|
-
Object.assign(contents, doc);
|
|
483
|
-
return contents;
|
|
484
|
-
};
|
|
485
|
-
exports.de_DeleteMemoryRecordCommand = de_DeleteMemoryRecordCommand;
|
|
486
|
-
const de_GetBrowserSessionCommand = async (output, context) => {
|
|
487
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
488
|
-
return de_CommandError(output, context);
|
|
489
|
-
}
|
|
490
|
-
const contents = (0, smithy_client_1.map)({
|
|
491
|
-
$metadata: deserializeMetadata(output),
|
|
492
|
-
});
|
|
493
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
494
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
495
|
-
browserIdentifier: smithy_client_1.expectString,
|
|
496
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
497
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
498
|
-
name: smithy_client_1.expectString,
|
|
499
|
-
sessionId: smithy_client_1.expectString,
|
|
500
|
-
sessionReplayArtifact: smithy_client_1.expectString,
|
|
501
|
-
sessionTimeoutSeconds: smithy_client_1.expectInt32,
|
|
502
|
-
status: smithy_client_1.expectString,
|
|
503
|
-
streams: smithy_client_1._json,
|
|
504
|
-
viewPort: smithy_client_1._json,
|
|
505
|
-
});
|
|
506
|
-
Object.assign(contents, doc);
|
|
507
|
-
return contents;
|
|
508
|
-
};
|
|
509
|
-
exports.de_GetBrowserSessionCommand = de_GetBrowserSessionCommand;
|
|
510
|
-
const de_GetCodeInterpreterSessionCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const contents = (0, smithy_client_1.map)({
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
});
|
|
517
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
518
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
519
|
-
codeInterpreterIdentifier: smithy_client_1.expectString,
|
|
520
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
521
|
-
name: smithy_client_1.expectString,
|
|
522
|
-
sessionId: smithy_client_1.expectString,
|
|
523
|
-
sessionTimeoutSeconds: smithy_client_1.expectInt32,
|
|
524
|
-
status: smithy_client_1.expectString,
|
|
525
|
-
});
|
|
526
|
-
Object.assign(contents, doc);
|
|
527
|
-
return contents;
|
|
528
|
-
};
|
|
529
|
-
exports.de_GetCodeInterpreterSessionCommand = de_GetCodeInterpreterSessionCommand;
|
|
530
|
-
const de_GetEventCommand = async (output, context) => {
|
|
531
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
532
|
-
return de_CommandError(output, context);
|
|
533
|
-
}
|
|
534
|
-
const contents = (0, smithy_client_1.map)({
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
});
|
|
537
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
538
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
539
|
-
event: (_) => de_Event(_, context),
|
|
540
|
-
});
|
|
541
|
-
Object.assign(contents, doc);
|
|
542
|
-
return contents;
|
|
543
|
-
};
|
|
544
|
-
exports.de_GetEventCommand = de_GetEventCommand;
|
|
545
|
-
const de_GetMemoryRecordCommand = async (output, context) => {
|
|
546
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
547
|
-
return de_CommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const contents = (0, smithy_client_1.map)({
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
});
|
|
552
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
553
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
554
|
-
memoryRecord: (_) => de_MemoryRecord(_, context),
|
|
555
|
-
});
|
|
556
|
-
Object.assign(contents, doc);
|
|
557
|
-
return contents;
|
|
558
|
-
};
|
|
559
|
-
exports.de_GetMemoryRecordCommand = de_GetMemoryRecordCommand;
|
|
560
|
-
const de_GetResourceApiKeyCommand = async (output, context) => {
|
|
561
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
562
|
-
return de_CommandError(output, context);
|
|
563
|
-
}
|
|
564
|
-
const contents = (0, smithy_client_1.map)({
|
|
565
|
-
$metadata: deserializeMetadata(output),
|
|
566
|
-
});
|
|
567
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
568
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
569
|
-
apiKey: smithy_client_1.expectString,
|
|
570
|
-
});
|
|
571
|
-
Object.assign(contents, doc);
|
|
572
|
-
return contents;
|
|
573
|
-
};
|
|
574
|
-
exports.de_GetResourceApiKeyCommand = de_GetResourceApiKeyCommand;
|
|
575
|
-
const de_GetResourceOauth2TokenCommand = async (output, context) => {
|
|
576
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
-
return de_CommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const contents = (0, smithy_client_1.map)({
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
});
|
|
582
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
583
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
584
|
-
accessToken: smithy_client_1.expectString,
|
|
585
|
-
authorizationUrl: smithy_client_1.expectString,
|
|
586
|
-
});
|
|
587
|
-
Object.assign(contents, doc);
|
|
588
|
-
return contents;
|
|
589
|
-
};
|
|
590
|
-
exports.de_GetResourceOauth2TokenCommand = de_GetResourceOauth2TokenCommand;
|
|
591
|
-
const de_GetWorkloadAccessTokenCommand = async (output, context) => {
|
|
592
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
593
|
-
return de_CommandError(output, context);
|
|
594
|
-
}
|
|
595
|
-
const contents = (0, smithy_client_1.map)({
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
});
|
|
598
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
599
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
600
|
-
workloadAccessToken: smithy_client_1.expectString,
|
|
601
|
-
});
|
|
602
|
-
Object.assign(contents, doc);
|
|
603
|
-
return contents;
|
|
604
|
-
};
|
|
605
|
-
exports.de_GetWorkloadAccessTokenCommand = de_GetWorkloadAccessTokenCommand;
|
|
606
|
-
const de_GetWorkloadAccessTokenForJWTCommand = async (output, context) => {
|
|
607
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
-
return de_CommandError(output, context);
|
|
609
|
-
}
|
|
610
|
-
const contents = (0, smithy_client_1.map)({
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
});
|
|
613
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
614
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
615
|
-
workloadAccessToken: smithy_client_1.expectString,
|
|
616
|
-
});
|
|
617
|
-
Object.assign(contents, doc);
|
|
618
|
-
return contents;
|
|
619
|
-
};
|
|
620
|
-
exports.de_GetWorkloadAccessTokenForJWTCommand = de_GetWorkloadAccessTokenForJWTCommand;
|
|
621
|
-
const de_GetWorkloadAccessTokenForUserIdCommand = async (output, context) => {
|
|
622
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
|
-
return de_CommandError(output, context);
|
|
624
|
-
}
|
|
625
|
-
const contents = (0, smithy_client_1.map)({
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
});
|
|
628
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
629
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
630
|
-
workloadAccessToken: smithy_client_1.expectString,
|
|
631
|
-
});
|
|
632
|
-
Object.assign(contents, doc);
|
|
633
|
-
return contents;
|
|
634
|
-
};
|
|
635
|
-
exports.de_GetWorkloadAccessTokenForUserIdCommand = de_GetWorkloadAccessTokenForUserIdCommand;
|
|
636
|
-
const de_InvokeAgentRuntimeCommand = async (output, context) => {
|
|
637
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
638
|
-
return de_CommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
const contents = (0, smithy_client_1.map)({
|
|
641
|
-
$metadata: deserializeMetadata(output),
|
|
642
|
-
[_rSI]: [, output.headers[_xabarsi]],
|
|
643
|
-
[_mSI]: [, output.headers[_msi]],
|
|
644
|
-
[_mPV]: [, output.headers[_mpv]],
|
|
645
|
-
[_tI]: [, output.headers[_xati]],
|
|
646
|
-
[_tP]: [, output.headers[_t]],
|
|
647
|
-
[_tS]: [, output.headers[_tr]],
|
|
648
|
-
[_b]: [, output.headers[_b]],
|
|
649
|
-
[_cT]: [, output.headers[_ct]],
|
|
650
|
-
});
|
|
651
|
-
const data = output.body;
|
|
652
|
-
context.sdkStreamMixin(data);
|
|
653
|
-
contents.response = data;
|
|
654
|
-
(0, smithy_client_1.map)(contents, {
|
|
655
|
-
statusCode: [, output.statusCode],
|
|
656
|
-
});
|
|
657
|
-
return contents;
|
|
658
|
-
};
|
|
659
|
-
exports.de_InvokeAgentRuntimeCommand = de_InvokeAgentRuntimeCommand;
|
|
660
|
-
const de_InvokeCodeInterpreterCommand = async (output, context) => {
|
|
661
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return de_CommandError(output, context);
|
|
663
|
-
}
|
|
664
|
-
const contents = (0, smithy_client_1.map)({
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
[_sI]: [, output.headers[_xacisi]],
|
|
667
|
-
});
|
|
668
|
-
const data = output.body;
|
|
669
|
-
contents.stream = de_CodeInterpreterStreamOutput(data, context);
|
|
670
|
-
return contents;
|
|
671
|
-
};
|
|
672
|
-
exports.de_InvokeCodeInterpreterCommand = de_InvokeCodeInterpreterCommand;
|
|
673
|
-
const de_ListActorsCommand = async (output, context) => {
|
|
674
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
675
|
-
return de_CommandError(output, context);
|
|
676
|
-
}
|
|
677
|
-
const contents = (0, smithy_client_1.map)({
|
|
678
|
-
$metadata: deserializeMetadata(output),
|
|
679
|
-
});
|
|
680
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
681
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
682
|
-
actorSummaries: smithy_client_1._json,
|
|
683
|
-
nextToken: smithy_client_1.expectString,
|
|
684
|
-
});
|
|
685
|
-
Object.assign(contents, doc);
|
|
686
|
-
return contents;
|
|
687
|
-
};
|
|
688
|
-
exports.de_ListActorsCommand = de_ListActorsCommand;
|
|
689
|
-
const de_ListBrowserSessionsCommand = async (output, context) => {
|
|
690
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
|
-
return de_CommandError(output, context);
|
|
692
|
-
}
|
|
693
|
-
const contents = (0, smithy_client_1.map)({
|
|
694
|
-
$metadata: deserializeMetadata(output),
|
|
695
|
-
});
|
|
696
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
697
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
698
|
-
items: (_) => de_BrowserSessionSummaries(_, context),
|
|
699
|
-
nextToken: smithy_client_1.expectString,
|
|
700
|
-
});
|
|
701
|
-
Object.assign(contents, doc);
|
|
702
|
-
return contents;
|
|
703
|
-
};
|
|
704
|
-
exports.de_ListBrowserSessionsCommand = de_ListBrowserSessionsCommand;
|
|
705
|
-
const de_ListCodeInterpreterSessionsCommand = async (output, context) => {
|
|
706
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return de_CommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const contents = (0, smithy_client_1.map)({
|
|
710
|
-
$metadata: deserializeMetadata(output),
|
|
711
|
-
});
|
|
712
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
713
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
714
|
-
items: (_) => de_CodeInterpreterSessionSummaries(_, context),
|
|
715
|
-
nextToken: smithy_client_1.expectString,
|
|
716
|
-
});
|
|
717
|
-
Object.assign(contents, doc);
|
|
718
|
-
return contents;
|
|
719
|
-
};
|
|
720
|
-
exports.de_ListCodeInterpreterSessionsCommand = de_ListCodeInterpreterSessionsCommand;
|
|
721
|
-
const de_ListEventsCommand = async (output, context) => {
|
|
722
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
-
return de_CommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const contents = (0, smithy_client_1.map)({
|
|
726
|
-
$metadata: deserializeMetadata(output),
|
|
727
|
-
});
|
|
728
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
729
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
730
|
-
events: (_) => de_EventList(_, context),
|
|
731
|
-
nextToken: smithy_client_1.expectString,
|
|
732
|
-
});
|
|
733
|
-
Object.assign(contents, doc);
|
|
734
|
-
return contents;
|
|
735
|
-
};
|
|
736
|
-
exports.de_ListEventsCommand = de_ListEventsCommand;
|
|
737
|
-
const de_ListMemoryRecordsCommand = async (output, context) => {
|
|
738
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
739
|
-
return de_CommandError(output, context);
|
|
740
|
-
}
|
|
741
|
-
const contents = (0, smithy_client_1.map)({
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
});
|
|
744
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
745
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
746
|
-
memoryRecordSummaries: (_) => de_MemoryRecordSummaryList(_, context),
|
|
747
|
-
nextToken: smithy_client_1.expectString,
|
|
748
|
-
});
|
|
749
|
-
Object.assign(contents, doc);
|
|
750
|
-
return contents;
|
|
751
|
-
};
|
|
752
|
-
exports.de_ListMemoryRecordsCommand = de_ListMemoryRecordsCommand;
|
|
753
|
-
const de_ListSessionsCommand = async (output, context) => {
|
|
754
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return de_CommandError(output, context);
|
|
756
|
-
}
|
|
757
|
-
const contents = (0, smithy_client_1.map)({
|
|
758
|
-
$metadata: deserializeMetadata(output),
|
|
759
|
-
});
|
|
760
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
761
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
762
|
-
nextToken: smithy_client_1.expectString,
|
|
763
|
-
sessionSummaries: (_) => de_SessionSummaryList(_, context),
|
|
764
|
-
});
|
|
765
|
-
Object.assign(contents, doc);
|
|
766
|
-
return contents;
|
|
767
|
-
};
|
|
768
|
-
exports.de_ListSessionsCommand = de_ListSessionsCommand;
|
|
769
|
-
const de_RetrieveMemoryRecordsCommand = async (output, context) => {
|
|
770
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
771
|
-
return de_CommandError(output, context);
|
|
772
|
-
}
|
|
773
|
-
const contents = (0, smithy_client_1.map)({
|
|
774
|
-
$metadata: deserializeMetadata(output),
|
|
775
|
-
});
|
|
776
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
777
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
778
|
-
memoryRecordSummaries: (_) => de_MemoryRecordSummaryList(_, context),
|
|
779
|
-
nextToken: smithy_client_1.expectString,
|
|
780
|
-
});
|
|
781
|
-
Object.assign(contents, doc);
|
|
782
|
-
return contents;
|
|
783
|
-
};
|
|
784
|
-
exports.de_RetrieveMemoryRecordsCommand = de_RetrieveMemoryRecordsCommand;
|
|
785
|
-
const de_StartBrowserSessionCommand = async (output, context) => {
|
|
786
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
787
|
-
return de_CommandError(output, context);
|
|
788
|
-
}
|
|
789
|
-
const contents = (0, smithy_client_1.map)({
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
});
|
|
792
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
793
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
794
|
-
browserIdentifier: smithy_client_1.expectString,
|
|
795
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
796
|
-
sessionId: smithy_client_1.expectString,
|
|
797
|
-
streams: smithy_client_1._json,
|
|
798
|
-
});
|
|
799
|
-
Object.assign(contents, doc);
|
|
800
|
-
return contents;
|
|
801
|
-
};
|
|
802
|
-
exports.de_StartBrowserSessionCommand = de_StartBrowserSessionCommand;
|
|
803
|
-
const de_StartCodeInterpreterSessionCommand = async (output, context) => {
|
|
804
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
-
return de_CommandError(output, context);
|
|
806
|
-
}
|
|
807
|
-
const contents = (0, smithy_client_1.map)({
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
});
|
|
810
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
811
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
812
|
-
codeInterpreterIdentifier: smithy_client_1.expectString,
|
|
813
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
814
|
-
sessionId: smithy_client_1.expectString,
|
|
815
|
-
});
|
|
816
|
-
Object.assign(contents, doc);
|
|
817
|
-
return contents;
|
|
818
|
-
};
|
|
819
|
-
exports.de_StartCodeInterpreterSessionCommand = de_StartCodeInterpreterSessionCommand;
|
|
820
|
-
const de_StopBrowserSessionCommand = async (output, context) => {
|
|
821
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return de_CommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const contents = (0, smithy_client_1.map)({
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
});
|
|
827
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
828
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
829
|
-
browserIdentifier: smithy_client_1.expectString,
|
|
830
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
831
|
-
sessionId: smithy_client_1.expectString,
|
|
832
|
-
});
|
|
833
|
-
Object.assign(contents, doc);
|
|
834
|
-
return contents;
|
|
835
|
-
};
|
|
836
|
-
exports.de_StopBrowserSessionCommand = de_StopBrowserSessionCommand;
|
|
837
|
-
const de_StopCodeInterpreterSessionCommand = async (output, context) => {
|
|
838
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
839
|
-
return de_CommandError(output, context);
|
|
840
|
-
}
|
|
841
|
-
const contents = (0, smithy_client_1.map)({
|
|
842
|
-
$metadata: deserializeMetadata(output),
|
|
843
|
-
});
|
|
844
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
845
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
846
|
-
codeInterpreterIdentifier: smithy_client_1.expectString,
|
|
847
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
848
|
-
sessionId: smithy_client_1.expectString,
|
|
849
|
-
});
|
|
850
|
-
Object.assign(contents, doc);
|
|
851
|
-
return contents;
|
|
852
|
-
};
|
|
853
|
-
exports.de_StopCodeInterpreterSessionCommand = de_StopCodeInterpreterSessionCommand;
|
|
854
|
-
const de_UpdateBrowserStreamCommand = async (output, context) => {
|
|
855
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
-
return de_CommandError(output, context);
|
|
857
|
-
}
|
|
858
|
-
const contents = (0, smithy_client_1.map)({
|
|
859
|
-
$metadata: deserializeMetadata(output),
|
|
860
|
-
});
|
|
861
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
862
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
863
|
-
browserIdentifier: smithy_client_1.expectString,
|
|
864
|
-
sessionId: smithy_client_1.expectString,
|
|
865
|
-
streams: smithy_client_1._json,
|
|
866
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
867
|
-
});
|
|
868
|
-
Object.assign(contents, doc);
|
|
869
|
-
return contents;
|
|
870
|
-
};
|
|
871
|
-
exports.de_UpdateBrowserStreamCommand = de_UpdateBrowserStreamCommand;
|
|
872
|
-
const de_CommandError = async (output, context) => {
|
|
873
|
-
const parsedOutput = {
|
|
874
|
-
...output,
|
|
875
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
876
|
-
};
|
|
877
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
878
|
-
switch (errorCode) {
|
|
879
|
-
case "AccessDeniedException":
|
|
880
|
-
case "com.amazonaws.bedrockagentcore#AccessDeniedException":
|
|
881
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
882
|
-
case "InvalidInputException":
|
|
883
|
-
case "com.amazonaws.bedrockagentcore#InvalidInputException":
|
|
884
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
885
|
-
case "ResourceNotFoundException":
|
|
886
|
-
case "com.amazonaws.bedrockagentcore#ResourceNotFoundException":
|
|
887
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ServiceException":
|
|
889
|
-
case "com.amazonaws.bedrockagentcore#ServiceException":
|
|
890
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ServiceQuotaExceededException":
|
|
892
|
-
case "com.amazonaws.bedrockagentcore#ServiceQuotaExceededException":
|
|
893
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ThrottledException":
|
|
895
|
-
case "com.amazonaws.bedrockagentcore#ThrottledException":
|
|
896
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ValidationException":
|
|
898
|
-
case "com.amazonaws.bedrockagentcore#ValidationException":
|
|
899
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
900
|
-
case "InternalServerException":
|
|
901
|
-
case "com.amazonaws.bedrockagentcore#InternalServerException":
|
|
902
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ThrottlingException":
|
|
904
|
-
case "com.amazonaws.bedrockagentcore#ThrottlingException":
|
|
905
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
906
|
-
case "UnauthorizedException":
|
|
907
|
-
case "com.amazonaws.bedrockagentcore#UnauthorizedException":
|
|
908
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
909
|
-
case "RuntimeClientError":
|
|
910
|
-
case "com.amazonaws.bedrockagentcore#RuntimeClientError":
|
|
911
|
-
throw await de_RuntimeClientErrorRes(parsedOutput, context);
|
|
912
|
-
case "ConflictException":
|
|
913
|
-
case "com.amazonaws.bedrockagentcore#ConflictException":
|
|
914
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
915
|
-
default:
|
|
916
|
-
const parsedBody = parsedOutput.body;
|
|
917
|
-
return throwDefaultError({
|
|
918
|
-
output,
|
|
919
|
-
parsedBody,
|
|
920
|
-
errorCode,
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException);
|
|
925
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
926
|
-
const contents = (0, smithy_client_1.map)({});
|
|
927
|
-
const data = parsedOutput.body;
|
|
928
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
929
|
-
message: smithy_client_1.expectString,
|
|
930
|
-
});
|
|
931
|
-
Object.assign(contents, doc);
|
|
932
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
933
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
934
|
-
...contents,
|
|
935
|
-
});
|
|
936
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
937
|
-
};
|
|
938
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
939
|
-
const contents = (0, smithy_client_1.map)({});
|
|
940
|
-
const data = parsedOutput.body;
|
|
941
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
942
|
-
message: smithy_client_1.expectString,
|
|
943
|
-
});
|
|
944
|
-
Object.assign(contents, doc);
|
|
945
|
-
const exception = new models_0_1.ConflictException({
|
|
946
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
947
|
-
...contents,
|
|
948
|
-
});
|
|
949
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
950
|
-
};
|
|
951
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
952
|
-
const contents = (0, smithy_client_1.map)({});
|
|
953
|
-
const data = parsedOutput.body;
|
|
954
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
955
|
-
message: smithy_client_1.expectString,
|
|
956
|
-
});
|
|
957
|
-
Object.assign(contents, doc);
|
|
958
|
-
const exception = new models_0_1.InternalServerException({
|
|
959
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
960
|
-
...contents,
|
|
961
|
-
});
|
|
962
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
963
|
-
};
|
|
964
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
965
|
-
const contents = (0, smithy_client_1.map)({});
|
|
966
|
-
const data = parsedOutput.body;
|
|
967
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
968
|
-
message: smithy_client_1.expectString,
|
|
969
|
-
});
|
|
970
|
-
Object.assign(contents, doc);
|
|
971
|
-
const exception = new models_0_1.InvalidInputException({
|
|
972
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
973
|
-
...contents,
|
|
974
|
-
});
|
|
975
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
976
|
-
};
|
|
977
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
978
|
-
const contents = (0, smithy_client_1.map)({});
|
|
979
|
-
const data = parsedOutput.body;
|
|
980
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
981
|
-
message: smithy_client_1.expectString,
|
|
982
|
-
});
|
|
983
|
-
Object.assign(contents, doc);
|
|
984
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
985
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
986
|
-
...contents,
|
|
987
|
-
});
|
|
988
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
989
|
-
};
|
|
990
|
-
const de_RuntimeClientErrorRes = async (parsedOutput, context) => {
|
|
991
|
-
const contents = (0, smithy_client_1.map)({});
|
|
992
|
-
const data = parsedOutput.body;
|
|
993
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
994
|
-
message: smithy_client_1.expectString,
|
|
995
|
-
});
|
|
996
|
-
Object.assign(contents, doc);
|
|
997
|
-
const exception = new models_0_1.RuntimeClientError({
|
|
998
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
999
|
-
...contents,
|
|
1000
|
-
});
|
|
1001
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1002
|
-
};
|
|
1003
|
-
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
1004
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1005
|
-
const data = parsedOutput.body;
|
|
1006
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1007
|
-
message: smithy_client_1.expectString,
|
|
1008
|
-
});
|
|
1009
|
-
Object.assign(contents, doc);
|
|
1010
|
-
const exception = new models_0_1.ServiceException({
|
|
1011
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1012
|
-
...contents,
|
|
1013
|
-
});
|
|
1014
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1015
|
-
};
|
|
1016
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1017
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1018
|
-
const data = parsedOutput.body;
|
|
1019
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1020
|
-
message: smithy_client_1.expectString,
|
|
1021
|
-
});
|
|
1022
|
-
Object.assign(contents, doc);
|
|
1023
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1024
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1025
|
-
...contents,
|
|
1026
|
-
});
|
|
1027
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1028
|
-
};
|
|
1029
|
-
const de_ThrottledExceptionRes = async (parsedOutput, context) => {
|
|
1030
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1031
|
-
const data = parsedOutput.body;
|
|
1032
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1033
|
-
message: smithy_client_1.expectString,
|
|
1034
|
-
});
|
|
1035
|
-
Object.assign(contents, doc);
|
|
1036
|
-
const exception = new models_0_1.ThrottledException({
|
|
1037
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1038
|
-
...contents,
|
|
1039
|
-
});
|
|
1040
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1041
|
-
};
|
|
1042
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1043
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1044
|
-
const data = parsedOutput.body;
|
|
1045
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1046
|
-
message: smithy_client_1.expectString,
|
|
1047
|
-
});
|
|
1048
|
-
Object.assign(contents, doc);
|
|
1049
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1050
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
|
-
...contents,
|
|
1052
|
-
});
|
|
1053
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1054
|
-
};
|
|
1055
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1056
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1057
|
-
const data = parsedOutput.body;
|
|
1058
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1059
|
-
message: smithy_client_1.expectString,
|
|
1060
|
-
});
|
|
1061
|
-
Object.assign(contents, doc);
|
|
1062
|
-
const exception = new models_0_1.UnauthorizedException({
|
|
1063
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1064
|
-
...contents,
|
|
1065
|
-
});
|
|
1066
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1067
|
-
};
|
|
1068
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1069
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1070
|
-
const data = parsedOutput.body;
|
|
1071
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1072
|
-
fieldList: smithy_client_1._json,
|
|
1073
|
-
message: smithy_client_1.expectString,
|
|
1074
|
-
reason: smithy_client_1.expectString,
|
|
1075
|
-
});
|
|
1076
|
-
Object.assign(contents, doc);
|
|
1077
|
-
const exception = new models_0_1.ValidationException({
|
|
1078
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
|
-
...contents,
|
|
1080
|
-
});
|
|
1081
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1082
|
-
};
|
|
1083
|
-
const de_CodeInterpreterStreamOutput = (output, context) => {
|
|
1084
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1085
|
-
if (event["result"] != null) {
|
|
1086
|
-
return {
|
|
1087
|
-
result: await de_CodeInterpreterResult_event(event["result"], context),
|
|
1088
|
-
};
|
|
1089
|
-
}
|
|
1090
|
-
if (event["accessDeniedException"] != null) {
|
|
1091
|
-
return {
|
|
1092
|
-
accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context),
|
|
1093
|
-
};
|
|
1094
|
-
}
|
|
1095
|
-
if (event["conflictException"] != null) {
|
|
1096
|
-
return {
|
|
1097
|
-
conflictException: await de_ConflictException_event(event["conflictException"], context),
|
|
1098
|
-
};
|
|
1099
|
-
}
|
|
1100
|
-
if (event["internalServerException"] != null) {
|
|
1101
|
-
return {
|
|
1102
|
-
internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
|
-
if (event["resourceNotFoundException"] != null) {
|
|
1106
|
-
return {
|
|
1107
|
-
resourceNotFoundException: await de_ResourceNotFoundException_event(event["resourceNotFoundException"], context),
|
|
1108
|
-
};
|
|
1109
|
-
}
|
|
1110
|
-
if (event["serviceQuotaExceededException"] != null) {
|
|
1111
|
-
return {
|
|
1112
|
-
serviceQuotaExceededException: await de_ServiceQuotaExceededException_event(event["serviceQuotaExceededException"], context),
|
|
1113
|
-
};
|
|
1114
|
-
}
|
|
1115
|
-
if (event["throttlingException"] != null) {
|
|
1116
|
-
return {
|
|
1117
|
-
throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
|
|
1118
|
-
};
|
|
1119
|
-
}
|
|
1120
|
-
if (event["validationException"] != null) {
|
|
1121
|
-
return {
|
|
1122
|
-
validationException: await de_ValidationException_event(event["validationException"], context),
|
|
1123
|
-
};
|
|
1124
|
-
}
|
|
1125
|
-
return { $unknown: event };
|
|
1126
|
-
});
|
|
1127
|
-
};
|
|
1128
|
-
const de_AccessDeniedException_event = async (output, context) => {
|
|
1129
|
-
const parsedOutput = {
|
|
1130
|
-
...output,
|
|
1131
|
-
body: await (0, core_1.parseJsonBody)(output.body, context),
|
|
1132
|
-
};
|
|
1133
|
-
return de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1134
|
-
};
|
|
1135
|
-
const de_CodeInterpreterResult_event = async (output, context) => {
|
|
1136
|
-
const contents = {};
|
|
1137
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
1138
|
-
Object.assign(contents, de_CodeInterpreterResult(data, context));
|
|
1139
|
-
return contents;
|
|
1140
|
-
};
|
|
1141
|
-
const de_ConflictException_event = async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await (0, core_1.parseJsonBody)(output.body, context),
|
|
1145
|
-
};
|
|
1146
|
-
return de_ConflictExceptionRes(parsedOutput, context);
|
|
1147
|
-
};
|
|
1148
|
-
const de_InternalServerException_event = async (output, context) => {
|
|
1149
|
-
const parsedOutput = {
|
|
1150
|
-
...output,
|
|
1151
|
-
body: await (0, core_1.parseJsonBody)(output.body, context),
|
|
1152
|
-
};
|
|
1153
|
-
return de_InternalServerExceptionRes(parsedOutput, context);
|
|
1154
|
-
};
|
|
1155
|
-
const de_ResourceNotFoundException_event = async (output, context) => {
|
|
1156
|
-
const parsedOutput = {
|
|
1157
|
-
...output,
|
|
1158
|
-
body: await (0, core_1.parseJsonBody)(output.body, context),
|
|
1159
|
-
};
|
|
1160
|
-
return de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1161
|
-
};
|
|
1162
|
-
const de_ServiceQuotaExceededException_event = async (output, context) => {
|
|
1163
|
-
const parsedOutput = {
|
|
1164
|
-
...output,
|
|
1165
|
-
body: await (0, core_1.parseJsonBody)(output.body, context),
|
|
1166
|
-
};
|
|
1167
|
-
return de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1168
|
-
};
|
|
1169
|
-
const de_ThrottlingException_event = async (output, context) => {
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await (0, core_1.parseJsonBody)(output.body, context),
|
|
1173
|
-
};
|
|
1174
|
-
return de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1175
|
-
};
|
|
1176
|
-
const de_ValidationException_event = async (output, context) => {
|
|
1177
|
-
const parsedOutput = {
|
|
1178
|
-
...output,
|
|
1179
|
-
body: await (0, core_1.parseJsonBody)(output.body, context),
|
|
1180
|
-
};
|
|
1181
|
-
return de_ValidationExceptionRes(parsedOutput, context);
|
|
1182
|
-
};
|
|
1183
|
-
const se_Document = (input, context) => {
|
|
1184
|
-
return input;
|
|
1185
|
-
};
|
|
1186
|
-
const se_InputContentBlock = (input, context) => {
|
|
1187
|
-
return (0, smithy_client_1.take)(input, {
|
|
1188
|
-
blob: context.base64Encoder,
|
|
1189
|
-
path: [],
|
|
1190
|
-
text: [],
|
|
1191
|
-
});
|
|
1192
|
-
};
|
|
1193
|
-
const se_InputContentBlockList = (input, context) => {
|
|
1194
|
-
return input
|
|
1195
|
-
.filter((e) => e != null)
|
|
1196
|
-
.map((entry) => {
|
|
1197
|
-
return se_InputContentBlock(entry, context);
|
|
1198
|
-
});
|
|
1199
|
-
};
|
|
1200
|
-
const se_PayloadType = (input, context) => {
|
|
1201
|
-
return models_0_1.PayloadType.visit(input, {
|
|
1202
|
-
blob: (value) => ({ blob: se_Document(value, context) }),
|
|
1203
|
-
conversational: (value) => ({ conversational: (0, smithy_client_1._json)(value) }),
|
|
1204
|
-
_: (name, value) => ({ [name]: value }),
|
|
1205
|
-
});
|
|
1206
|
-
};
|
|
1207
|
-
const se_PayloadTypeList = (input, context) => {
|
|
1208
|
-
return input
|
|
1209
|
-
.filter((e) => e != null)
|
|
1210
|
-
.map((entry) => {
|
|
1211
|
-
return se_PayloadType(entry, context);
|
|
1212
|
-
});
|
|
1213
|
-
};
|
|
1214
|
-
const se_ToolArguments = (input, context) => {
|
|
1215
|
-
return (0, smithy_client_1.take)(input, {
|
|
1216
|
-
clearContext: [],
|
|
1217
|
-
code: [],
|
|
1218
|
-
command: [],
|
|
1219
|
-
content: (_) => se_InputContentBlockList(_, context),
|
|
1220
|
-
directoryPath: [],
|
|
1221
|
-
language: [],
|
|
1222
|
-
path: [],
|
|
1223
|
-
paths: smithy_client_1._json,
|
|
1224
|
-
taskId: [],
|
|
1225
|
-
});
|
|
1226
|
-
};
|
|
1227
|
-
const de_BrowserSessionSummaries = (output, context) => {
|
|
1228
|
-
const retVal = (output || [])
|
|
1229
|
-
.filter((e) => e != null)
|
|
1230
|
-
.map((entry) => {
|
|
1231
|
-
return de_BrowserSessionSummary(entry, context);
|
|
1232
|
-
});
|
|
1233
|
-
return retVal;
|
|
1234
|
-
};
|
|
1235
|
-
const de_BrowserSessionSummary = (output, context) => {
|
|
1236
|
-
return (0, smithy_client_1.take)(output, {
|
|
1237
|
-
browserIdentifier: smithy_client_1.expectString,
|
|
1238
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1239
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1240
|
-
name: smithy_client_1.expectString,
|
|
1241
|
-
sessionId: smithy_client_1.expectString,
|
|
1242
|
-
status: smithy_client_1.expectString,
|
|
1243
|
-
});
|
|
1244
|
-
};
|
|
1245
|
-
const de_CodeInterpreterResult = (output, context) => {
|
|
1246
|
-
return (0, smithy_client_1.take)(output, {
|
|
1247
|
-
content: (_) => de_ContentBlockList(_, context),
|
|
1248
|
-
isError: smithy_client_1.expectBoolean,
|
|
1249
|
-
structuredContent: (_) => de_ToolResultStructuredContent(_, context),
|
|
1250
|
-
});
|
|
1251
|
-
};
|
|
1252
|
-
const de_CodeInterpreterSessionSummaries = (output, context) => {
|
|
1253
|
-
const retVal = (output || [])
|
|
1254
|
-
.filter((e) => e != null)
|
|
1255
|
-
.map((entry) => {
|
|
1256
|
-
return de_CodeInterpreterSessionSummary(entry, context);
|
|
1257
|
-
});
|
|
1258
|
-
return retVal;
|
|
1259
|
-
};
|
|
1260
|
-
const de_CodeInterpreterSessionSummary = (output, context) => {
|
|
1261
|
-
return (0, smithy_client_1.take)(output, {
|
|
1262
|
-
codeInterpreterIdentifier: smithy_client_1.expectString,
|
|
1263
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1264
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1265
|
-
name: smithy_client_1.expectString,
|
|
1266
|
-
sessionId: smithy_client_1.expectString,
|
|
1267
|
-
status: smithy_client_1.expectString,
|
|
1268
|
-
});
|
|
1269
|
-
};
|
|
1270
|
-
const de_ContentBlock = (output, context) => {
|
|
1271
|
-
return (0, smithy_client_1.take)(output, {
|
|
1272
|
-
data: context.base64Decoder,
|
|
1273
|
-
description: smithy_client_1.expectString,
|
|
1274
|
-
mimeType: smithy_client_1.expectString,
|
|
1275
|
-
name: smithy_client_1.expectString,
|
|
1276
|
-
resource: (_) => de_ResourceContent(_, context),
|
|
1277
|
-
size: smithy_client_1.expectLong,
|
|
1278
|
-
text: smithy_client_1.expectString,
|
|
1279
|
-
type: smithy_client_1.expectString,
|
|
1280
|
-
uri: smithy_client_1.expectString,
|
|
1281
|
-
});
|
|
1282
|
-
};
|
|
1283
|
-
const de_ContentBlockList = (output, context) => {
|
|
1284
|
-
const retVal = (output || [])
|
|
1285
|
-
.filter((e) => e != null)
|
|
1286
|
-
.map((entry) => {
|
|
1287
|
-
return de_ContentBlock(entry, context);
|
|
1288
|
-
});
|
|
1289
|
-
return retVal;
|
|
1290
|
-
};
|
|
1291
|
-
const de_Document = (output, context) => {
|
|
1292
|
-
return output;
|
|
1293
|
-
};
|
|
1294
|
-
const de_Event = (output, context) => {
|
|
1295
|
-
return (0, smithy_client_1.take)(output, {
|
|
1296
|
-
actorId: smithy_client_1.expectString,
|
|
1297
|
-
branch: smithy_client_1._json,
|
|
1298
|
-
eventId: smithy_client_1.expectString,
|
|
1299
|
-
eventTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1300
|
-
memoryId: smithy_client_1.expectString,
|
|
1301
|
-
payload: (_) => de_PayloadTypeList(_, context),
|
|
1302
|
-
sessionId: smithy_client_1.expectString,
|
|
1303
|
-
});
|
|
1304
|
-
};
|
|
1305
|
-
const de_EventList = (output, context) => {
|
|
1306
|
-
const retVal = (output || [])
|
|
1307
|
-
.filter((e) => e != null)
|
|
1308
|
-
.map((entry) => {
|
|
1309
|
-
return de_Event(entry, context);
|
|
1310
|
-
});
|
|
1311
|
-
return retVal;
|
|
1312
|
-
};
|
|
1313
|
-
const de_MemoryRecord = (output, context) => {
|
|
1314
|
-
return (0, smithy_client_1.take)(output, {
|
|
1315
|
-
content: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1316
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1317
|
-
memoryRecordId: smithy_client_1.expectString,
|
|
1318
|
-
memoryStrategyId: smithy_client_1.expectString,
|
|
1319
|
-
namespaces: smithy_client_1._json,
|
|
1320
|
-
});
|
|
1321
|
-
};
|
|
1322
|
-
const de_MemoryRecordSummary = (output, context) => {
|
|
1323
|
-
return (0, smithy_client_1.take)(output, {
|
|
1324
|
-
content: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1325
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1326
|
-
memoryRecordId: smithy_client_1.expectString,
|
|
1327
|
-
memoryStrategyId: smithy_client_1.expectString,
|
|
1328
|
-
namespaces: smithy_client_1._json,
|
|
1329
|
-
score: smithy_client_1.limitedParseDouble,
|
|
1330
|
-
});
|
|
1331
|
-
};
|
|
1332
|
-
const de_MemoryRecordSummaryList = (output, context) => {
|
|
1333
|
-
const retVal = (output || [])
|
|
1334
|
-
.filter((e) => e != null)
|
|
1335
|
-
.map((entry) => {
|
|
1336
|
-
return de_MemoryRecordSummary(entry, context);
|
|
1337
|
-
});
|
|
1338
|
-
return retVal;
|
|
1339
|
-
};
|
|
1340
|
-
const de_PayloadType = (output, context) => {
|
|
1341
|
-
if (output.blob != null) {
|
|
1342
|
-
return {
|
|
1343
|
-
blob: de_Document(output.blob, context),
|
|
1344
|
-
};
|
|
1345
|
-
}
|
|
1346
|
-
if (output.conversational != null) {
|
|
1347
|
-
return {
|
|
1348
|
-
conversational: (0, smithy_client_1._json)(output.conversational),
|
|
1349
|
-
};
|
|
1350
|
-
}
|
|
1351
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1352
|
-
};
|
|
1353
|
-
const de_PayloadTypeList = (output, context) => {
|
|
1354
|
-
const retVal = (output || [])
|
|
1355
|
-
.filter((e) => e != null)
|
|
1356
|
-
.map((entry) => {
|
|
1357
|
-
return de_PayloadType((0, core_1.awsExpectUnion)(entry), context);
|
|
1358
|
-
});
|
|
1359
|
-
return retVal;
|
|
1360
|
-
};
|
|
1361
|
-
const de_ResourceContent = (output, context) => {
|
|
1362
|
-
return (0, smithy_client_1.take)(output, {
|
|
1363
|
-
blob: context.base64Decoder,
|
|
1364
|
-
mimeType: smithy_client_1.expectString,
|
|
1365
|
-
text: smithy_client_1.expectString,
|
|
1366
|
-
type: smithy_client_1.expectString,
|
|
1367
|
-
uri: smithy_client_1.expectString,
|
|
1368
|
-
});
|
|
1369
|
-
};
|
|
1370
|
-
const de_SessionSummary = (output, context) => {
|
|
1371
|
-
return (0, smithy_client_1.take)(output, {
|
|
1372
|
-
actorId: smithy_client_1.expectString,
|
|
1373
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1374
|
-
sessionId: smithy_client_1.expectString,
|
|
1375
|
-
});
|
|
1376
|
-
};
|
|
1377
|
-
const de_SessionSummaryList = (output, context) => {
|
|
1378
|
-
const retVal = (output || [])
|
|
1379
|
-
.filter((e) => e != null)
|
|
1380
|
-
.map((entry) => {
|
|
1381
|
-
return de_SessionSummary(entry, context);
|
|
1382
|
-
});
|
|
1383
|
-
return retVal;
|
|
1384
|
-
};
|
|
1385
|
-
const de_ToolResultStructuredContent = (output, context) => {
|
|
1386
|
-
return (0, smithy_client_1.take)(output, {
|
|
1387
|
-
executionTime: smithy_client_1.limitedParseDouble,
|
|
1388
|
-
exitCode: smithy_client_1.expectInt32,
|
|
1389
|
-
stderr: smithy_client_1.expectString,
|
|
1390
|
-
stdout: smithy_client_1.expectString,
|
|
1391
|
-
taskId: smithy_client_1.expectString,
|
|
1392
|
-
taskStatus: smithy_client_1.expectString,
|
|
1393
|
-
});
|
|
1394
|
-
};
|
|
1395
|
-
const deserializeMetadata = (output) => ({
|
|
1396
|
-
httpStatusCode: output.statusCode,
|
|
1397
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1398
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1399
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1400
|
-
});
|
|
1401
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1402
|
-
const _a = "accept";
|
|
1403
|
-
const _b = "baggage";
|
|
1404
|
-
const _cT = "contentType";
|
|
1405
|
-
const _ct = "content-type";
|
|
1406
|
-
const _mPV = "mcpProtocolVersion";
|
|
1407
|
-
const _mSI = "mcpSessionId";
|
|
1408
|
-
const _mpv = "mcp-protocol-version";
|
|
1409
|
-
const _msi = "mcp-session-id";
|
|
1410
|
-
const _q = "qualifier";
|
|
1411
|
-
const _rSI = "runtimeSessionId";
|
|
1412
|
-
const _rUI = "runtimeUserId";
|
|
1413
|
-
const _sI = "sessionId";
|
|
1414
|
-
const _t = "traceparent";
|
|
1415
|
-
const _tI = "traceId";
|
|
1416
|
-
const _tP = "traceParent";
|
|
1417
|
-
const _tS = "traceState";
|
|
1418
|
-
const _tr = "tracestate";
|
|
1419
|
-
const _xabarsi = "x-amzn-bedrock-agentcore-runtime-session-id";
|
|
1420
|
-
const _xabarui = "x-amzn-bedrock-agentcore-runtime-user-id";
|
|
1421
|
-
const _xacisi = "x-amzn-code-interpreter-session-id";
|
|
1422
|
-
const _xati = "x-amzn-trace-id";
|