@aws-sdk/client-bedrock-agent-runtime 3.1068.0 → 3.1070.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,19 +1,22 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var eventStreams = require('@smithy/core/event-streams');
9
- var protocols = require('@smithy/core/protocols');
10
- var retry = require('@smithy/core/retry');
11
- var schema = require('@smithy/core/schema');
12
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
13
- var runtimeConfig = require('./runtimeConfig');
14
- var schemas_0 = require('./schemas/schemas_0');
15
- var errors = require('./models/errors');
16
- var BedrockAgentRuntimeServiceException = require('./models/BedrockAgentRuntimeServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
+ exports.$Command = Command;
6
+ exports.__Client = Client;
7
+ const { resolveRegionConfig } = require("@smithy/core/config");
8
+ const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
10
+ const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
11
+ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
12
+ const { getSchemaSerdePlugin } = require("@smithy/core/schema");
13
+ const { resolveHttpAuthSchemeConfig, defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
14
+ const { getRuntimeConfig } = require("./runtimeConfig");
15
+ const { CreateInvocation$, CreateSession$, DeleteAgentMemory$, DeleteSession$, EndSession$, GenerateQuery$, GetAgentMemory$, GetExecutionFlowSnapshot$, GetFlowExecution$, GetInvocationStep$, GetSession$, InvokeAgent$, InvokeFlow$, InvokeInlineAgent$, ListFlowExecutionEvents$, ListFlowExecutions$, ListInvocations$, ListInvocationSteps$, ListSessions$, ListTagsForResource$, OptimizePrompt$, PutInvocationStep$, Rerank$, RetrieveAndGenerate$, RetrieveAndGenerateStream$, Retrieve$, StartFlowExecution$, StopFlowExecution$, TagResource$, UntagResource$, UpdateSession$ } = require("./schemas/schemas_0");
16
+ __exportStar(require("./schemas/schemas_0"), exports);
17
+ __exportStar(require("./models/errors"), exports);
18
+ const { BedrockAgentRuntimeServiceException } = require("./models/BedrockAgentRuntimeServiceException");
19
+ exports.BedrockAgentRuntimeServiceException = BedrockAgentRuntimeServiceException;
17
20
 
18
21
  const resolveClientEndpointParameters = (options) => {
19
22
  return Object.assign(options, {
@@ -69,184 +72,184 @@ const resolveHttpAuthRuntimeConfig = (config) => {
69
72
  };
70
73
 
71
74
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
72
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
73
76
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
74
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
75
78
  };
76
79
 
77
- class BedrockAgentRuntimeClient extends client.Client {
80
+ class BedrockAgentRuntimeClient extends Client {
78
81
  config;
79
82
  constructor(...[configuration]) {
80
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ const _config_0 = getRuntimeConfig(configuration || {});
81
84
  super(_config_0);
82
85
  this.initConfig = _config_0;
83
86
  const _config_1 = resolveClientEndpointParameters(_config_0);
84
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
85
- const _config_3 = retry.resolveRetryConfig(_config_2);
86
- const _config_4 = config.resolveRegionConfig(_config_3);
87
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
88
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
89
- const _config_7 = eventStreams.resolveEventStreamSerdeConfig(_config_6);
90
- const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
87
+ const _config_2 = resolveUserAgentConfig(_config_1);
88
+ const _config_3 = resolveRetryConfig(_config_2);
89
+ const _config_4 = resolveRegionConfig(_config_3);
90
+ const _config_5 = resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = resolveEndpointConfig(_config_5);
92
+ const _config_7 = resolveEventStreamSerdeConfig(_config_6);
93
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
91
94
  const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
92
95
  this.config = _config_9;
93
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
95
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
96
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
97
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
98
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
99
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
100
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider,
102
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
96
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
97
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
98
+ this.middlewareStack.use(getRetryPlugin(this.config));
99
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
100
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
101
+ this.middlewareStack.use(getLoggerPlugin(this.config));
102
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
103
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
104
+ httpAuthSchemeParametersProvider: defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider,
105
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
103
106
  "aws.auth#sigv4": config.credentials,
104
107
  }),
105
108
  }));
106
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
109
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
107
110
  }
108
111
  destroy() {
109
112
  super.destroy();
110
113
  }
111
114
  }
