@aws-sdk/client-bedrock-agentcore 3.975.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
@@ -2016,6 +2016,18 @@ class UpdateBrowserStreamCommand extends smithyClient.Command
2016
2016
  .build() {
2017
2017
  }
2018
2018
 
2019
+ const paginateListActors = core.createPaginator(BedrockAgentCoreClient, ListActorsCommand, "nextToken", "nextToken", "maxResults");
2020
+
2021
+ const paginateListEvents = core.createPaginator(BedrockAgentCoreClient, ListEventsCommand, "nextToken", "nextToken", "maxResults");
2022
+
2023
+ const paginateListMemoryExtractionJobs = core.createPaginator(BedrockAgentCoreClient, ListMemoryExtractionJobsCommand, "nextToken", "nextToken", "maxResults");
2024
+
2025
+ const paginateListMemoryRecords = core.createPaginator(BedrockAgentCoreClient, ListMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
2026
+
2027
+ const paginateListSessions = core.createPaginator(BedrockAgentCoreClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
2028
+
2029
+ const paginateRetrieveMemoryRecords = core.createPaginator(BedrockAgentCoreClient, RetrieveMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
2030
+
2019
2031
  const commands = {
2020
2032
  BatchCreateMemoryRecordsCommand,
2021
2033
  BatchDeleteMemoryRecordsCommand,
@@ -2053,21 +2065,17 @@ const commands = {
2053
2065
  StopRuntimeSessionCommand,
2054
2066
  UpdateBrowserStreamCommand,
2055
2067
  };
2068
+ const paginators = {
2069
+ paginateListActors,
2070
+ paginateListEvents,
2071
+ paginateListMemoryExtractionJobs,
2072
+ paginateListMemoryRecords,
2073
+ paginateListSessions,
2074
+ paginateRetrieveMemoryRecords,
2075
+ };
2056
2076
  class BedrockAgentCore extends BedrockAgentCoreClient {
2057
2077
  }
2058
- smithyClient.createAggregatedClient(commands, BedrockAgentCore);
2059
-
2060
- const paginateListActors = core.createPaginator(BedrockAgentCoreClient, ListActorsCommand, "nextToken", "nextToken", "maxResults");
2061
-
2062
- const paginateListEvents = core.createPaginator(BedrockAgentCoreClient, ListEventsCommand, "nextToken", "nextToken", "maxResults");
2063
-
2064
- const paginateListMemoryExtractionJobs = core.createPaginator(BedrockAgentCoreClient, ListMemoryExtractionJobsCommand, "nextToken", "nextToken", "maxResults");
2065
-
2066
- const paginateListMemoryRecords = core.createPaginator(BedrockAgentCoreClient, ListMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
2067
-
2068
- const paginateListSessions = core.createPaginator(BedrockAgentCoreClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
2069
-
2070
- const paginateRetrieveMemoryRecords = core.createPaginator(BedrockAgentCoreClient, RetrieveMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
2078
+ smithyClient.createAggregatedClient(commands, BedrockAgentCore, { paginators });
2071
2079
 
2072
2080
  const ValidationExceptionReason = {
2073
2081
  CANNOT_PARSE: "CannotParse",
@@ -35,6 +35,12 @@ import { StopBrowserSessionCommand, } from "./commands/StopBrowserSessionCommand
35
35
  import { StopCodeInterpreterSessionCommand, } from "./commands/StopCodeInterpreterSessionCommand";
36
36
  import { StopRuntimeSessionCommand, } from "./commands/StopRuntimeSessionCommand";
37
37
  import { UpdateBrowserStreamCommand, } from "./commands/UpdateBrowserStreamCommand";
38
+ import { paginateListActors } from "./pagination/ListActorsPaginator";
39
+ import { paginateListEvents } from "./pagination/ListEventsPaginator";
40
+ import { paginateListMemoryExtractionJobs } from "./pagination/ListMemoryExtractionJobsPaginator";
41
+ import { paginateListMemoryRecords } from "./pagination/ListMemoryRecordsPaginator";
42
+ import { paginateListSessions } from "./pagination/ListSessionsPaginator";
43
+ import { paginateRetrieveMemoryRecords } from "./pagination/RetrieveMemoryRecordsPaginator";
38
44
  const commands = {
39
45
  BatchCreateMemoryRecordsCommand,
40
46
  BatchDeleteMemoryRecordsCommand,
@@ -72,6 +78,14 @@ const commands = {
72
78
  StopRuntimeSessionCommand,
73
79
  UpdateBrowserStreamCommand,
74
80
  };
81
+ const paginators = {
82
+ paginateListActors,
83
+ paginateListEvents,
84
+ paginateListMemoryExtractionJobs,
85
+ paginateListMemoryRecords,
86
+ paginateListSessions,
87
+ paginateRetrieveMemoryRecords,
88
+ };
75
89
  export class BedrockAgentCore extends BedrockAgentCoreClient {
76
90
  }
77
- createAggregatedClient(commands, BedrockAgentCore);
91
+ createAggregatedClient(commands, BedrockAgentCore, { 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 { BedrockAgentCoreClient } from "./BedrockAgentCoreClient";
3
3
  import { BatchCreateMemoryRecordsCommandInput, BatchCreateMemoryRecordsCommandOutput } from "./commands/BatchCreateMemoryRecordsCommand";
4
4
  import { BatchDeleteMemoryRecordsCommandInput, BatchDeleteMemoryRecordsCommandOutput } from "./commands/BatchDeleteMemoryRecordsCommand";
@@ -246,6 +246,48 @@ export interface BedrockAgentCore {
246
246
  updateBrowserStream(args: UpdateBrowserStreamCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBrowserStreamCommandOutput>;
247
247
  updateBrowserStream(args: UpdateBrowserStreamCommandInput, cb: (err: any, data?: UpdateBrowserStreamCommandOutput) => void): void;
248
248
  updateBrowserStream(args: UpdateBrowserStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBrowserStreamCommandOutput) => void): void;
249
+ /**
250
+ * @see {@link ListActorsCommand}
251
+ * @param args - command input.
252
+ * @param paginationConfig - optional pagination config.
253
+ * @returns AsyncIterable of {@link ListActorsCommandOutput}.
254
+ */
255
+ paginateListActors(args: ListActorsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListActorsCommandOutput>;
256
+ /**
257
+ * @see {@link ListEventsCommand}
258
+ * @param args - command input.
259
+ * @param paginationConfig - optional pagination config.
260
+ * @returns AsyncIterable of {@link ListEventsCommandOutput}.
261
+ */
262
+ paginateListEvents(args: ListEventsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEventsCommandOutput>;
263
+ /**
264
+ * @see {@link ListMemoryExtractionJobsCommand}
265
+ * @param args - command input.
266
+ * @param paginationConfig - optional pagination config.
267
+ * @returns AsyncIterable of {@link ListMemoryExtractionJobsCommandOutput}.
268
+ */
269
+ paginateListMemoryExtractionJobs(args: ListMemoryExtractionJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListMemoryExtractionJobsCommandOutput>;
270
+ /**
271
+ * @see {@link ListMemoryRecordsCommand}
272
+ * @param args - command input.
273
+ * @param paginationConfig - optional pagination config.
274
+ * @returns AsyncIterable of {@link ListMemoryRecordsCommandOutput}.
275
+ */
276
+ paginateListMemoryRecords(args: ListMemoryRecordsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListMemoryRecordsCommandOutput>;
277
+ /**
278
+ * @see {@link ListSessionsCommand}
279
+ * @param args - command input.
280
+ * @param paginationConfig - optional pagination config.
281
+ * @returns AsyncIterable of {@link ListSessionsCommandOutput}.
282
+ */
283
+ paginateListSessions(args: ListSessionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSessionsCommandOutput>;
284
+ /**
285
+ * @see {@link RetrieveMemoryRecordsCommand}
286
+ * @param args - command input.
287
+ * @param paginationConfig - optional pagination config.
288
+ * @returns AsyncIterable of {@link RetrieveMemoryRecordsCommandOutput}.
289
+ */
290
+ paginateRetrieveMemoryRecords(args: RetrieveMemoryRecordsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<RetrieveMemoryRecordsCommandOutput>;
249
291
  }
250
292
  /**
251
293
  * <p>Welcome to the Amazon Bedrock AgentCore Data Plane API reference. Data Plane actions process and handle data or workloads within Amazon Web Services services. </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 { BedrockAgentCoreClient } from "./BedrockAgentCoreClient";
3
7
  import {
4
8
  BatchCreateMemoryRecordsCommandInput,
@@ -596,6 +600,48 @@ export interface BedrockAgentCore {
596
600
  options: __HttpHandlerOptions,
597
601
  cb: (err: any, data?: UpdateBrowserStreamCommandOutput) => void
598
602
  ): void;
603
+ paginateListActors(
604
+ args: ListActorsCommandInput,
605
+ paginationConfig?: Pick<
606
+ PaginationConfiguration,
607
+ Exclude<keyof PaginationConfiguration, "client">
608
+ >
609
+ ): Paginator<ListActorsCommandOutput>;
610
+ paginateListEvents(
611
+ args: ListEventsCommandInput,
612
+ paginationConfig?: Pick<
613
+ PaginationConfiguration,
614
+ Exclude<keyof PaginationConfiguration, "client">
615
+ >
616
+ ): Paginator<ListEventsCommandOutput>;
617
+ paginateListMemoryExtractionJobs(
618
+ args: ListMemoryExtractionJobsCommandInput,
619
+ paginationConfig?: Pick<
620
+ PaginationConfiguration,
621
+ Exclude<keyof PaginationConfiguration, "client">
622
+ >
623
+ ): Paginator<ListMemoryExtractionJobsCommandOutput>;
624
+ paginateListMemoryRecords(
625
+ args: ListMemoryRecordsCommandInput,
626
+ paginationConfig?: Pick<
627
+ PaginationConfiguration,
628
+ Exclude<keyof PaginationConfiguration, "client">
629
+ >
630
+ ): Paginator<ListMemoryRecordsCommandOutput>;
631
+ paginateListSessions(
632
+ args: ListSessionsCommandInput,
633
+ paginationConfig?: Pick<
634
+ PaginationConfiguration,
635
+ Exclude<keyof PaginationConfiguration, "client">
636
+ >
637
+ ): Paginator<ListSessionsCommandOutput>;
638
+ paginateRetrieveMemoryRecords(
639
+ args: RetrieveMemoryRecordsCommandInput,
640
+ paginationConfig?: Pick<
641
+ PaginationConfiguration,
642
+ Exclude<keyof PaginationConfiguration, "client">
643
+ >
644
+ ): Paginator<RetrieveMemoryRecordsCommandOutput>;
599
645
  }
600
646
  export declare class BedrockAgentCore
601
647
  extends BedrockAgentCoreClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agentcore",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
4
- "version": "3.975.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-agentcore",
@@ -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.1",
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.2",
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.1",
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.11",
45
- "@smithy/middleware-retry": "^4.4.27",
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.12",
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.26",
58
- "@smithy/util-defaults-mode-node": "^4.2.29",
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",