@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.
Files changed (46) hide show
  1. package/dist-cjs/index.js +2696 -10
  2. package/package.json +7 -7
  3. package/dist-cjs/BedrockAgentCore.js +0 -63
  4. package/dist-cjs/BedrockAgentCoreClient.js +0 -54
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateEventCommand.js +0 -27
  7. package/dist-cjs/commands/DeleteEventCommand.js +0 -26
  8. package/dist-cjs/commands/DeleteMemoryRecordCommand.js +0 -26
  9. package/dist-cjs/commands/GetBrowserSessionCommand.js +0 -26
  10. package/dist-cjs/commands/GetCodeInterpreterSessionCommand.js +0 -26
  11. package/dist-cjs/commands/GetEventCommand.js +0 -27
  12. package/dist-cjs/commands/GetMemoryRecordCommand.js +0 -27
  13. package/dist-cjs/commands/GetResourceApiKeyCommand.js +0 -27
  14. package/dist-cjs/commands/GetResourceOauth2TokenCommand.js +0 -27
  15. package/dist-cjs/commands/GetWorkloadAccessTokenCommand.js +0 -27
  16. package/dist-cjs/commands/GetWorkloadAccessTokenForJWTCommand.js +0 -27
  17. package/dist-cjs/commands/GetWorkloadAccessTokenForUserIdCommand.js +0 -27
  18. package/dist-cjs/commands/InvokeAgentRuntimeCommand.js +0 -27
  19. package/dist-cjs/commands/InvokeCodeInterpreterCommand.js +0 -31
  20. package/dist-cjs/commands/ListActorsCommand.js +0 -26
  21. package/dist-cjs/commands/ListBrowserSessionsCommand.js +0 -26
  22. package/dist-cjs/commands/ListCodeInterpreterSessionsCommand.js +0 -26
  23. package/dist-cjs/commands/ListEventsCommand.js +0 -27
  24. package/dist-cjs/commands/ListMemoryRecordsCommand.js +0 -27
  25. package/dist-cjs/commands/ListSessionsCommand.js +0 -26
  26. package/dist-cjs/commands/RetrieveMemoryRecordsCommand.js +0 -27
  27. package/dist-cjs/commands/StartBrowserSessionCommand.js +0 -26
  28. package/dist-cjs/commands/StartCodeInterpreterSessionCommand.js +0 -26
  29. package/dist-cjs/commands/StopBrowserSessionCommand.js +0 -26
  30. package/dist-cjs/commands/StopCodeInterpreterSessionCommand.js +0 -26
  31. package/dist-cjs/commands/UpdateBrowserStreamCommand.js +0 -26
  32. package/dist-cjs/commands/index.js +0 -29
  33. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  34. package/dist-cjs/extensionConfiguration.js +0 -2
  35. package/dist-cjs/models/BedrockAgentCoreServiceException.js +0 -12
  36. package/dist-cjs/models/index.js +0 -4
  37. package/dist-cjs/models/models_0.js +0 -468
  38. package/dist-cjs/pagination/Interfaces.js +0 -2
  39. package/dist-cjs/pagination/ListActorsPaginator.js +0 -7
  40. package/dist-cjs/pagination/ListEventsPaginator.js +0 -7
  41. package/dist-cjs/pagination/ListMemoryRecordsPaginator.js +0 -7
  42. package/dist-cjs/pagination/ListSessionsPaginator.js +0 -7
  43. package/dist-cjs/pagination/RetrieveMemoryRecordsPaginator.js +0 -7
  44. package/dist-cjs/pagination/index.js +0 -9
  45. package/dist-cjs/protocols/Aws_restJson1.js +0 -1422
  46. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,2697 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BedrockAgentCoreServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./BedrockAgentCoreClient"), exports);
