@aws-sdk/client-bedrock-agent-runtime 3.755.0 → 3.764.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 (92) hide show
  1. package/README.md +119 -7
  2. package/dist-cjs/index.js +1035 -78
  3. package/dist-es/BedrockAgentRuntime.js +28 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +22 -0
  5. package/dist-es/commands/CreateSessionCommand.js +22 -0
  6. package/dist-es/commands/DeleteSessionCommand.js +22 -0
  7. package/dist-es/commands/EndSessionCommand.js +22 -0
  8. package/dist-es/commands/GetInvocationStepCommand.js +23 -0
  9. package/dist-es/commands/GetSessionCommand.js +22 -0
  10. package/dist-es/commands/InvokeAgentCommand.js +2 -1
  11. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
  12. package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
  13. package/dist-es/commands/ListInvocationsCommand.js +22 -0
  14. package/dist-es/commands/ListSessionsCommand.js +22 -0
  15. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  16. package/dist-es/commands/PutInvocationStepCommand.js +23 -0
  17. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
  18. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
  19. package/dist-es/commands/RetrieveCommand.js +2 -1
  20. package/dist-es/commands/TagResourceCommand.js +22 -0
  21. package/dist-es/commands/UntagResourceCommand.js +22 -0
  22. package/dist-es/commands/UpdateSessionCommand.js +22 -0
  23. package/dist-es/commands/index.js +14 -0
  24. package/dist-es/models/index.js +1 -0
  25. package/dist-es/models/models_0.js +76 -156
  26. package/dist-es/models/models_1.js +181 -0
  27. package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
  28. package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
  29. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +3 -0
  31. package/dist-es/protocols/Aws_restJson1.js +560 -8
  32. package/dist-types/BedrockAgentRuntime.d.ts +100 -0
  33. package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
  34. package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
  35. package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
  36. package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
  37. package/dist-types/commands/EndSessionCommand.d.ts +93 -0
  38. package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
  39. package/dist-types/commands/GetSessionCommand.d.ts +94 -0
  40. package/dist-types/commands/InvokeAgentCommand.d.ts +3 -1
  41. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +216 -64
  42. package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
  43. package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
  44. package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  46. package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
  47. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
  48. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
  49. package/dist-types/commands/RetrieveCommand.d.ts +2 -1
  50. package/dist-types/commands/TagResourceCommand.d.ts +91 -0
  51. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  52. package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
  53. package/dist-types/commands/index.d.ts +14 -0
  54. package/dist-types/models/index.d.ts +1 -0
  55. package/dist-types/models/models_0.d.ts +605 -684
  56. package/dist-types/models/models_1.d.ts +1055 -0
  57. package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/index.d.ts +3 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  62. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
  63. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
  64. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
  67. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  70. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
  71. package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
  72. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
  73. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
  74. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
  78. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
  79. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
  80. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +48 -0
  81. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  82. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  84. package/dist-types/ts3.4/models/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +250 -374
  86. package/dist-types/ts3.4/models/models_1.d.ts +441 -0
  87. package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  92. package/package.json +12 -12
@@ -6,10 +6,26 @@ import {
6
6
  EventStreamSerdeContext as __EventStreamSerdeContext,
7
7
  SerdeContext as __SerdeContext,
8
8
  } from "@smithy/types";
9
+ import {
10
+ CreateInvocationCommandInput,
11
+ CreateInvocationCommandOutput,
12
+ } from "../commands/CreateInvocationCommand";
13
+ import {
14
+ CreateSessionCommandInput,
15
+ CreateSessionCommandOutput,
16
+ } from "../commands/CreateSessionCommand";
9
17
  import {
10
18
  DeleteAgentMemoryCommandInput,
11
19
  DeleteAgentMemoryCommandOutput,
12
20
  } from "../commands/DeleteAgentMemoryCommand";
