@aws-sdk/client-bedrock-agent-runtime 3.1069.0 → 3.1071.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 (65) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +93 -8
  3. package/dist-cjs/models/errors.js +42 -42
  4. package/dist-cjs/runtimeConfig.js +5 -2
  5. package/dist-cjs/schemas/schemas_0.js +567 -139
  6. package/dist-es/BedrockAgentRuntime.js +4 -0
  7. package/dist-es/commands/AgenticRetrieveStreamCommand.js +20 -0
  8. package/dist-es/commands/GetDocumentContentCommand.js +16 -0
  9. package/dist-es/commands/index.js +2 -0
  10. package/dist-es/models/enums.js +50 -7
  11. package/dist-es/models/errors.js +42 -42
  12. package/dist-es/runtimeConfig.js +5 -2
  13. package/dist-es/schemas/schemas_0.js +521 -139
  14. package/dist-types/BedrockAgentRuntime.d.ts +14 -0
  15. package/dist-types/BedrockAgentRuntimeClient.d.ts +4 -2
  16. package/dist-types/commands/AgenticRetrieveStreamCommand.d.ts +338 -0
  17. package/dist-types/commands/GetDocumentContentCommand.d.ts +99 -0
  18. package/dist-types/commands/GetInvocationStepCommand.d.ts +1 -1
  19. package/dist-types/commands/InvokeAgentCommand.d.ts +55 -4
  20. package/dist-types/commands/InvokeFlowCommand.d.ts +14 -2
  21. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +78 -8
  22. package/dist-types/commands/ListFlowExecutionEventsCommand.d.ts +14 -2
  23. package/dist-types/commands/ListInvocationStepsCommand.d.ts +1 -1
  24. package/dist-types/commands/ListInvocationsCommand.d.ts +1 -1
  25. package/dist-types/commands/ListSessionsCommand.d.ts +1 -1
  26. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/PutInvocationStepCommand.d.ts +1 -1
  28. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +45 -3
  29. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +52 -4
  30. package/dist-types/commands/RetrieveCommand.d.ts +45 -2
  31. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  32. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateSessionCommand.d.ts +1 -1
  34. package/dist-types/commands/index.d.ts +2 -0
  35. package/dist-types/models/enums.d.ts +163 -16
  36. package/dist-types/models/errors.d.ts +45 -45
  37. package/dist-types/models/models_0.d.ts +4105 -4355
  38. package/dist-types/models/models_1.d.ts +1396 -2
  39. package/dist-types/runtimeConfig.d.ts +1 -1
  40. package/dist-types/schemas/schemas_0.d.ts +48 -0
  41. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +34 -0
  42. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +12 -0
  43. package/dist-types/ts3.4/commands/AgenticRetrieveStreamCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/GetDocumentContentCommand.d.ts +53 -0
  45. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
  47. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
  53. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
  54. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
  55. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  59. package/dist-types/ts3.4/models/enums.d.ts +74 -11
  60. package/dist-types/ts3.4/models/errors.d.ts +28 -28
  61. package/dist-types/ts3.4/models/models_0.d.ts +448 -541
  62. package/dist-types/ts3.4/models/models_1.d.ts +602 -3
  63. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  64. package/dist-types/ts3.4/schemas/schemas_0.d.ts +48 -0
  65. package/package.json +3 -3
