@aws-sdk/client-bedrock-agent 3.490.0 → 3.495.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 (62) hide show
  1. package/dist-cjs/BedrockAgent.js +1 -91
  2. package/dist-cjs/BedrockAgentClient.js +1 -43
  3. package/dist-cjs/commands/AssociateAgentKnowledgeBaseCommand.js +1 -28
  4. package/dist-cjs/commands/CreateAgentActionGroupCommand.js +1 -29
  5. package/dist-cjs/commands/CreateAgentAliasCommand.js +1 -28
  6. package/dist-cjs/commands/CreateAgentCommand.js +1 -29
  7. package/dist-cjs/commands/CreateDataSourceCommand.js +1 -28
  8. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteAgentActionGroupCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteAgentAliasCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteAgentCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteAgentVersionCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteDataSourceCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +1 -28
  15. package/dist-cjs/commands/DisassociateAgentKnowledgeBaseCommand.js +1 -28
  16. package/dist-cjs/commands/GetAgentActionGroupCommand.js +1 -29
  17. package/dist-cjs/commands/GetAgentAliasCommand.js +1 -28
  18. package/dist-cjs/commands/GetAgentCommand.js +1 -29
  19. package/dist-cjs/commands/GetAgentKnowledgeBaseCommand.js +1 -28
  20. package/dist-cjs/commands/GetAgentVersionCommand.js +1 -29
  21. package/dist-cjs/commands/GetDataSourceCommand.js +1 -28
  22. package/dist-cjs/commands/GetIngestionJobCommand.js +1 -28
  23. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +1 -28
  24. package/dist-cjs/commands/ListAgentActionGroupsCommand.js +1 -28
  25. package/dist-cjs/commands/ListAgentAliasesCommand.js +1 -28
  26. package/dist-cjs/commands/ListAgentKnowledgeBasesCommand.js +1 -28
  27. package/dist-cjs/commands/ListAgentVersionsCommand.js +1 -28
  28. package/dist-cjs/commands/ListAgentsCommand.js +1 -28
  29. package/dist-cjs/commands/ListDataSourcesCommand.js +1 -28
  30. package/dist-cjs/commands/ListIngestionJobsCommand.js +1 -28
  31. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +1 -28
  32. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  33. package/dist-cjs/commands/PrepareAgentCommand.js +1 -28
  34. package/dist-cjs/commands/StartIngestionJobCommand.js +1 -28
  35. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  36. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  37. package/dist-cjs/commands/UpdateAgentActionGroupCommand.js +1 -29
  38. package/dist-cjs/commands/UpdateAgentAliasCommand.js +1 -28
  39. package/dist-cjs/commands/UpdateAgentCommand.js +1 -29
  40. package/dist-cjs/commands/UpdateAgentKnowledgeBaseCommand.js +1 -28
  41. package/dist-cjs/commands/UpdateDataSourceCommand.js +1 -28
  42. package/dist-cjs/commands/UpdateKnowledgeBaseCommand.js +1 -28
  43. package/dist-cjs/commands/index.js +1 -43
  44. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  45. package/dist-cjs/extensionConfiguration.js +1 -2
  46. package/dist-cjs/index.js +4374 -11
  47. package/dist-cjs/models/BedrockAgentServiceException.js +1 -12
  48. package/dist-cjs/models/index.js +1 -4
  49. package/dist-cjs/models/models_0.js +1 -294
  50. package/dist-cjs/pagination/Interfaces.js +1 -2
  51. package/dist-cjs/pagination/ListAgentActionGroupsPaginator.js +1 -7
  52. package/dist-cjs/pagination/ListAgentAliasesPaginator.js +1 -7
  53. package/dist-cjs/pagination/ListAgentKnowledgeBasesPaginator.js +1 -7
  54. package/dist-cjs/pagination/ListAgentVersionsPaginator.js +1 -7
  55. package/dist-cjs/pagination/ListAgentsPaginator.js +1 -7
  56. package/dist-cjs/pagination/ListDataSourcesPaginator.js +1 -7
  57. package/dist-cjs/pagination/ListIngestionJobsPaginator.js +1 -7
  58. package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +1 -7
  59. package/dist-cjs/pagination/index.js +1 -12
  60. package/dist-cjs/protocols/Aws_restJson1.js +1 -3048
  61. package/dist-cjs/runtimeExtensions.js +1 -22
  62. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,4375 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BedrockAgentServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./BedrockAgentClient"), exports);