112
115
 
113
- class CreateInvocationCommand extends client.Command
116
+ class CreateInvocationCommand extends Command
114
117
  .classBuilder()
115
118
  .ep(commonParams)
116
119
  .m(function (Command, cs, config, o) {
117
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
120
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
118
121
  })
119
122
  .s("AmazonBedrockAgentRunTimeService", "CreateInvocation", {})
120
123
  .n("BedrockAgentRuntimeClient", "CreateInvocationCommand")
121
- .sc(schemas_0.CreateInvocation$)
124
+ .sc(CreateInvocation$)
122
125
  .build() {
123
126
  }
124
127
 
125
- class CreateSessionCommand extends client.Command
128
+ class CreateSessionCommand extends Command
126
129
  .classBuilder()
127
130
  .ep(commonParams)
128
131
  .m(function (Command, cs, config, o) {
129
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
132
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
130
133
  })
131
134
  .s("AmazonBedrockAgentRunTimeService", "CreateSession", {})
132
135
  .n("BedrockAgentRuntimeClient", "CreateSessionCommand")
133
- .sc(schemas_0.CreateSession$)
136
+ .sc(CreateSession$)
134
137
  .build() {
135
138
  }
136
139
 
137
- class DeleteAgentMemoryCommand extends client.Command
140
+ class DeleteAgentMemoryCommand extends Command
138
141
  .classBuilder()
139
142
  .ep(commonParams)
140
143
  .m(function (Command, cs, config, o) {
141
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
144
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
142
145
  })
143
146
  .s("AmazonBedrockAgentRunTimeService", "DeleteAgentMemory", {})
144
147
  .n("BedrockAgentRuntimeClient", "DeleteAgentMemoryCommand")
145
- .sc(schemas_0.DeleteAgentMemory$)
148
+ .sc(DeleteAgentMemory$)
146
149
  .build() {
147
150
  }
148
151
 
149
- class DeleteSessionCommand extends client.Command
152
+ class DeleteSessionCommand extends Command
150
153
  .classBuilder()
151
154
  .ep(commonParams)
152
155
  .m(function (Command, cs, config, o) {
153
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
156
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
154
157
  })
155
158
  .s("AmazonBedrockAgentRunTimeService", "DeleteSession", {})
156
159
  .n("BedrockAgentRuntimeClient", "DeleteSessionCommand")
157
- .sc(schemas_0.DeleteSession$)
160
+ .sc(DeleteSession$)
158
161
  .build() {
159
162
  }
160
163
 
161
- class EndSessionCommand extends client.Command
164
+ class EndSessionCommand extends Command
162
165
  .classBuilder()
163
166
  .ep(commonParams)
164
167
  .m(function (Command, cs, config, o) {
165
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
168
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
166
169
  })
167
170
  .s("AmazonBedrockAgentRunTimeService", "EndSession", {})
168
171
  .n("BedrockAgentRuntimeClient", "EndSessionCommand")
169
- .sc(schemas_0.EndSession$)
172
+ .sc(EndSession$)
170
173
  .build() {
171
174
  }
172
175
 
173
- class GenerateQueryCommand extends client.Command
176
+ class GenerateQueryCommand extends Command
174
177
  .classBuilder()
175
178
  .ep(commonParams)
176
179
  .m(function (Command, cs, config, o) {
177
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
180
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
178
181
  })
179
182
  .s("AmazonBedrockAgentRunTimeService", "GenerateQuery", {})
180
183
  .n("BedrockAgentRuntimeClient", "GenerateQueryCommand")
181
- .sc(schemas_0.GenerateQuery$)
184
+ .sc(GenerateQuery$)
182
185
  .build() {
183
186
  }
184
187
 
185
- class GetAgentMemoryCommand extends client.Command
188
+ class GetAgentMemoryCommand extends Command
186
189
  .classBuilder()
