@aws-sdk/client-bedrock-agent-runtime 3.974.0 → 3.978.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
@@ -3416,6 +3416,22 @@ class UpdateSessionCommand extends smithyClient.Command
3416
3416
  .build() {
3417
3417
  }
3418
3418
 
3419
+ const paginateGetAgentMemory = core.createPaginator(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
3420
+
3421
+ const paginateListFlowExecutionEvents = core.createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
3422
+
3423
+ const paginateListFlowExecutions = core.createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionsCommand, "nextToken", "nextToken", "maxResults");
3424
+
3425
+ const paginateListInvocations = core.createPaginator(BedrockAgentRuntimeClient, ListInvocationsCommand, "nextToken", "nextToken", "maxResults");
3426
+
3427
+ const paginateListInvocationSteps = core.createPaginator(BedrockAgentRuntimeClient, ListInvocationStepsCommand, "nextToken", "nextToken", "maxResults");
3428
+
3429
+ const paginateListSessions = core.createPaginator(BedrockAgentRuntimeClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
3430
+
3431
+ const paginateRerank = core.createPaginator(BedrockAgentRuntimeClient, RerankCommand, "nextToken", "nextToken", "");
3432
+
3433
+ const paginateRetrieve = core.createPaginator(BedrockAgentRuntimeClient, RetrieveCommand, "nextToken", "nextToken", "");
3434
+
3419
3435
  const commands = {
3420
3436
  CreateInvocationCommand,
3421
3437
  CreateSessionCommand,
@@ -3449,25 +3465,19 @@ const commands = {
3449
3465
  UntagResourceCommand,
3450
3466
  UpdateSessionCommand,
3451
3467
  };
3468
+ const paginators = {
3469
+ paginateGetAgentMemory,
3470
+ paginateListFlowExecutionEvents,
3471
+ paginateListFlowExecutions,
3472
+ paginateListInvocations,
3473
+ paginateListInvocationSteps,
3474
+ paginateListSessions,
3475
+ paginateRerank,
3476
+ paginateRetrieve,
3477
+ };
3452
3478
  class BedrockAgentRuntime extends BedrockAgentRuntimeClient {
3453
3479
  }
3454
- smithyClient.createAggregatedClient(commands, BedrockAgentRuntime);
3455
-
3456
- const paginateGetAgentMemory = core.createPaginator(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
3457
-
3458
- const paginateListFlowExecutionEvents = core.createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
3459
-
3460
- const paginateListFlowExecutions = core.createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionsCommand, "nextToken", "nextToken", "maxResults");
3461
-
3462
- const paginateListInvocations = core.createPaginator(BedrockAgentRuntimeClient, ListInvocationsCommand, "nextToken", "nextToken", "maxResults");
3463
-
3464
- const paginateListInvocationSteps = core.createPaginator(BedrockAgentRuntimeClient, ListInvocationStepsCommand, "nextToken", "nextToken", "maxResults");
3465
-
3466
- const paginateListSessions = core.createPaginator(BedrockAgentRuntimeClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
3467
-
3468
- const paginateRerank = core.createPaginator(BedrockAgentRuntimeClient, RerankCommand, "nextToken", "nextToken", "");
3469
-
3470
- const paginateRetrieve = core.createPaginator(BedrockAgentRuntimeClient, RetrieveCommand, "nextToken", "nextToken", "");
3480
+ smithyClient.createAggregatedClient(commands, BedrockAgentRuntime, { paginators });
3471
3481
 
3472
3482
  const CustomControlMethod = {
3473
3483
  RETURN_CONTROL: "RETURN_CONTROL",
@@ -31,6 +31,14 @@ import { StopFlowExecutionCommand, } from "./commands/StopFlowExecutionCommand";
31
31
  import { TagResourceCommand } from "./commands/TagResourceCommand";
32
32
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
33
33
  import { UpdateSessionCommand, } from "./commands/UpdateSessionCommand";
34
+ import { paginateGetAgentMemory } from "./pagination/GetAgentMemoryPaginator";
35
+ import { paginateListFlowExecutionEvents } from "./pagination/ListFlowExecutionEventsPaginator";
36
+ import { paginateListFlowExecutions } from "./pagination/ListFlowExecutionsPaginator";
37
+ import { paginateListInvocations } from "./pagination/ListInvocationsPaginator";
38
+ import { paginateListInvocationSteps } from "./pagination/ListInvocationStepsPaginator";
39
+ import { paginateListSessions } from "./pagination/ListSessionsPaginator";
40
+ import { paginateRerank } from "./pagination/RerankPaginator";
41
+ import { paginateRetrieve } from "./pagination/RetrievePaginator";
34
42
  const commands = {
35
43
  CreateInvocationCommand,
36
44
  CreateSessionCommand,
@@ -64,6 +72,16 @@ const commands = {
64
72
  UntagResourceCommand,
65
73
  UpdateSessionCommand,
66
74
  };
75
+ const paginators = {
76
+ paginateGetAgentMemory,
77
+ paginateListFlowExecutionEvents,
78
+ paginateListFlowExecutions,
79
+ paginateListInvocations,
80
+ paginateListInvocationSteps,
81
+ paginateListSessions,
82
+ paginateRerank,
83
+ paginateRetrieve,
84
+ };
67
85
  export class BedrockAgentRuntime extends BedrockAgentRuntimeClient {
68
86
  }
69
- createAggregatedClient(commands, BedrockAgentRuntime);
87
+ createAggregatedClient(commands, BedrockAgentRuntime, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
3
3
  import { CreateInvocationCommandInput, CreateInvocationCommandOutput } from "./commands/CreateInvocationCommand";
4
4
  import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
@@ -220,6 +220,62 @@ export interface BedrockAgentRuntime {
220
220
  updateSession(args: UpdateSessionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSessionCommandOutput>;
221
221
  updateSession(args: UpdateSessionCommandInput, cb: (err: any, data?: UpdateSessionCommandOutput) => void): void;
222
222
  updateSession(args: UpdateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSessionCommandOutput) => void): void;
223
+ /**
224
+ * @see {@link GetAgentMemoryCommand}
225
+ * @param args - command input.
226
+ * @param paginationConfig - optional pagination config.
227
+ * @returns AsyncIterable of {@link GetAgentMemoryCommandOutput}.
228
+ */
229
+ paginateGetAgentMemory(args: GetAgentMemoryCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetAgentMemoryCommandOutput>;
230
+ /**
231
+ * @see {@link ListFlowExecutionEventsCommand}
232
+ * @param args - command input.
233
+ * @param paginationConfig - optional pagination config.
234
+ * @returns AsyncIterable of {@link ListFlowExecutionEventsCommandOutput}.
235
+ */
236
+ paginateListFlowExecutionEvents(args: ListFlowExecutionEventsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFlowExecutionEventsCommandOutput>;
237
+ /**
238
+ * @see {@link ListFlowExecutionsCommand}
239
+ * @param args - command input.
240
+ * @param paginationConfig - optional pagination config.
241
+ * @returns AsyncIterable of {@link ListFlowExecutionsCommandOutput}.
242
+ */
243
+ paginateListFlowExecutions(args: ListFlowExecutionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFlowExecutionsCommandOutput>;
244
+ /**
245
+ * @see {@link ListInvocationsCommand}
246
+ * @param args - command input.
247
+ * @param paginationConfig - optional pagination config.
248
+ * @returns AsyncIterable of {@link ListInvocationsCommandOutput}.
249
+ */
250
+ paginateListInvocations(args: ListInvocationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListInvocationsCommandOutput>;
251
+ /**
252
+ * @see {@link ListInvocationStepsCommand}
253
+ * @param args - command input.
254
+ * @param paginationConfig - optional pagination config.
255
+ * @returns AsyncIterable of {@link ListInvocationStepsCommandOutput}.
256
+ */
257
+ paginateListInvocationSteps(args: ListInvocationStepsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListInvocationStepsCommandOutput>;
258
+ /**
259
+ * @see {@link ListSessionsCommand}
260
+ * @param args - command input.
261
+ * @param paginationConfig - optional pagination config.
262
+ * @returns AsyncIterable of {@link ListSessionsCommandOutput}.
263
+ */
264
+ paginateListSessions(args?: ListSessionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSessionsCommandOutput>;
265
+ /**
266
+ * @see {@link RerankCommand}
267
+ * @param args - command input.
268
+ * @param paginationConfig - optional pagination config.
269
+ * @returns AsyncIterable of {@link RerankCommandOutput}.
270
+ */
271
+ paginateRerank(args: RerankCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<RerankCommandOutput>;
272
+ /**
273
+ * @see {@link RetrieveCommand}
274
+ * @param args - command input.
275
+ * @param paginationConfig - optional pagination config.
276
+ * @returns AsyncIterable of {@link RetrieveCommandOutput}.
277
+ */
278
+ paginateRetrieve(args: RetrieveCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<RetrieveCommandOutput>;
223
279
  }
224
280
  /**
225
281
  * <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
3
7
  import {
4
8
  CreateInvocationCommandInput,
@@ -530,6 +534,62 @@ export interface BedrockAgentRuntime {
530
534
  options: __HttpHandlerOptions,
531
535
  cb: (err: any, data?: UpdateSessionCommandOutput) => void
532
536
  ): void;
537
+ paginateGetAgentMemory(
538
+ args: GetAgentMemoryCommandInput,
539
+ paginationConfig?: Pick<
540
+ PaginationConfiguration,
541
+ Exclude<keyof PaginationConfiguration, "client">
542
+ >
543
+ ): Paginator<GetAgentMemoryCommandOutput>;
544
+ paginateListFlowExecutionEvents(
545
+ args: ListFlowExecutionEventsCommandInput,
546
+ paginationConfig?: Pick<
547
+ PaginationConfiguration,
548
+ Exclude<keyof PaginationConfiguration, "client">
549
+ >
550
+ ): Paginator<ListFlowExecutionEventsCommandOutput>;
551
+ paginateListFlowExecutions(
552
+ args: ListFlowExecutionsCommandInput,
553
+ paginationConfig?: Pick<
554
+ PaginationConfiguration,
555
+ Exclude<keyof PaginationConfiguration, "client">
556
+ >
557
+ ): Paginator<ListFlowExecutionsCommandOutput>;
558
+ paginateListInvocations(
559
+ args: ListInvocationsCommandInput,
560
+ paginationConfig?: Pick<
561
+ PaginationConfiguration,
562
+ Exclude<keyof PaginationConfiguration, "client">
563
+ >
564
+ ): Paginator<ListInvocationsCommandOutput>;
565
+ paginateListInvocationSteps(
566
+ args: ListInvocationStepsCommandInput,
567
+ paginationConfig?: Pick<
568
+ PaginationConfiguration,
569
+ Exclude<keyof PaginationConfiguration, "client">
570
+ >
571
+ ): Paginator<ListInvocationStepsCommandOutput>;
572
+ paginateListSessions(
573
+ args?: ListSessionsCommandInput,
574
+ paginationConfig?: Pick<
575
+ PaginationConfiguration,
576
+ Exclude<keyof PaginationConfiguration, "client">
577
+ >
578
+ ): Paginator<ListSessionsCommandOutput>;
579
+ paginateRerank(
580
+ args: RerankCommandInput,
581
+ paginationConfig?: Pick<
582
+ PaginationConfiguration,
583
+ Exclude<keyof PaginationConfiguration, "client">
584
+ >
585
+ ): Paginator<RerankCommandOutput>;
586
+ paginateRetrieve(
587
+ args: RetrieveCommandInput,
588
+ paginationConfig?: Pick<
589
+ PaginationConfiguration,
590
+ Exclude<keyof PaginationConfiguration, "client">
591
+ >
592
+ ): Paginator<RetrieveCommandOutput>;
533
593
  }
534
594
  export declare class BedrockAgentRuntime
535
595
  extends BedrockAgentRuntimeClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.974.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
@@ -21,19 +21,19 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.0",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.1",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.0",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/eventstream-serde-browser": "^4.2.8",
38
38
  "@smithy/eventstream-serde-config-resolver": "^4.3.8",
39
39
  "@smithy/eventstream-serde-node": "^4.2.8",
@@ -41,21 +41,21 @@
41
41
  "@smithy/hash-node": "^4.2.8",
42
42
  "@smithy/invalid-dependency": "^4.2.8",
43
43
  "@smithy/middleware-content-length": "^4.2.8",
44
- "@smithy/middleware-endpoint": "^4.4.10",
45
- "@smithy/middleware-retry": "^4.4.26",
44
+ "@smithy/middleware-endpoint": "^4.4.12",
45
+ "@smithy/middleware-retry": "^4.4.29",
46
46
  "@smithy/middleware-serde": "^4.2.9",
47
47
  "@smithy/middleware-stack": "^4.2.8",
48
48
  "@smithy/node-config-provider": "^4.3.8",
49
49
  "@smithy/node-http-handler": "^4.4.8",
50
50
  "@smithy/protocol-http": "^5.3.8",
51
- "@smithy/smithy-client": "^4.10.11",
51
+ "@smithy/smithy-client": "^4.11.1",
52
52
  "@smithy/types": "^4.12.0",
53
53
  "@smithy/url-parser": "^4.2.8",
54
54
  "@smithy/util-base64": "^4.3.0",
55
55
  "@smithy/util-body-length-browser": "^4.2.0",
56
56
  "@smithy/util-body-length-node": "^4.2.1",
57
- "@smithy/util-defaults-mode-browser": "^4.3.25",
58
- "@smithy/util-defaults-mode-node": "^4.2.28",
57
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
58
+ "@smithy/util-defaults-mode-node": "^4.2.31",
59
59
  "@smithy/util-endpoints": "^3.2.8",
60
60
  "@smithy/util-middleware": "^4.2.8",
61
61
  "@smithy/util-retry": "^4.2.8",