@aws-sdk/client-bedrock-runtime 3.987.0 → 3.989.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 +29 -1843
- package/dist-cjs/models/BedrockRuntimeServiceException.js +12 -0
- package/dist-cjs/models/errors.js +169 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +1500 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +93 -87
- package/dist-types/schemas/schemas_0.d.ts +19 -12
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +14 -12
- package/package.json +15 -15
|
@@ -7,6 +7,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
7
7
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
8
8
|
import { defaultBedrockRuntimeHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
10
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
10
11
|
export const getRuntimeConfig = (config) => {
|
|
11
12
|
return {
|
|
12
13
|
apiVersion: "2023-09-30",
|
|
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
33
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
33
34
|
protocolSettings: config?.protocolSettings ?? {
|
|
34
35
|
defaultNamespace: "com.amazonaws.bedrockruntime",
|
|
36
|
+
errorTypeRegistries,
|
|
35
37
|
version: "2023-09-30",
|
|
36
38
|
serviceTarget: "AmazonBedrockFrontendService",
|
|
37
39
|
},
|
|
@@ -380,7 +380,7 @@ const _rN = "resourceName";
|
|
|
380
380
|
const _rT = "reasoningText";
|
|
381
381
|
const _re = "regexes";
|
|
382
382
|
const _ro = "role";
|
|
383
|
-
const _s = "
|
|
383
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime";
|
|
384
384
|
const _sB = "sortBy";
|
|
385
385
|
const _sC = "sourceContent";
|
|
386
386
|
const _sE = "statusEquals";
|
|
@@ -409,7 +409,7 @@ const _sc = "score";
|
|
|
409
409
|
const _sch = "schema";
|
|
410
410
|
const _se = "server";
|
|
411
411
|
const _si = "signature";
|
|
412
|
-
const
|
|
412
|
+
const _so = "source";
|
|
413
413
|
const _st = "status";
|
|
414
414
|
const _sta = "start";
|
|
415
415
|
const _stat = "statements";
|
|
@@ -463,18 +463,92 @@ const n0 = "com.amazonaws.bedrockruntime";
|
|
|
463
463
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
464
464
|
import { BedrockRuntimeServiceException } from "../models/BedrockRuntimeServiceException";
|
|
465
465
|
import { AccessDeniedException, ConflictException, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
466
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
467
|
+
export var BedrockRuntimeServiceException$ = [-3, _s, "BedrockRuntimeServiceException", 0, [], []];
|
|
468
|
+
_s_registry.registerError(BedrockRuntimeServiceException$, BedrockRuntimeServiceException);
|
|
469
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
470
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
471
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
472
|
+
[_m],
|
|
473
|
+
[0]
|
|
474
|
+
];
|
|
475
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
476
|
+
export var ConflictException$ = [-3, n0, _CE,
|
|
477
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
478
|
+
[_m],
|
|
479
|
+
[0]
|
|
480
|
+
];
|
|
481
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
482
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
483
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
484
|
+
[_m],
|
|
485
|
+
[0]
|
|
486
|
+
];
|
|
487
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
488
|
+
export var ModelErrorException$ = [-3, n0, _MEE,
|
|
489
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
490
|
+
[_m, _oSC, _rN],
|
|
491
|
+
[0, 1, 0]
|
|
492
|
+
];
|
|
493
|
+
n0_registry.registerError(ModelErrorException$, ModelErrorException);
|
|
494
|
+
export var ModelNotReadyException$ = [-3, n0, _MNRE,
|
|
495
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
496
|
+
[_m],
|
|
497
|
+
[0]
|
|
498
|
+
];
|
|
499
|
+
n0_registry.registerError(ModelNotReadyException$, ModelNotReadyException);
|
|
500
|
+
export var ModelStreamErrorException$ = [-3, n0, _MSEE,
|
|
501
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
502
|
+
[_m, _oSC, _oM],
|
|
503
|
+
[0, 1, 0]
|
|
504
|
+
];
|
|
505
|
+
n0_registry.registerError(ModelStreamErrorException$, ModelStreamErrorException);
|
|
506
|
+
export var ModelTimeoutException$ = [-3, n0, _MTE,
|
|
507
|
+
{ [_e]: _c, [_hE]: 408 },
|
|
508
|
+
[_m],
|
|
509
|
+
[0]
|
|
510
|
+
];
|
|
511
|
+
n0_registry.registerError(ModelTimeoutException$, ModelTimeoutException);
|
|
512
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
513
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
514
|
+
[_m],
|
|
515
|
+
[0]
|
|
516
|
+
];
|
|
517
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
518
|
+
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
519
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
520
|
+
[_m],
|
|
521
|
+
[0]
|
|
522
|
+
];
|
|
523
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
524
|
+
export var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
525
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
526
|
+
[_m],
|
|
527
|
+
[0]
|
|
528
|
+
];
|
|
529
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
530
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
531
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
532
|
+
[_m],
|
|
533
|
+
[0]
|
|
534
|
+
];
|
|
535
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
536
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
537
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
538
|
+
[_m],
|
|
539
|
+
[0]
|
|
540
|
+
];
|
|
541
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
542
|
+
export const errorTypeRegistries = [
|
|
543
|
+
_s_registry,
|
|
544
|
+
n0_registry,
|
|
545
|
+
];
|
|
466
546
|
var AsyncInvokeMessage = [0, n0, _AIM, 8, 0];
|
|
467
547
|
var Body = [0, n0, _B, 8, 21];
|
|
468
548
|
var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
|
|
469
549
|
var GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
|
|
470
550
|
var ModelInputPayload = [0, n0, _MIP, 8, 15];
|
|
471
551
|
var PartBody = [0, n0, _PB, 8, 21];
|
|
472
|
-
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
473
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
474
|
-
[_m],
|
|
475
|
-
[0]
|
|
476
|
-
];
|
|
477
|
-
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
478
552
|
export var AnyToolChoice$ = [3, n0, _ATC,
|
|
479
553
|
0,
|
|
480
554
|
[],
|
|
@@ -487,7 +561,7 @@ export var AppliedGuardrailDetails$ = [3, n0, _AGD,
|
|
|
487
561
|
];
|
|
488
562
|
export var ApplyGuardrailRequest$ = [3, n0, _AGR,
|
|
489
563
|
0,
|
|
490
|
-
[_gIu, _gV,
|
|
564
|
+
[_gIu, _gV, _so, _co, _oS],
|
|
491
565
|
[[0, 1], [0, 1], 0, [() => GuardrailContentBlockList, 0], 0], 4
|
|
492
566
|
];
|
|
493
567
|
export var ApplyGuardrailResponse$ = [3, n0, _AGRp,
|
|
@@ -507,7 +581,7 @@ export var AsyncInvokeSummary$ = [3, n0, _AIS,
|
|
|
507
581
|
];
|
|
508
582
|
export var AudioBlock$ = [3, n0, _AB,
|
|
509
583
|
0,
|
|
510
|
-
[_f,
|
|
584
|
+
[_f, _so, _e],
|
|
511
585
|
[0, [() => AudioSource$, 0], [() => ErrorBlock$, 0]], 2
|
|
512
586
|
];
|
|
513
587
|
export var AutoToolChoice$ = [3, n0, _ATCu,
|
|
@@ -537,7 +611,7 @@ export var CachePointBlock$ = [3, n0, _CPB,
|
|
|
537
611
|
];
|
|
538
612
|
export var Citation$ = [3, n0, _C,
|
|
539
613
|
0,
|
|
540
|
-
[_ti,
|
|
614
|
+
[_ti, _so, _sC, _l],
|
|
541
615
|
[0, 0, () => CitationSourceContentList, () => CitationLocation$]
|
|
542
616
|
];
|
|
543
617
|
export var CitationsConfig$ = [3, n0, _CC,
|
|
@@ -552,7 +626,7 @@ export var CitationsContentBlock$ = [3, n0, _CCB,
|
|
|
552
626
|
];
|
|
553
627
|
export var CitationsDelta$ = [3, n0, _CDi,
|
|
554
628
|
0,
|
|
555
|
-
[_ti,
|
|
629
|
+
[_ti, _so, _sC, _l],
|
|
556
630
|
[0, 0, () => CitationSourceContentListDelta, () => CitationLocation$]
|
|
557
631
|
];
|
|
558
632
|
export var CitationSourceContentDelta$ = [3, n0, _CSCD,
|
|
@@ -560,12 +634,6 @@ export var CitationSourceContentDelta$ = [3, n0, _CSCD,
|
|
|
560
634
|
[_te],
|
|
561
635
|
[0]
|
|
562
636
|
];
|
|
563
|
-
export var ConflictException$ = [-3, n0, _CE,
|
|
564
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
565
|
-
[_m],
|
|
566
|
-
[0]
|
|
567
|
-
];
|
|
568
|
-
TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
|
|
569
637
|
export var ContentBlockDeltaEvent$ = [3, n0, _CBDE,
|
|
570
638
|
0,
|
|
571
639
|
[_d, _cBI],
|
|
@@ -643,7 +711,7 @@ export var CountTokensResponse$ = [3, n0, _CTRou,
|
|
|
643
711
|
];
|
|
644
712
|
export var DocumentBlock$ = [3, n0, _DB,
|
|
645
713
|
0,
|
|
646
|
-
[_n,
|
|
714
|
+
[_n, _so, _f, _con, _ci],
|
|
647
715
|
[0, () => DocumentSource$, 0, 0, () => CitationsConfig$], 2
|
|
648
716
|
];
|
|
649
717
|
export var DocumentCharLocation$ = [3, n0, _DCL,
|
|
@@ -783,7 +851,7 @@ export var GuardrailContextualGroundingPolicyAssessment$ = [3, n0, _GCGPA,
|
|
|
783
851
|
];
|
|
784
852
|
export var GuardrailConverseImageBlock$ = [3, n0, _GCIB,
|
|
785
853
|
8,
|
|
786
|
-
[_f,
|
|
854
|
+
[_f, _so],
|
|
787
855
|
[0, [() => GuardrailConverseImageSource$, 0]], 2
|
|
788
856
|
];
|
|
789
857
|
export var GuardrailConverseTextBlock$ = [3, n0, _GCTB,
|
|
@@ -803,7 +871,7 @@ export var GuardrailCustomWord$ = [3, n0, _GCW,
|
|
|
803
871
|
];
|
|
804
872
|
export var GuardrailImageBlock$ = [3, n0, _GIB,
|
|
805
873
|
8,
|
|
806
|
-
[_f,
|
|
874
|
+
[_f, _so],
|
|
807
875
|
[0, [() => GuardrailImageSource$, 0]], 2
|
|
808
876
|
];
|
|
809
877
|
export var GuardrailImageCoverage$ = [3, n0, _GIC,
|
|
@@ -883,12 +951,12 @@ export var GuardrailWordPolicyAssessment$ = [3, n0, _GWPA,
|
|
|
883
951
|
];
|
|
884
952
|
export var ImageBlock$ = [3, n0, _IB,
|
|
885
953
|
0,
|
|
886
|
-
[_f,
|
|
954
|
+
[_f, _so, _e],
|
|
887
955
|
[0, [() => ImageSource$, 0], [() => ErrorBlock$, 0]], 2
|
|
888
956
|
];
|
|
889
957
|
export var ImageBlockDelta$ = [3, n0, _IBD,
|
|
890
958
|
0,
|
|
891
|
-
[
|
|
959
|
+
[_so, _e],
|
|
892
960
|
[[() => ImageSource$, 0], [() => ErrorBlock$, 0]]
|
|
893
961
|
];
|
|
894
962
|
export var ImageBlockStart$ = [3, n0, _IBS,
|
|
@@ -901,12 +969,6 @@ export var InferenceConfiguration$ = [3, n0, _IC,
|
|
|
901
969
|
[_mT, _tem, _tPo, _sS],
|
|
902
970
|
[1, 1, 1, 64 | 0]
|
|
903
971
|
];
|
|
904
|
-
export var InternalServerException$ = [-3, n0, _ISE,
|
|
905
|
-
{ [_e]: _se, [_hE]: 500 },
|
|
906
|
-
[_m],
|
|
907
|
-
[0]
|
|
908
|
-
];
|
|
909
|
-
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
910
972
|
export var InvokeModelRequest$ = [3, n0, _IMR,
|
|
911
973
|
0,
|
|
912
974
|
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
|
|
@@ -972,30 +1034,6 @@ export var MessageStopEvent$ = [3, n0, _MSEe,
|
|
|
972
1034
|
[_sR, _aMRFd],
|
|
973
1035
|
[0, 15], 1
|
|
974
1036
|
];
|
|
975
|
-
export var ModelErrorException$ = [-3, n0, _MEE,
|
|
976
|
-
{ [_e]: _c, [_hE]: 424 },
|
|
977
|
-
[_m, _oSC, _rN],
|
|
978
|
-
[0, 1, 0]
|
|
979
|
-
];
|
|
980
|
-
TypeRegistry.for(n0).registerError(ModelErrorException$, ModelErrorException);
|
|
981
|
-
export var ModelNotReadyException$ = [-3, n0, _MNRE,
|
|
982
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
983
|
-
[_m],
|
|
984
|
-
[0]
|
|
985
|
-
];
|
|
986
|
-
TypeRegistry.for(n0).registerError(ModelNotReadyException$, ModelNotReadyException);
|
|
987
|
-
export var ModelStreamErrorException$ = [-3, n0, _MSEE,
|
|
988
|
-
{ [_e]: _c, [_hE]: 424 },
|
|
989
|
-
[_m, _oSC, _oM],
|
|
990
|
-
[0, 1, 0]
|
|
991
|
-
];
|
|
992
|
-
TypeRegistry.for(n0).registerError(ModelStreamErrorException$, ModelStreamErrorException);
|
|
993
|
-
export var ModelTimeoutException$ = [-3, n0, _MTE,
|
|
994
|
-
{ [_e]: _c, [_hE]: 408 },
|
|
995
|
-
[_m],
|
|
996
|
-
[0]
|
|
997
|
-
];
|
|
998
|
-
TypeRegistry.for(n0).registerError(ModelTimeoutException$, ModelTimeoutException);
|
|
999
1037
|
export var OutputConfig$ = [3, n0, _OC,
|
|
1000
1038
|
0,
|
|
1001
1039
|
[_tF],
|
|
@@ -1026,12 +1064,6 @@ export var ReasoningTextBlock$ = [3, n0, _RTB,
|
|
|
1026
1064
|
[_te, _si],
|
|
1027
1065
|
[0, 0], 1
|
|
1028
1066
|
];
|
|
1029
|
-
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
1030
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
1031
|
-
[_m],
|
|
1032
|
-
[0]
|
|
1033
|
-
];
|
|
1034
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
1035
1067
|
export var S3Location$ = [3, n0, _SL,
|
|
1036
1068
|
0,
|
|
1037
1069
|
[_ur, _bO],
|
|
@@ -1039,7 +1071,7 @@ export var S3Location$ = [3, n0, _SL,
|
|
|
1039
1071
|
];
|
|
1040
1072
|
export var SearchResultBlock$ = [3, n0, _SRB,
|
|
1041
1073
|
0,
|
|
1042
|
-
[
|
|
1074
|
+
[_so, _ti, _co, _ci],
|
|
1043
1075
|
[0, 0, () => SearchResultContentBlocks, () => CitationsConfig$], 3
|
|
1044
1076
|
];
|
|
1045
1077
|
export var SearchResultContentBlock$ = [3, n0, _SRCB,
|
|
@@ -1052,23 +1084,11 @@ export var SearchResultLocation$ = [3, n0, _SRL,
|
|
|
1052
1084
|
[_sRI, _sta, _end],
|
|
1053
1085
|
[1, 1, 1]
|
|
1054
1086
|
];
|
|
1055
|
-
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
1056
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
1057
|
-
[_m],
|
|
1058
|
-
[0]
|
|
1059
|
-
];
|
|
1060
|
-
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
1061
1087
|
export var ServiceTier$ = [3, n0, _ST,
|
|
1062
1088
|
0,
|
|
1063
1089
|
[_ty],
|
|
1064
1090
|
[0], 1
|
|
1065
1091
|
];
|
|
1066
|
-
export var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
1067
|
-
{ [_e]: _se, [_hE]: 503 },
|
|
1068
|
-
[_m],
|
|
1069
|
-
[0]
|
|
1070
|
-
];
|
|
1071
|
-
TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
1072
1092
|
export var SpecificToolChoice$ = [3, n0, _STC,
|
|
1073
1093
|
0,
|
|
1074
1094
|
[_n],
|
|
@@ -1094,12 +1114,6 @@ export var Tag$ = [3, n0, _T,
|
|
|
1094
1114
|
[_k, _v],
|
|
1095
1115
|
[0, 0], 2
|
|
1096
1116
|
];
|
|
1097
|
-
export var ThrottlingException$ = [-3, n0, _TE,
|
|
1098
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
1099
|
-
[_m],
|
|
1100
|
-
[0]
|
|
1101
|
-
];
|
|
1102
|
-
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
1103
1117
|
export var TokenUsage$ = [3, n0, _TU,
|
|
1104
1118
|
0,
|
|
1105
1119
|
[_iT, _oT, _tT, _cRIT, _cWIT, _cD],
|
|
@@ -1140,15 +1154,9 @@ export var ToolUseBlockStart$ = [3, n0, _TUBS,
|
|
|
1140
1154
|
[_tUI, _n, _ty],
|
|
1141
1155
|
[0, 0, 0], 2
|
|
1142
1156
|
];
|
|
1143
|
-
export var ValidationException$ = [-3, n0, _VE,
|
|
1144
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
1145
|
-
[_m],
|
|
1146
|
-
[0]
|
|
1147
|
-
];
|
|
1148
|
-
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
1149
1157
|
export var VideoBlock$ = [3, n0, _VB,
|
|
1150
1158
|
0,
|
|
1151
|
-
[_f,
|
|
1159
|
+
[_f, _so],
|
|
1152
1160
|
[0, () => VideoSource$], 2
|
|
1153
1161
|
];
|
|
1154
1162
|
export var WebLocation$ = [3, n0, _WL,
|
|
@@ -1156,8 +1164,6 @@ export var WebLocation$ = [3, n0, _WL,
|
|
|
1156
1164
|
[_url, _do],
|
|
1157
1165
|
[0, 0]
|
|
1158
1166
|
];
|
|
1159
|
-
export var BedrockRuntimeServiceException$ = [-3, _sm, "BedrockRuntimeServiceException", 0, [], []];
|
|
1160
|
-
TypeRegistry.for(_sm).registerError(BedrockRuntimeServiceException$, BedrockRuntimeServiceException);
|
|
1161
1167
|
var AdditionalModelResponseFieldPaths = 64 | 0;
|
|
1162
1168
|
var AsyncInvokeSummaries = [1, n0, _AISs,
|
|
1163
1169
|
0, [() => AsyncInvokeSummary$,
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
|
|
3
|
+
export declare var BedrockRuntimeServiceException$: StaticErrorSchema;
|
|
2
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
|
+
export declare var ConflictException$: StaticErrorSchema;
|
|
6
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
7
|
+
export declare var ModelErrorException$: StaticErrorSchema;
|
|
8
|
+
export declare var ModelNotReadyException$: StaticErrorSchema;
|
|
9
|
+
export declare var ModelStreamErrorException$: StaticErrorSchema;
|
|
10
|
+
export declare var ModelTimeoutException$: StaticErrorSchema;
|
|
11
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
12
|
+
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
13
|
+
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
14
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
15
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
16
|
+
/**
|
|
17
|
+
* TypeRegistry instances containing modeled errors.
|
|
18
|
+
* @internal
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
3
22
|
export declare var AnyToolChoice$: StaticStructureSchema;
|
|
4
23
|
export declare var AppliedGuardrailDetails$: StaticStructureSchema;
|
|
5
24
|
export declare var ApplyGuardrailRequest$: StaticStructureSchema;
|
|
@@ -17,7 +36,6 @@ export declare var CitationsConfig$: StaticStructureSchema;
|
|
|
17
36
|
export declare var CitationsContentBlock$: StaticStructureSchema;
|
|
18
37
|
export declare var CitationsDelta$: StaticStructureSchema;
|
|
19
38
|
export declare var CitationSourceContentDelta$: StaticStructureSchema;
|
|
20
|
-
export declare var ConflictException$: StaticErrorSchema;
|
|
21
39
|
export declare var ContentBlockDeltaEvent$: StaticStructureSchema;
|
|
22
40
|
export declare var ContentBlockStartEvent$: StaticStructureSchema;
|
|
23
41
|
export declare var ContentBlockStopEvent$: StaticStructureSchema;
|
|
@@ -85,7 +103,6 @@ export declare var ImageBlock$: StaticStructureSchema;
|
|
|
85
103
|
export declare var ImageBlockDelta$: StaticStructureSchema;
|
|
86
104
|
export declare var ImageBlockStart$: StaticStructureSchema;
|
|
87
105
|
export declare var InferenceConfiguration$: StaticStructureSchema;
|
|
88
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
89
106
|
export declare var InvokeModelRequest$: StaticStructureSchema;
|
|
90
107
|
export declare var InvokeModelResponse$: StaticStructureSchema;
|
|
91
108
|
export declare var InvokeModelTokensRequest$: StaticStructureSchema;
|
|
@@ -99,30 +116,22 @@ export declare var ListAsyncInvokesResponse$: StaticStructureSchema;
|
|
|
99
116
|
export declare var Message$: StaticStructureSchema;
|
|
100
117
|
export declare var MessageStartEvent$: StaticStructureSchema;
|
|
101
118
|
export declare var MessageStopEvent$: StaticStructureSchema;
|
|
102
|
-
export declare var ModelErrorException$: StaticErrorSchema;
|
|
103
|
-
export declare var ModelNotReadyException$: StaticErrorSchema;
|
|
104
|
-
export declare var ModelStreamErrorException$: StaticErrorSchema;
|
|
105
|
-
export declare var ModelTimeoutException$: StaticErrorSchema;
|
|
106
119
|
export declare var OutputConfig$: StaticStructureSchema;
|
|
107
120
|
export declare var OutputFormat$: StaticStructureSchema;
|
|
108
121
|
export declare var PayloadPart$: StaticStructureSchema;
|
|
109
122
|
export declare var PerformanceConfiguration$: StaticStructureSchema;
|
|
110
123
|
export declare var PromptRouterTrace$: StaticStructureSchema;
|
|
111
124
|
export declare var ReasoningTextBlock$: StaticStructureSchema;
|
|
112
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
113
125
|
export declare var S3Location$: StaticStructureSchema;
|
|
114
126
|
export declare var SearchResultBlock$: StaticStructureSchema;
|
|
115
127
|
export declare var SearchResultContentBlock$: StaticStructureSchema;
|
|
116
128
|
export declare var SearchResultLocation$: StaticStructureSchema;
|
|
117
|
-
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
118
129
|
export declare var ServiceTier$: StaticStructureSchema;
|
|
119
|
-
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
120
130
|
export declare var SpecificToolChoice$: StaticStructureSchema;
|
|
121
131
|
export declare var StartAsyncInvokeRequest$: StaticStructureSchema;
|
|
122
132
|
export declare var StartAsyncInvokeResponse$: StaticStructureSchema;
|
|
123
133
|
export declare var SystemTool$: StaticStructureSchema;
|
|
124
134
|
export declare var Tag$: StaticStructureSchema;
|
|
125
|
-
export declare var ThrottlingException$: StaticErrorSchema;
|
|
126
135
|
export declare var TokenUsage$: StaticStructureSchema;
|
|
127
136
|
export declare var ToolConfiguration$: StaticStructureSchema;
|
|
128
137
|
export declare var ToolResultBlock$: StaticStructureSchema;
|
|
@@ -131,10 +140,8 @@ export declare var ToolSpecification$: StaticStructureSchema;
|
|
|
131
140
|
export declare var ToolUseBlock$: StaticStructureSchema;
|
|
132
141
|
export declare var ToolUseBlockDelta$: StaticStructureSchema;
|
|
133
142
|
export declare var ToolUseBlockStart$: StaticStructureSchema;
|
|
134
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
135
143
|
export declare var VideoBlock$: StaticStructureSchema;
|
|
136
144
|
export declare var WebLocation$: StaticStructureSchema;
|
|
137
|
-
export declare var BedrockRuntimeServiceException$: StaticErrorSchema;
|
|
138
145
|
export declare var AsyncInvokeOutputDataConfig$: StaticUnionSchema;
|
|
139
146
|
export declare var AudioSource$: StaticUnionSchema;
|
|
140
147
|
export declare var CitationGeneratedContent$: StaticUnionSchema;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
StaticUnionSchema,
|
|
6
7
|
} from "@smithy/types";
|
|
8
|
+
export declare var BedrockRuntimeServiceException$: StaticErrorSchema;
|
|
7
9
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
10
|
+
export declare var ConflictException$: StaticErrorSchema;
|
|
11
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
12
|
+
export declare var ModelErrorException$: StaticErrorSchema;
|
|
13
|
+
export declare var ModelNotReadyException$: StaticErrorSchema;
|
|
14
|
+
export declare var ModelStreamErrorException$: StaticErrorSchema;
|
|
15
|
+
export declare var ModelTimeoutException$: StaticErrorSchema;
|
|
16
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
17
|
+
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
18
|
+
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
19
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
20
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
21
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
8
22
|
export declare var AnyToolChoice$: StaticStructureSchema;
|
|
9
23
|
export declare var AppliedGuardrailDetails$: StaticStructureSchema;
|
|
10
24
|
export declare var ApplyGuardrailRequest$: StaticStructureSchema;
|
|
@@ -22,7 +36,6 @@ export declare var CitationsConfig$: StaticStructureSchema;
|
|
|
22
36
|
export declare var CitationsContentBlock$: StaticStructureSchema;
|
|
23
37
|
export declare var CitationsDelta$: StaticStructureSchema;
|
|
24
38
|
export declare var CitationSourceContentDelta$: StaticStructureSchema;
|
|
25
|
-
export declare var ConflictException$: StaticErrorSchema;
|
|
26
39
|
export declare var ContentBlockDeltaEvent$: StaticStructureSchema;
|
|
27
40
|
export declare var ContentBlockStartEvent$: StaticStructureSchema;
|
|
28
41
|
export declare var ContentBlockStopEvent$: StaticStructureSchema;
|
|
@@ -90,7 +103,6 @@ export declare var ImageBlock$: StaticStructureSchema;
|
|
|
90
103
|
export declare var ImageBlockDelta$: StaticStructureSchema;
|
|
91
104
|
export declare var ImageBlockStart$: StaticStructureSchema;
|
|
92
105
|
export declare var InferenceConfiguration$: StaticStructureSchema;
|
|
93
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
94
106
|
export declare var InvokeModelRequest$: StaticStructureSchema;
|
|
95
107
|
export declare var InvokeModelResponse$: StaticStructureSchema;
|
|
96
108
|
export declare var InvokeModelTokensRequest$: StaticStructureSchema;
|
|
@@ -104,30 +116,22 @@ export declare var ListAsyncInvokesResponse$: StaticStructureSchema;
|
|
|
104
116
|
export declare var Message$: StaticStructureSchema;
|
|
105
117
|
export declare var MessageStartEvent$: StaticStructureSchema;
|
|
106
118
|
export declare var MessageStopEvent$: StaticStructureSchema;
|
|
107
|
-
export declare var ModelErrorException$: StaticErrorSchema;
|
|
108
|
-
export declare var ModelNotReadyException$: StaticErrorSchema;
|
|
109
|
-
export declare var ModelStreamErrorException$: StaticErrorSchema;
|
|
110
|
-
export declare var ModelTimeoutException$: StaticErrorSchema;
|
|
111
119
|
export declare var OutputConfig$: StaticStructureSchema;
|
|
112
120
|
export declare var OutputFormat$: StaticStructureSchema;
|
|
113
121
|
export declare var PayloadPart$: StaticStructureSchema;
|
|
114
122
|
export declare var PerformanceConfiguration$: StaticStructureSchema;
|
|
115
123
|
export declare var PromptRouterTrace$: StaticStructureSchema;
|
|
116
124
|
export declare var ReasoningTextBlock$: StaticStructureSchema;
|
|
117
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
118
125
|
export declare var S3Location$: StaticStructureSchema;
|
|
119
126
|
export declare var SearchResultBlock$: StaticStructureSchema;
|
|
120
127
|
export declare var SearchResultContentBlock$: StaticStructureSchema;
|
|
121
128
|
export declare var SearchResultLocation$: StaticStructureSchema;
|
|
122
|
-
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
123
129
|
export declare var ServiceTier$: StaticStructureSchema;
|
|
124
|
-
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
125
130
|
export declare var SpecificToolChoice$: StaticStructureSchema;
|
|
126
131
|
export declare var StartAsyncInvokeRequest$: StaticStructureSchema;
|
|
127
132
|
export declare var StartAsyncInvokeResponse$: StaticStructureSchema;
|
|
128
133
|
export declare var SystemTool$: StaticStructureSchema;
|
|
129
134
|
export declare var Tag$: StaticStructureSchema;
|
|
130
|
-
export declare var ThrottlingException$: StaticErrorSchema;
|
|
131
135
|
export declare var TokenUsage$: StaticStructureSchema;
|
|
132
136
|
export declare var ToolConfiguration$: StaticStructureSchema;
|
|
133
137
|
export declare var ToolResultBlock$: StaticStructureSchema;
|
|
@@ -136,10 +140,8 @@ export declare var ToolSpecification$: StaticStructureSchema;
|
|
|
136
140
|
export declare var ToolUseBlock$: StaticStructureSchema;
|
|
137
141
|
export declare var ToolUseBlockDelta$: StaticStructureSchema;
|
|
138
142
|
export declare var ToolUseBlockStart$: StaticStructureSchema;
|
|
139
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
140
143
|
export declare var VideoBlock$: StaticStructureSchema;
|
|
141
144
|
export declare var WebLocation$: StaticStructureSchema;
|
|
142
|
-
export declare var BedrockRuntimeServiceException$: StaticErrorSchema;
|
|
143
145
|
export declare var AsyncInvokeOutputDataConfig$: StaticUnionSchema;
|
|
144
146
|
export declare var AudioSource$: StaticUnionSchema;
|
|
145
147
|
export declare var CitationGeneratedContent$: StaticUnionSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.989.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-runtime",
|
|
@@ -21,23 +21,23 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.9",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.8",
|
|
26
26
|
"@aws-sdk/eventstream-handler-node": "^3.972.5",
|
|
27
27
|
"@aws-sdk/middleware-eventstream": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.9",
|
|
32
32
|
"@aws-sdk/middleware-websocket": "^3.972.6",
|
|
33
33
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
34
|
-
"@aws-sdk/token-providers": "3.
|
|
34
|
+
"@aws-sdk/token-providers": "3.989.0",
|
|
35
35
|
"@aws-sdk/types": "^3.973.1",
|
|
36
|
-
"@aws-sdk/util-endpoints": "3.
|
|
36
|
+
"@aws-sdk/util-endpoints": "3.989.0",
|
|
37
37
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
38
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
38
|
+
"@aws-sdk/util-user-agent-node": "^3.972.7",
|
|
39
39
|
"@smithy/config-resolver": "^4.4.6",
|
|
40
|
-
"@smithy/core": "^3.
|
|
40
|
+
"@smithy/core": "^3.23.0",
|
|
41
41
|
"@smithy/eventstream-serde-browser": "^4.2.8",
|
|
42
42
|
"@smithy/eventstream-serde-config-resolver": "^4.3.8",
|
|
43
43
|
"@smithy/eventstream-serde-node": "^4.2.8",
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
"@smithy/hash-node": "^4.2.8",
|
|
46
46
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
47
47
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
48
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
49
|
-
"@smithy/middleware-retry": "^4.4.
|
|
48
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
49
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
50
50
|
"@smithy/middleware-serde": "^4.2.9",
|
|
51
51
|
"@smithy/middleware-stack": "^4.2.8",
|
|
52
52
|
"@smithy/node-config-provider": "^4.3.8",
|
|
53
|
-
"@smithy/node-http-handler": "^4.4.
|
|
53
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
54
54
|
"@smithy/protocol-http": "^5.3.8",
|
|
55
|
-
"@smithy/smithy-client": "^4.11.
|
|
55
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
56
56
|
"@smithy/types": "^4.12.0",
|
|
57
57
|
"@smithy/url-parser": "^4.2.8",
|
|
58
58
|
"@smithy/util-base64": "^4.3.0",
|
|
59
59
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
60
60
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
61
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
62
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
61
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
62
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
63
63
|
"@smithy/util-endpoints": "^3.2.8",
|
|
64
64
|
"@smithy/util-middleware": "^4.2.8",
|
|
65
65
|
"@smithy/util-retry": "^4.2.8",
|
|
66
|
-
"@smithy/util-stream": "^4.5.
|
|
66
|
+
"@smithy/util-stream": "^4.5.12",
|
|
67
67
|
"@smithy/util-utf8": "^4.2.0",
|
|
68
68
|
"tslib": "^2.6.2"
|
|
69
69
|
},
|