187
190
  .ep(commonParams)
188
191
  .m(function (Command, cs, config, o) {
189
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
192
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
190
193
  })
191
194
  .s("AmazonBedrockAgentRunTimeService", "GetAgentMemory", {})
192
195
  .n("BedrockAgentRuntimeClient", "GetAgentMemoryCommand")
193
- .sc(schemas_0.GetAgentMemory$)
196
+ .sc(GetAgentMemory$)
194
197
  .build() {
195
198
  }
196
199
 
197
- class GetExecutionFlowSnapshotCommand extends client.Command
200
+ class GetExecutionFlowSnapshotCommand extends Command
198
201
  .classBuilder()
199
202
  .ep(commonParams)
200
203
  .m(function (Command, cs, config, o) {
201
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
204
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
202
205
  })
203
206
  .s("AmazonBedrockAgentRunTimeService", "GetExecutionFlowSnapshot", {})
204
207
  .n("BedrockAgentRuntimeClient", "GetExecutionFlowSnapshotCommand")
205
- .sc(schemas_0.GetExecutionFlowSnapshot$)
208
+ .sc(GetExecutionFlowSnapshot$)
206
209
  .build() {
207
210
  }
208
211
 
209
- class GetFlowExecutionCommand extends client.Command
212
+ class GetFlowExecutionCommand extends Command
210
213
  .classBuilder()
211
214
  .ep(commonParams)
212
215
  .m(function (Command, cs, config, o) {
213
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
216
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
214
217
  })
215
218
  .s("AmazonBedrockAgentRunTimeService", "GetFlowExecution", {})
216
219
  .n("BedrockAgentRuntimeClient", "GetFlowExecutionCommand")
217
- .sc(schemas_0.GetFlowExecution$)
220
+ .sc(GetFlowExecution$)
218
221
  .build() {
219
222
  }
220
223
 
221
- class GetInvocationStepCommand extends client.Command
224
+ class GetInvocationStepCommand extends Command
222
225
  .classBuilder()
223
226
  .ep(commonParams)
224
227
  .m(function (Command, cs, config, o) {
225
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
228
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
226
229
  })
227
230
  .s("AmazonBedrockAgentRunTimeService", "GetInvocationStep", {})
228
231
  .n("BedrockAgentRuntimeClient", "GetInvocationStepCommand")
229
- .sc(schemas_0.GetInvocationStep$)
232
+ .sc(GetInvocationStep$)
230
233
  .build() {
231
234
  }
232
235
 
233
- class GetSessionCommand extends client.Command
236
+ class GetSessionCommand extends Command
234
237
  .classBuilder()
235
238
  .ep(commonParams)
236
239
  .m(function (Command, cs, config, o) {
237
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
240
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
238
241
  })
239
242
  .s("AmazonBedrockAgentRunTimeService", "GetSession", {})
240
243
  .n("BedrockAgentRuntimeClient", "GetSessionCommand")
241
- .sc(schemas_0.GetSession$)
244
+ .sc(GetSession$)
242
245
  .build() {
243
246
  }
244
247
 
245
- class InvokeAgentCommand extends client.Command
248
+ class InvokeAgentCommand extends Command
246
249
  .classBuilder()
247
250
  .ep(commonParams)
248
251
  .m(function (Command, cs, config, o) {
249
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
252
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
250
253
  })
251
254
  .s("AmazonBedrockAgentRunTimeService", "InvokeAgent", {
252
255
  eventStream: {
@@ -254,15 +257,15 @@ class InvokeAgentCommand extends client.Command
254
257
  },
255
258
  })
256
259
  .n("BedrockAgentRuntimeClient", "InvokeAgentCommand")
257
- .sc(schemas_0.InvokeAgent$)
260
+ .sc(InvokeAgent$)
258
261
  .build() {
259
262
  }
260
263
 
261
- class InvokeFlowCommand extends client.Command
264
+ class InvokeFlowCommand extends Command
262
265
  .classBuilder()
263
266
  .ep(commonParams)
