@aws-sdk/client-bedrock-runtime 3.933.0 → 3.935.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.
@@ -108,7 +108,11 @@ export declare var PromptRouterTrace: StaticStructureSchema;
108
108
  export declare var ReasoningTextBlock: StaticStructureSchema;
109
109
  export declare var ResourceNotFoundException: StaticErrorSchema;
110
110
  export declare var S3Location: StaticStructureSchema;
111
+ export declare var SearchResultBlock: StaticStructureSchema;
112
+ export declare var SearchResultContentBlock: StaticStructureSchema;
113
+ export declare var SearchResultLocation: StaticStructureSchema;
111
114
  export declare var ServiceQuotaExceededException: StaticErrorSchema;
115
+ export declare var ServiceTier: StaticStructureSchema;
112
116
  export declare var ServiceUnavailableException: StaticErrorSchema;
113
117
  export declare var SpecificToolChoice: StaticStructureSchema;
114
118
  export declare var StartAsyncInvokeRequest: StaticStructureSchema;
@@ -159,6 +163,7 @@ export declare var GuardrailTopicList: StaticListSchema;
159
163
  export declare var Messages: StaticListSchema;
160
164
  export declare var ModelOutputs: number;
161
165
  export declare var NonEmptyStringList: number;
166
+ export declare var SearchResultContentBlocks: StaticListSchema;
162
167
  export declare var SystemContentBlocks: StaticListSchema;
163
168
  export declare var TagList: StaticListSchema;
