@aws-sdk/client-bedrock-agentcore 3.972.0 → 3.973.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 +63 -10
- package/dist-es/models/errors.js +13 -0
- package/dist-es/schemas/schemas_0.js +46 -11
- package/dist-types/commands/CreateEventCommand.d.ts +3 -0
- package/dist-types/commands/GetBrowserSessionCommand.d.ts +11 -0
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +11 -0
- package/dist-types/models/errors.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +75 -0
- package/dist-types/schemas/schemas_0.d.ts +4 -0
- package/dist-types/ts3.4/models/errors.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -279,6 +279,19 @@ class InvalidInputException extends BedrockAgentCoreServiceException {
|
|
|
279
279
|
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
+
class RetryableConflictException extends BedrockAgentCoreServiceException {
|
|
283
|
+
name = "RetryableConflictException";
|
|
284
|
+
$fault = "client";
|
|
285
|
+
$retryable = {};
|
|
286
|
+
constructor(opts) {
|
|
287
|
+
super({
|
|
288
|
+
name: "RetryableConflictException",
|
|
289
|
+
$fault: "client",
|
|
290
|
+
...opts,
|
|
291
|
+
});
|
|
292
|
+
Object.setPrototypeOf(this, RetryableConflictException.prototype);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
282
295
|
|
|
283
296
|
const _A = "Accept";
|
|
284
297
|
const _ADE = "AccessDeniedException";
|
|
@@ -296,6 +309,8 @@ const _BCMRO = "BatchCreateMemoryRecordsOutput";
|
|
|
296
309
|
const _BDMR = "BatchDeleteMemoryRecords";
|
|
297
310
|
const _BDMRI = "BatchDeleteMemoryRecordsInput";
|
|
298
311
|
const _BDMRO = "BatchDeleteMemoryRecordsOutput";
|
|
312
|
+
const _BE = "BrowserExtension";
|
|
313
|
+
const _BEr = "BrowserExtensions";
|
|
299
314
|
const _BF = "BranchFilter";
|
|
300
315
|
const _BSS = "BrowserSessionStream";
|
|
301
316
|
const _BSSr = "BrowserSessionSummary";
|
|
@@ -435,8 +450,10 @@ const _MV = "MetadataValue";
|
|
|
435
450
|
const _PT = "PayloadType";
|
|
436
451
|
const _PTL = "PayloadTypeList";
|
|
437
452
|
const _RC = "ResourceContent";
|
|
438
|
-
const _RCE = "
|
|
453
|
+
const _RCE = "RetryableConflictException";
|
|
454
|
+
const _RCEu = "RuntimeClientError";
|
|
439
455
|
const _RE = "RightExpression";
|
|
456
|
+
const _RL = "ResourceLocation";
|
|
440
457
|
const _RMR = "RetrieveMemoryRecords";
|
|
441
458
|
const _RMRI = "RetrieveMemoryRecordsInput";
|
|
442
459
|
const _RMRO = "RetrieveMemoryRecordsOutput";
|
|
@@ -458,6 +475,7 @@ const _SCISRtop = "StopCodeInterpreterSessionResponse";
|
|
|
458
475
|
const _SCISt = "StopCodeInterpreterSession";
|
|
459
476
|
const _SCp = "SpanContext";
|
|
460
477
|
const _SE = "ServiceException";
|
|
478
|
+
const _SL = "S3Location";
|
|
461
479
|
const _SMEJ = "StartMemoryExtractionJob";
|
|
462
480
|
const _SMEJI = "StartMemoryExtractionJobInput";
|
|
463
481
|
const _SMEJO = "StartMemoryExtractionJobOutput";
|
|
@@ -506,6 +524,7 @@ const _b = "branch";
|
|
|
506
524
|
const _bI = "browserIdentifier";
|
|
507
525
|
const _ba = "baggage";
|
|
508
526
|
const _bl = "blob";
|
|
527
|
+
const _bu = "bucket";
|
|
509
528
|
const _c = "client";
|
|
510
529
|
const _cA = "createdAt";
|
|
511
530
|
const _cC = "clearContext";
|
|
@@ -541,6 +560,7 @@ const _eTx = "executionTime";
|
|
|
541
560
|
const _ev = "event";
|
|
542
561
|
const _eve = "events";
|
|
543
562
|
const _ex = "explanation";
|
|
563
|
+
const _ext = "extensions";
|
|
544
564
|
const _f = "filter";
|
|
545
565
|
const _fA = "forceAuthentication";
|
|
546
566
|
const _fL = "fieldList";
|
|
@@ -561,10 +581,11 @@ const _iTn = "inputTokens";
|
|
|
561
581
|
const _j = "jobs";
|
|
562
582
|
const _jI = "jobId";
|
|
563
583
|
const _jID = "jobID";
|
|
564
|
-
const _l = "
|
|
584
|
+
const _l = "location";
|
|
565
585
|
const _lUA = "lastUpdatedAt";
|
|
566
586
|
const _lVS = "liveViewStream";
|
|
567
|
-
const _la = "
|
|
587
|
+
const _la = "label";
|
|
588
|
+
const _lan = "language";
|
|
568
589
|
const _le = "left";
|
|
569
590
|
const _m = "message";
|
|
570
591
|
const _mF = "metadataFilters";
|
|
@@ -593,6 +614,7 @@ const _oT = "outputTokens";
|
|
|
593
614
|
const _p = "payload";
|
|
594
615
|
const _pa = "path";
|
|
595
616
|
const _pat = "paths";
|
|
617
|
+
const _pr = "prefix";
|
|
596
618
|
const _q = "qualifier";
|
|
597
619
|
const _r = "records";
|
|
598
620
|
const _rCPN = "resourceCredentialProviderName";
|
|
@@ -630,6 +652,7 @@ const _sTS = "sessionTimeoutSeconds";
|
|
|
630
652
|
const _sU = "sessionUri";
|
|
631
653
|
const _sUt = "streamUpdate";
|
|
632
654
|
const _sV = "stringValue";
|
|
655
|
+
const _s_ = "s3";
|
|
633
656
|
const _sc = "scopes";
|
|
634
657
|
const _sco = "score";
|
|
635
658
|
const _se = "server";
|
|
@@ -663,6 +686,7 @@ const _uIs = "userId";
|
|
|
663
686
|
const _uT = "userToken";
|
|
664
687
|
const _v = "value";
|
|
665
688
|
const _vE = "validationException";
|
|
689
|
+
const _vI = "versionId";
|
|
666
690
|
const _vP = "viewPort";
|
|
667
691
|
const _w = "width";
|
|
668
692
|
const _wAT = "workloadAccessToken";
|
|
@@ -743,6 +767,11 @@ var BranchFilter$ = [3, n0, _BF,
|
|
|
743
767
|
[_n, _iPB],
|
|
744
768
|
[0, 2], 1
|
|
745
769
|
];
|
|
770
|
+
var BrowserExtension$ = [3, n0, _BE,
|
|
771
|
+
0,
|
|
772
|
+
[_l],
|
|
773
|
+
[() => ResourceLocation$], 1
|
|
774
|
+
];
|
|
746
775
|
var BrowserSessionStream$ = [3, n0, _BSS,
|
|
747
776
|
0,
|
|
748
777
|
[_aS, _lVS],
|
|
@@ -837,7 +866,7 @@ var EvaluateResponse$ = [3, n0, _ERv,
|
|
|
837
866
|
];
|
|
838
867
|
var EvaluationResultContent$ = [3, n0, _ERC,
|
|
839
868
|
0,
|
|
840
|
-
[_eA, _eIv, _eN, _con, _ex, _v,
|
|
869
|
+
[_eA, _eIv, _eN, _con, _ex, _v, _la, _tU, _eM, _eC],
|
|
841
870
|
[0, 0, 0, () => Context$, [() => EvaluationExplanation, 0], 1, 0, () => TokenUsage$, 0, 0], 4
|
|
842
871
|
];
|
|
843
872
|
var Event$ = [3, n0, _E,
|
|
@@ -887,8 +916,8 @@ var GetBrowserSessionRequest$ = [3, n0, _GBSR,
|
|
|
887
916
|
];
|
|
888
917
|
var GetBrowserSessionResponse$ = [3, n0, _GBSRe,
|
|
889
918
|
0,
|
|
890
|
-
[_bI, _sI, _cA, _n, _vP, _sTS, _sta, _str, _sRA, _lUA],
|
|
891
|
-
[0, 0, 5, 0, () => ViewPort$, 1, 0, () => BrowserSessionStream$, 0, 5], 3
|
|
919
|
+
[_bI, _sI, _cA, _n, _vP, _ext, _sTS, _sta, _str, _sRA, _lUA],
|
|
920
|
+
[0, 0, 5, 0, () => ViewPort$, () => BrowserExtensions, 1, 0, () => BrowserSessionStream$, 0, 5], 3
|
|
892
921
|
];
|
|
893
922
|
var GetCodeInterpreterSessionRequest$ = [3, n0, _GCISR,
|
|
894
923
|
0,
|
|
@@ -1143,12 +1172,23 @@ var RetrieveMemoryRecordsOutput$ = [3, n0, _RMRO,
|
|
|
1143
1172
|
[_mRS, _nT],
|
|
1144
1173
|
[[() => MemoryRecordSummaryList, 0], 0], 1
|
|
1145
1174
|
];
|
|
1146
|
-
var
|
|
1175
|
+
var RetryableConflictException$ = [-3, n0, _RCE,
|
|
1176
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
1177
|
+
[_m],
|
|
1178
|
+
[0], 1
|
|
1179
|
+
];
|
|
1180
|
+
schema.TypeRegistry.for(n0).registerError(RetryableConflictException$, RetryableConflictException);
|
|
1181
|
+
var RuntimeClientError$ = [-3, n0, _RCEu,
|
|
1147
1182
|
{ [_e]: _c, [_hE]: 424 },
|
|
1148
1183
|
[_m],
|
|
1149
1184
|
[0]
|
|
1150
1185
|
];
|
|
1151
1186
|
schema.TypeRegistry.for(n0).registerError(RuntimeClientError$, RuntimeClientError);
|
|
1187
|
+
var S3Location$ = [3, n0, _SL,
|
|
1188
|
+
0,
|
|
1189
|
+
[_bu, _pr, _vI],
|
|
1190
|
+
[0, 0, 0], 2
|
|
1191
|
+
];
|
|
1152
1192
|
var SearchCriteria$ = [3, n0, _SC,
|
|
1153
1193
|
0,
|
|
1154
1194
|
[_sQ, _mSIe, _tK, _mF],
|
|
@@ -1178,8 +1218,8 @@ var SpanContext$ = [3, n0, _SCp,
|
|
|
1178
1218
|
];
|
|
1179
1219
|
var StartBrowserSessionRequest$ = [3, n0, _SBSR,
|
|
1180
1220
|
0,
|
|
1181
|
-
[_bI, _tI, _tP, _n, _sTS, _vP, _cT],
|
|
1182
|
-
[[0, 1], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], 0, 1, () => ViewPort$, [0, 4]], 1
|
|
1221
|
+
[_bI, _tI, _tP, _n, _sTS, _vP, _ext, _cT],
|
|
1222
|
+
[[0, 1], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], 0, 1, () => ViewPort$, () => BrowserExtensions, [0, 4]], 1
|
|
1183
1223
|
];
|
|
1184
1224
|
var StartBrowserSessionResponse$ = [3, n0, _SBSRt,
|
|
1185
1225
|
0,
|
|
@@ -1255,7 +1295,7 @@ var TokenUsage$ = [3, n0, _TU,
|
|
|
1255
1295
|
];
|
|
1256
1296
|
var ToolArguments$ = [3, n0, _TA,
|
|
1257
1297
|
0,
|
|
1258
|
-
[_cod,
|
|
1298
|
+
[_cod, _lan, _cC, _com, _pa, _pat, _co, _dP, _tIa],
|
|
1259
1299
|
[0, 0, 2, 0, 0, 64 | 0, [() => InputContentBlockList, 0], 0, 0]
|
|
1260
1300
|
];
|
|
1261
1301
|
var ToolResultStructuredContent$ = [3, n0, _TRSC,
|
|
@@ -1300,6 +1340,9 @@ schema.TypeRegistry.for(_sm).registerError(BedrockAgentCoreServiceException$, Be
|
|
|
1300
1340
|
var ActorSummaryList = [1, n0, _ASL,
|
|
1301
1341
|
0, () => ActorSummary$
|
|
1302
1342
|
];
|
|
1343
|
+
var BrowserExtensions = [1, n0, _BEr,
|
|
1344
|
+
0, () => BrowserExtension$
|
|
1345
|
+
];
|
|
1303
1346
|
var BrowserSessionSummaries = [1, n0, _BSSro,
|
|
1304
1347
|
0, () => BrowserSessionSummary$
|
|
1305
1348
|
];
|
|
@@ -1423,6 +1466,11 @@ var PayloadType$ = [4, n0, _PT,
|
|
|
1423
1466
|
[_conv, _bl],
|
|
1424
1467
|
[[() => Conversational$, 0], [() => Document, 0]]
|
|
1425
1468
|
];
|
|
1469
|
+
var ResourceLocation$ = [4, n0, _RL,
|
|
1470
|
+
0,
|
|
1471
|
+
[_s_],
|
|
1472
|
+
[() => S3Location$]
|
|
1473
|
+
];
|
|
1426
1474
|
var RightExpression$ = [4, n0, _RE,
|
|
1427
1475
|
0,
|
|
1428
1476
|
[_mV],
|
|
@@ -2132,6 +2180,7 @@ exports.BedrockAgentCoreServiceException = BedrockAgentCoreServiceException;
|
|
|
2132
2180
|
exports.BedrockAgentCoreServiceException$ = BedrockAgentCoreServiceException$;
|
|
2133
2181
|
exports.Branch$ = Branch$;
|
|
2134
2182
|
exports.BranchFilter$ = BranchFilter$;
|
|
2183
|
+
exports.BrowserExtension$ = BrowserExtension$;
|
|
2135
2184
|
exports.BrowserSessionStatus = BrowserSessionStatus;
|
|
2136
2185
|
exports.BrowserSessionStream$ = BrowserSessionStream$;
|
|
2137
2186
|
exports.BrowserSessionSummary$ = BrowserSessionSummary$;
|
|
@@ -2279,16 +2328,20 @@ exports.PayloadType$ = PayloadType$;
|
|
|
2279
2328
|
exports.ProgrammingLanguage = ProgrammingLanguage;
|
|
2280
2329
|
exports.ResourceContent$ = ResourceContent$;
|
|
2281
2330
|
exports.ResourceContentType = ResourceContentType;
|
|
2331
|
+
exports.ResourceLocation$ = ResourceLocation$;
|
|
2282
2332
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
2283
2333
|
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
2284
2334
|
exports.RetrieveMemoryRecords$ = RetrieveMemoryRecords$;
|
|
2285
2335
|
exports.RetrieveMemoryRecordsCommand = RetrieveMemoryRecordsCommand;
|
|
2286
2336
|
exports.RetrieveMemoryRecordsInput$ = RetrieveMemoryRecordsInput$;
|
|
2287
2337
|
exports.RetrieveMemoryRecordsOutput$ = RetrieveMemoryRecordsOutput$;
|
|
2338
|
+
exports.RetryableConflictException = RetryableConflictException;
|
|
2339
|
+
exports.RetryableConflictException$ = RetryableConflictException$;
|
|
2288
2340
|
exports.RightExpression$ = RightExpression$;
|
|
2289
2341
|
exports.Role = Role;
|
|
2290
2342
|
exports.RuntimeClientError = RuntimeClientError;
|
|
2291
2343
|
exports.RuntimeClientError$ = RuntimeClientError$;
|
|
2344
|
+
exports.S3Location$ = S3Location$;
|
|
2292
2345
|
exports.SearchCriteria$ = SearchCriteria$;
|
|
2293
2346
|
exports.ServiceException = ServiceException;
|
|
2294
2347
|
exports.ServiceException$ = ServiceException$;
|
package/dist-es/models/errors.js
CHANGED
|
@@ -159,3 +159,16 @@ export class InvalidInputException extends __BaseException {
|
|
|
159
159
|
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
export class RetryableConflictException extends __BaseException {
|
|
163
|
+
name = "RetryableConflictException";
|
|
164
|
+
$fault = "client";
|
|
165
|
+
$retryable = {};
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "RetryableConflictException",
|
|
169
|
+
$fault: "client",
|
|
170
|
+
...opts,
|
|
171
|
+
});
|
|
172
|
+
Object.setPrototypeOf(this, RetryableConflictException.prototype);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -14,6 +14,8 @@ const _BCMRO = "BatchCreateMemoryRecordsOutput";
|
|
|
14
14
|
const _BDMR = "BatchDeleteMemoryRecords";
|
|
15
15
|
const _BDMRI = "BatchDeleteMemoryRecordsInput";
|
|
16
16
|
const _BDMRO = "BatchDeleteMemoryRecordsOutput";
|
|
17
|
+
const _BE = "BrowserExtension";
|
|
18
|
+
const _BEr = "BrowserExtensions";
|
|
17
19
|
const _BF = "BranchFilter";
|
|
18
20
|
const _BSS = "BrowserSessionStream";
|
|
19
21
|
const _BSSr = "BrowserSessionSummary";
|
|
@@ -153,8 +155,10 @@ const _MV = "MetadataValue";
|
|
|
153
155
|
const _PT = "PayloadType";
|
|
154
156
|
const _PTL = "PayloadTypeList";
|
|
155
157
|
const _RC = "ResourceContent";
|
|
156
|
-
const _RCE = "
|
|
158
|
+
const _RCE = "RetryableConflictException";
|
|
159
|
+
const _RCEu = "RuntimeClientError";
|
|
157
160
|
const _RE = "RightExpression";
|
|
161
|
+
const _RL = "ResourceLocation";
|
|
158
162
|
const _RMR = "RetrieveMemoryRecords";
|
|
159
163
|
const _RMRI = "RetrieveMemoryRecordsInput";
|
|
160
164
|
const _RMRO = "RetrieveMemoryRecordsOutput";
|
|
@@ -176,6 +180,7 @@ const _SCISRtop = "StopCodeInterpreterSessionResponse";
|
|
|
176
180
|
const _SCISt = "StopCodeInterpreterSession";
|
|
177
181
|
const _SCp = "SpanContext";
|
|
178
182
|
const _SE = "ServiceException";
|
|
183
|
+
const _SL = "S3Location";
|
|
179
184
|
const _SMEJ = "StartMemoryExtractionJob";
|
|
180
185
|
const _SMEJI = "StartMemoryExtractionJobInput";
|
|
181
186
|
const _SMEJO = "StartMemoryExtractionJobOutput";
|
|
@@ -224,6 +229,7 @@ const _b = "branch";
|
|
|
224
229
|
const _bI = "browserIdentifier";
|
|
225
230
|
const _ba = "baggage";
|
|
226
231
|
const _bl = "blob";
|
|
232
|
+
const _bu = "bucket";
|
|
227
233
|
const _c = "client";
|
|
228
234
|
const _cA = "createdAt";
|
|
229
235
|
const _cC = "clearContext";
|
|
@@ -259,6 +265,7 @@ const _eTx = "executionTime";
|
|
|
259
265
|
const _ev = "event";
|
|
260
266
|
const _eve = "events";
|
|
261
267
|
const _ex = "explanation";
|
|
268
|
+
const _ext = "extensions";
|
|
262
269
|
const _f = "filter";
|
|
263
270
|
const _fA = "forceAuthentication";
|
|
264
271
|
const _fL = "fieldList";
|
|
@@ -279,10 +286,11 @@ const _iTn = "inputTokens";
|
|
|
279
286
|
const _j = "jobs";
|
|
280
287
|
const _jI = "jobId";
|
|
281
288
|
const _jID = "jobID";
|
|
282
|
-
const _l = "
|
|
289
|
+
const _l = "location";
|
|
283
290
|
const _lUA = "lastUpdatedAt";
|
|
284
291
|
const _lVS = "liveViewStream";
|
|
285
|
-
const _la = "
|
|
292
|
+
const _la = "label";
|
|
293
|
+
const _lan = "language";
|
|
286
294
|
const _le = "left";
|
|
287
295
|
const _m = "message";
|
|
288
296
|
const _mF = "metadataFilters";
|
|
@@ -311,6 +319,7 @@ const _oT = "outputTokens";
|
|
|
311
319
|
const _p = "payload";
|
|
312
320
|
const _pa = "path";
|
|
313
321
|
const _pat = "paths";
|
|
322
|
+
const _pr = "prefix";
|
|
314
323
|
const _q = "qualifier";
|
|
315
324
|
const _r = "records";
|
|
316
325
|
const _rCPN = "resourceCredentialProviderName";
|
|
@@ -348,6 +357,7 @@ const _sTS = "sessionTimeoutSeconds";
|
|
|
348
357
|
const _sU = "sessionUri";
|
|
349
358
|
const _sUt = "streamUpdate";
|
|
350
359
|
const _sV = "stringValue";
|
|
360
|
+
const _s_ = "s3";
|
|
351
361
|
const _sc = "scopes";
|
|
352
362
|
const _sco = "score";
|
|
353
363
|
const _se = "server";
|
|
@@ -381,6 +391,7 @@ const _uIs = "userId";
|
|
|
381
391
|
const _uT = "userToken";
|
|
382
392
|
const _v = "value";
|
|
383
393
|
const _vE = "validationException";
|
|
394
|
+
const _vI = "versionId";
|
|
384
395
|
const _vP = "viewPort";
|
|
385
396
|
const _w = "width";
|
|
386
397
|
const _wAT = "workloadAccessToken";
|
|
@@ -390,7 +401,7 @@ const _xacisi = "x-amzn-code-interpreter-session-id";
|
|
|
390
401
|
const n0 = "com.amazonaws.bedrockagentcore";
|
|
391
402
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
392
403
|
import { BedrockAgentCoreServiceException } from "../models/BedrockAgentCoreServiceException";
|
|
393
|
-
import { AccessDeniedException, ConflictException, DuplicateIdException, InternalServerException, InvalidInputException, ResourceNotFoundException, RuntimeClientError, ServiceException, ServiceQuotaExceededException, ThrottledException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/errors";
|
|
404
|
+
import { AccessDeniedException, ConflictException, DuplicateIdException, InternalServerException, InvalidInputException, ResourceNotFoundException, RetryableConflictException, RuntimeClientError, ServiceException, ServiceQuotaExceededException, ThrottledException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/errors";
|
|
394
405
|
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
395
406
|
var ApiKeyType = [0, n0, _AKT, 8, 0];
|
|
396
407
|
var AuthorizationUrlType = [0, n0, _AUT, 8, 0];
|
|
@@ -464,6 +475,11 @@ export var BranchFilter$ = [3, n0, _BF,
|
|
|
464
475
|
[_n, _iPB],
|
|
465
476
|
[0, 2], 1
|
|
466
477
|
];
|
|
478
|
+
export var BrowserExtension$ = [3, n0, _BE,
|
|
479
|
+
0,
|
|
480
|
+
[_l],
|
|
481
|
+
[() => ResourceLocation$], 1
|
|
482
|
+
];
|
|
467
483
|
export var BrowserSessionStream$ = [3, n0, _BSS,
|
|
468
484
|
0,
|
|
469
485
|
[_aS, _lVS],
|
|
@@ -558,7 +574,7 @@ export var EvaluateResponse$ = [3, n0, _ERv,
|
|
|
558
574
|
];
|
|
559
575
|
export var EvaluationResultContent$ = [3, n0, _ERC,
|
|
560
576
|
0,
|
|
561
|
-
[_eA, _eIv, _eN, _con, _ex, _v,
|
|
577
|
+
[_eA, _eIv, _eN, _con, _ex, _v, _la, _tU, _eM, _eC],
|
|
562
578
|
[0, 0, 0, () => Context$, [() => EvaluationExplanation, 0], 1, 0, () => TokenUsage$, 0, 0], 4
|
|
563
579
|
];
|
|
564
580
|
export var Event$ = [3, n0, _E,
|
|
@@ -608,8 +624,8 @@ export var GetBrowserSessionRequest$ = [3, n0, _GBSR,
|
|
|
608
624
|
];
|
|
609
625
|
export var GetBrowserSessionResponse$ = [3, n0, _GBSRe,
|
|
610
626
|
0,
|
|
611
|
-
[_bI, _sI, _cA, _n, _vP, _sTS, _sta, _str, _sRA, _lUA],
|
|
612
|
-
[0, 0, 5, 0, () => ViewPort$, 1, 0, () => BrowserSessionStream$, 0, 5], 3
|
|
627
|
+
[_bI, _sI, _cA, _n, _vP, _ext, _sTS, _sta, _str, _sRA, _lUA],
|
|
628
|
+
[0, 0, 5, 0, () => ViewPort$, () => BrowserExtensions, 1, 0, () => BrowserSessionStream$, 0, 5], 3
|
|
613
629
|
];
|
|
614
630
|
export var GetCodeInterpreterSessionRequest$ = [3, n0, _GCISR,
|
|
615
631
|
0,
|
|
@@ -864,12 +880,23 @@ export var RetrieveMemoryRecordsOutput$ = [3, n0, _RMRO,
|
|
|
864
880
|
[_mRS, _nT],
|
|
865
881
|
[[() => MemoryRecordSummaryList, 0], 0], 1
|
|
866
882
|
];
|
|
867
|
-
export var
|
|
883
|
+
export var RetryableConflictException$ = [-3, n0, _RCE,
|
|
884
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
885
|
+
[_m],
|
|
886
|
+
[0], 1
|
|
887
|
+
];
|
|
888
|
+
TypeRegistry.for(n0).registerError(RetryableConflictException$, RetryableConflictException);
|
|
889
|
+
export var RuntimeClientError$ = [-3, n0, _RCEu,
|
|
868
890
|
{ [_e]: _c, [_hE]: 424 },
|
|
869
891
|
[_m],
|
|
870
892
|
[0]
|
|
871
893
|
];
|
|
872
894
|
TypeRegistry.for(n0).registerError(RuntimeClientError$, RuntimeClientError);
|
|
895
|
+
export var S3Location$ = [3, n0, _SL,
|
|
896
|
+
0,
|
|
897
|
+
[_bu, _pr, _vI],
|
|
898
|
+
[0, 0, 0], 2
|
|
899
|
+
];
|
|
873
900
|
export var SearchCriteria$ = [3, n0, _SC,
|
|
874
901
|
0,
|
|
875
902
|
[_sQ, _mSIe, _tK, _mF],
|
|
@@ -899,8 +926,8 @@ export var SpanContext$ = [3, n0, _SCp,
|
|
|
899
926
|
];
|
|
900
927
|
export var StartBrowserSessionRequest$ = [3, n0, _SBSR,
|
|
901
928
|
0,
|
|
902
|
-
[_bI, _tI, _tP, _n, _sTS, _vP, _cT],
|
|
903
|
-
[[0, 1], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], 0, 1, () => ViewPort$, [0, 4]], 1
|
|
929
|
+
[_bI, _tI, _tP, _n, _sTS, _vP, _ext, _cT],
|
|
930
|
+
[[0, 1], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], 0, 1, () => ViewPort$, () => BrowserExtensions, [0, 4]], 1
|
|
904
931
|
];
|
|
905
932
|
export var StartBrowserSessionResponse$ = [3, n0, _SBSRt,
|
|
906
933
|
0,
|
|
@@ -976,7 +1003,7 @@ export var TokenUsage$ = [3, n0, _TU,
|
|
|
976
1003
|
];
|
|
977
1004
|
export var ToolArguments$ = [3, n0, _TA,
|
|
978
1005
|
0,
|
|
979
|
-
[_cod,
|
|
1006
|
+
[_cod, _lan, _cC, _com, _pa, _pat, _co, _dP, _tIa],
|
|
980
1007
|
[0, 0, 2, 0, 0, 64 | 0, [() => InputContentBlockList, 0], 0, 0]
|
|
981
1008
|
];
|
|
982
1009
|
export var ToolResultStructuredContent$ = [3, n0, _TRSC,
|
|
@@ -1021,6 +1048,9 @@ TypeRegistry.for(_sm).registerError(BedrockAgentCoreServiceException$, BedrockAg
|
|
|
1021
1048
|
var ActorSummaryList = [1, n0, _ASL,
|
|
1022
1049
|
0, () => ActorSummary$
|
|
1023
1050
|
];
|
|
1051
|
+
var BrowserExtensions = [1, n0, _BEr,
|
|
1052
|
+
0, () => BrowserExtension$
|
|
1053
|
+
];
|
|
1024
1054
|
var BrowserSessionSummaries = [1, n0, _BSSro,
|
|
1025
1055
|
0, () => BrowserSessionSummary$
|
|
1026
1056
|
];
|
|
@@ -1149,6 +1179,11 @@ export var PayloadType$ = [4, n0, _PT,
|
|
|
1149
1179
|
[_conv, _bl],
|
|
1150
1180
|
[[() => Conversational$, 0], [() => Document, 0]]
|
|
1151
1181
|
];
|
|
1182
|
+
export var ResourceLocation$ = [4, n0, _RL,
|
|
1183
|
+
0,
|
|
1184
|
+
[_s_],
|
|
1185
|
+
[() => S3Location$]
|
|
1186
|
+
];
|
|
1152
1187
|
export var RightExpression$ = [4, n0, _RE,
|
|
1153
1188
|
0,
|
|
1154
1189
|
[_mV],
|
|
@@ -112,6 +112,9 @@ declare const CreateEventCommand_base: {
|
|
|
112
112
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
113
113
|
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
114
114
|
*
|
|
115
|
+
* @throws {@link RetryableConflictException} (client fault)
|
|
116
|
+
* <p>The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
117
|
+
*
|
|
115
118
|
* @throws {@link ServiceException} (server fault)
|
|
116
119
|
* <p>The service encountered an internal error. Try your request again later.</p>
|
|
117
120
|
*
|
|
@@ -51,6 +51,17 @@ declare const GetBrowserSessionCommand_base: {
|
|
|
51
51
|
* // width: Number("int"), // required
|
|
52
52
|
* // height: Number("int"), // required
|
|
53
53
|
* // },
|
|
54
|
+
* // extensions: [ // BrowserExtensions
|
|
55
|
+
* // { // BrowserExtension
|
|
56
|
+
* // location: { // ResourceLocation Union: only one key present
|
|
57
|
+
* // s3: { // S3Location
|
|
58
|
+
* // bucket: "STRING_VALUE", // required
|
|
59
|
+
* // prefix: "STRING_VALUE", // required
|
|
60
|
+
* // versionId: "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // },
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
54
65
|
* // sessionTimeoutSeconds: Number("int"),
|
|
55
66
|
* // status: "READY" || "TERMINATED",
|
|
56
67
|
* // streams: { // BrowserSessionStream
|
|
@@ -46,6 +46,17 @@ declare const StartBrowserSessionCommand_base: {
|
|
|
46
46
|
* width: Number("int"), // required
|
|
47
47
|
* height: Number("int"), // required
|
|
48
48
|
* },
|
|
49
|
+
* extensions: [ // BrowserExtensions
|
|
50
|
+
* { // BrowserExtension
|
|
51
|
+
* location: { // ResourceLocation Union: only one key present
|
|
52
|
+
* s3: { // S3Location
|
|
53
|
+
* bucket: "STRING_VALUE", // required
|
|
54
|
+
* prefix: "STRING_VALUE", // required
|
|
55
|
+
* versionId: "STRING_VALUE",
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* ],
|
|
49
60
|
* clientToken: "STRING_VALUE",
|
|
50
61
|
* };
|
|
51
62
|
* const command = new StartBrowserSessionCommand(input);
|
|
@@ -160,3 +160,16 @@ export declare class InvalidInputException extends __BaseException {
|
|
|
160
160
|
*/
|
|
161
161
|
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
162
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* <p>The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
export declare class RetryableConflictException extends __BaseException {
|
|
168
|
+
readonly name: "RetryableConflictException";
|
|
169
|
+
readonly $fault: "client";
|
|
170
|
+
$retryable: {};
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
constructor(opts: __ExceptionOptionType<RetryableConflictException, __BaseException>);
|
|
175
|
+
}
|
|
@@ -253,6 +253,71 @@ export interface GetBrowserSessionRequest {
|
|
|
253
253
|
*/
|
|
254
254
|
sessionId: string | undefined;
|
|
255
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* <p>The Amazon S3 location configuration of a resource.</p>
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
export interface S3Location {
|
|
261
|
+
/**
|
|
262
|
+
* <p>The name of the Amazon S3 bucket where the resource is stored.</p>
|
|
263
|
+
* @public
|
|
264
|
+
*/
|
|
265
|
+
bucket: string | undefined;
|
|
266
|
+
/**
|
|
267
|
+
* <p>The name of the Amazon S3 prefix/key where the resource is stored.</p>
|
|
268
|
+
* @public
|
|
269
|
+
*/
|
|
270
|
+
prefix: string | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* <p>The name of the Amazon S3 version ID where the resource is stored (Optional).</p>
|
|
273
|
+
* @public
|
|
274
|
+
*/
|
|
275
|
+
versionId?: string | undefined;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* <p>The location of the browser extension.</p>
|
|
279
|
+
* @public
|
|
280
|
+
*/
|
|
281
|
+
export type ResourceLocation = ResourceLocation.S3Member | ResourceLocation.$UnknownMember;
|
|
282
|
+
/**
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
export declare namespace ResourceLocation {
|
|
286
|
+
/**
|
|
287
|
+
* <p>The Amazon S3 location of the resource. Use this when the resource is stored in an Amazon S3 bucket.</p>
|
|
288
|
+
* @public
|
|
289
|
+
*/
|
|
290
|
+
interface S3Member {
|
|
291
|
+
s3: S3Location;
|
|
292
|
+
$unknown?: never;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* @public
|
|
296
|
+
*/
|
|
297
|
+
interface $UnknownMember {
|
|
298
|
+
s3?: never;
|
|
299
|
+
$unknown: [string, any];
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* @deprecated unused in schema-serde mode.
|
|
303
|
+
*
|
|
304
|
+
*/
|
|
305
|
+
interface Visitor<T> {
|
|
306
|
+
s3: (value: S3Location) => T;
|
|
307
|
+
_: (name: string, value: any) => T;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* <p>Browser extension configuration.</p>
|
|
312
|
+
* @public
|
|
313
|
+
*/
|
|
314
|
+
export interface BrowserExtension {
|
|
315
|
+
/**
|
|
316
|
+
* <p>The location where the browser extension files are stored. This specifies the source from which the extension will be loaded and installed.</p>
|
|
317
|
+
* @public
|
|
318
|
+
*/
|
|
319
|
+
location: ResourceLocation | undefined;
|
|
320
|
+
}
|
|
256
321
|
/**
|
|
257
322
|
* <p>The configuration for a stream that enables programmatic control of a browser session in Amazon Bedrock. This stream provides a bidirectional communication channel for sending commands to the browser and receiving responses, allowing agents to automate web interactions such as navigation, form filling, and element clicking.</p>
|
|
258
323
|
* @public
|
|
@@ -341,6 +406,11 @@ export interface GetBrowserSessionResponse {
|
|
|
341
406
|
* @public
|
|
342
407
|
*/
|
|
343
408
|
viewPort?: ViewPort | undefined;
|
|
409
|
+
/**
|
|
410
|
+
* <p>The list of browser extensions that are configured in the browser session.</p>
|
|
411
|
+
* @public
|
|
412
|
+
*/
|
|
413
|
+
extensions?: BrowserExtension[] | undefined;
|
|
344
414
|
/**
|
|
345
415
|
* <p>The timeout period for the browser session in seconds.</p>
|
|
346
416
|
* @public
|
|
@@ -477,6 +547,11 @@ export interface StartBrowserSessionRequest {
|
|
|
477
547
|
* @public
|
|
478
548
|
*/
|
|
479
549
|
viewPort?: ViewPort | undefined;
|
|
550
|
+
/**
|
|
551
|
+
* <p>A list of browser extensions to load into the browser session.</p>
|
|
552
|
+
* @public
|
|
553
|
+
*/
|
|
554
|
+
extensions?: BrowserExtension[] | undefined;
|
|
480
555
|
/**
|
|
481
556
|
* <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. This parameter helps prevent the creation of duplicate sessions if there are temporary network issues.</p>
|
|
482
557
|
* @public
|
|
@@ -11,6 +11,7 @@ export declare var BatchUpdateMemoryRecordsInput$: StaticStructureSchema;
|
|
|
11
11
|
export declare var BatchUpdateMemoryRecordsOutput$: StaticStructureSchema;
|
|
12
12
|
export declare var Branch$: StaticStructureSchema;
|
|
13
13
|
export declare var BranchFilter$: StaticStructureSchema;
|
|
14
|
+
export declare var BrowserExtension$: StaticStructureSchema;
|
|
14
15
|
export declare var BrowserSessionStream$: StaticStructureSchema;
|
|
15
16
|
export declare var BrowserSessionSummary$: StaticStructureSchema;
|
|
16
17
|
export declare var CodeInterpreterResult$: StaticStructureSchema;
|
|
@@ -90,7 +91,9 @@ export declare var ResourceContent$: StaticStructureSchema;
|
|
|
90
91
|
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
91
92
|
export declare var RetrieveMemoryRecordsInput$: StaticStructureSchema;
|
|
92
93
|
export declare var RetrieveMemoryRecordsOutput$: StaticStructureSchema;
|
|
94
|
+
export declare var RetryableConflictException$: StaticErrorSchema;
|
|
93
95
|
export declare var RuntimeClientError$: StaticErrorSchema;
|
|
96
|
+
export declare var S3Location$: StaticStructureSchema;
|
|
94
97
|
export declare var SearchCriteria$: StaticStructureSchema;
|
|
95
98
|
export declare var ServiceException$: StaticErrorSchema;
|
|
96
99
|
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
@@ -130,6 +133,7 @@ export declare var LeftExpression$: StaticUnionSchema;
|
|
|
130
133
|
export declare var MemoryContent$: StaticUnionSchema;
|
|
131
134
|
export declare var MetadataValue$: StaticUnionSchema;
|
|
132
135
|
export declare var PayloadType$: StaticUnionSchema;
|
|
136
|
+
export declare var ResourceLocation$: StaticUnionSchema;
|
|
133
137
|
export declare var RightExpression$: StaticUnionSchema;
|
|
134
138
|
export declare var StreamUpdate$: StaticUnionSchema;
|
|
135
139
|
export declare var UserIdentifier$: StaticUnionSchema;
|
|
@@ -87,3 +87,11 @@ export declare class InvalidInputException extends __BaseException {
|
|
|
87
87
|
opts: __ExceptionOptionType<InvalidInputException, __BaseException>
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
|
+
export declare class RetryableConflictException extends __BaseException {
|
|
91
|
+
readonly name: "RetryableConflictException";
|
|
92
|
+
readonly $fault: "client";
|
|
93
|
+
$retryable: {};
|
|
94
|
+
constructor(
|
|
95
|
+
opts: __ExceptionOptionType<RetryableConflictException, __BaseException>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -86,6 +86,31 @@ export interface GetBrowserSessionRequest {
|
|
|
86
86
|
browserIdentifier: string | undefined;
|
|
87
87
|
sessionId: string | undefined;
|
|
88
88
|
}
|
|
89
|
+
export interface S3Location {
|
|
90
|
+
bucket: string | undefined;
|
|
91
|
+
prefix: string | undefined;
|
|
92
|
+
versionId?: string | undefined;
|
|
93
|
+
}
|
|
94
|
+
export type ResourceLocation =
|
|
95
|
+
| ResourceLocation.S3Member
|
|
96
|
+
| ResourceLocation.$UnknownMember;
|
|
97
|
+
export declare namespace ResourceLocation {
|
|
98
|
+
interface S3Member {
|
|
99
|
+
s3: S3Location;
|
|
100
|
+
$unknown?: never;
|
|
101
|
+
}
|
|
102
|
+
interface $UnknownMember {
|
|
103
|
+
s3?: never;
|
|
104
|
+
$unknown: [string, any];
|
|
105
|
+
}
|
|
106
|
+
interface Visitor<T> {
|
|
107
|
+
s3: (value: S3Location) => T;
|
|
108
|
+
_: (name: string, value: any) => T;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export interface BrowserExtension {
|
|
112
|
+
location: ResourceLocation | undefined;
|
|
113
|
+
}
|
|
89
114
|
export interface AutomationStream {
|
|
90
115
|
streamEndpoint: string | undefined;
|
|
91
116
|
streamStatus: AutomationStreamStatus | undefined;
|
|
@@ -107,6 +132,7 @@ export interface GetBrowserSessionResponse {
|
|
|
107
132
|
name?: string | undefined;
|
|
108
133
|
createdAt: Date | undefined;
|
|
109
134
|
viewPort?: ViewPort | undefined;
|
|
135
|
+
extensions?: BrowserExtension[] | undefined;
|
|
110
136
|
sessionTimeoutSeconds?: number | undefined;
|
|
111
137
|
status?: BrowserSessionStatus | undefined;
|
|
112
138
|
streams?: BrowserSessionStream | undefined;
|
|
@@ -138,6 +164,7 @@ export interface StartBrowserSessionRequest {
|
|
|
138
164
|
name?: string | undefined;
|
|
139
165
|
sessionTimeoutSeconds?: number | undefined;
|
|
140
166
|
viewPort?: ViewPort | undefined;
|
|
167
|
+
extensions?: BrowserExtension[] | undefined;
|
|
141
168
|
clientToken?: string | undefined;
|
|
142
169
|
}
|
|
143
170
|
export interface StartBrowserSessionResponse {
|
|
@@ -16,6 +16,7 @@ export declare var BatchUpdateMemoryRecordsInput$: StaticStructureSchema;
|
|
|
16
16
|
export declare var BatchUpdateMemoryRecordsOutput$: StaticStructureSchema;
|
|
17
17
|
export declare var Branch$: StaticStructureSchema;
|
|
18
18
|
export declare var BranchFilter$: StaticStructureSchema;
|
|
19
|
+
export declare var BrowserExtension$: StaticStructureSchema;
|
|
19
20
|
export declare var BrowserSessionStream$: StaticStructureSchema;
|
|
20
21
|
export declare var BrowserSessionSummary$: StaticStructureSchema;
|
|
21
22
|
export declare var CodeInterpreterResult$: StaticStructureSchema;
|
|
@@ -95,7 +96,9 @@ export declare var ResourceContent$: StaticStructureSchema;
|
|
|
95
96
|
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
96
97
|
export declare var RetrieveMemoryRecordsInput$: StaticStructureSchema;
|
|
97
98
|
export declare var RetrieveMemoryRecordsOutput$: StaticStructureSchema;
|
|
99
|
+
export declare var RetryableConflictException$: StaticErrorSchema;
|
|
98
100
|
export declare var RuntimeClientError$: StaticErrorSchema;
|
|
101
|
+
export declare var S3Location$: StaticStructureSchema;
|
|
99
102
|
export declare var SearchCriteria$: StaticStructureSchema;
|
|
100
103
|
export declare var ServiceException$: StaticErrorSchema;
|
|
101
104
|
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
@@ -135,6 +138,7 @@ export declare var LeftExpression$: StaticUnionSchema;
|
|
|
135
138
|
export declare var MemoryContent$: StaticUnionSchema;
|
|
136
139
|
export declare var MetadataValue$: StaticUnionSchema;
|
|
137
140
|
export declare var PayloadType$: StaticUnionSchema;
|
|
141
|
+
export declare var ResourceLocation$: StaticUnionSchema;
|
|
138
142
|
export declare var RightExpression$: StaticUnionSchema;
|
|
139
143
|
export declare var StreamUpdate$: StaticUnionSchema;
|
|
140
144
|
export declare var UserIdentifier$: StaticUnionSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agentcore",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.973.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agentcore",
|