264
267
  .m(function (Command, cs, config, o) {
265
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
268
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
266
269
  })
267
270
  .s("AmazonBedrockAgentRunTimeService", "InvokeFlow", {
268
271
  eventStream: {
@@ -270,15 +273,15 @@ class InvokeFlowCommand extends client.Command
270
273
  },
271
274
  })
272
275
  .n("BedrockAgentRuntimeClient", "InvokeFlowCommand")
273
- .sc(schemas_0.InvokeFlow$)
276
+ .sc(InvokeFlow$)
274
277
  .build() {
275
278
  }
276
279
 
277
- class InvokeInlineAgentCommand extends client.Command
280
+ class InvokeInlineAgentCommand extends Command
278
281
  .classBuilder()
279
282
  .ep(commonParams)
280
283
  .m(function (Command, cs, config, o) {
281
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
284
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
282
285
  })
283
286
  .s("AmazonBedrockAgentRunTimeService", "InvokeInlineAgent", {
284
287
  eventStream: {
@@ -286,87 +289,87 @@ class InvokeInlineAgentCommand extends client.Command
286
289
  },
287
290
  })
288
291
  .n("BedrockAgentRuntimeClient", "InvokeInlineAgentCommand")
289
- .sc(schemas_0.InvokeInlineAgent$)
292
+ .sc(InvokeInlineAgent$)
290
293
  .build() {
291
294
  }
292
295
 
293
- class ListFlowExecutionEventsCommand extends client.Command
296
+ class ListFlowExecutionEventsCommand extends Command
294
297
  .classBuilder()
295
298
  .ep(commonParams)
296
299
  .m(function (Command, cs, config, o) {
297
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
300
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
298
301
  })
299
302
  .s("AmazonBedrockAgentRunTimeService", "ListFlowExecutionEvents", {})
300
303
  .n("BedrockAgentRuntimeClient", "ListFlowExecutionEventsCommand")
301
- .sc(schemas_0.ListFlowExecutionEvents$)
304
+ .sc(ListFlowExecutionEvents$)
302
305
  .build() {
303
306
  }
304
307
 
305
- class ListFlowExecutionsCommand extends client.Command
308
+ class ListFlowExecutionsCommand extends Command
306
309
  .classBuilder()
307
310
  .ep(commonParams)
308
311
  .m(function (Command, cs, config, o) {
309
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
312
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
310
313
  })
311
314
  .s("AmazonBedrockAgentRunTimeService", "ListFlowExecutions", {})
312
315
  .n("BedrockAgentRuntimeClient", "ListFlowExecutionsCommand")
313
- .sc(schemas_0.ListFlowExecutions$)
316
+ .sc(ListFlowExecutions$)
314
317
  .build() {
315
318
  }
316
319
 
317
- class ListInvocationsCommand extends client.Command
320
+ class ListInvocationsCommand extends Command
318
321
  .classBuilder()
319
322
  .ep(commonParams)
320
323
  .m(function (Command, cs, config, o) {
321
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
324
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
322
325
  })
323
326
  .s("AmazonBedrockAgentRunTimeService", "ListInvocations", {})
324
327
  .n("BedrockAgentRuntimeClient", "ListInvocationsCommand")
325
- .sc(schemas_0.ListInvocations$)
328
+ .sc(ListInvocations$)
326
329
  .build() {
327
330
  }
328
331
 
329
- class ListInvocationStepsCommand extends client.Command
332
+ class ListInvocationStepsCommand extends Command
330
333
  .classBuilder()
331
334
  .ep(commonParams)
332
335
  .m(function (Command, cs, config, o) {
333
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
336
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
334
337
  })
335
338
  .s("AmazonBedrockAgentRunTimeService", "ListInvocationSteps", {})
336
339
  .n("BedrockAgentRuntimeClient", "ListInvocationStepsCommand")
337
- .sc(schemas_0.ListInvocationSteps$)
340
+ .sc(ListInvocationSteps$)
338
341
  .build() {
339
342
  }
340
343
 
