cdk-lambda-subminute 2.0.311 → 2.0.312

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 (57) hide show
  1. package/.jsii +3 -3
  2. package/lib/cdk-lambda-subminute.js +3 -3
  3. package/node_modules/aws-sdk/CHANGELOG.md +17 -1
  4. package/node_modules/aws-sdk/README.md +1 -1
  5. package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.min.json +101 -95
  6. package/node_modules/aws-sdk/apis/bedrock-2023-04-20.min.json +91 -71
  7. package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.examples.json +5 -0
  8. package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.min.json +2322 -0
  9. package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.paginators.json +52 -0
  10. package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.examples.json +5 -0
  11. package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.min.json +697 -0
  12. package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.paginators.json +9 -0
  13. package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.min.json +18 -18
  14. package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.waiters2.json +5 -0
  15. package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +1180 -417
  16. package/node_modules/aws-sdk/apis/connect-2017-08-08.paginators.json +11 -0
  17. package/node_modules/aws-sdk/apis/customer-profiles-2020-08-15.min.json +129 -84
  18. package/node_modules/aws-sdk/apis/elasticache-2015-02-02.min.json +481 -132
  19. package/node_modules/aws-sdk/apis/elasticache-2015-02-02.paginators.json +12 -0
  20. package/node_modules/aws-sdk/apis/metadata.json +14 -0
  21. package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.examples.json +5 -0
  22. package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.min.json +3025 -0
  23. package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.paginators.json +76 -0
  24. package/node_modules/aws-sdk/apis/qconnect-2020-10-19.examples.json +5 -0
  25. package/node_modules/aws-sdk/apis/qconnect-2020-10-19.min.json +2499 -0
  26. package/node_modules/aws-sdk/apis/qconnect-2020-10-19.paginators.json +64 -0
  27. package/node_modules/aws-sdk/apis/s3-2006-03-01.examples.json +128 -128
  28. package/node_modules/aws-sdk/apis/s3-2006-03-01.min.json +649 -186
  29. package/node_modules/aws-sdk/apis/s3-2006-03-01.paginators.json +6 -0
  30. package/node_modules/aws-sdk/apis/s3control-2018-08-20.min.json +121 -115
  31. package/node_modules/aws-sdk/clients/accessanalyzer.d.ts +13 -2
  32. package/node_modules/aws-sdk/clients/all.d.ts +4 -0
  33. package/node_modules/aws-sdk/clients/all.js +5 -1
  34. package/node_modules/aws-sdk/clients/bedrock.d.ts +53 -17
  35. package/node_modules/aws-sdk/clients/bedrockagent.d.ts +1258 -0
  36. package/node_modules/aws-sdk/clients/bedrockagent.js +18 -0
  37. package/node_modules/aws-sdk/clients/bedrockagentruntime.d.ts +439 -0
  38. package/node_modules/aws-sdk/clients/bedrockagentruntime.js +18 -0
  39. package/node_modules/aws-sdk/clients/bedrockruntime.d.ts +13 -13
  40. package/node_modules/aws-sdk/clients/bedrockruntime.js +1 -0
  41. package/node_modules/aws-sdk/clients/connect.d.ts +886 -20
  42. package/node_modules/aws-sdk/clients/customerprofiles.d.ts +40 -0
  43. package/node_modules/aws-sdk/clients/elasticache.d.ts +484 -12
  44. package/node_modules/aws-sdk/clients/qbusiness.d.ts +3231 -0
  45. package/node_modules/aws-sdk/clients/qbusiness.js +18 -0
  46. package/node_modules/aws-sdk/clients/qconnect.d.ts +2552 -0
  47. package/node_modules/aws-sdk/clients/qconnect.js +18 -0
  48. package/node_modules/aws-sdk/clients/s3.d.ts +795 -666
  49. package/node_modules/aws-sdk/clients/s3control.d.ts +135 -125
  50. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +2 -2
  51. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +242 -87
  52. package/node_modules/aws-sdk/dist/aws-sdk.js +2340 -722
  53. package/node_modules/aws-sdk/dist/aws-sdk.min.js +83 -82
  54. package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +8 -0
  55. package/node_modules/aws-sdk/lib/core.js +1 -1
  56. package/node_modules/aws-sdk/package.json +1 -1
  57. package/package.json +3 -3
