@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.
- package/dist-cjs/index.js +290 -224
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +204 -0
- package/dist-es/models/errors.js +154 -0
- package/dist-es/models/models_0.js +1 -353
- package/dist-es/schemas/schemas_0.js +85 -26
- package/dist-types/commands/ConverseCommand.d.ts +66 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +42 -0
- package/dist-types/commands/CountTokensCommand.d.ts +55 -0
- package/dist-types/commands/InvokeModelCommand.d.ts +2 -0
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +2 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +492 -0
- package/dist-types/models/errors.d.ts +167 -0
- package/dist-types/models/models_0.d.ts +190 -637
- package/dist-types/schemas/schemas_0.d.ts +5 -0
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +270 -0
- package/dist-types/ts3.4/models/errors.d.ts +89 -0
- package/dist-types/ts3.4/models/models_0.d.ts +134 -352
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
- package/package.json +13 -13
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -1,353 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export const AsyncInvokeStatus = {
|
|
15
|
-
COMPLETED: "Completed",
|
|
16
|
-
FAILED: "Failed",
|
|
17
|
-
IN_PROGRESS: "InProgress",
|
|
18
|
-
};
|
|
19
|
-
export class InternalServerException extends __BaseException {
|
|
20
|
-
name = "InternalServerException";
|
|
21
|
-
$fault = "server";
|
|
22
|
-
constructor(opts) {
|
|
23
|
-
super({
|
|
24
|
-
name: "InternalServerException",
|
|
25
|
-
$fault: "server",
|
|
26
|
-
...opts,
|
|
27
|
-
});
|
|
28
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export class ThrottlingException extends __BaseException {
|
|
32
|
-
name = "ThrottlingException";
|
|
33
|
-
$fault = "client";
|
|
34
|
-
constructor(opts) {
|
|
35
|
-
super({
|
|
36
|
-
name: "ThrottlingException",
|
|
37
|
-
$fault: "client",
|
|
38
|
-
...opts,
|
|
39
|
-
});
|
|
40
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export class ValidationException extends __BaseException {
|
|
44
|
-
name = "ValidationException";
|
|
45
|
-
$fault = "client";
|
|
46
|
-
constructor(opts) {
|
|
47
|
-
super({
|
|
48
|
-
name: "ValidationException",
|
|
49
|
-
$fault: "client",
|
|
50
|
-
...opts,
|
|
51
|
-
});
|
|
52
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export const SortAsyncInvocationBy = {
|
|
56
|
-
SUBMISSION_TIME: "SubmissionTime",
|
|
57
|
-
};
|
|
58
|
-
export const SortOrder = {
|
|
59
|
-
ASCENDING: "Ascending",
|
|
60
|
-
DESCENDING: "Descending",
|
|
61
|
-
};
|
|
62
|
-
export class ConflictException extends __BaseException {
|
|
63
|
-
name = "ConflictException";
|
|
64
|
-
$fault = "client";
|
|
65
|
-
constructor(opts) {
|
|
66
|
-
super({
|
|
67
|
-
name: "ConflictException",
|
|
68
|
-
$fault: "client",
|
|
69
|
-
...opts,
|
|
70
|
-
});
|
|
71
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
75
|
-
name = "ResourceNotFoundException";
|
|
76
|
-
$fault = "client";
|
|
77
|
-
constructor(opts) {
|
|
78
|
-
super({
|
|
79
|
-
name: "ResourceNotFoundException",
|
|
80
|
-
$fault: "client",
|
|
81
|
-
...opts,
|
|
82
|
-
});
|
|
83
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
87
|
-
name = "ServiceQuotaExceededException";
|
|
88
|
-
$fault = "client";
|
|
89
|
-
constructor(opts) {
|
|
90
|
-
super({
|
|
91
|
-
name: "ServiceQuotaExceededException",
|
|
92
|
-
$fault: "client",
|
|
93
|
-
...opts,
|
|
94
|
-
});
|
|
95
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export class ServiceUnavailableException extends __BaseException {
|
|
99
|
-
name = "ServiceUnavailableException";
|
|
100
|
-
$fault = "server";
|
|
101
|
-
constructor(opts) {
|
|
102
|
-
super({
|
|
103
|
-
name: "ServiceUnavailableException",
|
|
104
|
-
$fault: "server",
|
|
105
|
-
...opts,
|
|
106
|
-
});
|
|
107
|
-
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
export const GuardrailImageFormat = {
|
|
111
|
-
JPEG: "jpeg",
|
|
112
|
-
PNG: "png",
|
|
113
|
-
};
|
|
114
|
-
export const GuardrailContentQualifier = {
|
|
115
|
-
GROUNDING_SOURCE: "grounding_source",
|
|
116
|
-
GUARD_CONTENT: "guard_content",
|
|
117
|
-
QUERY: "query",
|
|
118
|
-
};
|
|
119
|
-
export const GuardrailOutputScope = {
|
|
120
|
-
FULL: "FULL",
|
|
121
|
-
INTERVENTIONS: "INTERVENTIONS",
|
|
122
|
-
};
|
|
123
|
-
export const GuardrailContentSource = {
|
|
124
|
-
INPUT: "INPUT",
|
|
125
|
-
OUTPUT: "OUTPUT",
|
|
126
|
-
};
|
|
127
|
-
export const GuardrailAction = {
|
|
128
|
-
GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED",
|
|
129
|
-
NONE: "NONE",
|
|
130
|
-
};
|
|
131
|
-
export const GuardrailAutomatedReasoningLogicWarningType = {
|
|
132
|
-
ALWAYS_FALSE: "ALWAYS_FALSE",
|
|
133
|
-
ALWAYS_TRUE: "ALWAYS_TRUE",
|
|
134
|
-
};
|
|
135
|
-
export const GuardrailContentPolicyAction = {
|
|
136
|
-
BLOCKED: "BLOCKED",
|
|
137
|
-
NONE: "NONE",
|
|
138
|
-
};
|
|
139
|
-
export const GuardrailContentFilterConfidence = {
|
|
140
|
-
HIGH: "HIGH",
|
|
141
|
-
LOW: "LOW",
|
|
142
|
-
MEDIUM: "MEDIUM",
|
|
143
|
-
NONE: "NONE",
|
|
144
|
-
};
|
|
145
|
-
export const GuardrailContentFilterStrength = {
|
|
146
|
-
HIGH: "HIGH",
|
|
147
|
-
LOW: "LOW",
|
|
148
|
-
MEDIUM: "MEDIUM",
|
|
149
|
-
NONE: "NONE",
|
|
150
|
-
};
|
|
151
|
-
export const GuardrailContentFilterType = {
|
|
152
|
-
HATE: "HATE",
|
|
153
|
-
INSULTS: "INSULTS",
|
|
154
|
-
MISCONDUCT: "MISCONDUCT",
|
|
155
|
-
PROMPT_ATTACK: "PROMPT_ATTACK",
|
|
156
|
-
SEXUAL: "SEXUAL",
|
|
157
|
-
VIOLENCE: "VIOLENCE",
|
|
158
|
-
};
|
|
159
|
-
export const GuardrailContextualGroundingPolicyAction = {
|
|
160
|
-
BLOCKED: "BLOCKED",
|
|
161
|
-
NONE: "NONE",
|
|
162
|
-
};
|
|
163
|
-
export const GuardrailContextualGroundingFilterType = {
|
|
164
|
-
GROUNDING: "GROUNDING",
|
|
165
|
-
RELEVANCE: "RELEVANCE",
|
|
166
|
-
};
|
|
167
|
-
export const GuardrailSensitiveInformationPolicyAction = {
|
|
168
|
-
ANONYMIZED: "ANONYMIZED",
|
|
169
|
-
BLOCKED: "BLOCKED",
|
|
170
|
-
NONE: "NONE",
|
|
171
|
-
};
|
|
172
|
-
export const GuardrailPiiEntityType = {
|
|
173
|
-
ADDRESS: "ADDRESS",
|
|
174
|
-
AGE: "AGE",
|
|
175
|
-
AWS_ACCESS_KEY: "AWS_ACCESS_KEY",
|
|
176
|
-
AWS_SECRET_KEY: "AWS_SECRET_KEY",
|
|
177
|
-
CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER",
|
|
178
|
-
CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER",
|
|
179
|
-
CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV",
|
|
180
|
-
CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY",
|
|
181
|
-
CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER",
|
|
182
|
-
DRIVER_ID: "DRIVER_ID",
|
|
183
|
-
EMAIL: "EMAIL",
|
|
184
|
-
INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
|
|
185
|
-
IP_ADDRESS: "IP_ADDRESS",
|
|
186
|
-
LICENSE_PLATE: "LICENSE_PLATE",
|
|
187
|
-
MAC_ADDRESS: "MAC_ADDRESS",
|
|
188
|
-
NAME: "NAME",
|
|
189
|
-
PASSWORD: "PASSWORD",
|
|
190
|
-
PHONE: "PHONE",
|
|
191
|
-
PIN: "PIN",
|
|
192
|
-
SWIFT_CODE: "SWIFT_CODE",
|
|
193
|
-
UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
|
|
194
|
-
UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER",
|
|
195
|
-
UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
196
|
-
URL: "URL",
|
|
197
|
-
USERNAME: "USERNAME",
|
|
198
|
-
US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER",
|
|
199
|
-
US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER",
|
|
200
|
-
US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
|
|
201
|
-
US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER",
|
|
202
|
-
US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER",
|
|
203
|
-
VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER",
|
|
204
|
-
};
|
|
205
|
-
export const GuardrailTopicPolicyAction = {
|
|
206
|
-
BLOCKED: "BLOCKED",
|
|
207
|
-
NONE: "NONE",
|
|
208
|
-
};
|
|
209
|
-
export const GuardrailTopicType = {
|
|
210
|
-
DENY: "DENY",
|
|
211
|
-
};
|
|
212
|
-
export const GuardrailWordPolicyAction = {
|
|
213
|
-
BLOCKED: "BLOCKED",
|
|
214
|
-
NONE: "NONE",
|
|
215
|
-
};
|
|
216
|
-
export const GuardrailManagedWordType = {
|
|
217
|
-
PROFANITY: "PROFANITY",
|
|
218
|
-
};
|
|
219
|
-
export const GuardrailTrace = {
|
|
220
|
-
DISABLED: "disabled",
|
|
221
|
-
ENABLED: "enabled",
|
|
222
|
-
ENABLED_FULL: "enabled_full",
|
|
223
|
-
};
|
|
224
|
-
export const CachePointType = {
|
|
225
|
-
DEFAULT: "default",
|
|
226
|
-
};
|
|
227
|
-
export const DocumentFormat = {
|
|
228
|
-
CSV: "csv",
|
|
229
|
-
DOC: "doc",
|
|
230
|
-
DOCX: "docx",
|
|
231
|
-
HTML: "html",
|
|
232
|
-
MD: "md",
|
|
233
|
-
PDF: "pdf",
|
|
234
|
-
TXT: "txt",
|
|
235
|
-
XLS: "xls",
|
|
236
|
-
XLSX: "xlsx",
|
|
237
|
-
};
|
|
238
|
-
export const GuardrailConverseImageFormat = {
|
|
239
|
-
JPEG: "jpeg",
|
|
240
|
-
PNG: "png",
|
|
241
|
-
};
|
|
242
|
-
export const GuardrailConverseContentQualifier = {
|
|
243
|
-
GROUNDING_SOURCE: "grounding_source",
|
|
244
|
-
GUARD_CONTENT: "guard_content",
|
|
245
|
-
QUERY: "query",
|
|
246
|
-
};
|
|
247
|
-
export const ImageFormat = {
|
|
248
|
-
GIF: "gif",
|
|
249
|
-
JPEG: "jpeg",
|
|
250
|
-
PNG: "png",
|
|
251
|
-
WEBP: "webp",
|
|
252
|
-
};
|
|
253
|
-
export const VideoFormat = {
|
|
254
|
-
FLV: "flv",
|
|
255
|
-
MKV: "mkv",
|
|
256
|
-
MOV: "mov",
|
|
257
|
-
MP4: "mp4",
|
|
258
|
-
MPEG: "mpeg",
|
|
259
|
-
MPG: "mpg",
|
|
260
|
-
THREE_GP: "three_gp",
|
|
261
|
-
WEBM: "webm",
|
|
262
|
-
WMV: "wmv",
|
|
263
|
-
};
|
|
264
|
-
export const ToolResultStatus = {
|
|
265
|
-
ERROR: "error",
|
|
266
|
-
SUCCESS: "success",
|
|
267
|
-
};
|
|
268
|
-
export const ToolUseType = {
|
|
269
|
-
SERVER_TOOL_USE: "server_tool_use",
|
|
270
|
-
};
|
|
271
|
-
export const ConversationRole = {
|
|
272
|
-
ASSISTANT: "assistant",
|
|
273
|
-
USER: "user",
|
|
274
|
-
};
|
|
275
|
-
export const PerformanceConfigLatency = {
|
|
276
|
-
OPTIMIZED: "optimized",
|
|
277
|
-
STANDARD: "standard",
|
|
278
|
-
};
|
|
279
|
-
export const StopReason = {
|
|
280
|
-
CONTENT_FILTERED: "content_filtered",
|
|
281
|
-
END_TURN: "end_turn",
|
|
282
|
-
GUARDRAIL_INTERVENED: "guardrail_intervened",
|
|
283
|
-
MAX_TOKENS: "max_tokens",
|
|
284
|
-
MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded",
|
|
285
|
-
STOP_SEQUENCE: "stop_sequence",
|
|
286
|
-
TOOL_USE: "tool_use",
|
|
287
|
-
};
|
|
288
|
-
export class ModelErrorException extends __BaseException {
|
|
289
|
-
name = "ModelErrorException";
|
|
290
|
-
$fault = "client";
|
|
291
|
-
originalStatusCode;
|
|
292
|
-
resourceName;
|
|
293
|
-
constructor(opts) {
|
|
294
|
-
super({
|
|
295
|
-
name: "ModelErrorException",
|
|
296
|
-
$fault: "client",
|
|
297
|
-
...opts,
|
|
298
|
-
});
|
|
299
|
-
Object.setPrototypeOf(this, ModelErrorException.prototype);
|
|
300
|
-
this.originalStatusCode = opts.originalStatusCode;
|
|
301
|
-
this.resourceName = opts.resourceName;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
export class ModelNotReadyException extends __BaseException {
|
|
305
|
-
name = "ModelNotReadyException";
|
|
306
|
-
$fault = "client";
|
|
307
|
-
$retryable = {};
|
|
308
|
-
constructor(opts) {
|
|
309
|
-
super({
|
|
310
|
-
name: "ModelNotReadyException",
|
|
311
|
-
$fault: "client",
|
|
312
|
-
...opts,
|
|
313
|
-
});
|
|
314
|
-
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
export class ModelTimeoutException extends __BaseException {
|
|
318
|
-
name = "ModelTimeoutException";
|
|
319
|
-
$fault = "client";
|
|
320
|
-
constructor(opts) {
|
|
321
|
-
super({
|
|
322
|
-
name: "ModelTimeoutException",
|
|
323
|
-
$fault: "client",
|
|
324
|
-
...opts,
|
|
325
|
-
});
|
|
326
|
-
Object.setPrototypeOf(this, ModelTimeoutException.prototype);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
export const GuardrailStreamProcessingMode = {
|
|
330
|
-
ASYNC: "async",
|
|
331
|
-
SYNC: "sync",
|
|
332
|
-
};
|
|
333
|
-
export class ModelStreamErrorException extends __BaseException {
|
|
334
|
-
name = "ModelStreamErrorException";
|
|
335
|
-
$fault = "client";
|
|
336
|
-
originalStatusCode;
|
|
337
|
-
originalMessage;
|
|
338
|
-
constructor(opts) {
|
|
339
|
-
super({
|
|
340
|
-
name: "ModelStreamErrorException",
|
|
341
|
-
$fault: "client",
|
|
342
|
-
...opts,
|
|
343
|
-
});
|
|
344
|
-
Object.setPrototypeOf(this, ModelStreamErrorException.prototype);
|
|
345
|
-
this.originalStatusCode = opts.originalStatusCode;
|
|
346
|
-
this.originalMessage = opts.originalMessage;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
export const Trace = {
|
|
350
|
-
DISABLED: "DISABLED",
|
|
351
|
-
ENABLED: "ENABLED",
|
|
352
|
-
ENABLED_FULL: "ENABLED_FULL",
|
|
353
|
-
};
|
|
1
|
+
export {};
|
|
@@ -177,8 +177,13 @@ const _SCB = "SystemContentBlocks";
|
|
|
177
177
|
const _SCBy = "SystemContentBlock";
|
|
178
178
|
const _SL = "S3Location";
|
|
179
179
|
const _SQEE = "ServiceQuotaExceededException";
|
|
180
|
-
const
|
|
180
|
+
const _SRB = "SearchResultBlock";
|
|
181
|
+
const _SRCB = "SearchResultContentBlock";
|
|
182
|
+
const _SRCBe = "SearchResultContentBlocks";
|
|
183
|
+
const _SRL = "SearchResultLocation";
|
|
184
|
+
const _ST = "ServiceTier";
|
|
181
185
|
const _STC = "SpecificToolChoice";
|
|
186
|
+
const _STy = "SystemTool";
|
|
182
187
|
const _SUE = "ServiceUnavailableException";
|
|
183
188
|
const _T = "Tag";
|
|
184
189
|
const _TC = "ToolConfiguration";
|
|
@@ -208,6 +213,7 @@ const _XABCT = "X-Amzn-Bedrock-Content-Type";
|
|
|
208
213
|
const _XABG = "X-Amzn-Bedrock-GuardrailIdentifier";
|
|
209
214
|
const _XABG_ = "X-Amzn-Bedrock-GuardrailVersion";
|
|
210
215
|
const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
|
|
216
|
+
const _XABST = "X-Amzn-Bedrock-Service-Tier";
|
|
211
217
|
const _XABT = "X-Amzn-Bedrock-Trace";
|
|
212
218
|
const _a = "action";
|
|
213
219
|
const _aIS = "asyncInvokeSummaries";
|
|
@@ -365,11 +371,15 @@ const _sO = "sortOrder";
|
|
|
365
371
|
const _sODC = "s3OutputDataConfig";
|
|
366
372
|
const _sPM = "streamProcessingMode";
|
|
367
373
|
const _sR = "stopReason";
|
|
374
|
+
const _sRI = "searchResultIndex";
|
|
375
|
+
const _sRL = "searchResultLocation";
|
|
376
|
+
const _sRe = "searchResult";
|
|
368
377
|
const _sRu = "supportingRules";
|
|
369
378
|
const _sS = "stopSequences";
|
|
370
379
|
const _sT = "submitTime";
|
|
371
380
|
const _sTA = "submitTimeAfter";
|
|
372
381
|
const _sTB = "submitTimeBefore";
|
|
382
|
+
const _sTe = "serviceTier";
|
|
373
383
|
const _sTy = "systemTool";
|
|
374
384
|
const _sU = "s3Uri";
|
|
375
385
|
const _sUE = "serviceUnavailableException";
|
|
@@ -426,7 +436,7 @@ const _wPU = "wordPolicyUnits";
|
|
|
426
436
|
const n0 = "com.amazonaws.bedrockruntime";
|
|
427
437
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
428
438
|
import { BedrockRuntimeServiceException as __BedrockRuntimeServiceException } from "../models/BedrockRuntimeServiceException";
|
|
429
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ModelErrorException as __ModelErrorException, ModelNotReadyException as __ModelNotReadyException, ModelStreamErrorException as __ModelStreamErrorException, ModelTimeoutException as __ModelTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/
|
|
439
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ModelErrorException as __ModelErrorException, ModelNotReadyException as __ModelNotReadyException, ModelStreamErrorException as __ModelStreamErrorException, ModelTimeoutException as __ModelTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
|
|
430
440
|
export var AsyncInvokeMessage = [0, n0, _AIM, 8, 0];
|
|
431
441
|
export var Body = [0, n0, _B, 8, 21];
|
|
432
442
|
export var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
|
|
@@ -487,8 +497,8 @@ export var Citation = [
|
|
|
487
497
|
n0,
|
|
488
498
|
_C,
|
|
489
499
|
0,
|
|
490
|
-
[_ti, _sC, _l],
|
|
491
|
-
[0, () => CitationSourceContentList, () => CitationLocation],
|
|
500
|
+
[_ti, _s, _sC, _l],
|
|
501
|
+
[0, 0, () => CitationSourceContentList, () => CitationLocation],
|
|
492
502
|
];
|
|
493
503
|
export var CitationsConfig = [3, n0, _CC, 0, [_en], [2]];
|
|
494
504
|
export var CitationsContentBlock = [
|
|
@@ -504,8 +514,8 @@ export var CitationsDelta = [
|
|
|
504
514
|
n0,
|
|
505
515
|
_CD,
|
|
506
516
|
0,
|
|
507
|
-
[_ti, _sC, _l],
|
|
508
|
-
[0, () => CitationSourceContentListDelta, () => CitationLocation],
|
|
517
|
+
[_ti, _s, _sC, _l],
|
|
518
|
+
[0, 0, () => CitationSourceContentListDelta, () => CitationLocation],
|
|
509
519
|
];
|
|
510
520
|
export var CitationSourceContentDelta = [3, n0, _CSCD, 0, [_te], [0]];
|
|
511
521
|
export var ConflictException = [
|
|
@@ -543,7 +553,7 @@ export var ConverseRequest = [
|
|
|
543
553
|
n0,
|
|
544
554
|
_CR,
|
|
545
555
|
0,
|
|
546
|
-
[_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
|
|
556
|
+
[_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe],
|
|
547
557
|
[
|
|
548
558
|
[0, 1],
|
|
549
559
|
[() => Messages, 0],
|
|
@@ -556,6 +566,7 @@ export var ConverseRequest = [
|
|
|
556
566
|
64 | 0,
|
|
557
567
|
[() => RequestMetadata, 0],
|
|
558
568
|
() => PerformanceConfiguration,
|
|
569
|
+
() => ServiceTier,
|
|
559
570
|
],
|
|
560
571
|
];
|
|
561
572
|
export var ConverseResponse = [
|
|
@@ -563,7 +574,7 @@ export var ConverseResponse = [
|
|
|
563
574
|
n0,
|
|
564
575
|
_CRo,
|
|
565
576
|
0,
|
|
566
|
-
[_ou, _sR, _u, _met, _aMRFd, _tr, _pC],
|
|
577
|
+
[_ou, _sR, _u, _met, _aMRFd, _tr, _pC, _sTe],
|
|
567
578
|
[
|
|
568
579
|
[() => ConverseOutput, 0],
|
|
569
580
|
0,
|
|
@@ -572,6 +583,7 @@ export var ConverseResponse = [
|
|
|
572
583
|
15,
|
|
573
584
|
[() => ConverseTrace, 0],
|
|
574
585
|
() => PerformanceConfiguration,
|
|
586
|
+
() => ServiceTier,
|
|
575
587
|
],
|
|
576
588
|
];
|
|
577
589
|
export var ConverseStreamMetadataEvent = [
|
|
@@ -579,8 +591,14 @@ export var ConverseStreamMetadataEvent = [
|
|
|
579
591
|
n0,
|
|
580
592
|
_CSME,
|
|
581
593
|
0,
|
|
582
|
-
[_u, _met, _tr, _pC],
|
|
583
|
-
[
|
|
594
|
+
[_u, _met, _tr, _pC, _sTe],
|
|
595
|
+
[
|
|
596
|
+
() => TokenUsage,
|
|
597
|
+
() => ConverseStreamMetrics,
|
|
598
|
+
[() => ConverseStreamTrace, 0],
|
|
599
|
+
() => PerformanceConfiguration,
|
|
600
|
+
() => ServiceTier,
|
|
601
|
+
],
|
|
584
602
|
];
|
|
585
603
|
export var ConverseStreamMetrics = [3, n0, _CSM, 0, [_lM], [1]];
|
|
586
604
|
export var ConverseStreamRequest = [
|
|
@@ -588,7 +606,7 @@ export var ConverseStreamRequest = [
|
|
|
588
606
|
n0,
|
|
589
607
|
_CSR,
|
|
590
608
|
0,
|
|
591
|
-
[_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
|
|
609
|
+
[_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe],
|
|
592
610
|
[
|
|
593
611
|
[0, 1],
|
|
594
612
|
[() => Messages, 0],
|
|
@@ -601,6 +619,7 @@ export var ConverseStreamRequest = [
|
|
|
601
619
|
64 | 0,
|
|
602
620
|
[() => RequestMetadata, 0],
|
|
603
621
|
() => PerformanceConfiguration,
|
|
622
|
+
() => ServiceTier,
|
|
604
623
|
],
|
|
605
624
|
];
|
|
606
625
|
export var ConverseStreamResponse = [
|
|
@@ -624,11 +643,8 @@ export var ConverseTokensRequest = [
|
|
|
624
643
|
n0,
|
|
625
644
|
_CTR,
|
|
626
645
|
0,
|
|
627
|
-
[_me, _sy],
|
|
628
|
-
[
|
|
629
|
-
[() => Messages, 0],
|
|
630
|
-
[() => SystemContentBlocks, 0],
|
|
631
|
-
],
|
|
646
|
+
[_me, _sy, _tC, _aMRF],
|
|
647
|
+
[[() => Messages, 0], [() => SystemContentBlocks, 0], () => ToolConfiguration, 15],
|
|
632
648
|
];
|
|
633
649
|
export var ConverseTrace = [
|
|
634
650
|
3,
|
|
@@ -943,7 +959,7 @@ export var InvokeModelRequest = [
|
|
|
943
959
|
n0,
|
|
944
960
|
_IMR,
|
|
945
961
|
0,
|
|
946
|
-
[_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
|
|
962
|
+
[_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
|
|
947
963
|
[
|
|
948
964
|
[() => Body, 16],
|
|
949
965
|
[
|
|
@@ -983,6 +999,12 @@ export var InvokeModelRequest = [
|
|
|
983
999
|
[_hH]: _XABPL,
|
|
984
1000
|
},
|
|
985
1001
|
],
|
|
1002
|
+
[
|
|
1003
|
+
0,
|
|
1004
|
+
{
|
|
1005
|
+
[_hH]: _XABST,
|
|
1006
|
+
},
|
|
1007
|
+
],
|
|
986
1008
|
],
|
|
987
1009
|
];
|
|
988
1010
|
export var InvokeModelResponse = [
|
|
@@ -990,7 +1012,7 @@ export var InvokeModelResponse = [
|
|
|
990
1012
|
n0,
|
|
991
1013
|
_IMRn,
|
|
992
1014
|
0,
|
|
993
|
-
[_bo, _cT, _pCL],
|
|
1015
|
+
[_bo, _cT, _pCL, _sTe],
|
|
994
1016
|
[
|
|
995
1017
|
[() => Body, 16],
|
|
996
1018
|
[
|
|
@@ -1005,6 +1027,12 @@ export var InvokeModelResponse = [
|
|
|
1005
1027
|
[_hH]: _XABPL,
|
|
1006
1028
|
},
|
|
1007
1029
|
],
|
|
1030
|
+
[
|
|
1031
|
+
0,
|
|
1032
|
+
{
|
|
1033
|
+
[_hH]: _XABST,
|
|
1034
|
+
},
|
|
1035
|
+
],
|
|
1008
1036
|
],
|
|
1009
1037
|
];
|
|
1010
1038
|
export var InvokeModelTokensRequest = [3, n0, _IMTR, 0, [_bo], [[() => Body, 0]]];
|
|
@@ -1032,7 +1060,7 @@ export var InvokeModelWithResponseStreamRequest = [
|
|
|
1032
1060
|
n0,
|
|
1033
1061
|
_IMWRSR,
|
|
1034
1062
|
0,
|
|
1035
|
-
[_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
|
|
1063
|
+
[_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
|
|
1036
1064
|
[
|
|
1037
1065
|
[() => Body, 16],
|
|
1038
1066
|
[
|
|
@@ -1072,6 +1100,12 @@ export var InvokeModelWithResponseStreamRequest = [
|
|
|
1072
1100
|
[_hH]: _XABPL,
|
|
1073
1101
|
},
|
|
1074
1102
|
],
|
|
1103
|
+
[
|
|
1104
|
+
0,
|
|
1105
|
+
{
|
|
1106
|
+
[_hH]: _XABST,
|
|
1107
|
+
},
|
|
1108
|
+
],
|
|
1075
1109
|
],
|
|
1076
1110
|
];
|
|
1077
1111
|
export var InvokeModelWithResponseStreamResponse = [
|
|
@@ -1079,7 +1113,7 @@ export var InvokeModelWithResponseStreamResponse = [
|
|
|
1079
1113
|
n0,
|
|
1080
1114
|
_IMWRSRn,
|
|
1081
1115
|
0,
|
|
1082
|
-
[_bo, _cT, _pCL],
|
|
1116
|
+
[_bo, _cT, _pCL, _sTe],
|
|
1083
1117
|
[
|
|
1084
1118
|
[() => ResponseStream, 16],
|
|
1085
1119
|
[
|
|
@@ -1094,6 +1128,12 @@ export var InvokeModelWithResponseStreamResponse = [
|
|
|
1094
1128
|
[_hH]: _XABPL,
|
|
1095
1129
|
},
|
|
1096
1130
|
],
|
|
1131
|
+
[
|
|
1132
|
+
0,
|
|
1133
|
+
{
|
|
1134
|
+
[_hH]: _XABST,
|
|
1135
|
+
},
|
|
1136
|
+
],
|
|
1097
1137
|
],
|
|
1098
1138
|
];
|
|
1099
1139
|
export var ListAsyncInvokesRequest = [
|
|
@@ -1223,6 +1263,16 @@ export var ResourceNotFoundException = [
|
|
|
1223
1263
|
];
|
|
1224
1264
|
TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
|
|
1225
1265
|
export var S3Location = [3, n0, _SL, 0, [_ur, _bO], [0, 0]];
|
|
1266
|
+
export var SearchResultBlock = [
|
|
1267
|
+
3,
|
|
1268
|
+
n0,
|
|
1269
|
+
_SRB,
|
|
1270
|
+
0,
|
|
1271
|
+
[_s, _ti, _co, _ci],
|
|
1272
|
+
[0, 0, () => SearchResultContentBlocks, () => CitationsConfig],
|
|
1273
|
+
];
|
|
1274
|
+
export var SearchResultContentBlock = [3, n0, _SRCB, 0, [_te], [0]];
|
|
1275
|
+
export var SearchResultLocation = [3, n0, _SRL, 0, [_sRI, _sta, _end], [1, 1, 1]];
|
|
1226
1276
|
export var ServiceQuotaExceededException = [
|
|
1227
1277
|
-3,
|
|
1228
1278
|
n0,
|
|
@@ -1235,6 +1285,7 @@ export var ServiceQuotaExceededException = [
|
|
|
1235
1285
|
[0],
|
|
1236
1286
|
];
|
|
1237
1287
|
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
|
|
1288
|
+
export var ServiceTier = [3, n0, _ST, 0, [_t], [0]];
|
|
1238
1289
|
export var ServiceUnavailableException = [
|
|
1239
1290
|
-3,
|
|
1240
1291
|
n0,
|
|
@@ -1257,7 +1308,7 @@ export var StartAsyncInvokeRequest = [
|
|
|
1257
1308
|
[[0, 4], 0, [() => ModelInputPayload, 0], () => AsyncInvokeOutputDataConfig, () => TagList],
|
|
1258
1309
|
];
|
|
1259
1310
|
export var StartAsyncInvokeResponse = [3, n0, _SAIRt, 0, [_iA], [0]];
|
|
1260
|
-
export var SystemTool = [3, n0,
|
|
1311
|
+
export var SystemTool = [3, n0, _STy, 0, [_n], [0]];
|
|
1261
1312
|
export var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
|
|
1262
1313
|
export var ThrottlingException = [
|
|
1263
1314
|
-3,
|
|
@@ -1381,6 +1432,7 @@ export var GuardrailTopicList = [1, n0, _GTL, 0, () => GuardrailTopic];
|
|
|
1381
1432
|
export var Messages = [1, n0, _Me, 0, [() => Message, 0]];
|
|
1382
1433
|
export var ModelOutputs = 64 | 0;
|
|
1383
1434
|
export var NonEmptyStringList = 64 | 0;
|
|
1435
|
+
export var SearchResultContentBlocks = [1, n0, _SRCBe, 0, () => SearchResultContentBlock];
|
|
1384
1436
|
export var SystemContentBlocks = [1, n0, _SCB, 0, [() => SystemContentBlock, 0]];
|
|
1385
1437
|
export var TagList = [1, n0, _TL, 0, () => Tag];
|
|
1386
1438
|
export var ToolResultBlocksDelta = [1, n0, _TRBD, 0, () => ToolResultBlockDelta];
|
|
@@ -1404,8 +1456,14 @@ export var CitationLocation = [
|
|
|
1404
1456
|
n0,
|
|
1405
1457
|
_CL,
|
|
1406
1458
|
0,
|
|
1407
|
-
[_w, _dC, _dP, _dCo],
|
|
1408
|
-
[
|
|
1459
|
+
[_w, _dC, _dP, _dCo, _sRL],
|
|
1460
|
+
[
|
|
1461
|
+
() => WebLocation,
|
|
1462
|
+
() => DocumentCharLocation,
|
|
1463
|
+
() => DocumentPageLocation,
|
|
1464
|
+
() => DocumentChunkLocation,
|
|
1465
|
+
() => SearchResultLocation,
|
|
1466
|
+
],
|
|
1409
1467
|
];
|
|
1410
1468
|
export var CitationSourceContent = [3, n0, _CSC, 0, [_te], [0]];
|
|
1411
1469
|
export var ContentBlock = [
|
|
@@ -1413,7 +1471,7 @@ export var ContentBlock = [
|
|
|
1413
1471
|
n0,
|
|
1414
1472
|
_CBo,
|
|
1415
1473
|
0,
|
|
1416
|
-
[_te, _ima, _doc, _vi, _tU, _tR, _gCua, _cPa, _rC, _cC],
|
|
1474
|
+
[_te, _ima, _doc, _vi, _tU, _tR, _gCua, _cPa, _rC, _cC, _sRe],
|
|
1417
1475
|
[
|
|
1418
1476
|
0,
|
|
1419
1477
|
() => ImageBlock,
|
|
@@ -1425,6 +1483,7 @@ export var ContentBlock = [
|
|
|
1425
1483
|
() => CachePointBlock,
|
|
1426
1484
|
[() => ReasoningContentBlock, 0],
|
|
1427
1485
|
() => CitationsContentBlock,
|
|
1486
|
+
() => SearchResultBlock,
|
|
1428
1487
|
],
|
|
1429
1488
|
];
|
|
1430
1489
|
export var ContentBlockDelta = [
|
|
@@ -1614,8 +1673,8 @@ export var ToolResultContentBlock = [
|
|
|
1614
1673
|
n0,
|
|
1615
1674
|
_TRCBo,
|
|
1616
1675
|
0,
|
|
1617
|
-
[_j, _te, _ima, _doc, _vi],
|
|
1618
|
-
[15, 0, () => ImageBlock, () => DocumentBlock, () => VideoBlock],
|
|
1676
|
+
[_j, _te, _ima, _doc, _vi, _sRe],
|
|
1677
|
+
[15, 0, () => ImageBlock, () => DocumentBlock, () => VideoBlock, () => SearchResultBlock],
|
|
1619
1678
|
];
|
|
1620
1679
|
export var VideoSource = [3, n0, _VS, 0, [_b, _sL], [21, () => S3Location]];
|
|
1621
1680
|
export var ApplyGuardrail = [
|