21
+ import {
22
+ DeleteSessionCommandInput,
23
+ DeleteSessionCommandOutput,
24
+ } from "../commands/DeleteSessionCommand";
25
+ import {
26
+ EndSessionCommandInput,
27
+ EndSessionCommandOutput,
28
+ } from "../commands/EndSessionCommand";
13
29
  import {
14
30
  GenerateQueryCommandInput,
15
31
  GenerateQueryCommandOutput,
@@ -18,6 +34,14 @@ import {
18
34
  GetAgentMemoryCommandInput,
19
35
  GetAgentMemoryCommandOutput,
20
36
  } from "../commands/GetAgentMemoryCommand";
37
+ import {
38
+ GetInvocationStepCommandInput,
39
+ GetInvocationStepCommandOutput,
40
+ } from "../commands/GetInvocationStepCommand";
41
+ import {
42
+ GetSessionCommandInput,
43
+ GetSessionCommandOutput,
44
+ } from "../commands/GetSessionCommand";
21
45
  import {
22
46
  InvokeAgentCommandInput,
23
47
  InvokeAgentCommandOutput,
@@ -30,10 +54,30 @@ import {
30
54
  InvokeInlineAgentCommandInput,
31
55
  InvokeInlineAgentCommandOutput,
32
56
  } from "../commands/InvokeInlineAgentCommand";
57
+ import {
58
+ ListInvocationsCommandInput,
59
+ ListInvocationsCommandOutput,
60
+ } from "../commands/ListInvocationsCommand";
61
+ import {
62
+ ListInvocationStepsCommandInput,
63
+ ListInvocationStepsCommandOutput,
64
+ } from "../commands/ListInvocationStepsCommand";
65
+ import {
66
+ ListSessionsCommandInput,
67
+ ListSessionsCommandOutput,
68
+ } from "../commands/ListSessionsCommand";
69
+ import {
70
+ ListTagsForResourceCommandInput,
71
+ ListTagsForResourceCommandOutput,
72
+ } from "../commands/ListTagsForResourceCommand";
33
73
  import {
34
74
  OptimizePromptCommandInput,
35
75
  OptimizePromptCommandOutput,
36
76
  } from "../commands/OptimizePromptCommand";
77
+ import {
78
+ PutInvocationStepCommandInput,
79
+ PutInvocationStepCommandOutput,
80
+ } from "../commands/PutInvocationStepCommand";
37
81
  import {
38
82
  RerankCommandInput,
39
83
  RerankCommandOutput,
@@ -50,10 +94,38 @@ import {
50
94
  RetrieveCommandInput,
51
95
  RetrieveCommandOutput,
52
96
  } from "../commands/RetrieveCommand";
97
+ import {
98
+ TagResourceCommandInput,
99
+ TagResourceCommandOutput,
100
+ } from "../commands/TagResourceCommand";
101
+ import {
102
+ UntagResourceCommandInput,
103
+ UntagResourceCommandOutput,
104
+ } from "../commands/UntagResourceCommand";
105
+ import {
106
+ UpdateSessionCommandInput,
107
+ UpdateSessionCommandOutput,
108
+ } from "../commands/UpdateSessionCommand";
109
+ export declare const se_CreateInvocationCommand: (
110
+ input: CreateInvocationCommandInput,
111
+ context: __SerdeContext
112
+ ) => Promise<__HttpRequest>;
113
+ export declare const se_CreateSessionCommand: (
114
+ input: CreateSessionCommandInput,
115
+ context: __SerdeContext
116
+ ) => Promise<__HttpRequest>;
53
117
  export declare const se_DeleteAgentMemoryCommand: (
54
118
  input: DeleteAgentMemoryCommandInput,
55
119
  context: __SerdeContext
56
120
  ) => Promise<__HttpRequest>;
121
+ export declare const se_DeleteSessionCommand: (
122
+ input: DeleteSessionCommandInput,
123
+ context: __SerdeContext
124
+ ) => Promise<__HttpRequest>;
125
+ export declare const se_EndSessionCommand: (
126
+ input: EndSessionCommandInput,
127
+ context: __SerdeContext
128
+ ) => Promise<__HttpRequest>;
57
129
  export declare const se_GenerateQueryCommand: (
58
130
  input: GenerateQueryCommandInput,
59
131
  context: __SerdeContext
@@ -62,6 +134,14 @@ export declare const se_GetAgentMemoryCommand: (
62
134
  input: GetAgentMemoryCommandInput,
63
135
  context: __SerdeContext
64
136
  ) => Promise<__HttpRequest>;
137
+ export declare const se_GetInvocationStepCommand: (
138
+ input: GetInvocationStepCommandInput,
139
+ context: __SerdeContext
140
+ ) => Promise<__HttpRequest>;
141
+ export declare const se_GetSessionCommand: (
142
+ input: GetSessionCommandInput,
143
+ context: __SerdeContext
144
+ ) => Promise<__HttpRequest>;
65
145
  export declare const se_InvokeAgentCommand: (
66
146
  input: InvokeAgentCommandInput,
67
147
  context: __SerdeContext
@@ -74,10 +154,30 @@ export declare const se_InvokeInlineAgentCommand: (
74
154
  input: InvokeInlineAgentCommandInput,
75
155
  context: __SerdeContext
76
156
  ) => Promise<__HttpRequest>;
157
+ export declare const se_ListInvocationsCommand: (
158
+ input: ListInvocationsCommandInput,
159
+ context: __SerdeContext
160
+ ) => Promise<__HttpRequest>;
161
+ export declare const se_ListInvocationStepsCommand: (
162
+ input: ListInvocationStepsCommandInput,
163
+ context: __SerdeContext
164
+ ) => Promise<__HttpRequest>;
165
+ export declare const se_ListSessionsCommand: (
166
+ input: ListSessionsCommandInput,
167
+ context: __SerdeContext
168
+ ) => Promise<__HttpRequest>;
169
+ export declare const se_ListTagsForResourceCommand: (
170
+ input: ListTagsForResourceCommandInput,
171
+ context: __SerdeContext
172
+ ) => Promise<__HttpRequest>;
77
173
  export declare const se_OptimizePromptCommand: (
78
174
  input: OptimizePromptCommandInput,
79
175
  context: __SerdeContext
80
176
  ) => Promise<__HttpRequest>;
177
+ export declare const se_PutInvocationStepCommand: (
178
+ input: PutInvocationStepCommandInput,
179
+ context: __SerdeContext
180
+ ) => Promise<__HttpRequest>;
81
181
  export declare const se_RerankCommand: (
82
182
  input: RerankCommandInput,
83
183
  context: __SerdeContext
@@ -94,10 +194,38 @@ export declare const se_RetrieveAndGenerateStreamCommand: (
94
194
  input: RetrieveAndGenerateStreamCommandInput,
95
195
  context: __SerdeContext
96
196
  ) => Promise<__HttpRequest>;
197
+ export declare const se_TagResourceCommand: (
198
+ input: TagResourceCommandInput,
199
+ context: __SerdeContext
200
+ ) => Promise<__HttpRequest>;
201
+ export declare const se_UntagResourceCommand: (
202
+ input: UntagResourceCommandInput,
203
+ context: __SerdeContext
204
+ ) => Promise<__HttpRequest>;
205
+ export declare const se_UpdateSessionCommand: (
206
+ input: UpdateSessionCommandInput,
207
+ context: __SerdeContext
208
+ ) => Promise<__HttpRequest>;
209
+ export declare const de_CreateInvocationCommand: (
210
+ output: __HttpResponse,
211
+ context: __SerdeContext
212
+ ) => Promise<CreateInvocationCommandOutput>;
213
+ export declare const de_CreateSessionCommand: (
214
+ output: __HttpResponse,
215
+ context: __SerdeContext
216
+ ) => Promise<CreateSessionCommandOutput>;
97
217
  export declare const de_DeleteAgentMemoryCommand: (
98
218
  output: __HttpResponse,
99
219
  context: __SerdeContext
100
220
  ) => Promise<DeleteAgentMemoryCommandOutput>;
221
+ export declare const de_DeleteSessionCommand: (
222
+ output: __HttpResponse,
223
+ context: __SerdeContext
224
+ ) => Promise<DeleteSessionCommandOutput>;
225
+ export declare const de_EndSessionCommand: (
226
+ output: __HttpResponse,
227
+ context: __SerdeContext
228
+ ) => Promise<EndSessionCommandOutput>;
101
229
  export declare const de_GenerateQueryCommand: (
102
230
  output: __HttpResponse,
103
231
  context: __SerdeContext
@@ -106,6 +234,14 @@ export declare const de_GetAgentMemoryCommand: (
106
234
  output: __HttpResponse,
107
235
  context: __SerdeContext
108
236
  ) => Promise<GetAgentMemoryCommandOutput>;
237
+ export declare const de_GetInvocationStepCommand: (
238
+ output: __HttpResponse,
239
+ context: __SerdeContext
240
+ ) => Promise<GetInvocationStepCommandOutput>;
241
+ export declare const de_GetSessionCommand: (
242
+ output: __HttpResponse,
243
+ context: __SerdeContext
244
+ ) => Promise<GetSessionCommandOutput>;
109
245
  export declare const de_InvokeAgentCommand: (
110
246
  output: __HttpResponse,
111
247
  context: __SerdeContext & __EventStreamSerdeContext
@@ -118,10 +254,30 @@ export declare const de_InvokeInlineAgentCommand: (
118
254
  output: __HttpResponse,
119
255
  context: __SerdeContext & __EventStreamSerdeContext
120
256
  ) => Promise<InvokeInlineAgentCommandOutput>;
257
+ export declare const de_ListInvocationsCommand: (
258
+ output: __HttpResponse,
259
+ context: __SerdeContext
260
+ ) => Promise<ListInvocationsCommandOutput>;
261
+ export declare const de_ListInvocationStepsCommand: (
262
+ output: __HttpResponse,
263
+ context: __SerdeContext
264
+ ) => Promise<ListInvocationStepsCommandOutput>;
265
+ export declare const de_ListSessionsCommand: (
266
+ output: __HttpResponse,
267
+ context: __SerdeContext
268
+ ) => Promise<ListSessionsCommandOutput>;
269
+ export declare const de_ListTagsForResourceCommand: (
270
+ output: __HttpResponse,
271
+ context: __SerdeContext
272
+ ) => Promise<ListTagsForResourceCommandOutput>;
121
273
  export declare const de_OptimizePromptCommand: (
122
274
  output: __HttpResponse,
123
275
  context: __SerdeContext & __EventStreamSerdeContext
124
276
  ) => Promise<OptimizePromptCommandOutput>;
277
+ export declare const de_PutInvocationStepCommand: (
278
+ output: __HttpResponse,
279
+ context: __SerdeContext
280
+ ) => Promise<PutInvocationStepCommandOutput>;
125
281
  export declare const de_RerankCommand: (
126
282
  output: __HttpResponse,
127
283
  context: __SerdeContext
@@ -138,3 +294,15 @@ export declare const de_RetrieveAndGenerateStreamCommand: (
138
294
  output: __HttpResponse,
139
295
  context: __SerdeContext & __EventStreamSerdeContext
140
296
  ) => Promise<RetrieveAndGenerateStreamCommandOutput>;
297
+ export declare const de_TagResourceCommand: (
298
+ output: __HttpResponse,
299
+ context: __SerdeContext
300
+ ) => Promise<TagResourceCommandOutput>;
301
+ export declare const de_UntagResourceCommand: (
302
+ output: __HttpResponse,
303
+ context: __SerdeContext
304
+ ) => Promise<UntagResourceCommandOutput>;
305
+ export declare const de_UpdateSessionCommand: (
306
+ output: __HttpResponse,
307
+ context: __SerdeContext
308
+ ) => Promise<UpdateSessionCommandOutput>;
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.755.0",
4
+ "version": "3.764.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.750.0",
24
- "@aws-sdk/credential-provider-node": "3.750.0",
23
+ "@aws-sdk/core": "3.758.0",
24
+ "@aws-sdk/credential-provider-node": "3.758.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.734.0",
28
- "@aws-sdk/middleware-user-agent": "3.750.0",
28
+ "@aws-sdk/middleware-user-agent": "3.758.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",
31
31
  "@aws-sdk/util-endpoints": "3.743.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.750.0",
33
+ "@aws-sdk/util-user-agent-node": "3.758.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.4",
35
+ "@smithy/core": "^3.1.5",
36
36
  "@smithy/eventstream-serde-browser": "^4.0.1",
37
37
  "@smithy/eventstream-serde-config-resolver": "^4.0.1",
38
38
  "@smithy/eventstream-serde-node": "^4.0.1",
@@ -40,21 +40,21 @@
40
40
  "@smithy/hash-node": "^4.0.1",
41
41
  "@smithy/invalid-dependency": "^4.0.1",
42
42
  "@smithy/middleware-content-length": "^4.0.1",
43
- "@smithy/middleware-endpoint": "^4.0.5",
44
- "@smithy/middleware-retry": "^4.0.6",
43
+ "@smithy/middleware-endpoint": "^4.0.6",
44
+ "@smithy/middleware-retry": "^4.0.7",
45
45
  "@smithy/middleware-serde": "^4.0.2",
46
46
  "@smithy/middleware-stack": "^4.0.1",
47
47
  "@smithy/node-config-provider": "^4.0.1",
48
- "@smithy/node-http-handler": "^4.0.2",
48
+ "@smithy/node-http-handler": "^4.0.3",
49
49
  "@smithy/protocol-http": "^5.0.1",
50
- "@smithy/smithy-client": "^4.1.5",
50
+ "@smithy/smithy-client": "^4.1.6",
51
51
  "@smithy/types": "^4.1.0",
52
52
  "@smithy/url-parser": "^4.0.1",
53
53
  "@smithy/util-base64": "^4.0.0",
54
54
  "@smithy/util-body-length-browser": "^4.0.0",
55
55
  "@smithy/util-body-length-node": "^4.0.0",
56
- "@smithy/util-defaults-mode-browser": "^4.0.6",
57
- "@smithy/util-defaults-mode-node": "^4.0.6",
56
+ "@smithy/util-defaults-mode-browser": "^4.0.7",
57
+ "@smithy/util-defaults-mode-node": "^4.0.7",
58
58
  "@smithy/util-endpoints": "^3.0.1",
59
59
  "@smithy/util-middleware": "^4.0.1",
60
60
  "@smithy/util-retry": "^4.0.1",