6
- tslib_1.__exportStar(require("./BedrockAgent"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var BedrockAgentServiceException_1 = require("./models/BedrockAgentServiceException");
12
- Object.defineProperty(exports, "BedrockAgentServiceException", { enumerable: true, get: function () { return BedrockAgentServiceException_1.BedrockAgentServiceException; } });
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 src_exports = {};
23
+ __export(src_exports, {
24
+ APISchema: () => APISchema,
25
+ APISchemaFilterSensitiveLog: () => APISchemaFilterSensitiveLog,
26
+ AccessDeniedException: () => AccessDeniedException,
27
+ ActionGroupExecutor: () => ActionGroupExecutor,
28
+ ActionGroupSignature: () => ActionGroupSignature,
29
+ ActionGroupState: () => ActionGroupState,
30
+ AgentActionGroupFilterSensitiveLog: () => AgentActionGroupFilterSensitiveLog,
31
+ AgentAliasStatus: () => AgentAliasStatus,
32
+ AgentFilterSensitiveLog: () => AgentFilterSensitiveLog,
33
+ AgentStatus: () => AgentStatus,
34
+ AgentVersionFilterSensitiveLog: () => AgentVersionFilterSensitiveLog,
35
+ AssociateAgentKnowledgeBaseCommand: () => AssociateAgentKnowledgeBaseCommand,
36
+ BedrockAgent: () => BedrockAgent,
37
+ BedrockAgentClient: () => BedrockAgentClient,
38
+ BedrockAgentServiceException: () => BedrockAgentServiceException,
39
+ ChunkingStrategy: () => ChunkingStrategy,
40
+ ConflictException: () => ConflictException,
41
+ CreateAgentActionGroupCommand: () => CreateAgentActionGroupCommand,
42
+ CreateAgentActionGroupRequestFilterSensitiveLog: () => CreateAgentActionGroupRequestFilterSensitiveLog,
43
+ CreateAgentActionGroupResponseFilterSensitiveLog: () => CreateAgentActionGroupResponseFilterSensitiveLog,
44
+ CreateAgentAliasCommand: () => CreateAgentAliasCommand,
45
+ CreateAgentCommand: () => CreateAgentCommand,
46
+ CreateAgentRequestFilterSensitiveLog: () => CreateAgentRequestFilterSensitiveLog,
47
+ CreateAgentResponseFilterSensitiveLog: () => CreateAgentResponseFilterSensitiveLog,
48
+ CreateDataSourceCommand: () => CreateDataSourceCommand,
49
+ CreateKnowledgeBaseCommand: () => CreateKnowledgeBaseCommand,
50
+ CreationMode: () => CreationMode,
51
+ DataSourceStatus: () => DataSourceStatus,
52
+ DataSourceType: () => DataSourceType,
53
+ DeleteAgentActionGroupCommand: () => DeleteAgentActionGroupCommand,
54
+ DeleteAgentAliasCommand: () => DeleteAgentAliasCommand,
55
+ DeleteAgentCommand: () => DeleteAgentCommand,
56
+ DeleteAgentVersionCommand: () => DeleteAgentVersionCommand,
57
+ DeleteDataSourceCommand: () => DeleteDataSourceCommand,
58
+ DeleteKnowledgeBaseCommand: () => DeleteKnowledgeBaseCommand,
59
+ DisassociateAgentKnowledgeBaseCommand: () => DisassociateAgentKnowledgeBaseCommand,
60
+ GetAgentActionGroupCommand: () => GetAgentActionGroupCommand,
61
+ GetAgentActionGroupResponseFilterSensitiveLog: () => GetAgentActionGroupResponseFilterSensitiveLog,
62
+ GetAgentAliasCommand: () => GetAgentAliasCommand,
63
+ GetAgentCommand: () => GetAgentCommand,
64
+ GetAgentKnowledgeBaseCommand: () => GetAgentKnowledgeBaseCommand,
65
+ GetAgentResponseFilterSensitiveLog: () => GetAgentResponseFilterSensitiveLog,
66
+ GetAgentVersionCommand: () => GetAgentVersionCommand,
67
+ GetAgentVersionResponseFilterSensitiveLog: () => GetAgentVersionResponseFilterSensitiveLog,
68
+ GetDataSourceCommand: () => GetDataSourceCommand,
69
+ GetIngestionJobCommand: () => GetIngestionJobCommand,
70
+ GetKnowledgeBaseCommand: () => GetKnowledgeBaseCommand,
71
+ IngestionJobFilterAttribute: () => IngestionJobFilterAttribute,
72
+ IngestionJobFilterOperator: () => IngestionJobFilterOperator,
73
+ IngestionJobSortByAttribute: () => IngestionJobSortByAttribute,
74
+ IngestionJobStatus: () => IngestionJobStatus,
75
+ InternalServerException: () => InternalServerException,
76
+ KnowledgeBaseState: () => KnowledgeBaseState,
77
+ KnowledgeBaseStatus: () => KnowledgeBaseStatus,
78
+ KnowledgeBaseStorageType: () => KnowledgeBaseStorageType,
79
+ KnowledgeBaseType: () => KnowledgeBaseType,
80
+ ListAgentActionGroupsCommand: () => ListAgentActionGroupsCommand,
81
+ ListAgentAliasesCommand: () => ListAgentAliasesCommand,
82
+ ListAgentKnowledgeBasesCommand: () => ListAgentKnowledgeBasesCommand,
83
+ ListAgentVersionsCommand: () => ListAgentVersionsCommand,
84
+ ListAgentsCommand: () => ListAgentsCommand,
85
+ ListDataSourcesCommand: () => ListDataSourcesCommand,
86
+ ListIngestionJobsCommand: () => ListIngestionJobsCommand,
87
+ ListKnowledgeBasesCommand: () => ListKnowledgeBasesCommand,
88
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
89
+ PrepareAgentCommand: () => PrepareAgentCommand,
90
+ PromptOverrideConfigurationFilterSensitiveLog: () => PromptOverrideConfigurationFilterSensitiveLog,
91
+ PromptState: () => PromptState,
92
+ PromptType: () => PromptType,
93
+ ResourceNotFoundException: () => ResourceNotFoundException,
94
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
95
+ SortOrder: () => SortOrder,
96
+ StartIngestionJobCommand: () => StartIngestionJobCommand,
97
+ TagResourceCommand: () => TagResourceCommand,
98
+ ThrottlingException: () => ThrottlingException,
99
+ UntagResourceCommand: () => UntagResourceCommand,
100
+ UpdateAgentActionGroupCommand: () => UpdateAgentActionGroupCommand,
101
+ UpdateAgentActionGroupRequestFilterSensitiveLog: () => UpdateAgentActionGroupRequestFilterSensitiveLog,
102
+ UpdateAgentActionGroupResponseFilterSensitiveLog: () => UpdateAgentActionGroupResponseFilterSensitiveLog,
103
+ UpdateAgentAliasCommand: () => UpdateAgentAliasCommand,
104
+ UpdateAgentCommand: () => UpdateAgentCommand,
105
+ UpdateAgentKnowledgeBaseCommand: () => UpdateAgentKnowledgeBaseCommand,
106
+ UpdateAgentRequestFilterSensitiveLog: () => UpdateAgentRequestFilterSensitiveLog,
107
+ UpdateAgentResponseFilterSensitiveLog: () => UpdateAgentResponseFilterSensitiveLog,
108
+ UpdateDataSourceCommand: () => UpdateDataSourceCommand,
109
+ UpdateKnowledgeBaseCommand: () => UpdateKnowledgeBaseCommand,
110
+ ValidationException: () => ValidationException,
111
+ __Client: () => import_smithy_client.Client,
112
+ paginateListAgentActionGroups: () => paginateListAgentActionGroups,
113
+ paginateListAgentAliases: () => paginateListAgentAliases,
114
+ paginateListAgentKnowledgeBases: () => paginateListAgentKnowledgeBases,
115
+ paginateListAgentVersions: () => paginateListAgentVersions,
116
+ paginateListAgents: () => paginateListAgents,
117
+ paginateListDataSources: () => paginateListDataSources,
118
+ paginateListIngestionJobs: () => paginateListIngestionJobs,
119
+ paginateListKnowledgeBases: () => paginateListKnowledgeBases
120
+ });
121
+ module.exports = __toCommonJS(src_exports);
122
+
123
+ // src/BedrockAgentClient.ts
124
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
125
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
126
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
127
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
128
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
129
+ var import_config_resolver = require("@smithy/config-resolver");
130
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
131
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
132
+ var import_middleware_retry = require("@smithy/middleware-retry");
133
+
134
+
135
+ // src/endpoint/EndpointParameters.ts
136
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
137
+ return {
138
+ ...options,
139
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
140
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
141
+ defaultSigningName: "bedrock"
142
+ };
143
+ }, "resolveClientEndpointParameters");
144
+ var commonParams = {
145
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
146
+ Endpoint: { type: "builtInParams", name: "endpoint" },
147
+ Region: { type: "builtInParams", name: "region" },
148
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
149
+ };
150
+
151
+ // src/BedrockAgentClient.ts
152
+ var import_runtimeConfig = require("././runtimeConfig");
153
+
154
+ // src/runtimeExtensions.ts
155
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
156
+ var import_protocol_http = require("@smithy/protocol-http");
157
+ var import_smithy_client = require("@smithy/smithy-client");
158
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
159
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
160
+ const extensionConfiguration = {
161
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
162
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
163
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
164
+ };
165
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
166
+ return {
167
+ ...runtimeConfig,
168
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
169
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
170
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
171
+ };
172
+ }, "resolveRuntimeExtensions");
173
+
174
+ // src/BedrockAgentClient.ts
175
+ var _BedrockAgentClient = class _BedrockAgentClient extends import_smithy_client.Client {
176
+ constructor(...[configuration]) {
177
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
178
+ const _config_1 = resolveClientEndpointParameters(_config_0);
179
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
180
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
181
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
182
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
183
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
184
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
185
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
186
+ super(_config_8);
187
+ this.config = _config_8;
188
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
189
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
190
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
191
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
192
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
193
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
194
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
195
+ }
196
+ /**
197
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
198
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
199
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
200
+ */
201
+ destroy() {
202
+ super.destroy();
203
+ }
204
+ };
205
+ __name(_BedrockAgentClient, "BedrockAgentClient");
206
+ var BedrockAgentClient = _BedrockAgentClient;
207
+
208
+ // src/BedrockAgent.ts
209
+
210
+
211
+ // src/commands/AssociateAgentKnowledgeBaseCommand.ts
212
+
213
+ var import_middleware_serde = require("@smithy/middleware-serde");
214
+
215
+ var import_types = require("@smithy/types");
216
+
217
+ // src/protocols/Aws_restJson1.ts
218
+ var import_core = require("@aws-sdk/core");
219
+ var import_core2 = require("@smithy/core");
220
+
221
+ var import_uuid = require("uuid");
222
+
223
+ // src/models/BedrockAgentServiceException.ts
224
+
225
+ var _BedrockAgentServiceException = class _BedrockAgentServiceException extends import_smithy_client.ServiceException {
226
+ /**
227
+ * @internal
228
+ */
229
+ constructor(options) {
230
+ super(options);
231
+ Object.setPrototypeOf(this, _BedrockAgentServiceException.prototype);
232
+ }
233
+ };
234
+ __name(_BedrockAgentServiceException, "BedrockAgentServiceException");
235
+ var BedrockAgentServiceException = _BedrockAgentServiceException;
236
+
237
+ // src/models/models_0.ts
238
+
239
+ var _AccessDeniedException = class _AccessDeniedException extends BedrockAgentServiceException {
240
+ /**
241
+ * @internal
242
+ */
243
+ constructor(opts) {
244
+ super({
245
+ name: "AccessDeniedException",
246
+ $fault: "client",
247
+ ...opts
248
+ });
249
+ this.name = "AccessDeniedException";
250
+ this.$fault = "client";
251
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
252
+ }
253
+ };
254
+ __name(_AccessDeniedException, "AccessDeniedException");
255
+ var AccessDeniedException = _AccessDeniedException;
256
+ var ActionGroupExecutor;
257
+ ((ActionGroupExecutor3) => {
258
+ ActionGroupExecutor3.visit = /* @__PURE__ */ __name((value, visitor) => {
259
+ if (value.lambda !== void 0)
260
+ return visitor.lambda(value.lambda);
261
+ return visitor._(value.$unknown[0], value.$unknown[1]);
262
+ }, "visit");
263
+ })(ActionGroupExecutor || (ActionGroupExecutor = {}));
264
+ var _ConflictException = class _ConflictException extends BedrockAgentServiceException {
265
+ /**
266
+ * @internal
267
+ */
268
+ constructor(opts) {
269
+ super({
270
+ name: "ConflictException",
271
+ $fault: "client",
272
+ ...opts
273
+ });
274
+ this.name = "ConflictException";
275
+ this.$fault = "client";
276
+ Object.setPrototypeOf(this, _ConflictException.prototype);
277
+ }
278
+ };
279
+ __name(_ConflictException, "ConflictException");
280
+ var ConflictException = _ConflictException;
281
+ var ActionGroupState = {
282
+ DISABLED: "DISABLED",
283
+ ENABLED: "ENABLED"
284
+ };
285
+ var APISchema;
286
+ ((APISchema3) => {
287
+ APISchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
288
+ if (value.s3 !== void 0)
289
+ return visitor.s3(value.s3);
290
+ if (value.payload !== void 0)
291
+ return visitor.payload(value.payload);
292
+ return visitor._(value.$unknown[0], value.$unknown[1]);
293
+ }, "visit");
294
+ })(APISchema || (APISchema = {}));
295
+ var ActionGroupSignature = {
296
+ AMAZON_USERINPUT: "AMAZON.UserInput"
297
+ };
298
+ var _InternalServerException = class _InternalServerException extends BedrockAgentServiceException {
299
+ /**
300
+ * @internal
301
+ */
302
+ constructor(opts) {
303
+ super({
304
+ name: "InternalServerException",
305
+ $fault: "server",
306
+ ...opts
307
+ });
308
+ this.name = "InternalServerException";
309
+ this.$fault = "server";
310
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
311
+ }
312
+ };
313
+ __name(_InternalServerException, "InternalServerException");
314
+ var InternalServerException = _InternalServerException;
315
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends BedrockAgentServiceException {
316
+ /**
317
+ * @internal
318
+ */
319
+ constructor(opts) {
320
+ super({
321
+ name: "ResourceNotFoundException",
322
+ $fault: "client",
323
+ ...opts
324
+ });
325
+ this.name = "ResourceNotFoundException";
326
+ this.$fault = "client";
327
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
328
+ }
329
+ };
330
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
331
+ var ResourceNotFoundException = _ResourceNotFoundException;
332
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockAgentServiceException {
333
+ /**
334
+ * @internal
335
+ */
336
+ constructor(opts) {
337
+ super({
338
+ name: "ServiceQuotaExceededException",
339
+ $fault: "client",
340
+ ...opts
341
+ });
342
+ this.name = "ServiceQuotaExceededException";
343
+ this.$fault = "client";
344
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
345
+ }
346
+ };
347
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
348
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
349
+ var _ThrottlingException = class _ThrottlingException extends BedrockAgentServiceException {
350
+ /**
351
+ * @internal
352
+ */
353
+ constructor(opts) {
354
+ super({
355
+ name: "ThrottlingException",
356
+ $fault: "client",
357
+ ...opts
358
+ });
359
+ this.name = "ThrottlingException";
360
+ this.$fault = "client";
361
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
362
+ }
363
+ };
364
+ __name(_ThrottlingException, "ThrottlingException");
365
+ var ThrottlingException = _ThrottlingException;
366
+ var _ValidationException = class _ValidationException extends BedrockAgentServiceException {
367
+ /**
368
+ * @internal
369
+ */
370
+ constructor(opts) {
371
+ super({
372
+ name: "ValidationException",
373
+ $fault: "client",
374
+ ...opts
375
+ });
376
+ this.name = "ValidationException";
377
+ this.$fault = "client";
378
+ Object.setPrototypeOf(this, _ValidationException.prototype);
379
+ this.fieldList = opts.fieldList;
380
+ }
381
+ };
382
+ __name(_ValidationException, "ValidationException");
383
+ var ValidationException = _ValidationException;
384
+ var AgentStatus = {
385
+ CREATING: "CREATING",
386
+ DELETING: "DELETING",
387
+ FAILED: "FAILED",
388
+ NOT_PREPARED: "NOT_PREPARED",
389
+ PREPARED: "PREPARED",
390
+ PREPARING: "PREPARING",
391
+ UPDATING: "UPDATING",
392
+ VERSIONING: "VERSIONING"
393
+ };
394
+ var CreationMode = {
395
+ DEFAULT: "DEFAULT",
396
+ OVERRIDDEN: "OVERRIDDEN"
397
+ };
398
+ var PromptState = {
399
+ DISABLED: "DISABLED",
400
+ ENABLED: "ENABLED"
401
+ };
402
+ var PromptType = {
403
+ KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION",
404
+ ORCHESTRATION: "ORCHESTRATION",
405
+ POST_PROCESSING: "POST_PROCESSING",
406
+ PRE_PROCESSING: "PRE_PROCESSING"
407
+ };
408
+ var AgentAliasStatus = {
409
+ CREATING: "CREATING",
410
+ DELETING: "DELETING",
411
+ FAILED: "FAILED",
412
+ PREPARED: "PREPARED",
413
+ UPDATING: "UPDATING"
414
+ };
415
+ var KnowledgeBaseState = {
416
+ DISABLED: "DISABLED",
417
+ ENABLED: "ENABLED"
418
+ };
419
+ var DataSourceType = {
420
+ S3: "S3"
421
+ };
422
+ var ChunkingStrategy = {
423
+ FIXED_SIZE: "FIXED_SIZE",
424
+ NONE: "NONE"
425
+ };
426
+ var DataSourceStatus = {
427
+ AVAILABLE: "AVAILABLE",
428
+ DELETING: "DELETING"
429
+ };
430
+ var IngestionJobStatus = {
431
+ COMPLETE: "COMPLETE",
432
+ FAILED: "FAILED",
433
+ IN_PROGRESS: "IN_PROGRESS",
434
+ STARTING: "STARTING"
435
+ };
436
+ var IngestionJobFilterAttribute = {
437
+ STATUS: "STATUS"
438
+ };
439
+ var IngestionJobFilterOperator = {
440
+ EQ: "EQ"
441
+ };
442
+ var IngestionJobSortByAttribute = {
443
+ STARTED_AT: "STARTED_AT",
444
+ STATUS: "STATUS"
445
+ };
446
+ var SortOrder = {
447
+ ASCENDING: "ASCENDING",
448
+ DESCENDING: "DESCENDING"
449
+ };
450
+ var KnowledgeBaseType = {
451
+ VECTOR: "VECTOR"
452
+ };
453
+ var KnowledgeBaseStorageType = {
454
+ OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
455
+ PINECONE: "PINECONE",
456
+ RDS: "RDS",
457
+ REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD"
458
+ };
459
+ var KnowledgeBaseStatus = {
460
+ ACTIVE: "ACTIVE",
461
+ CREATING: "CREATING",
462
+ DELETING: "DELETING",
463
+ FAILED: "FAILED",
464
+ UPDATING: "UPDATING"
465
+ };
466
+ var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
467
+ if (obj.s3 !== void 0)
468
+ return { s3: obj.s3 };
469
+ if (obj.payload !== void 0)
470
+ return { payload: import_smithy_client.SENSITIVE_STRING };
471
+ if (obj.$unknown !== void 0)
472
+ return { [obj.$unknown[0]]: "UNKNOWN" };
473
+ }, "APISchemaFilterSensitiveLog");
474
+ var CreateAgentActionGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
475
+ ...obj,
476
+ ...obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor },
477
+ ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }
478
+ }), "CreateAgentActionGroupRequestFilterSensitiveLog");
479
+ var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
480
+ ...obj,
481
+ ...obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor },
482
+ ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }
483
+ }), "AgentActionGroupFilterSensitiveLog");
484
+ var CreateAgentActionGroupResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
485
+ ...obj,
486
+ ...obj.agentActionGroup && { agentActionGroup: AgentActionGroupFilterSensitiveLog(obj.agentActionGroup) }
487
+ }), "CreateAgentActionGroupResponseFilterSensitiveLog");
488
+ var GetAgentActionGroupResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
489
+ ...obj,
490
+ ...obj.agentActionGroup && { agentActionGroup: AgentActionGroupFilterSensitiveLog(obj.agentActionGroup) }
491
+ }), "GetAgentActionGroupResponseFilterSensitiveLog");
492
+ var UpdateAgentActionGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
493
+ ...obj,
494
+ ...obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor },
495
+ ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }
496
+ }), "UpdateAgentActionGroupRequestFilterSensitiveLog");
497
+ var UpdateAgentActionGroupResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
498
+ ...obj,
499
+ ...obj.agentActionGroup && { agentActionGroup: AgentActionGroupFilterSensitiveLog(obj.agentActionGroup) }
500
+ }), "UpdateAgentActionGroupResponseFilterSensitiveLog");
501
+ var PromptOverrideConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
502
+ ...obj
503
+ }), "PromptOverrideConfigurationFilterSensitiveLog");
504
+ var AgentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
505
+ ...obj,
506
+ ...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
507
+ ...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
508
+ }), "AgentFilterSensitiveLog");
509
+ var CreateAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
510
+ ...obj,
511
+ ...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
512
+ ...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
513
+ }), "CreateAgentRequestFilterSensitiveLog");
514
+ var CreateAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
515
+ ...obj,
516
+ ...obj.agent && { agent: AgentFilterSensitiveLog(obj.agent) }
517
+ }), "CreateAgentResponseFilterSensitiveLog");
518
+ var GetAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
519
+ ...obj,
520
+ ...obj.agent && { agent: AgentFilterSensitiveLog(obj.agent) }
521
+ }), "GetAgentResponseFilterSensitiveLog");
522
+ var UpdateAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
523
+ ...obj,
524
+ ...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
525
+ ...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
526
+ }), "UpdateAgentRequestFilterSensitiveLog");
527
+ var UpdateAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
528
+ ...obj,
529
+ ...obj.agent && { agent: AgentFilterSensitiveLog(obj.agent) }
530
+ }), "UpdateAgentResponseFilterSensitiveLog");
531
+ var AgentVersionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
532
+ ...obj,
533
+ ...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
534
+ ...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
535
+ }), "AgentVersionFilterSensitiveLog");
536
+ var GetAgentVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
537
+ ...obj,
538
+ ...obj.agentVersion && { agentVersion: AgentVersionFilterSensitiveLog(obj.agentVersion) }
539
+ }), "GetAgentVersionResponseFilterSensitiveLog");
540
+
541
+ // src/protocols/Aws_restJson1.ts
542
+ var se_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
543
+ const b = (0, import_core2.requestBuilder)(input, context);
544
+ const headers = {
545
+ "content-type": "application/json"
546
+ };
547
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases");
548
+ b.p("agentId", () => input.agentId, "{agentId}", false);
549
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
550
+ let body;
551
+ body = JSON.stringify(
552
+ (0, import_smithy_client.take)(input, {
553
+ description: [],
554
+ knowledgeBaseId: [],
555
+ knowledgeBaseState: []
556
+ })
557
+ );
558
+ b.m("PUT").h(headers).b(body);
559
+ return b.build();
560
+ }, "se_AssociateAgentKnowledgeBaseCommand");
561
+ var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
562
+ const b = (0, import_core2.requestBuilder)(input, context);
563
+ const headers = {
564
+ "content-type": "application/json"
565
+ };
566
+ b.bp("/agents");
567
+ let body;
568
+ body = JSON.stringify(
569
+ (0, import_smithy_client.take)(input, {
570
+ agentName: [],
571
+ agentResourceRoleArn: [],
572
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
573
+ customerEncryptionKeyArn: [],
574
+ description: [],
575
+ foundationModel: [],
576
+ idleSessionTTLInSeconds: [],
577
+ instruction: [],
578
+ promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
579
+ tags: (_) => (0, import_smithy_client._json)(_)
580
+ })
581
+ );
582
+ b.m("PUT").h(headers).b(body);
583
+ return b.build();
584
+ }, "se_CreateAgentCommand");
585
+ var se_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
586
+ const b = (0, import_core2.requestBuilder)(input, context);
587
+ const headers = {
588
+ "content-type": "application/json"
589
+ };
590
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups");
591
+ b.p("agentId", () => input.agentId, "{agentId}", false);
592
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
593
+ let body;
594
+ body = JSON.stringify(
595
+ (0, import_smithy_client.take)(input, {
596
+ actionGroupExecutor: (_) => (0, import_smithy_client._json)(_),
597
+ actionGroupName: [],
598
+ actionGroupState: [],
599
+ apiSchema: (_) => (0, import_smithy_client._json)(_),
600
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
601
+ description: [],
602
+ parentActionGroupSignature: []
603
+ })
604
+ );
605
+ b.m("PUT").h(headers).b(body);
606
+ return b.build();
607
+ }, "se_CreateAgentActionGroupCommand");
608
+ var se_CreateAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
609
+ const b = (0, import_core2.requestBuilder)(input, context);
610
+ const headers = {
611
+ "content-type": "application/json"
612
+ };
613
+ b.bp("/agents/{agentId}/agentaliases");
614
+ b.p("agentId", () => input.agentId, "{agentId}", false);
615
+ let body;
616
+ body = JSON.stringify(
617
+ (0, import_smithy_client.take)(input, {
618
+ agentAliasName: [],
619
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
620
+ description: [],
621
+ routingConfiguration: (_) => (0, import_smithy_client._json)(_),
622
+ tags: (_) => (0, import_smithy_client._json)(_)
623
+ })
624
+ );
625
+ b.m("PUT").h(headers).b(body);
626
+ return b.build();
627
+ }, "se_CreateAgentAliasCommand");
628
+ var se_CreateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
629
+ const b = (0, import_core2.requestBuilder)(input, context);
630
+ const headers = {
631
+ "content-type": "application/json"
632
+ };
633
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources");
634
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
635
+ let body;
636
+ body = JSON.stringify(
637
+ (0, import_smithy_client.take)(input, {
638
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
639
+ dataSourceConfiguration: (_) => (0, import_smithy_client._json)(_),
640
+ description: [],
641
+ name: [],
642
+ serverSideEncryptionConfiguration: (_) => (0, import_smithy_client._json)(_),
643
+ vectorIngestionConfiguration: (_) => (0, import_smithy_client._json)(_)
644
+ })
645
+ );
646
+ b.m("PUT").h(headers).b(body);
647
+ return b.build();
648
+ }, "se_CreateDataSourceCommand");
649
+ var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
650
+ const b = (0, import_core2.requestBuilder)(input, context);
651
+ const headers = {
652
+ "content-type": "application/json"
653
+ };
654
+ b.bp("/knowledgebases");
655
+ let body;
656
+ body = JSON.stringify(
657
+ (0, import_smithy_client.take)(input, {
658
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
659
+ description: [],
660
+ knowledgeBaseConfiguration: (_) => (0, import_smithy_client._json)(_),
661
+ name: [],
662
+ roleArn: [],
663
+ storageConfiguration: (_) => (0, import_smithy_client._json)(_),
664
+ tags: (_) => (0, import_smithy_client._json)(_)
665
+ })
666
+ );
667
+ b.m("PUT").h(headers).b(body);
668
+ return b.build();
669
+ }, "se_CreateKnowledgeBaseCommand");
670
+ var se_DeleteAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
671
+ const b = (0, import_core2.requestBuilder)(input, context);
672
+ const headers = {};
673
+ b.bp("/agents/{agentId}");
674
+ b.p("agentId", () => input.agentId, "{agentId}", false);
675
+ const query = (0, import_smithy_client.map)({
676
+ [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()]
677
+ });
678
+ let body;
679
+ b.m("DELETE").h(headers).q(query).b(body);
680
+ return b.build();
681
+ }, "se_DeleteAgentCommand");
682
+ var se_DeleteAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
683
+ const b = (0, import_core2.requestBuilder)(input, context);
684
+ const headers = {};
685
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}");
686
+ b.p("agentId", () => input.agentId, "{agentId}", false);
687
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
688
+ b.p("actionGroupId", () => input.actionGroupId, "{actionGroupId}", false);
689
+ const query = (0, import_smithy_client.map)({
690
+ [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()]
691
+ });
692
+ let body;
693
+ b.m("DELETE").h(headers).q(query).b(body);
694
+ return b.build();
695
+ }, "se_DeleteAgentActionGroupCommand");
696
+ var se_DeleteAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
697
+ const b = (0, import_core2.requestBuilder)(input, context);
698
+ const headers = {};
699
+ b.bp("/agents/{agentId}/agentaliases/{agentAliasId}");
700
+ b.p("agentId", () => input.agentId, "{agentId}", false);
701
+ b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
702
+ let body;
703
+ b.m("DELETE").h(headers).b(body);
704
+ return b.build();
705
+ }, "se_DeleteAgentAliasCommand");
706
+ var se_DeleteAgentVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
707
+ const b = (0, import_core2.requestBuilder)(input, context);
708
+ const headers = {};
709
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}");
710
+ b.p("agentId", () => input.agentId, "{agentId}", false);
711
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
712
+ const query = (0, import_smithy_client.map)({
713
+ [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()]
714
+ });
715
+ let body;
716
+ b.m("DELETE").h(headers).q(query).b(body);
717
+ return b.build();
718
+ }, "se_DeleteAgentVersionCommand");
719
+ var se_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
720
+ const b = (0, import_core2.requestBuilder)(input, context);
721
+ const headers = {};
722
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}");
723
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
724
+ b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
725
+ let body;
726
+ b.m("DELETE").h(headers).b(body);
727
+ return b.build();
728
+ }, "se_DeleteDataSourceCommand");
729
+ var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const b = (0, import_core2.requestBuilder)(input, context);
731
+ const headers = {};
732
+ b.bp("/knowledgebases/{knowledgeBaseId}");
733
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
734
+ let body;
735
+ b.m("DELETE").h(headers).b(body);
736
+ return b.build();
737
+ }, "se_DeleteKnowledgeBaseCommand");
738
+ var se_DisassociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
739
+ const b = (0, import_core2.requestBuilder)(input, context);
740
+ const headers = {};
741
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}");
742
+ b.p("agentId", () => input.agentId, "{agentId}", false);
743
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
744
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
745
+ let body;
746
+ b.m("DELETE").h(headers).b(body);
747
+ return b.build();
748
+ }, "se_DisassociateAgentKnowledgeBaseCommand");
749
+ var se_GetAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
750
+ const b = (0, import_core2.requestBuilder)(input, context);
751
+ const headers = {};
752
+ b.bp("/agents/{agentId}");
753
+ b.p("agentId", () => input.agentId, "{agentId}", false);
754
+ let body;
755
+ b.m("GET").h(headers).b(body);
756
+ return b.build();
757
+ }, "se_GetAgentCommand");
758
+ var se_GetAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
759
+ const b = (0, import_core2.requestBuilder)(input, context);
760
+ const headers = {};
761
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}");
762
+ b.p("agentId", () => input.agentId, "{agentId}", false);
763
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
764
+ b.p("actionGroupId", () => input.actionGroupId, "{actionGroupId}", false);
765
+ let body;
766
+ b.m("GET").h(headers).b(body);
767
+ return b.build();
768
+ }, "se_GetAgentActionGroupCommand");
769
+ var se_GetAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
770
+ const b = (0, import_core2.requestBuilder)(input, context);
771
+ const headers = {};
772
+ b.bp("/agents/{agentId}/agentaliases/{agentAliasId}");
773
+ b.p("agentId", () => input.agentId, "{agentId}", false);
774
+ b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
775
+ let body;
776
+ b.m("GET").h(headers).b(body);
777
+ return b.build();
778
+ }, "se_GetAgentAliasCommand");
779
+ var se_GetAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
780
+ const b = (0, import_core2.requestBuilder)(input, context);
781
+ const headers = {};
782
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}");
783
+ b.p("agentId", () => input.agentId, "{agentId}", false);
784
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
785
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
786
+ let body;
787
+ b.m("GET").h(headers).b(body);
788
+ return b.build();
789
+ }, "se_GetAgentKnowledgeBaseCommand");
790
+ var se_GetAgentVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
791
+ const b = (0, import_core2.requestBuilder)(input, context);
792
+ const headers = {};
793
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}");
794
+ b.p("agentId", () => input.agentId, "{agentId}", false);
795
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
796
+ let body;
797
+ b.m("GET").h(headers).b(body);
798
+ return b.build();
799
+ }, "se_GetAgentVersionCommand");
800
+ var se_GetDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
801
+ const b = (0, import_core2.requestBuilder)(input, context);
802
+ const headers = {};
803
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}");
804
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
805
+ b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
806
+ let body;
807
+ b.m("GET").h(headers).b(body);
808
+ return b.build();
809
+ }, "se_GetDataSourceCommand");
810
+ var se_GetIngestionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
811
+ const b = (0, import_core2.requestBuilder)(input, context);
812
+ const headers = {};
813
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/{ingestionJobId}");
814
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
815
+ b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
816
+ b.p("ingestionJobId", () => input.ingestionJobId, "{ingestionJobId}", false);
817
+ let body;
818
+ b.m("GET").h(headers).b(body);
819
+ return b.build();
820
+ }, "se_GetIngestionJobCommand");
821
+ var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
822
+ const b = (0, import_core2.requestBuilder)(input, context);
823
+ const headers = {};
824
+ b.bp("/knowledgebases/{knowledgeBaseId}");
825
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
826
+ let body;
827
+ b.m("GET").h(headers).b(body);
828
+ return b.build();
829
+ }, "se_GetKnowledgeBaseCommand");
830
+ var se_ListAgentActionGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
831
+ const b = (0, import_core2.requestBuilder)(input, context);
832
+ const headers = {
833
+ "content-type": "application/json"
834
+ };
835
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups");
836
+ b.p("agentId", () => input.agentId, "{agentId}", false);
837
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
838
+ let body;
839
+ body = JSON.stringify(
840
+ (0, import_smithy_client.take)(input, {
841
+ maxResults: [],
842
+ nextToken: []
843
+ })
844
+ );
845
+ b.m("POST").h(headers).b(body);
846
+ return b.build();
847
+ }, "se_ListAgentActionGroupsCommand");
848
+ var se_ListAgentAliasesCommand = /* @__PURE__ */ __name(async (input, context) => {
849
+ const b = (0, import_core2.requestBuilder)(input, context);
850
+ const headers = {
851
+ "content-type": "application/json"
852
+ };
853
+ b.bp("/agents/{agentId}/agentaliases");
854
+ b.p("agentId", () => input.agentId, "{agentId}", false);
855
+ let body;
856
+ body = JSON.stringify(
857
+ (0, import_smithy_client.take)(input, {
858
+ maxResults: [],
859
+ nextToken: []
860
+ })
861
+ );
862
+ b.m("POST").h(headers).b(body);
863
+ return b.build();
864
+ }, "se_ListAgentAliasesCommand");
865
+ var se_ListAgentKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context) => {
866
+ const b = (0, import_core2.requestBuilder)(input, context);
867
+ const headers = {
868
+ "content-type": "application/json"
869
+ };
870
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases");
871
+ b.p("agentId", () => input.agentId, "{agentId}", false);
872
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
873
+ let body;
874
+ body = JSON.stringify(
875
+ (0, import_smithy_client.take)(input, {
876
+ maxResults: [],
877
+ nextToken: []
878
+ })
879
+ );
880
+ b.m("POST").h(headers).b(body);
881
+ return b.build();
882
+ }, "se_ListAgentKnowledgeBasesCommand");
883
+ var se_ListAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
884
+ const b = (0, import_core2.requestBuilder)(input, context);
885
+ const headers = {
886
+ "content-type": "application/json"
887
+ };
888
+ b.bp("/agents");
889
+ let body;
890
+ body = JSON.stringify(
891
+ (0, import_smithy_client.take)(input, {
892
+ maxResults: [],
893
+ nextToken: []
894
+ })
895
+ );
896
+ b.m("POST").h(headers).b(body);
897
+ return b.build();
898
+ }, "se_ListAgentsCommand");
899
+ var se_ListAgentVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
900
+ const b = (0, import_core2.requestBuilder)(input, context);
901
+ const headers = {
902
+ "content-type": "application/json"
903
+ };
904
+ b.bp("/agents/{agentId}/agentversions");
905
+ b.p("agentId", () => input.agentId, "{agentId}", false);
906
+ let body;
907
+ body = JSON.stringify(
908
+ (0, import_smithy_client.take)(input, {
909
+ maxResults: [],
910
+ nextToken: []
911
+ })
912
+ );
913
+ b.m("POST").h(headers).b(body);
914
+ return b.build();
915
+ }, "se_ListAgentVersionsCommand");
916
+ var se_ListDataSourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
917
+ const b = (0, import_core2.requestBuilder)(input, context);
918
+ const headers = {
919
+ "content-type": "application/json"
920
+ };
921
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources");
922
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
923
+ let body;
924
+ body = JSON.stringify(
925
+ (0, import_smithy_client.take)(input, {
926
+ maxResults: [],
927
+ nextToken: []
928
+ })
929
+ );
930
+ b.m("POST").h(headers).b(body);
931
+ return b.build();
932
+ }, "se_ListDataSourcesCommand");
933
+ var se_ListIngestionJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
934
+ const b = (0, import_core2.requestBuilder)(input, context);
935
+ const headers = {
936
+ "content-type": "application/json"
937
+ };
938
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs");
939
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
940
+ b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
941
+ let body;
942
+ body = JSON.stringify(
943
+ (0, import_smithy_client.take)(input, {
944
+ filters: (_) => (0, import_smithy_client._json)(_),
945
+ maxResults: [],
946
+ nextToken: [],
947
+ sortBy: (_) => (0, import_smithy_client._json)(_)
948
+ })
949
+ );
950
+ b.m("POST").h(headers).b(body);
951
+ return b.build();
952
+ }, "se_ListIngestionJobsCommand");
953
+ var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context) => {
954
+ const b = (0, import_core2.requestBuilder)(input, context);
955
+ const headers = {
956
+ "content-type": "application/json"
957
+ };
958
+ b.bp("/knowledgebases");
959
+ let body;
960
+ body = JSON.stringify(
961
+ (0, import_smithy_client.take)(input, {
962
+ maxResults: [],
963
+ nextToken: []
964
+ })
965
+ );
966
+ b.m("POST").h(headers).b(body);
967
+ return b.build();
968
+ }, "se_ListKnowledgeBasesCommand");
969
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
970
+ const b = (0, import_core2.requestBuilder)(input, context);
971
+ const headers = {};
972
+ b.bp("/tags/{resourceArn}");
973
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
974
+ let body;
975
+ b.m("GET").h(headers).b(body);
976
+ return b.build();
977
+ }, "se_ListTagsForResourceCommand");
978
+ var se_PrepareAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
979
+ const b = (0, import_core2.requestBuilder)(input, context);
980
+ const headers = {};
981
+ b.bp("/agents/{agentId}");
982
+ b.p("agentId", () => input.agentId, "{agentId}", false);
983
+ let body;
984
+ b.m("POST").h(headers).b(body);
985
+ return b.build();
986
+ }, "se_PrepareAgentCommand");
987
+ var se_StartIngestionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
988
+ const b = (0, import_core2.requestBuilder)(input, context);
989
+ const headers = {
990
+ "content-type": "application/json"
991
+ };
992
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs");
993
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
994
+ b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
995
+ let body;
996
+ body = JSON.stringify(
997
+ (0, import_smithy_client.take)(input, {
998
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
999
+ description: []
1000
+ })
1001
+ );
1002
+ b.m("PUT").h(headers).b(body);
1003
+ return b.build();
1004
+ }, "se_StartIngestionJobCommand");
1005
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1006
+ const b = (0, import_core2.requestBuilder)(input, context);
1007
+ const headers = {
1008
+ "content-type": "application/json"
1009
+ };
1010
+ b.bp("/tags/{resourceArn}");
1011
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1012
+ let body;
1013
+ body = JSON.stringify(
1014
+ (0, import_smithy_client.take)(input, {
1015
+ tags: (_) => (0, import_smithy_client._json)(_)
1016
+ })
1017
+ );
1018
+ b.m("POST").h(headers).b(body);
1019
+ return b.build();
1020
+ }, "se_TagResourceCommand");
1021
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1022
+ const b = (0, import_core2.requestBuilder)(input, context);
1023
+ const headers = {};
1024
+ b.bp("/tags/{resourceArn}");
1025
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1026
+ const query = (0, import_smithy_client.map)({
1027
+ [_tK]: [
1028
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1029
+ () => (input[_tK] || []).map((_entry) => _entry)
1030
+ ]
1031
+ });
1032
+ let body;
1033
+ b.m("DELETE").h(headers).q(query).b(body);
1034
+ return b.build();
1035
+ }, "se_UntagResourceCommand");
1036
+ var se_UpdateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
1037
+ const b = (0, import_core2.requestBuilder)(input, context);
1038
+ const headers = {
1039
+ "content-type": "application/json"
1040
+ };
1041
+ b.bp("/agents/{agentId}");
1042
+ b.p("agentId", () => input.agentId, "{agentId}", false);
1043
+ let body;
1044
+ body = JSON.stringify(
1045
+ (0, import_smithy_client.take)(input, {
1046
+ agentName: [],
1047
+ agentResourceRoleArn: [],
1048
+ customerEncryptionKeyArn: [],
1049
+ description: [],
1050
+ foundationModel: [],
1051
+ idleSessionTTLInSeconds: [],
1052
+ instruction: [],
1053
+ promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context)
1054
+ })
1055
+ );
1056
+ b.m("PUT").h(headers).b(body);
1057
+ return b.build();
1058
+ }, "se_UpdateAgentCommand");
1059
+ var se_UpdateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
1060
+ const b = (0, import_core2.requestBuilder)(input, context);
1061
+ const headers = {
1062
+ "content-type": "application/json"
1063
+ };
1064
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}");
1065
+ b.p("agentId", () => input.agentId, "{agentId}", false);
1066
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
1067
+ b.p("actionGroupId", () => input.actionGroupId, "{actionGroupId}", false);
1068
+ let body;
1069
+ body = JSON.stringify(
1070
+ (0, import_smithy_client.take)(input, {
1071
+ actionGroupExecutor: (_) => (0, import_smithy_client._json)(_),
1072
+ actionGroupName: [],
1073
+ actionGroupState: [],
1074
+ apiSchema: (_) => (0, import_smithy_client._json)(_),
1075
+ description: [],
1076
+ parentActionGroupSignature: []
1077
+ })
1078
+ );
1079
+ b.m("PUT").h(headers).b(body);
1080
+ return b.build();
1081
+ }, "se_UpdateAgentActionGroupCommand");
1082
+ var se_UpdateAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
1083
+ const b = (0, import_core2.requestBuilder)(input, context);
1084
+ const headers = {
1085
+ "content-type": "application/json"
1086
+ };
1087
+ b.bp("/agents/{agentId}/agentaliases/{agentAliasId}");
1088
+ b.p("agentId", () => input.agentId, "{agentId}", false);
1089
+ b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
1090
+ let body;
1091
+ body = JSON.stringify(
1092
+ (0, import_smithy_client.take)(input, {
1093
+ agentAliasName: [],
1094
+ description: [],
1095
+ routingConfiguration: (_) => (0, import_smithy_client._json)(_)
1096
+ })
1097
+ );
1098
+ b.m("PUT").h(headers).b(body);
1099
+ return b.build();
1100
+ }, "se_UpdateAgentAliasCommand");
1101
+ var se_UpdateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1102
+ const b = (0, import_core2.requestBuilder)(input, context);
1103
+ const headers = {
1104
+ "content-type": "application/json"
1105
+ };
1106
+ b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}");
1107
+ b.p("agentId", () => input.agentId, "{agentId}", false);
1108
+ b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
1109
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1110
+ let body;
1111
+ body = JSON.stringify(
1112
+ (0, import_smithy_client.take)(input, {
1113
+ description: [],
1114
+ knowledgeBaseState: []
1115
+ })
1116
+ );
1117
+ b.m("PUT").h(headers).b(body);
1118
+ return b.build();
1119
+ }, "se_UpdateAgentKnowledgeBaseCommand");
1120
+ var se_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1121
+ const b = (0, import_core2.requestBuilder)(input, context);
1122
+ const headers = {
1123
+ "content-type": "application/json"
1124
+ };
1125
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}");
1126
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1127
+ b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
1128
+ let body;
1129
+ body = JSON.stringify(
1130
+ (0, import_smithy_client.take)(input, {
1131
+ dataSourceConfiguration: (_) => (0, import_smithy_client._json)(_),
1132
+ description: [],
1133
+ name: [],
1134
+ serverSideEncryptionConfiguration: (_) => (0, import_smithy_client._json)(_),
1135
+ vectorIngestionConfiguration: (_) => (0, import_smithy_client._json)(_)
1136
+ })
1137
+ );
1138
+ b.m("PUT").h(headers).b(body);
1139
+ return b.build();
1140
+ }, "se_UpdateDataSourceCommand");
1141
+ var se_UpdateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1142
+ const b = (0, import_core2.requestBuilder)(input, context);
1143
+ const headers = {
1144
+ "content-type": "application/json"
1145
+ };
1146
+ b.bp("/knowledgebases/{knowledgeBaseId}");
1147
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1148
+ let body;
1149
+ body = JSON.stringify(
1150
+ (0, import_smithy_client.take)(input, {
1151
+ description: [],
1152
+ knowledgeBaseConfiguration: (_) => (0, import_smithy_client._json)(_),
1153
+ name: [],
1154
+ roleArn: [],
1155
+ storageConfiguration: (_) => (0, import_smithy_client._json)(_)
1156
+ })
1157
+ );
1158
+ b.m("PUT").h(headers).b(body);
1159
+ return b.build();
1160
+ }, "se_UpdateKnowledgeBaseCommand");
1161
+ var de_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1162
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1163
+ return de_AssociateAgentKnowledgeBaseCommandError(output, context);
1164
+ }
1165
+ const contents = (0, import_smithy_client.map)({
1166
+ $metadata: deserializeMetadata(output)
1167
+ });
1168
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1169
+ const doc = (0, import_smithy_client.take)(data, {
1170
+ agentKnowledgeBase: (_) => de_AgentKnowledgeBase(_, context)
1171
+ });
1172
+ Object.assign(contents, doc);
1173
+ return contents;
1174
+ }, "de_AssociateAgentKnowledgeBaseCommand");
1175
+ var de_AssociateAgentKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1176
+ const parsedOutput = {
1177
+ ...output,
1178
+ body: await parseErrorBody(output.body, context)
1179
+ };
1180
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1181
+ switch (errorCode) {
1182
+ case "AccessDeniedException":
1183
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1184
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1185
+ case "ConflictException":
1186
+ case "com.amazonaws.bedrockagent#ConflictException":
1187
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1188
+ case "InternalServerException":
1189
+ case "com.amazonaws.bedrockagent#InternalServerException":
1190
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1191
+ case "ResourceNotFoundException":
1192
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1193
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1194
+ case "ServiceQuotaExceededException":
1195
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
1196
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1197
+ case "ThrottlingException":
1198
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1199
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1200
+ case "ValidationException":
1201
+ case "com.amazonaws.bedrockagent#ValidationException":
1202
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1203
+ default:
1204
+ const parsedBody = parsedOutput.body;
1205
+ return throwDefaultError({
1206
+ output,
1207
+ parsedBody,
1208
+ errorCode
1209
+ });
1210
+ }
1211
+ }, "de_AssociateAgentKnowledgeBaseCommandError");
1212
+ var de_CreateAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
1213
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1214
+ return de_CreateAgentCommandError(output, context);
1215
+ }
1216
+ const contents = (0, import_smithy_client.map)({
1217
+ $metadata: deserializeMetadata(output)
1218
+ });
1219
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1220
+ const doc = (0, import_smithy_client.take)(data, {
1221
+ agent: (_) => de_Agent(_, context)
1222
+ });
1223
+ Object.assign(contents, doc);
1224
+ return contents;
1225
+ }, "de_CreateAgentCommand");
1226
+ var de_CreateAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1227
+ const parsedOutput = {
1228
+ ...output,
1229
+ body: await parseErrorBody(output.body, context)
1230
+ };
1231
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1232
+ switch (errorCode) {
1233
+ case "AccessDeniedException":
1234
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1235
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1236
+ case "ConflictException":
1237
+ case "com.amazonaws.bedrockagent#ConflictException":
1238
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1239
+ case "InternalServerException":
1240
+ case "com.amazonaws.bedrockagent#InternalServerException":
1241
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1242
+ case "ServiceQuotaExceededException":
1243
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
1244
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1245
+ case "ThrottlingException":
1246
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1247
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1248
+ case "ValidationException":
1249
+ case "com.amazonaws.bedrockagent#ValidationException":
1250
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1251
+ default:
1252
+ const parsedBody = parsedOutput.body;
1253
+ return throwDefaultError({
1254
+ output,
1255
+ parsedBody,
1256
+ errorCode
1257
+ });
1258
+ }
1259
+ }, "de_CreateAgentCommandError");
1260
+ var de_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1261
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1262
+ return de_CreateAgentActionGroupCommandError(output, context);
1263
+ }
1264
+ const contents = (0, import_smithy_client.map)({
1265
+ $metadata: deserializeMetadata(output)
1266
+ });
1267
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1268
+ const doc = (0, import_smithy_client.take)(data, {
1269
+ agentActionGroup: (_) => de_AgentActionGroup(_, context)
1270
+ });
1271
+ Object.assign(contents, doc);
1272
+ return contents;
1273
+ }, "de_CreateAgentActionGroupCommand");
1274
+ var de_CreateAgentActionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1275
+ const parsedOutput = {
1276
+ ...output,
1277
+ body: await parseErrorBody(output.body, context)
1278
+ };
1279
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1280
+ switch (errorCode) {
1281
+ case "AccessDeniedException":
1282
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1283
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1284
+ case "ConflictException":
1285
+ case "com.amazonaws.bedrockagent#ConflictException":
1286
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1287
+ case "InternalServerException":
1288
+ case "com.amazonaws.bedrockagent#InternalServerException":
1289
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1290
+ case "ResourceNotFoundException":
1291
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1292
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1293
+ case "ServiceQuotaExceededException":
1294
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
1295
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1296
+ case "ThrottlingException":
1297
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1298
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1299
+ case "ValidationException":
1300
+ case "com.amazonaws.bedrockagent#ValidationException":
1301
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1302
+ default:
1303
+ const parsedBody = parsedOutput.body;
1304
+ return throwDefaultError({
1305
+ output,
1306
+ parsedBody,
1307
+ errorCode
1308
+ });
1309
+ }
1310
+ }, "de_CreateAgentActionGroupCommandError");
1311
+ var de_CreateAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
1312
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1313
+ return de_CreateAgentAliasCommandError(output, context);
1314
+ }
1315
+ const contents = (0, import_smithy_client.map)({
1316
+ $metadata: deserializeMetadata(output)
1317
+ });
1318
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1319
+ const doc = (0, import_smithy_client.take)(data, {
1320
+ agentAlias: (_) => de_AgentAlias(_, context)
1321
+ });
1322
+ Object.assign(contents, doc);
1323
+ return contents;
1324
+ }, "de_CreateAgentAliasCommand");
1325
+ var de_CreateAgentAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1326
+ const parsedOutput = {
1327
+ ...output,
1328
+ body: await parseErrorBody(output.body, context)
1329
+ };
1330
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1331
+ switch (errorCode) {
1332
+ case "AccessDeniedException":
1333
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1334
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1335
+ case "ConflictException":
1336
+ case "com.amazonaws.bedrockagent#ConflictException":
1337
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1338
+ case "InternalServerException":
1339
+ case "com.amazonaws.bedrockagent#InternalServerException":
1340
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1341
+ case "ResourceNotFoundException":
1342
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1343
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1344
+ case "ServiceQuotaExceededException":
1345
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
1346
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1347
+ case "ThrottlingException":
1348
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1349
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1350
+ case "ValidationException":
1351
+ case "com.amazonaws.bedrockagent#ValidationException":
1352
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1353
+ default:
1354
+ const parsedBody = parsedOutput.body;
1355
+ return throwDefaultError({
1356
+ output,
1357
+ parsedBody,
1358
+ errorCode
1359
+ });
1360
+ }
1361
+ }, "de_CreateAgentAliasCommandError");
1362
+ var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1363
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1364
+ return de_CreateDataSourceCommandError(output, context);
1365
+ }
1366
+ const contents = (0, import_smithy_client.map)({
1367
+ $metadata: deserializeMetadata(output)
1368
+ });
1369
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1370
+ const doc = (0, import_smithy_client.take)(data, {
1371
+ dataSource: (_) => de_DataSource(_, context)
1372
+ });
1373
+ Object.assign(contents, doc);
1374
+ return contents;
1375
+ }, "de_CreateDataSourceCommand");
1376
+ var de_CreateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1377
+ const parsedOutput = {
1378
+ ...output,
1379
+ body: await parseErrorBody(output.body, context)
1380
+ };
1381
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1382
+ switch (errorCode) {
1383
+ case "AccessDeniedException":
1384
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1385
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1386
+ case "ConflictException":
1387
+ case "com.amazonaws.bedrockagent#ConflictException":
1388
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1389
+ case "InternalServerException":
1390
+ case "com.amazonaws.bedrockagent#InternalServerException":
1391
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1392
+ case "ResourceNotFoundException":
1393
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1394
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1395
+ case "ServiceQuotaExceededException":
1396
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
1397
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1398
+ case "ThrottlingException":
1399
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1400
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1401
+ case "ValidationException":
1402
+ case "com.amazonaws.bedrockagent#ValidationException":
1403
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1404
+ default:
1405
+ const parsedBody = parsedOutput.body;
1406
+ return throwDefaultError({
1407
+ output,
1408
+ parsedBody,
1409
+ errorCode
1410
+ });
1411
+ }
1412
+ }, "de_CreateDataSourceCommandError");
1413
+ var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1414
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1415
+ return de_CreateKnowledgeBaseCommandError(output, context);
1416
+ }
1417
+ const contents = (0, import_smithy_client.map)({
1418
+ $metadata: deserializeMetadata(output)
1419
+ });
1420
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1421
+ const doc = (0, import_smithy_client.take)(data, {
1422
+ knowledgeBase: (_) => de_KnowledgeBase(_, context)
1423
+ });
1424
+ Object.assign(contents, doc);
1425
+ return contents;
1426
+ }, "de_CreateKnowledgeBaseCommand");
1427
+ var de_CreateKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1428
+ const parsedOutput = {
1429
+ ...output,
1430
+ body: await parseErrorBody(output.body, context)
1431
+ };
1432
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1433
+ switch (errorCode) {
1434
+ case "AccessDeniedException":
1435
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1436
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1437
+ case "ConflictException":
1438
+ case "com.amazonaws.bedrockagent#ConflictException":
1439
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1440
+ case "InternalServerException":
1441
+ case "com.amazonaws.bedrockagent#InternalServerException":
1442
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1443
+ case "ServiceQuotaExceededException":
1444
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
1445
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1446
+ case "ThrottlingException":
1447
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1448
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1449
+ case "ValidationException":
1450
+ case "com.amazonaws.bedrockagent#ValidationException":
1451
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1452
+ default:
1453
+ const parsedBody = parsedOutput.body;
1454
+ return throwDefaultError({
1455
+ output,
1456
+ parsedBody,
1457
+ errorCode
1458
+ });
1459
+ }
1460
+ }, "de_CreateKnowledgeBaseCommandError");
1461
+ var de_DeleteAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
1462
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1463
+ return de_DeleteAgentCommandError(output, context);
1464
+ }
1465
+ const contents = (0, import_smithy_client.map)({
1466
+ $metadata: deserializeMetadata(output)
1467
+ });
1468
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1469
+ const doc = (0, import_smithy_client.take)(data, {
1470
+ agentId: import_smithy_client.expectString,
1471
+ agentStatus: import_smithy_client.expectString
1472
+ });
1473
+ Object.assign(contents, doc);
1474
+ return contents;
1475
+ }, "de_DeleteAgentCommand");
1476
+ var de_DeleteAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1477
+ const parsedOutput = {
1478
+ ...output,
1479
+ body: await parseErrorBody(output.body, context)
1480
+ };
1481
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1482
+ switch (errorCode) {
1483
+ case "AccessDeniedException":
1484
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1485
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1486
+ case "ConflictException":
1487
+ case "com.amazonaws.bedrockagent#ConflictException":
1488
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1489
+ case "InternalServerException":
1490
+ case "com.amazonaws.bedrockagent#InternalServerException":
1491
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1492
+ case "ResourceNotFoundException":
1493
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1494
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1495
+ case "ThrottlingException":
1496
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1497
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1498
+ case "ValidationException":
1499
+ case "com.amazonaws.bedrockagent#ValidationException":
1500
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1501
+ default:
1502
+ const parsedBody = parsedOutput.body;
1503
+ return throwDefaultError({
1504
+ output,
1505
+ parsedBody,
1506
+ errorCode
1507
+ });
1508
+ }
1509
+ }, "de_DeleteAgentCommandError");
1510
+ var de_DeleteAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1512
+ return de_DeleteAgentActionGroupCommandError(output, context);
1513
+ }
1514
+ const contents = (0, import_smithy_client.map)({
1515
+ $metadata: deserializeMetadata(output)
1516
+ });
1517
+ await (0, import_smithy_client.collectBody)(output.body, context);
1518
+ return contents;
1519
+ }, "de_DeleteAgentActionGroupCommand");
1520
+ var de_DeleteAgentActionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1521
+ const parsedOutput = {
1522
+ ...output,
1523
+ body: await parseErrorBody(output.body, context)
1524
+ };
1525
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1526
+ switch (errorCode) {
1527
+ case "AccessDeniedException":
1528
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1529
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1530
+ case "ConflictException":
1531
+ case "com.amazonaws.bedrockagent#ConflictException":
1532
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1533
+ case "InternalServerException":
1534
+ case "com.amazonaws.bedrockagent#InternalServerException":
1535
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1536
+ case "ResourceNotFoundException":
1537
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1538
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1539
+ case "ThrottlingException":
1540
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1541
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1542
+ case "ValidationException":
1543
+ case "com.amazonaws.bedrockagent#ValidationException":
1544
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1545
+ default:
1546
+ const parsedBody = parsedOutput.body;
1547
+ return throwDefaultError({
1548
+ output,
1549
+ parsedBody,
1550
+ errorCode
1551
+ });
1552
+ }
1553
+ }, "de_DeleteAgentActionGroupCommandError");
1554
+ var de_DeleteAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
1555
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1556
+ return de_DeleteAgentAliasCommandError(output, context);
1557
+ }
1558
+ const contents = (0, import_smithy_client.map)({
1559
+ $metadata: deserializeMetadata(output)
1560
+ });
1561
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1562
+ const doc = (0, import_smithy_client.take)(data, {
1563
+ agentAliasId: import_smithy_client.expectString,
1564
+ agentAliasStatus: import_smithy_client.expectString,
1565
+ agentId: import_smithy_client.expectString
1566
+ });
1567
+ Object.assign(contents, doc);
1568
+ return contents;
1569
+ }, "de_DeleteAgentAliasCommand");
1570
+ var de_DeleteAgentAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1571
+ const parsedOutput = {
1572
+ ...output,
1573
+ body: await parseErrorBody(output.body, context)
1574
+ };
1575
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1576
+ switch (errorCode) {
1577
+ case "AccessDeniedException":
1578
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1579
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1580
+ case "InternalServerException":
1581
+ case "com.amazonaws.bedrockagent#InternalServerException":
1582
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1583
+ case "ResourceNotFoundException":
1584
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1585
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1586
+ case "ThrottlingException":
1587
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1588
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1589
+ case "ValidationException":
1590
+ case "com.amazonaws.bedrockagent#ValidationException":
1591
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1592
+ default:
1593
+ const parsedBody = parsedOutput.body;
1594
+ return throwDefaultError({
1595
+ output,
1596
+ parsedBody,
1597
+ errorCode
1598
+ });
1599
+ }
1600
+ }, "de_DeleteAgentAliasCommandError");
1601
+ var de_DeleteAgentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1602
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1603
+ return de_DeleteAgentVersionCommandError(output, context);
1604
+ }
1605
+ const contents = (0, import_smithy_client.map)({
1606
+ $metadata: deserializeMetadata(output)
1607
+ });
1608
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1609
+ const doc = (0, import_smithy_client.take)(data, {
1610
+ agentId: import_smithy_client.expectString,
1611
+ agentStatus: import_smithy_client.expectString,
1612
+ agentVersion: import_smithy_client.expectString
1613
+ });
1614
+ Object.assign(contents, doc);
1615
+ return contents;
1616
+ }, "de_DeleteAgentVersionCommand");
1617
+ var de_DeleteAgentVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1618
+ const parsedOutput = {
1619
+ ...output,
1620
+ body: await parseErrorBody(output.body, context)
1621
+ };
1622
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1623
+ switch (errorCode) {
1624
+ case "AccessDeniedException":
1625
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1626
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1627
+ case "ConflictException":
1628
+ case "com.amazonaws.bedrockagent#ConflictException":
1629
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1630
+ case "InternalServerException":
1631
+ case "com.amazonaws.bedrockagent#InternalServerException":
1632
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1633
+ case "ResourceNotFoundException":
1634
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1635
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1636
+ case "ThrottlingException":
1637
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1638
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1639
+ case "ValidationException":
1640
+ case "com.amazonaws.bedrockagent#ValidationException":
1641
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1642
+ default:
1643
+ const parsedBody = parsedOutput.body;
1644
+ return throwDefaultError({
1645
+ output,
1646
+ parsedBody,
1647
+ errorCode
1648
+ });
1649
+ }
1650
+ }, "de_DeleteAgentVersionCommandError");
1651
+ var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1652
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1653
+ return de_DeleteDataSourceCommandError(output, context);
1654
+ }
1655
+ const contents = (0, import_smithy_client.map)({
1656
+ $metadata: deserializeMetadata(output)
1657
+ });
1658
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1659
+ const doc = (0, import_smithy_client.take)(data, {
1660
+ dataSourceId: import_smithy_client.expectString,
1661
+ knowledgeBaseId: import_smithy_client.expectString,
1662
+ status: import_smithy_client.expectString
1663
+ });
1664
+ Object.assign(contents, doc);
1665
+ return contents;
1666
+ }, "de_DeleteDataSourceCommand");
1667
+ var de_DeleteDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1668
+ const parsedOutput = {
1669
+ ...output,
1670
+ body: await parseErrorBody(output.body, context)
1671
+ };
1672
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1673
+ switch (errorCode) {
1674
+ case "AccessDeniedException":
1675
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1676
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1677
+ case "ConflictException":
1678
+ case "com.amazonaws.bedrockagent#ConflictException":
1679
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1680
+ case "InternalServerException":
1681
+ case "com.amazonaws.bedrockagent#InternalServerException":
1682
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1683
+ case "ResourceNotFoundException":
1684
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1685
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1686
+ case "ThrottlingException":
1687
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1688
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1689
+ case "ValidationException":
1690
+ case "com.amazonaws.bedrockagent#ValidationException":
1691
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1692
+ default:
1693
+ const parsedBody = parsedOutput.body;
1694
+ return throwDefaultError({
1695
+ output,
1696
+ parsedBody,
1697
+ errorCode
1698
+ });
1699
+ }
1700
+ }, "de_DeleteDataSourceCommandError");
1701
+ var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1702
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1703
+ return de_DeleteKnowledgeBaseCommandError(output, context);
1704
+ }
1705
+ const contents = (0, import_smithy_client.map)({
1706
+ $metadata: deserializeMetadata(output)
1707
+ });
1708
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1709
+ const doc = (0, import_smithy_client.take)(data, {
1710
+ knowledgeBaseId: import_smithy_client.expectString,
1711
+ status: import_smithy_client.expectString
1712
+ });
1713
+ Object.assign(contents, doc);
1714
+ return contents;
1715
+ }, "de_DeleteKnowledgeBaseCommand");
1716
+ var de_DeleteKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1717
+ const parsedOutput = {
1718
+ ...output,
1719
+ body: await parseErrorBody(output.body, context)
1720
+ };
1721
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1722
+ switch (errorCode) {
1723
+ case "AccessDeniedException":
1724
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1725
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1726
+ case "ConflictException":
1727
+ case "com.amazonaws.bedrockagent#ConflictException":
1728
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1729
+ case "InternalServerException":
1730
+ case "com.amazonaws.bedrockagent#InternalServerException":
1731
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1732
+ case "ResourceNotFoundException":
1733
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1734
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1735
+ case "ThrottlingException":
1736
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1737
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1738
+ case "ValidationException":
1739
+ case "com.amazonaws.bedrockagent#ValidationException":
1740
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1741
+ default:
1742
+ const parsedBody = parsedOutput.body;
1743
+ return throwDefaultError({
1744
+ output,
1745
+ parsedBody,
1746
+ errorCode
1747
+ });
1748
+ }
1749
+ }, "de_DeleteKnowledgeBaseCommandError");
1750
+ var de_DisassociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1751
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1752
+ return de_DisassociateAgentKnowledgeBaseCommandError(output, context);
1753
+ }
1754
+ const contents = (0, import_smithy_client.map)({
1755
+ $metadata: deserializeMetadata(output)
1756
+ });
1757
+ await (0, import_smithy_client.collectBody)(output.body, context);
1758
+ return contents;
1759
+ }, "de_DisassociateAgentKnowledgeBaseCommand");
1760
+ var de_DisassociateAgentKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1761
+ const parsedOutput = {
1762
+ ...output,
1763
+ body: await parseErrorBody(output.body, context)
1764
+ };
1765
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1766
+ switch (errorCode) {
1767
+ case "AccessDeniedException":
1768
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1769
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1770
+ case "ConflictException":
1771
+ case "com.amazonaws.bedrockagent#ConflictException":
1772
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1773
+ case "InternalServerException":
1774
+ case "com.amazonaws.bedrockagent#InternalServerException":
1775
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1776
+ case "ResourceNotFoundException":
1777
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1778
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1779
+ case "ThrottlingException":
1780
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1781
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1782
+ case "ValidationException":
1783
+ case "com.amazonaws.bedrockagent#ValidationException":
1784
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1785
+ default:
1786
+ const parsedBody = parsedOutput.body;
1787
+ return throwDefaultError({
1788
+ output,
1789
+ parsedBody,
1790
+ errorCode
1791
+ });
1792
+ }
1793
+ }, "de_DisassociateAgentKnowledgeBaseCommandError");
1794
+ var de_GetAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
1795
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1796
+ return de_GetAgentCommandError(output, context);
1797
+ }
1798
+ const contents = (0, import_smithy_client.map)({
1799
+ $metadata: deserializeMetadata(output)
1800
+ });
1801
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1802
+ const doc = (0, import_smithy_client.take)(data, {
1803
+ agent: (_) => de_Agent(_, context)
1804
+ });
1805
+ Object.assign(contents, doc);
1806
+ return contents;
1807
+ }, "de_GetAgentCommand");
1808
+ var de_GetAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1809
+ const parsedOutput = {
1810
+ ...output,
1811
+ body: await parseErrorBody(output.body, context)
1812
+ };
1813
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1814
+ switch (errorCode) {
1815
+ case "AccessDeniedException":
1816
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1817
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1818
+ case "InternalServerException":
1819
+ case "com.amazonaws.bedrockagent#InternalServerException":
1820
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1821
+ case "ResourceNotFoundException":
1822
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1823
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1824
+ case "ThrottlingException":
1825
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1826
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1827
+ case "ValidationException":
1828
+ case "com.amazonaws.bedrockagent#ValidationException":
1829
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1830
+ default:
1831
+ const parsedBody = parsedOutput.body;
1832
+ return throwDefaultError({
1833
+ output,
1834
+ parsedBody,
1835
+ errorCode
1836
+ });
1837
+ }
1838
+ }, "de_GetAgentCommandError");
1839
+ var de_GetAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1840
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1841
+ return de_GetAgentActionGroupCommandError(output, context);
1842
+ }
1843
+ const contents = (0, import_smithy_client.map)({
1844
+ $metadata: deserializeMetadata(output)
1845
+ });
1846
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1847
+ const doc = (0, import_smithy_client.take)(data, {
1848
+ agentActionGroup: (_) => de_AgentActionGroup(_, context)
1849
+ });
1850
+ Object.assign(contents, doc);
1851
+ return contents;
1852
+ }, "de_GetAgentActionGroupCommand");
1853
+ var de_GetAgentActionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1854
+ const parsedOutput = {
1855
+ ...output,
1856
+ body: await parseErrorBody(output.body, context)
1857
+ };
1858
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1859
+ switch (errorCode) {
1860
+ case "AccessDeniedException":
1861
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1862
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1863
+ case "InternalServerException":
1864
+ case "com.amazonaws.bedrockagent#InternalServerException":
1865
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1866
+ case "ResourceNotFoundException":
1867
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1868
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1869
+ case "ThrottlingException":
1870
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1871
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1872
+ case "ValidationException":
1873
+ case "com.amazonaws.bedrockagent#ValidationException":
1874
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1875
+ default:
1876
+ const parsedBody = parsedOutput.body;
1877
+ return throwDefaultError({
1878
+ output,
1879
+ parsedBody,
1880
+ errorCode
1881
+ });
1882
+ }
1883
+ }, "de_GetAgentActionGroupCommandError");
1884
+ var de_GetAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
1885
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1886
+ return de_GetAgentAliasCommandError(output, context);
1887
+ }
1888
+ const contents = (0, import_smithy_client.map)({
1889
+ $metadata: deserializeMetadata(output)
1890
+ });
1891
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1892
+ const doc = (0, import_smithy_client.take)(data, {
1893
+ agentAlias: (_) => de_AgentAlias(_, context)
1894
+ });
1895
+ Object.assign(contents, doc);
1896
+ return contents;
1897
+ }, "de_GetAgentAliasCommand");
1898
+ var de_GetAgentAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1899
+ const parsedOutput = {
1900
+ ...output,
1901
+ body: await parseErrorBody(output.body, context)
1902
+ };
1903
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1904
+ switch (errorCode) {
1905
+ case "AccessDeniedException":
1906
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1907
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1908
+ case "InternalServerException":
1909
+ case "com.amazonaws.bedrockagent#InternalServerException":
1910
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1911
+ case "ResourceNotFoundException":
1912
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1913
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1914
+ case "ThrottlingException":
1915
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1916
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1917
+ case "ValidationException":
1918
+ case "com.amazonaws.bedrockagent#ValidationException":
1919
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1920
+ default:
1921
+ const parsedBody = parsedOutput.body;
1922
+ return throwDefaultError({
1923
+ output,
1924
+ parsedBody,
1925
+ errorCode
1926
+ });
1927
+ }
1928
+ }, "de_GetAgentAliasCommandError");
1929
+ var de_GetAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1930
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1931
+ return de_GetAgentKnowledgeBaseCommandError(output, context);
1932
+ }
1933
+ const contents = (0, import_smithy_client.map)({
1934
+ $metadata: deserializeMetadata(output)
1935
+ });
1936
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1937
+ const doc = (0, import_smithy_client.take)(data, {
1938
+ agentKnowledgeBase: (_) => de_AgentKnowledgeBase(_, context)
1939
+ });
1940
+ Object.assign(contents, doc);
1941
+ return contents;
1942
+ }, "de_GetAgentKnowledgeBaseCommand");
1943
+ var de_GetAgentKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1944
+ const parsedOutput = {
1945
+ ...output,
1946
+ body: await parseErrorBody(output.body, context)
1947
+ };
1948
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1949
+ switch (errorCode) {
1950
+ case "AccessDeniedException":
1951
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1952
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1953
+ case "InternalServerException":
1954
+ case "com.amazonaws.bedrockagent#InternalServerException":
1955
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1956
+ case "ResourceNotFoundException":
1957
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
1958
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1959
+ case "ThrottlingException":
1960
+ case "com.amazonaws.bedrockagent#ThrottlingException":
1961
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1962
+ case "ValidationException":
1963
+ case "com.amazonaws.bedrockagent#ValidationException":
1964
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1965
+ default:
1966
+ const parsedBody = parsedOutput.body;
1967
+ return throwDefaultError({
1968
+ output,
1969
+ parsedBody,
1970
+ errorCode
1971
+ });
1972
+ }
1973
+ }, "de_GetAgentKnowledgeBaseCommandError");
1974
+ var de_GetAgentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1975
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1976
+ return de_GetAgentVersionCommandError(output, context);
1977
+ }
1978
+ const contents = (0, import_smithy_client.map)({
1979
+ $metadata: deserializeMetadata(output)
1980
+ });
1981
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1982
+ const doc = (0, import_smithy_client.take)(data, {
1983
+ agentVersion: (_) => de_AgentVersion(_, context)
1984
+ });
1985
+ Object.assign(contents, doc);
1986
+ return contents;
1987
+ }, "de_GetAgentVersionCommand");
1988
+ var de_GetAgentVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1989
+ const parsedOutput = {
1990
+ ...output,
1991
+ body: await parseErrorBody(output.body, context)
1992
+ };
1993
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1994
+ switch (errorCode) {
1995
+ case "AccessDeniedException":
1996
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
1997
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1998
+ case "InternalServerException":
1999
+ case "com.amazonaws.bedrockagent#InternalServerException":
2000
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2001
+ case "ResourceNotFoundException":
2002
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2003
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2004
+ case "ThrottlingException":
2005
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2006
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2007
+ case "ValidationException":
2008
+ case "com.amazonaws.bedrockagent#ValidationException":
2009
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2010
+ default:
2011
+ const parsedBody = parsedOutput.body;
2012
+ return throwDefaultError({
2013
+ output,
2014
+ parsedBody,
2015
+ errorCode
2016
+ });
2017
+ }
2018
+ }, "de_GetAgentVersionCommandError");
2019
+ var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2020
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2021
+ return de_GetDataSourceCommandError(output, context);
2022
+ }
2023
+ const contents = (0, import_smithy_client.map)({
2024
+ $metadata: deserializeMetadata(output)
2025
+ });
2026
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2027
+ const doc = (0, import_smithy_client.take)(data, {
2028
+ dataSource: (_) => de_DataSource(_, context)
2029
+ });
2030
+ Object.assign(contents, doc);
2031
+ return contents;
2032
+ }, "de_GetDataSourceCommand");
2033
+ var de_GetDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2034
+ const parsedOutput = {
2035
+ ...output,
2036
+ body: await parseErrorBody(output.body, context)
2037
+ };
2038
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2039
+ switch (errorCode) {
2040
+ case "AccessDeniedException":
2041
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2042
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2043
+ case "InternalServerException":
2044
+ case "com.amazonaws.bedrockagent#InternalServerException":
2045
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2046
+ case "ResourceNotFoundException":
2047
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2048
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2049
+ case "ThrottlingException":
2050
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2051
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2052
+ case "ValidationException":
2053
+ case "com.amazonaws.bedrockagent#ValidationException":
2054
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2055
+ default:
2056
+ const parsedBody = parsedOutput.body;
2057
+ return throwDefaultError({
2058
+ output,
2059
+ parsedBody,
2060
+ errorCode
2061
+ });
2062
+ }
2063
+ }, "de_GetDataSourceCommandError");
2064
+ var de_GetIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2065
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2066
+ return de_GetIngestionJobCommandError(output, context);
2067
+ }
2068
+ const contents = (0, import_smithy_client.map)({
2069
+ $metadata: deserializeMetadata(output)
2070
+ });
2071
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2072
+ const doc = (0, import_smithy_client.take)(data, {
2073
+ ingestionJob: (_) => de_IngestionJob(_, context)
2074
+ });
2075
+ Object.assign(contents, doc);
2076
+ return contents;
2077
+ }, "de_GetIngestionJobCommand");
2078
+ var de_GetIngestionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2079
+ const parsedOutput = {
2080
+ ...output,
2081
+ body: await parseErrorBody(output.body, context)
2082
+ };
2083
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2084
+ switch (errorCode) {
2085
+ case "AccessDeniedException":
2086
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2087
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2088
+ case "InternalServerException":
2089
+ case "com.amazonaws.bedrockagent#InternalServerException":
2090
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2091
+ case "ResourceNotFoundException":
2092
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2093
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2094
+ case "ThrottlingException":
2095
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2096
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2097
+ case "ValidationException":
2098
+ case "com.amazonaws.bedrockagent#ValidationException":
2099
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2100
+ default:
2101
+ const parsedBody = parsedOutput.body;
2102
+ return throwDefaultError({
2103
+ output,
2104
+ parsedBody,
2105
+ errorCode
2106
+ });
2107
+ }
2108
+ }, "de_GetIngestionJobCommandError");
2109
+ var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
2110
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2111
+ return de_GetKnowledgeBaseCommandError(output, context);
2112
+ }
2113
+ const contents = (0, import_smithy_client.map)({
2114
+ $metadata: deserializeMetadata(output)
2115
+ });
2116
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2117
+ const doc = (0, import_smithy_client.take)(data, {
2118
+ knowledgeBase: (_) => de_KnowledgeBase(_, context)
2119
+ });
2120
+ Object.assign(contents, doc);
2121
+ return contents;
2122
+ }, "de_GetKnowledgeBaseCommand");
2123
+ var de_GetKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
2124
+ const parsedOutput = {
2125
+ ...output,
2126
+ body: await parseErrorBody(output.body, context)
2127
+ };
2128
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2129
+ switch (errorCode) {
2130
+ case "AccessDeniedException":
2131
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2132
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2133
+ case "InternalServerException":
2134
+ case "com.amazonaws.bedrockagent#InternalServerException":
2135
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2136
+ case "ResourceNotFoundException":
2137
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2138
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2139
+ case "ThrottlingException":
2140
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2141
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2142
+ case "ValidationException":
2143
+ case "com.amazonaws.bedrockagent#ValidationException":
2144
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2145
+ default:
2146
+ const parsedBody = parsedOutput.body;
2147
+ return throwDefaultError({
2148
+ output,
2149
+ parsedBody,
2150
+ errorCode
2151
+ });
2152
+ }
2153
+ }, "de_GetKnowledgeBaseCommandError");
2154
+ var de_ListAgentActionGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
2155
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2156
+ return de_ListAgentActionGroupsCommandError(output, context);
2157
+ }
2158
+ const contents = (0, import_smithy_client.map)({
2159
+ $metadata: deserializeMetadata(output)
2160
+ });
2161
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2162
+ const doc = (0, import_smithy_client.take)(data, {
2163
+ actionGroupSummaries: (_) => de_ActionGroupSummaries(_, context),
2164
+ nextToken: import_smithy_client.expectString
2165
+ });
2166
+ Object.assign(contents, doc);
2167
+ return contents;
2168
+ }, "de_ListAgentActionGroupsCommand");
2169
+ var de_ListAgentActionGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2170
+ const parsedOutput = {
2171
+ ...output,
2172
+ body: await parseErrorBody(output.body, context)
2173
+ };
2174
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2175
+ switch (errorCode) {
2176
+ case "AccessDeniedException":
2177
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2178
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2179
+ case "InternalServerException":
2180
+ case "com.amazonaws.bedrockagent#InternalServerException":
2181
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2182
+ case "ResourceNotFoundException":
2183
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2184
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2185
+ case "ThrottlingException":
2186
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2187
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2188
+ case "ValidationException":
2189
+ case "com.amazonaws.bedrockagent#ValidationException":
2190
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2191
+ default:
2192
+ const parsedBody = parsedOutput.body;
2193
+ return throwDefaultError({
2194
+ output,
2195
+ parsedBody,
2196
+ errorCode
2197
+ });
2198
+ }
2199
+ }, "de_ListAgentActionGroupsCommandError");
2200
+ var de_ListAgentAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
2201
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2202
+ return de_ListAgentAliasesCommandError(output, context);
2203
+ }
2204
+ const contents = (0, import_smithy_client.map)({
2205
+ $metadata: deserializeMetadata(output)
2206
+ });
2207
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2208
+ const doc = (0, import_smithy_client.take)(data, {
2209
+ agentAliasSummaries: (_) => de_AgentAliasSummaries(_, context),
2210
+ nextToken: import_smithy_client.expectString
2211
+ });
2212
+ Object.assign(contents, doc);
2213
+ return contents;
2214
+ }, "de_ListAgentAliasesCommand");
2215
+ var de_ListAgentAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2216
+ const parsedOutput = {
2217
+ ...output,
2218
+ body: await parseErrorBody(output.body, context)
2219
+ };
2220
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2221
+ switch (errorCode) {
2222
+ case "AccessDeniedException":
2223
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2224
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2225
+ case "InternalServerException":
2226
+ case "com.amazonaws.bedrockagent#InternalServerException":
2227
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2228
+ case "ResourceNotFoundException":
2229
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2230
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2231
+ case "ThrottlingException":
2232
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2233
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2234
+ case "ValidationException":
2235
+ case "com.amazonaws.bedrockagent#ValidationException":
2236
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2237
+ default:
2238
+ const parsedBody = parsedOutput.body;
2239
+ return throwDefaultError({
2240
+ output,
2241
+ parsedBody,
2242
+ errorCode
2243
+ });
2244
+ }
2245
+ }, "de_ListAgentAliasesCommandError");
2246
+ var de_ListAgentKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context) => {
2247
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2248
+ return de_ListAgentKnowledgeBasesCommandError(output, context);
2249
+ }
2250
+ const contents = (0, import_smithy_client.map)({
2251
+ $metadata: deserializeMetadata(output)
2252
+ });
2253
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2254
+ const doc = (0, import_smithy_client.take)(data, {
2255
+ agentKnowledgeBaseSummaries: (_) => de_AgentKnowledgeBaseSummaries(_, context),
2256
+ nextToken: import_smithy_client.expectString
2257
+ });
2258
+ Object.assign(contents, doc);
2259
+ return contents;
2260
+ }, "de_ListAgentKnowledgeBasesCommand");
2261
+ var de_ListAgentKnowledgeBasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2262
+ const parsedOutput = {
2263
+ ...output,
2264
+ body: await parseErrorBody(output.body, context)
2265
+ };
2266
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2267
+ switch (errorCode) {
2268
+ case "AccessDeniedException":
2269
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2270
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2271
+ case "InternalServerException":
2272
+ case "com.amazonaws.bedrockagent#InternalServerException":
2273
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2274
+ case "ResourceNotFoundException":
2275
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2276
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2277
+ case "ThrottlingException":
2278
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2279
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2280
+ case "ValidationException":
2281
+ case "com.amazonaws.bedrockagent#ValidationException":
2282
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2283
+ default:
2284
+ const parsedBody = parsedOutput.body;
2285
+ return throwDefaultError({
2286
+ output,
2287
+ parsedBody,
2288
+ errorCode
2289
+ });
2290
+ }
2291
+ }, "de_ListAgentKnowledgeBasesCommandError");
2292
+ var de_ListAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2293
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2294
+ return de_ListAgentsCommandError(output, context);
2295
+ }
2296
+ const contents = (0, import_smithy_client.map)({
2297
+ $metadata: deserializeMetadata(output)
2298
+ });
2299
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2300
+ const doc = (0, import_smithy_client.take)(data, {
2301
+ agentSummaries: (_) => de_AgentSummaries(_, context),
2302
+ nextToken: import_smithy_client.expectString
2303
+ });
2304
+ Object.assign(contents, doc);
2305
+ return contents;
2306
+ }, "de_ListAgentsCommand");
2307
+ var de_ListAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2308
+ const parsedOutput = {
2309
+ ...output,
2310
+ body: await parseErrorBody(output.body, context)
2311
+ };
2312
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2313
+ switch (errorCode) {
2314
+ case "AccessDeniedException":
2315
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2316
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2317
+ case "InternalServerException":
2318
+ case "com.amazonaws.bedrockagent#InternalServerException":
2319
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2320
+ case "ThrottlingException":
2321
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2322
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2323
+ case "ValidationException":
2324
+ case "com.amazonaws.bedrockagent#ValidationException":
2325
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2326
+ default:
2327
+ const parsedBody = parsedOutput.body;
2328
+ return throwDefaultError({
2329
+ output,
2330
+ parsedBody,
2331
+ errorCode
2332
+ });
2333
+ }
2334
+ }, "de_ListAgentsCommandError");
2335
+ var de_ListAgentVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2336
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2337
+ return de_ListAgentVersionsCommandError(output, context);
2338
+ }
2339
+ const contents = (0, import_smithy_client.map)({
2340
+ $metadata: deserializeMetadata(output)
2341
+ });
2342
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2343
+ const doc = (0, import_smithy_client.take)(data, {
2344
+ agentVersionSummaries: (_) => de_AgentVersionSummaries(_, context),
2345
+ nextToken: import_smithy_client.expectString
2346
+ });
2347
+ Object.assign(contents, doc);
2348
+ return contents;
2349
+ }, "de_ListAgentVersionsCommand");
2350
+ var de_ListAgentVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2351
+ const parsedOutput = {
2352
+ ...output,
2353
+ body: await parseErrorBody(output.body, context)
2354
+ };
2355
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2356
+ switch (errorCode) {
2357
+ case "AccessDeniedException":
2358
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2359
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2360
+ case "InternalServerException":
2361
+ case "com.amazonaws.bedrockagent#InternalServerException":
2362
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2363
+ case "ResourceNotFoundException":
2364
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2365
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2366
+ case "ThrottlingException":
2367
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2368
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2369
+ case "ValidationException":
2370
+ case "com.amazonaws.bedrockagent#ValidationException":
2371
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2372
+ default:
2373
+ const parsedBody = parsedOutput.body;
2374
+ return throwDefaultError({
2375
+ output,
2376
+ parsedBody,
2377
+ errorCode
2378
+ });
2379
+ }
2380
+ }, "de_ListAgentVersionsCommandError");
2381
+ var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
2382
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2383
+ return de_ListDataSourcesCommandError(output, context);
2384
+ }
2385
+ const contents = (0, import_smithy_client.map)({
2386
+ $metadata: deserializeMetadata(output)
2387
+ });
2388
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2389
+ const doc = (0, import_smithy_client.take)(data, {
2390
+ dataSourceSummaries: (_) => de_DataSourceSummaries(_, context),
2391
+ nextToken: import_smithy_client.expectString
2392
+ });
2393
+ Object.assign(contents, doc);
2394
+ return contents;
2395
+ }, "de_ListDataSourcesCommand");
2396
+ var de_ListDataSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2397
+ const parsedOutput = {
2398
+ ...output,
2399
+ body: await parseErrorBody(output.body, context)
2400
+ };
2401
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2402
+ switch (errorCode) {
2403
+ case "AccessDeniedException":
2404
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2405
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2406
+ case "InternalServerException":
2407
+ case "com.amazonaws.bedrockagent#InternalServerException":
2408
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2409
+ case "ResourceNotFoundException":
2410
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2411
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2412
+ case "ThrottlingException":
2413
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2414
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2415
+ case "ValidationException":
2416
+ case "com.amazonaws.bedrockagent#ValidationException":
2417
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2418
+ default:
2419
+ const parsedBody = parsedOutput.body;
2420
+ return throwDefaultError({
2421
+ output,
2422
+ parsedBody,
2423
+ errorCode
2424
+ });
2425
+ }
2426
+ }, "de_ListDataSourcesCommandError");
2427
+ var de_ListIngestionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
2428
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2429
+ return de_ListIngestionJobsCommandError(output, context);
2430
+ }
2431
+ const contents = (0, import_smithy_client.map)({
2432
+ $metadata: deserializeMetadata(output)
2433
+ });
2434
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2435
+ const doc = (0, import_smithy_client.take)(data, {
2436
+ ingestionJobSummaries: (_) => de_IngestionJobSummaries(_, context),
2437
+ nextToken: import_smithy_client.expectString
2438
+ });
2439
+ Object.assign(contents, doc);
2440
+ return contents;
2441
+ }, "de_ListIngestionJobsCommand");
2442
+ var de_ListIngestionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2443
+ const parsedOutput = {
2444
+ ...output,
2445
+ body: await parseErrorBody(output.body, context)
2446
+ };
2447
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2448
+ switch (errorCode) {
2449
+ case "AccessDeniedException":
2450
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2451
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2452
+ case "InternalServerException":
2453
+ case "com.amazonaws.bedrockagent#InternalServerException":
2454
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2455
+ case "ResourceNotFoundException":
2456
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2457
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2458
+ case "ThrottlingException":
2459
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2460
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2461
+ case "ValidationException":
2462
+ case "com.amazonaws.bedrockagent#ValidationException":
2463
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2464
+ default:
2465
+ const parsedBody = parsedOutput.body;
2466
+ return throwDefaultError({
2467
+ output,
2468
+ parsedBody,
2469
+ errorCode
2470
+ });
2471
+ }
2472
+ }, "de_ListIngestionJobsCommandError");
2473
+ var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context) => {
2474
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2475
+ return de_ListKnowledgeBasesCommandError(output, context);
2476
+ }
2477
+ const contents = (0, import_smithy_client.map)({
2478
+ $metadata: deserializeMetadata(output)
2479
+ });
2480
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2481
+ const doc = (0, import_smithy_client.take)(data, {
2482
+ knowledgeBaseSummaries: (_) => de_KnowledgeBaseSummaries(_, context),
2483
+ nextToken: import_smithy_client.expectString
2484
+ });
2485
+ Object.assign(contents, doc);
2486
+ return contents;
2487
+ }, "de_ListKnowledgeBasesCommand");
2488
+ var de_ListKnowledgeBasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2489
+ const parsedOutput = {
2490
+ ...output,
2491
+ body: await parseErrorBody(output.body, context)
2492
+ };
2493
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2494
+ switch (errorCode) {
2495
+ case "AccessDeniedException":
2496
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2497
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2498
+ case "InternalServerException":
2499
+ case "com.amazonaws.bedrockagent#InternalServerException":
2500
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2501
+ case "ThrottlingException":
2502
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2503
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2504
+ case "ValidationException":
2505
+ case "com.amazonaws.bedrockagent#ValidationException":
2506
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2507
+ default:
2508
+ const parsedBody = parsedOutput.body;
2509
+ return throwDefaultError({
2510
+ output,
2511
+ parsedBody,
2512
+ errorCode
2513
+ });
2514
+ }
2515
+ }, "de_ListKnowledgeBasesCommandError");
2516
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2517
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2518
+ return de_ListTagsForResourceCommandError(output, context);
2519
+ }
2520
+ const contents = (0, import_smithy_client.map)({
2521
+ $metadata: deserializeMetadata(output)
2522
+ });
2523
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2524
+ const doc = (0, import_smithy_client.take)(data, {
2525
+ tags: import_smithy_client._json
2526
+ });
2527
+ Object.assign(contents, doc);
2528
+ return contents;
2529
+ }, "de_ListTagsForResourceCommand");
2530
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2531
+ const parsedOutput = {
2532
+ ...output,
2533
+ body: await parseErrorBody(output.body, context)
2534
+ };
2535
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2536
+ switch (errorCode) {
2537
+ case "AccessDeniedException":
2538
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2539
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2540
+ case "InternalServerException":
2541
+ case "com.amazonaws.bedrockagent#InternalServerException":
2542
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2543
+ case "ResourceNotFoundException":
2544
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2545
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2546
+ case "ThrottlingException":
2547
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2548
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2549
+ case "ValidationException":
2550
+ case "com.amazonaws.bedrockagent#ValidationException":
2551
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2552
+ default:
2553
+ const parsedBody = parsedOutput.body;
2554
+ return throwDefaultError({
2555
+ output,
2556
+ parsedBody,
2557
+ errorCode
2558
+ });
2559
+ }
2560
+ }, "de_ListTagsForResourceCommandError");
2561
+ var de_PrepareAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
2562
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2563
+ return de_PrepareAgentCommandError(output, context);
2564
+ }
2565
+ const contents = (0, import_smithy_client.map)({
2566
+ $metadata: deserializeMetadata(output)
2567
+ });
2568
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2569
+ const doc = (0, import_smithy_client.take)(data, {
2570
+ agentId: import_smithy_client.expectString,
2571
+ agentStatus: import_smithy_client.expectString,
2572
+ agentVersion: import_smithy_client.expectString,
2573
+ preparedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2574
+ });
2575
+ Object.assign(contents, doc);
2576
+ return contents;
2577
+ }, "de_PrepareAgentCommand");
2578
+ var de_PrepareAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2579
+ const parsedOutput = {
2580
+ ...output,
2581
+ body: await parseErrorBody(output.body, context)
2582
+ };
2583
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2584
+ switch (errorCode) {
2585
+ case "AccessDeniedException":
2586
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2587
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2588
+ case "ConflictException":
2589
+ case "com.amazonaws.bedrockagent#ConflictException":
2590
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2591
+ case "InternalServerException":
2592
+ case "com.amazonaws.bedrockagent#InternalServerException":
2593
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2594
+ case "ResourceNotFoundException":
2595
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2596
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2597
+ case "ServiceQuotaExceededException":
2598
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
2599
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2600
+ case "ThrottlingException":
2601
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2602
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2603
+ case "ValidationException":
2604
+ case "com.amazonaws.bedrockagent#ValidationException":
2605
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2606
+ default:
2607
+ const parsedBody = parsedOutput.body;
2608
+ return throwDefaultError({
2609
+ output,
2610
+ parsedBody,
2611
+ errorCode
2612
+ });
2613
+ }
2614
+ }, "de_PrepareAgentCommandError");
2615
+ var de_StartIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2616
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2617
+ return de_StartIngestionJobCommandError(output, context);
2618
+ }
2619
+ const contents = (0, import_smithy_client.map)({
2620
+ $metadata: deserializeMetadata(output)
2621
+ });
2622
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2623
+ const doc = (0, import_smithy_client.take)(data, {
2624
+ ingestionJob: (_) => de_IngestionJob(_, context)
2625
+ });
2626
+ Object.assign(contents, doc);
2627
+ return contents;
2628
+ }, "de_StartIngestionJobCommand");
2629
+ var de_StartIngestionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2630
+ const parsedOutput = {
2631
+ ...output,
2632
+ body: await parseErrorBody(output.body, context)
2633
+ };
2634
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2635
+ switch (errorCode) {
2636
+ case "AccessDeniedException":
2637
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2638
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2639
+ case "ConflictException":
2640
+ case "com.amazonaws.bedrockagent#ConflictException":
2641
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2642
+ case "InternalServerException":
2643
+ case "com.amazonaws.bedrockagent#InternalServerException":
2644
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2645
+ case "ResourceNotFoundException":
2646
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2647
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2648
+ case "ServiceQuotaExceededException":
2649
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
2650
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2651
+ case "ThrottlingException":
2652
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2653
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2654
+ case "ValidationException":
2655
+ case "com.amazonaws.bedrockagent#ValidationException":
2656
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2657
+ default:
2658
+ const parsedBody = parsedOutput.body;
2659
+ return throwDefaultError({
2660
+ output,
2661
+ parsedBody,
2662
+ errorCode
2663
+ });
2664
+ }
2665
+ }, "de_StartIngestionJobCommandError");
2666
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2667
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2668
+ return de_TagResourceCommandError(output, context);
2669
+ }
2670
+ const contents = (0, import_smithy_client.map)({
2671
+ $metadata: deserializeMetadata(output)
2672
+ });
2673
+ await (0, import_smithy_client.collectBody)(output.body, context);
2674
+ return contents;
2675
+ }, "de_TagResourceCommand");
2676
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2677
+ const parsedOutput = {
2678
+ ...output,
2679
+ body: await parseErrorBody(output.body, context)
2680
+ };
2681
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2682
+ switch (errorCode) {
2683
+ case "AccessDeniedException":
2684
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2685
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2686
+ case "InternalServerException":
2687
+ case "com.amazonaws.bedrockagent#InternalServerException":
2688
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2689
+ case "ResourceNotFoundException":
2690
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2691
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2692
+ case "ServiceQuotaExceededException":
2693
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
2694
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2695
+ case "ThrottlingException":
2696
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2697
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2698
+ case "ValidationException":
2699
+ case "com.amazonaws.bedrockagent#ValidationException":
2700
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2701
+ default:
2702
+ const parsedBody = parsedOutput.body;
2703
+ return throwDefaultError({
2704
+ output,
2705
+ parsedBody,
2706
+ errorCode
2707
+ });
2708
+ }
2709
+ }, "de_TagResourceCommandError");
2710
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2711
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2712
+ return de_UntagResourceCommandError(output, context);
2713
+ }
2714
+ const contents = (0, import_smithy_client.map)({
2715
+ $metadata: deserializeMetadata(output)
2716
+ });
2717
+ await (0, import_smithy_client.collectBody)(output.body, context);
2718
+ return contents;
2719
+ }, "de_UntagResourceCommand");
2720
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2721
+ const parsedOutput = {
2722
+ ...output,
2723
+ body: await parseErrorBody(output.body, context)
2724
+ };
2725
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2726
+ switch (errorCode) {
2727
+ case "AccessDeniedException":
2728
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2729
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2730
+ case "InternalServerException":
2731
+ case "com.amazonaws.bedrockagent#InternalServerException":
2732
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2733
+ case "ResourceNotFoundException":
2734
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2735
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2736
+ case "ThrottlingException":
2737
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2738
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2739
+ case "ValidationException":
2740
+ case "com.amazonaws.bedrockagent#ValidationException":
2741
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2742
+ default:
2743
+ const parsedBody = parsedOutput.body;
2744
+ return throwDefaultError({
2745
+ output,
2746
+ parsedBody,
2747
+ errorCode
2748
+ });
2749
+ }
2750
+ }, "de_UntagResourceCommandError");
2751
+ var de_UpdateAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
2752
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2753
+ return de_UpdateAgentCommandError(output, context);
2754
+ }
2755
+ const contents = (0, import_smithy_client.map)({
2756
+ $metadata: deserializeMetadata(output)
2757
+ });
2758
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2759
+ const doc = (0, import_smithy_client.take)(data, {
2760
+ agent: (_) => de_Agent(_, context)
2761
+ });
2762
+ Object.assign(contents, doc);
2763
+ return contents;
2764
+ }, "de_UpdateAgentCommand");
2765
+ var de_UpdateAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2766
+ const parsedOutput = {
2767
+ ...output,
2768
+ body: await parseErrorBody(output.body, context)
2769
+ };
2770
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2771
+ switch (errorCode) {
2772
+ case "AccessDeniedException":
2773
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2774
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2775
+ case "ConflictException":
2776
+ case "com.amazonaws.bedrockagent#ConflictException":
2777
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2778
+ case "InternalServerException":
2779
+ case "com.amazonaws.bedrockagent#InternalServerException":
2780
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2781
+ case "ResourceNotFoundException":
2782
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2783
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2784
+ case "ServiceQuotaExceededException":
2785
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
2786
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2787
+ case "ThrottlingException":
2788
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2789
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2790
+ case "ValidationException":
2791
+ case "com.amazonaws.bedrockagent#ValidationException":
2792
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2793
+ default:
2794
+ const parsedBody = parsedOutput.body;
2795
+ return throwDefaultError({
2796
+ output,
2797
+ parsedBody,
2798
+ errorCode
2799
+ });
2800
+ }
2801
+ }, "de_UpdateAgentCommandError");
2802
+ var de_UpdateAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2803
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2804
+ return de_UpdateAgentActionGroupCommandError(output, context);
2805
+ }
2806
+ const contents = (0, import_smithy_client.map)({
2807
+ $metadata: deserializeMetadata(output)
2808
+ });
2809
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2810
+ const doc = (0, import_smithy_client.take)(data, {
2811
+ agentActionGroup: (_) => de_AgentActionGroup(_, context)
2812
+ });
2813
+ Object.assign(contents, doc);
2814
+ return contents;
2815
+ }, "de_UpdateAgentActionGroupCommand");
2816
+ var de_UpdateAgentActionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2817
+ const parsedOutput = {
2818
+ ...output,
2819
+ body: await parseErrorBody(output.body, context)
2820
+ };
2821
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2822
+ switch (errorCode) {
2823
+ case "AccessDeniedException":
2824
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2825
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2826
+ case "ConflictException":
2827
+ case "com.amazonaws.bedrockagent#ConflictException":
2828
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2829
+ case "InternalServerException":
2830
+ case "com.amazonaws.bedrockagent#InternalServerException":
2831
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2832
+ case "ResourceNotFoundException":
2833
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2834
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2835
+ case "ServiceQuotaExceededException":
2836
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
2837
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2838
+ case "ThrottlingException":
2839
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2840
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2841
+ case "ValidationException":
2842
+ case "com.amazonaws.bedrockagent#ValidationException":
2843
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2844
+ default:
2845
+ const parsedBody = parsedOutput.body;
2846
+ return throwDefaultError({
2847
+ output,
2848
+ parsedBody,
2849
+ errorCode
2850
+ });
2851
+ }
2852
+ }, "de_UpdateAgentActionGroupCommandError");
2853
+ var de_UpdateAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
2854
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2855
+ return de_UpdateAgentAliasCommandError(output, context);
2856
+ }
2857
+ const contents = (0, import_smithy_client.map)({
2858
+ $metadata: deserializeMetadata(output)
2859
+ });
2860
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2861
+ const doc = (0, import_smithy_client.take)(data, {
2862
+ agentAlias: (_) => de_AgentAlias(_, context)
2863
+ });
2864
+ Object.assign(contents, doc);
2865
+ return contents;
2866
+ }, "de_UpdateAgentAliasCommand");
2867
+ var de_UpdateAgentAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
2868
+ const parsedOutput = {
2869
+ ...output,
2870
+ body: await parseErrorBody(output.body, context)
2871
+ };
2872
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2873
+ switch (errorCode) {
2874
+ case "AccessDeniedException":
2875
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2876
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2877
+ case "ConflictException":
2878
+ case "com.amazonaws.bedrockagent#ConflictException":
2879
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2880
+ case "InternalServerException":
2881
+ case "com.amazonaws.bedrockagent#InternalServerException":
2882
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2883
+ case "ResourceNotFoundException":
2884
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2885
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2886
+ case "ServiceQuotaExceededException":
2887
+ case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
2888
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2889
+ case "ThrottlingException":
2890
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2891
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2892
+ case "ValidationException":
2893
+ case "com.amazonaws.bedrockagent#ValidationException":
2894
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2895
+ default:
2896
+ const parsedBody = parsedOutput.body;
2897
+ return throwDefaultError({
2898
+ output,
2899
+ parsedBody,
2900
+ errorCode
2901
+ });
2902
+ }
2903
+ }, "de_UpdateAgentAliasCommandError");
2904
+ var de_UpdateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
2905
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2906
+ return de_UpdateAgentKnowledgeBaseCommandError(output, context);
2907
+ }
2908
+ const contents = (0, import_smithy_client.map)({
2909
+ $metadata: deserializeMetadata(output)
2910
+ });
2911
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2912
+ const doc = (0, import_smithy_client.take)(data, {
2913
+ agentKnowledgeBase: (_) => de_AgentKnowledgeBase(_, context)
2914
+ });
2915
+ Object.assign(contents, doc);
2916
+ return contents;
2917
+ }, "de_UpdateAgentKnowledgeBaseCommand");
2918
+ var de_UpdateAgentKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
2919
+ const parsedOutput = {
2920
+ ...output,
2921
+ body: await parseErrorBody(output.body, context)
2922
+ };
2923
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2924
+ switch (errorCode) {
2925
+ case "AccessDeniedException":
2926
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2927
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2928
+ case "ConflictException":
2929
+ case "com.amazonaws.bedrockagent#ConflictException":
2930
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2931
+ case "InternalServerException":
2932
+ case "com.amazonaws.bedrockagent#InternalServerException":
2933
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2934
+ case "ResourceNotFoundException":
2935
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2936
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2937
+ case "ThrottlingException":
2938
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2939
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2940
+ case "ValidationException":
2941
+ case "com.amazonaws.bedrockagent#ValidationException":
2942
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2943
+ default:
2944
+ const parsedBody = parsedOutput.body;
2945
+ return throwDefaultError({
2946
+ output,
2947
+ parsedBody,
2948
+ errorCode
2949
+ });
2950
+ }
2951
+ }, "de_UpdateAgentKnowledgeBaseCommandError");
2952
+ var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2954
+ return de_UpdateDataSourceCommandError(output, context);
2955
+ }
2956
+ const contents = (0, import_smithy_client.map)({
2957
+ $metadata: deserializeMetadata(output)
2958
+ });
2959
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2960
+ const doc = (0, import_smithy_client.take)(data, {
2961
+ dataSource: (_) => de_DataSource(_, context)
2962
+ });
2963
+ Object.assign(contents, doc);
2964
+ return contents;
2965
+ }, "de_UpdateDataSourceCommand");
2966
+ var de_UpdateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2967
+ const parsedOutput = {
2968
+ ...output,
2969
+ body: await parseErrorBody(output.body, context)
2970
+ };
2971
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2972
+ switch (errorCode) {
2973
+ case "AccessDeniedException":
2974
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
2975
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2976
+ case "ConflictException":
2977
+ case "com.amazonaws.bedrockagent#ConflictException":
2978
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2979
+ case "InternalServerException":
2980
+ case "com.amazonaws.bedrockagent#InternalServerException":
2981
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2982
+ case "ResourceNotFoundException":
2983
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
2984
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2985
+ case "ThrottlingException":
2986
+ case "com.amazonaws.bedrockagent#ThrottlingException":
2987
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2988
+ case "ValidationException":
2989
+ case "com.amazonaws.bedrockagent#ValidationException":
2990
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2991
+ default:
2992
+ const parsedBody = parsedOutput.body;
2993
+ return throwDefaultError({
2994
+ output,
2995
+ parsedBody,
2996
+ errorCode
2997
+ });
2998
+ }
2999
+ }, "de_UpdateDataSourceCommandError");
3000
+ var de_UpdateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
3001
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3002
+ return de_UpdateKnowledgeBaseCommandError(output, context);
3003
+ }
3004
+ const contents = (0, import_smithy_client.map)({
3005
+ $metadata: deserializeMetadata(output)
3006
+ });
3007
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3008
+ const doc = (0, import_smithy_client.take)(data, {
3009
+ knowledgeBase: (_) => de_KnowledgeBase(_, context)
3010
+ });
3011
+ Object.assign(contents, doc);
3012
+ return contents;
3013
+ }, "de_UpdateKnowledgeBaseCommand");
3014
+ var de_UpdateKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
3015
+ const parsedOutput = {
3016
+ ...output,
3017
+ body: await parseErrorBody(output.body, context)
3018
+ };
3019
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3020
+ switch (errorCode) {
3021
+ case "AccessDeniedException":
3022
+ case "com.amazonaws.bedrockagent#AccessDeniedException":
3023
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3024
+ case "ConflictException":
3025
+ case "com.amazonaws.bedrockagent#ConflictException":
3026
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3027
+ case "InternalServerException":
3028
+ case "com.amazonaws.bedrockagent#InternalServerException":
3029
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3030
+ case "ResourceNotFoundException":
3031
+ case "com.amazonaws.bedrockagent#ResourceNotFoundException":
3032
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3033
+ case "ThrottlingException":
3034
+ case "com.amazonaws.bedrockagent#ThrottlingException":
3035
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3036
+ case "ValidationException":
3037
+ case "com.amazonaws.bedrockagent#ValidationException":
3038
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3039
+ default:
3040
+ const parsedBody = parsedOutput.body;
3041
+ return throwDefaultError({
3042
+ output,
3043
+ parsedBody,
3044
+ errorCode
3045
+ });
3046
+ }
3047
+ }, "de_UpdateKnowledgeBaseCommandError");
3048
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(BedrockAgentServiceException);
3049
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3050
+ const contents = (0, import_smithy_client.map)({});
3051
+ const data = parsedOutput.body;
3052
+ const doc = (0, import_smithy_client.take)(data, {
3053
+ message: import_smithy_client.expectString
3054
+ });
3055
+ Object.assign(contents, doc);
3056
+ const exception = new AccessDeniedException({
3057
+ $metadata: deserializeMetadata(parsedOutput),
3058
+ ...contents
3059
+ });
3060
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3061
+ }, "de_AccessDeniedExceptionRes");
3062
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3063
+ const contents = (0, import_smithy_client.map)({});
3064
+ const data = parsedOutput.body;
3065
+ const doc = (0, import_smithy_client.take)(data, {
3066
+ message: import_smithy_client.expectString
3067
+ });
3068
+ Object.assign(contents, doc);
3069
+ const exception = new ConflictException({
3070
+ $metadata: deserializeMetadata(parsedOutput),
3071
+ ...contents
3072
+ });
3073
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3074
+ }, "de_ConflictExceptionRes");
3075
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3076
+ const contents = (0, import_smithy_client.map)({});
3077
+ const data = parsedOutput.body;
3078
+ const doc = (0, import_smithy_client.take)(data, {
3079
+ message: import_smithy_client.expectString
3080
+ });
3081
+ Object.assign(contents, doc);
3082
+ const exception = new InternalServerException({
3083
+ $metadata: deserializeMetadata(parsedOutput),
3084
+ ...contents
3085
+ });
3086
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3087
+ }, "de_InternalServerExceptionRes");
3088
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3089
+ const contents = (0, import_smithy_client.map)({});
3090
+ const data = parsedOutput.body;
3091
+ const doc = (0, import_smithy_client.take)(data, {
3092
+ message: import_smithy_client.expectString
3093
+ });
3094
+ Object.assign(contents, doc);
3095
+ const exception = new ResourceNotFoundException({
3096
+ $metadata: deserializeMetadata(parsedOutput),
3097
+ ...contents
3098
+ });
3099
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3100
+ }, "de_ResourceNotFoundExceptionRes");
3101
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3102
+ const contents = (0, import_smithy_client.map)({});
3103
+ const data = parsedOutput.body;
3104
+ const doc = (0, import_smithy_client.take)(data, {
3105
+ message: import_smithy_client.expectString
3106
+ });
3107
+ Object.assign(contents, doc);
3108
+ const exception = new ServiceQuotaExceededException({
3109
+ $metadata: deserializeMetadata(parsedOutput),
3110
+ ...contents
3111
+ });
3112
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3113
+ }, "de_ServiceQuotaExceededExceptionRes");
3114
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3115
+ const contents = (0, import_smithy_client.map)({});
3116
+ const data = parsedOutput.body;
3117
+ const doc = (0, import_smithy_client.take)(data, {
3118
+ message: import_smithy_client.expectString
3119
+ });
3120
+ Object.assign(contents, doc);
3121
+ const exception = new ThrottlingException({
3122
+ $metadata: deserializeMetadata(parsedOutput),
3123
+ ...contents
3124
+ });
3125
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3126
+ }, "de_ThrottlingExceptionRes");
3127
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3128
+ const contents = (0, import_smithy_client.map)({});
3129
+ const data = parsedOutput.body;
3130
+ const doc = (0, import_smithy_client.take)(data, {
3131
+ fieldList: import_smithy_client._json,
3132
+ message: import_smithy_client.expectString
3133
+ });
3134
+ Object.assign(contents, doc);
3135
+ const exception = new ValidationException({
3136
+ $metadata: deserializeMetadata(parsedOutput),
3137
+ ...contents
3138
+ });
3139
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3140
+ }, "de_ValidationExceptionRes");
3141
+ var se_InferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
3142
+ return (0, import_smithy_client.take)(input, {
3143
+ maximumLength: [],
3144
+ stopSequences: import_smithy_client._json,
3145
+ temperature: import_smithy_client.serializeFloat,
3146
+ topK: [],
3147
+ topP: import_smithy_client.serializeFloat
3148
+ });
3149
+ }, "se_InferenceConfiguration");
3150
+ var se_PromptConfiguration = /* @__PURE__ */ __name((input, context) => {
3151
+ return (0, import_smithy_client.take)(input, {
3152
+ basePromptTemplate: [],
3153
+ inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
3154
+ parserMode: [],
3155
+ promptCreationMode: [],
3156
+ promptState: [],
3157
+ promptType: []
3158
+ });
3159
+ }, "se_PromptConfiguration");
3160
+ var se_PromptConfigurations = /* @__PURE__ */ __name((input, context) => {
3161
+ return input.filter((e) => e != null).map((entry) => {
3162
+ return se_PromptConfiguration(entry, context);
3163
+ });
3164
+ }, "se_PromptConfigurations");
3165
+ var se_PromptOverrideConfiguration = /* @__PURE__ */ __name((input, context) => {
3166
+ return (0, import_smithy_client.take)(input, {
3167
+ overrideLambda: [],
3168
+ promptConfigurations: (_) => se_PromptConfigurations(_, context)
3169
+ });
3170
+ }, "se_PromptOverrideConfiguration");
3171
+ var de_ActionGroupSummaries = /* @__PURE__ */ __name((output, context) => {
3172
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3173
+ return de_ActionGroupSummary(entry, context);
3174
+ });
3175
+ return retVal;
3176
+ }, "de_ActionGroupSummaries");
3177
+ var de_ActionGroupSummary = /* @__PURE__ */ __name((output, context) => {
3178
+ return (0, import_smithy_client.take)(output, {
3179
+ actionGroupId: import_smithy_client.expectString,
3180
+ actionGroupName: import_smithy_client.expectString,
3181
+ actionGroupState: import_smithy_client.expectString,
3182
+ description: import_smithy_client.expectString,
3183
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3184
+ });
3185
+ }, "de_ActionGroupSummary");
3186
+ var de_Agent = /* @__PURE__ */ __name((output, context) => {
3187
+ return (0, import_smithy_client.take)(output, {
3188
+ agentArn: import_smithy_client.expectString,
3189
+ agentId: import_smithy_client.expectString,
3190
+ agentName: import_smithy_client.expectString,
3191
+ agentResourceRoleArn: import_smithy_client.expectString,
3192
+ agentStatus: import_smithy_client.expectString,
3193
+ agentVersion: import_smithy_client.expectString,
3194
+ clientToken: import_smithy_client.expectString,
3195
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3196
+ customerEncryptionKeyArn: import_smithy_client.expectString,
3197
+ description: import_smithy_client.expectString,
3198
+ failureReasons: import_smithy_client._json,
3199
+ foundationModel: import_smithy_client.expectString,
3200
+ idleSessionTTLInSeconds: import_smithy_client.expectInt32,
3201
+ instruction: import_smithy_client.expectString,
3202
+ preparedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3203
+ promptOverrideConfiguration: (_) => de_PromptOverrideConfiguration(_, context),
3204
+ recommendedActions: import_smithy_client._json,
3205
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3206
+ });
3207
+ }, "de_Agent");
3208
+ var de_AgentActionGroup = /* @__PURE__ */ __name((output, context) => {
3209
+ return (0, import_smithy_client.take)(output, {
3210
+ actionGroupExecutor: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
3211
+ actionGroupId: import_smithy_client.expectString,
3212
+ actionGroupName: import_smithy_client.expectString,
3213
+ actionGroupState: import_smithy_client.expectString,
3214
+ agentId: import_smithy_client.expectString,
3215
+ agentVersion: import_smithy_client.expectString,
3216
+ apiSchema: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
3217
+ clientToken: import_smithy_client.expectString,
3218
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3219
+ description: import_smithy_client.expectString,
3220
+ parentActionSignature: import_smithy_client.expectString,
3221
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3222
+ });
3223
+ }, "de_AgentActionGroup");
3224
+ var de_AgentAlias = /* @__PURE__ */ __name((output, context) => {
3225
+ return (0, import_smithy_client.take)(output, {
3226
+ agentAliasArn: import_smithy_client.expectString,
3227
+ agentAliasHistoryEvents: (_) => de_AgentAliasHistoryEvents(_, context),
3228
+ agentAliasId: import_smithy_client.expectString,
3229
+ agentAliasName: import_smithy_client.expectString,
3230
+ agentAliasStatus: import_smithy_client.expectString,
3231
+ agentId: import_smithy_client.expectString,
3232
+ clientToken: import_smithy_client.expectString,
3233
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3234
+ description: import_smithy_client.expectString,
3235
+ routingConfiguration: import_smithy_client._json,
3236
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3237
+ });
3238
+ }, "de_AgentAlias");
3239
+ var de_AgentAliasHistoryEvent = /* @__PURE__ */ __name((output, context) => {
3240
+ return (0, import_smithy_client.take)(output, {
3241
+ endDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3242
+ routingConfiguration: import_smithy_client._json,
3243
+ startDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3244
+ });
3245
+ }, "de_AgentAliasHistoryEvent");
3246
+ var de_AgentAliasHistoryEvents = /* @__PURE__ */ __name((output, context) => {
3247
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3248
+ return de_AgentAliasHistoryEvent(entry, context);
3249
+ });
3250
+ return retVal;
3251
+ }, "de_AgentAliasHistoryEvents");
3252
+ var de_AgentAliasSummaries = /* @__PURE__ */ __name((output, context) => {
3253
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3254
+ return de_AgentAliasSummary(entry, context);
3255
+ });
3256
+ return retVal;
3257
+ }, "de_AgentAliasSummaries");
3258
+ var de_AgentAliasSummary = /* @__PURE__ */ __name((output, context) => {
3259
+ return (0, import_smithy_client.take)(output, {
3260
+ agentAliasId: import_smithy_client.expectString,
3261
+ agentAliasName: import_smithy_client.expectString,
3262
+ agentAliasStatus: import_smithy_client.expectString,
3263
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3264
+ description: import_smithy_client.expectString,
3265
+ routingConfiguration: import_smithy_client._json,
3266
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3267
+ });
3268
+ }, "de_AgentAliasSummary");
3269
+ var de_AgentKnowledgeBase = /* @__PURE__ */ __name((output, context) => {
3270
+ return (0, import_smithy_client.take)(output, {
3271
+ agentId: import_smithy_client.expectString,
3272
+ agentVersion: import_smithy_client.expectString,
3273
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3274
+ description: import_smithy_client.expectString,
3275
+ knowledgeBaseId: import_smithy_client.expectString,
3276
+ knowledgeBaseState: import_smithy_client.expectString,
3277
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3278
+ });
3279
+ }, "de_AgentKnowledgeBase");
3280
+ var de_AgentKnowledgeBaseSummaries = /* @__PURE__ */ __name((output, context) => {
3281
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3282
+ return de_AgentKnowledgeBaseSummary(entry, context);
3283
+ });
3284
+ return retVal;
3285
+ }, "de_AgentKnowledgeBaseSummaries");
3286
+ var de_AgentKnowledgeBaseSummary = /* @__PURE__ */ __name((output, context) => {
3287
+ return (0, import_smithy_client.take)(output, {
3288
+ description: import_smithy_client.expectString,
3289
+ knowledgeBaseId: import_smithy_client.expectString,
3290
+ knowledgeBaseState: import_smithy_client.expectString,
3291
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3292
+ });
3293
+ }, "de_AgentKnowledgeBaseSummary");
3294
+ var de_AgentSummaries = /* @__PURE__ */ __name((output, context) => {
3295
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3296
+ return de_AgentSummary(entry, context);
3297
+ });
3298
+ return retVal;
3299
+ }, "de_AgentSummaries");
3300
+ var de_AgentSummary = /* @__PURE__ */ __name((output, context) => {
3301
+ return (0, import_smithy_client.take)(output, {
3302
+ agentId: import_smithy_client.expectString,
3303
+ agentName: import_smithy_client.expectString,
3304
+ agentStatus: import_smithy_client.expectString,
3305
+ description: import_smithy_client.expectString,
3306
+ latestAgentVersion: import_smithy_client.expectString,
3307
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3308
+ });
3309
+ }, "de_AgentSummary");
3310
+ var de_AgentVersion = /* @__PURE__ */ __name((output, context) => {
3311
+ return (0, import_smithy_client.take)(output, {
3312
+ agentArn: import_smithy_client.expectString,
3313
+ agentId: import_smithy_client.expectString,
3314
+ agentName: import_smithy_client.expectString,
3315
+ agentResourceRoleArn: import_smithy_client.expectString,
3316
+ agentStatus: import_smithy_client.expectString,
3317
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3318
+ customerEncryptionKeyArn: import_smithy_client.expectString,
3319
+ description: import_smithy_client.expectString,
3320
+ failureReasons: import_smithy_client._json,
3321
+ foundationModel: import_smithy_client.expectString,
3322
+ idleSessionTTLInSeconds: import_smithy_client.expectInt32,
3323
+ instruction: import_smithy_client.expectString,
3324
+ promptOverrideConfiguration: (_) => de_PromptOverrideConfiguration(_, context),
3325
+ recommendedActions: import_smithy_client._json,
3326
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3327
+ version: import_smithy_client.expectString
3328
+ });
3329
+ }, "de_AgentVersion");
3330
+ var de_AgentVersionSummaries = /* @__PURE__ */ __name((output, context) => {
3331
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3332
+ return de_AgentVersionSummary(entry, context);
3333
+ });
3334
+ return retVal;
3335
+ }, "de_AgentVersionSummaries");
3336
+ var de_AgentVersionSummary = /* @__PURE__ */ __name((output, context) => {
3337
+ return (0, import_smithy_client.take)(output, {
3338
+ agentName: import_smithy_client.expectString,
3339
+ agentStatus: import_smithy_client.expectString,
3340
+ agentVersion: import_smithy_client.expectString,
3341
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3342
+ description: import_smithy_client.expectString,
3343
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3344
+ });
3345
+ }, "de_AgentVersionSummary");
3346
+ var de_DataSource = /* @__PURE__ */ __name((output, context) => {
3347
+ return (0, import_smithy_client.take)(output, {
3348
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3349
+ dataSourceConfiguration: import_smithy_client._json,
3350
+ dataSourceId: import_smithy_client.expectString,
3351
+ description: import_smithy_client.expectString,
3352
+ knowledgeBaseId: import_smithy_client.expectString,
3353
+ name: import_smithy_client.expectString,
3354
+ serverSideEncryptionConfiguration: import_smithy_client._json,
3355
+ status: import_smithy_client.expectString,
3356
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3357
+ vectorIngestionConfiguration: import_smithy_client._json
3358
+ });
3359
+ }, "de_DataSource");
3360
+ var de_DataSourceSummaries = /* @__PURE__ */ __name((output, context) => {
3361
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3362
+ return de_DataSourceSummary(entry, context);
3363
+ });
3364
+ return retVal;
3365
+ }, "de_DataSourceSummaries");
3366
+ var de_DataSourceSummary = /* @__PURE__ */ __name((output, context) => {
3367
+ return (0, import_smithy_client.take)(output, {
3368
+ dataSourceId: import_smithy_client.expectString,
3369
+ description: import_smithy_client.expectString,
3370
+ knowledgeBaseId: import_smithy_client.expectString,
3371
+ name: import_smithy_client.expectString,
3372
+ status: import_smithy_client.expectString,
3373
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3374
+ });
3375
+ }, "de_DataSourceSummary");
3376
+ var de_InferenceConfiguration = /* @__PURE__ */ __name((output, context) => {
3377
+ return (0, import_smithy_client.take)(output, {
3378
+ maximumLength: import_smithy_client.expectInt32,
3379
+ stopSequences: import_smithy_client._json,
3380
+ temperature: import_smithy_client.limitedParseFloat32,
3381
+ topK: import_smithy_client.expectInt32,
3382
+ topP: import_smithy_client.limitedParseFloat32
3383
+ });
3384
+ }, "de_InferenceConfiguration");
3385
+ var de_IngestionJob = /* @__PURE__ */ __name((output, context) => {
3386
+ return (0, import_smithy_client.take)(output, {
3387
+ dataSourceId: import_smithy_client.expectString,
3388
+ description: import_smithy_client.expectString,
3389
+ failureReasons: import_smithy_client._json,
3390
+ ingestionJobId: import_smithy_client.expectString,
3391
+ knowledgeBaseId: import_smithy_client.expectString,
3392
+ startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3393
+ statistics: import_smithy_client._json,
3394
+ status: import_smithy_client.expectString,
3395
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3396
+ });
3397
+ }, "de_IngestionJob");
3398
+ var de_IngestionJobSummaries = /* @__PURE__ */ __name((output, context) => {
3399
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3400
+ return de_IngestionJobSummary(entry, context);
3401
+ });
3402
+ return retVal;
3403
+ }, "de_IngestionJobSummaries");
3404
+ var de_IngestionJobSummary = /* @__PURE__ */ __name((output, context) => {
3405
+ return (0, import_smithy_client.take)(output, {
3406
+ dataSourceId: import_smithy_client.expectString,
3407
+ description: import_smithy_client.expectString,
3408
+ ingestionJobId: import_smithy_client.expectString,
3409
+ knowledgeBaseId: import_smithy_client.expectString,
3410
+ startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3411
+ statistics: import_smithy_client._json,
3412
+ status: import_smithy_client.expectString,
3413
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3414
+ });
3415
+ }, "de_IngestionJobSummary");
3416
+ var de_KnowledgeBase = /* @__PURE__ */ __name((output, context) => {
3417
+ return (0, import_smithy_client.take)(output, {
3418
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
3419
+ description: import_smithy_client.expectString,
3420
+ failureReasons: import_smithy_client._json,
3421
+ knowledgeBaseArn: import_smithy_client.expectString,
3422
+ knowledgeBaseConfiguration: import_smithy_client._json,
3423
+ knowledgeBaseId: import_smithy_client.expectString,
3424
+ name: import_smithy_client.expectString,
3425
+ roleArn: import_smithy_client.expectString,
3426
+ status: import_smithy_client.expectString,
3427
+ storageConfiguration: import_smithy_client._json,
3428
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3429
+ });
3430
+ }, "de_KnowledgeBase");
3431
+ var de_KnowledgeBaseSummaries = /* @__PURE__ */ __name((output, context) => {
3432
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3433
+ return de_KnowledgeBaseSummary(entry, context);
3434
+ });
3435
+ return retVal;
3436
+ }, "de_KnowledgeBaseSummaries");
3437
+ var de_KnowledgeBaseSummary = /* @__PURE__ */ __name((output, context) => {
3438
+ return (0, import_smithy_client.take)(output, {
3439
+ description: import_smithy_client.expectString,
3440
+ knowledgeBaseId: import_smithy_client.expectString,
3441
+ name: import_smithy_client.expectString,
3442
+ status: import_smithy_client.expectString,
3443
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3444
+ });
3445
+ }, "de_KnowledgeBaseSummary");
3446
+ var de_PromptConfiguration = /* @__PURE__ */ __name((output, context) => {
3447
+ return (0, import_smithy_client.take)(output, {
3448
+ basePromptTemplate: import_smithy_client.expectString,
3449
+ inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
3450
+ parserMode: import_smithy_client.expectString,
3451
+ promptCreationMode: import_smithy_client.expectString,
3452
+ promptState: import_smithy_client.expectString,
3453
+ promptType: import_smithy_client.expectString
3454
+ });
3455
+ }, "de_PromptConfiguration");
3456
+ var de_PromptConfigurations = /* @__PURE__ */ __name((output, context) => {
3457
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3458
+ return de_PromptConfiguration(entry, context);
3459
+ });
3460
+ return retVal;
3461
+ }, "de_PromptConfigurations");
3462
+ var de_PromptOverrideConfiguration = /* @__PURE__ */ __name((output, context) => {
3463
+ return (0, import_smithy_client.take)(output, {
3464
+ overrideLambda: import_smithy_client.expectString,
3465
+ promptConfigurations: (_) => de_PromptConfigurations(_, context)
3466
+ });
3467
+ }, "de_PromptOverrideConfiguration");
3468
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
3469
+ httpStatusCode: output.statusCode,
3470
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3471
+ extendedRequestId: output.headers["x-amz-id-2"],
3472
+ cfId: output.headers["x-amz-cf-id"]
3473
+ }), "deserializeMetadata");
3474
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
3475
+ var _sRIUC = "skipResourceInUseCheck";
3476
+ var _tK = "tagKeys";
3477
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3478
+ if (encoded.length) {
3479
+ return JSON.parse(encoded);
3480
+ }
3481
+ return {};
3482
+ }), "parseBody");
3483
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
3484
+ const value = await parseBody(errorBody, context);
3485
+ value.message = value.message ?? value.Message;
3486
+ return value;
3487
+ }, "parseErrorBody");
3488
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
3489
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
3490
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
3491
+ let cleanValue = rawValue;
3492
+ if (typeof cleanValue === "number") {
3493
+ cleanValue = cleanValue.toString();
3494
+ }
3495
+ if (cleanValue.indexOf(",") >= 0) {
3496
+ cleanValue = cleanValue.split(",")[0];
3497
+ }
3498
+ if (cleanValue.indexOf(":") >= 0) {
3499
+ cleanValue = cleanValue.split(":")[0];
3500
+ }
3501
+ if (cleanValue.indexOf("#") >= 0) {
3502
+ cleanValue = cleanValue.split("#")[1];
3503
+ }
3504
+ return cleanValue;
3505
+ }, "sanitizeErrorCode");
3506
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
3507
+ if (headerKey !== void 0) {
3508
+ return sanitizeErrorCode(output.headers[headerKey]);
3509
+ }
3510
+ if (data.code !== void 0) {
3511
+ return sanitizeErrorCode(data.code);
3512
+ }
3513
+ if (data["__type"] !== void 0) {
3514
+ return sanitizeErrorCode(data["__type"]);
3515
+ }
3516
+ }, "loadRestJsonErrorCode");
3517
+
3518
+ // src/commands/AssociateAgentKnowledgeBaseCommand.ts
3519
+ var _AssociateAgentKnowledgeBaseCommand = class _AssociateAgentKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3520
+ ...commonParams
3521
+ }).m(function(Command, cs, config, o) {
3522
+ return [
3523
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3524
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3525
+ ];
3526
+ }).s("AmazonBedrockAgentBuildTimeLambda", "AssociateAgentKnowledgeBase", {}).n("BedrockAgentClient", "AssociateAgentKnowledgeBaseCommand").f(void 0, void 0).ser(se_AssociateAgentKnowledgeBaseCommand).de(de_AssociateAgentKnowledgeBaseCommand).build() {
3527
+ };
3528
+ __name(_AssociateAgentKnowledgeBaseCommand, "AssociateAgentKnowledgeBaseCommand");
3529
+ var AssociateAgentKnowledgeBaseCommand = _AssociateAgentKnowledgeBaseCommand;
3530
+
3531
+ // src/commands/CreateAgentActionGroupCommand.ts
3532
+
3533
+
3534
+
3535
+
3536
+ var _CreateAgentActionGroupCommand = class _CreateAgentActionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3537
+ ...commonParams
3538
+ }).m(function(Command, cs, config, o) {
3539
+ return [
3540
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3541
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3542
+ ];
3543
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgentActionGroup", {}).n("BedrockAgentClient", "CreateAgentActionGroupCommand").f(CreateAgentActionGroupRequestFilterSensitiveLog, CreateAgentActionGroupResponseFilterSensitiveLog).ser(se_CreateAgentActionGroupCommand).de(de_CreateAgentActionGroupCommand).build() {
3544
+ };
3545
+ __name(_CreateAgentActionGroupCommand, "CreateAgentActionGroupCommand");
3546
+ var CreateAgentActionGroupCommand = _CreateAgentActionGroupCommand;
3547
+
3548
+ // src/commands/CreateAgentAliasCommand.ts
3549
+
3550
+
3551
+
3552
+
3553
+ var _CreateAgentAliasCommand = class _CreateAgentAliasCommand extends import_smithy_client.Command.classBuilder().ep({
3554
+ ...commonParams
3555
+ }).m(function(Command, cs, config, o) {
3556
+ return [
3557
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3558
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3559
+ ];
3560
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgentAlias", {}).n("BedrockAgentClient", "CreateAgentAliasCommand").f(void 0, void 0).ser(se_CreateAgentAliasCommand).de(de_CreateAgentAliasCommand).build() {
3561
+ };
3562
+ __name(_CreateAgentAliasCommand, "CreateAgentAliasCommand");
3563
+ var CreateAgentAliasCommand = _CreateAgentAliasCommand;
3564
+
3565
+ // src/commands/CreateAgentCommand.ts
3566
+
3567
+
3568
+
3569
+
3570
+ var _CreateAgentCommand = class _CreateAgentCommand extends import_smithy_client.Command.classBuilder().ep({
3571
+ ...commonParams
3572
+ }).m(function(Command, cs, config, o) {
3573
+ return [
3574
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3575
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3576
+ ];
3577
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateAgent", {}).n("BedrockAgentClient", "CreateAgentCommand").f(CreateAgentRequestFilterSensitiveLog, CreateAgentResponseFilterSensitiveLog).ser(se_CreateAgentCommand).de(de_CreateAgentCommand).build() {
3578
+ };
3579
+ __name(_CreateAgentCommand, "CreateAgentCommand");
3580
+ var CreateAgentCommand = _CreateAgentCommand;
3581
+
3582
+ // src/commands/CreateDataSourceCommand.ts
3583
+
3584
+
3585
+
3586
+
3587
+ var _CreateDataSourceCommand = class _CreateDataSourceCommand extends import_smithy_client.Command.classBuilder().ep({
3588
+ ...commonParams
3589
+ }).m(function(Command, cs, config, o) {
3590
+ return [
3591
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3592
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3593
+ ];
3594
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateDataSource", {}).n("BedrockAgentClient", "CreateDataSourceCommand").f(void 0, void 0).ser(se_CreateDataSourceCommand).de(de_CreateDataSourceCommand).build() {
3595
+ };
3596
+ __name(_CreateDataSourceCommand, "CreateDataSourceCommand");
3597
+ var CreateDataSourceCommand = _CreateDataSourceCommand;
3598
+
3599
+ // src/commands/CreateKnowledgeBaseCommand.ts
3600
+
3601
+
3602
+
3603
+
3604
+ var _CreateKnowledgeBaseCommand = class _CreateKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3605
+ ...commonParams
3606
+ }).m(function(Command, cs, config, o) {
3607
+ return [
3608
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3609
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3610
+ ];
3611
+ }).s("AmazonBedrockAgentBuildTimeLambda", "CreateKnowledgeBase", {}).n("BedrockAgentClient", "CreateKnowledgeBaseCommand").f(void 0, void 0).ser(se_CreateKnowledgeBaseCommand).de(de_CreateKnowledgeBaseCommand).build() {
3612
+ };
3613
+ __name(_CreateKnowledgeBaseCommand, "CreateKnowledgeBaseCommand");
3614
+ var CreateKnowledgeBaseCommand = _CreateKnowledgeBaseCommand;
3615
+
3616
+ // src/commands/DeleteAgentActionGroupCommand.ts
3617
+
3618
+
3619
+
3620
+
3621
+ var _DeleteAgentActionGroupCommand = class _DeleteAgentActionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3622
+ ...commonParams
3623
+ }).m(function(Command, cs, config, o) {
3624
+ return [
3625
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3626
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3627
+ ];
3628
+ }).s("AmazonBedrockAgentBuildTimeLambda", "DeleteAgentActionGroup", {}).n("BedrockAgentClient", "DeleteAgentActionGroupCommand").f(void 0, void 0).ser(se_DeleteAgentActionGroupCommand).de(de_DeleteAgentActionGroupCommand).build() {
3629
+ };
3630
+ __name(_DeleteAgentActionGroupCommand, "DeleteAgentActionGroupCommand");
3631
+ var DeleteAgentActionGroupCommand = _DeleteAgentActionGroupCommand;
3632
+
3633
+ // src/commands/DeleteAgentAliasCommand.ts
3634
+
3635
+
3636
+
3637
+
3638
+ var _DeleteAgentAliasCommand = class _DeleteAgentAliasCommand extends import_smithy_client.Command.classBuilder().ep({
3639
+ ...commonParams
3640
+ }).m(function(Command, cs, config, o) {
3641
+ return [
3642
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3643
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3644
+ ];
3645
+ }).s("AmazonBedrockAgentBuildTimeLambda", "DeleteAgentAlias", {}).n("BedrockAgentClient", "DeleteAgentAliasCommand").f(void 0, void 0).ser(se_DeleteAgentAliasCommand).de(de_DeleteAgentAliasCommand).build() {
3646
+ };
3647
+ __name(_DeleteAgentAliasCommand, "DeleteAgentAliasCommand");
3648
+ var DeleteAgentAliasCommand = _DeleteAgentAliasCommand;
3649
+
3650
+ // src/commands/DeleteAgentCommand.ts
3651
+
3652
+
3653
+
3654
+
3655
+ var _DeleteAgentCommand = class _DeleteAgentCommand extends import_smithy_client.Command.classBuilder().ep({
3656
+ ...commonParams
3657
+ }).m(function(Command, cs, config, o) {
3658
+ return [
3659
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3660
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3661
+ ];
3662
+ }).s("AmazonBedrockAgentBuildTimeLambda", "DeleteAgent", {}).n("BedrockAgentClient", "DeleteAgentCommand").f(void 0, void 0).ser(se_DeleteAgentCommand).de(de_DeleteAgentCommand).build() {
3663
+ };
3664
+ __name(_DeleteAgentCommand, "DeleteAgentCommand");
3665
+ var DeleteAgentCommand = _DeleteAgentCommand;
3666
+
3667
+ // src/commands/DeleteAgentVersionCommand.ts
3668
+
3669
+
3670
+
3671
+
3672
+ var _DeleteAgentVersionCommand = class _DeleteAgentVersionCommand extends import_smithy_client.Command.classBuilder().ep({
3673
+ ...commonParams
3674
+ }).m(function(Command, cs, config, o) {
3675
+ return [
3676
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3677
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3678
+ ];
3679
+ }).s("AmazonBedrockAgentBuildTimeLambda", "DeleteAgentVersion", {}).n("BedrockAgentClient", "DeleteAgentVersionCommand").f(void 0, void 0).ser(se_DeleteAgentVersionCommand).de(de_DeleteAgentVersionCommand).build() {
3680
+ };
3681
+ __name(_DeleteAgentVersionCommand, "DeleteAgentVersionCommand");
3682
+ var DeleteAgentVersionCommand = _DeleteAgentVersionCommand;
3683
+
3684
+ // src/commands/DeleteDataSourceCommand.ts
3685
+
3686
+
3687
+
3688
+
3689
+ var _DeleteDataSourceCommand = class _DeleteDataSourceCommand extends import_smithy_client.Command.classBuilder().ep({
3690
+ ...commonParams
3691
+ }).m(function(Command, cs, config, o) {
3692
+ return [
3693
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3694
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3695
+ ];
3696
+ }).s("AmazonBedrockAgentBuildTimeLambda", "DeleteDataSource", {}).n("BedrockAgentClient", "DeleteDataSourceCommand").f(void 0, void 0).ser(se_DeleteDataSourceCommand).de(de_DeleteDataSourceCommand).build() {
3697
+ };
3698
+ __name(_DeleteDataSourceCommand, "DeleteDataSourceCommand");
3699
+ var DeleteDataSourceCommand = _DeleteDataSourceCommand;
3700
+
3701
+ // src/commands/DeleteKnowledgeBaseCommand.ts
3702
+
3703
+
3704
+
3705
+
3706
+ var _DeleteKnowledgeBaseCommand = class _DeleteKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3707
+ ...commonParams
3708
+ }).m(function(Command, cs, config, o) {
3709
+ return [
3710
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3711
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3712
+ ];
3713
+ }).s("AmazonBedrockAgentBuildTimeLambda", "DeleteKnowledgeBase", {}).n("BedrockAgentClient", "DeleteKnowledgeBaseCommand").f(void 0, void 0).ser(se_DeleteKnowledgeBaseCommand).de(de_DeleteKnowledgeBaseCommand).build() {
3714
+ };
3715
+ __name(_DeleteKnowledgeBaseCommand, "DeleteKnowledgeBaseCommand");
3716
+ var DeleteKnowledgeBaseCommand = _DeleteKnowledgeBaseCommand;
3717
+
3718
+ // src/commands/DisassociateAgentKnowledgeBaseCommand.ts
3719
+
3720
+
3721
+
3722
+
3723
+ var _DisassociateAgentKnowledgeBaseCommand = class _DisassociateAgentKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3724
+ ...commonParams
3725
+ }).m(function(Command, cs, config, o) {
3726
+ return [
3727
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3728
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3729
+ ];
3730
+ }).s("AmazonBedrockAgentBuildTimeLambda", "DisassociateAgentKnowledgeBase", {}).n("BedrockAgentClient", "DisassociateAgentKnowledgeBaseCommand").f(void 0, void 0).ser(se_DisassociateAgentKnowledgeBaseCommand).de(de_DisassociateAgentKnowledgeBaseCommand).build() {
3731
+ };
3732
+ __name(_DisassociateAgentKnowledgeBaseCommand, "DisassociateAgentKnowledgeBaseCommand");
3733
+ var DisassociateAgentKnowledgeBaseCommand = _DisassociateAgentKnowledgeBaseCommand;
3734
+
3735
+ // src/commands/GetAgentActionGroupCommand.ts
3736
+
3737
+
3738
+
3739
+
3740
+ var _GetAgentActionGroupCommand = class _GetAgentActionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3741
+ ...commonParams
3742
+ }).m(function(Command, cs, config, o) {
3743
+ return [
3744
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3745
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3746
+ ];
3747
+ }).s("AmazonBedrockAgentBuildTimeLambda", "GetAgentActionGroup", {}).n("BedrockAgentClient", "GetAgentActionGroupCommand").f(void 0, GetAgentActionGroupResponseFilterSensitiveLog).ser(se_GetAgentActionGroupCommand).de(de_GetAgentActionGroupCommand).build() {
3748
+ };
3749
+ __name(_GetAgentActionGroupCommand, "GetAgentActionGroupCommand");
3750
+ var GetAgentActionGroupCommand = _GetAgentActionGroupCommand;
3751
+
3752
+ // src/commands/GetAgentAliasCommand.ts
3753
+
3754
+
3755
+
3756
+
3757
+ var _GetAgentAliasCommand = class _GetAgentAliasCommand extends import_smithy_client.Command.classBuilder().ep({
3758
+ ...commonParams
3759
+ }).m(function(Command, cs, config, o) {
3760
+ return [
3761
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3762
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3763
+ ];
3764
+ }).s("AmazonBedrockAgentBuildTimeLambda", "GetAgentAlias", {}).n("BedrockAgentClient", "GetAgentAliasCommand").f(void 0, void 0).ser(se_GetAgentAliasCommand).de(de_GetAgentAliasCommand).build() {
3765
+ };
3766
+ __name(_GetAgentAliasCommand, "GetAgentAliasCommand");
3767
+ var GetAgentAliasCommand = _GetAgentAliasCommand;
3768
+
3769
+ // src/commands/GetAgentCommand.ts
3770
+
3771
+
3772
+
3773
+
3774
+ var _GetAgentCommand = class _GetAgentCommand extends import_smithy_client.Command.classBuilder().ep({
3775
+ ...commonParams
3776
+ }).m(function(Command, cs, config, o) {
3777
+ return [
3778
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3779
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3780
+ ];
3781
+ }).s("AmazonBedrockAgentBuildTimeLambda", "GetAgent", {}).n("BedrockAgentClient", "GetAgentCommand").f(void 0, GetAgentResponseFilterSensitiveLog).ser(se_GetAgentCommand).de(de_GetAgentCommand).build() {
3782
+ };
3783
+ __name(_GetAgentCommand, "GetAgentCommand");
3784
+ var GetAgentCommand = _GetAgentCommand;
3785
+
3786
+ // src/commands/GetAgentKnowledgeBaseCommand.ts
3787
+
3788
+
3789
+
3790
+
3791
+ var _GetAgentKnowledgeBaseCommand = class _GetAgentKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3792
+ ...commonParams
3793
+ }).m(function(Command, cs, config, o) {
3794
+ return [
3795
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3796
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3797
+ ];
3798
+ }).s("AmazonBedrockAgentBuildTimeLambda", "GetAgentKnowledgeBase", {}).n("BedrockAgentClient", "GetAgentKnowledgeBaseCommand").f(void 0, void 0).ser(se_GetAgentKnowledgeBaseCommand).de(de_GetAgentKnowledgeBaseCommand).build() {
3799
+ };
3800
+ __name(_GetAgentKnowledgeBaseCommand, "GetAgentKnowledgeBaseCommand");
3801
+ var GetAgentKnowledgeBaseCommand = _GetAgentKnowledgeBaseCommand;
3802
+
3803
+ // src/commands/GetAgentVersionCommand.ts
3804
+
3805
+
3806
+
3807
+
3808
+ var _GetAgentVersionCommand = class _GetAgentVersionCommand extends import_smithy_client.Command.classBuilder().ep({
3809
+ ...commonParams
3810
+ }).m(function(Command, cs, config, o) {
3811
+ return [
3812
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3813
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3814
+ ];
3815
+ }).s("AmazonBedrockAgentBuildTimeLambda", "GetAgentVersion", {}).n("BedrockAgentClient", "GetAgentVersionCommand").f(void 0, GetAgentVersionResponseFilterSensitiveLog).ser(se_GetAgentVersionCommand).de(de_GetAgentVersionCommand).build() {
3816
+ };
3817
+ __name(_GetAgentVersionCommand, "GetAgentVersionCommand");
3818
+ var GetAgentVersionCommand = _GetAgentVersionCommand;
3819
+
3820
+ // src/commands/GetDataSourceCommand.ts
3821
+
3822
+
3823
+
3824
+
3825
+ var _GetDataSourceCommand = class _GetDataSourceCommand extends import_smithy_client.Command.classBuilder().ep({
3826
+ ...commonParams
3827
+ }).m(function(Command, cs, config, o) {
3828
+ return [
3829
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3830
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3831
+ ];
3832
+ }).s("AmazonBedrockAgentBuildTimeLambda", "GetDataSource", {}).n("BedrockAgentClient", "GetDataSourceCommand").f(void 0, void 0).ser(se_GetDataSourceCommand).de(de_GetDataSourceCommand).build() {
3833
+ };
3834
+ __name(_GetDataSourceCommand, "GetDataSourceCommand");
3835
+ var GetDataSourceCommand = _GetDataSourceCommand;
3836
+
3837
+ // src/commands/GetIngestionJobCommand.ts
3838
+
3839
+
3840
+
3841
+
3842
+ var _GetIngestionJobCommand = class _GetIngestionJobCommand extends import_smithy_client.Command.classBuilder().ep({
3843
+ ...commonParams
3844
+ }).m(function(Command, cs, config, o) {
3845
+ return [
3846
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3847
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3848
+ ];
3849
+ }).s("AmazonBedrockAgentBuildTimeLambda", "GetIngestionJob", {}).n("BedrockAgentClient", "GetIngestionJobCommand").f(void 0, void 0).ser(se_GetIngestionJobCommand).de(de_GetIngestionJobCommand).build() {
3850
+ };
3851
+ __name(_GetIngestionJobCommand, "GetIngestionJobCommand");
3852
+ var GetIngestionJobCommand = _GetIngestionJobCommand;
3853
+
3854
+ // src/commands/GetKnowledgeBaseCommand.ts
3855
+
3856
+
3857
+
3858
+
3859
+ var _GetKnowledgeBaseCommand = class _GetKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3860
+ ...commonParams
3861
+ }).m(function(Command, cs, config, o) {
3862
+ return [
3863
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3864
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3865
+ ];
3866
+ }).s("AmazonBedrockAgentBuildTimeLambda", "GetKnowledgeBase", {}).n("BedrockAgentClient", "GetKnowledgeBaseCommand").f(void 0, void 0).ser(se_GetKnowledgeBaseCommand).de(de_GetKnowledgeBaseCommand).build() {
3867
+ };
3868
+ __name(_GetKnowledgeBaseCommand, "GetKnowledgeBaseCommand");
3869
+ var GetKnowledgeBaseCommand = _GetKnowledgeBaseCommand;
3870
+
3871
+ // src/commands/ListAgentActionGroupsCommand.ts
3872
+
3873
+
3874
+
3875
+
3876
+ var _ListAgentActionGroupsCommand = class _ListAgentActionGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
3877
+ ...commonParams
3878
+ }).m(function(Command, cs, config, o) {
3879
+ return [
3880
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3881
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3882
+ ];
3883
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListAgentActionGroups", {}).n("BedrockAgentClient", "ListAgentActionGroupsCommand").f(void 0, void 0).ser(se_ListAgentActionGroupsCommand).de(de_ListAgentActionGroupsCommand).build() {
3884
+ };
3885
+ __name(_ListAgentActionGroupsCommand, "ListAgentActionGroupsCommand");
3886
+ var ListAgentActionGroupsCommand = _ListAgentActionGroupsCommand;
3887
+
3888
+ // src/commands/ListAgentAliasesCommand.ts
3889
+
3890
+
3891
+
3892
+
3893
+ var _ListAgentAliasesCommand = class _ListAgentAliasesCommand extends import_smithy_client.Command.classBuilder().ep({
3894
+ ...commonParams
3895
+ }).m(function(Command, cs, config, o) {
3896
+ return [
3897
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3898
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3899
+ ];
3900
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListAgentAliases", {}).n("BedrockAgentClient", "ListAgentAliasesCommand").f(void 0, void 0).ser(se_ListAgentAliasesCommand).de(de_ListAgentAliasesCommand).build() {
3901
+ };
3902
+ __name(_ListAgentAliasesCommand, "ListAgentAliasesCommand");
3903
+ var ListAgentAliasesCommand = _ListAgentAliasesCommand;
3904
+
3905
+ // src/commands/ListAgentKnowledgeBasesCommand.ts
3906
+
3907
+
3908
+
3909
+
3910
+ var _ListAgentKnowledgeBasesCommand = class _ListAgentKnowledgeBasesCommand extends import_smithy_client.Command.classBuilder().ep({
3911
+ ...commonParams
3912
+ }).m(function(Command, cs, config, o) {
3913
+ return [
3914
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3915
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3916
+ ];
3917
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListAgentKnowledgeBases", {}).n("BedrockAgentClient", "ListAgentKnowledgeBasesCommand").f(void 0, void 0).ser(se_ListAgentKnowledgeBasesCommand).de(de_ListAgentKnowledgeBasesCommand).build() {
3918
+ };
3919
+ __name(_ListAgentKnowledgeBasesCommand, "ListAgentKnowledgeBasesCommand");
3920
+ var ListAgentKnowledgeBasesCommand = _ListAgentKnowledgeBasesCommand;
3921
+
3922
+ // src/commands/ListAgentsCommand.ts
3923
+
3924
+
3925
+
3926
+
3927
+ var _ListAgentsCommand = class _ListAgentsCommand extends import_smithy_client.Command.classBuilder().ep({
3928
+ ...commonParams
3929
+ }).m(function(Command, cs, config, o) {
3930
+ return [
3931
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3932
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3933
+ ];
3934
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListAgents", {}).n("BedrockAgentClient", "ListAgentsCommand").f(void 0, void 0).ser(se_ListAgentsCommand).de(de_ListAgentsCommand).build() {
3935
+ };
3936
+ __name(_ListAgentsCommand, "ListAgentsCommand");
3937
+ var ListAgentsCommand = _ListAgentsCommand;
3938
+
3939
+ // src/commands/ListAgentVersionsCommand.ts
3940
+
3941
+
3942
+
3943
+
3944
+ var _ListAgentVersionsCommand = class _ListAgentVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
3945
+ ...commonParams
3946
+ }).m(function(Command, cs, config, o) {
3947
+ return [
3948
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3949
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3950
+ ];
3951
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListAgentVersions", {}).n("BedrockAgentClient", "ListAgentVersionsCommand").f(void 0, void 0).ser(se_ListAgentVersionsCommand).de(de_ListAgentVersionsCommand).build() {
3952
+ };
3953
+ __name(_ListAgentVersionsCommand, "ListAgentVersionsCommand");
3954
+ var ListAgentVersionsCommand = _ListAgentVersionsCommand;
3955
+
3956
+ // src/commands/ListDataSourcesCommand.ts
3957
+
3958
+
3959
+
3960
+
3961
+ var _ListDataSourcesCommand = class _ListDataSourcesCommand extends import_smithy_client.Command.classBuilder().ep({
3962
+ ...commonParams
3963
+ }).m(function(Command, cs, config, o) {
3964
+ return [
3965
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3966
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3967
+ ];
3968
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListDataSources", {}).n("BedrockAgentClient", "ListDataSourcesCommand").f(void 0, void 0).ser(se_ListDataSourcesCommand).de(de_ListDataSourcesCommand).build() {
3969
+ };
3970
+ __name(_ListDataSourcesCommand, "ListDataSourcesCommand");
3971
+ var ListDataSourcesCommand = _ListDataSourcesCommand;
3972
+
3973
+ // src/commands/ListIngestionJobsCommand.ts
3974
+
3975
+
3976
+
3977
+
3978
+ var _ListIngestionJobsCommand = class _ListIngestionJobsCommand extends import_smithy_client.Command.classBuilder().ep({
3979
+ ...commonParams
3980
+ }).m(function(Command, cs, config, o) {
3981
+ return [
3982
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3983
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3984
+ ];
3985
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListIngestionJobs", {}).n("BedrockAgentClient", "ListIngestionJobsCommand").f(void 0, void 0).ser(se_ListIngestionJobsCommand).de(de_ListIngestionJobsCommand).build() {
3986
+ };
3987
+ __name(_ListIngestionJobsCommand, "ListIngestionJobsCommand");
3988
+ var ListIngestionJobsCommand = _ListIngestionJobsCommand;
3989
+
3990
+ // src/commands/ListKnowledgeBasesCommand.ts
3991
+
3992
+
3993
+
3994
+
3995
+ var _ListKnowledgeBasesCommand = class _ListKnowledgeBasesCommand extends import_smithy_client.Command.classBuilder().ep({
3996
+ ...commonParams
3997
+ }).m(function(Command, cs, config, o) {
3998
+ return [
3999
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4000
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4001
+ ];
4002
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListKnowledgeBases", {}).n("BedrockAgentClient", "ListKnowledgeBasesCommand").f(void 0, void 0).ser(se_ListKnowledgeBasesCommand).de(de_ListKnowledgeBasesCommand).build() {
4003
+ };
4004
+ __name(_ListKnowledgeBasesCommand, "ListKnowledgeBasesCommand");
4005
+ var ListKnowledgeBasesCommand = _ListKnowledgeBasesCommand;
4006
+
4007
+ // src/commands/ListTagsForResourceCommand.ts
4008
+
4009
+
4010
+
4011
+
4012
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4013
+ ...commonParams
4014
+ }).m(function(Command, cs, config, o) {
4015
+ return [
4016
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4017
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4018
+ ];
4019
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ListTagsForResource", {}).n("BedrockAgentClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
4020
+ };
4021
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
4022
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
4023
+
4024
+ // src/commands/PrepareAgentCommand.ts
4025
+
4026
+
4027
+
4028
+
4029
+ var _PrepareAgentCommand = class _PrepareAgentCommand extends import_smithy_client.Command.classBuilder().ep({
4030
+ ...commonParams
4031
+ }).m(function(Command, cs, config, o) {
4032
+ return [
4033
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4034
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4035
+ ];
4036
+ }).s("AmazonBedrockAgentBuildTimeLambda", "PrepareAgent", {}).n("BedrockAgentClient", "PrepareAgentCommand").f(void 0, void 0).ser(se_PrepareAgentCommand).de(de_PrepareAgentCommand).build() {
4037
+ };
4038
+ __name(_PrepareAgentCommand, "PrepareAgentCommand");
4039
+ var PrepareAgentCommand = _PrepareAgentCommand;
4040
+
4041
+ // src/commands/StartIngestionJobCommand.ts
4042
+
4043
+
4044
+
4045
+
4046
+ var _StartIngestionJobCommand = class _StartIngestionJobCommand extends import_smithy_client.Command.classBuilder().ep({
4047
+ ...commonParams
4048
+ }).m(function(Command, cs, config, o) {
4049
+ return [
4050
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4051
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4052
+ ];
4053
+ }).s("AmazonBedrockAgentBuildTimeLambda", "StartIngestionJob", {}).n("BedrockAgentClient", "StartIngestionJobCommand").f(void 0, void 0).ser(se_StartIngestionJobCommand).de(de_StartIngestionJobCommand).build() {
4054
+ };
4055
+ __name(_StartIngestionJobCommand, "StartIngestionJobCommand");
4056
+ var StartIngestionJobCommand = _StartIngestionJobCommand;
4057
+
4058
+ // src/commands/TagResourceCommand.ts
4059
+
4060
+
4061
+
4062
+
4063
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4064
+ ...commonParams
4065
+ }).m(function(Command, cs, config, o) {
4066
+ return [
4067
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4068
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4069
+ ];
4070
+ }).s("AmazonBedrockAgentBuildTimeLambda", "TagResource", {}).n("BedrockAgentClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
4071
+ };
4072
+ __name(_TagResourceCommand, "TagResourceCommand");
4073
+ var TagResourceCommand = _TagResourceCommand;
4074
+
4075
+ // src/commands/UntagResourceCommand.ts
4076
+
4077
+
4078
+
4079
+
4080
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4081
+ ...commonParams
4082
+ }).m(function(Command, cs, config, o) {
4083
+ return [
4084
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4085
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4086
+ ];
4087
+ }).s("AmazonBedrockAgentBuildTimeLambda", "UntagResource", {}).n("BedrockAgentClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
4088
+ };
4089
+ __name(_UntagResourceCommand, "UntagResourceCommand");
4090
+ var UntagResourceCommand = _UntagResourceCommand;
4091
+
4092
+ // src/commands/UpdateAgentActionGroupCommand.ts
4093
+
4094
+
4095
+
4096
+
4097
+ var _UpdateAgentActionGroupCommand = class _UpdateAgentActionGroupCommand extends import_smithy_client.Command.classBuilder().ep({
4098
+ ...commonParams
4099
+ }).m(function(Command, cs, config, o) {
4100
+ return [
4101
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4102
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4103
+ ];
4104
+ }).s("AmazonBedrockAgentBuildTimeLambda", "UpdateAgentActionGroup", {}).n("BedrockAgentClient", "UpdateAgentActionGroupCommand").f(UpdateAgentActionGroupRequestFilterSensitiveLog, UpdateAgentActionGroupResponseFilterSensitiveLog).ser(se_UpdateAgentActionGroupCommand).de(de_UpdateAgentActionGroupCommand).build() {
4105
+ };
4106
+ __name(_UpdateAgentActionGroupCommand, "UpdateAgentActionGroupCommand");
4107
+ var UpdateAgentActionGroupCommand = _UpdateAgentActionGroupCommand;
4108
+
4109
+ // src/commands/UpdateAgentAliasCommand.ts
4110
+
4111
+
4112
+
4113
+
4114
+ var _UpdateAgentAliasCommand = class _UpdateAgentAliasCommand extends import_smithy_client.Command.classBuilder().ep({
4115
+ ...commonParams
4116
+ }).m(function(Command, cs, config, o) {
4117
+ return [
4118
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4119
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4120
+ ];
4121
+ }).s("AmazonBedrockAgentBuildTimeLambda", "UpdateAgentAlias", {}).n("BedrockAgentClient", "UpdateAgentAliasCommand").f(void 0, void 0).ser(se_UpdateAgentAliasCommand).de(de_UpdateAgentAliasCommand).build() {
4122
+ };
4123
+ __name(_UpdateAgentAliasCommand, "UpdateAgentAliasCommand");
4124
+ var UpdateAgentAliasCommand = _UpdateAgentAliasCommand;
4125
+
4126
+ // src/commands/UpdateAgentCommand.ts
4127
+
4128
+
4129
+
4130
+
4131
+ var _UpdateAgentCommand = class _UpdateAgentCommand extends import_smithy_client.Command.classBuilder().ep({
4132
+ ...commonParams
4133
+ }).m(function(Command, cs, config, o) {
4134
+ return [
4135
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4136
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4137
+ ];
4138
+ }).s("AmazonBedrockAgentBuildTimeLambda", "UpdateAgent", {}).n("BedrockAgentClient", "UpdateAgentCommand").f(UpdateAgentRequestFilterSensitiveLog, UpdateAgentResponseFilterSensitiveLog).ser(se_UpdateAgentCommand).de(de_UpdateAgentCommand).build() {
4139
+ };
4140
+ __name(_UpdateAgentCommand, "UpdateAgentCommand");
4141
+ var UpdateAgentCommand = _UpdateAgentCommand;
4142
+
4143
+ // src/commands/UpdateAgentKnowledgeBaseCommand.ts
4144
+
4145
+
4146
+
4147
+
4148
+ var _UpdateAgentKnowledgeBaseCommand = class _UpdateAgentKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
4149
+ ...commonParams
4150
+ }).m(function(Command, cs, config, o) {
4151
+ return [
4152
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4153
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4154
+ ];
4155
+ }).s("AmazonBedrockAgentBuildTimeLambda", "UpdateAgentKnowledgeBase", {}).n("BedrockAgentClient", "UpdateAgentKnowledgeBaseCommand").f(void 0, void 0).ser(se_UpdateAgentKnowledgeBaseCommand).de(de_UpdateAgentKnowledgeBaseCommand).build() {
4156
+ };
4157
+ __name(_UpdateAgentKnowledgeBaseCommand, "UpdateAgentKnowledgeBaseCommand");
4158
+ var UpdateAgentKnowledgeBaseCommand = _UpdateAgentKnowledgeBaseCommand;
4159
+
4160
+ // src/commands/UpdateDataSourceCommand.ts
4161
+
4162
+
4163
+
4164
+
4165
+ var _UpdateDataSourceCommand = class _UpdateDataSourceCommand extends import_smithy_client.Command.classBuilder().ep({
4166
+ ...commonParams
4167
+ }).m(function(Command, cs, config, o) {
4168
+ return [
4169
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4170
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4171
+ ];
4172
+ }).s("AmazonBedrockAgentBuildTimeLambda", "UpdateDataSource", {}).n("BedrockAgentClient", "UpdateDataSourceCommand").f(void 0, void 0).ser(se_UpdateDataSourceCommand).de(de_UpdateDataSourceCommand).build() {
4173
+ };
4174
+ __name(_UpdateDataSourceCommand, "UpdateDataSourceCommand");
4175
+ var UpdateDataSourceCommand = _UpdateDataSourceCommand;
4176
+
4177
+ // src/commands/UpdateKnowledgeBaseCommand.ts
4178
+
4179
+
4180
+
4181
+
4182
+ var _UpdateKnowledgeBaseCommand = class _UpdateKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
4183
+ ...commonParams
4184
+ }).m(function(Command, cs, config, o) {
4185
+ return [
4186
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4187
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4188
+ ];
4189
+ }).s("AmazonBedrockAgentBuildTimeLambda", "UpdateKnowledgeBase", {}).n("BedrockAgentClient", "UpdateKnowledgeBaseCommand").f(void 0, void 0).ser(se_UpdateKnowledgeBaseCommand).de(de_UpdateKnowledgeBaseCommand).build() {
4190
+ };
4191
+ __name(_UpdateKnowledgeBaseCommand, "UpdateKnowledgeBaseCommand");
4192
+ var UpdateKnowledgeBaseCommand = _UpdateKnowledgeBaseCommand;
4193
+
4194
+ // src/BedrockAgent.ts
4195
+ var commands = {
4196
+ AssociateAgentKnowledgeBaseCommand,
4197
+ CreateAgentCommand,
4198
+ CreateAgentActionGroupCommand,
4199
+ CreateAgentAliasCommand,
4200
+ CreateDataSourceCommand,
4201
+ CreateKnowledgeBaseCommand,
4202
+ DeleteAgentCommand,
4203
+ DeleteAgentActionGroupCommand,
4204
+ DeleteAgentAliasCommand,
4205
+ DeleteAgentVersionCommand,
4206
+ DeleteDataSourceCommand,
4207
+ DeleteKnowledgeBaseCommand,
4208
+ DisassociateAgentKnowledgeBaseCommand,
4209
+ GetAgentCommand,
4210
+ GetAgentActionGroupCommand,
4211
+ GetAgentAliasCommand,
4212
+ GetAgentKnowledgeBaseCommand,
4213
+ GetAgentVersionCommand,
4214
+ GetDataSourceCommand,
4215
+ GetIngestionJobCommand,
4216
+ GetKnowledgeBaseCommand,
4217
+ ListAgentActionGroupsCommand,
4218
+ ListAgentAliasesCommand,
4219
+ ListAgentKnowledgeBasesCommand,
4220
+ ListAgentsCommand,
4221
+ ListAgentVersionsCommand,
4222
+ ListDataSourcesCommand,
4223
+ ListIngestionJobsCommand,
4224
+ ListKnowledgeBasesCommand,
4225
+ ListTagsForResourceCommand,
4226
+ PrepareAgentCommand,
4227
+ StartIngestionJobCommand,
4228
+ TagResourceCommand,
4229
+ UntagResourceCommand,
4230
+ UpdateAgentCommand,
4231
+ UpdateAgentActionGroupCommand,
4232
+ UpdateAgentAliasCommand,
4233
+ UpdateAgentKnowledgeBaseCommand,
4234
+ UpdateDataSourceCommand,
4235
+ UpdateKnowledgeBaseCommand
4236
+ };
4237
+ var _BedrockAgent = class _BedrockAgent extends BedrockAgentClient {
4238
+ };
4239
+ __name(_BedrockAgent, "BedrockAgent");
4240
+ var BedrockAgent = _BedrockAgent;
4241
+ (0, import_smithy_client.createAggregatedClient)(commands, BedrockAgent);
4242
+
4243
+ // src/pagination/ListAgentActionGroupsPaginator.ts
4244
+ var import_core3 = require("@smithy/core");
4245
+ var paginateListAgentActionGroups = (0, import_core3.createPaginator)(BedrockAgentClient, ListAgentActionGroupsCommand, "nextToken", "nextToken", "maxResults");
4246
+
4247
+ // src/pagination/ListAgentAliasesPaginator.ts
4248
+ var import_core4 = require("@smithy/core");
4249
+ var paginateListAgentAliases = (0, import_core4.createPaginator)(BedrockAgentClient, ListAgentAliasesCommand, "nextToken", "nextToken", "maxResults");
4250
+
4251
+ // src/pagination/ListAgentKnowledgeBasesPaginator.ts
4252
+ var import_core5 = require("@smithy/core");
4253
+ var paginateListAgentKnowledgeBases = (0, import_core5.createPaginator)(BedrockAgentClient, ListAgentKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
4254
+
4255
+ // src/pagination/ListAgentVersionsPaginator.ts
4256
+ var import_core6 = require("@smithy/core");
4257
+ var paginateListAgentVersions = (0, import_core6.createPaginator)(BedrockAgentClient, ListAgentVersionsCommand, "nextToken", "nextToken", "maxResults");
4258
+
4259
+ // src/pagination/ListAgentsPaginator.ts
4260
+ var import_core7 = require("@smithy/core");
4261
+ var paginateListAgents = (0, import_core7.createPaginator)(BedrockAgentClient, ListAgentsCommand, "nextToken", "nextToken", "maxResults");
4262
+
4263
+ // src/pagination/ListDataSourcesPaginator.ts
4264
+ var import_core8 = require("@smithy/core");
4265
+ var paginateListDataSources = (0, import_core8.createPaginator)(BedrockAgentClient, ListDataSourcesCommand, "nextToken", "nextToken", "maxResults");
4266
+
4267
+ // src/pagination/ListIngestionJobsPaginator.ts
4268
+ var import_core9 = require("@smithy/core");
4269
+ var paginateListIngestionJobs = (0, import_core9.createPaginator)(BedrockAgentClient, ListIngestionJobsCommand, "nextToken", "nextToken", "maxResults");
4270
+
4271
+ // src/pagination/ListKnowledgeBasesPaginator.ts
4272
+ var import_core10 = require("@smithy/core");
4273
+ var paginateListKnowledgeBases = (0, import_core10.createPaginator)(BedrockAgentClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
4274
+
4275
+ // src/index.ts
4276
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
4277
+ // Annotate the CommonJS export names for ESM import in node:
4278
+ 0 && (module.exports = {
4279
+ APISchema,
4280
+ APISchemaFilterSensitiveLog,
4281
+ AccessDeniedException,
4282
+ ActionGroupExecutor,
4283
+ ActionGroupSignature,
4284
+ ActionGroupState,
4285
+ AgentActionGroupFilterSensitiveLog,
4286
+ AgentAliasStatus,
4287
+ AgentFilterSensitiveLog,
4288
+ AgentStatus,
4289
+ AgentVersionFilterSensitiveLog,
4290
+ AssociateAgentKnowledgeBaseCommand,
4291
+ BedrockAgent,
4292
+ BedrockAgentClient,
4293
+ BedrockAgentServiceException,
4294
+ ChunkingStrategy,
4295
+ ConflictException,
4296
+ CreateAgentActionGroupCommand,
4297
+ CreateAgentActionGroupRequestFilterSensitiveLog,
4298
+ CreateAgentActionGroupResponseFilterSensitiveLog,
4299
+ CreateAgentAliasCommand,
4300
+ CreateAgentCommand,
4301
+ CreateAgentRequestFilterSensitiveLog,
4302
+ CreateAgentResponseFilterSensitiveLog,
4303
+ CreateDataSourceCommand,
4304
+ CreateKnowledgeBaseCommand,
4305
+ CreationMode,
4306
+ DataSourceStatus,
4307
+ DataSourceType,
4308
+ DeleteAgentActionGroupCommand,
4309
+ DeleteAgentAliasCommand,
4310
+ DeleteAgentCommand,
4311
+ DeleteAgentVersionCommand,
4312
+ DeleteDataSourceCommand,
4313
+ DeleteKnowledgeBaseCommand,
4314
+ DisassociateAgentKnowledgeBaseCommand,
4315
+ GetAgentActionGroupCommand,
4316
+ GetAgentActionGroupResponseFilterSensitiveLog,
4317
+ GetAgentAliasCommand,
4318
+ GetAgentCommand,
4319
+ GetAgentKnowledgeBaseCommand,
4320
+ GetAgentResponseFilterSensitiveLog,
4321
+ GetAgentVersionCommand,
4322
+ GetAgentVersionResponseFilterSensitiveLog,
4323
+ GetDataSourceCommand,
4324
+ GetIngestionJobCommand,
4325
+ GetKnowledgeBaseCommand,
4326
+ IngestionJobFilterAttribute,
4327
+ IngestionJobFilterOperator,
4328
+ IngestionJobSortByAttribute,
4329
+ IngestionJobStatus,
4330
+ InternalServerException,
4331
+ KnowledgeBaseState,
4332
+ KnowledgeBaseStatus,
4333
+ KnowledgeBaseStorageType,
4334
+ KnowledgeBaseType,
4335
+ ListAgentActionGroupsCommand,
4336
+ ListAgentAliasesCommand,
4337
+ ListAgentKnowledgeBasesCommand,
4338
+ ListAgentVersionsCommand,
4339
+ ListAgentsCommand,
4340
+ ListDataSourcesCommand,
4341
+ ListIngestionJobsCommand,
4342
+ ListKnowledgeBasesCommand,
4343
+ ListTagsForResourceCommand,
4344
+ PrepareAgentCommand,
4345
+ PromptOverrideConfigurationFilterSensitiveLog,
4346
+ PromptState,
4347
+ PromptType,
4348
+ ResourceNotFoundException,
4349
+ ServiceQuotaExceededException,
4350
+ SortOrder,
4351
+ StartIngestionJobCommand,
4352
+ TagResourceCommand,
4353
+ ThrottlingException,
4354
+ UntagResourceCommand,
4355
+ UpdateAgentActionGroupCommand,
4356
+ UpdateAgentActionGroupRequestFilterSensitiveLog,
4357
+ UpdateAgentActionGroupResponseFilterSensitiveLog,
4358
+ UpdateAgentAliasCommand,
4359
+ UpdateAgentCommand,
4360
+ UpdateAgentKnowledgeBaseCommand,
4361
+ UpdateAgentRequestFilterSensitiveLog,
4362
+ UpdateAgentResponseFilterSensitiveLog,
4363
+ UpdateDataSourceCommand,
4364
+ UpdateKnowledgeBaseCommand,
4365
+ ValidationException,
4366
+ __Client,
4367
+ paginateListAgentActionGroups,
4368
+ paginateListAgentAliases,
4369
+ paginateListAgentKnowledgeBases,
4370
+ paginateListAgentVersions,
4371
+ paginateListAgents,
4372
+ paginateListDataSources,
4373
+ paginateListIngestionJobs,
4374
+ paginateListKnowledgeBases
4375
+ });