341
- class ListSessionsCommand extends client.Command
344
+ class ListSessionsCommand extends Command
342
345
  .classBuilder()
343
346
  .ep(commonParams)
344
347
  .m(function (Command, cs, config, o) {
345
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
348
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
346
349
  })
347
350
  .s("AmazonBedrockAgentRunTimeService", "ListSessions", {})
348
351
  .n("BedrockAgentRuntimeClient", "ListSessionsCommand")
349
- .sc(schemas_0.ListSessions$)
352
+ .sc(ListSessions$)
350
353
  .build() {
351
354
  }
352
355
 
353
- class ListTagsForResourceCommand extends client.Command
356
+ class ListTagsForResourceCommand extends Command
354
357
  .classBuilder()
355
358
  .ep(commonParams)
356
359
  .m(function (Command, cs, config, o) {
357
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
360
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
358
361
  })
359
362
  .s("AmazonBedrockAgentRunTimeService", "ListTagsForResource", {})
360
363
  .n("BedrockAgentRuntimeClient", "ListTagsForResourceCommand")
361
- .sc(schemas_0.ListTagsForResource$)
364
+ .sc(ListTagsForResource$)
362
365
  .build() {
363
366
  }
364
367
 
365
- class OptimizePromptCommand extends client.Command
368
+ class OptimizePromptCommand extends Command
366
369
  .classBuilder()
367
370
  .ep(commonParams)
368
371
  .m(function (Command, cs, config, o) {
369
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
372
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
370
373
  })
371
374
  .s("AmazonBedrockAgentRunTimeService", "OptimizePrompt", {
372
375
  eventStream: {
@@ -374,51 +377,51 @@ class OptimizePromptCommand extends client.Command
374
377
  },
375
378
  })
376
379
  .n("BedrockAgentRuntimeClient", "OptimizePromptCommand")
377
- .sc(schemas_0.OptimizePrompt$)
380
+ .sc(OptimizePrompt$)
378
381
  .build() {
379
382
  }
380
383
 
381
- class PutInvocationStepCommand extends client.Command
384
+ class PutInvocationStepCommand extends Command
382
385
  .classBuilder()
383
386
  .ep(commonParams)
384
387
  .m(function (Command, cs, config, o) {
385
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
388
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
386
389
  })
387
390
  .s("AmazonBedrockAgentRunTimeService", "PutInvocationStep", {})
388
391
  .n("BedrockAgentRuntimeClient", "PutInvocationStepCommand")
389
- .sc(schemas_0.PutInvocationStep$)
392
+ .sc(PutInvocationStep$)
390
393
  .build() {
391
394
  }
392
395
 
393
- class RerankCommand extends client.Command
396
+ class RerankCommand extends Command
394
397
  .classBuilder()
395
398
  .ep(commonParams)
396
399
  .m(function (Command, cs, config, o) {
397
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
400
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
398
401
  })
399
402
  .s("AmazonBedrockAgentRunTimeService", "Rerank", {})
400
403
  .n("BedrockAgentRuntimeClient", "RerankCommand")
401
- .sc(schemas_0.Rerank$)
404
+ .sc(Rerank$)
402
405
  .build() {
403
406
  }
404
407
 
405
- class RetrieveAndGenerateCommand extends client.Command
408
+ class RetrieveAndGenerateCommand extends Command
406
409
  .classBuilder()
407
410
  .ep(commonParams)
408
411
  .m(function (Command, cs, config, o) {
409
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
412
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
410
413
  })
411
414
  .s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerate", {})
412
415
  .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateCommand")
413
- .sc(schemas_0.RetrieveAndGenerate$)
416
+ .sc(RetrieveAndGenerate$)
414
417
  .build() {
415
418
  }
416
419
 
417
- class RetrieveAndGenerateStreamCommand extends client.Command
420
+ class RetrieveAndGenerateStreamCommand extends Command
418
421
  .classBuilder()
419
422
  .ep(commonParams)
420
423
  .m(function (Command, cs, config, o) {
421
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
424
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
422
425
  })
423
426
  .s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerateStream", {