164
169
  export declare var ToolResultBlocksDelta: StaticListSchema;
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { BedrockRuntimeExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { BedrockRuntimeServiceException } from "./models/BedrockRuntimeServiceException";
@@ -0,0 +1,270 @@
1
+ export declare const AsyncInvokeStatus: {
2
+ readonly COMPLETED: "Completed";
3
+ readonly FAILED: "Failed";
4
+ readonly IN_PROGRESS: "InProgress";
5
+ };
6
+ export type AsyncInvokeStatus =
7
+ (typeof AsyncInvokeStatus)[keyof typeof AsyncInvokeStatus];
8
+ export declare const SortAsyncInvocationBy: {
9
+ readonly SUBMISSION_TIME: "SubmissionTime";
10
+ };
11
+ export type SortAsyncInvocationBy =
12
+ (typeof SortAsyncInvocationBy)[keyof typeof SortAsyncInvocationBy];
13
+ export declare const SortOrder: {
14
+ readonly ASCENDING: "Ascending";
15
+ readonly DESCENDING: "Descending";
16
+ };
17
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
18
+ export declare const GuardrailImageFormat: {
19
+ readonly JPEG: "jpeg";
20
+ readonly PNG: "png";
21
+ };
22
+ export type GuardrailImageFormat =
23
+ (typeof GuardrailImageFormat)[keyof typeof GuardrailImageFormat];
24
+ export declare const GuardrailContentQualifier: {
25
+ readonly GROUNDING_SOURCE: "grounding_source";
26
+ readonly GUARD_CONTENT: "guard_content";
27
+ readonly QUERY: "query";
28
+ };
29
+ export type GuardrailContentQualifier =
30
+ (typeof GuardrailContentQualifier)[keyof typeof GuardrailContentQualifier];
31
+ export declare const GuardrailOutputScope: {
32
+ readonly FULL: "FULL";
33
+ readonly INTERVENTIONS: "INTERVENTIONS";
34
+ };
35
+ export type GuardrailOutputScope =
36
+ (typeof GuardrailOutputScope)[keyof typeof GuardrailOutputScope];
37
+ export declare const GuardrailContentSource: {
38
+ readonly INPUT: "INPUT";
39
+ readonly OUTPUT: "OUTPUT";
40
+ };
41
+ export type GuardrailContentSource =
42
+ (typeof GuardrailContentSource)[keyof typeof GuardrailContentSource];
43
+ export declare const GuardrailAction: {
44
+ readonly GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED";
45
+ readonly NONE: "NONE";
46
+ };
47
+ export type GuardrailAction =
48
+ (typeof GuardrailAction)[keyof typeof GuardrailAction];
49
+ export declare const GuardrailAutomatedReasoningLogicWarningType: {
50
+ readonly ALWAYS_FALSE: "ALWAYS_FALSE";
51
+ readonly ALWAYS_TRUE: "ALWAYS_TRUE";
52
+ };
53
+ export type GuardrailAutomatedReasoningLogicWarningType =
54
+ (typeof GuardrailAutomatedReasoningLogicWarningType)[keyof typeof GuardrailAutomatedReasoningLogicWarningType];
55
+ export declare const GuardrailContentPolicyAction: {
56
+ readonly BLOCKED: "BLOCKED";
57
+ readonly NONE: "NONE";
58
+ };
59
+ export type GuardrailContentPolicyAction =
60
+ (typeof GuardrailContentPolicyAction)[keyof typeof GuardrailContentPolicyAction];
61
+ export declare const GuardrailContentFilterConfidence: {
62
+ readonly HIGH: "HIGH";
63
+ readonly LOW: "LOW";
64
+ readonly MEDIUM: "MEDIUM";
65
+ readonly NONE: "NONE";
66
+ };
67
+ export type GuardrailContentFilterConfidence =
68
+ (typeof GuardrailContentFilterConfidence)[keyof typeof GuardrailContentFilterConfidence];
69
+ export declare const GuardrailContentFilterStrength: {
70
+ readonly HIGH: "HIGH";
71
+ readonly LOW: "LOW";
72
+ readonly MEDIUM: "MEDIUM";
73
+ readonly NONE: "NONE";
74
+ };
75
+ export type GuardrailContentFilterStrength =
76
+ (typeof GuardrailContentFilterStrength)[keyof typeof GuardrailContentFilterStrength];
77
+ export declare const GuardrailContentFilterType: {
78
+ readonly HATE: "HATE";
79
+ readonly INSULTS: "INSULTS";
80
+ readonly MISCONDUCT: "MISCONDUCT";
81
+ readonly PROMPT_ATTACK: "PROMPT_ATTACK";
82
+ readonly SEXUAL: "SEXUAL";
83
+ readonly VIOLENCE: "VIOLENCE";
84
+ };
85
+ export type GuardrailContentFilterType =
86
+ (typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
87
+ export declare const GuardrailContextualGroundingPolicyAction: {
88
+ readonly BLOCKED: "BLOCKED";
89
+ readonly NONE: "NONE";
90
+ };
91
+ export type GuardrailContextualGroundingPolicyAction =
92
+ (typeof GuardrailContextualGroundingPolicyAction)[keyof typeof GuardrailContextualGroundingPolicyAction];
93
+ export declare const GuardrailContextualGroundingFilterType: {
94
+ readonly GROUNDING: "GROUNDING";
95
+ readonly RELEVANCE: "RELEVANCE";
96
+ };
97
+ export type GuardrailContextualGroundingFilterType =
98
+ (typeof GuardrailContextualGroundingFilterType)[keyof typeof GuardrailContextualGroundingFilterType];
99
+ export declare const GuardrailSensitiveInformationPolicyAction: {
100
+ readonly ANONYMIZED: "ANONYMIZED";
101
+ readonly BLOCKED: "BLOCKED";
102
+ readonly NONE: "NONE";
103
+ };
104
+ export type GuardrailSensitiveInformationPolicyAction =
105
+ (typeof GuardrailSensitiveInformationPolicyAction)[keyof typeof GuardrailSensitiveInformationPolicyAction];
106
+ export declare const GuardrailPiiEntityType: {
107
+ readonly ADDRESS: "ADDRESS";
108
+ readonly AGE: "AGE";
109
+ readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
110
+ readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
111
+ readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
112
+ readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
113
+ readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
114
+ readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
115
+ readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
116
+ readonly DRIVER_ID: "DRIVER_ID";
117
+ readonly EMAIL: "EMAIL";
118
+ readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
119
+ readonly IP_ADDRESS: "IP_ADDRESS";
120
+ readonly LICENSE_PLATE: "LICENSE_PLATE";
121
+ readonly MAC_ADDRESS: "MAC_ADDRESS";
122
+ readonly NAME: "NAME";
123
+ readonly PASSWORD: "PASSWORD";
124
+ readonly PHONE: "PHONE";
125
+ readonly PIN: "PIN";
126
+ readonly SWIFT_CODE: "SWIFT_CODE";
127
+ readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
128
+ readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
129
+ readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
130
+ readonly URL: "URL";
131
+ readonly USERNAME: "USERNAME";
132
+ readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
133
+ readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
134
+ readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
135
+ readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
136
+ readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
137
+ readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
138
+ };
139
+ export type GuardrailPiiEntityType =
140
+ (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
141
+ export declare const GuardrailTopicPolicyAction: {
142
+ readonly BLOCKED: "BLOCKED";
143
+ readonly NONE: "NONE";
144
+ };
145
+ export type GuardrailTopicPolicyAction =
146
+ (typeof GuardrailTopicPolicyAction)[keyof typeof GuardrailTopicPolicyAction];
147
+ export declare const GuardrailTopicType: {
148
+ readonly DENY: "DENY";
149
+ };
150
+ export type GuardrailTopicType =
151
+ (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
152
+ export declare const GuardrailWordPolicyAction: {
153
+ readonly BLOCKED: "BLOCKED";
154
+ readonly NONE: "NONE";
155
+ };
156
+ export type GuardrailWordPolicyAction =
157
+ (typeof GuardrailWordPolicyAction)[keyof typeof GuardrailWordPolicyAction];
158
+ export declare const GuardrailManagedWordType: {
159
+ readonly PROFANITY: "PROFANITY";
160
+ };
161
+ export type GuardrailManagedWordType =
162
+ (typeof GuardrailManagedWordType)[keyof typeof GuardrailManagedWordType];
163
+ export declare const GuardrailTrace: {
164
+ readonly DISABLED: "disabled";
165
+ readonly ENABLED: "enabled";
166
+ readonly ENABLED_FULL: "enabled_full";
167
+ };
168
+ export type GuardrailTrace =
169
+ (typeof GuardrailTrace)[keyof typeof GuardrailTrace];
170
+ export declare const CachePointType: {
171
+ readonly DEFAULT: "default";
172
+ };
173
+ export type CachePointType =
174
+ (typeof CachePointType)[keyof typeof CachePointType];
175
+ export declare const DocumentFormat: {
176
+ readonly CSV: "csv";
177
+ readonly DOC: "doc";
178
+ readonly DOCX: "docx";
179
+ readonly HTML: "html";
180
+ readonly MD: "md";
181
+ readonly PDF: "pdf";
182
+ readonly TXT: "txt";
183
+ readonly XLS: "xls";
184
+ readonly XLSX: "xlsx";
185
+ };
186
+ export type DocumentFormat =
187
+ (typeof DocumentFormat)[keyof typeof DocumentFormat];
188
+ export declare const GuardrailConverseImageFormat: {
189
+ readonly JPEG: "jpeg";
190
+ readonly PNG: "png";
191
+ };
192
+ export type GuardrailConverseImageFormat =
193
+ (typeof GuardrailConverseImageFormat)[keyof typeof GuardrailConverseImageFormat];
194
+ export declare const GuardrailConverseContentQualifier: {
195
+ readonly GROUNDING_SOURCE: "grounding_source";
196
+ readonly GUARD_CONTENT: "guard_content";
197
+ readonly QUERY: "query";
198
+ };
199
+ export type GuardrailConverseContentQualifier =
200
+ (typeof GuardrailConverseContentQualifier)[keyof typeof GuardrailConverseContentQualifier];
201
+ export declare const ImageFormat: {
202
+ readonly GIF: "gif";
203
+ readonly JPEG: "jpeg";
204
+ readonly PNG: "png";
205
+ readonly WEBP: "webp";
206
+ };
207
+ export type ImageFormat = (typeof ImageFormat)[keyof typeof ImageFormat];
208
+ export declare const VideoFormat: {
209
+ readonly FLV: "flv";
210
+ readonly MKV: "mkv";
211
+ readonly MOV: "mov";
212
+ readonly MP4: "mp4";
213
+ readonly MPEG: "mpeg";
214
+ readonly MPG: "mpg";
215
+ readonly THREE_GP: "three_gp";
216
+ readonly WEBM: "webm";
217
+ readonly WMV: "wmv";
218
+ };
219
+ export type VideoFormat = (typeof VideoFormat)[keyof typeof VideoFormat];
220
+ export declare const ToolResultStatus: {
221
+ readonly ERROR: "error";
222
+ readonly SUCCESS: "success";
223
+ };
224
+ export type ToolResultStatus =
225
+ (typeof ToolResultStatus)[keyof typeof ToolResultStatus];
226
+ export declare const ToolUseType: {
227
+ readonly SERVER_TOOL_USE: "server_tool_use";
228
+ };
229
+ export type ToolUseType = (typeof ToolUseType)[keyof typeof ToolUseType];
230
+ export declare const ConversationRole: {
231
+ readonly ASSISTANT: "assistant";
232
+ readonly USER: "user";
233
+ };
234
+ export type ConversationRole =
235
+ (typeof ConversationRole)[keyof typeof ConversationRole];
236
+ export declare const PerformanceConfigLatency: {
237
+ readonly OPTIMIZED: "optimized";
238
+ readonly STANDARD: "standard";
239
+ };
240
+ export type PerformanceConfigLatency =
241
+ (typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
242
+ export declare const ServiceTierType: {
243
+ readonly DEFAULT: "default";
244
+ readonly FLEX: "flex";
245
+ readonly PRIORITY: "priority";
246
+ };
247
+ export type ServiceTierType =
248
+ (typeof ServiceTierType)[keyof typeof ServiceTierType];
249
+ export declare const StopReason: {
250
+ readonly CONTENT_FILTERED: "content_filtered";
251
+ readonly END_TURN: "end_turn";
252
+ readonly GUARDRAIL_INTERVENED: "guardrail_intervened";
253
+ readonly MAX_TOKENS: "max_tokens";
254
+ readonly MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded";
255
+ readonly STOP_SEQUENCE: "stop_sequence";
256
+ readonly TOOL_USE: "tool_use";
257
+ };
258
+ export type StopReason = (typeof StopReason)[keyof typeof StopReason];
259
+ export declare const GuardrailStreamProcessingMode: {
260
+ readonly ASYNC: "async";
261
+ readonly SYNC: "sync";
262
+ };
263
+ export type GuardrailStreamProcessingMode =
264
+ (typeof GuardrailStreamProcessingMode)[keyof typeof GuardrailStreamProcessingMode];
265
+ export declare const Trace: {
266
+ readonly DISABLED: "DISABLED";
267
+ readonly ENABLED: "ENABLED";
268
+ readonly ENABLED_FULL: "ENABLED_FULL";
269
+ };
270
+ export type Trace = (typeof Trace)[keyof typeof Trace];
@@ -0,0 +1,89 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRuntimeServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
+ );
9
+ }
10
+ export declare class InternalServerException extends __BaseException {
11
+ readonly name: "InternalServerException";
12
+ readonly $fault: "server";
13
+ constructor(
14
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
15
+ );
16
+ }
17
+ export declare class ThrottlingException extends __BaseException {
18
+ readonly name: "ThrottlingException";
19
+ readonly $fault: "client";
20
+ constructor(
21
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
22
+ );
23
+ }
24
+ export declare class ValidationException extends __BaseException {
25
+ readonly name: "ValidationException";
26
+ readonly $fault: "client";
27
+ constructor(
28
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
29
+ );
30
+ }
31
+ export declare class ConflictException extends __BaseException {
32
+ readonly name: "ConflictException";
33
+ readonly $fault: "client";
34
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
35
+ }
36
+ export declare class ResourceNotFoundException extends __BaseException {
37
+ readonly name: "ResourceNotFoundException";
38
+ readonly $fault: "client";
39
+ constructor(
40
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
41
+ );
42
+ }
43
+ export declare class ServiceQuotaExceededException extends __BaseException {
44
+ readonly name: "ServiceQuotaExceededException";
45
+ readonly $fault: "client";
46
+ constructor(
47
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
48
+ );
49
+ }
50
+ export declare class ServiceUnavailableException extends __BaseException {
51
+ readonly name: "ServiceUnavailableException";
52
+ readonly $fault: "server";
53
+ constructor(
54
+ opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
55
+ );
56
+ }
57
+ export declare class ModelErrorException extends __BaseException {
58
+ readonly name: "ModelErrorException";
59
+ readonly $fault: "client";
60
+ originalStatusCode?: number | undefined;
61
+ resourceName?: string | undefined;
62
+ constructor(
63
+ opts: __ExceptionOptionType<ModelErrorException, __BaseException>
64
+ );
65
+ }
66
+ export declare class ModelNotReadyException extends __BaseException {
67
+ readonly name: "ModelNotReadyException";
68
+ readonly $fault: "client";
69
+ $retryable: {};
70
+ constructor(
71
+ opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
72
+ );
73
+ }
74
+ export declare class ModelTimeoutException extends __BaseException {
75
+ readonly name: "ModelTimeoutException";
76
+ readonly $fault: "client";
77
+ constructor(
78
+ opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>
79
+ );
80
+ }
81
+ export declare class ModelStreamErrorException extends __BaseException {
82
+ readonly name: "ModelStreamErrorException";
83
+ readonly $fault: "client";
84
+ originalStatusCode?: number | undefined;
85
+ originalMessage?: string | undefined;
86
+ constructor(
87
+ opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>
88
+ );
89
+ }