@@ -139,6 +139,53 @@ export declare const PayloadType: {
139
139
  * @public
140
140
  */
141
141
  export type PayloadType = (typeof PayloadType)[keyof typeof PayloadType];
142
+ /**
143
+ * @public
144
+ * @enum
145
+ */
146
+ export declare const FoundationModelConfigurationType: {
147
+ readonly BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL";
148
+ };
149
+ /**
150
+ * @public
151
+ */
152
+ export type FoundationModelConfigurationType = (typeof FoundationModelConfigurationType)[keyof typeof FoundationModelConfigurationType];
153
+ /**
154
+ * @public
155
+ * @enum
156
+ */
157
+ export declare const FoundationModelType: {
158
+ readonly CUSTOM: "CUSTOM";
159
+ readonly MANAGED: "MANAGED";
160
+ };
161
+ /**
162
+ * @public
163
+ */
164
+ export type FoundationModelType = (typeof FoundationModelType)[keyof typeof FoundationModelType];
165
+ /**
166
+ * @public
167
+ * @enum
168
+ */
169
+ export declare const AgenticRetrieveRerankingConfigurationType: {
170
+ readonly BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL";
171
+ };
172
+ /**
173
+ * @public
174
+ */
175
+ export type AgenticRetrieveRerankingConfigurationType = (typeof AgenticRetrieveRerankingConfigurationType)[keyof typeof AgenticRetrieveRerankingConfigurationType];
176
+ /**
177
+ * @public
178
+ * @enum
179
+ */
180
+ export declare const AgenticRetrieveRerankingModelType: {
181
+ readonly CUSTOM: "CUSTOM";
182
+ readonly MANAGED: "MANAGED";
183
+ readonly NONE: "NONE";
184
+ };
185
+ /**
186
+ * @public
187
+ */
188
+ export type AgenticRetrieveRerankingModelType = (typeof AgenticRetrieveRerankingModelType)[keyof typeof AgenticRetrieveRerankingModelType];
142
189
  /**
143
190
  * @public
144
191
  * @enum
@@ -151,6 +198,80 @@ export declare const GuardrailAction: {
151
198
  * @public
152
199
  */
153
200
  export type GuardrailAction = (typeof GuardrailAction)[keyof typeof GuardrailAction];
201
+ /**
202
+ * @public
203
+ * @enum
204
+ */
205
+ export declare const ConversationRole: {
206
+ readonly ASSISTANT: "assistant";
207
+ readonly USER: "user";
208
+ };
209
+ /**
210
+ * @public
211
+ */
212
+ export type ConversationRole = (typeof ConversationRole)[keyof typeof ConversationRole];
213
+ /**
214
+ * @public
215
+ * @enum
216
+ */
217
+ export declare const AgenticRetrieveType: {
218
+ /**
219
+ * <p>A Bedrock knowledge base retrieval source.</p>
220
+ */
221
+ readonly BEDROCK_KNOWLEDGE_BASE: "BedrockKnowledgeBase";
222
+ };
223
+ /**
224
+ * @public
225
+ */
226
+ export type AgenticRetrieveType = (typeof AgenticRetrieveType)[keyof typeof AgenticRetrieveType];
227
+ /**
228
+ * @public
229
+ * @enum
230
+ */
231
+ export declare const AgenticRetrieveStatus: {
232
+ /**
233
+ * <p>The step failed.</p>
234
+ */
235
+ readonly FAILED: "FAILED";
236
+ /**
237
+ * <p>The step is currently in progress.</p>
238
+ */
239
+ readonly IN_PROGRESS: "IN_PROGRESS";
240
+ /**
241
+ * <p>The step completed successfully.</p>
242
+ */
243
+ readonly SUCCEEDED: "SUCCEEDED";
244
+ };
245
+ /**
246
+ * @public
247
+ */
248
+ export type AgenticRetrieveStatus = (typeof AgenticRetrieveStatus)[keyof typeof AgenticRetrieveStatus];
249
+ /**
250
+ * @public
251
+ * @enum
252
+ */
253
+ export declare const AgenticRetrieveStep: {
254
+ /**
255
+ * <p>The full document expansion phase.</p>
256
+ */
257
+ readonly FULL_DOCUMENT_EXPANSION: "FullDocumentExpansion";
258
+ /**
259
+ * <p>The planning phase of retrieval.</p>
260
+ */
261
+ readonly PLANNING: "Planning";
262
+ /**
263
+ * <p>The retrieval phase where data is fetched.</p>
264
+ */
265
+ readonly RETRIEVAL: "Retrieval";
266
+ /**
267
+ * <p>A speculative retrieval phase for optimization.</p>
268
+ */
269
+ readonly SPECULATIVE_RETRIEVAL: "SpeculativeRetrieval";
270
+ };
271
+ /**
272
+ * @public
273
+ */
274
+ export type AgenticRetrieveStep = (typeof AgenticRetrieveStep)[keyof typeof AgenticRetrieveStep];
154
275
  /**
155
276
  * @public
156
277
  * @enum
@@ -369,7 +490,9 @@ export type RetrievalResultContentType = (typeof RetrievalResultContentType)[key
369
490
  export declare const RetrievalResultLocationType: {
370
491
  readonly CONFLUENCE: "CONFLUENCE";
371
492
  readonly CUSTOM: "CUSTOM";
493
+ readonly GOOGLEDRIVE: "GOOGLEDRIVE";
372
494
  readonly KENDRA: "KENDRA";
495
+ readonly ONEDRIVE: "ONEDRIVE";
373
496
  readonly S3: "S3";
374
497
  readonly SALESFORCE: "SALESFORCE";
375
498
  readonly SHAREPOINT: "SHAREPOINT";
@@ -603,14 +726,14 @@ export type GeneratedQueryType = (typeof GeneratedQueryType)[keyof typeof Genera
603
726
  * @public
604
727
  * @enum
605
728
  */
606
- export declare const ConversationRole: {
607
- readonly ASSISTANT: "assistant";
608
- readonly USER: "user";
729
+ export declare const DocumentOutputFormat: {
730
+ readonly EXTRACTED: "EXTRACTED";
731
+ readonly RAW: "RAW";
609
732
  };
610
733
  /**
611
734
  * @public
612
735
  */
613
- export type ConversationRole = (typeof ConversationRole)[keyof typeof ConversationRole];
736
+ export type DocumentOutputFormat = (typeof DocumentOutputFormat)[keyof typeof DocumentOutputFormat];
614
737
  /**
615
738
  * @public
616
739
  * @enum
@@ -635,6 +758,42 @@ export declare const FileUseCase: {
635
758
  * @public
636
759
  */
637
760
  export type FileUseCase = (typeof FileUseCase)[keyof typeof FileUseCase];
761
+ /**
762
+ * @public
763
+ * @enum
764
+ */
765
+ export declare const RerankingMetadataSelectionMode: {
766
+ readonly ALL: "ALL";
767
+ readonly SELECTIVE: "SELECTIVE";
768
+ };
769
+ /**
770
+ * @public
771
+ */
772
+ export type RerankingMetadataSelectionMode = (typeof RerankingMetadataSelectionMode)[keyof typeof RerankingMetadataSelectionMode];
773
+ /**
774
+ * @public
775
+ * @enum
776
+ */
777
+ export declare const ManagedSearchRerankingConfigurationType: {
778
+ readonly BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL";
779
+ };
780
+ /**
781
+ * @public
782
+ */
783
+ export type ManagedSearchRerankingConfigurationType = (typeof ManagedSearchRerankingConfigurationType)[keyof typeof ManagedSearchRerankingConfigurationType];
784
+ /**
785
+ * @public
786
+ * @enum
787
+ */
788
+ export declare const RerankingModelType: {
789
+ readonly CUSTOM: "CUSTOM";
790
+ readonly MANAGED: "MANAGED";
791
+ readonly NONE: "NONE";
792
+ };
793
+ /**
794
+ * @public
795
+ */
796
+ export type RerankingModelType = (typeof RerankingModelType)[keyof typeof RerankingModelType];
638
797
  /**
639
798
  * @public
640
799
  * @enum
@@ -661,18 +820,6 @@ export declare const SearchType: {
661
820
  * @public
662
821
  */
663
822
  export type SearchType = (typeof SearchType)[keyof typeof SearchType];
664
- /**
665
- * @public
666
- * @enum
667
- */
668
- export declare const RerankingMetadataSelectionMode: {
669
- readonly ALL: "ALL";
670
- readonly SELECTIVE: "SELECTIVE";
671
- };
672
- /**
673
- * @public
674
- */
675
- export type RerankingMetadataSelectionMode = (typeof RerankingMetadataSelectionMode)[keyof typeof RerankingMetadataSelectionMode];
676
823
  /**
677
824
  * @public
678
825
  * @enum
@@ -13,115 +13,115 @@ export declare class AccessDeniedException extends __BaseException {
13
13
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
14
  }
15
15
  /**
16
- * <p>An internal server error occurred. Retry your request.</p>
16
+ * <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
17
17
  * @public
18
18
  */
19
- export declare class InternalServerException extends __BaseException {
20
- readonly name: "InternalServerException";
19
+ export declare class BadGatewayException extends __BaseException {
20
+ readonly name: "BadGatewayException";
21
21
  readonly $fault: "server";
22
22
  /**
23
- * <p>The reason for the exception. If the reason is <code>BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE</code>, the model invocation service is unavailable. Retry your request.</p>
23
+ * <p>The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS.</p>
24
24
  * @public
25
25
  */
26
- reason?: string | undefined;
26
+ resourceName?: string | undefined;
27
27
  /**
28
28
  * @internal
29
29
  */
30
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
30
+ constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
31
31
  }
32
32
  /**
33
- * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
33
+ * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
34
34
  * @public
35
35
  */
36
- export declare class ResourceNotFoundException extends __BaseException {
37
- readonly name: "ResourceNotFoundException";
36
+ export declare class ConflictException extends __BaseException {
37
+ readonly name: "ConflictException";
38
38
  readonly $fault: "client";
39
39
  /**
40
40
  * @internal
41
41
  */
42
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
42
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
43
43
  }
44
44
  /**
45
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
45
+ * <p>There was an issue with a dependency. Check the resource configurations and retry the request.</p>
46
46
  * @public
47
47
  */
48
- export declare class ThrottlingException extends __BaseException {
49
- readonly name: "ThrottlingException";
48
+ export declare class DependencyFailedException extends __BaseException {
49
+ readonly name: "DependencyFailedException";
50
50
  readonly $fault: "client";
51
51
  /**
52
- * @internal
52
+ * <p>The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS.</p>
53
+ * @public
53
54
  */
54
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
55
- }
56
- /**
57
- * <p>Input validation failed. Check your request parameters and retry the request.</p>
58
- * @public
59
- */
60
- export declare class ValidationException extends __BaseException {
61
- readonly name: "ValidationException";
62
- readonly $fault: "client";
55
+ resourceName?: string | undefined;
63
56
  /**
64
57
  * @internal
65
58
  */
66
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
59
+ constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
67
60
  }
68
61
  /**
69
- * <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
62
+ * <p>An internal server error occurred. Retry your request.</p>
70
63
  * @public
71
64
  */
72
- export declare class BadGatewayException extends __BaseException {
73
- readonly name: "BadGatewayException";
65
+ export declare class InternalServerException extends __BaseException {
66
+ readonly name: "InternalServerException";
74
67
  readonly $fault: "server";
75
68
  /**
76
- * <p>The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS.</p>
69
+ * <p>The reason for the exception. If the reason is <code>BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE</code>, the model invocation service is unavailable. Retry your request.</p>
77
70
  * @public
78
71
  */
79
- resourceName?: string | undefined;
72
+ reason?: string | undefined;
80
73
  /**
81
74
  * @internal
82
75
  */
83
- constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
76
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
84
77
  }
85
78
  /**
86
- * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
79
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
87
80
  * @public
88
81
  */
89
- export declare class ConflictException extends __BaseException {
90
- readonly name: "ConflictException";
82
+ export declare class ResourceNotFoundException extends __BaseException {
83
+ readonly name: "ResourceNotFoundException";
91
84
  readonly $fault: "client";
92
85
  /**
93
86
  * @internal
94
87
  */
95
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
88
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
96
89
  }
97
90
  /**
98
- * <p>There was an issue with a dependency. Check the resource configurations and retry the request.</p>
91
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
99
92
  * @public
100
93
  */
101
- export declare class DependencyFailedException extends __BaseException {
102
- readonly name: "DependencyFailedException";
94
+ export declare class ServiceQuotaExceededException extends __BaseException {
95
+ readonly name: "ServiceQuotaExceededException";
103
96
  readonly $fault: "client";
104
97
  /**
105
- * <p>The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS.</p>
106
- * @public
98
+ * @internal
107
99
  */
108
- resourceName?: string | undefined;
100
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
101
+ }
102
+ /**
103
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
104
+ * @public
105
+ */
106
+ export declare class ThrottlingException extends __BaseException {
107
+ readonly name: "ThrottlingException";
108
+ readonly $fault: "client";
109
109
  /**
110
110
  * @internal
111
111
  */
112
- constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
112
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
113
113
  }
114
114
  /**
115
- * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
115
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
116
116
  * @public
117
117
  */
118
- export declare class ServiceQuotaExceededException extends __BaseException {
119
- readonly name: "ServiceQuotaExceededException";
118
+ export declare class ValidationException extends __BaseException {
119
+ readonly name: "ValidationException";
120
120
  readonly $fault: "client";
121
121
  /**
122
122
  * @internal
123
123
  */
124
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
124
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
125
125
  }
126
126
  /**
127
127
  * <p> The model specified in the request is not ready to serve inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i> reference guide. </p>