6
- tslib_1.__exportStar(require("./BedrockAgentCore"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var BedrockAgentCoreServiceException_1 = require("./models/BedrockAgentCoreServiceException");
11
- Object.defineProperty(exports, "BedrockAgentCoreServiceException", { enumerable: true, get: function () { return BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AutomationStreamStatus: () => AutomationStreamStatus,
26
+ BedrockAgentCore: () => BedrockAgentCore,
27
+ BedrockAgentCoreClient: () => BedrockAgentCoreClient,
28
+ BedrockAgentCoreServiceException: () => BedrockAgentCoreServiceException,
29
+ BrowserSessionStatus: () => BrowserSessionStatus,
30
+ CodeInterpreterSessionStatus: () => CodeInterpreterSessionStatus,
31
+ CodeInterpreterStreamOutput: () => CodeInterpreterStreamOutput,
32
+ CodeInterpreterStreamOutputFilterSensitiveLog: () => CodeInterpreterStreamOutputFilterSensitiveLog,
33
+ ConflictException: () => ConflictException,
34
+ Content: () => Content,
35
+ ContentBlockType: () => ContentBlockType,
36
+ ContentFilterSensitiveLog: () => ContentFilterSensitiveLog,
37
+ ConversationalFilterSensitiveLog: () => ConversationalFilterSensitiveLog,
38
+ CreateEventCommand: () => CreateEventCommand,
39
+ CreateEventInputFilterSensitiveLog: () => CreateEventInputFilterSensitiveLog,
40
+ CreateEventOutputFilterSensitiveLog: () => CreateEventOutputFilterSensitiveLog,
41
+ DeleteEventCommand: () => DeleteEventCommand,
42
+ DeleteMemoryRecordCommand: () => DeleteMemoryRecordCommand,
43
+ EventFilterSensitiveLog: () => EventFilterSensitiveLog,
44
+ GetBrowserSessionCommand: () => GetBrowserSessionCommand,
45
+ GetCodeInterpreterSessionCommand: () => GetCodeInterpreterSessionCommand,
46
+ GetEventCommand: () => GetEventCommand,
47
+ GetEventOutputFilterSensitiveLog: () => GetEventOutputFilterSensitiveLog,
48
+ GetMemoryRecordCommand: () => GetMemoryRecordCommand,
49
+ GetMemoryRecordOutputFilterSensitiveLog: () => GetMemoryRecordOutputFilterSensitiveLog,
50
+ GetResourceApiKeyCommand: () => GetResourceApiKeyCommand,
51
+ GetResourceApiKeyRequestFilterSensitiveLog: () => GetResourceApiKeyRequestFilterSensitiveLog,
52
+ GetResourceApiKeyResponseFilterSensitiveLog: () => GetResourceApiKeyResponseFilterSensitiveLog,
53
+ GetResourceOauth2TokenCommand: () => GetResourceOauth2TokenCommand,
54
+ GetResourceOauth2TokenRequestFilterSensitiveLog: () => GetResourceOauth2TokenRequestFilterSensitiveLog,
55
+ GetResourceOauth2TokenResponseFilterSensitiveLog: () => GetResourceOauth2TokenResponseFilterSensitiveLog,
56
+ GetWorkloadAccessTokenCommand: () => GetWorkloadAccessTokenCommand,
57
+ GetWorkloadAccessTokenForJWTCommand: () => GetWorkloadAccessTokenForJWTCommand,
58
+ GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog: () => GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog,
59
+ GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog: () => GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog,
60
+ GetWorkloadAccessTokenForUserIdCommand: () => GetWorkloadAccessTokenForUserIdCommand,
61
+ GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog: () => GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog,
62
+ GetWorkloadAccessTokenResponseFilterSensitiveLog: () => GetWorkloadAccessTokenResponseFilterSensitiveLog,
63
+ InputContentBlockFilterSensitiveLog: () => InputContentBlockFilterSensitiveLog,
64
+ InternalServerException: () => InternalServerException,
65
+ InvalidInputException: () => InvalidInputException,
66
+ InvokeAgentRuntimeCommand: () => InvokeAgentRuntimeCommand,
67
+ InvokeAgentRuntimeRequestFilterSensitiveLog: () => InvokeAgentRuntimeRequestFilterSensitiveLog,
68
+ InvokeAgentRuntimeResponseFilterSensitiveLog: () => InvokeAgentRuntimeResponseFilterSensitiveLog,
69
+ InvokeCodeInterpreterCommand: () => InvokeCodeInterpreterCommand,
70
+ InvokeCodeInterpreterRequestFilterSensitiveLog: () => InvokeCodeInterpreterRequestFilterSensitiveLog,
71
+ InvokeCodeInterpreterResponseFilterSensitiveLog: () => InvokeCodeInterpreterResponseFilterSensitiveLog,
72
+ ListActorsCommand: () => ListActorsCommand,
73
+ ListBrowserSessionsCommand: () => ListBrowserSessionsCommand,
74
+ ListCodeInterpreterSessionsCommand: () => ListCodeInterpreterSessionsCommand,
75
+ ListEventsCommand: () => ListEventsCommand,
76
+ ListEventsOutputFilterSensitiveLog: () => ListEventsOutputFilterSensitiveLog,
77
+ ListMemoryRecordsCommand: () => ListMemoryRecordsCommand,
78
+ ListMemoryRecordsOutputFilterSensitiveLog: () => ListMemoryRecordsOutputFilterSensitiveLog,
79
+ ListSessionsCommand: () => ListSessionsCommand,
80
+ MemoryContent: () => MemoryContent,
81
+ MemoryContentFilterSensitiveLog: () => MemoryContentFilterSensitiveLog,
82
+ MemoryRecordFilterSensitiveLog: () => MemoryRecordFilterSensitiveLog,
83
+ MemoryRecordSummaryFilterSensitiveLog: () => MemoryRecordSummaryFilterSensitiveLog,
84
+ Oauth2FlowType: () => Oauth2FlowType,
85
+ PayloadType: () => PayloadType,
86
+ PayloadTypeFilterSensitiveLog: () => PayloadTypeFilterSensitiveLog,
87
+ ProgrammingLanguage: () => ProgrammingLanguage,
88
+ ResourceContentType: () => ResourceContentType,
89
+ ResourceNotFoundException: () => ResourceNotFoundException,
90
+ RetrieveMemoryRecordsCommand: () => RetrieveMemoryRecordsCommand,
91
+ RetrieveMemoryRecordsInputFilterSensitiveLog: () => RetrieveMemoryRecordsInputFilterSensitiveLog,
92
+ RetrieveMemoryRecordsOutputFilterSensitiveLog: () => RetrieveMemoryRecordsOutputFilterSensitiveLog,
93
+ Role: () => Role,
94
+ RuntimeClientError: () => RuntimeClientError,
95
+ SearchCriteriaFilterSensitiveLog: () => SearchCriteriaFilterSensitiveLog,
96
+ ServiceException: () => ServiceException,
97
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
98
+ StartBrowserSessionCommand: () => StartBrowserSessionCommand,
99
+ StartCodeInterpreterSessionCommand: () => StartCodeInterpreterSessionCommand,
100
+ StopBrowserSessionCommand: () => StopBrowserSessionCommand,
101
+ StopCodeInterpreterSessionCommand: () => StopCodeInterpreterSessionCommand,
102
+ StreamUpdate: () => StreamUpdate,
103
+ TaskStatus: () => TaskStatus,
104
+ ThrottledException: () => ThrottledException,
105
+ ThrottlingException: () => ThrottlingException,
106
+ ToolArgumentsFilterSensitiveLog: () => ToolArgumentsFilterSensitiveLog,
107
+ ToolName: () => ToolName,
108
+ UnauthorizedException: () => UnauthorizedException,
109
+ UpdateBrowserStreamCommand: () => UpdateBrowserStreamCommand,
110
+ ValidationException: () => ValidationException,
111
+ ValidationExceptionReason: () => ValidationExceptionReason,
112
+ __Client: () => import_smithy_client.Client,
113
+ paginateListActors: () => paginateListActors,
114
+ paginateListEvents: () => paginateListEvents,
115
+ paginateListMemoryRecords: () => paginateListMemoryRecords,
116
+ paginateListSessions: () => paginateListSessions,
117
+ paginateRetrieveMemoryRecords: () => paginateRetrieveMemoryRecords
118
+ });
119
+ module.exports = __toCommonJS(index_exports);
120
+
121
+ // src/BedrockAgentCoreClient.ts
122
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
123
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
124
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
125
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
126
+ var import_config_resolver = require("@smithy/config-resolver");
127
+ var import_core = require("@smithy/core");
128
+ var import_eventstream_serde_config_resolver = require("@smithy/eventstream-serde-config-resolver");
129
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
130
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
131
+ var import_middleware_retry = require("@smithy/middleware-retry");
132
+
133
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
134
+
135
+ // src/endpoint/EndpointParameters.ts
136
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
137
+ return Object.assign(options, {
138
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
139
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
140
+ defaultSigningName: "bedrock-agentcore"
141
+ });
142
+ }, "resolveClientEndpointParameters");
143
+ var commonParams = {
144
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
145
+ Endpoint: { type: "builtInParams", name: "endpoint" },
146
+ Region: { type: "builtInParams", name: "region" },
147
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
148
+ };
149
+
150
+ // src/BedrockAgentCoreClient.ts
151
+ var import_runtimeConfig = require("././runtimeConfig");
152
+
153
+ // src/runtimeExtensions.ts
154
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
155
+ var import_protocol_http = require("@smithy/protocol-http");
156
+ var import_smithy_client = require("@smithy/smithy-client");
157
+
158
+ // src/auth/httpAuthExtensionConfiguration.ts
159
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
160
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
161
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
162
+ let _credentials = runtimeConfig.credentials;
163
+ return {
164
+ setHttpAuthScheme(httpAuthScheme) {
165
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
166
+ if (index === -1) {
167
+ _httpAuthSchemes.push(httpAuthScheme);
168
+ } else {
169
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
170
+ }
171
+ },
172
+ httpAuthSchemes() {
173
+ return _httpAuthSchemes;
174
+ },
175
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
176
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
177
+ },
178
+ httpAuthSchemeProvider() {
179
+ return _httpAuthSchemeProvider;
180
+ },
181
+ setCredentials(credentials) {
182
+ _credentials = credentials;
183
+ },
184
+ credentials() {
185
+ return _credentials;
186
+ }
187
+ };
188
+ }, "getHttpAuthExtensionConfiguration");
189
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
190
+ return {
191
+ httpAuthSchemes: config.httpAuthSchemes(),
192
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
193
+ credentials: config.credentials()
194
+ };
195
+ }, "resolveHttpAuthRuntimeConfig");
196
+
197
+ // src/runtimeExtensions.ts
198
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
199
+ const extensionConfiguration = Object.assign(
200
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
201
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
202
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
203
+ getHttpAuthExtensionConfiguration(runtimeConfig)
204
+ );
205
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
206
+ return Object.assign(
207
+ runtimeConfig,
208
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
209
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
210
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
211
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
212
+ );
213
+ }, "resolveRuntimeExtensions");
214
+
215
+ // src/BedrockAgentCoreClient.ts
216
+ var BedrockAgentCoreClient = class extends import_smithy_client.Client {
217
+ static {
218
+ __name(this, "BedrockAgentCoreClient");
219
+ }
220
+ /**
221
+ * The resolved configuration of BedrockAgentCoreClient class. This is resolved and normalized from the {@link BedrockAgentCoreClientConfig | constructor configuration interface}.
222
+ */
223
+ config;
224
+ constructor(...[configuration]) {
225
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
226
+ super(_config_0);
227
+ this.initConfig = _config_0;
228
+ const _config_1 = resolveClientEndpointParameters(_config_0);
229
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
230
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
231
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
232
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
233
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
234
+ const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
235
+ const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
236
+ const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
237
+ this.config = _config_9;
238
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
239
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
240
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
241
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
242
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
243
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
244
+ this.middlewareStack.use(
245
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
246
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBedrockAgentCoreHttpAuthSchemeParametersProvider,
247
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
248
+ "aws.auth#sigv4": config.credentials
249
+ }), "identityProviderConfigProvider")
250
+ })
251
+ );
252
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
253
+ }
254
+ /**
255
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
256
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
257
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
258
+ */
259
+ destroy() {
260
+ super.destroy();
261
+ }
262
+ };
263
+
264
+ // src/BedrockAgentCore.ts
265
+
266
+
267
+ // src/commands/CreateEventCommand.ts
268
+
269
+ var import_middleware_serde = require("@smithy/middleware-serde");
270
+
271
+
272
+ // src/models/models_0.ts
273
+
274
+
275
+ // src/models/BedrockAgentCoreServiceException.ts
276
+
277
+ var BedrockAgentCoreServiceException = class _BedrockAgentCoreServiceException extends import_smithy_client.ServiceException {
278
+ static {
279
+ __name(this, "BedrockAgentCoreServiceException");
280
+ }
281
+ /**
282
+ * @internal
283
+ */
284
+ constructor(options) {
285
+ super(options);
286
+ Object.setPrototypeOf(this, _BedrockAgentCoreServiceException.prototype);
287
+ }
288
+ };
289
+
290
+ // src/models/models_0.ts
291
+ var AccessDeniedException = class _AccessDeniedException extends BedrockAgentCoreServiceException {
292
+ static {
293
+ __name(this, "AccessDeniedException");
294
+ }
295
+ name = "AccessDeniedException";
296
+ $fault = "client";
297
+ /**
298
+ * @internal
299
+ */
300
+ constructor(opts) {
301
+ super({
302
+ name: "AccessDeniedException",
303
+ $fault: "client",
304
+ ...opts
305
+ });
306
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
307
+ }
308
+ };
309
+ var InternalServerException = class _InternalServerException extends BedrockAgentCoreServiceException {
310
+ static {
311
+ __name(this, "InternalServerException");
312
+ }
313
+ name = "InternalServerException";
314
+ $fault = "server";
315
+ /**
316
+ * @internal
317
+ */
318
+ constructor(opts) {
319
+ super({
320
+ name: "InternalServerException",
321
+ $fault: "server",
322
+ ...opts
323
+ });
324
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
325
+ }
326
+ };
327
+ var ResourceNotFoundException = class _ResourceNotFoundException extends BedrockAgentCoreServiceException {
328
+ static {
329
+ __name(this, "ResourceNotFoundException");
330
+ }
331
+ name = "ResourceNotFoundException";
332
+ $fault = "client";
333
+ /**
334
+ * @internal
335
+ */
336
+ constructor(opts) {
337
+ super({
338
+ name: "ResourceNotFoundException",
339
+ $fault: "client",
340
+ ...opts
341
+ });
342
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
343
+ }
344
+ };
345
+ var RuntimeClientError = class _RuntimeClientError extends BedrockAgentCoreServiceException {
346
+ static {
347
+ __name(this, "RuntimeClientError");
348
+ }
349
+ name = "RuntimeClientError";
350
+ $fault = "client";
351
+ /**
352
+ * @internal
353
+ */
354
+ constructor(opts) {
355
+ super({
356
+ name: "RuntimeClientError",
357
+ $fault: "client",
358
+ ...opts
359
+ });
360
+ Object.setPrototypeOf(this, _RuntimeClientError.prototype);
361
+ }
362
+ };
363
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockAgentCoreServiceException {
364
+ static {
365
+ __name(this, "ServiceQuotaExceededException");
366
+ }
367
+ name = "ServiceQuotaExceededException";
368
+ $fault = "client";
369
+ /**
370
+ * @internal
371
+ */
372
+ constructor(opts) {
373
+ super({
374
+ name: "ServiceQuotaExceededException",
375
+ $fault: "client",
376
+ ...opts
377
+ });
378
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
379
+ }
380
+ };
381
+ var ThrottlingException = class _ThrottlingException extends BedrockAgentCoreServiceException {
382
+ static {
383
+ __name(this, "ThrottlingException");
384
+ }
385
+ name = "ThrottlingException";
386
+ $fault = "client";
387
+ /**
388
+ * @internal
389
+ */
390
+ constructor(opts) {
391
+ super({
392
+ name: "ThrottlingException",
393
+ $fault: "client",
394
+ ...opts
395
+ });
396
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
397
+ }
398
+ };
399
+ var ValidationExceptionReason = {
400
+ CANNOT_PARSE: "CannotParse",
401
+ FIELD_VALIDATION_FAILED: "FieldValidationFailed",
402
+ IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
403
+ RESOURCE_CONFLICT: "ResourceConflict",
404
+ ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession"
405
+ };
406
+ var ValidationException = class _ValidationException extends BedrockAgentCoreServiceException {
407
+ static {
408
+ __name(this, "ValidationException");
409
+ }
410
+ name = "ValidationException";
411
+ $fault = "client";
412
+ reason;
413
+ fieldList;
414
+ /**
415
+ * @internal
416
+ */
417
+ constructor(opts) {
418
+ super({
419
+ name: "ValidationException",
420
+ $fault: "client",
421
+ ...opts
422
+ });
423
+ Object.setPrototypeOf(this, _ValidationException.prototype);
424
+ this.reason = opts.reason;
425
+ this.fieldList = opts.fieldList;
426
+ }
427
+ };
428
+ var BrowserSessionStatus = {
429
+ READY: "READY",
430
+ TERMINATED: "TERMINATED"
431
+ };
432
+ var AutomationStreamStatus = {
433
+ DISABLED: "DISABLED",
434
+ ENABLED: "ENABLED"
435
+ };
436
+ var ConflictException = class _ConflictException extends BedrockAgentCoreServiceException {
437
+ static {
438
+ __name(this, "ConflictException");
439
+ }
440
+ name = "ConflictException";
441
+ $fault = "client";
442
+ /**
443
+ * @internal
444
+ */
445
+ constructor(opts) {
446
+ super({
447
+ name: "ConflictException",
448
+ $fault: "client",
449
+ ...opts
450
+ });
451
+ Object.setPrototypeOf(this, _ConflictException.prototype);
452
+ }
453
+ };
454
+ var StreamUpdate;
455
+ ((StreamUpdate3) => {
456
+ StreamUpdate3.visit = /* @__PURE__ */ __name((value, visitor) => {
457
+ if (value.automationStreamUpdate !== void 0) return visitor.automationStreamUpdate(value.automationStreamUpdate);
458
+ return visitor._(value.$unknown[0], value.$unknown[1]);
459
+ }, "visit");
460
+ })(StreamUpdate || (StreamUpdate = {}));
461
+ var CodeInterpreterSessionStatus = {
462
+ READY: "READY",
463
+ TERMINATED: "TERMINATED"
464
+ };
465
+ var UnauthorizedException = class _UnauthorizedException extends BedrockAgentCoreServiceException {
466
+ static {
467
+ __name(this, "UnauthorizedException");
468
+ }
469
+ name = "UnauthorizedException";
470
+ $fault = "client";
471
+ /**
472
+ * @internal
473
+ */
474
+ constructor(opts) {
475
+ super({
476
+ name: "UnauthorizedException",
477
+ $fault: "client",
478
+ ...opts
479
+ });
480
+ Object.setPrototypeOf(this, _UnauthorizedException.prototype);
481
+ }
482
+ };
483
+ var Oauth2FlowType = {
484
+ M2M: "M2M",
485
+ USER_FEDERATION: "USER_FEDERATION"
486
+ };
487
+ var ProgrammingLanguage = {
488
+ JAVASCRIPT: "javascript",
489
+ PYTHON: "python",
490
+ TYPESCRIPT: "typescript"
491
+ };
492
+ var ToolName = {
493
+ EXECUTE_CODE: "executeCode",
494
+ EXECUTE_COMMAND: "executeCommand",
495
+ GET_TASK: "getTask",
496
+ LIST_FILES: "listFiles",
497
+ READ_FILES: "readFiles",
498
+ REMOVE_FILES: "removeFiles",
499
+ START_COMMAND_EXECUTION: "startCommandExecution",
500
+ STOP_TASK: "stopTask",
501
+ WRITE_FILES: "writeFiles"
502
+ };
503
+ var ResourceContentType = {
504
+ BLOB: "blob",
505
+ TEXT: "text"
506
+ };
507
+ var ContentBlockType = {
508
+ EMBEDDED_RESOURCE: "resource",
509
+ IMAGE: "image",
510
+ RESOURCE_LINK: "resource_link",
511
+ TEXT: "text"
512
+ };
513
+ var TaskStatus = {
514
+ CANCELED: "canceled",
515
+ COMPLETED: "completed",
516
+ FAILED: "failed",
517
+ SUBMITTED: "submitted",
518
+ WORKING: "working"
519
+ };
520
+ var CodeInterpreterStreamOutput;
521
+ ((CodeInterpreterStreamOutput3) => {
522
+ CodeInterpreterStreamOutput3.visit = /* @__PURE__ */ __name((value, visitor) => {
523
+ if (value.result !== void 0) return visitor.result(value.result);
524
+ if (value.accessDeniedException !== void 0) return visitor.accessDeniedException(value.accessDeniedException);
525
+ if (value.conflictException !== void 0) return visitor.conflictException(value.conflictException);
526
+ if (value.internalServerException !== void 0)
527
+ return visitor.internalServerException(value.internalServerException);
528
+ if (value.resourceNotFoundException !== void 0)
529
+ return visitor.resourceNotFoundException(value.resourceNotFoundException);
530
+ if (value.serviceQuotaExceededException !== void 0)
531
+ return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
532
+ if (value.throttlingException !== void 0) return visitor.throttlingException(value.throttlingException);
533
+ if (value.validationException !== void 0) return visitor.validationException(value.validationException);
534
+ return visitor._(value.$unknown[0], value.$unknown[1]);
535
+ }, "visit");
536
+ })(CodeInterpreterStreamOutput || (CodeInterpreterStreamOutput = {}));
537
+ var Content;
538
+ ((Content3) => {
539
+ Content3.visit = /* @__PURE__ */ __name((value, visitor) => {
540
+ if (value.text !== void 0) return visitor.text(value.text);
541
+ return visitor._(value.$unknown[0], value.$unknown[1]);
542
+ }, "visit");
543
+ })(Content || (Content = {}));
544
+ var Role = {
545
+ ASSISTANT: "ASSISTANT",
546
+ OTHER: "OTHER",
547
+ TOOL: "TOOL",
548
+ USER: "USER"
549
+ };
550
+ var PayloadType;
551
+ ((PayloadType2) => {
552
+ PayloadType2.visit = /* @__PURE__ */ __name((value, visitor) => {
553
+ if (value.conversational !== void 0) return visitor.conversational(value.conversational);
554
+ if (value.blob !== void 0) return visitor.blob(value.blob);
555
+ return visitor._(value.$unknown[0], value.$unknown[1]);
556
+ }, "visit");
557
+ })(PayloadType || (PayloadType = {}));
558
+ var InvalidInputException = class _InvalidInputException extends BedrockAgentCoreServiceException {
559
+ static {
560
+ __name(this, "InvalidInputException");
561
+ }
562
+ name = "InvalidInputException";
563
+ $fault = "client";
564
+ /**
565
+ * @internal
566
+ */
567
+ constructor(opts) {
568
+ super({
569
+ name: "InvalidInputException",
570
+ $fault: "client",
571
+ ...opts
572
+ });
573
+ Object.setPrototypeOf(this, _InvalidInputException.prototype);
574
+ }
575
+ };
576
+ var ServiceException = class _ServiceException extends BedrockAgentCoreServiceException {
577
+ static {
578
+ __name(this, "ServiceException");
579
+ }
580
+ name = "ServiceException";
581
+ $fault = "server";
582
+ /**
583
+ * @internal
584
+ */
585
+ constructor(opts) {
586
+ super({
587
+ name: "ServiceException",
588
+ $fault: "server",
589
+ ...opts
590
+ });
591
+ Object.setPrototypeOf(this, _ServiceException.prototype);
592
+ }
593
+ };
594
+ var ThrottledException = class _ThrottledException extends BedrockAgentCoreServiceException {
595
+ static {
596
+ __name(this, "ThrottledException");
597
+ }
598
+ name = "ThrottledException";
599
+ $fault = "client";
600
+ /**
601
+ * @internal
602
+ */
603
+ constructor(opts) {
604
+ super({
605
+ name: "ThrottledException",
606
+ $fault: "client",
607
+ ...opts
608
+ });
609
+ Object.setPrototypeOf(this, _ThrottledException.prototype);
610
+ }
611
+ };
612
+ var MemoryContent;
613
+ ((MemoryContent2) => {
614
+ MemoryContent2.visit = /* @__PURE__ */ __name((value, visitor) => {
615
+ if (value.text !== void 0) return visitor.text(value.text);
616
+ return visitor._(value.$unknown[0], value.$unknown[1]);
617
+ }, "visit");
618
+ })(MemoryContent || (MemoryContent = {}));
619
+ var InvokeAgentRuntimeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
620
+ ...obj,
621
+ ...obj.payload && { payload: import_smithy_client.SENSITIVE_STRING }
622
+ }), "InvokeAgentRuntimeRequestFilterSensitiveLog");
623
+ var InvokeAgentRuntimeResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
624
+ ...obj,
625
+ ...obj.response && { response: import_smithy_client.SENSITIVE_STRING }
626
+ }), "InvokeAgentRuntimeResponseFilterSensitiveLog");
627
+ var GetResourceApiKeyRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
628
+ ...obj,
629
+ ...obj.workloadIdentityToken && { workloadIdentityToken: import_smithy_client.SENSITIVE_STRING }
630
+ }), "GetResourceApiKeyRequestFilterSensitiveLog");
631
+ var GetResourceApiKeyResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
632
+ ...obj,
633
+ ...obj.apiKey && { apiKey: import_smithy_client.SENSITIVE_STRING }
634
+ }), "GetResourceApiKeyResponseFilterSensitiveLog");
635
+ var GetResourceOauth2TokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
636
+ ...obj,
637
+ ...obj.workloadIdentityToken && { workloadIdentityToken: import_smithy_client.SENSITIVE_STRING },
638
+ ...obj.customParameters && { customParameters: import_smithy_client.SENSITIVE_STRING }
639
+ }), "GetResourceOauth2TokenRequestFilterSensitiveLog");
640
+ var GetResourceOauth2TokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
641
+ ...obj,
642
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
643
+ }), "GetResourceOauth2TokenResponseFilterSensitiveLog");
644
+ var GetWorkloadAccessTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
645
+ ...obj,
646
+ ...obj.workloadAccessToken && { workloadAccessToken: import_smithy_client.SENSITIVE_STRING }
647
+ }), "GetWorkloadAccessTokenResponseFilterSensitiveLog");
648
+ var GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
649
+ ...obj,
650
+ ...obj.userToken && { userToken: import_smithy_client.SENSITIVE_STRING }
651
+ }), "GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog");
652
+ var GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
653
+ ...obj,
654
+ ...obj.workloadAccessToken && { workloadAccessToken: import_smithy_client.SENSITIVE_STRING }
655
+ }), "GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog");
656
+ var GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
657
+ ...obj,
658
+ ...obj.workloadAccessToken && { workloadAccessToken: import_smithy_client.SENSITIVE_STRING }
659
+ }), "GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog");
660
+ var InputContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
661
+ ...obj,
662
+ ...obj.blob && { blob: import_smithy_client.SENSITIVE_STRING }
663
+ }), "InputContentBlockFilterSensitiveLog");
664
+ var ToolArgumentsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
665
+ ...obj,
666
+ ...obj.content && { content: obj.content.map((item) => InputContentBlockFilterSensitiveLog(item)) }
667
+ }), "ToolArgumentsFilterSensitiveLog");
668
+ var InvokeCodeInterpreterRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
669
+ ...obj,
670
+ ...obj.arguments && { arguments: ToolArgumentsFilterSensitiveLog(obj.arguments) }
671
+ }), "InvokeCodeInterpreterRequestFilterSensitiveLog");
672
+ var CodeInterpreterStreamOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
673
+ if (obj.result !== void 0) return { result: obj.result };
674
+ if (obj.accessDeniedException !== void 0) return { accessDeniedException: obj.accessDeniedException };
675
+ if (obj.conflictException !== void 0) return { conflictException: obj.conflictException };
676
+ if (obj.internalServerException !== void 0) return { internalServerException: obj.internalServerException };
677
+ if (obj.resourceNotFoundException !== void 0) return { resourceNotFoundException: obj.resourceNotFoundException };
678
+ if (obj.serviceQuotaExceededException !== void 0)
679
+ return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
680
+ if (obj.throttlingException !== void 0) return { throttlingException: obj.throttlingException };
681
+ if (obj.validationException !== void 0) return { validationException: obj.validationException };
682
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
683
+ }, "CodeInterpreterStreamOutputFilterSensitiveLog");
684
+ var InvokeCodeInterpreterResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
685
+ ...obj,
686
+ ...obj.stream && { stream: "STREAMING_CONTENT" }
687
+ }), "InvokeCodeInterpreterResponseFilterSensitiveLog");
688
+ var ContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
689
+ if (obj.text !== void 0) return { text: import_smithy_client.SENSITIVE_STRING };
690
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
691
+ }, "ContentFilterSensitiveLog");
692
+ var ConversationalFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
693
+ ...obj,
694
+ ...obj.content && { content: ContentFilterSensitiveLog(obj.content) }
695
+ }), "ConversationalFilterSensitiveLog");
696
+ var PayloadTypeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
697
+ if (obj.conversational !== void 0) return { conversational: ConversationalFilterSensitiveLog(obj.conversational) };
698
+ if (obj.blob !== void 0) return { blob: obj.blob };
699
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
700
+ }, "PayloadTypeFilterSensitiveLog");
701
+ var CreateEventInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
702
+ ...obj,
703
+ ...obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }
704
+ }), "CreateEventInputFilterSensitiveLog");
705
+ var EventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
706
+ ...obj,
707
+ ...obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }
708
+ }), "EventFilterSensitiveLog");
709
+ var CreateEventOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
710
+ ...obj,
711
+ ...obj.event && { event: EventFilterSensitiveLog(obj.event) }
712
+ }), "CreateEventOutputFilterSensitiveLog");
713
+ var GetEventOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
714
+ ...obj,
715
+ ...obj.event && { event: EventFilterSensitiveLog(obj.event) }
716
+ }), "GetEventOutputFilterSensitiveLog");
717
+ var MemoryContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
718
+ if (obj.text !== void 0) return { text: import_smithy_client.SENSITIVE_STRING };
719
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
720
+ }, "MemoryContentFilterSensitiveLog");
721
+ var MemoryRecordFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
722
+ ...obj,
723
+ ...obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }
724
+ }), "MemoryRecordFilterSensitiveLog");
725
+ var GetMemoryRecordOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
726
+ ...obj,
727
+ ...obj.memoryRecord && { memoryRecord: MemoryRecordFilterSensitiveLog(obj.memoryRecord) }
728
+ }), "GetMemoryRecordOutputFilterSensitiveLog");
729
+ var ListEventsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
730
+ ...obj,
731
+ ...obj.events && { events: obj.events.map((item) => EventFilterSensitiveLog(item)) }
732
+ }), "ListEventsOutputFilterSensitiveLog");
733
+ var MemoryRecordSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
734
+ ...obj,
735
+ ...obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }
736
+ }), "MemoryRecordSummaryFilterSensitiveLog");
737
+ var ListMemoryRecordsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
738
+ ...obj,
739
+ ...obj.memoryRecordSummaries && {
740
+ memoryRecordSummaries: obj.memoryRecordSummaries.map((item) => MemoryRecordSummaryFilterSensitiveLog(item))
741
+ }
742
+ }), "ListMemoryRecordsOutputFilterSensitiveLog");
743
+ var SearchCriteriaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
744
+ ...obj,
745
+ ...obj.searchQuery && { searchQuery: import_smithy_client.SENSITIVE_STRING }
746
+ }), "SearchCriteriaFilterSensitiveLog");
747
+ var RetrieveMemoryRecordsInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
748
+ ...obj,
749
+ ...obj.searchCriteria && { searchCriteria: SearchCriteriaFilterSensitiveLog(obj.searchCriteria) }
750
+ }), "RetrieveMemoryRecordsInputFilterSensitiveLog");
751
+ var RetrieveMemoryRecordsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
752
+ ...obj,
753
+ ...obj.memoryRecordSummaries && {
754
+ memoryRecordSummaries: obj.memoryRecordSummaries.map((item) => MemoryRecordSummaryFilterSensitiveLog(item))
755
+ }
756
+ }), "RetrieveMemoryRecordsOutputFilterSensitiveLog");
757
+
758
+ // src/protocols/Aws_restJson1.ts
759
+ var import_core2 = require("@aws-sdk/core");
760
+
761
+
762
+ var import_uuid = require("uuid");
763
+ var se_CreateEventCommand = /* @__PURE__ */ __name(async (input, context) => {
764
+ const b = (0, import_core.requestBuilder)(input, context);
765
+ const headers = {
766
+ "content-type": "application/json"
767
+ };
768
+ b.bp("/memories/{memoryId}/events");
769
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
770
+ let body;
771
+ body = JSON.stringify(
772
+ (0, import_smithy_client.take)(input, {
773
+ actorId: [],
774
+ branch: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "branch"),
775
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
776
+ eventTimestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "eventTimestamp"),
777
+ payload: /* @__PURE__ */ __name((_) => se_PayloadTypeList(_, context), "payload"),
778
+ sessionId: []
779
+ })
780
+ );
781
+ b.m("POST").h(headers).b(body);
782
+ return b.build();
783
+ }, "se_CreateEventCommand");
784
+ var se_DeleteEventCommand = /* @__PURE__ */ __name(async (input, context) => {
785
+ const b = (0, import_core.requestBuilder)(input, context);
786
+ const headers = {};
787
+ b.bp("/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}/events/{eventId}");
788
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
789
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
790
+ b.p("eventId", () => input.eventId, "{eventId}", false);
791
+ b.p("actorId", () => input.actorId, "{actorId}", false);
792
+ let body;
793
+ b.m("DELETE").h(headers).b(body);
794
+ return b.build();
795
+ }, "se_DeleteEventCommand");
796
+ var se_DeleteMemoryRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
797
+ const b = (0, import_core.requestBuilder)(input, context);
798
+ const headers = {};
799
+ b.bp("/memories/{memoryId}/memoryRecords/{memoryRecordId}");
800
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
801
+ b.p("memoryRecordId", () => input.memoryRecordId, "{memoryRecordId}", false);
802
+ let body;
803
+ b.m("DELETE").h(headers).b(body);
804
+ return b.build();
805
+ }, "se_DeleteMemoryRecordCommand");
806
+ var se_GetBrowserSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
807
+ const b = (0, import_core.requestBuilder)(input, context);
808
+ const headers = {};
809
+ b.bp("/browsers/{browserIdentifier}/sessions/get");
810
+ b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
811
+ const query = (0, import_smithy_client.map)({
812
+ [_sI]: [, (0, import_smithy_client.expectNonNull)(input[_sI], `sessionId`)]
813
+ });
814
+ let body;
815
+ b.m("GET").h(headers).q(query).b(body);
816
+ return b.build();
817
+ }, "se_GetBrowserSessionCommand");
818
+ var se_GetCodeInterpreterSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
819
+ const b = (0, import_core.requestBuilder)(input, context);
820
+ const headers = {};
821
+ b.bp("/code-interpreters/{codeInterpreterIdentifier}/sessions/get");
822
+ b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
823
+ const query = (0, import_smithy_client.map)({
824
+ [_sI]: [, (0, import_smithy_client.expectNonNull)(input[_sI], `sessionId`)]
825
+ });
826
+ let body;
827
+ b.m("GET").h(headers).q(query).b(body);
828
+ return b.build();
829
+ }, "se_GetCodeInterpreterSessionCommand");
830
+ var se_GetEventCommand = /* @__PURE__ */ __name(async (input, context) => {
831
+ const b = (0, import_core.requestBuilder)(input, context);
832
+ const headers = {};
833
+ b.bp("/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}/events/{eventId}");
834
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
835
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
836
+ b.p("actorId", () => input.actorId, "{actorId}", false);
837
+ b.p("eventId", () => input.eventId, "{eventId}", false);
838
+ let body;
839
+ b.m("GET").h(headers).b(body);
840
+ return b.build();
841
+ }, "se_GetEventCommand");
842
+ var se_GetMemoryRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
843
+ const b = (0, import_core.requestBuilder)(input, context);
844
+ const headers = {};
845
+ b.bp("/memories/{memoryId}/memoryRecord/{memoryRecordId}");
846
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
847
+ b.p("memoryRecordId", () => input.memoryRecordId, "{memoryRecordId}", false);
848
+ let body;
849
+ b.m("GET").h(headers).b(body);
850
+ return b.build();
851
+ }, "se_GetMemoryRecordCommand");
852
+ var se_GetResourceApiKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
853
+ const b = (0, import_core.requestBuilder)(input, context);
854
+ const headers = {
855
+ "content-type": "application/json"
856
+ };
857
+ b.bp("/identities/api-key");
858
+ let body;
859
+ body = JSON.stringify(
860
+ (0, import_smithy_client.take)(input, {
861
+ resourceCredentialProviderName: [],
862
+ workloadIdentityToken: []
863
+ })
864
+ );
865
+ b.m("POST").h(headers).b(body);
866
+ return b.build();
867
+ }, "se_GetResourceApiKeyCommand");
868
+ var se_GetResourceOauth2TokenCommand = /* @__PURE__ */ __name(async (input, context) => {
869
+ const b = (0, import_core.requestBuilder)(input, context);
870
+ const headers = {
871
+ "content-type": "application/json"
872
+ };
873
+ b.bp("/identities/oauth2/token");
874
+ let body;
875
+ body = JSON.stringify(
876
+ (0, import_smithy_client.take)(input, {
877
+ customParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "customParameters"),
878
+ forceAuthentication: [],
879
+ oauth2Flow: [],
880
+ resourceCredentialProviderName: [],
881
+ resourceOauth2ReturnUrl: [],
882
+ scopes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "scopes"),
883
+ workloadIdentityToken: []
884
+ })
885
+ );
886
+ b.m("POST").h(headers).b(body);
887
+ return b.build();
888
+ }, "se_GetResourceOauth2TokenCommand");
889
+ var se_GetWorkloadAccessTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
890
+ const b = (0, import_core.requestBuilder)(input, context);
891
+ const headers = {
892
+ "content-type": "application/json"
893
+ };
894
+ b.bp("/identities/GetWorkloadAccessToken");
895
+ let body;
896
+ body = JSON.stringify(
897
+ (0, import_smithy_client.take)(input, {
898
+ workloadName: []
899
+ })
900
+ );
901
+ b.m("POST").h(headers).b(body);
902
+ return b.build();
903
+ }, "se_GetWorkloadAccessTokenCommand");
904
+ var se_GetWorkloadAccessTokenForJWTCommand = /* @__PURE__ */ __name(async (input, context) => {
905
+ const b = (0, import_core.requestBuilder)(input, context);
906
+ const headers = {
907
+ "content-type": "application/json"
908
+ };
909
+ b.bp("/identities/GetWorkloadAccessTokenForJWT");
910
+ let body;
911
+ body = JSON.stringify(
912
+ (0, import_smithy_client.take)(input, {
913
+ userToken: [],
914
+ workloadName: []
915
+ })
916
+ );
917
+ b.m("POST").h(headers).b(body);
918
+ return b.build();
919
+ }, "se_GetWorkloadAccessTokenForJWTCommand");
920
+ var se_GetWorkloadAccessTokenForUserIdCommand = /* @__PURE__ */ __name(async (input, context) => {
921
+ const b = (0, import_core.requestBuilder)(input, context);
922
+ const headers = {
923
+ "content-type": "application/json"
924
+ };
925
+ b.bp("/identities/GetWorkloadAccessTokenForUserId");
926
+ let body;
927
+ body = JSON.stringify(
928
+ (0, import_smithy_client.take)(input, {
929
+ userId: [],
930
+ workloadName: []
931
+ })
932
+ );
933
+ b.m("POST").h(headers).b(body);
934
+ return b.build();
935
+ }, "se_GetWorkloadAccessTokenForUserIdCommand");
936
+ var se_InvokeAgentRuntimeCommand = /* @__PURE__ */ __name(async (input, context) => {
937
+ const b = (0, import_core.requestBuilder)(input, context);
938
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
939
+ [_ct]: input[_cT] || "application/octet-stream",
940
+ [_a]: input[_a],
941
+ [_msi]: input[_mSI],
942
+ [_xabarsi]: input[_rSI] ?? (0, import_uuid.v4)(),
943
+ [_mpv]: input[_mPV],
944
+ [_xabarui]: input[_rUI],
945
+ [_xati]: input[_tI],
946
+ [_t]: input[_tP],
947
+ [_tr]: input[_tS],
948
+ [_b]: input[_b]
949
+ });
950
+ b.bp("/runtimes/{agentRuntimeArn}/invocations");
951
+ b.p("agentRuntimeArn", () => input.agentRuntimeArn, "{agentRuntimeArn}", false);
952
+ const query = (0, import_smithy_client.map)({
953
+ [_q]: [, input[_q]]
954
+ });
955
+ let body;
956
+ if (input.payload !== void 0) {
957
+ body = input.payload;
958
+ }
959
+ b.m("POST").h(headers).q(query).b(body);
960
+ return b.build();
961
+ }, "se_InvokeAgentRuntimeCommand");
962
+ var se_InvokeCodeInterpreterCommand = /* @__PURE__ */ __name(async (input, context) => {
963
+ const b = (0, import_core.requestBuilder)(input, context);
964
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
965
+ "content-type": "application/json",
966
+ [_xacisi]: input[_sI]
967
+ });
968
+ b.bp("/code-interpreters/{codeInterpreterIdentifier}/tools/invoke");
969
+ b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
970
+ let body;
971
+ body = JSON.stringify(
972
+ (0, import_smithy_client.take)(input, {
973
+ arguments: /* @__PURE__ */ __name((_) => se_ToolArguments(_, context), "arguments"),
974
+ name: []
975
+ })
976
+ );
977
+ b.m("POST").h(headers).b(body);
978
+ return b.build();
979
+ }, "se_InvokeCodeInterpreterCommand");
980
+ var se_ListActorsCommand = /* @__PURE__ */ __name(async (input, context) => {
981
+ const b = (0, import_core.requestBuilder)(input, context);
982
+ const headers = {
983
+ "content-type": "application/json"
984
+ };
985
+ b.bp("/memories/{memoryId}/actors");
986
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
987
+ let body;
988
+ body = JSON.stringify(
989
+ (0, import_smithy_client.take)(input, {
990
+ maxResults: [],
991
+ nextToken: []
992
+ })
993
+ );
994
+ b.m("POST").h(headers).b(body);
995
+ return b.build();
996
+ }, "se_ListActorsCommand");
997
+ var se_ListBrowserSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
998
+ const b = (0, import_core.requestBuilder)(input, context);
999
+ const headers = {
1000
+ "content-type": "application/json"
1001
+ };
1002
+ b.bp("/browsers/{browserIdentifier}/sessions/list");
1003
+ b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
1004
+ let body;
1005
+ body = JSON.stringify(
1006
+ (0, import_smithy_client.take)(input, {
1007
+ maxResults: [],
1008
+ nextToken: [],
1009
+ status: []
1010
+ })
1011
+ );
1012
+ b.m("POST").h(headers).b(body);
1013
+ return b.build();
1014
+ }, "se_ListBrowserSessionsCommand");
1015
+ var se_ListCodeInterpreterSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1016
+ const b = (0, import_core.requestBuilder)(input, context);
1017
+ const headers = {
1018
+ "content-type": "application/json"
1019
+ };
1020
+ b.bp("/code-interpreters/{codeInterpreterIdentifier}/sessions/list");
1021
+ b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
1022
+ let body;
1023
+ body = JSON.stringify(
1024
+ (0, import_smithy_client.take)(input, {
1025
+ maxResults: [],
1026
+ nextToken: [],
1027
+ status: []
1028
+ })
1029
+ );
1030
+ b.m("POST").h(headers).b(body);
1031
+ return b.build();
1032
+ }, "se_ListCodeInterpreterSessionsCommand");
1033
+ var se_ListEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
1034
+ const b = (0, import_core.requestBuilder)(input, context);
1035
+ const headers = {
1036
+ "content-type": "application/json"
1037
+ };
1038
+ b.bp("/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}");
1039
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
1040
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
1041
+ b.p("actorId", () => input.actorId, "{actorId}", false);
1042
+ let body;
1043
+ body = JSON.stringify(
1044
+ (0, import_smithy_client.take)(input, {
1045
+ filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filter"),
1046
+ includePayloads: [],
1047
+ maxResults: [],
1048
+ nextToken: []
1049
+ })
1050
+ );
1051
+ b.m("POST").h(headers).b(body);
1052
+ return b.build();
1053
+ }, "se_ListEventsCommand");
1054
+ var se_ListMemoryRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
1055
+ const b = (0, import_core.requestBuilder)(input, context);
1056
+ const headers = {
1057
+ "content-type": "application/json"
1058
+ };
1059
+ b.bp("/memories/{memoryId}/memoryRecords");
1060
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
1061
+ let body;
1062
+ body = JSON.stringify(
1063
+ (0, import_smithy_client.take)(input, {
1064
+ maxResults: [],
1065
+ memoryStrategyId: [],
1066
+ namespace: [],
1067
+ nextToken: []
1068
+ })
1069
+ );
1070
+ b.m("POST").h(headers).b(body);
1071
+ return b.build();
1072
+ }, "se_ListMemoryRecordsCommand");
1073
+ var se_ListSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1074
+ const b = (0, import_core.requestBuilder)(input, context);
1075
+ const headers = {
1076
+ "content-type": "application/json"
1077
+ };
1078
+ b.bp("/memories/{memoryId}/actor/{actorId}/sessions");
1079
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
1080
+ b.p("actorId", () => input.actorId, "{actorId}", false);
1081
+ let body;
1082
+ body = JSON.stringify(
1083
+ (0, import_smithy_client.take)(input, {
1084
+ maxResults: [],
1085
+ nextToken: []
1086
+ })
1087
+ );
1088
+ b.m("POST").h(headers).b(body);
1089
+ return b.build();
1090
+ }, "se_ListSessionsCommand");
1091
+ var se_RetrieveMemoryRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
1092
+ const b = (0, import_core.requestBuilder)(input, context);
1093
+ const headers = {
1094
+ "content-type": "application/json"
1095
+ };
1096
+ b.bp("/memories/{memoryId}/retrieve");
1097
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
1098
+ let body;
1099
+ body = JSON.stringify(
1100
+ (0, import_smithy_client.take)(input, {
1101
+ maxResults: [],
1102
+ namespace: [],
1103
+ nextToken: [],
1104
+ searchCriteria: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "searchCriteria")
1105
+ })
1106
+ );
1107
+ b.m("POST").h(headers).b(body);
1108
+ return b.build();
1109
+ }, "se_RetrieveMemoryRecordsCommand");
1110
+ var se_StartBrowserSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1111
+ const b = (0, import_core.requestBuilder)(input, context);
1112
+ const headers = {
1113
+ "content-type": "application/json"
1114
+ };
1115
+ b.bp("/browsers/{browserIdentifier}/sessions/start");
1116
+ b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
1117
+ let body;
1118
+ body = JSON.stringify(
1119
+ (0, import_smithy_client.take)(input, {
1120
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1121
+ name: [],
1122
+ sessionTimeoutSeconds: [],
1123
+ viewPort: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "viewPort")
1124
+ })
1125
+ );
1126
+ b.m("PUT").h(headers).b(body);
1127
+ return b.build();
1128
+ }, "se_StartBrowserSessionCommand");
1129
+ var se_StartCodeInterpreterSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1130
+ const b = (0, import_core.requestBuilder)(input, context);
1131
+ const headers = {
1132
+ "content-type": "application/json"
1133
+ };
1134
+ b.bp("/code-interpreters/{codeInterpreterIdentifier}/sessions/start");
1135
+ b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
1136
+ let body;
1137
+ body = JSON.stringify(
1138
+ (0, import_smithy_client.take)(input, {
1139
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1140
+ name: [],
1141
+ sessionTimeoutSeconds: []
1142
+ })
1143
+ );
1144
+ b.m("PUT").h(headers).b(body);
1145
+ return b.build();
1146
+ }, "se_StartCodeInterpreterSessionCommand");
1147
+ var se_StopBrowserSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1148
+ const b = (0, import_core.requestBuilder)(input, context);
1149
+ const headers = {
1150
+ "content-type": "application/json"
1151
+ };
1152
+ b.bp("/browsers/{browserIdentifier}/sessions/stop");
1153
+ b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
1154
+ const query = (0, import_smithy_client.map)({
1155
+ [_sI]: [, (0, import_smithy_client.expectNonNull)(input[_sI], `sessionId`)]
1156
+ });
1157
+ let body;
1158
+ body = JSON.stringify(
1159
+ (0, import_smithy_client.take)(input, {
1160
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
1161
+ })
1162
+ );
1163
+ b.m("PUT").h(headers).q(query).b(body);
1164
+ return b.build();
1165
+ }, "se_StopBrowserSessionCommand");
1166
+ var se_StopCodeInterpreterSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1167
+ const b = (0, import_core.requestBuilder)(input, context);
1168
+ const headers = {
1169
+ "content-type": "application/json"
1170
+ };
1171
+ b.bp("/code-interpreters/{codeInterpreterIdentifier}/sessions/stop");
1172
+ b.p("codeInterpreterIdentifier", () => input.codeInterpreterIdentifier, "{codeInterpreterIdentifier}", false);
1173
+ const query = (0, import_smithy_client.map)({
1174
+ [_sI]: [, (0, import_smithy_client.expectNonNull)(input[_sI], `sessionId`)]
1175
+ });
1176
+ let body;
1177
+ body = JSON.stringify(
1178
+ (0, import_smithy_client.take)(input, {
1179
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
1180
+ })
1181
+ );
1182
+ b.m("PUT").h(headers).q(query).b(body);
1183
+ return b.build();
1184
+ }, "se_StopCodeInterpreterSessionCommand");
1185
+ var se_UpdateBrowserStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
1186
+ const b = (0, import_core.requestBuilder)(input, context);
1187
+ const headers = {
1188
+ "content-type": "application/json"
1189
+ };
1190
+ b.bp("/browsers/{browserIdentifier}/sessions/streams/update");
1191
+ b.p("browserIdentifier", () => input.browserIdentifier, "{browserIdentifier}", false);
1192
+ const query = (0, import_smithy_client.map)({
1193
+ [_sI]: [, (0, import_smithy_client.expectNonNull)(input[_sI], `sessionId`)]
1194
+ });
1195
+ let body;
1196
+ body = JSON.stringify(
1197
+ (0, import_smithy_client.take)(input, {
1198
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1199
+ streamUpdate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "streamUpdate")
1200
+ })
1201
+ );
1202
+ b.m("PUT").h(headers).q(query).b(body);
1203
+ return b.build();
1204
+ }, "se_UpdateBrowserStreamCommand");
1205
+ var de_CreateEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1206
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1207
+ return de_CommandError(output, context);
1208
+ }
1209
+ const contents = (0, import_smithy_client.map)({
1210
+ $metadata: deserializeMetadata(output)
1211
+ });
1212
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1213
+ const doc = (0, import_smithy_client.take)(data, {
1214
+ event: /* @__PURE__ */ __name((_) => de_Event(_, context), "event")
1215
+ });
1216
+ Object.assign(contents, doc);
1217
+ return contents;
1218
+ }, "de_CreateEventCommand");
1219
+ var de_DeleteEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1220
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1221
+ return de_CommandError(output, context);
1222
+ }
1223
+ const contents = (0, import_smithy_client.map)({
1224
+ $metadata: deserializeMetadata(output)
1225
+ });
1226
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1227
+ const doc = (0, import_smithy_client.take)(data, {
1228
+ eventId: import_smithy_client.expectString
1229
+ });
1230
+ Object.assign(contents, doc);
1231
+ return contents;
1232
+ }, "de_DeleteEventCommand");
1233
+ var de_DeleteMemoryRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
1234
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1235
+ return de_CommandError(output, context);
1236
+ }
1237
+ const contents = (0, import_smithy_client.map)({
1238
+ $metadata: deserializeMetadata(output)
1239
+ });
1240
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1241
+ const doc = (0, import_smithy_client.take)(data, {
1242
+ memoryRecordId: import_smithy_client.expectString
1243
+ });
1244
+ Object.assign(contents, doc);
1245
+ return contents;
1246
+ }, "de_DeleteMemoryRecordCommand");
1247
+ var de_GetBrowserSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1248
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1249
+ return de_CommandError(output, context);
1250
+ }
1251
+ const contents = (0, import_smithy_client.map)({
1252
+ $metadata: deserializeMetadata(output)
1253
+ });
1254
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1255
+ const doc = (0, import_smithy_client.take)(data, {
1256
+ browserIdentifier: import_smithy_client.expectString,
1257
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1258
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
1259
+ name: import_smithy_client.expectString,
1260
+ sessionId: import_smithy_client.expectString,
1261
+ sessionReplayArtifact: import_smithy_client.expectString,
1262
+ sessionTimeoutSeconds: import_smithy_client.expectInt32,
1263
+ status: import_smithy_client.expectString,
1264
+ streams: import_smithy_client._json,
1265
+ viewPort: import_smithy_client._json
1266
+ });
1267
+ Object.assign(contents, doc);
1268
+ return contents;
1269
+ }, "de_GetBrowserSessionCommand");
1270
+ var de_GetCodeInterpreterSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1271
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1272
+ return de_CommandError(output, context);
1273
+ }
1274
+ const contents = (0, import_smithy_client.map)({
1275
+ $metadata: deserializeMetadata(output)
1276
+ });
1277
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1278
+ const doc = (0, import_smithy_client.take)(data, {
1279
+ codeInterpreterIdentifier: import_smithy_client.expectString,
1280
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1281
+ name: import_smithy_client.expectString,
1282
+ sessionId: import_smithy_client.expectString,
1283
+ sessionTimeoutSeconds: import_smithy_client.expectInt32,
1284
+ status: import_smithy_client.expectString
1285
+ });
1286
+ Object.assign(contents, doc);
1287
+ return contents;
1288
+ }, "de_GetCodeInterpreterSessionCommand");
1289
+ var de_GetEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1290
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1291
+ return de_CommandError(output, context);
1292
+ }
1293
+ const contents = (0, import_smithy_client.map)({
1294
+ $metadata: deserializeMetadata(output)
1295
+ });
1296
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1297
+ const doc = (0, import_smithy_client.take)(data, {
1298
+ event: /* @__PURE__ */ __name((_) => de_Event(_, context), "event")
1299
+ });
1300
+ Object.assign(contents, doc);
1301
+ return contents;
1302
+ }, "de_GetEventCommand");
1303
+ var de_GetMemoryRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
1304
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1305
+ return de_CommandError(output, context);
1306
+ }
1307
+ const contents = (0, import_smithy_client.map)({
1308
+ $metadata: deserializeMetadata(output)
1309
+ });
1310
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1311
+ const doc = (0, import_smithy_client.take)(data, {
1312
+ memoryRecord: /* @__PURE__ */ __name((_) => de_MemoryRecord(_, context), "memoryRecord")
1313
+ });
1314
+ Object.assign(contents, doc);
1315
+ return contents;
1316
+ }, "de_GetMemoryRecordCommand");
1317
+ var de_GetResourceApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
1318
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1319
+ return de_CommandError(output, context);
1320
+ }
1321
+ const contents = (0, import_smithy_client.map)({
1322
+ $metadata: deserializeMetadata(output)
1323
+ });
1324
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1325
+ const doc = (0, import_smithy_client.take)(data, {
1326
+ apiKey: import_smithy_client.expectString
1327
+ });
1328
+ Object.assign(contents, doc);
1329
+ return contents;
1330
+ }, "de_GetResourceApiKeyCommand");
1331
+ var de_GetResourceOauth2TokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1332
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1333
+ return de_CommandError(output, context);
1334
+ }
1335
+ const contents = (0, import_smithy_client.map)({
1336
+ $metadata: deserializeMetadata(output)
1337
+ });
1338
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1339
+ const doc = (0, import_smithy_client.take)(data, {
1340
+ accessToken: import_smithy_client.expectString,
1341
+ authorizationUrl: import_smithy_client.expectString
1342
+ });
1343
+ Object.assign(contents, doc);
1344
+ return contents;
1345
+ }, "de_GetResourceOauth2TokenCommand");
1346
+ var de_GetWorkloadAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1347
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1348
+ return de_CommandError(output, context);
1349
+ }
1350
+ const contents = (0, import_smithy_client.map)({
1351
+ $metadata: deserializeMetadata(output)
1352
+ });
1353
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1354
+ const doc = (0, import_smithy_client.take)(data, {
1355
+ workloadAccessToken: import_smithy_client.expectString
1356
+ });
1357
+ Object.assign(contents, doc);
1358
+ return contents;
1359
+ }, "de_GetWorkloadAccessTokenCommand");
1360
+ var de_GetWorkloadAccessTokenForJWTCommand = /* @__PURE__ */ __name(async (output, context) => {
1361
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1362
+ return de_CommandError(output, context);
1363
+ }
1364
+ const contents = (0, import_smithy_client.map)({
1365
+ $metadata: deserializeMetadata(output)
1366
+ });
1367
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1368
+ const doc = (0, import_smithy_client.take)(data, {
1369
+ workloadAccessToken: import_smithy_client.expectString
1370
+ });
1371
+ Object.assign(contents, doc);
1372
+ return contents;
1373
+ }, "de_GetWorkloadAccessTokenForJWTCommand");
1374
+ var de_GetWorkloadAccessTokenForUserIdCommand = /* @__PURE__ */ __name(async (output, context) => {
1375
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1376
+ return de_CommandError(output, context);
1377
+ }
1378
+ const contents = (0, import_smithy_client.map)({
1379
+ $metadata: deserializeMetadata(output)
1380
+ });
1381
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1382
+ const doc = (0, import_smithy_client.take)(data, {
1383
+ workloadAccessToken: import_smithy_client.expectString
1384
+ });
1385
+ Object.assign(contents, doc);
1386
+ return contents;
1387
+ }, "de_GetWorkloadAccessTokenForUserIdCommand");
1388
+ var de_InvokeAgentRuntimeCommand = /* @__PURE__ */ __name(async (output, context) => {
1389
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1390
+ return de_CommandError(output, context);
1391
+ }
1392
+ const contents = (0, import_smithy_client.map)({
1393
+ $metadata: deserializeMetadata(output),
1394
+ [_rSI]: [, output.headers[_xabarsi]],
1395
+ [_mSI]: [, output.headers[_msi]],
1396
+ [_mPV]: [, output.headers[_mpv]],
1397
+ [_tI]: [, output.headers[_xati]],
1398
+ [_tP]: [, output.headers[_t]],
1399
+ [_tS]: [, output.headers[_tr]],
1400
+ [_b]: [, output.headers[_b]],
1401
+ [_cT]: [, output.headers[_ct]]
1402
+ });
1403
+ const data = output.body;
1404
+ context.sdkStreamMixin(data);
1405
+ contents.response = data;
1406
+ (0, import_smithy_client.map)(contents, {
1407
+ statusCode: [, output.statusCode]
1408
+ });
1409
+ return contents;
1410
+ }, "de_InvokeAgentRuntimeCommand");
1411
+ var de_InvokeCodeInterpreterCommand = /* @__PURE__ */ __name(async (output, context) => {
1412
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1413
+ return de_CommandError(output, context);
1414
+ }
1415
+ const contents = (0, import_smithy_client.map)({
1416
+ $metadata: deserializeMetadata(output),
1417
+ [_sI]: [, output.headers[_xacisi]]
1418
+ });
1419
+ const data = output.body;
1420
+ contents.stream = de_CodeInterpreterStreamOutput(data, context);
1421
+ return contents;
1422
+ }, "de_InvokeCodeInterpreterCommand");
1423
+ var de_ListActorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1424
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1425
+ return de_CommandError(output, context);
1426
+ }
1427
+ const contents = (0, import_smithy_client.map)({
1428
+ $metadata: deserializeMetadata(output)
1429
+ });
1430
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1431
+ const doc = (0, import_smithy_client.take)(data, {
1432
+ actorSummaries: import_smithy_client._json,
1433
+ nextToken: import_smithy_client.expectString
1434
+ });
1435
+ Object.assign(contents, doc);
1436
+ return contents;
1437
+ }, "de_ListActorsCommand");
1438
+ var de_ListBrowserSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1439
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1440
+ return de_CommandError(output, context);
1441
+ }
1442
+ const contents = (0, import_smithy_client.map)({
1443
+ $metadata: deserializeMetadata(output)
1444
+ });
1445
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1446
+ const doc = (0, import_smithy_client.take)(data, {
1447
+ items: /* @__PURE__ */ __name((_) => de_BrowserSessionSummaries(_, context), "items"),
1448
+ nextToken: import_smithy_client.expectString
1449
+ });
1450
+ Object.assign(contents, doc);
1451
+ return contents;
1452
+ }, "de_ListBrowserSessionsCommand");
1453
+ var de_ListCodeInterpreterSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1454
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1455
+ return de_CommandError(output, context);
1456
+ }
1457
+ const contents = (0, import_smithy_client.map)({
1458
+ $metadata: deserializeMetadata(output)
1459
+ });
1460
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1461
+ const doc = (0, import_smithy_client.take)(data, {
1462
+ items: /* @__PURE__ */ __name((_) => de_CodeInterpreterSessionSummaries(_, context), "items"),
1463
+ nextToken: import_smithy_client.expectString
1464
+ });
1465
+ Object.assign(contents, doc);
1466
+ return contents;
1467
+ }, "de_ListCodeInterpreterSessionsCommand");
1468
+ var de_ListEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1469
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1470
+ return de_CommandError(output, context);
1471
+ }
1472
+ const contents = (0, import_smithy_client.map)({
1473
+ $metadata: deserializeMetadata(output)
1474
+ });
1475
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1476
+ const doc = (0, import_smithy_client.take)(data, {
1477
+ events: /* @__PURE__ */ __name((_) => de_EventList(_, context), "events"),
1478
+ nextToken: import_smithy_client.expectString
1479
+ });
1480
+ Object.assign(contents, doc);
1481
+ return contents;
1482
+ }, "de_ListEventsCommand");
1483
+ var de_ListMemoryRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
1484
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1485
+ return de_CommandError(output, context);
1486
+ }
1487
+ const contents = (0, import_smithy_client.map)({
1488
+ $metadata: deserializeMetadata(output)
1489
+ });
1490
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1491
+ const doc = (0, import_smithy_client.take)(data, {
1492
+ memoryRecordSummaries: /* @__PURE__ */ __name((_) => de_MemoryRecordSummaryList(_, context), "memoryRecordSummaries"),
1493
+ nextToken: import_smithy_client.expectString
1494
+ });
1495
+ Object.assign(contents, doc);
1496
+ return contents;
1497
+ }, "de_ListMemoryRecordsCommand");
1498
+ var de_ListSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1499
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1500
+ return de_CommandError(output, context);
1501
+ }
1502
+ const contents = (0, import_smithy_client.map)({
1503
+ $metadata: deserializeMetadata(output)
1504
+ });
1505
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1506
+ const doc = (0, import_smithy_client.take)(data, {
1507
+ nextToken: import_smithy_client.expectString,
1508
+ sessionSummaries: /* @__PURE__ */ __name((_) => de_SessionSummaryList(_, context), "sessionSummaries")
1509
+ });
1510
+ Object.assign(contents, doc);
1511
+ return contents;
1512
+ }, "de_ListSessionsCommand");
1513
+ var de_RetrieveMemoryRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
1514
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1515
+ return de_CommandError(output, context);
1516
+ }
1517
+ const contents = (0, import_smithy_client.map)({
1518
+ $metadata: deserializeMetadata(output)
1519
+ });
1520
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1521
+ const doc = (0, import_smithy_client.take)(data, {
1522
+ memoryRecordSummaries: /* @__PURE__ */ __name((_) => de_MemoryRecordSummaryList(_, context), "memoryRecordSummaries"),
1523
+ nextToken: import_smithy_client.expectString
1524
+ });
1525
+ Object.assign(contents, doc);
1526
+ return contents;
1527
+ }, "de_RetrieveMemoryRecordsCommand");
1528
+ var de_StartBrowserSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1529
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1530
+ return de_CommandError(output, context);
1531
+ }
1532
+ const contents = (0, import_smithy_client.map)({
1533
+ $metadata: deserializeMetadata(output)
1534
+ });
1535
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1536
+ const doc = (0, import_smithy_client.take)(data, {
1537
+ browserIdentifier: import_smithy_client.expectString,
1538
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1539
+ sessionId: import_smithy_client.expectString,
1540
+ streams: import_smithy_client._json
1541
+ });
1542
+ Object.assign(contents, doc);
1543
+ return contents;
1544
+ }, "de_StartBrowserSessionCommand");
1545
+ var de_StartCodeInterpreterSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1546
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1547
+ return de_CommandError(output, context);
1548
+ }
1549
+ const contents = (0, import_smithy_client.map)({
1550
+ $metadata: deserializeMetadata(output)
1551
+ });
1552
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1553
+ const doc = (0, import_smithy_client.take)(data, {
1554
+ codeInterpreterIdentifier: import_smithy_client.expectString,
1555
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1556
+ sessionId: import_smithy_client.expectString
1557
+ });
1558
+ Object.assign(contents, doc);
1559
+ return contents;
1560
+ }, "de_StartCodeInterpreterSessionCommand");
1561
+ var de_StopBrowserSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1562
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1563
+ return de_CommandError(output, context);
1564
+ }
1565
+ const contents = (0, import_smithy_client.map)({
1566
+ $metadata: deserializeMetadata(output)
1567
+ });
1568
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1569
+ const doc = (0, import_smithy_client.take)(data, {
1570
+ browserIdentifier: import_smithy_client.expectString,
1571
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
1572
+ sessionId: import_smithy_client.expectString
1573
+ });
1574
+ Object.assign(contents, doc);
1575
+ return contents;
1576
+ }, "de_StopBrowserSessionCommand");
1577
+ var de_StopCodeInterpreterSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1578
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1579
+ return de_CommandError(output, context);
1580
+ }
1581
+ const contents = (0, import_smithy_client.map)({
1582
+ $metadata: deserializeMetadata(output)
1583
+ });
1584
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1585
+ const doc = (0, import_smithy_client.take)(data, {
1586
+ codeInterpreterIdentifier: import_smithy_client.expectString,
1587
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
1588
+ sessionId: import_smithy_client.expectString
1589
+ });
1590
+ Object.assign(contents, doc);
1591
+ return contents;
1592
+ }, "de_StopCodeInterpreterSessionCommand");
1593
+ var de_UpdateBrowserStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
1594
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1595
+ return de_CommandError(output, context);
1596
+ }
1597
+ const contents = (0, import_smithy_client.map)({
1598
+ $metadata: deserializeMetadata(output)
1599
+ });
1600
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1601
+ const doc = (0, import_smithy_client.take)(data, {
1602
+ browserIdentifier: import_smithy_client.expectString,
1603
+ sessionId: import_smithy_client.expectString,
1604
+ streams: import_smithy_client._json,
1605
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")
1606
+ });
1607
+ Object.assign(contents, doc);
1608
+ return contents;
1609
+ }, "de_UpdateBrowserStreamCommand");
1610
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1611
+ const parsedOutput = {
1612
+ ...output,
1613
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1614
+ };
1615
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1616
+ switch (errorCode) {
1617
+ case "AccessDeniedException":
1618
+ case "com.amazonaws.bedrockagentcore#AccessDeniedException":
1619
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1620
+ case "InvalidInputException":
1621
+ case "com.amazonaws.bedrockagentcore#InvalidInputException":
1622
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1623
+ case "ResourceNotFoundException":
1624
+ case "com.amazonaws.bedrockagentcore#ResourceNotFoundException":
1625
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1626
+ case "ServiceException":
1627
+ case "com.amazonaws.bedrockagentcore#ServiceException":
1628
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1629
+ case "ServiceQuotaExceededException":
1630
+ case "com.amazonaws.bedrockagentcore#ServiceQuotaExceededException":
1631
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1632
+ case "ThrottledException":
1633
+ case "com.amazonaws.bedrockagentcore#ThrottledException":
1634
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1635
+ case "ValidationException":
1636
+ case "com.amazonaws.bedrockagentcore#ValidationException":
1637
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1638
+ case "InternalServerException":
1639
+ case "com.amazonaws.bedrockagentcore#InternalServerException":
1640
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1641
+ case "ThrottlingException":
1642
+ case "com.amazonaws.bedrockagentcore#ThrottlingException":
1643
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1644
+ case "UnauthorizedException":
1645
+ case "com.amazonaws.bedrockagentcore#UnauthorizedException":
1646
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1647
+ case "RuntimeClientError":
1648
+ case "com.amazonaws.bedrockagentcore#RuntimeClientError":
1649
+ throw await de_RuntimeClientErrorRes(parsedOutput, context);
1650
+ case "ConflictException":
1651
+ case "com.amazonaws.bedrockagentcore#ConflictException":
1652
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1653
+ default:
1654
+ const parsedBody = parsedOutput.body;
1655
+ return throwDefaultError({
1656
+ output,
1657
+ parsedBody,
1658
+ errorCode
1659
+ });
1660
+ }
1661
+ }, "de_CommandError");
1662
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(BedrockAgentCoreServiceException);
1663
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1664
+ const contents = (0, import_smithy_client.map)({});
1665
+ const data = parsedOutput.body;
1666
+ const doc = (0, import_smithy_client.take)(data, {
1667
+ message: import_smithy_client.expectString
1668
+ });
1669
+ Object.assign(contents, doc);
1670
+ const exception = new AccessDeniedException({
1671
+ $metadata: deserializeMetadata(parsedOutput),
1672
+ ...contents
1673
+ });
1674
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1675
+ }, "de_AccessDeniedExceptionRes");
1676
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1677
+ const contents = (0, import_smithy_client.map)({});
1678
+ const data = parsedOutput.body;
1679
+ const doc = (0, import_smithy_client.take)(data, {
1680
+ message: import_smithy_client.expectString
1681
+ });
1682
+ Object.assign(contents, doc);
1683
+ const exception = new ConflictException({
1684
+ $metadata: deserializeMetadata(parsedOutput),
1685
+ ...contents
1686
+ });
1687
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1688
+ }, "de_ConflictExceptionRes");
1689
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1690
+ const contents = (0, import_smithy_client.map)({});
1691
+ const data = parsedOutput.body;
1692
+ const doc = (0, import_smithy_client.take)(data, {
1693
+ message: import_smithy_client.expectString
1694
+ });
1695
+ Object.assign(contents, doc);
1696
+ const exception = new InternalServerException({
1697
+ $metadata: deserializeMetadata(parsedOutput),
1698
+ ...contents
1699
+ });
1700
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1701
+ }, "de_InternalServerExceptionRes");
1702
+ var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1703
+ const contents = (0, import_smithy_client.map)({});
1704
+ const data = parsedOutput.body;
1705
+ const doc = (0, import_smithy_client.take)(data, {
1706
+ message: import_smithy_client.expectString
1707
+ });
1708
+ Object.assign(contents, doc);
1709
+ const exception = new InvalidInputException({
1710
+ $metadata: deserializeMetadata(parsedOutput),
1711
+ ...contents
1712
+ });
1713
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1714
+ }, "de_InvalidInputExceptionRes");
1715
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1716
+ const contents = (0, import_smithy_client.map)({});
1717
+ const data = parsedOutput.body;
1718
+ const doc = (0, import_smithy_client.take)(data, {
1719
+ message: import_smithy_client.expectString
1720
+ });
1721
+ Object.assign(contents, doc);
1722
+ const exception = new ResourceNotFoundException({
1723
+ $metadata: deserializeMetadata(parsedOutput),
1724
+ ...contents
1725
+ });
1726
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1727
+ }, "de_ResourceNotFoundExceptionRes");
1728
+ var de_RuntimeClientErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1729
+ const contents = (0, import_smithy_client.map)({});
1730
+ const data = parsedOutput.body;
1731
+ const doc = (0, import_smithy_client.take)(data, {
1732
+ message: import_smithy_client.expectString
1733
+ });
1734
+ Object.assign(contents, doc);
1735
+ const exception = new RuntimeClientError({
1736
+ $metadata: deserializeMetadata(parsedOutput),
1737
+ ...contents
1738
+ });
1739
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1740
+ }, "de_RuntimeClientErrorRes");
1741
+ var de_ServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1742
+ const contents = (0, import_smithy_client.map)({});
1743
+ const data = parsedOutput.body;
1744
+ const doc = (0, import_smithy_client.take)(data, {
1745
+ message: import_smithy_client.expectString
1746
+ });
1747
+ Object.assign(contents, doc);
1748
+ const exception = new ServiceException({
1749
+ $metadata: deserializeMetadata(parsedOutput),
1750
+ ...contents
1751
+ });
1752
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1753
+ }, "de_ServiceExceptionRes");
1754
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1755
+ const contents = (0, import_smithy_client.map)({});
1756
+ const data = parsedOutput.body;
1757
+ const doc = (0, import_smithy_client.take)(data, {
1758
+ message: import_smithy_client.expectString
1759
+ });
1760
+ Object.assign(contents, doc);
1761
+ const exception = new ServiceQuotaExceededException({
1762
+ $metadata: deserializeMetadata(parsedOutput),
1763
+ ...contents
1764
+ });
1765
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1766
+ }, "de_ServiceQuotaExceededExceptionRes");
1767
+ var de_ThrottledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1768
+ const contents = (0, import_smithy_client.map)({});
1769
+ const data = parsedOutput.body;
1770
+ const doc = (0, import_smithy_client.take)(data, {
1771
+ message: import_smithy_client.expectString
1772
+ });
1773
+ Object.assign(contents, doc);
1774
+ const exception = new ThrottledException({
1775
+ $metadata: deserializeMetadata(parsedOutput),
1776
+ ...contents
1777
+ });
1778
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1779
+ }, "de_ThrottledExceptionRes");
1780
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1781
+ const contents = (0, import_smithy_client.map)({});
1782
+ const data = parsedOutput.body;
1783
+ const doc = (0, import_smithy_client.take)(data, {
1784
+ message: import_smithy_client.expectString
1785
+ });
1786
+ Object.assign(contents, doc);
1787
+ const exception = new ThrottlingException({
1788
+ $metadata: deserializeMetadata(parsedOutput),
1789
+ ...contents
1790
+ });
1791
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1792
+ }, "de_ThrottlingExceptionRes");
1793
+ var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1794
+ const contents = (0, import_smithy_client.map)({});
1795
+ const data = parsedOutput.body;
1796
+ const doc = (0, import_smithy_client.take)(data, {
1797
+ message: import_smithy_client.expectString
1798
+ });
1799
+ Object.assign(contents, doc);
1800
+ const exception = new UnauthorizedException({
1801
+ $metadata: deserializeMetadata(parsedOutput),
1802
+ ...contents
1803
+ });
1804
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1805
+ }, "de_UnauthorizedExceptionRes");
1806
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1807
+ const contents = (0, import_smithy_client.map)({});
1808
+ const data = parsedOutput.body;
1809
+ const doc = (0, import_smithy_client.take)(data, {
1810
+ fieldList: import_smithy_client._json,
1811
+ message: import_smithy_client.expectString,
1812
+ reason: import_smithy_client.expectString
1813
+ });
1814
+ Object.assign(contents, doc);
1815
+ const exception = new ValidationException({
1816
+ $metadata: deserializeMetadata(parsedOutput),
1817
+ ...contents
1818
+ });
1819
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1820
+ }, "de_ValidationExceptionRes");
1821
+ var de_CodeInterpreterStreamOutput = /* @__PURE__ */ __name((output, context) => {
1822
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
1823
+ if (event["result"] != null) {
1824
+ return {
1825
+ result: await de_CodeInterpreterResult_event(event["result"], context)
1826
+ };
1827
+ }
1828
+ if (event["accessDeniedException"] != null) {
1829
+ return {
1830
+ accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context)
1831
+ };
1832
+ }
1833
+ if (event["conflictException"] != null) {
1834
+ return {
1835
+ conflictException: await de_ConflictException_event(event["conflictException"], context)
1836
+ };
1837
+ }
1838
+ if (event["internalServerException"] != null) {
1839
+ return {
1840
+ internalServerException: await de_InternalServerException_event(event["internalServerException"], context)
1841
+ };
1842
+ }
1843
+ if (event["resourceNotFoundException"] != null) {
1844
+ return {
1845
+ resourceNotFoundException: await de_ResourceNotFoundException_event(
1846
+ event["resourceNotFoundException"],
1847
+ context
1848
+ )
1849
+ };
1850
+ }
1851
+ if (event["serviceQuotaExceededException"] != null) {
1852
+ return {
1853
+ serviceQuotaExceededException: await de_ServiceQuotaExceededException_event(
1854
+ event["serviceQuotaExceededException"],
1855
+ context
1856
+ )
1857
+ };
1858
+ }
1859
+ if (event["throttlingException"] != null) {
1860
+ return {
1861
+ throttlingException: await de_ThrottlingException_event(event["throttlingException"], context)
1862
+ };
1863
+ }
1864
+ if (event["validationException"] != null) {
1865
+ return {
1866
+ validationException: await de_ValidationException_event(event["validationException"], context)
1867
+ };
1868
+ }
1869
+ return { $unknown: event };
1870
+ });
1871
+ }, "de_CodeInterpreterStreamOutput");
1872
+ var de_AccessDeniedException_event = /* @__PURE__ */ __name(async (output, context) => {
1873
+ const parsedOutput = {
1874
+ ...output,
1875
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
1876
+ };
1877
+ return de_AccessDeniedExceptionRes(parsedOutput, context);
1878
+ }, "de_AccessDeniedException_event");
1879
+ var de_CodeInterpreterResult_event = /* @__PURE__ */ __name(async (output, context) => {
1880
+ const contents = {};
1881
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1882
+ Object.assign(contents, de_CodeInterpreterResult(data, context));
1883
+ return contents;
1884
+ }, "de_CodeInterpreterResult_event");
1885
+ var de_ConflictException_event = /* @__PURE__ */ __name(async (output, context) => {
1886
+ const parsedOutput = {
1887
+ ...output,
1888
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
1889
+ };
1890
+ return de_ConflictExceptionRes(parsedOutput, context);
1891
+ }, "de_ConflictException_event");
1892
+ var de_InternalServerException_event = /* @__PURE__ */ __name(async (output, context) => {
1893
+ const parsedOutput = {
1894
+ ...output,
1895
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
1896
+ };
1897
+ return de_InternalServerExceptionRes(parsedOutput, context);
1898
+ }, "de_InternalServerException_event");
1899
+ var de_ResourceNotFoundException_event = /* @__PURE__ */ __name(async (output, context) => {
1900
+ const parsedOutput = {
1901
+ ...output,
1902
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
1903
+ };
1904
+ return de_ResourceNotFoundExceptionRes(parsedOutput, context);
1905
+ }, "de_ResourceNotFoundException_event");
1906
+ var de_ServiceQuotaExceededException_event = /* @__PURE__ */ __name(async (output, context) => {
1907
+ const parsedOutput = {
1908
+ ...output,
1909
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
1910
+ };
1911
+ return de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1912
+ }, "de_ServiceQuotaExceededException_event");
1913
+ var de_ThrottlingException_event = /* @__PURE__ */ __name(async (output, context) => {
1914
+ const parsedOutput = {
1915
+ ...output,
1916
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
1917
+ };
1918
+ return de_ThrottlingExceptionRes(parsedOutput, context);
1919
+ }, "de_ThrottlingException_event");
1920
+ var de_ValidationException_event = /* @__PURE__ */ __name(async (output, context) => {
1921
+ const parsedOutput = {
1922
+ ...output,
1923
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
1924
+ };
1925
+ return de_ValidationExceptionRes(parsedOutput, context);
1926
+ }, "de_ValidationException_event");
1927
+ var se_Document = /* @__PURE__ */ __name((input, context) => {
1928
+ return input;
1929
+ }, "se_Document");
1930
+ var se_InputContentBlock = /* @__PURE__ */ __name((input, context) => {
1931
+ return (0, import_smithy_client.take)(input, {
1932
+ blob: context.base64Encoder,
1933
+ path: [],
1934
+ text: []
1935
+ });
1936
+ }, "se_InputContentBlock");
1937
+ var se_InputContentBlockList = /* @__PURE__ */ __name((input, context) => {
1938
+ return input.filter((e) => e != null).map((entry) => {
1939
+ return se_InputContentBlock(entry, context);
1940
+ });
1941
+ }, "se_InputContentBlockList");
1942
+ var se_PayloadType = /* @__PURE__ */ __name((input, context) => {
1943
+ return PayloadType.visit(input, {
1944
+ blob: /* @__PURE__ */ __name((value) => ({ blob: se_Document(value, context) }), "blob"),
1945
+ conversational: /* @__PURE__ */ __name((value) => ({ conversational: (0, import_smithy_client._json)(value) }), "conversational"),
1946
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
1947
+ });
1948
+ }, "se_PayloadType");
1949
+ var se_PayloadTypeList = /* @__PURE__ */ __name((input, context) => {
1950
+ return input.filter((e) => e != null).map((entry) => {
1951
+ return se_PayloadType(entry, context);
1952
+ });
1953
+ }, "se_PayloadTypeList");
1954
+ var se_ToolArguments = /* @__PURE__ */ __name((input, context) => {
1955
+ return (0, import_smithy_client.take)(input, {
1956
+ clearContext: [],
1957
+ code: [],
1958
+ command: [],
1959
+ content: /* @__PURE__ */ __name((_) => se_InputContentBlockList(_, context), "content"),
1960
+ directoryPath: [],
1961
+ language: [],
1962
+ path: [],
1963
+ paths: import_smithy_client._json,
1964
+ taskId: []
1965
+ });
1966
+ }, "se_ToolArguments");
1967
+ var de_BrowserSessionSummaries = /* @__PURE__ */ __name((output, context) => {
1968
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1969
+ return de_BrowserSessionSummary(entry, context);
1970
+ });
1971
+ return retVal;
1972
+ }, "de_BrowserSessionSummaries");
1973
+ var de_BrowserSessionSummary = /* @__PURE__ */ __name((output, context) => {
1974
+ return (0, import_smithy_client.take)(output, {
1975
+ browserIdentifier: import_smithy_client.expectString,
1976
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1977
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
1978
+ name: import_smithy_client.expectString,
1979
+ sessionId: import_smithy_client.expectString,
1980
+ status: import_smithy_client.expectString
1981
+ });
1982
+ }, "de_BrowserSessionSummary");
1983
+ var de_CodeInterpreterResult = /* @__PURE__ */ __name((output, context) => {
1984
+ return (0, import_smithy_client.take)(output, {
1985
+ content: /* @__PURE__ */ __name((_) => de_ContentBlockList(_, context), "content"),
1986
+ isError: import_smithy_client.expectBoolean,
1987
+ structuredContent: /* @__PURE__ */ __name((_) => de_ToolResultStructuredContent(_, context), "structuredContent")
1988
+ });
1989
+ }, "de_CodeInterpreterResult");
1990
+ var de_CodeInterpreterSessionSummaries = /* @__PURE__ */ __name((output, context) => {
1991
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1992
+ return de_CodeInterpreterSessionSummary(entry, context);
1993
+ });
1994
+ return retVal;
1995
+ }, "de_CodeInterpreterSessionSummaries");
1996
+ var de_CodeInterpreterSessionSummary = /* @__PURE__ */ __name((output, context) => {
1997
+ return (0, import_smithy_client.take)(output, {
1998
+ codeInterpreterIdentifier: import_smithy_client.expectString,
1999
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
2000
+ lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
2001
+ name: import_smithy_client.expectString,
2002
+ sessionId: import_smithy_client.expectString,
2003
+ status: import_smithy_client.expectString
2004
+ });
2005
+ }, "de_CodeInterpreterSessionSummary");
2006
+ var de_ContentBlock = /* @__PURE__ */ __name((output, context) => {
2007
+ return (0, import_smithy_client.take)(output, {
2008
+ data: context.base64Decoder,
2009
+ description: import_smithy_client.expectString,
2010
+ mimeType: import_smithy_client.expectString,
2011
+ name: import_smithy_client.expectString,
2012
+ resource: /* @__PURE__ */ __name((_) => de_ResourceContent(_, context), "resource"),
2013
+ size: import_smithy_client.expectLong,
2014
+ text: import_smithy_client.expectString,
2015
+ type: import_smithy_client.expectString,
2016
+ uri: import_smithy_client.expectString
2017
+ });
2018
+ }, "de_ContentBlock");
2019
+ var de_ContentBlockList = /* @__PURE__ */ __name((output, context) => {
2020
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2021
+ return de_ContentBlock(entry, context);
2022
+ });
2023
+ return retVal;
2024
+ }, "de_ContentBlockList");
2025
+ var de_Document = /* @__PURE__ */ __name((output, context) => {
2026
+ return output;
2027
+ }, "de_Document");
2028
+ var de_Event = /* @__PURE__ */ __name((output, context) => {
2029
+ return (0, import_smithy_client.take)(output, {
2030
+ actorId: import_smithy_client.expectString,
2031
+ branch: import_smithy_client._json,
2032
+ eventId: import_smithy_client.expectString,
2033
+ eventTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "eventTimestamp"),
2034
+ memoryId: import_smithy_client.expectString,
2035
+ payload: /* @__PURE__ */ __name((_) => de_PayloadTypeList(_, context), "payload"),
2036
+ sessionId: import_smithy_client.expectString
2037
+ });
2038
+ }, "de_Event");
2039
+ var de_EventList = /* @__PURE__ */ __name((output, context) => {
2040
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2041
+ return de_Event(entry, context);
2042
+ });
2043
+ return retVal;
2044
+ }, "de_EventList");
2045
+ var de_MemoryRecord = /* @__PURE__ */ __name((output, context) => {
2046
+ return (0, import_smithy_client.take)(output, {
2047
+ content: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "content"),
2048
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
2049
+ memoryRecordId: import_smithy_client.expectString,
2050
+ memoryStrategyId: import_smithy_client.expectString,
2051
+ namespaces: import_smithy_client._json
2052
+ });
2053
+ }, "de_MemoryRecord");
2054
+ var de_MemoryRecordSummary = /* @__PURE__ */ __name((output, context) => {
2055
+ return (0, import_smithy_client.take)(output, {
2056
+ content: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "content"),
2057
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
2058
+ memoryRecordId: import_smithy_client.expectString,
2059
+ memoryStrategyId: import_smithy_client.expectString,
2060
+ namespaces: import_smithy_client._json,
2061
+ score: import_smithy_client.limitedParseDouble
2062
+ });
2063
+ }, "de_MemoryRecordSummary");
2064
+ var de_MemoryRecordSummaryList = /* @__PURE__ */ __name((output, context) => {
2065
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2066
+ return de_MemoryRecordSummary(entry, context);
2067
+ });
2068
+ return retVal;
2069
+ }, "de_MemoryRecordSummaryList");
2070
+ var de_PayloadType = /* @__PURE__ */ __name((output, context) => {
2071
+ if (output.blob != null) {
2072
+ return {
2073
+ blob: de_Document(output.blob, context)
2074
+ };
2075
+ }
2076
+ if (output.conversational != null) {
2077
+ return {
2078
+ conversational: (0, import_smithy_client._json)(output.conversational)
2079
+ };
2080
+ }
2081
+ return { $unknown: Object.entries(output)[0] };
2082
+ }, "de_PayloadType");
2083
+ var de_PayloadTypeList = /* @__PURE__ */ __name((output, context) => {
2084
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2085
+ return de_PayloadType((0, import_core2.awsExpectUnion)(entry), context);
2086
+ });
2087
+ return retVal;
2088
+ }, "de_PayloadTypeList");
2089
+ var de_ResourceContent = /* @__PURE__ */ __name((output, context) => {
2090
+ return (0, import_smithy_client.take)(output, {
2091
+ blob: context.base64Decoder,
2092
+ mimeType: import_smithy_client.expectString,
2093
+ text: import_smithy_client.expectString,
2094
+ type: import_smithy_client.expectString,
2095
+ uri: import_smithy_client.expectString
2096
+ });
2097
+ }, "de_ResourceContent");
2098
+ var de_SessionSummary = /* @__PURE__ */ __name((output, context) => {
2099
+ return (0, import_smithy_client.take)(output, {
2100
+ actorId: import_smithy_client.expectString,
2101
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
2102
+ sessionId: import_smithy_client.expectString
2103
+ });
2104
+ }, "de_SessionSummary");
2105
+ var de_SessionSummaryList = /* @__PURE__ */ __name((output, context) => {
2106
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2107
+ return de_SessionSummary(entry, context);
2108
+ });
2109
+ return retVal;
2110
+ }, "de_SessionSummaryList");
2111
+ var de_ToolResultStructuredContent = /* @__PURE__ */ __name((output, context) => {
2112
+ return (0, import_smithy_client.take)(output, {
2113
+ executionTime: import_smithy_client.limitedParseDouble,
2114
+ exitCode: import_smithy_client.expectInt32,
2115
+ stderr: import_smithy_client.expectString,
2116
+ stdout: import_smithy_client.expectString,
2117
+ taskId: import_smithy_client.expectString,
2118
+ taskStatus: import_smithy_client.expectString
2119
+ });
2120
+ }, "de_ToolResultStructuredContent");
2121
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2122
+ httpStatusCode: output.statusCode,
2123
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2124
+ extendedRequestId: output.headers["x-amz-id-2"],
2125
+ cfId: output.headers["x-amz-cf-id"]
2126
+ }), "deserializeMetadata");
2127
+ var _a = "accept";
2128
+ var _b = "baggage";
2129
+ var _cT = "contentType";
2130
+ var _ct = "content-type";
2131
+ var _mPV = "mcpProtocolVersion";
2132
+ var _mSI = "mcpSessionId";
2133
+ var _mpv = "mcp-protocol-version";
2134
+ var _msi = "mcp-session-id";
2135
+ var _q = "qualifier";
2136
+ var _rSI = "runtimeSessionId";
2137
+ var _rUI = "runtimeUserId";
2138
+ var _sI = "sessionId";
2139
+ var _t = "traceparent";
2140
+ var _tI = "traceId";
2141
+ var _tP = "traceParent";
2142
+ var _tS = "traceState";
2143
+ var _tr = "tracestate";
2144
+ var _xabarsi = "x-amzn-bedrock-agentcore-runtime-session-id";
2145
+ var _xabarui = "x-amzn-bedrock-agentcore-runtime-user-id";
2146
+ var _xacisi = "x-amzn-code-interpreter-session-id";
2147
+ var _xati = "x-amzn-trace-id";
2148
+
2149
+ // src/commands/CreateEventCommand.ts
2150
+ var CreateEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2151
+ return [
2152
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2153
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2154
+ ];
2155
+ }).s("AmazonBedrockAgentCore", "CreateEvent", {}).n("BedrockAgentCoreClient", "CreateEventCommand").f(CreateEventInputFilterSensitiveLog, CreateEventOutputFilterSensitiveLog).ser(se_CreateEventCommand).de(de_CreateEventCommand).build() {
2156
+ static {
2157
+ __name(this, "CreateEventCommand");
2158
+ }
2159
+ };
2160
+
2161
+ // src/commands/DeleteEventCommand.ts
2162
+
2163
+
2164
+
2165
+ var DeleteEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2166
+ return [
2167
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2168
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2169
+ ];
2170
+ }).s("AmazonBedrockAgentCore", "DeleteEvent", {}).n("BedrockAgentCoreClient", "DeleteEventCommand").f(void 0, void 0).ser(se_DeleteEventCommand).de(de_DeleteEventCommand).build() {
2171
+ static {
2172
+ __name(this, "DeleteEventCommand");
2173
+ }
2174
+ };
2175
+
2176
+ // src/commands/DeleteMemoryRecordCommand.ts
2177
+
2178
+
2179
+
2180
+ var DeleteMemoryRecordCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2181
+ return [
2182
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2183
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2184
+ ];
2185
+ }).s("AmazonBedrockAgentCore", "DeleteMemoryRecord", {}).n("BedrockAgentCoreClient", "DeleteMemoryRecordCommand").f(void 0, void 0).ser(se_DeleteMemoryRecordCommand).de(de_DeleteMemoryRecordCommand).build() {
2186
+ static {
2187
+ __name(this, "DeleteMemoryRecordCommand");
2188
+ }
2189
+ };
2190
+
2191
+ // src/commands/GetBrowserSessionCommand.ts
2192
+
2193
+
2194
+
2195
+ var GetBrowserSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2196
+ return [
2197
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2198
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2199
+ ];
2200
+ }).s("AmazonBedrockAgentCore", "GetBrowserSession", {}).n("BedrockAgentCoreClient", "GetBrowserSessionCommand").f(void 0, void 0).ser(se_GetBrowserSessionCommand).de(de_GetBrowserSessionCommand).build() {
2201
+ static {
2202
+ __name(this, "GetBrowserSessionCommand");
2203
+ }
2204
+ };
2205
+
2206
+ // src/commands/GetCodeInterpreterSessionCommand.ts
2207
+
2208
+
2209
+
2210
+ var GetCodeInterpreterSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2211
+ return [
2212
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2213
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2214
+ ];
2215
+ }).s("AmazonBedrockAgentCore", "GetCodeInterpreterSession", {}).n("BedrockAgentCoreClient", "GetCodeInterpreterSessionCommand").f(void 0, void 0).ser(se_GetCodeInterpreterSessionCommand).de(de_GetCodeInterpreterSessionCommand).build() {
2216
+ static {
2217
+ __name(this, "GetCodeInterpreterSessionCommand");
2218
+ }
2219
+ };
2220
+
2221
+ // src/commands/GetEventCommand.ts
2222
+
2223
+
2224
+
2225
+ var GetEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2226
+ return [
2227
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2228
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2229
+ ];
2230
+ }).s("AmazonBedrockAgentCore", "GetEvent", {}).n("BedrockAgentCoreClient", "GetEventCommand").f(void 0, GetEventOutputFilterSensitiveLog).ser(se_GetEventCommand).de(de_GetEventCommand).build() {
2231
+ static {
2232
+ __name(this, "GetEventCommand");
2233
+ }
2234
+ };
2235
+
2236
+ // src/commands/GetMemoryRecordCommand.ts
2237
+
2238
+
2239
+
2240
+ var GetMemoryRecordCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2241
+ return [
2242
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2243
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2244
+ ];
2245
+ }).s("AmazonBedrockAgentCore", "GetMemoryRecord", {}).n("BedrockAgentCoreClient", "GetMemoryRecordCommand").f(void 0, GetMemoryRecordOutputFilterSensitiveLog).ser(se_GetMemoryRecordCommand).de(de_GetMemoryRecordCommand).build() {
2246
+ static {
2247
+ __name(this, "GetMemoryRecordCommand");
2248
+ }
2249
+ };
2250
+
2251
+ // src/commands/GetResourceApiKeyCommand.ts
2252
+
2253
+
2254
+
2255
+ var GetResourceApiKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2256
+ return [
2257
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2258
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2259
+ ];
2260
+ }).s("AmazonBedrockAgentCore", "GetResourceApiKey", {}).n("BedrockAgentCoreClient", "GetResourceApiKeyCommand").f(GetResourceApiKeyRequestFilterSensitiveLog, GetResourceApiKeyResponseFilterSensitiveLog).ser(se_GetResourceApiKeyCommand).de(de_GetResourceApiKeyCommand).build() {
2261
+ static {
2262
+ __name(this, "GetResourceApiKeyCommand");
2263
+ }
2264
+ };
2265
+
2266
+ // src/commands/GetResourceOauth2TokenCommand.ts
2267
+
2268
+
2269
+
2270
+ var GetResourceOauth2TokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2271
+ return [
2272
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2273
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2274
+ ];
2275
+ }).s("AmazonBedrockAgentCore", "GetResourceOauth2Token", {}).n("BedrockAgentCoreClient", "GetResourceOauth2TokenCommand").f(GetResourceOauth2TokenRequestFilterSensitiveLog, GetResourceOauth2TokenResponseFilterSensitiveLog).ser(se_GetResourceOauth2TokenCommand).de(de_GetResourceOauth2TokenCommand).build() {
2276
+ static {
2277
+ __name(this, "GetResourceOauth2TokenCommand");
2278
+ }
2279
+ };
2280
+
2281
+ // src/commands/GetWorkloadAccessTokenCommand.ts
2282
+
2283
+
2284
+
2285
+ var GetWorkloadAccessTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2286
+ return [
2287
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2288
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2289
+ ];
2290
+ }).s("AmazonBedrockAgentCore", "GetWorkloadAccessToken", {}).n("BedrockAgentCoreClient", "GetWorkloadAccessTokenCommand").f(void 0, GetWorkloadAccessTokenResponseFilterSensitiveLog).ser(se_GetWorkloadAccessTokenCommand).de(de_GetWorkloadAccessTokenCommand).build() {
2291
+ static {
2292
+ __name(this, "GetWorkloadAccessTokenCommand");
2293
+ }
2294
+ };
2295
+
2296
+ // src/commands/GetWorkloadAccessTokenForJWTCommand.ts
2297
+
2298
+
2299
+
2300
+ var GetWorkloadAccessTokenForJWTCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2301
+ return [
2302
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2303
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2304
+ ];
2305
+ }).s("AmazonBedrockAgentCore", "GetWorkloadAccessTokenForJWT", {}).n("BedrockAgentCoreClient", "GetWorkloadAccessTokenForJWTCommand").f(GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog, GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog).ser(se_GetWorkloadAccessTokenForJWTCommand).de(de_GetWorkloadAccessTokenForJWTCommand).build() {
2306
+ static {
2307
+ __name(this, "GetWorkloadAccessTokenForJWTCommand");
2308
+ }
2309
+ };
2310
+
2311
+ // src/commands/GetWorkloadAccessTokenForUserIdCommand.ts
2312
+
2313
+
2314
+
2315
+ var GetWorkloadAccessTokenForUserIdCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2316
+ return [
2317
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2318
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2319
+ ];
2320
+ }).s("AmazonBedrockAgentCore", "GetWorkloadAccessTokenForUserId", {}).n("BedrockAgentCoreClient", "GetWorkloadAccessTokenForUserIdCommand").f(void 0, GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog).ser(se_GetWorkloadAccessTokenForUserIdCommand).de(de_GetWorkloadAccessTokenForUserIdCommand).build() {
2321
+ static {
2322
+ __name(this, "GetWorkloadAccessTokenForUserIdCommand");
2323
+ }
2324
+ };
2325
+
2326
+ // src/commands/InvokeAgentRuntimeCommand.ts
2327
+
2328
+
2329
+
2330
+ var InvokeAgentRuntimeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2331
+ return [
2332
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2333
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2334
+ ];
2335
+ }).s("AmazonBedrockAgentCore", "InvokeAgentRuntime", {}).n("BedrockAgentCoreClient", "InvokeAgentRuntimeCommand").f(InvokeAgentRuntimeRequestFilterSensitiveLog, InvokeAgentRuntimeResponseFilterSensitiveLog).ser(se_InvokeAgentRuntimeCommand).de(de_InvokeAgentRuntimeCommand).build() {
2336
+ static {
2337
+ __name(this, "InvokeAgentRuntimeCommand");
2338
+ }
2339
+ };
2340
+
2341
+ // src/commands/InvokeCodeInterpreterCommand.ts
2342
+
2343
+
2344
+
2345
+ var InvokeCodeInterpreterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2346
+ return [
2347
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2348
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2349
+ ];
2350
+ }).s("AmazonBedrockAgentCore", "InvokeCodeInterpreter", {
2351
+ /**
2352
+ * @internal
2353
+ */
2354
+ eventStream: {
2355
+ output: true
2356
+ }
2357
+ }).n("BedrockAgentCoreClient", "InvokeCodeInterpreterCommand").f(InvokeCodeInterpreterRequestFilterSensitiveLog, InvokeCodeInterpreterResponseFilterSensitiveLog).ser(se_InvokeCodeInterpreterCommand).de(de_InvokeCodeInterpreterCommand).build() {
2358
+ static {
2359
+ __name(this, "InvokeCodeInterpreterCommand");
2360
+ }
2361
+ };
2362
+
2363
+ // src/commands/ListActorsCommand.ts
2364
+
2365
+
2366
+
2367
+ var ListActorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2368
+ return [
2369
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2370
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2371
+ ];
2372
+ }).s("AmazonBedrockAgentCore", "ListActors", {}).n("BedrockAgentCoreClient", "ListActorsCommand").f(void 0, void 0).ser(se_ListActorsCommand).de(de_ListActorsCommand).build() {
2373
+ static {
2374
+ __name(this, "ListActorsCommand");
2375
+ }
2376
+ };
2377
+
2378
+ // src/commands/ListBrowserSessionsCommand.ts
2379
+
2380
+
2381
+
2382
+ var ListBrowserSessionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2383
+ return [
2384
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2385
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2386
+ ];
2387
+ }).s("AmazonBedrockAgentCore", "ListBrowserSessions", {}).n("BedrockAgentCoreClient", "ListBrowserSessionsCommand").f(void 0, void 0).ser(se_ListBrowserSessionsCommand).de(de_ListBrowserSessionsCommand).build() {
2388
+ static {
2389
+ __name(this, "ListBrowserSessionsCommand");
2390
+ }
2391
+ };
2392
+
2393
+ // src/commands/ListCodeInterpreterSessionsCommand.ts
2394
+
2395
+
2396
+
2397
+ var ListCodeInterpreterSessionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2398
+ return [
2399
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2400
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2401
+ ];
2402
+ }).s("AmazonBedrockAgentCore", "ListCodeInterpreterSessions", {}).n("BedrockAgentCoreClient", "ListCodeInterpreterSessionsCommand").f(void 0, void 0).ser(se_ListCodeInterpreterSessionsCommand).de(de_ListCodeInterpreterSessionsCommand).build() {
2403
+ static {
2404
+ __name(this, "ListCodeInterpreterSessionsCommand");
2405
+ }
2406
+ };
2407
+
2408
+ // src/commands/ListEventsCommand.ts
2409
+
2410
+
2411
+
2412
+ var ListEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2413
+ return [
2414
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2415
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2416
+ ];
2417
+ }).s("AmazonBedrockAgentCore", "ListEvents", {}).n("BedrockAgentCoreClient", "ListEventsCommand").f(void 0, ListEventsOutputFilterSensitiveLog).ser(se_ListEventsCommand).de(de_ListEventsCommand).build() {
2418
+ static {
2419
+ __name(this, "ListEventsCommand");
2420
+ }
2421
+ };
2422
+
2423
+ // src/commands/ListMemoryRecordsCommand.ts
2424
+
2425
+
2426
+
2427
+ var ListMemoryRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2428
+ return [
2429
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2430
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2431
+ ];
2432
+ }).s("AmazonBedrockAgentCore", "ListMemoryRecords", {}).n("BedrockAgentCoreClient", "ListMemoryRecordsCommand").f(void 0, ListMemoryRecordsOutputFilterSensitiveLog).ser(se_ListMemoryRecordsCommand).de(de_ListMemoryRecordsCommand).build() {
2433
+ static {
2434
+ __name(this, "ListMemoryRecordsCommand");
2435
+ }
2436
+ };
2437
+
2438
+ // src/commands/ListSessionsCommand.ts
2439
+
2440
+
2441
+
2442
+ var ListSessionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2443
+ return [
2444
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2445
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2446
+ ];
2447
+ }).s("AmazonBedrockAgentCore", "ListSessions", {}).n("BedrockAgentCoreClient", "ListSessionsCommand").f(void 0, void 0).ser(se_ListSessionsCommand).de(de_ListSessionsCommand).build() {
2448
+ static {
2449
+ __name(this, "ListSessionsCommand");
2450
+ }
2451
+ };
2452
+
2453
+ // src/commands/RetrieveMemoryRecordsCommand.ts
2454
+
2455
+
2456
+
2457
+ var RetrieveMemoryRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2458
+ return [
2459
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2460
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2461
+ ];
2462
+ }).s("AmazonBedrockAgentCore", "RetrieveMemoryRecords", {}).n("BedrockAgentCoreClient", "RetrieveMemoryRecordsCommand").f(RetrieveMemoryRecordsInputFilterSensitiveLog, RetrieveMemoryRecordsOutputFilterSensitiveLog).ser(se_RetrieveMemoryRecordsCommand).de(de_RetrieveMemoryRecordsCommand).build() {
2463
+ static {
2464
+ __name(this, "RetrieveMemoryRecordsCommand");
2465
+ }
2466
+ };
2467
+
2468
+ // src/commands/StartBrowserSessionCommand.ts
2469
+
2470
+
2471
+
2472
+ var StartBrowserSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2473
+ return [
2474
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2475
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2476
+ ];
2477
+ }).s("AmazonBedrockAgentCore", "StartBrowserSession", {}).n("BedrockAgentCoreClient", "StartBrowserSessionCommand").f(void 0, void 0).ser(se_StartBrowserSessionCommand).de(de_StartBrowserSessionCommand).build() {
2478
+ static {
2479
+ __name(this, "StartBrowserSessionCommand");
2480
+ }
2481
+ };
2482
+
2483
+ // src/commands/StartCodeInterpreterSessionCommand.ts
2484
+
2485
+
2486
+
2487
+ var StartCodeInterpreterSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2488
+ return [
2489
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2490
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2491
+ ];
2492
+ }).s("AmazonBedrockAgentCore", "StartCodeInterpreterSession", {}).n("BedrockAgentCoreClient", "StartCodeInterpreterSessionCommand").f(void 0, void 0).ser(se_StartCodeInterpreterSessionCommand).de(de_StartCodeInterpreterSessionCommand).build() {
2493
+ static {
2494
+ __name(this, "StartCodeInterpreterSessionCommand");
2495
+ }
2496
+ };
2497
+
2498
+ // src/commands/StopBrowserSessionCommand.ts
2499
+
2500
+
2501
+
2502
+ var StopBrowserSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2503
+ return [
2504
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2505
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2506
+ ];
2507
+ }).s("AmazonBedrockAgentCore", "StopBrowserSession", {}).n("BedrockAgentCoreClient", "StopBrowserSessionCommand").f(void 0, void 0).ser(se_StopBrowserSessionCommand).de(de_StopBrowserSessionCommand).build() {
2508
+ static {
2509
+ __name(this, "StopBrowserSessionCommand");
2510
+ }
2511
+ };
2512
+
2513
+ // src/commands/StopCodeInterpreterSessionCommand.ts
2514
+
2515
+
2516
+
2517
+ var StopCodeInterpreterSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2518
+ return [
2519
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2520
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2521
+ ];
2522
+ }).s("AmazonBedrockAgentCore", "StopCodeInterpreterSession", {}).n("BedrockAgentCoreClient", "StopCodeInterpreterSessionCommand").f(void 0, void 0).ser(se_StopCodeInterpreterSessionCommand).de(de_StopCodeInterpreterSessionCommand).build() {
2523
+ static {
2524
+ __name(this, "StopCodeInterpreterSessionCommand");
2525
+ }
2526
+ };
2527
+
2528
+ // src/commands/UpdateBrowserStreamCommand.ts
2529
+
2530
+
2531
+
2532
+ var UpdateBrowserStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2533
+ return [
2534
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2535
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2536
+ ];
2537
+ }).s("AmazonBedrockAgentCore", "UpdateBrowserStream", {}).n("BedrockAgentCoreClient", "UpdateBrowserStreamCommand").f(void 0, void 0).ser(se_UpdateBrowserStreamCommand).de(de_UpdateBrowserStreamCommand).build() {
2538
+ static {
2539
+ __name(this, "UpdateBrowserStreamCommand");
2540
+ }
2541
+ };
2542
+
2543
+ // src/BedrockAgentCore.ts
2544
+ var commands = {
2545
+ CreateEventCommand,
2546
+ DeleteEventCommand,
2547
+ DeleteMemoryRecordCommand,
2548
+ GetBrowserSessionCommand,
2549
+ GetCodeInterpreterSessionCommand,
2550
+ GetEventCommand,
2551
+ GetMemoryRecordCommand,
2552
+ GetResourceApiKeyCommand,
2553
+ GetResourceOauth2TokenCommand,
2554
+ GetWorkloadAccessTokenCommand,
2555
+ GetWorkloadAccessTokenForJWTCommand,
2556
+ GetWorkloadAccessTokenForUserIdCommand,
2557
+ InvokeAgentRuntimeCommand,
2558
+ InvokeCodeInterpreterCommand,
2559
+ ListActorsCommand,
2560
+ ListBrowserSessionsCommand,
2561
+ ListCodeInterpreterSessionsCommand,
2562
+ ListEventsCommand,
2563
+ ListMemoryRecordsCommand,
2564
+ ListSessionsCommand,
2565
+ RetrieveMemoryRecordsCommand,
2566
+ StartBrowserSessionCommand,
2567
+ StartCodeInterpreterSessionCommand,
2568
+ StopBrowserSessionCommand,
2569
+ StopCodeInterpreterSessionCommand,
2570
+ UpdateBrowserStreamCommand
2571
+ };
2572
+ var BedrockAgentCore = class extends BedrockAgentCoreClient {
2573
+ static {
2574
+ __name(this, "BedrockAgentCore");
2575
+ }
2576
+ };
2577
+ (0, import_smithy_client.createAggregatedClient)(commands, BedrockAgentCore);
2578
+
2579
+ // src/pagination/ListActorsPaginator.ts
2580
+
2581
+ var paginateListActors = (0, import_core.createPaginator)(BedrockAgentCoreClient, ListActorsCommand, "nextToken", "nextToken", "maxResults");
2582
+
2583
+ // src/pagination/ListEventsPaginator.ts
2584
+
2585
+ var paginateListEvents = (0, import_core.createPaginator)(BedrockAgentCoreClient, ListEventsCommand, "nextToken", "nextToken", "maxResults");
2586
+
2587
+ // src/pagination/ListMemoryRecordsPaginator.ts
2588
+
2589
+ var paginateListMemoryRecords = (0, import_core.createPaginator)(BedrockAgentCoreClient, ListMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
2590
+
2591
+ // src/pagination/ListSessionsPaginator.ts
2592
+
2593
+ var paginateListSessions = (0, import_core.createPaginator)(BedrockAgentCoreClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
2594
+
2595
+ // src/pagination/RetrieveMemoryRecordsPaginator.ts
2596
+
2597
+ var paginateRetrieveMemoryRecords = (0, import_core.createPaginator)(BedrockAgentCoreClient, RetrieveMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
2598
+ // Annotate the CommonJS export names for ESM import in node:
2599
+
2600
+ 0 && (module.exports = {
2601
+ BedrockAgentCoreServiceException,
2602
+ __Client,
2603
+ BedrockAgentCoreClient,
2604
+ BedrockAgentCore,
2605
+ $Command,
2606
+ CreateEventCommand,
2607
+ DeleteEventCommand,
2608
+ DeleteMemoryRecordCommand,
2609
+ GetBrowserSessionCommand,
2610
+ GetCodeInterpreterSessionCommand,
2611
+ GetEventCommand,
2612
+ GetMemoryRecordCommand,
2613
+ GetResourceApiKeyCommand,
2614
+ GetResourceOauth2TokenCommand,
2615
+ GetWorkloadAccessTokenCommand,
2616
+ GetWorkloadAccessTokenForJWTCommand,
2617
+ GetWorkloadAccessTokenForUserIdCommand,
2618
+ InvokeAgentRuntimeCommand,
2619
+ InvokeCodeInterpreterCommand,
2620
+ ListActorsCommand,
2621
+ ListBrowserSessionsCommand,
2622
+ ListCodeInterpreterSessionsCommand,
2623
+ ListEventsCommand,
2624
+ ListMemoryRecordsCommand,
2625
+ ListSessionsCommand,
2626
+ RetrieveMemoryRecordsCommand,
2627
+ StartBrowserSessionCommand,
2628
+ StartCodeInterpreterSessionCommand,
2629
+ StopBrowserSessionCommand,
2630
+ StopCodeInterpreterSessionCommand,
2631
+ UpdateBrowserStreamCommand,
2632
+ paginateListActors,
2633
+ paginateListEvents,
2634
+ paginateListMemoryRecords,
2635
+ paginateListSessions,
2636
+ paginateRetrieveMemoryRecords,
2637
+ AccessDeniedException,
2638
+ InternalServerException,
2639
+ ResourceNotFoundException,
2640
+ RuntimeClientError,
2641
+ ServiceQuotaExceededException,
2642
+ ThrottlingException,
2643
+ ValidationExceptionReason,
2644
+ ValidationException,
2645
+ BrowserSessionStatus,
2646
+ AutomationStreamStatus,
2647
+ ConflictException,
2648
+ StreamUpdate,
2649
+ CodeInterpreterSessionStatus,
2650
+ UnauthorizedException,
2651
+ Oauth2FlowType,
2652
+ ProgrammingLanguage,
2653
+ ToolName,
2654
+ ResourceContentType,
2655
+ ContentBlockType,
2656
+ TaskStatus,
2657
+ CodeInterpreterStreamOutput,
2658
+ Content,
2659
+ Role,
2660
+ PayloadType,
2661
+ InvalidInputException,
2662
+ ServiceException,
2663
+ ThrottledException,
2664
+ MemoryContent,
2665
+ InvokeAgentRuntimeRequestFilterSensitiveLog,
2666
+ InvokeAgentRuntimeResponseFilterSensitiveLog,
2667
+ GetResourceApiKeyRequestFilterSensitiveLog,
2668
+ GetResourceApiKeyResponseFilterSensitiveLog,
2669
+ GetResourceOauth2TokenRequestFilterSensitiveLog,
2670
+ GetResourceOauth2TokenResponseFilterSensitiveLog,
2671
+ GetWorkloadAccessTokenResponseFilterSensitiveLog,
2672
+ GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog,
2673
+ GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog,
2674
+ GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog,
2675
+ InputContentBlockFilterSensitiveLog,
2676
+ ToolArgumentsFilterSensitiveLog,
2677
+ InvokeCodeInterpreterRequestFilterSensitiveLog,
2678
+ CodeInterpreterStreamOutputFilterSensitiveLog,
2679
+ InvokeCodeInterpreterResponseFilterSensitiveLog,
2680
+ ContentFilterSensitiveLog,
2681
+ ConversationalFilterSensitiveLog,
2682
+ PayloadTypeFilterSensitiveLog,
2683
+ CreateEventInputFilterSensitiveLog,
2684
+ EventFilterSensitiveLog,
2685
+ CreateEventOutputFilterSensitiveLog,
2686
+ GetEventOutputFilterSensitiveLog,
2687
+ MemoryContentFilterSensitiveLog,
2688
+ MemoryRecordFilterSensitiveLog,
2689
+ GetMemoryRecordOutputFilterSensitiveLog,
2690
+ ListEventsOutputFilterSensitiveLog,
2691
+ MemoryRecordSummaryFilterSensitiveLog,
2692
+ ListMemoryRecordsOutputFilterSensitiveLog,
2693
+ SearchCriteriaFilterSensitiveLog,
2694
+ RetrieveMemoryRecordsInputFilterSensitiveLog,
2695
+ RetrieveMemoryRecordsOutputFilterSensitiveLog
2696
+ });
2697
+