@@ -0,0 +1,18 @@
1
+ require('../lib/node_loader');
2
+ var AWS = require('../lib/core');
3
+ var Service = AWS.Service;
4
+ var apiLoader = AWS.apiLoader;
5
+
6
+ apiLoader.services['bedrockagent'] = {};
7
+ AWS.BedrockAgent = Service.defineService('bedrockagent', ['2023-06-05']);
8
+ Object.defineProperty(apiLoader.services['bedrockagent'], '2023-06-05', {
9
+ get: function get() {
10
+ var model = require('../apis/bedrock-agent-2023-06-05.min.json');
11
+ model.paginators = require('../apis/bedrock-agent-2023-06-05.paginators.json').pagination;
12
+ return model;
13
+ },
14
+ enumerable: true,
15
+ configurable: true
16
+ });
17
+
18
+ module.exports = AWS.BedrockAgent;
@@ -0,0 +1,439 @@
1
+ import {Request} from '../lib/request';
2
+ import {Response} from '../lib/response';
3
+ import {AWSError} from '../lib/error';
4
+ import {Service} from '../lib/service';
5
+ import {ServiceConfigurationOptions} from '../lib/service';
6
+ import {ConfigBase as Config} from '../lib/config-base';
7
+ import {EventStream} from '../lib/event-stream/event-stream';
8
+ interface Blob {}
9
+ declare class BedrockAgentRuntime extends Service {
10
+ /**
11
+ * Constructs a service object. This object has one method for each API operation.
12
+ */
13
+ constructor(options?: BedrockAgentRuntime.Types.ClientConfiguration)
14
+ config: Config & BedrockAgentRuntime.Types.ClientConfiguration;
15
+ /**
16
+ * Invokes the specified Bedrock model to run inference using the input provided in the request body.
17
+ */
18
+ invokeAgent(params: BedrockAgentRuntime.Types.InvokeAgentRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeAgentResponse) => void): Request<BedrockAgentRuntime.Types.InvokeAgentResponse, AWSError>;
19
+ /**
20
+ * Invokes the specified Bedrock model to run inference using the input provided in the request body.
21
+ */
22
+ invokeAgent(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeAgentResponse) => void): Request<BedrockAgentRuntime.Types.InvokeAgentResponse, AWSError>;
23
+ /**
24
+ * Retrieve from knowledge base.
25
+ */
26
+ retrieve(params: BedrockAgentRuntime.Types.RetrieveRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.RetrieveResponse) => void): Request<BedrockAgentRuntime.Types.RetrieveResponse, AWSError>;
27
+ /**
28
+ * Retrieve from knowledge base.
29
+ */
30
+ retrieve(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.RetrieveResponse) => void): Request<BedrockAgentRuntime.Types.RetrieveResponse, AWSError>;
31
+ /**
32
+ * RetrieveAndGenerate API
33
+ */
34
+ retrieveAndGenerate(params: BedrockAgentRuntime.Types.RetrieveAndGenerateRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.RetrieveAndGenerateResponse) => void): Request<BedrockAgentRuntime.Types.RetrieveAndGenerateResponse, AWSError>;
35
+ /**
36
+ * RetrieveAndGenerate API
37
+ */
38
+ retrieveAndGenerate(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.RetrieveAndGenerateResponse) => void): Request<BedrockAgentRuntime.Types.RetrieveAndGenerateResponse, AWSError>;
39
+ }
40
+ declare namespace BedrockAgentRuntime {
41
+ export interface AccessDeniedException {
42
+ message?: NonBlankString;
43
+ }
44
+ export interface ActionGroupInvocationInput {
45
+ actionGroupName?: ActionGroupName;
46
+ verb?: Verb;
47
+ apiPath?: ApiPath;
48
+ parameters?: Parameters;
49
+ requestBody?: RequestBody;
50
+ }
51
+ export interface ActionGroupInvocationOutput {
52
+ text?: ActionGroupOutputString;
53
+ }
54
+ export type ActionGroupName = string;
55
+ export type ActionGroupOutputString = string;
56
+ export type AgentAliasId = string;
57
+ export type AgentId = string;
58
+ export type ApiPath = string;
59
+ export interface Attribution {
60
+ citations?: Citations;
61
+ }
62
+ export interface BadGatewayException {
63
+ message?: NonBlankString;
64
+ resourceName?: NonBlankString;
65
+ }
66
+ export type BedrockModelArn = string;
67
+ export type Boolean = boolean;
68
+ export interface Citation {
69
+ generatedResponsePart?: GeneratedResponsePart;
70
+ retrievedReferences?: RetrievedReferences;
71
+ }
72
+ export type Citations = Citation[];
73
+ export interface ConflictException {
74
+ message?: NonBlankString;
75
+ }
76
+ export type ContentMap = {[key: string]: Parameters};
77
+ export type CreationMode = "DEFAULT"|"OVERRIDDEN"|string;
78
+ export interface DependencyFailedException {
79
+ message?: NonBlankString;
80
+ resourceName?: NonBlankString;
81
+ }
82
+ export type Double = number;
83
+ export type FailureReasonString = string;
84
+ export interface FailureTrace {
85
+ traceId?: TraceId;
86
+ failureReason?: FailureReasonString;
87
+ }
88
+ export interface FinalResponse {
89
+ text?: FinalResponseString;
90
+ }
91
+ export type FinalResponseString = string;
92
+ export interface GeneratedResponsePart {
93
+ textResponsePart?: TextResponsePart;
94
+ }
95
+ export interface InferenceConfiguration {
96
+ temperature?: Temperature;
97
+ topP?: TopP;
98
+ topK?: TopK;
99
+ maximumLength?: MaximumLength;
100
+ stopSequences?: StopSequences;
101
+ }
102
+ export type InputText = string;
103
+ export interface InternalServerException {
104
+ message?: NonBlankString;
105
+ }
106
+ export interface InvocationInput {
107
+ traceId?: TraceId;
108
+ invocationType?: InvocationType;
109
+ actionGroupInvocationInput?: ActionGroupInvocationInput;
110
+ knowledgeBaseLookupInput?: KnowledgeBaseLookupInput;
111
+ }
112
+ export type InvocationType = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"FINISH"|string;
113
+ export interface InvokeAgentRequest {
114
+ /**
115
+ * Session state passed by customer. Base64 encoded json string representation of SessionState.
116
+ */
117
+ sessionState?: SessionState;
118
+ /**
119
+ * Identifier for Agent
120
+ */
121
+ agentId: AgentId;
122
+ /**
123
+ * Identifier for Agent Alias
124
+ */
125
+ agentAliasId: AgentAliasId;
126
+ /**
127
+ * Identifier used for the current session
128
+ */
129
+ sessionId: SessionId;
130
+ /**
131
+ * End current session
132
+ */
133
+ endSession?: Boolean;
134
+ /**
135
+ * Enable agent trace events for improved debugging
136
+ */
137
+ enableTrace?: Boolean;
138
+ /**
139
+ * Input data in the format specified in the Content-Type request header.
140
+ */
141
+ inputText: InputText;
142
+ }
143
+ export interface InvokeAgentResponse {
144
+ /**
145
+ * Inference response from the model in the format specified in the Content-Type response header.
146
+ */
147
+ completion: ResponseStream;
148
+ /**
149
+ * streaming response mimetype of the model
150
+ */
151
+ contentType: MimeType;
152
+ /**
153
+ * streaming response mimetype of the model
154
+ */
155
+ sessionId: SessionId;
156
+ }
157
+ export type KmsKeyArn = string;
158
+ export type KnowledgeBaseId = string;
159
+ export interface KnowledgeBaseLookupInput {
160
+ text?: KnowledgeBaseLookupInputString;
161
+ knowledgeBaseId?: TraceKnowledgeBaseId;
162
+ }
163
+ export type KnowledgeBaseLookupInputString = string;
164
+ export interface KnowledgeBaseLookupOutput {
165
+ retrievedReferences?: RetrievedReferences;
166
+ }
167
+ export interface KnowledgeBaseQuery {
168
+ /**
169
+ * Knowledge base input query in text
170
+ */
171
+ text: KnowledgeBaseQueryTextString;
172
+ }
173
+ export type KnowledgeBaseQueryTextString = string;
174
+ export interface KnowledgeBaseRetrievalConfiguration {
175
+ vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration;
176
+ }
177
+ export interface KnowledgeBaseRetrievalResult {
178
+ content: RetrievalResultContent;
179
+ location?: RetrievalResultLocation;
180
+ /**
181
+ * The relevance score of a result.
182
+ */
183
+ score?: Double;
184
+ }
185
+ export type KnowledgeBaseRetrievalResults = KnowledgeBaseRetrievalResult[];
186
+ export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
187
+ knowledgeBaseId: KnowledgeBaseId;
188
+ modelArn: BedrockModelArn;
189
+ }
190
+ export interface KnowledgeBaseVectorSearchConfiguration {
191
+ /**
192
+ * Top-K results to retrieve from knowledge base.
193
+ */
194
+ numberOfResults: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger;
195
+ }
196
+ export type KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger = number;
197
+ export type LambdaArn = string;
198
+ export type MaximumLength = number;
199
+ export type MimeType = string;
200
+ export interface ModelInvocationInput {
201
+ traceId?: TraceId;
202
+ text?: PromptText;
203
+ type?: PromptType;
204
+ inferenceConfiguration?: InferenceConfiguration;
205
+ overrideLambda?: LambdaArn;
206
+ promptCreationMode?: CreationMode;
207
+ parserMode?: CreationMode;
208
+ }
209
+ export type NextToken = string;
210
+ export type NonBlankString = string;
211
+ export interface Observation {
212
+ traceId?: TraceId;
213
+ type?: Type;
214
+ actionGroupInvocationOutput?: ActionGroupInvocationOutput;
215
+ knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput;
216
+ finalResponse?: FinalResponse;
217
+ repromptResponse?: RepromptResponse;
218
+ }
219
+ export interface OrchestrationTrace {
220
+ rationale?: Rationale;
221
+ invocationInput?: InvocationInput;
222
+ observation?: Observation;
223
+ modelInvocationInput?: ModelInvocationInput;
224
+ }
225
+ export type OutputString = string;
226
+ export interface Parameter {
227
+ /**
228
+ * Name of parameter
229
+ */
230
+ name?: String;
231
+ /**
232
+ * Type of parameter
233
+ */
234
+ type?: String;
235
+ /**
236
+ * Value of parameter
237
+ */
238
+ value?: String;
239
+ }
240
+ export type Parameters = Parameter[];
241
+ export type PartBody = Buffer|Uint8Array|Blob|string;
242
+ export interface PayloadPart {
243
+ bytes?: PartBody;
244
+ attribution?: Attribution;
245
+ }
246
+ export interface PostProcessingModelInvocationOutput {
247
+ traceId?: TraceId;
248
+ parsedResponse?: PostProcessingParsedResponse;
249
+ }
250
+ export interface PostProcessingParsedResponse {
251
+ text?: OutputString;
252
+ }
253
+ export interface PostProcessingTrace {
254
+ modelInvocationInput?: ModelInvocationInput;
255
+ modelInvocationOutput?: PostProcessingModelInvocationOutput;
256
+ }
257
+ export interface PreProcessingModelInvocationOutput {
258
+ traceId?: TraceId;
259
+ parsedResponse?: PreProcessingParsedResponse;
260
+ }
261
+ export interface PreProcessingParsedResponse {
262
+ rationale?: RationaleString;
263
+ /**
264
+ * Boolean value
265
+ */
266
+ isValid?: Boolean;
267
+ }
268
+ export interface PreProcessingTrace {
269
+ modelInvocationInput?: ModelInvocationInput;
270
+ modelInvocationOutput?: PreProcessingModelInvocationOutput;
271
+ }
272
+ export type PromptSessionAttributesMap = {[key: string]: String};
273
+ export type PromptText = string;
274
+ export type PromptType = "PRE_PROCESSING"|"ORCHESTRATION"|"KNOWLEDGE_BASE_RESPONSE_GENERATION"|"POST_PROCESSING"|string;
275
+ export interface Rationale {
276
+ traceId?: TraceId;
277
+ text?: RationaleString;
278
+ }
279
+ export type RationaleString = string;
280
+ export interface RepromptResponse {
281
+ /**
282
+ * Reprompt response text
283
+ */
284
+ text?: String;
285
+ source?: Source;
286
+ }
287
+ export interface RequestBody {
288
+ content?: ContentMap;
289
+ }
290
+ export interface ResourceNotFoundException {
291
+ message?: NonBlankString;
292
+ }
293
+ export type ResponseStream = EventStream<{chunk?:PayloadPart,trace?:TracePart,internalServerException?:InternalServerException,validationException?:ValidationException,resourceNotFoundException?:ResourceNotFoundException,serviceQuotaExceededException?:ServiceQuotaExceededException,throttlingException?:ThrottlingException,accessDeniedException?:AccessDeniedException,conflictException?:ConflictException,dependencyFailedException?:DependencyFailedException,badGatewayException?:BadGatewayException}>;
294
+ export interface RetrievalResultContent {
295
+ /**
296
+ * Content of a retrieval result in text
297
+ */
298
+ text: String;
299
+ }
300
+ export interface RetrievalResultLocation {
301
+ type: RetrievalResultLocationType;
302
+ s3Location?: RetrievalResultS3Location;
303
+ }
304
+ export type RetrievalResultLocationType = "S3"|string;
305
+ export interface RetrievalResultS3Location {
306
+ /**
307
+ * URI of S3 location
308
+ */
309
+ uri?: String;
310
+ }
311
+ export interface RetrieveAndGenerateConfiguration {
312
+ type: RetrieveAndGenerateType;
313
+ knowledgeBaseConfiguration?: KnowledgeBaseRetrieveAndGenerateConfiguration;
314
+ }
315
+ export interface RetrieveAndGenerateInput {
316
+ /**
317
+ * Customer input of the turn in text
318
+ */
319
+ text: RetrieveAndGenerateInputTextString;
320
+ }
321
+ export type RetrieveAndGenerateInputTextString = string;
322
+ export interface RetrieveAndGenerateOutput {
323
+ /**
324
+ * Service response of the turn in text
325
+ */
326
+ text: String;
327
+ }
328
+ export interface RetrieveAndGenerateRequest {
329
+ sessionId?: SessionId;
330
+ input: RetrieveAndGenerateInput;
331
+ retrieveAndGenerateConfiguration?: RetrieveAndGenerateConfiguration;
332
+ sessionConfiguration?: RetrieveAndGenerateSessionConfiguration;
333
+ }
334
+ export interface RetrieveAndGenerateResponse {
335
+ sessionId: SessionId;
336
+ output: RetrieveAndGenerateOutput;
337
+ citations?: Citations;
338
+ }
339
+ export interface RetrieveAndGenerateSessionConfiguration {
340
+ /**
341
+ * The KMS key arn to encrypt the customer data of the session.
342
+ */
343
+ kmsKeyArn: KmsKeyArn;
344
+ }
345
+ export type RetrieveAndGenerateType = "KNOWLEDGE_BASE"|string;
346
+ export interface RetrieveRequest {
347
+ knowledgeBaseId: KnowledgeBaseId;
348
+ retrievalQuery: KnowledgeBaseQuery;
349
+ retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration;
350
+ nextToken?: NextToken;
351
+ }
352
+ export interface RetrieveResponse {
353
+ retrievalResults: KnowledgeBaseRetrievalResults;
354
+ nextToken?: NextToken;
355
+ }
356
+ export interface RetrievedReference {
357
+ content?: RetrievalResultContent;
358
+ location?: RetrievalResultLocation;
359
+ }
360
+ export type RetrievedReferences = RetrievedReference[];
361
+ export interface ServiceQuotaExceededException {
362
+ message?: NonBlankString;
363
+ }
364
+ export type SessionAttributesMap = {[key: string]: String};
365
+ export type SessionId = string;
366
+ export interface SessionState {
367
+ /**
368
+ * Session Attributes
369
+ */
370
+ sessionAttributes?: SessionAttributesMap;
371
+ /**
372
+ * Prompt Session Attributes
373
+ */
374
+ promptSessionAttributes?: PromptSessionAttributesMap;
375
+ }
376
+ export type Source = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"PARSER"|string;
377
+ export interface Span {
378
+ /**
379
+ * Start of span
380
+ */
381
+ start?: SpanStartInteger;
382
+ /**
383
+ * End of span
384
+ */
385
+ end?: SpanEndInteger;
386
+ }
387
+ export type SpanEndInteger = number;
388
+ export type SpanStartInteger = number;
389
+ export type StopSequences = String[];
390
+ export type String = string;
391
+ export type Temperature = number;
392
+ export interface TextResponsePart {
393
+ /**
394
+ * Response part in text
395
+ */
396
+ text?: String;
397
+ span?: Span;
398
+ }
399
+ export interface ThrottlingException {
400
+ message?: NonBlankString;
401
+ }
402
+ export type TopK = number;
403
+ export type TopP = number;
404
+ export interface Trace {
405
+ preProcessingTrace?: PreProcessingTrace;
406
+ orchestrationTrace?: OrchestrationTrace;
407
+ postProcessingTrace?: PostProcessingTrace;
408
+ failureTrace?: FailureTrace;
409
+ }
410
+ export type TraceId = string;
411
+ export type TraceKnowledgeBaseId = string;
412
+ export interface TracePart {
413
+ agentId?: AgentId;
414
+ agentAliasId?: AgentAliasId;
415
+ sessionId?: SessionId;
416
+ trace?: Trace;
417
+ }
418
+ export type Type = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"FINISH"|"ASK_USER"|"REPROMPT"|string;
419
+ export interface ValidationException {
420
+ message?: NonBlankString;
421
+ }
422
+ export type Verb = string;
423
+ /**
424
+ * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
425
+ */
426
+ export type apiVersion = "2023-07-26"|"latest"|string;
427
+ export interface ClientApiVersions {
428
+ /**
429
+ * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
430
+ */
431
+ apiVersion?: apiVersion;
432
+ }
433
+ export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
434
+ /**
435
+ * Contains interfaces for use with the BedrockAgentRuntime client.
436
+ */
437
+ export import Types = BedrockAgentRuntime;
438
+ }
439
+ export = BedrockAgentRuntime;
@@ -0,0 +1,18 @@
1
+ require('../lib/node_loader');
2
+ var AWS = require('../lib/core');
3
+ var Service = AWS.Service;
4
+ var apiLoader = AWS.apiLoader;
5
+
6
+ apiLoader.services['bedrockagentruntime'] = {};
7
+ AWS.BedrockAgentRuntime = Service.defineService('bedrockagentruntime', ['2023-07-26']);
8
+ Object.defineProperty(apiLoader.services['bedrockagentruntime'], '2023-07-26', {
9
+ get: function get() {
10
+ var model = require('../apis/bedrock-agent-runtime-2023-07-26.min.json');
11
+ model.paginators = require('../apis/bedrock-agent-runtime-2023-07-26.paginators.json').pagination;
12
+ return model;
13
+ },
14
+ enumerable: true,
15
+ configurable: true
16
+ });
17
+
18
+ module.exports = AWS.BedrockAgentRuntime;
@@ -36,10 +36,6 @@ declare namespace BedrockRuntime {
36
36
  }