424
427
  eventStream: {
@@ -426,97 +429,97 @@ class RetrieveAndGenerateStreamCommand extends client.Command
426
429
  },
427
430
  })
428
431
  .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateStreamCommand")
429
- .sc(schemas_0.RetrieveAndGenerateStream$)
432
+ .sc(RetrieveAndGenerateStream$)
430
433
  .build() {
431
434
  }
432
435
 
433
- class RetrieveCommand extends client.Command
436
+ class RetrieveCommand extends Command
434
437
  .classBuilder()
435
438
  .ep(commonParams)
436
439
  .m(function (Command, cs, config, o) {
437
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
440
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
438
441
  })
439
442
  .s("AmazonBedrockAgentRunTimeService", "Retrieve", {})
440
443
  .n("BedrockAgentRuntimeClient", "RetrieveCommand")
441
- .sc(schemas_0.Retrieve$)
444
+ .sc(Retrieve$)
442
445
  .build() {
443
446
  }
444
447
 
445
- class StartFlowExecutionCommand extends client.Command
448
+ class StartFlowExecutionCommand extends Command
446
449
  .classBuilder()
447
450
  .ep(commonParams)
448
451
  .m(function (Command, cs, config, o) {
449
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
452
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
450
453
  })
451
454
  .s("AmazonBedrockAgentRunTimeService", "StartFlowExecution", {})
452
455
  .n("BedrockAgentRuntimeClient", "StartFlowExecutionCommand")
453
- .sc(schemas_0.StartFlowExecution$)
456
+ .sc(StartFlowExecution$)
454
457
  .build() {
455
458
  }
456
459
 
457
- class StopFlowExecutionCommand extends client.Command
460
+ class StopFlowExecutionCommand extends Command
458
461
  .classBuilder()
459
462
  .ep(commonParams)
460
463
  .m(function (Command, cs, config, o) {
461
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
464
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
462
465
  })
463
466
  .s("AmazonBedrockAgentRunTimeService", "StopFlowExecution", {})
464
467
  .n("BedrockAgentRuntimeClient", "StopFlowExecutionCommand")
465
- .sc(schemas_0.StopFlowExecution$)
468
+ .sc(StopFlowExecution$)
466
469
  .build() {
467
470
  }
468
471
 
469
- class TagResourceCommand extends client.Command
472
+ class TagResourceCommand extends Command
470
473
  .classBuilder()
471
474
  .ep(commonParams)
472
475
  .m(function (Command, cs, config, o) {
473
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
476
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
474
477
  })
475
478
  .s("AmazonBedrockAgentRunTimeService", "TagResource", {})
476
479
  .n("BedrockAgentRuntimeClient", "TagResourceCommand")
477
- .sc(schemas_0.TagResource$)
480
+ .sc(TagResource$)
478
481
  .build() {
479
482
  }
480
483
 
481
- class UntagResourceCommand extends client.Command
484
+ class UntagResourceCommand extends Command
482
485
  .classBuilder()
483
486
  .ep(commonParams)
484
487
  .m(function (Command, cs, config, o) {
485
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
488
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
486
489
  })
487
490
  .s("AmazonBedrockAgentRunTimeService", "UntagResource", {})
488
491
  .n("BedrockAgentRuntimeClient", "UntagResourceCommand")
489
- .sc(schemas_0.UntagResource$)
492
+ .sc(UntagResource$)
490
493
  .build() {
491
494
  }
492
495
 
493
- class UpdateSessionCommand extends client.Command
496
+ class UpdateSessionCommand extends Command
494
497
  .classBuilder()
495
498
  .ep(commonParams)
496
499
  .m(function (Command, cs, config, o) {
497
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
500
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
498
501
  })
499
502
  .s("AmazonBedrockAgentRunTimeService", "UpdateSession", {})
500
503
  .n("BedrockAgentRuntimeClient", "UpdateSessionCommand")
501
- .sc(schemas_0.UpdateSession$)
504
+ .sc(UpdateSession$)
502
505
  .build() {
503
506
  }