37
37
  export type InvokeModelIdentifier = string;
38
38
  export interface InvokeModelRequest {
39
- /**
40
- * The desired MIME type of the inference body in the response. The default value is application/json.
41
- */
42
- accept?: MimeType;
43
39
  /**
44
40
  * Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to Inference parameters.
45
41
  */
@@ -48,6 +44,10 @@ declare namespace BedrockRuntime {
48
44
  * The MIME type of the input data in the request. The default value is application/json.
49
45
  */
50
46
  contentType?: MimeType;
47
+ /**
48
+ * The desired MIME type of the inference body in the response. The default value is application/json.
49
+ */
50
+ accept?: MimeType;
51
51
  /**
52
52
  * Identifier of the model.
53
53
  */
@@ -64,10 +64,6 @@ declare namespace BedrockRuntime {
64
64
  contentType: MimeType;
65
65
  }
66
66
  export interface InvokeModelWithResponseStreamRequest {
67
- /**
68
- * The desired MIME type of the inference body in the response. The default value is application/json.
69
- */
70
- accept?: MimeType;
71
67
  /**
72
68
  * Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
73
69
  */
@@ -76,6 +72,10 @@ declare namespace BedrockRuntime {
76
72
  * The MIME type of the input data in the request. The default value is application/json.
77
73
  */
78
74
  contentType?: MimeType;
75
+ /**
76
+ * The desired MIME type of the inference body in the response. The default value is application/json.
77
+ */
78
+ accept?: MimeType;
79
79
  /**
80
80
  * Id of the model to invoke using the streaming request.
81
81
  */
@@ -94,14 +94,14 @@ declare namespace BedrockRuntime {
94
94
  export type MimeType = string;
95
95
  export interface ModelStreamErrorException {
96
96
  message?: NonBlankString;
97
- /**
98
- * The original message.
99
- */
100
- originalMessage?: NonBlankString;
101
97
  /**
102
98
  * The original status code.
103
99
  */
104
100
  originalStatusCode?: StatusCode;
101
+ /**
102
+ * The original message.
103
+ */
104
+ originalMessage?: NonBlankString;
105
105
  }
106
106
  export interface ModelTimeoutException {
107
107
  message?: NonBlankString;
@@ -114,7 +114,7 @@ declare namespace BedrockRuntime {
114
114
  */
115
115
  bytes?: PartBody;
116
116
  }
117
- export type ResponseStream = EventStream<{chunk?:PayloadPart,internalServerException?:InternalServerException,modelStreamErrorException?:ModelStreamErrorException,modelTimeoutException?:ModelTimeoutException,throttlingException?:ThrottlingException,validationException?:ValidationException}>;
117
+ export type ResponseStream = EventStream<{chunk?:PayloadPart,internalServerException?:InternalServerException,modelStreamErrorException?:ModelStreamErrorException,validationException?:ValidationException,throttlingException?:ThrottlingException,modelTimeoutException?:ModelTimeoutException}>;
118
118
  export type StatusCode = number;
119
119
  export interface ThrottlingException {
120
120
  message?: NonBlankString;
@@ -9,6 +9,7 @@ Object.defineProperty(apiLoader.services['bedrockruntime'], '2023-09-30', {
9
9
  get: function get() {
10
10
  var model = require('../apis/bedrock-runtime-2023-09-30.min.json');
11
11
  model.paginators = require('../apis/bedrock-runtime-2023-09-30.paginators.json').pagination;
12
+ model.waiters = require('../apis/bedrock-runtime-2023-09-30.waiters2.json').waiters;
12
13
  return model;
13
14
  },
14
15
  enumerable: true,