504
507
 
505
- const paginateGetAgentMemory = core.createPaginator(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
508
+ const paginateGetAgentMemory = createPaginator(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
506
509
 
507
- const paginateListFlowExecutionEvents = core.createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
510
+ const paginateListFlowExecutionEvents = createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
508
511
 
509
- const paginateListFlowExecutions = core.createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionsCommand, "nextToken", "nextToken", "maxResults");
512
+ const paginateListFlowExecutions = createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionsCommand, "nextToken", "nextToken", "maxResults");
510
513
 
511
- const paginateListInvocations = core.createPaginator(BedrockAgentRuntimeClient, ListInvocationsCommand, "nextToken", "nextToken", "maxResults");
514
+ const paginateListInvocations = createPaginator(BedrockAgentRuntimeClient, ListInvocationsCommand, "nextToken", "nextToken", "maxResults");
512
515
 
513
- const paginateListInvocationSteps = core.createPaginator(BedrockAgentRuntimeClient, ListInvocationStepsCommand, "nextToken", "nextToken", "maxResults");
516
+ const paginateListInvocationSteps = createPaginator(BedrockAgentRuntimeClient, ListInvocationStepsCommand, "nextToken", "nextToken", "maxResults");
514
517
 
515
- const paginateListSessions = core.createPaginator(BedrockAgentRuntimeClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
518
+ const paginateListSessions = createPaginator(BedrockAgentRuntimeClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
516
519
 
517
- const paginateRerank = core.createPaginator(BedrockAgentRuntimeClient, RerankCommand, "nextToken", "nextToken", "");
520
+ const paginateRerank = createPaginator(BedrockAgentRuntimeClient, RerankCommand, "nextToken", "nextToken", "");
518
521
 
519
- const paginateRetrieve = core.createPaginator(BedrockAgentRuntimeClient, RetrieveCommand, "nextToken", "nextToken", "");
522
+ const paginateRetrieve = createPaginator(BedrockAgentRuntimeClient, RetrieveCommand, "nextToken", "nextToken", "");
520
523
 
521
524
  const commands = {
522
525
  CreateInvocationCommand,
@@ -563,7 +566,7 @@ const paginators = {
563
566
  };
564
567
  class BedrockAgentRuntime extends BedrockAgentRuntimeClient {
565
568
  }
566
- client.createAggregatedClient(commands, BedrockAgentRuntime, { paginators });
569
+ createAggregatedClient(commands, BedrockAgentRuntime, { paginators });
567
570
 
568
571
  const CustomControlMethod = {
569
572
  RETURN_CONTROL: "RETURN_CONTROL",
@@ -908,9 +911,6 @@ const ImageFormat = {
908
911
  WEBP: "webp",
909
912
  };
910
913
 
911
- exports.$Command = client.Command;
912
- exports.__Client = client.Client;
913
- exports.BedrockAgentRuntimeServiceException = BedrockAgentRuntimeServiceException.BedrockAgentRuntimeServiceException;
914
914
  exports.ActionGroupSignature = ActionGroupSignature;
915
915
  exports.ActionInvocationType = ActionInvocationType;
916
916
  exports.AgentCollaboration = AgentCollaboration;
@@ -1019,23 +1019,3 @@ exports.paginateListInvocations = paginateListInvocations;
1019
1019
  exports.paginateListSessions = paginateListSessions;
1020
1020
  exports.paginateRerank = paginateRerank;
1021
1021
  exports.paginateRetrieve = paginateRetrieve;
1022
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
1023
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
1024
- Object.defineProperty(exports, '__proto__', {
1025
- enumerable: true,
1026
- value: schemas_0['__proto__']
1027
- });
1028
-
1029
- Object.keys(schemas_0).forEach(function (k) {
1030
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
1031
- });
1032
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
1033
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
1034
- Object.defineProperty(exports, '__proto__', {
1035
- enumerable: true,
1036
- value: errors['__proto__']
1037
- });
1038
-
1039
- Object.keys(errors).forEach(function (k) {
1040
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
1041
- });