@aws-sdk/client-bedrock-runtime 3.928.0 → 3.929.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.
Files changed (34) hide show
  1. package/dist-cjs/index.js +1760 -2169
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/BedrockRuntimeClient.js +2 -0
  4. package/dist-es/commands/ApplyGuardrailCommand.js +3 -10
  5. package/dist-es/commands/ConverseCommand.js +3 -10
  6. package/dist-es/commands/ConverseStreamCommand.js +3 -10
  7. package/dist-es/commands/CountTokensCommand.js +3 -10
  8. package/dist-es/commands/GetAsyncInvokeCommand.js +3 -10
  9. package/dist-es/commands/InvokeModelCommand.js +3 -10
  10. package/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -7
  11. package/dist-es/commands/InvokeModelWithResponseStreamCommand.js +3 -10
  12. package/dist-es/commands/ListAsyncInvokesCommand.js +3 -10
  13. package/dist-es/commands/StartAsyncInvokeCommand.js +3 -10
  14. package/dist-es/models/models_0.js +0 -430
  15. package/dist-es/runtimeConfig.shared.js +2 -0
  16. package/dist-es/schemas/schemas_0.js +1720 -0
  17. package/dist-types/BedrockRuntimeClient.d.ts +10 -1
  18. package/dist-types/models/models_0.d.ts +0 -240
  19. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  20. package/dist-types/runtimeConfig.d.ts +1 -0
  21. package/dist-types/runtimeConfig.native.d.ts +1 -0
  22. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  23. package/dist-types/schemas/schemas_0.d.ts +211 -0
  24. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +4 -0
  25. package/dist-types/ts3.4/models/models_0.d.ts +0 -174
  26. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  30. package/dist-types/ts3.4/schemas/schemas_0.d.ts +218 -0
  31. package/package.json +3 -4
  32. package/dist-es/protocols/Aws_restJson1.js +0 -1589
  33. package/dist-types/protocols/Aws_restJson1.d.ts +0 -92
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -128
package/dist-cjs/index.js CHANGED
@@ -8,6 +8,7 @@ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
8
8
  var middlewareWebsocket = require('@aws-sdk/middleware-websocket');
9
9
  var configResolver = require('@smithy/config-resolver');
10
10
  var core = require('@smithy/core');
11
+ var schema = require('@smithy/core/schema');
11
12
  var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
12
13
  var middlewareContentLength = require('@smithy/middleware-content-length');
13
14
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
@@ -17,9 +18,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
17
18
  var runtimeConfig = require('./runtimeConfig');
18
19
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
19
20
  var protocolHttp = require('@smithy/protocol-http');
20
- var middlewareSerde = require('@smithy/middleware-serde');
21
- var core$1 = require('@aws-sdk/core');
22
- var uuid = require('@smithy/uuid');
23
21
 
24
22
  const resolveClientEndpointParameters = (options) => {
25
23
  return Object.assign(options, {
@@ -106,6 +104,7 @@ class BedrockRuntimeClient extends smithyClient.Client {
106
104
  const _config_10 = middlewareWebsocket.resolveWebSocketConfig(_config_9);
107
105
  const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
108
106
  this.config = _config_11;
107
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
109
108
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
110
109
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
111
110
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -126,14 +125,14 @@ class BedrockRuntimeClient extends smithyClient.Client {
126
125
  }
127
126
  }
128
127
 
129
- class BedrockRuntimeServiceException extends smithyClient.ServiceException {
128
+ let BedrockRuntimeServiceException$1 = class BedrockRuntimeServiceException extends smithyClient.ServiceException {
130
129
  constructor(options) {
131
130
  super(options);
132
131
  Object.setPrototypeOf(this, BedrockRuntimeServiceException.prototype);
133
132
  }
134
- }
133
+ };
135
134
 
136
- class AccessDeniedException extends BedrockRuntimeServiceException {
135
+ let AccessDeniedException$1 = class AccessDeniedException extends BedrockRuntimeServiceException$1 {
137
136
  name = "AccessDeniedException";
138
137
  $fault = "client";
139
138
  constructor(opts) {
@@ -144,7 +143,7 @@ class AccessDeniedException extends BedrockRuntimeServiceException {
144
143
  });
145
144
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
146
145
  }
147
- }
146
+ };
148
147
  exports.AsyncInvokeOutputDataConfig = void 0;
149
148
  (function (AsyncInvokeOutputDataConfig) {
150
149
  AsyncInvokeOutputDataConfig.visit = (value, visitor) => {
@@ -158,7 +157,7 @@ const AsyncInvokeStatus = {
158
157
  FAILED: "Failed",
159
158
  IN_PROGRESS: "InProgress",
160
159
  };
161
- class InternalServerException extends BedrockRuntimeServiceException {
160
+ let InternalServerException$1 = class InternalServerException extends BedrockRuntimeServiceException$1 {
162
161
  name = "InternalServerException";
163
162
  $fault = "server";
164
163
  constructor(opts) {
@@ -169,8 +168,8 @@ class InternalServerException extends BedrockRuntimeServiceException {
169
168
  });
170
169
  Object.setPrototypeOf(this, InternalServerException.prototype);
171
170
  }
172
- }
173
- class ThrottlingException extends BedrockRuntimeServiceException {
171
+ };
172
+ let ThrottlingException$1 = class ThrottlingException extends BedrockRuntimeServiceException$1 {
174
173
  name = "ThrottlingException";
175
174
  $fault = "client";
176
175
  constructor(opts) {
@@ -181,8 +180,8 @@ class ThrottlingException extends BedrockRuntimeServiceException {
181
180
  });
182
181
  Object.setPrototypeOf(this, ThrottlingException.prototype);
183
182
  }
184
- }
185
- class ValidationException extends BedrockRuntimeServiceException {
183
+ };
184
+ let ValidationException$1 = class ValidationException extends BedrockRuntimeServiceException$1 {
186
185
  name = "ValidationException";
187
186
  $fault = "client";
188
187
  constructor(opts) {
@@ -193,7 +192,7 @@ class ValidationException extends BedrockRuntimeServiceException {
193
192
  });
194
193
  Object.setPrototypeOf(this, ValidationException.prototype);
195
194
  }
196
- }
195
+ };
197
196
  const SortAsyncInvocationBy = {
198
197
  SUBMISSION_TIME: "SubmissionTime",
199
198
  };
@@ -201,7 +200,7 @@ const SortOrder = {
201
200
  ASCENDING: "Ascending",
202
201
  DESCENDING: "Descending",
203
202
  };
204
- class ConflictException extends BedrockRuntimeServiceException {
203
+ let ConflictException$1 = class ConflictException extends BedrockRuntimeServiceException$1 {
205
204
  name = "ConflictException";
206
205
  $fault = "client";
207
206
  constructor(opts) {
@@ -212,8 +211,8 @@ class ConflictException extends BedrockRuntimeServiceException {
212
211
  });
213
212
  Object.setPrototypeOf(this, ConflictException.prototype);
214
213
  }
215
- }
216
- class ResourceNotFoundException extends BedrockRuntimeServiceException {
214
+ };
215
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends BedrockRuntimeServiceException$1 {
217
216
  name = "ResourceNotFoundException";
218
217
  $fault = "client";
219
218
  constructor(opts) {
@@ -224,8 +223,8 @@ class ResourceNotFoundException extends BedrockRuntimeServiceException {
224
223
  });
225
224
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
226
225
  }
227
- }
228
- class ServiceQuotaExceededException extends BedrockRuntimeServiceException {
226
+ };
227
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends BedrockRuntimeServiceException$1 {
229
228
  name = "ServiceQuotaExceededException";
230
229
  $fault = "client";
231
230
  constructor(opts) {
@@ -236,8 +235,8 @@ class ServiceQuotaExceededException extends BedrockRuntimeServiceException {
236
235
  });
237
236
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
238
237
  }
239
- }
240
- class ServiceUnavailableException extends BedrockRuntimeServiceException {
238
+ };
239
+ let ServiceUnavailableException$1 = class ServiceUnavailableException extends BedrockRuntimeServiceException$1 {
241
240
  name = "ServiceUnavailableException";
242
241
  $fault = "server";
243
242
  constructor(opts) {
@@ -248,7 +247,7 @@ class ServiceUnavailableException extends BedrockRuntimeServiceException {
248
247
  });
249
248
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
250
249
  }
251
- }
250
+ };
252
251
  const GuardrailImageFormat = {
253
252
  JPEG: "jpeg",
254
253
  PNG: "png",
@@ -667,7 +666,7 @@ const StopReason = {
667
666
  STOP_SEQUENCE: "stop_sequence",
668
667
  TOOL_USE: "tool_use",
669
668
  };
670
- class ModelErrorException extends BedrockRuntimeServiceException {
669
+ let ModelErrorException$1 = class ModelErrorException extends BedrockRuntimeServiceException$1 {
671
670
  name = "ModelErrorException";
672
671
  $fault = "client";
673
672
  originalStatusCode;
@@ -682,8 +681,8 @@ class ModelErrorException extends BedrockRuntimeServiceException {
682
681
  this.originalStatusCode = opts.originalStatusCode;
683
682
  this.resourceName = opts.resourceName;
684
683
  }
685
- }
686
- class ModelNotReadyException extends BedrockRuntimeServiceException {
684
+ };
685
+ let ModelNotReadyException$1 = class ModelNotReadyException extends BedrockRuntimeServiceException$1 {
687
686
  name = "ModelNotReadyException";
688
687
  $fault = "client";
689
688
  $retryable = {};
@@ -695,8 +694,8 @@ class ModelNotReadyException extends BedrockRuntimeServiceException {
695
694
  });
696
695
  Object.setPrototypeOf(this, ModelNotReadyException.prototype);
697
696
  }
698
- }
699
- class ModelTimeoutException extends BedrockRuntimeServiceException {
697
+ };
698
+ let ModelTimeoutException$1 = class ModelTimeoutException extends BedrockRuntimeServiceException$1 {
700
699
  name = "ModelTimeoutException";
701
700
  $fault = "client";
702
701
  constructor(opts) {
@@ -707,7 +706,7 @@ class ModelTimeoutException extends BedrockRuntimeServiceException {
707
706
  });
708
707
  Object.setPrototypeOf(this, ModelTimeoutException.prototype);
709
708
  }
710
- }
709
+ };
711
710
  const GuardrailStreamProcessingMode = {
712
711
  ASYNC: "async",
713
712
  SYNC: "sync",
@@ -758,7 +757,7 @@ exports.ContentBlockStart = void 0;
758
757
  return visitor._(value.$unknown[0], value.$unknown[1]);
759
758
  };
760
759
  })(exports.ContentBlockStart || (exports.ContentBlockStart = {}));
761
- class ModelStreamErrorException extends BedrockRuntimeServiceException {
760
+ let ModelStreamErrorException$1 = class ModelStreamErrorException extends BedrockRuntimeServiceException$1 {
762
761
  name = "ModelStreamErrorException";
763
762
  $fault = "client";
764
763
  originalStatusCode;
@@ -773,7 +772,7 @@ class ModelStreamErrorException extends BedrockRuntimeServiceException {
773
772
  this.originalStatusCode = opts.originalStatusCode;
774
773
  this.originalMessage = opts.originalMessage;
775
774
  }
776
- }
775
+ };
777
776
  exports.ConverseStreamOutput = void 0;
778
777
  (function (ConverseStreamOutput) {
779
778
  ConverseStreamOutput.visit = (value, visitor) => {
@@ -865,2033 +864,1728 @@ exports.CountTokensInput = void 0;
865
864
  return visitor._(value.$unknown[0], value.$unknown[1]);
866
865
  };
867
866
  })(exports.CountTokensInput || (exports.CountTokensInput = {}));
868
- const GetAsyncInvokeResponseFilterSensitiveLog = (obj) => ({
869
- ...obj,
870
- ...(obj.failureMessage && { failureMessage: smithyClient.SENSITIVE_STRING }),
871
- ...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
872
- });
873
- const AsyncInvokeSummaryFilterSensitiveLog = (obj) => ({
874
- ...obj,
875
- ...(obj.failureMessage && { failureMessage: smithyClient.SENSITIVE_STRING }),
876
- ...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
877
- });
878
- const ListAsyncInvokesResponseFilterSensitiveLog = (obj) => ({
879
- ...obj,
880
- ...(obj.asyncInvokeSummaries && {
881
- asyncInvokeSummaries: obj.asyncInvokeSummaries.map((item) => AsyncInvokeSummaryFilterSensitiveLog(item)),
882
- }),
883
- });
884
- const StartAsyncInvokeRequestFilterSensitiveLog = (obj) => ({
885
- ...obj,
886
- ...(obj.modelInput && { modelInput: smithyClient.SENSITIVE_STRING }),
887
- ...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
888
- });
889
- const GuardrailImageSourceFilterSensitiveLog = (obj) => {
890
- if (obj.bytes !== undefined)
891
- return { bytes: obj.bytes };
892
- if (obj.$unknown !== undefined)
893
- return { [obj.$unknown[0]]: "UNKNOWN" };
894
- };
895
- const GuardrailImageBlockFilterSensitiveLog = (obj) => ({
896
- ...obj,
897
- ...(obj.source && { source: smithyClient.SENSITIVE_STRING }),
898
- });
899
- const GuardrailContentBlockFilterSensitiveLog = (obj) => {
900
- if (obj.text !== undefined)
901
- return { text: obj.text };
902
- if (obj.image !== undefined)
903
- return { image: smithyClient.SENSITIVE_STRING };
904
- if (obj.$unknown !== undefined)
905
- return { [obj.$unknown[0]]: "UNKNOWN" };
906
- };
907
- const ApplyGuardrailRequestFilterSensitiveLog = (obj) => ({
908
- ...obj,
909
- ...(obj.content && { content: obj.content.map((item) => GuardrailContentBlockFilterSensitiveLog(item)) }),
910
- });
911
- const GuardrailAutomatedReasoningStatementFilterSensitiveLog = (obj) => ({
912
- ...obj,
913
- ...(obj.logic && { logic: smithyClient.SENSITIVE_STRING }),
914
- ...(obj.naturalLanguage && { naturalLanguage: smithyClient.SENSITIVE_STRING }),
915
- });
916
- const GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog = (obj) => ({
917
- ...obj,
918
- ...(obj.premises && {
919
- premises: obj.premises.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)),
920
- }),
921
- ...(obj.claims && { claims: obj.claims.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)) }),
922
- });
923
- const GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog = (obj) => ({
924
- ...obj,
925
- ...(obj.text && { text: smithyClient.SENSITIVE_STRING }),
926
- });
927
- const GuardrailAutomatedReasoningTranslationFilterSensitiveLog = (obj) => ({
928
- ...obj,
929
- ...(obj.premises && {
930
- premises: obj.premises.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)),
931
- }),
932
- ...(obj.claims && { claims: obj.claims.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)) }),
933
- ...(obj.untranslatedPremises && {
934
- untranslatedPremises: obj.untranslatedPremises.map((item) => GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog(item)),
935
- }),
936
- ...(obj.untranslatedClaims && {
937
- untranslatedClaims: obj.untranslatedClaims.map((item) => GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog(item)),
938
- }),
939
- });
940
- const GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog = (obj) => ({
941
- ...obj,
942
- ...(obj.translation && { translation: GuardrailAutomatedReasoningTranslationFilterSensitiveLog(obj.translation) }),
943
- ...(obj.logicWarning && {
944
- logicWarning: GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog(obj.logicWarning),
945
- }),
946
- });
947
- const GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog = (obj) => ({
948
- ...obj,
949
- ...(obj.translation && { translation: GuardrailAutomatedReasoningTranslationFilterSensitiveLog(obj.translation) }),
950
- ...(obj.logicWarning && {
951
- logicWarning: GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog(obj.logicWarning),
952
- }),
953
- });
954
- const GuardrailAutomatedReasoningScenarioFilterSensitiveLog = (obj) => ({
955
- ...obj,
956
- ...(obj.statements && {
957
- statements: obj.statements.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)),
958
- }),
959
- });
960
- const GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog = (obj) => ({
961
- ...obj,
962
- ...(obj.translation && { translation: GuardrailAutomatedReasoningTranslationFilterSensitiveLog(obj.translation) }),
963
- ...(obj.claimsTrueScenario && {
964
- claimsTrueScenario: GuardrailAutomatedReasoningScenarioFilterSensitiveLog(obj.claimsTrueScenario),
965
- }),
966
- ...(obj.claimsFalseScenario && {
967
- claimsFalseScenario: GuardrailAutomatedReasoningScenarioFilterSensitiveLog(obj.claimsFalseScenario),
968
- }),
969
- ...(obj.logicWarning && {
970
- logicWarning: GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog(obj.logicWarning),
971
- }),
972
- });
973
- const GuardrailAutomatedReasoningTranslationOptionFilterSensitiveLog = (obj) => ({
974
- ...obj,
975
- });
976
- const GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog = (obj) => ({
977
- ...obj,
978
- });
979
- const GuardrailAutomatedReasoningValidFindingFilterSensitiveLog = (obj) => ({
980
- ...obj,
981
- ...(obj.translation && { translation: GuardrailAutomatedReasoningTranslationFilterSensitiveLog(obj.translation) }),
982
- ...(obj.claimsTrueScenario && {
983
- claimsTrueScenario: GuardrailAutomatedReasoningScenarioFilterSensitiveLog(obj.claimsTrueScenario),
984
- }),
985
- ...(obj.logicWarning && {
986
- logicWarning: GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog(obj.logicWarning),
987
- }),
988
- });
989
- const GuardrailAutomatedReasoningFindingFilterSensitiveLog = (obj) => {
990
- if (obj.valid !== undefined)
991
- return { valid: GuardrailAutomatedReasoningValidFindingFilterSensitiveLog(obj.valid) };
992
- if (obj.invalid !== undefined)
993
- return { invalid: GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog(obj.invalid) };
994
- if (obj.satisfiable !== undefined)
995
- return { satisfiable: GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog(obj.satisfiable) };
996
- if (obj.impossible !== undefined)
997
- return { impossible: GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog(obj.impossible) };
998
- if (obj.translationAmbiguous !== undefined)
999
- return {
1000
- translationAmbiguous: GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog(obj.translationAmbiguous),
1001
- };
1002
- if (obj.tooComplex !== undefined)
1003
- return { tooComplex: obj.tooComplex };
1004
- if (obj.noTranslations !== undefined)
1005
- return { noTranslations: obj.noTranslations };
1006
- if (obj.$unknown !== undefined)
1007
- return { [obj.$unknown[0]]: "UNKNOWN" };
1008
- };
1009
- const GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog = (obj) => ({
1010
- ...obj,
1011
- ...(obj.findings && {
1012
- findings: obj.findings.map((item) => GuardrailAutomatedReasoningFindingFilterSensitiveLog(item)),
1013
- }),
1014
- });
1015
- const GuardrailAssessmentFilterSensitiveLog = (obj) => ({
1016
- ...obj,
1017
- ...(obj.automatedReasoningPolicy && {
1018
- automatedReasoningPolicy: GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog(obj.automatedReasoningPolicy),
1019
- }),
1020
- });
1021
- const ApplyGuardrailResponseFilterSensitiveLog = (obj) => ({
1022
- ...obj,
1023
- ...(obj.assessments && { assessments: obj.assessments.map((item) => GuardrailAssessmentFilterSensitiveLog(item)) }),
1024
- });
1025
- const GuardrailConverseImageSourceFilterSensitiveLog = (obj) => {
1026
- if (obj.bytes !== undefined)
1027
- return { bytes: obj.bytes };
1028
- if (obj.$unknown !== undefined)
1029
- return { [obj.$unknown[0]]: "UNKNOWN" };
1030
- };
1031
- const GuardrailConverseImageBlockFilterSensitiveLog = (obj) => ({
1032
- ...obj,
1033
- ...(obj.source && { source: smithyClient.SENSITIVE_STRING }),
1034
- });
1035
- const GuardrailConverseContentBlockFilterSensitiveLog = (obj) => {
1036
- if (obj.text !== undefined)
1037
- return { text: obj.text };
1038
- if (obj.image !== undefined)
1039
- return { image: smithyClient.SENSITIVE_STRING };
1040
- if (obj.$unknown !== undefined)
1041
- return { [obj.$unknown[0]]: "UNKNOWN" };
1042
- };
1043
- const ReasoningTextBlockFilterSensitiveLog = (obj) => ({
1044
- ...obj,
1045
- });
1046
- const ReasoningContentBlockFilterSensitiveLog = (obj) => {
1047
- if (obj.reasoningText !== undefined)
1048
- return { reasoningText: smithyClient.SENSITIVE_STRING };
1049
- if (obj.redactedContent !== undefined)
1050
- return { redactedContent: obj.redactedContent };
1051
- if (obj.$unknown !== undefined)
1052
- return { [obj.$unknown[0]]: "UNKNOWN" };
1053
- };
1054
- const ContentBlockFilterSensitiveLog = (obj) => {
1055
- if (obj.text !== undefined)
1056
- return { text: obj.text };
1057
- if (obj.image !== undefined)
1058
- return { image: obj.image };
1059
- if (obj.document !== undefined)
1060
- return { document: obj.document };
1061
- if (obj.video !== undefined)
1062
- return { video: obj.video };
1063
- if (obj.toolUse !== undefined)
1064
- return { toolUse: obj.toolUse };
1065
- if (obj.toolResult !== undefined)
1066
- return { toolResult: obj.toolResult };
1067
- if (obj.guardContent !== undefined)
1068
- return { guardContent: GuardrailConverseContentBlockFilterSensitiveLog(obj.guardContent) };
1069
- if (obj.cachePoint !== undefined)
1070
- return { cachePoint: obj.cachePoint };
1071
- if (obj.reasoningContent !== undefined)
1072
- return { reasoningContent: smithyClient.SENSITIVE_STRING };
1073
- if (obj.citationsContent !== undefined)
1074
- return { citationsContent: obj.citationsContent };
1075
- if (obj.$unknown !== undefined)
1076
- return { [obj.$unknown[0]]: "UNKNOWN" };
1077
- };
1078
- const MessageFilterSensitiveLog = (obj) => ({
1079
- ...obj,
1080
- ...(obj.content && { content: obj.content.map((item) => ContentBlockFilterSensitiveLog(item)) }),
1081
- });
1082
- const SystemContentBlockFilterSensitiveLog = (obj) => {
1083
- if (obj.text !== undefined)
1084
- return { text: obj.text };
1085
- if (obj.guardContent !== undefined)
1086
- return { guardContent: GuardrailConverseContentBlockFilterSensitiveLog(obj.guardContent) };
1087
- if (obj.cachePoint !== undefined)
1088
- return { cachePoint: obj.cachePoint };
1089
- if (obj.$unknown !== undefined)
1090
- return { [obj.$unknown[0]]: "UNKNOWN" };
1091
- };
1092
- const ConverseRequestFilterSensitiveLog = (obj) => ({
1093
- ...obj,
1094
- ...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
1095
- ...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }),
1096
- ...(obj.toolConfig && { toolConfig: obj.toolConfig }),
1097
- ...(obj.promptVariables && { promptVariables: smithyClient.SENSITIVE_STRING }),
1098
- ...(obj.requestMetadata && { requestMetadata: smithyClient.SENSITIVE_STRING }),
1099
- });
1100
- const ConverseOutputFilterSensitiveLog = (obj) => {
1101
- if (obj.message !== undefined)
1102
- return { message: MessageFilterSensitiveLog(obj.message) };
1103
- if (obj.$unknown !== undefined)
1104
- return { [obj.$unknown[0]]: "UNKNOWN" };
1105
- };
1106
- const GuardrailTraceAssessmentFilterSensitiveLog = (obj) => ({
1107
- ...obj,
1108
- ...(obj.inputAssessment && {
1109
- inputAssessment: Object.entries(obj.inputAssessment).reduce((acc, [key, value]) => ((acc[key] = GuardrailAssessmentFilterSensitiveLog(value)), acc), {}),
1110
- }),
1111
- ...(obj.outputAssessments && {
1112
- outputAssessments: Object.entries(obj.outputAssessments).reduce((acc, [key, value]) => ((acc[key] = value.map((item) => GuardrailAssessmentFilterSensitiveLog(item))), acc), {}),
1113
- }),
1114
- });
1115
- const ConverseTraceFilterSensitiveLog = (obj) => ({
1116
- ...obj,
1117
- ...(obj.guardrail && { guardrail: GuardrailTraceAssessmentFilterSensitiveLog(obj.guardrail) }),
1118
- });
1119
- const ConverseResponseFilterSensitiveLog = (obj) => ({
1120
- ...obj,
1121
- ...(obj.output && { output: ConverseOutputFilterSensitiveLog(obj.output) }),
1122
- ...(obj.trace && { trace: ConverseTraceFilterSensitiveLog(obj.trace) }),
1123
- });
1124
- const ConverseStreamRequestFilterSensitiveLog = (obj) => ({
1125
- ...obj,
1126
- ...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
1127
- ...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }),
1128
- ...(obj.toolConfig && { toolConfig: obj.toolConfig }),
1129
- ...(obj.promptVariables && { promptVariables: smithyClient.SENSITIVE_STRING }),
1130
- ...(obj.requestMetadata && { requestMetadata: smithyClient.SENSITIVE_STRING }),
1131
- });
1132
- const ReasoningContentBlockDeltaFilterSensitiveLog = (obj) => {
1133
- if (obj.text !== undefined)
1134
- return { text: obj.text };
1135
- if (obj.redactedContent !== undefined)
1136
- return { redactedContent: obj.redactedContent };
1137
- if (obj.signature !== undefined)
1138
- return { signature: obj.signature };
1139
- if (obj.$unknown !== undefined)
1140
- return { [obj.$unknown[0]]: "UNKNOWN" };
1141
- };
1142
- const ContentBlockDeltaFilterSensitiveLog = (obj) => {
1143
- if (obj.text !== undefined)
1144
- return { text: obj.text };
1145
- if (obj.toolUse !== undefined)
1146
- return { toolUse: obj.toolUse };
1147
- if (obj.toolResult !== undefined)
1148
- return { toolResult: obj.toolResult.map((item) => item) };
1149
- if (obj.reasoningContent !== undefined)
1150
- return { reasoningContent: smithyClient.SENSITIVE_STRING };
1151
- if (obj.citation !== undefined)
1152
- return { citation: obj.citation };
1153
- if (obj.$unknown !== undefined)
1154
- return { [obj.$unknown[0]]: "UNKNOWN" };
1155
- };
1156
- const ContentBlockDeltaEventFilterSensitiveLog = (obj) => ({
1157
- ...obj,
1158
- ...(obj.delta && { delta: ContentBlockDeltaFilterSensitiveLog(obj.delta) }),
1159
- });
1160
- const ConverseStreamTraceFilterSensitiveLog = (obj) => ({
1161
- ...obj,
1162
- ...(obj.guardrail && { guardrail: GuardrailTraceAssessmentFilterSensitiveLog(obj.guardrail) }),
1163
- });
1164
- const ConverseStreamMetadataEventFilterSensitiveLog = (obj) => ({
1165
- ...obj,
1166
- ...(obj.trace && { trace: ConverseStreamTraceFilterSensitiveLog(obj.trace) }),
1167
- });
1168
- const ConverseStreamOutputFilterSensitiveLog = (obj) => {
1169
- if (obj.messageStart !== undefined)
1170
- return { messageStart: obj.messageStart };
1171
- if (obj.contentBlockStart !== undefined)
1172
- return { contentBlockStart: obj.contentBlockStart };
1173
- if (obj.contentBlockDelta !== undefined)
1174
- return { contentBlockDelta: ContentBlockDeltaEventFilterSensitiveLog(obj.contentBlockDelta) };
1175
- if (obj.contentBlockStop !== undefined)
1176
- return { contentBlockStop: obj.contentBlockStop };
1177
- if (obj.messageStop !== undefined)
1178
- return { messageStop: obj.messageStop };
1179
- if (obj.metadata !== undefined)
1180
- return { metadata: ConverseStreamMetadataEventFilterSensitiveLog(obj.metadata) };
1181
- if (obj.internalServerException !== undefined)
1182
- return { internalServerException: obj.internalServerException };
1183
- if (obj.modelStreamErrorException !== undefined)
1184
- return { modelStreamErrorException: obj.modelStreamErrorException };
1185
- if (obj.validationException !== undefined)
1186
- return { validationException: obj.validationException };
1187
- if (obj.throttlingException !== undefined)
1188
- return { throttlingException: obj.throttlingException };
1189
- if (obj.serviceUnavailableException !== undefined)
1190
- return { serviceUnavailableException: obj.serviceUnavailableException };
1191
- if (obj.$unknown !== undefined)
1192
- return { [obj.$unknown[0]]: "UNKNOWN" };
1193
- };
1194
- const ConverseStreamResponseFilterSensitiveLog = (obj) => ({
1195
- ...obj,
1196
- ...(obj.stream && { stream: "STREAMING_CONTENT" }),
1197
- });
1198
- const InvokeModelRequestFilterSensitiveLog = (obj) => ({
1199
- ...obj,
1200
- ...(obj.body && { body: smithyClient.SENSITIVE_STRING }),
1201
- });
1202
- const InvokeModelResponseFilterSensitiveLog = (obj) => ({
1203
- ...obj,
1204
- ...(obj.body && { body: smithyClient.SENSITIVE_STRING }),
1205
- });
1206
- const BidirectionalInputPayloadPartFilterSensitiveLog = (obj) => ({
1207
- ...obj,
1208
- ...(obj.bytes && { bytes: smithyClient.SENSITIVE_STRING }),
1209
- });
1210
- const InvokeModelWithBidirectionalStreamInputFilterSensitiveLog = (obj) => {
1211
- if (obj.chunk !== undefined)
1212
- return { chunk: smithyClient.SENSITIVE_STRING };
1213
- if (obj.$unknown !== undefined)
1214
- return { [obj.$unknown[0]]: "UNKNOWN" };
1215
- };
1216
- const InvokeModelWithBidirectionalStreamRequestFilterSensitiveLog = (obj) => ({
1217
- ...obj,
1218
- ...(obj.body && { body: "STREAMING_CONTENT" }),
1219
- });
1220
- const BidirectionalOutputPayloadPartFilterSensitiveLog = (obj) => ({
1221
- ...obj,
1222
- ...(obj.bytes && { bytes: smithyClient.SENSITIVE_STRING }),
1223
- });
1224
- const InvokeModelWithBidirectionalStreamOutputFilterSensitiveLog = (obj) => {
1225
- if (obj.chunk !== undefined)
1226
- return { chunk: smithyClient.SENSITIVE_STRING };
1227
- if (obj.internalServerException !== undefined)
1228
- return { internalServerException: obj.internalServerException };
1229
- if (obj.modelStreamErrorException !== undefined)
1230
- return { modelStreamErrorException: obj.modelStreamErrorException };
1231
- if (obj.validationException !== undefined)
1232
- return { validationException: obj.validationException };
1233
- if (obj.throttlingException !== undefined)
1234
- return { throttlingException: obj.throttlingException };
1235
- if (obj.modelTimeoutException !== undefined)
1236
- return { modelTimeoutException: obj.modelTimeoutException };
1237
- if (obj.serviceUnavailableException !== undefined)
1238
- return { serviceUnavailableException: obj.serviceUnavailableException };
1239
- if (obj.$unknown !== undefined)
1240
- return { [obj.$unknown[0]]: "UNKNOWN" };
1241
- };
1242
- const InvokeModelWithBidirectionalStreamResponseFilterSensitiveLog = (obj) => ({
1243
- ...obj,
1244
- ...(obj.body && { body: "STREAMING_CONTENT" }),
1245
- });
1246
- const InvokeModelWithResponseStreamRequestFilterSensitiveLog = (obj) => ({
1247
- ...obj,
1248
- ...(obj.body && { body: smithyClient.SENSITIVE_STRING }),
1249
- });
1250
- const PayloadPartFilterSensitiveLog = (obj) => ({
1251
- ...obj,
1252
- ...(obj.bytes && { bytes: smithyClient.SENSITIVE_STRING }),
1253
- });
1254
- const ResponseStreamFilterSensitiveLog = (obj) => {
1255
- if (obj.chunk !== undefined)
1256
- return { chunk: smithyClient.SENSITIVE_STRING };
1257
- if (obj.internalServerException !== undefined)
1258
- return { internalServerException: obj.internalServerException };
1259
- if (obj.modelStreamErrorException !== undefined)
1260
- return { modelStreamErrorException: obj.modelStreamErrorException };
1261
- if (obj.validationException !== undefined)
1262
- return { validationException: obj.validationException };
1263
- if (obj.throttlingException !== undefined)
1264
- return { throttlingException: obj.throttlingException };
1265
- if (obj.modelTimeoutException !== undefined)
1266
- return { modelTimeoutException: obj.modelTimeoutException };
1267
- if (obj.serviceUnavailableException !== undefined)
1268
- return { serviceUnavailableException: obj.serviceUnavailableException };
1269
- if (obj.$unknown !== undefined)
1270
- return { [obj.$unknown[0]]: "UNKNOWN" };
1271
- };
1272
- const InvokeModelWithResponseStreamResponseFilterSensitiveLog = (obj) => ({
1273
- ...obj,
1274
- ...(obj.body && { body: "STREAMING_CONTENT" }),
1275
- });
1276
- const ConverseTokensRequestFilterSensitiveLog = (obj) => ({
1277
- ...obj,
1278
- ...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
1279
- ...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }),
1280
- });
1281
- const InvokeModelTokensRequestFilterSensitiveLog = (obj) => ({
1282
- ...obj,
1283
- ...(obj.body && { body: smithyClient.SENSITIVE_STRING }),
1284
- });
1285
- const CountTokensInputFilterSensitiveLog = (obj) => {
1286
- if (obj.invokeModel !== undefined)
1287
- return { invokeModel: InvokeModelTokensRequestFilterSensitiveLog(obj.invokeModel) };
1288
- if (obj.converse !== undefined)
1289
- return { converse: ConverseTokensRequestFilterSensitiveLog(obj.converse) };
1290
- if (obj.$unknown !== undefined)
1291
- return { [obj.$unknown[0]]: "UNKNOWN" };
1292
- };
1293
- const CountTokensRequestFilterSensitiveLog = (obj) => ({
1294
- ...obj,
1295
- ...(obj.input && { input: CountTokensInputFilterSensitiveLog(obj.input) }),
1296
- });
1297
867
 
1298
- const se_ApplyGuardrailCommand = async (input, context) => {
1299
- const b = core.requestBuilder(input, context);
1300
- const headers = {
1301
- "content-type": "application/json",
1302
- };
1303
- b.bp("/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply");
1304
- b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
1305
- b.p("guardrailVersion", () => input.guardrailVersion, "{guardrailVersion}", false);
1306
- let body;
1307
- body = JSON.stringify(smithyClient.take(input, {
1308
- content: (_) => se_GuardrailContentBlockList(_, context),
1309
- outputScope: [],
1310
- source: [],
1311
- }));
1312
- b.m("POST").h(headers).b(body);
1313
- return b.build();
1314
- };
1315
- const se_ConverseCommand = async (input, context) => {
1316
- const b = core.requestBuilder(input, context);
1317
- const headers = {
1318
- "content-type": "application/json",
1319
- };
1320
- b.bp("/model/{modelId}/converse");
1321
- b.p("modelId", () => input.modelId, "{modelId}", false);
1322
- let body;
1323
- body = JSON.stringify(smithyClient.take(input, {
1324
- additionalModelRequestFields: (_) => se_Document(_),
1325
- additionalModelResponseFieldPaths: (_) => smithyClient._json(_),
1326
- guardrailConfig: (_) => smithyClient._json(_),
1327
- inferenceConfig: (_) => se_InferenceConfiguration(_),
1328
- messages: (_) => se_Messages(_, context),
1329
- performanceConfig: (_) => smithyClient._json(_),
1330
- promptVariables: (_) => smithyClient._json(_),
1331
- requestMetadata: (_) => smithyClient._json(_),
1332
- system: (_) => se_SystemContentBlocks(_, context),
1333
- toolConfig: (_) => se_ToolConfiguration(_),
1334
- }));
1335
- b.m("POST").h(headers).b(body);
1336
- return b.build();
1337
- };
1338
- const se_ConverseStreamCommand = async (input, context) => {
1339
- const b = core.requestBuilder(input, context);
1340
- const headers = {
1341
- "content-type": "application/json",
1342
- };
1343
- b.bp("/model/{modelId}/converse-stream");
1344
- b.p("modelId", () => input.modelId, "{modelId}", false);
1345
- let body;
1346
- body = JSON.stringify(smithyClient.take(input, {
1347
- additionalModelRequestFields: (_) => se_Document(_),
1348
- additionalModelResponseFieldPaths: (_) => smithyClient._json(_),
1349
- guardrailConfig: (_) => smithyClient._json(_),
1350
- inferenceConfig: (_) => se_InferenceConfiguration(_),
1351
- messages: (_) => se_Messages(_, context),
1352
- performanceConfig: (_) => smithyClient._json(_),
1353
- promptVariables: (_) => smithyClient._json(_),
1354
- requestMetadata: (_) => smithyClient._json(_),
1355
- system: (_) => se_SystemContentBlocks(_, context),
1356
- toolConfig: (_) => se_ToolConfiguration(_),
1357
- }));
1358
- b.m("POST").h(headers).b(body);
1359
- return b.build();
1360
- };
1361
- const se_CountTokensCommand = async (input, context) => {
1362
- const b = core.requestBuilder(input, context);
1363
- const headers = {
1364
- "content-type": "application/json",
1365
- };
1366
- b.bp("/model/{modelId}/count-tokens");
1367
- b.p("modelId", () => input.modelId, "{modelId}", false);
1368
- let body;
1369
- body = JSON.stringify(smithyClient.take(input, {
1370
- input: (_) => se_CountTokensInput(_, context),
1371
- }));
1372
- b.m("POST").h(headers).b(body);
1373
- return b.build();
1374
- };
1375
- const se_GetAsyncInvokeCommand = async (input, context) => {
1376
- const b = core.requestBuilder(input, context);
1377
- const headers = {};
1378
- b.bp("/async-invoke/{invocationArn}");
1379
- b.p("invocationArn", () => input.invocationArn, "{invocationArn}", false);
1380
- let body;
1381
- b.m("GET").h(headers).b(body);
1382
- return b.build();
1383
- };
1384
- const se_InvokeModelCommand = async (input, context) => {
1385
- const b = core.requestBuilder(input, context);
1386
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
1387
- [_ct]: input[_cT] || "application/octet-stream",
1388
- [_a]: input[_a],
1389
- [_xabt]: input[_t],
1390
- [_xabg]: input[_gI],
1391
- [_xabg_]: input[_gV],
1392
- [_xabpl]: input[_pCL],
1393
- });
1394
- b.bp("/model/{modelId}/invoke");
1395
- b.p("modelId", () => input.modelId, "{modelId}", false);
1396
- let body;
1397
- if (input.body !== undefined) {
1398
- body = input.body;
1399
- }
1400
- b.m("POST").h(headers).b(body);
1401
- return b.build();
1402
- };
1403
- const se_InvokeModelWithBidirectionalStreamCommand = async (input, context) => {
1404
- const b = core.requestBuilder(input, context);
1405
- const headers = {
1406
- "content-type": "application/json",
1407
- };
1408
- b.bp("/model/{modelId}/invoke-with-bidirectional-stream");
1409
- b.p("modelId", () => input.modelId, "{modelId}", false);
1410
- let body;
1411
- if (input.body !== undefined) {
1412
- body = se_InvokeModelWithBidirectionalStreamInput(input.body, context);
1413
- }
1414
- b.m("POST").h(headers).b(body);
1415
- return b.build();
1416
- };
1417
- const se_InvokeModelWithResponseStreamCommand = async (input, context) => {
1418
- const b = core.requestBuilder(input, context);
1419
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
1420
- [_ct]: input[_cT] || "application/octet-stream",
1421
- [_xaba]: input[_a],
1422
- [_xabt]: input[_t],
1423
- [_xabg]: input[_gI],
1424
- [_xabg_]: input[_gV],
1425
- [_xabpl]: input[_pCL],
1426
- });
1427
- b.bp("/model/{modelId}/invoke-with-response-stream");
1428
- b.p("modelId", () => input.modelId, "{modelId}", false);
1429
- let body;
1430
- if (input.body !== undefined) {
1431
- body = input.body;
1432
- }
1433
- b.m("POST").h(headers).b(body);
1434
- return b.build();
1435
- };
1436
- const se_ListAsyncInvokesCommand = async (input, context) => {
1437
- const b = core.requestBuilder(input, context);
1438
- const headers = {};
1439
- b.bp("/async-invoke");
1440
- const query = smithyClient.map({
1441
- [_sTA]: [() => input.submitTimeAfter !== void 0, () => smithyClient.serializeDateTime(input[_sTA]).toString()],
1442
- [_sTB]: [() => input.submitTimeBefore !== void 0, () => smithyClient.serializeDateTime(input[_sTB]).toString()],
1443
- [_sE]: [, input[_sE]],
1444
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1445
- [_nT]: [, input[_nT]],
1446
- [_sB]: [, input[_sB]],
1447
- [_sO]: [, input[_sO]],
1448
- });
1449
- let body;
1450
- b.m("GET").h(headers).q(query).b(body);
1451
- return b.build();
1452
- };
1453
- const se_StartAsyncInvokeCommand = async (input, context) => {
1454
- const b = core.requestBuilder(input, context);
1455
- const headers = {
1456
- "content-type": "application/json",
1457
- };
1458
- b.bp("/async-invoke");
1459
- let body;
1460
- body = JSON.stringify(smithyClient.take(input, {
1461
- clientRequestToken: [true, (_) => _ ?? uuid.v4()],
1462
- modelId: [],
1463
- modelInput: (_) => se_ModelInputPayload(_),
1464
- outputDataConfig: (_) => smithyClient._json(_),
1465
- tags: (_) => smithyClient._json(_),
1466
- }));
1467
- b.m("POST").h(headers).b(body);
1468
- return b.build();
1469
- };
1470
- const de_ApplyGuardrailCommand = async (output, context) => {
1471
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1472
- return de_CommandError(output, context);
1473
- }
1474
- const contents = smithyClient.map({
1475
- $metadata: deserializeMetadata(output),
1476
- });
1477
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1478
- const doc = smithyClient.take(data, {
1479
- action: smithyClient.expectString,
1480
- actionReason: smithyClient.expectString,
1481
- assessments: (_) => de_GuardrailAssessmentList(_),
1482
- guardrailCoverage: smithyClient._json,
1483
- outputs: smithyClient._json,
1484
- usage: smithyClient._json,
1485
- });
1486
- Object.assign(contents, doc);
1487
- return contents;
1488
- };
1489
- const de_ConverseCommand = async (output, context) => {
1490
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1491
- return de_CommandError(output, context);
1492
- }
1493
- const contents = smithyClient.map({
1494
- $metadata: deserializeMetadata(output),
1495
- });
1496
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1497
- const doc = smithyClient.take(data, {
1498
- additionalModelResponseFields: (_) => de_Document(_),
1499
- metrics: smithyClient._json,
1500
- output: (_) => de_ConverseOutput(core$1.awsExpectUnion(_), context),
1501
- performanceConfig: smithyClient._json,
1502
- stopReason: smithyClient.expectString,
1503
- trace: (_) => de_ConverseTrace(_),
1504
- usage: smithyClient._json,
1505
- });
1506
- Object.assign(contents, doc);
1507
- return contents;
1508
- };
1509
- const de_ConverseStreamCommand = async (output, context) => {
1510
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1511
- return de_CommandError(output, context);
1512
- }
1513
- const contents = smithyClient.map({
1514
- $metadata: deserializeMetadata(output),
1515
- });
1516
- const data = output.body;
1517
- contents.stream = de_ConverseStreamOutput(data, context);
1518
- return contents;
1519
- };
1520
- const de_CountTokensCommand = async (output, context) => {
1521
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1522
- return de_CommandError(output, context);
1523
- }
1524
- const contents = smithyClient.map({
1525
- $metadata: deserializeMetadata(output),
1526
- });
1527
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1528
- const doc = smithyClient.take(data, {
1529
- inputTokens: smithyClient.expectInt32,
1530
- });
1531
- Object.assign(contents, doc);
1532
- return contents;
1533
- };
1534
- const de_GetAsyncInvokeCommand = async (output, context) => {
1535
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1536
- return de_CommandError(output, context);
1537
- }
1538
- const contents = smithyClient.map({
1539
- $metadata: deserializeMetadata(output),
1540
- });
1541
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1542
- const doc = smithyClient.take(data, {
1543
- clientRequestToken: smithyClient.expectString,
1544
- endTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1545
- failureMessage: smithyClient.expectString,
1546
- invocationArn: smithyClient.expectString,
1547
- lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1548
- modelArn: smithyClient.expectString,
1549
- outputDataConfig: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
1550
- status: smithyClient.expectString,
1551
- submitTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1552
- });
1553
- Object.assign(contents, doc);
1554
- return contents;
1555
- };
1556
- const de_InvokeModelCommand = async (output, context) => {
1557
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1558
- return de_CommandError(output, context);
1559
- }
1560
- const contents = smithyClient.map({
1561
- $metadata: deserializeMetadata(output),
1562
- [_cT]: [, output.headers[_ct]],
1563
- [_pCL]: [, output.headers[_xabpl]],
1564
- });
1565
- const data = await smithyClient.collectBody(output.body, context);
1566
- contents.body = data;
1567
- return contents;
1568
- };
1569
- const de_InvokeModelWithBidirectionalStreamCommand = async (output, context) => {
1570
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1571
- return de_CommandError(output, context);
1572
- }
1573
- const contents = smithyClient.map({
1574
- $metadata: deserializeMetadata(output),
1575
- });
1576
- const data = output.body;
1577
- contents.body = de_InvokeModelWithBidirectionalStreamOutput(data, context);
1578
- return contents;
1579
- };
1580
- const de_InvokeModelWithResponseStreamCommand = async (output, context) => {
1581
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
- return de_CommandError(output, context);
1583
- }
1584
- const contents = smithyClient.map({
1585
- $metadata: deserializeMetadata(output),
1586
- [_cT]: [, output.headers[_xabct]],
1587
- [_pCL]: [, output.headers[_xabpl]],
1588
- });
1589
- const data = output.body;
1590
- contents.body = de_ResponseStream(data, context);
1591
- return contents;
1592
- };
1593
- const de_ListAsyncInvokesCommand = async (output, context) => {
1594
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1595
- return de_CommandError(output, context);
1596
- }
1597
- const contents = smithyClient.map({
1598
- $metadata: deserializeMetadata(output),
1599
- });
1600
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1601
- const doc = smithyClient.take(data, {
1602
- asyncInvokeSummaries: (_) => de_AsyncInvokeSummaries(_),
1603
- nextToken: smithyClient.expectString,
1604
- });
1605
- Object.assign(contents, doc);
1606
- return contents;
1607
- };
1608
- const de_StartAsyncInvokeCommand = async (output, context) => {
1609
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1610
- return de_CommandError(output, context);
1611
- }
1612
- const contents = smithyClient.map({
1613
- $metadata: deserializeMetadata(output),
1614
- });
1615
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1616
- const doc = smithyClient.take(data, {
1617
- invocationArn: smithyClient.expectString,
1618
- });
1619
- Object.assign(contents, doc);
1620
- return contents;
1621
- };
1622
- const de_CommandError = async (output, context) => {
1623
- const parsedOutput = {
1624
- ...output,
1625
- body: await core$1.parseJsonErrorBody(output.body, context),
1626
- };
1627
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1628
- switch (errorCode) {
1629
- case "AccessDeniedException":
1630
- case "com.amazonaws.bedrockruntime#AccessDeniedException":
1631
- throw await de_AccessDeniedExceptionRes(parsedOutput);
1632
- case "InternalServerException":
1633
- case "com.amazonaws.bedrockruntime#InternalServerException":
1634
- throw await de_InternalServerExceptionRes(parsedOutput);
1635
- case "ResourceNotFoundException":
1636
- case "com.amazonaws.bedrockruntime#ResourceNotFoundException":
1637
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1638
- case "ServiceQuotaExceededException":
1639
- case "com.amazonaws.bedrockruntime#ServiceQuotaExceededException":
1640
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1641
- case "ServiceUnavailableException":
1642
- case "com.amazonaws.bedrockruntime#ServiceUnavailableException":
1643
- throw await de_ServiceUnavailableExceptionRes(parsedOutput);
1644
- case "ThrottlingException":
1645
- case "com.amazonaws.bedrockruntime#ThrottlingException":
1646
- throw await de_ThrottlingExceptionRes(parsedOutput);
1647
- case "ValidationException":
1648
- case "com.amazonaws.bedrockruntime#ValidationException":
1649
- throw await de_ValidationExceptionRes(parsedOutput);
1650
- case "ModelErrorException":
1651
- case "com.amazonaws.bedrockruntime#ModelErrorException":
1652
- throw await de_ModelErrorExceptionRes(parsedOutput);
1653
- case "ModelNotReadyException":
1654
- case "com.amazonaws.bedrockruntime#ModelNotReadyException":
1655
- throw await de_ModelNotReadyExceptionRes(parsedOutput);
1656
- case "ModelTimeoutException":
1657
- case "com.amazonaws.bedrockruntime#ModelTimeoutException":
1658
- throw await de_ModelTimeoutExceptionRes(parsedOutput);
1659
- case "ModelStreamErrorException":
1660
- case "com.amazonaws.bedrockruntime#ModelStreamErrorException":
1661
- throw await de_ModelStreamErrorExceptionRes(parsedOutput);
1662
- case "ConflictException":
1663
- case "com.amazonaws.bedrockruntime#ConflictException":
1664
- throw await de_ConflictExceptionRes(parsedOutput);
1665
- default:
1666
- const parsedBody = parsedOutput.body;
1667
- return throwDefaultError({
1668
- output,
1669
- parsedBody,
1670
- errorCode,
1671
- });
1672
- }
1673
- };
1674
- const throwDefaultError = smithyClient.withBaseException(BedrockRuntimeServiceException);
1675
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1676
- const contents = smithyClient.map({});
1677
- const data = parsedOutput.body;
1678
- const doc = smithyClient.take(data, {
1679
- message: smithyClient.expectString,
1680
- });
1681
- Object.assign(contents, doc);
1682
- const exception = new AccessDeniedException({
1683
- $metadata: deserializeMetadata(parsedOutput),
1684
- ...contents,
1685
- });
1686
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1687
- };
1688
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1689
- const contents = smithyClient.map({});
1690
- const data = parsedOutput.body;
1691
- const doc = smithyClient.take(data, {
1692
- message: smithyClient.expectString,
1693
- });
1694
- Object.assign(contents, doc);
1695
- const exception = new ConflictException({
1696
- $metadata: deserializeMetadata(parsedOutput),
1697
- ...contents,
1698
- });
1699
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1700
- };
1701
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1702
- const contents = smithyClient.map({});
1703
- const data = parsedOutput.body;
1704
- const doc = smithyClient.take(data, {
1705
- message: smithyClient.expectString,
1706
- });
1707
- Object.assign(contents, doc);
1708
- const exception = new InternalServerException({
1709
- $metadata: deserializeMetadata(parsedOutput),
1710
- ...contents,
1711
- });
1712
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1713
- };
1714
- const de_ModelErrorExceptionRes = async (parsedOutput, context) => {
1715
- const contents = smithyClient.map({});
1716
- const data = parsedOutput.body;
1717
- const doc = smithyClient.take(data, {
1718
- message: smithyClient.expectString,
1719
- originalStatusCode: smithyClient.expectInt32,
1720
- resourceName: smithyClient.expectString,
1721
- });
1722
- Object.assign(contents, doc);
1723
- const exception = new ModelErrorException({
1724
- $metadata: deserializeMetadata(parsedOutput),
1725
- ...contents,
1726
- });
1727
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1728
- };
1729
- const de_ModelNotReadyExceptionRes = async (parsedOutput, context) => {
1730
- const contents = smithyClient.map({});
1731
- const data = parsedOutput.body;
1732
- const doc = smithyClient.take(data, {
1733
- message: smithyClient.expectString,
1734
- });
1735
- Object.assign(contents, doc);
1736
- const exception = new ModelNotReadyException({
1737
- $metadata: deserializeMetadata(parsedOutput),
1738
- ...contents,
1739
- });
1740
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1741
- };
1742
- const de_ModelStreamErrorExceptionRes = async (parsedOutput, context) => {
1743
- const contents = smithyClient.map({});
1744
- const data = parsedOutput.body;
1745
- const doc = smithyClient.take(data, {
1746
- message: smithyClient.expectString,
1747
- originalMessage: smithyClient.expectString,
1748
- originalStatusCode: smithyClient.expectInt32,
1749
- });
1750
- Object.assign(contents, doc);
1751
- const exception = new ModelStreamErrorException({
1752
- $metadata: deserializeMetadata(parsedOutput),
1753
- ...contents,
1754
- });
1755
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1756
- };
1757
- const de_ModelTimeoutExceptionRes = async (parsedOutput, context) => {
1758
- const contents = smithyClient.map({});
1759
- const data = parsedOutput.body;
1760
- const doc = smithyClient.take(data, {
1761
- message: smithyClient.expectString,
1762
- });
1763
- Object.assign(contents, doc);
1764
- const exception = new ModelTimeoutException({
1765
- $metadata: deserializeMetadata(parsedOutput),
1766
- ...contents,
1767
- });
1768
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1769
- };
1770
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1771
- const contents = smithyClient.map({});
1772
- const data = parsedOutput.body;
1773
- const doc = smithyClient.take(data, {
1774
- message: smithyClient.expectString,
1775
- });
1776
- Object.assign(contents, doc);
1777
- const exception = new ResourceNotFoundException({
1778
- $metadata: deserializeMetadata(parsedOutput),
1779
- ...contents,
1780
- });
1781
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1782
- };
1783
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1784
- const contents = smithyClient.map({});
1785
- const data = parsedOutput.body;
1786
- const doc = smithyClient.take(data, {
1787
- message: smithyClient.expectString,
1788
- });
1789
- Object.assign(contents, doc);
1790
- const exception = new ServiceQuotaExceededException({
1791
- $metadata: deserializeMetadata(parsedOutput),
1792
- ...contents,
1793
- });
1794
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1795
- };
1796
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1797
- const contents = smithyClient.map({});
1798
- const data = parsedOutput.body;
1799
- const doc = smithyClient.take(data, {
1800
- message: smithyClient.expectString,
1801
- });
1802
- Object.assign(contents, doc);
1803
- const exception = new ServiceUnavailableException({
1804
- $metadata: deserializeMetadata(parsedOutput),
1805
- ...contents,
1806
- });
1807
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1808
- };
1809
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1810
- const contents = smithyClient.map({});
1811
- const data = parsedOutput.body;
1812
- const doc = smithyClient.take(data, {
1813
- message: smithyClient.expectString,
1814
- });
1815
- Object.assign(contents, doc);
1816
- const exception = new ThrottlingException({
1817
- $metadata: deserializeMetadata(parsedOutput),
1818
- ...contents,
1819
- });
1820
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1821
- };
1822
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1823
- const contents = smithyClient.map({});
1824
- const data = parsedOutput.body;
1825
- const doc = smithyClient.take(data, {
1826
- message: smithyClient.expectString,
1827
- });
1828
- Object.assign(contents, doc);
1829
- const exception = new ValidationException({
1830
- $metadata: deserializeMetadata(parsedOutput),
1831
- ...contents,
1832
- });
1833
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1834
- };
1835
- const se_InvokeModelWithBidirectionalStreamInput = (input, context) => {
1836
- const eventMarshallingVisitor = (event) => exports.InvokeModelWithBidirectionalStreamInput.visit(event, {
1837
- chunk: (value) => se_BidirectionalInputPayloadPart_event(value, context),
1838
- _: (value) => value,
1839
- });
1840
- return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
1841
- };
1842
- const se_BidirectionalInputPayloadPart_event = (input, context) => {
1843
- const headers = {
1844
- ":event-type": { type: "string", value: "chunk" },
1845
- ":message-type": { type: "string", value: "event" },
1846
- ":content-type": { type: "string", value: "application/json" },
1847
- };
1848
- let body = new Uint8Array();
1849
- body = se_BidirectionalInputPayloadPart(input, context);
1850
- body = context.utf8Decoder(JSON.stringify(body));
1851
- return { headers, body };
1852
- };
1853
- const de_ConverseStreamOutput = (output, context) => {
1854
- return context.eventStreamMarshaller.deserialize(output, async (event) => {
1855
- if (event["messageStart"] != null) {
1856
- return {
1857
- messageStart: await de_MessageStartEvent_event(event["messageStart"], context),
1858
- };
1859
- }
1860
- if (event["contentBlockStart"] != null) {
1861
- return {
1862
- contentBlockStart: await de_ContentBlockStartEvent_event(event["contentBlockStart"], context),
1863
- };
1864
- }
1865
- if (event["contentBlockDelta"] != null) {
1866
- return {
1867
- contentBlockDelta: await de_ContentBlockDeltaEvent_event(event["contentBlockDelta"], context),
1868
- };
1869
- }
1870
- if (event["contentBlockStop"] != null) {
1871
- return {
1872
- contentBlockStop: await de_ContentBlockStopEvent_event(event["contentBlockStop"], context),
1873
- };
1874
- }
1875
- if (event["messageStop"] != null) {
1876
- return {
1877
- messageStop: await de_MessageStopEvent_event(event["messageStop"], context),
1878
- };
1879
- }
1880
- if (event["metadata"] != null) {
1881
- return {
1882
- metadata: await de_ConverseStreamMetadataEvent_event(event["metadata"], context),
1883
- };
1884
- }
1885
- if (event["internalServerException"] != null) {
1886
- return {
1887
- internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
1888
- };
1889
- }
1890
- if (event["modelStreamErrorException"] != null) {
1891
- return {
1892
- modelStreamErrorException: await de_ModelStreamErrorException_event(event["modelStreamErrorException"], context),
1893
- };
1894
- }
1895
- if (event["validationException"] != null) {
1896
- return {
1897
- validationException: await de_ValidationException_event(event["validationException"], context),
1898
- };
1899
- }
1900
- if (event["throttlingException"] != null) {
1901
- return {
1902
- throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
1903
- };
1904
- }
1905
- if (event["serviceUnavailableException"] != null) {
1906
- return {
1907
- serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
1908
- };
1909
- }
1910
- return { $unknown: event };
1911
- });
1912
- };
1913
- const de_InvokeModelWithBidirectionalStreamOutput = (output, context) => {
1914
- return context.eventStreamMarshaller.deserialize(output, async (event) => {
1915
- if (event["chunk"] != null) {
1916
- return {
1917
- chunk: await de_BidirectionalOutputPayloadPart_event(event["chunk"], context),
1918
- };
1919
- }
1920
- if (event["internalServerException"] != null) {
1921
- return {
1922
- internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
1923
- };
1924
- }
1925
- if (event["modelStreamErrorException"] != null) {
1926
- return {
1927
- modelStreamErrorException: await de_ModelStreamErrorException_event(event["modelStreamErrorException"], context),
1928
- };
1929
- }
1930
- if (event["validationException"] != null) {
1931
- return {
1932
- validationException: await de_ValidationException_event(event["validationException"], context),
1933
- };
1934
- }
1935
- if (event["throttlingException"] != null) {
1936
- return {
1937
- throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
1938
- };
1939
- }
1940
- if (event["modelTimeoutException"] != null) {
1941
- return {
1942
- modelTimeoutException: await de_ModelTimeoutException_event(event["modelTimeoutException"], context),
1943
- };
1944
- }
1945
- if (event["serviceUnavailableException"] != null) {
1946
- return {
1947
- serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
1948
- };
1949
- }
1950
- return { $unknown: event };
1951
- });
1952
- };
1953
- const de_ResponseStream = (output, context) => {
1954
- return context.eventStreamMarshaller.deserialize(output, async (event) => {
1955
- if (event["chunk"] != null) {
1956
- return {
1957
- chunk: await de_PayloadPart_event(event["chunk"], context),
1958
- };
1959
- }
1960
- if (event["internalServerException"] != null) {
1961
- return {
1962
- internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
1963
- };
1964
- }
1965
- if (event["modelStreamErrorException"] != null) {
1966
- return {
1967
- modelStreamErrorException: await de_ModelStreamErrorException_event(event["modelStreamErrorException"], context),
1968
- };
1969
- }
1970
- if (event["validationException"] != null) {
1971
- return {
1972
- validationException: await de_ValidationException_event(event["validationException"], context),
1973
- };
1974
- }
1975
- if (event["throttlingException"] != null) {
1976
- return {
1977
- throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
1978
- };
1979
- }
1980
- if (event["modelTimeoutException"] != null) {
1981
- return {
1982
- modelTimeoutException: await de_ModelTimeoutException_event(event["modelTimeoutException"], context),
1983
- };
1984
- }
1985
- if (event["serviceUnavailableException"] != null) {
1986
- return {
1987
- serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
1988
- };
1989
- }
1990
- return { $unknown: event };
1991
- });
1992
- };
1993
- const de_BidirectionalOutputPayloadPart_event = async (output, context) => {
1994
- const contents = {};
1995
- const data = await core$1.parseJsonBody(output.body, context);
1996
- Object.assign(contents, de_BidirectionalOutputPayloadPart(data, context));
1997
- return contents;
1998
- };
1999
- const de_ContentBlockDeltaEvent_event = async (output, context) => {
2000
- const contents = {};
2001
- const data = await core$1.parseJsonBody(output.body, context);
2002
- Object.assign(contents, de_ContentBlockDeltaEvent(data, context));
2003
- return contents;
2004
- };
2005
- const de_ContentBlockStartEvent_event = async (output, context) => {
2006
- const contents = {};
2007
- const data = await core$1.parseJsonBody(output.body, context);
2008
- Object.assign(contents, smithyClient._json(data));
2009
- return contents;
2010
- };
2011
- const de_ContentBlockStopEvent_event = async (output, context) => {
2012
- const contents = {};
2013
- const data = await core$1.parseJsonBody(output.body, context);
2014
- Object.assign(contents, smithyClient._json(data));
2015
- return contents;
2016
- };
2017
- const de_ConverseStreamMetadataEvent_event = async (output, context) => {
2018
- const contents = {};
2019
- const data = await core$1.parseJsonBody(output.body, context);
2020
- Object.assign(contents, de_ConverseStreamMetadataEvent(data));
2021
- return contents;
2022
- };
2023
- const de_InternalServerException_event = async (output, context) => {
2024
- const parsedOutput = {
2025
- ...output,
2026
- body: await core$1.parseJsonBody(output.body, context),
2027
- };
2028
- return de_InternalServerExceptionRes(parsedOutput);
2029
- };
2030
- const de_MessageStartEvent_event = async (output, context) => {
2031
- const contents = {};
2032
- const data = await core$1.parseJsonBody(output.body, context);
2033
- Object.assign(contents, smithyClient._json(data));
2034
- return contents;
2035
- };
2036
- const de_MessageStopEvent_event = async (output, context) => {
2037
- const contents = {};
2038
- const data = await core$1.parseJsonBody(output.body, context);
2039
- Object.assign(contents, de_MessageStopEvent(data));
2040
- return contents;
2041
- };
2042
- const de_ModelStreamErrorException_event = async (output, context) => {
2043
- const parsedOutput = {
2044
- ...output,
2045
- body: await core$1.parseJsonBody(output.body, context),
2046
- };
2047
- return de_ModelStreamErrorExceptionRes(parsedOutput);
2048
- };
2049
- const de_ModelTimeoutException_event = async (output, context) => {
2050
- const parsedOutput = {
2051
- ...output,
2052
- body: await core$1.parseJsonBody(output.body, context),
2053
- };
2054
- return de_ModelTimeoutExceptionRes(parsedOutput);
2055
- };
2056
- const de_PayloadPart_event = async (output, context) => {
2057
- const contents = {};
2058
- const data = await core$1.parseJsonBody(output.body, context);
2059
- Object.assign(contents, de_PayloadPart(data, context));
2060
- return contents;
2061
- };
2062
- const de_ServiceUnavailableException_event = async (output, context) => {
2063
- const parsedOutput = {
2064
- ...output,
2065
- body: await core$1.parseJsonBody(output.body, context),
2066
- };
2067
- return de_ServiceUnavailableExceptionRes(parsedOutput);
2068
- };
2069
- const de_ThrottlingException_event = async (output, context) => {
2070
- const parsedOutput = {
2071
- ...output,
2072
- body: await core$1.parseJsonBody(output.body, context),
2073
- };
2074
- return de_ThrottlingExceptionRes(parsedOutput);
2075
- };
2076
- const de_ValidationException_event = async (output, context) => {
2077
- const parsedOutput = {
2078
- ...output,
2079
- body: await core$1.parseJsonBody(output.body, context),
2080
- };
2081
- return de_ValidationExceptionRes(parsedOutput);
2082
- };
2083
- const se_BidirectionalInputPayloadPart = (input, context) => {
2084
- return smithyClient.take(input, {
2085
- bytes: context.base64Encoder,
2086
- });
2087
- };
2088
- const se_ContentBlock = (input, context) => {
2089
- return exports.ContentBlock.visit(input, {
2090
- cachePoint: (value) => ({ cachePoint: smithyClient._json(value) }),
2091
- citationsContent: (value) => ({ citationsContent: smithyClient._json(value) }),
2092
- document: (value) => ({ document: se_DocumentBlock(value, context) }),
2093
- guardContent: (value) => ({ guardContent: se_GuardrailConverseContentBlock(value, context) }),
2094
- image: (value) => ({ image: se_ImageBlock(value, context) }),
2095
- reasoningContent: (value) => ({ reasoningContent: se_ReasoningContentBlock(value, context) }),
2096
- text: (value) => ({ text: value }),
2097
- toolResult: (value) => ({ toolResult: se_ToolResultBlock(value, context) }),
2098
- toolUse: (value) => ({ toolUse: se_ToolUseBlock(value) }),
2099
- video: (value) => ({ video: se_VideoBlock(value, context) }),
2100
- _: (name, value) => ({ [name]: value }),
2101
- });
2102
- };
2103
- const se_ContentBlocks = (input, context) => {
2104
- return input
2105
- .filter((e) => e != null)
2106
- .map((entry) => {
2107
- return se_ContentBlock(entry, context);
2108
- });
2109
- };
2110
- const se_ConverseTokensRequest = (input, context) => {
2111
- return smithyClient.take(input, {
2112
- messages: (_) => se_Messages(_, context),
2113
- system: (_) => se_SystemContentBlocks(_, context),
2114
- });
2115
- };
2116
- const se_CountTokensInput = (input, context) => {
2117
- return exports.CountTokensInput.visit(input, {
2118
- converse: (value) => ({ converse: se_ConverseTokensRequest(value, context) }),
2119
- invokeModel: (value) => ({ invokeModel: se_InvokeModelTokensRequest(value, context) }),
2120
- _: (name, value) => ({ [name]: value }),
2121
- });
2122
- };
2123
- const se_DocumentBlock = (input, context) => {
2124
- return smithyClient.take(input, {
2125
- citations: smithyClient._json,
2126
- context: [],
2127
- format: [],
2128
- name: [],
2129
- source: (_) => se_DocumentSource(_, context),
2130
- });
2131
- };
2132
- const se_DocumentSource = (input, context) => {
2133
- return exports.DocumentSource.visit(input, {
2134
- bytes: (value) => ({ bytes: context.base64Encoder(value) }),
2135
- content: (value) => ({ content: smithyClient._json(value) }),
2136
- s3Location: (value) => ({ s3Location: smithyClient._json(value) }),
2137
- text: (value) => ({ text: value }),
2138
- _: (name, value) => ({ [name]: value }),
2139
- });
2140
- };
2141
- const se_GuardrailContentBlock = (input, context) => {
2142
- return exports.GuardrailContentBlock.visit(input, {
2143
- image: (value) => ({ image: se_GuardrailImageBlock(value, context) }),
2144
- text: (value) => ({ text: smithyClient._json(value) }),
2145
- _: (name, value) => ({ [name]: value }),
2146
- });
2147
- };
2148
- const se_GuardrailContentBlockList = (input, context) => {
2149
- return input
2150
- .filter((e) => e != null)
2151
- .map((entry) => {
2152
- return se_GuardrailContentBlock(entry, context);
2153
- });
2154
- };
2155
- const se_GuardrailConverseContentBlock = (input, context) => {
2156
- return exports.GuardrailConverseContentBlock.visit(input, {
2157
- image: (value) => ({ image: se_GuardrailConverseImageBlock(value, context) }),
2158
- text: (value) => ({ text: smithyClient._json(value) }),
2159
- _: (name, value) => ({ [name]: value }),
2160
- });
2161
- };
2162
- const se_GuardrailConverseImageBlock = (input, context) => {
2163
- return smithyClient.take(input, {
2164
- format: [],
2165
- source: (_) => se_GuardrailConverseImageSource(_, context),
2166
- });
2167
- };
2168
- const se_GuardrailConverseImageSource = (input, context) => {
2169
- return exports.GuardrailConverseImageSource.visit(input, {
2170
- bytes: (value) => ({ bytes: context.base64Encoder(value) }),
2171
- _: (name, value) => ({ [name]: value }),
2172
- });
2173
- };
2174
- const se_GuardrailImageBlock = (input, context) => {
2175
- return smithyClient.take(input, {
2176
- format: [],
2177
- source: (_) => se_GuardrailImageSource(_, context),
2178
- });
2179
- };
2180
- const se_GuardrailImageSource = (input, context) => {
2181
- return exports.GuardrailImageSource.visit(input, {
2182
- bytes: (value) => ({ bytes: context.base64Encoder(value) }),
2183
- _: (name, value) => ({ [name]: value }),
2184
- });
2185
- };
2186
- const se_ImageBlock = (input, context) => {
2187
- return smithyClient.take(input, {
2188
- format: [],
2189
- source: (_) => se_ImageSource(_, context),
2190
- });
2191
- };
2192
- const se_ImageSource = (input, context) => {
2193
- return exports.ImageSource.visit(input, {
2194
- bytes: (value) => ({ bytes: context.base64Encoder(value) }),
2195
- s3Location: (value) => ({ s3Location: smithyClient._json(value) }),
2196
- _: (name, value) => ({ [name]: value }),
2197
- });
2198
- };
2199
- const se_InferenceConfiguration = (input, context) => {
2200
- return smithyClient.take(input, {
2201
- maxTokens: [],
2202
- stopSequences: smithyClient._json,
2203
- temperature: smithyClient.serializeFloat,
2204
- topP: smithyClient.serializeFloat,
2205
- });
2206
- };
2207
- const se_InvokeModelTokensRequest = (input, context) => {
2208
- return smithyClient.take(input, {
2209
- body: context.base64Encoder,
2210
- });
2211
- };
2212
- const se_Message = (input, context) => {
2213
- return smithyClient.take(input, {
2214
- content: (_) => se_ContentBlocks(_, context),
2215
- role: [],
2216
- });
2217
- };
2218
- const se_Messages = (input, context) => {
2219
- return input
2220
- .filter((e) => e != null)
2221
- .map((entry) => {
2222
- return se_Message(entry, context);
2223
- });
2224
- };
2225
- const se_ModelInputPayload = (input, context) => {
2226
- return input;
2227
- };
2228
- const se_ReasoningContentBlock = (input, context) => {
2229
- return exports.ReasoningContentBlock.visit(input, {
2230
- reasoningText: (value) => ({ reasoningText: smithyClient._json(value) }),
2231
- redactedContent: (value) => ({ redactedContent: context.base64Encoder(value) }),
2232
- _: (name, value) => ({ [name]: value }),
2233
- });
2234
- };
2235
- const se_SystemContentBlock = (input, context) => {
2236
- return exports.SystemContentBlock.visit(input, {
2237
- cachePoint: (value) => ({ cachePoint: smithyClient._json(value) }),
2238
- guardContent: (value) => ({ guardContent: se_GuardrailConverseContentBlock(value, context) }),
2239
- text: (value) => ({ text: value }),
2240
- _: (name, value) => ({ [name]: value }),
2241
- });
2242
- };
2243
- const se_SystemContentBlocks = (input, context) => {
2244
- return input
2245
- .filter((e) => e != null)
2246
- .map((entry) => {
2247
- return se_SystemContentBlock(entry, context);
2248
- });
2249
- };
2250
- const se_Tool = (input, context) => {
2251
- return exports.Tool.visit(input, {
2252
- cachePoint: (value) => ({ cachePoint: smithyClient._json(value) }),
2253
- systemTool: (value) => ({ systemTool: smithyClient._json(value) }),
2254
- toolSpec: (value) => ({ toolSpec: se_ToolSpecification(value) }),
2255
- _: (name, value) => ({ [name]: value }),
2256
- });
2257
- };
2258
- const se_ToolConfiguration = (input, context) => {
2259
- return smithyClient.take(input, {
2260
- toolChoice: smithyClient._json,
2261
- tools: (_) => se_Tools(_),
2262
- });
2263
- };
2264
- const se_ToolInputSchema = (input, context) => {
2265
- return exports.ToolInputSchema.visit(input, {
2266
- json: (value) => ({ json: se_Document(value) }),
2267
- _: (name, value) => ({ [name]: value }),
2268
- });
2269
- };
2270
- const se_ToolResultBlock = (input, context) => {
2271
- return smithyClient.take(input, {
2272
- content: (_) => se_ToolResultContentBlocks(_, context),
2273
- status: [],
2274
- toolUseId: [],
2275
- type: [],
2276
- });
2277
- };
2278
- const se_ToolResultContentBlock = (input, context) => {
2279
- return exports.ToolResultContentBlock.visit(input, {
2280
- document: (value) => ({ document: se_DocumentBlock(value, context) }),
2281
- image: (value) => ({ image: se_ImageBlock(value, context) }),
2282
- json: (value) => ({ json: se_Document(value) }),
2283
- text: (value) => ({ text: value }),
2284
- video: (value) => ({ video: se_VideoBlock(value, context) }),
2285
- _: (name, value) => ({ [name]: value }),
2286
- });
2287
- };
2288
- const se_ToolResultContentBlocks = (input, context) => {
2289
- return input
2290
- .filter((e) => e != null)
2291
- .map((entry) => {
2292
- return se_ToolResultContentBlock(entry, context);
2293
- });
2294
- };
2295
- const se_Tools = (input, context) => {
2296
- return input
2297
- .filter((e) => e != null)
2298
- .map((entry) => {
2299
- return se_Tool(entry);
2300
- });
2301
- };
2302
- const se_ToolSpecification = (input, context) => {
2303
- return smithyClient.take(input, {
2304
- description: [],
2305
- inputSchema: (_) => se_ToolInputSchema(_),
2306
- name: [],
2307
- });
2308
- };
2309
- const se_ToolUseBlock = (input, context) => {
2310
- return smithyClient.take(input, {
2311
- input: (_) => se_Document(_),
2312
- name: [],
2313
- toolUseId: [],
2314
- type: [],
2315
- });
2316
- };
2317
- const se_VideoBlock = (input, context) => {
2318
- return smithyClient.take(input, {
2319
- format: [],
2320
- source: (_) => se_VideoSource(_, context),
2321
- });
2322
- };
2323
- const se_VideoSource = (input, context) => {
2324
- return exports.VideoSource.visit(input, {
2325
- bytes: (value) => ({ bytes: context.base64Encoder(value) }),
2326
- s3Location: (value) => ({ s3Location: smithyClient._json(value) }),
2327
- _: (name, value) => ({ [name]: value }),
2328
- });
2329
- };
2330
- const se_Document = (input, context) => {
2331
- return input;
2332
- };
2333
- const de_AsyncInvokeSummaries = (output, context) => {
2334
- const retVal = (output || [])
2335
- .filter((e) => e != null)
2336
- .map((entry) => {
2337
- return de_AsyncInvokeSummary(entry);
2338
- });
2339
- return retVal;
2340
- };
2341
- const de_AsyncInvokeSummary = (output, context) => {
2342
- return smithyClient.take(output, {
2343
- clientRequestToken: smithyClient.expectString,
2344
- endTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
2345
- failureMessage: smithyClient.expectString,
2346
- invocationArn: smithyClient.expectString,
2347
- lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
2348
- modelArn: smithyClient.expectString,
2349
- outputDataConfig: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
2350
- status: smithyClient.expectString,
2351
- submitTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
2352
- });
2353
- };
2354
- const de_BidirectionalOutputPayloadPart = (output, context) => {
2355
- return smithyClient.take(output, {
2356
- bytes: context.base64Decoder,
2357
- });
2358
- };
2359
- const de_ContentBlock = (output, context) => {
2360
- if (output.cachePoint != null) {
2361
- return {
2362
- cachePoint: smithyClient._json(output.cachePoint),
2363
- };
2364
- }
2365
- if (output.citationsContent != null) {
2366
- return {
2367
- citationsContent: smithyClient._json(output.citationsContent),
2368
- };
2369
- }
2370
- if (output.document != null) {
2371
- return {
2372
- document: de_DocumentBlock(output.document, context),
2373
- };
2374
- }
2375
- if (output.guardContent != null) {
2376
- return {
2377
- guardContent: de_GuardrailConverseContentBlock(core$1.awsExpectUnion(output.guardContent), context),
2378
- };
2379
- }
2380
- if (output.image != null) {
2381
- return {
2382
- image: de_ImageBlock(output.image, context),
2383
- };
2384
- }
2385
- if (output.reasoningContent != null) {
2386
- return {
2387
- reasoningContent: de_ReasoningContentBlock(core$1.awsExpectUnion(output.reasoningContent), context),
2388
- };
2389
- }
2390
- if (smithyClient.expectString(output.text) !== undefined) {
2391
- return { text: smithyClient.expectString(output.text) };
2392
- }
2393
- if (output.toolResult != null) {
2394
- return {
2395
- toolResult: de_ToolResultBlock(output.toolResult, context),
2396
- };
2397
- }
2398
- if (output.toolUse != null) {
2399
- return {
2400
- toolUse: de_ToolUseBlock(output.toolUse),
2401
- };
2402
- }
2403
- if (output.video != null) {
2404
- return {
2405
- video: de_VideoBlock(output.video, context),
2406
- };
2407
- }
2408
- return { $unknown: Object.entries(output)[0] };
2409
- };
2410
- const de_ContentBlockDelta = (output, context) => {
2411
- if (output.citation != null) {
2412
- return {
2413
- citation: smithyClient._json(output.citation),
2414
- };
2415
- }
2416
- if (output.reasoningContent != null) {
2417
- return {
2418
- reasoningContent: de_ReasoningContentBlockDelta(core$1.awsExpectUnion(output.reasoningContent), context),
2419
- };
2420
- }
2421
- if (smithyClient.expectString(output.text) !== undefined) {
2422
- return { text: smithyClient.expectString(output.text) };
2423
- }
2424
- if (output.toolResult != null) {
2425
- return {
2426
- toolResult: smithyClient._json(output.toolResult),
2427
- };
2428
- }
2429
- if (output.toolUse != null) {
2430
- return {
2431
- toolUse: smithyClient._json(output.toolUse),
2432
- };
2433
- }
2434
- return { $unknown: Object.entries(output)[0] };
2435
- };
2436
- const de_ContentBlockDeltaEvent = (output, context) => {
2437
- return smithyClient.take(output, {
2438
- contentBlockIndex: smithyClient.expectInt32,
2439
- delta: (_) => de_ContentBlockDelta(core$1.awsExpectUnion(_), context),
2440
- });
2441
- };
2442
- const de_ContentBlocks = (output, context) => {
2443
- const retVal = (output || [])
2444
- .filter((e) => e != null)
2445
- .map((entry) => {
2446
- return de_ContentBlock(core$1.awsExpectUnion(entry), context);
2447
- });
2448
- return retVal;
2449
- };
2450
- const de_ConverseOutput = (output, context) => {
2451
- if (output.message != null) {
2452
- return {
2453
- message: de_Message(output.message, context),
2454
- };
2455
- }
2456
- return { $unknown: Object.entries(output)[0] };
2457
- };
2458
- const de_ConverseStreamMetadataEvent = (output, context) => {
2459
- return smithyClient.take(output, {
2460
- metrics: smithyClient._json,
2461
- performanceConfig: smithyClient._json,
2462
- trace: (_) => de_ConverseStreamTrace(_),
2463
- usage: smithyClient._json,
2464
- });
2465
- };
2466
- const de_ConverseStreamTrace = (output, context) => {
2467
- return smithyClient.take(output, {
2468
- guardrail: (_) => de_GuardrailTraceAssessment(_),
2469
- promptRouter: smithyClient._json,
2470
- });
2471
- };
2472
- const de_ConverseTrace = (output, context) => {
2473
- return smithyClient.take(output, {
2474
- guardrail: (_) => de_GuardrailTraceAssessment(_),
2475
- promptRouter: smithyClient._json,
2476
- });
2477
- };
2478
- const de_DocumentBlock = (output, context) => {
2479
- return smithyClient.take(output, {
2480
- citations: smithyClient._json,
2481
- context: smithyClient.expectString,
2482
- format: smithyClient.expectString,
2483
- name: smithyClient.expectString,
2484
- source: (_) => de_DocumentSource(core$1.awsExpectUnion(_), context),
2485
- });
2486
- };
2487
- const de_DocumentSource = (output, context) => {
2488
- if (output.bytes != null) {
2489
- return {
2490
- bytes: context.base64Decoder(output.bytes),
2491
- };
2492
- }
2493
- if (output.content != null) {
2494
- return {
2495
- content: smithyClient._json(output.content),
2496
- };
2497
- }
2498
- if (output.s3Location != null) {
2499
- return {
2500
- s3Location: smithyClient._json(output.s3Location),
2501
- };
2502
- }
2503
- if (smithyClient.expectString(output.text) !== undefined) {
2504
- return { text: smithyClient.expectString(output.text) };
2505
- }
2506
- return { $unknown: Object.entries(output)[0] };
2507
- };
2508
- const de_GuardrailAssessment = (output, context) => {
2509
- return smithyClient.take(output, {
2510
- automatedReasoningPolicy: (_) => de_GuardrailAutomatedReasoningPolicyAssessment(_),
2511
- contentPolicy: smithyClient._json,
2512
- contextualGroundingPolicy: (_) => de_GuardrailContextualGroundingPolicyAssessment(_),
2513
- invocationMetrics: smithyClient._json,
2514
- sensitiveInformationPolicy: smithyClient._json,
2515
- topicPolicy: smithyClient._json,
2516
- wordPolicy: smithyClient._json,
2517
- });
2518
- };
2519
- const de_GuardrailAssessmentList = (output, context) => {
2520
- const retVal = (output || [])
2521
- .filter((e) => e != null)
2522
- .map((entry) => {
2523
- return de_GuardrailAssessment(entry);
2524
- });
2525
- return retVal;
2526
- };
2527
- const de_GuardrailAssessmentListMap = (output, context) => {
2528
- return Object.entries(output).reduce((acc, [key, value]) => {
2529
- if (value === null) {
2530
- return acc;
2531
- }
2532
- acc[key] = de_GuardrailAssessmentList(value);
2533
- return acc;
2534
- }, {});
2535
- };
2536
- const de_GuardrailAssessmentMap = (output, context) => {
2537
- return Object.entries(output).reduce((acc, [key, value]) => {
2538
- if (value === null) {
2539
- return acc;
2540
- }
2541
- acc[key] = de_GuardrailAssessment(value);
2542
- return acc;
2543
- }, {});
2544
- };
2545
- const de_GuardrailAutomatedReasoningFinding = (output, context) => {
2546
- if (output.impossible != null) {
2547
- return {
2548
- impossible: de_GuardrailAutomatedReasoningImpossibleFinding(output.impossible),
2549
- };
2550
- }
2551
- if (output.invalid != null) {
2552
- return {
2553
- invalid: de_GuardrailAutomatedReasoningInvalidFinding(output.invalid),
2554
- };
2555
- }
2556
- if (output.noTranslations != null) {
2557
- return {
2558
- noTranslations: smithyClient._json(output.noTranslations),
2559
- };
2560
- }
2561
- if (output.satisfiable != null) {
2562
- return {
2563
- satisfiable: de_GuardrailAutomatedReasoningSatisfiableFinding(output.satisfiable),
2564
- };
2565
- }
2566
- if (output.tooComplex != null) {
2567
- return {
2568
- tooComplex: smithyClient._json(output.tooComplex),
2569
- };
2570
- }
2571
- if (output.translationAmbiguous != null) {
2572
- return {
2573
- translationAmbiguous: de_GuardrailAutomatedReasoningTranslationAmbiguousFinding(output.translationAmbiguous),
2574
- };
2575
- }
2576
- if (output.valid != null) {
2577
- return {
2578
- valid: de_GuardrailAutomatedReasoningValidFinding(output.valid),
2579
- };
2580
- }
2581
- return { $unknown: Object.entries(output)[0] };
2582
- };
2583
- const de_GuardrailAutomatedReasoningFindingList = (output, context) => {
2584
- const retVal = (output || [])
2585
- .filter((e) => e != null)
2586
- .map((entry) => {
2587
- return de_GuardrailAutomatedReasoningFinding(core$1.awsExpectUnion(entry));
2588
- });
2589
- return retVal;
2590
- };
2591
- const de_GuardrailAutomatedReasoningImpossibleFinding = (output, context) => {
2592
- return smithyClient.take(output, {
2593
- contradictingRules: smithyClient._json,
2594
- logicWarning: smithyClient._json,
2595
- translation: (_) => de_GuardrailAutomatedReasoningTranslation(_),
2596
- });
2597
- };
2598
- const de_GuardrailAutomatedReasoningInvalidFinding = (output, context) => {
2599
- return smithyClient.take(output, {
2600
- contradictingRules: smithyClient._json,
2601
- logicWarning: smithyClient._json,
2602
- translation: (_) => de_GuardrailAutomatedReasoningTranslation(_),
2603
- });
2604
- };
2605
- const de_GuardrailAutomatedReasoningPolicyAssessment = (output, context) => {
2606
- return smithyClient.take(output, {
2607
- findings: (_) => de_GuardrailAutomatedReasoningFindingList(_),
2608
- });
2609
- };
2610
- const de_GuardrailAutomatedReasoningSatisfiableFinding = (output, context) => {
2611
- return smithyClient.take(output, {
2612
- claimsFalseScenario: smithyClient._json,
2613
- claimsTrueScenario: smithyClient._json,
2614
- logicWarning: smithyClient._json,
2615
- translation: (_) => de_GuardrailAutomatedReasoningTranslation(_),
2616
- });
2617
- };
2618
- const de_GuardrailAutomatedReasoningTranslation = (output, context) => {
2619
- return smithyClient.take(output, {
2620
- claims: smithyClient._json,
2621
- confidence: smithyClient.limitedParseDouble,
2622
- premises: smithyClient._json,
2623
- untranslatedClaims: smithyClient._json,
2624
- untranslatedPremises: smithyClient._json,
2625
- });
2626
- };
2627
- const de_GuardrailAutomatedReasoningTranslationAmbiguousFinding = (output, context) => {
2628
- return smithyClient.take(output, {
2629
- differenceScenarios: smithyClient._json,
2630
- options: (_) => de_GuardrailAutomatedReasoningTranslationOptionList(_),
2631
- });
2632
- };
2633
- const de_GuardrailAutomatedReasoningTranslationList = (output, context) => {
2634
- const retVal = (output || [])
2635
- .filter((e) => e != null)
2636
- .map((entry) => {
2637
- return de_GuardrailAutomatedReasoningTranslation(entry);
2638
- });
2639
- return retVal;
2640
- };
2641
- const de_GuardrailAutomatedReasoningTranslationOption = (output, context) => {
2642
- return smithyClient.take(output, {
2643
- translations: (_) => de_GuardrailAutomatedReasoningTranslationList(_),
2644
- });
2645
- };
2646
- const de_GuardrailAutomatedReasoningTranslationOptionList = (output, context) => {
2647
- const retVal = (output || [])
2648
- .filter((e) => e != null)
2649
- .map((entry) => {
2650
- return de_GuardrailAutomatedReasoningTranslationOption(entry);
2651
- });
2652
- return retVal;
2653
- };
2654
- const de_GuardrailAutomatedReasoningValidFinding = (output, context) => {
2655
- return smithyClient.take(output, {
2656
- claimsTrueScenario: smithyClient._json,
2657
- logicWarning: smithyClient._json,
2658
- supportingRules: smithyClient._json,
2659
- translation: (_) => de_GuardrailAutomatedReasoningTranslation(_),
2660
- });
2661
- };
2662
- const de_GuardrailContextualGroundingFilter = (output, context) => {
2663
- return smithyClient.take(output, {
2664
- action: smithyClient.expectString,
2665
- detected: smithyClient.expectBoolean,
2666
- score: smithyClient.limitedParseDouble,
2667
- threshold: smithyClient.limitedParseDouble,
2668
- type: smithyClient.expectString,
2669
- });
2670
- };
2671
- const de_GuardrailContextualGroundingFilters = (output, context) => {
2672
- const retVal = (output || [])
2673
- .filter((e) => e != null)
2674
- .map((entry) => {
2675
- return de_GuardrailContextualGroundingFilter(entry);
2676
- });
2677
- return retVal;
2678
- };
2679
- const de_GuardrailContextualGroundingPolicyAssessment = (output, context) => {
2680
- return smithyClient.take(output, {
2681
- filters: (_) => de_GuardrailContextualGroundingFilters(_),
2682
- });
2683
- };
2684
- const de_GuardrailConverseContentBlock = (output, context) => {
2685
- if (output.image != null) {
2686
- return {
2687
- image: de_GuardrailConverseImageBlock(output.image, context),
2688
- };
2689
- }
2690
- if (output.text != null) {
2691
- return {
2692
- text: smithyClient._json(output.text),
2693
- };
2694
- }
2695
- return { $unknown: Object.entries(output)[0] };
2696
- };
2697
- const de_GuardrailConverseImageBlock = (output, context) => {
2698
- return smithyClient.take(output, {
2699
- format: smithyClient.expectString,
2700
- source: (_) => de_GuardrailConverseImageSource(core$1.awsExpectUnion(_), context),
2701
- });
2702
- };
2703
- const de_GuardrailConverseImageSource = (output, context) => {
2704
- if (output.bytes != null) {
2705
- return {
2706
- bytes: context.base64Decoder(output.bytes),
2707
- };
2708
- }
2709
- return { $unknown: Object.entries(output)[0] };
2710
- };
2711
- const de_GuardrailTraceAssessment = (output, context) => {
2712
- return smithyClient.take(output, {
2713
- actionReason: smithyClient.expectString,
2714
- inputAssessment: (_) => de_GuardrailAssessmentMap(_),
2715
- modelOutput: smithyClient._json,
2716
- outputAssessments: (_) => de_GuardrailAssessmentListMap(_),
2717
- });
2718
- };
2719
- const de_ImageBlock = (output, context) => {
2720
- return smithyClient.take(output, {
2721
- format: smithyClient.expectString,
2722
- source: (_) => de_ImageSource(core$1.awsExpectUnion(_), context),
2723
- });
2724
- };
2725
- const de_ImageSource = (output, context) => {
2726
- if (output.bytes != null) {
2727
- return {
2728
- bytes: context.base64Decoder(output.bytes),
2729
- };
2730
- }
2731
- if (output.s3Location != null) {
2732
- return {
2733
- s3Location: smithyClient._json(output.s3Location),
2734
- };
2735
- }
2736
- return { $unknown: Object.entries(output)[0] };
2737
- };
2738
- const de_Message = (output, context) => {
2739
- return smithyClient.take(output, {
2740
- content: (_) => de_ContentBlocks(_, context),
2741
- role: smithyClient.expectString,
2742
- });
2743
- };
2744
- const de_MessageStopEvent = (output, context) => {
2745
- return smithyClient.take(output, {
2746
- additionalModelResponseFields: (_) => de_Document(_),
2747
- stopReason: smithyClient.expectString,
2748
- });
2749
- };
2750
- const de_PayloadPart = (output, context) => {
2751
- return smithyClient.take(output, {
2752
- bytes: context.base64Decoder,
2753
- });
2754
- };
2755
- const de_ReasoningContentBlock = (output, context) => {
2756
- if (output.reasoningText != null) {
2757
- return {
2758
- reasoningText: smithyClient._json(output.reasoningText),
2759
- };
2760
- }
2761
- if (output.redactedContent != null) {
2762
- return {
2763
- redactedContent: context.base64Decoder(output.redactedContent),
2764
- };
2765
- }
2766
- return { $unknown: Object.entries(output)[0] };
2767
- };
2768
- const de_ReasoningContentBlockDelta = (output, context) => {
2769
- if (output.redactedContent != null) {
2770
- return {
2771
- redactedContent: context.base64Decoder(output.redactedContent),
2772
- };
2773
- }
2774
- if (smithyClient.expectString(output.signature) !== undefined) {
2775
- return { signature: smithyClient.expectString(output.signature) };
2776
- }
2777
- if (smithyClient.expectString(output.text) !== undefined) {
2778
- return { text: smithyClient.expectString(output.text) };
2779
- }
2780
- return { $unknown: Object.entries(output)[0] };
2781
- };
2782
- const de_ToolResultBlock = (output, context) => {
2783
- return smithyClient.take(output, {
2784
- content: (_) => de_ToolResultContentBlocks(_, context),
2785
- status: smithyClient.expectString,
2786
- toolUseId: smithyClient.expectString,
2787
- type: smithyClient.expectString,
2788
- });
2789
- };
2790
- const de_ToolResultContentBlock = (output, context) => {
2791
- if (output.document != null) {
2792
- return {
2793
- document: de_DocumentBlock(output.document, context),
2794
- };
2795
- }
2796
- if (output.image != null) {
2797
- return {
2798
- image: de_ImageBlock(output.image, context),
2799
- };
2800
- }
2801
- if (output.json != null) {
2802
- return {
2803
- json: de_Document(output.json),
2804
- };
2805
- }
2806
- if (smithyClient.expectString(output.text) !== undefined) {
2807
- return { text: smithyClient.expectString(output.text) };
2808
- }
2809
- if (output.video != null) {
2810
- return {
2811
- video: de_VideoBlock(output.video, context),
2812
- };
2813
- }
2814
- return { $unknown: Object.entries(output)[0] };
2815
- };
2816
- const de_ToolResultContentBlocks = (output, context) => {
2817
- const retVal = (output || [])
2818
- .filter((e) => e != null)
2819
- .map((entry) => {
2820
- return de_ToolResultContentBlock(core$1.awsExpectUnion(entry), context);
2821
- });
2822
- return retVal;
2823
- };
2824
- const de_ToolUseBlock = (output, context) => {
2825
- return smithyClient.take(output, {
2826
- input: (_) => de_Document(_),
2827
- name: smithyClient.expectString,
2828
- toolUseId: smithyClient.expectString,
2829
- type: smithyClient.expectString,
2830
- });
2831
- };
2832
- const de_VideoBlock = (output, context) => {
2833
- return smithyClient.take(output, {
2834
- format: smithyClient.expectString,
2835
- source: (_) => de_VideoSource(core$1.awsExpectUnion(_), context),
2836
- });
2837
- };
2838
- const de_VideoSource = (output, context) => {
2839
- if (output.bytes != null) {
2840
- return {
2841
- bytes: context.base64Decoder(output.bytes),
2842
- };
2843
- }
2844
- if (output.s3Location != null) {
2845
- return {
2846
- s3Location: smithyClient._json(output.s3Location),
2847
- };
2848
- }
2849
- return { $unknown: Object.entries(output)[0] };
2850
- };
2851
- const de_Document = (output, context) => {
2852
- return output;
2853
- };
2854
- const deserializeMetadata = (output) => ({
2855
- httpStatusCode: output.statusCode,
2856
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2857
- extendedRequestId: output.headers["x-amz-id-2"],
2858
- cfId: output.headers["x-amz-cf-id"],
2859
- });
2860
- const _a = "accept";
868
+ const _A = "Accept";
869
+ const _ADE = "AccessDeniedException";
870
+ const _AG = "ApplyGuardrail";
871
+ const _AGR = "ApplyGuardrailRequest";
872
+ const _AGRp = "ApplyGuardrailResponse";
873
+ const _AIM = "AsyncInvokeMessage";
874
+ const _AIODC = "AsyncInvokeOutputDataConfig";
875
+ const _AIS = "AsyncInvokeSummary";
876
+ const _AISODC = "AsyncInvokeS3OutputDataConfig";
877
+ const _AISs = "AsyncInvokeSummaries";
878
+ const _ATC = "AnyToolChoice";
879
+ const _ATCu = "AutoToolChoice";
880
+ const _B = "Body";
881
+ const _BIPP = "BidirectionalInputPayloadPart";
882
+ const _BOPP = "BidirectionalOutputPayloadPart";
883
+ const _C = "Citation";
884
+ const _CB = "ContentBlocks";
885
+ const _CBD = "ContentBlockDelta";
886
+ const _CBDE = "ContentBlockDeltaEvent";
887
+ const _CBS = "ContentBlockStart";
888
+ const _CBSE = "ContentBlockStartEvent";
889
+ const _CBSEo = "ContentBlockStopEvent";
890
+ const _CBo = "ContentBlock";
891
+ const _CC = "CitationsConfig";
892
+ const _CCB = "CitationsContentBlock";
893
+ const _CD = "CitationsDelta";
894
+ const _CE = "ConflictException";
895
+ const _CGC = "CitationGeneratedContent";
896
+ const _CGCL = "CitationGeneratedContentList";
897
+ const _CL = "CitationLocation";
898
+ const _CM = "ConverseMetrics";
899
+ const _CO = "ConverseOutput";
900
+ const _CPB = "CachePointBlock";
901
+ const _CR = "ConverseRequest";
902
+ const _CRo = "ConverseResponse";
903
+ const _CS = "ConverseStream";
904
+ const _CSC = "CitationSourceContent";
905
+ const _CSCD = "CitationSourceContentDelta";
906
+ const _CSCL = "CitationSourceContentList";
907
+ const _CSCLD = "CitationSourceContentListDelta";
908
+ const _CSM = "ConverseStreamMetrics";
909
+ const _CSME = "ConverseStreamMetadataEvent";
910
+ const _CSO = "ConverseStreamOutput";
911
+ const _CSR = "ConverseStreamRequest";
912
+ const _CSRo = "ConverseStreamResponse";
913
+ const _CST = "ConverseStreamTrace";
914
+ const _CT = "ConverseTrace";
915
+ const _CTI = "CountTokensInput";
916
+ const _CTR = "ConverseTokensRequest";
917
+ const _CTRo = "CountTokensRequest";
918
+ const _CTRou = "CountTokensResponse";
919
+ const _CT_ = "Content-Type";
920
+ const _CTo = "CountTokens";
921
+ const _Ci = "Citations";
922
+ const _Co = "Converse";
923
+ const _DB = "DocumentBlock";
924
+ const _DCB = "DocumentContentBlocks";
925
+ const _DCBo = "DocumentContentBlock";
926
+ const _DCL = "DocumentCharLocation";
927
+ const _DCLo = "DocumentChunkLocation";
928
+ const _DPL = "DocumentPageLocation";
929
+ const _DS = "DocumentSource";
930
+ const _GA = "GuardrailAssessment";
931
+ const _GAI = "GetAsyncInvoke";
932
+ const _GAIR = "GetAsyncInvokeRequest";
933
+ const _GAIRe = "GetAsyncInvokeResponse";
934
+ const _GAL = "GuardrailAssessmentList";
935
+ const _GALM = "GuardrailAssessmentListMap";
936
+ const _GAM = "GuardrailAssessmentMap";
937
+ const _GARDSL = "GuardrailAutomatedReasoningDifferenceScenarioList";
938
+ const _GARF = "GuardrailAutomatedReasoningFinding";
939
+ const _GARFL = "GuardrailAutomatedReasoningFindingList";
940
+ const _GARIF = "GuardrailAutomatedReasoningImpossibleFinding";
941
+ const _GARIFu = "GuardrailAutomatedReasoningInvalidFinding";
942
+ const _GARITR = "GuardrailAutomatedReasoningInputTextReference";
943
+ const _GARITRL = "GuardrailAutomatedReasoningInputTextReferenceList";
944
+ const _GARLW = "GuardrailAutomatedReasoningLogicWarning";
945
+ const _GARNTF = "GuardrailAutomatedReasoningNoTranslationsFinding";
946
+ const _GARPA = "GuardrailAutomatedReasoningPolicyAssessment";
947
+ const _GARR = "GuardrailAutomatedReasoningRule";
948
+ const _GARRL = "GuardrailAutomatedReasoningRuleList";
949
+ const _GARS = "GuardrailAutomatedReasoningScenario";
950
+ const _GARSF = "GuardrailAutomatedReasoningSatisfiableFinding";
951
+ const _GARSL = "GuardrailAutomatedReasoningStatementList";
952
+ const _GARSLC = "GuardrailAutomatedReasoningStatementLogicContent";
953
+ const _GARSNLC = "GuardrailAutomatedReasoningStatementNaturalLanguageContent";
954
+ const _GARSu = "GuardrailAutomatedReasoningStatement";
955
+ const _GART = "GuardrailAutomatedReasoningTranslation";
956
+ const _GARTAF = "GuardrailAutomatedReasoningTranslationAmbiguousFinding";
957
+ const _GARTCF = "GuardrailAutomatedReasoningTooComplexFinding";
958
+ const _GARTL = "GuardrailAutomatedReasoningTranslationList";
959
+ const _GARTO = "GuardrailAutomatedReasoningTranslationOption";
960
+ const _GARTOL = "GuardrailAutomatedReasoningTranslationOptionList";
961
+ const _GARVF = "GuardrailAutomatedReasoningValidFinding";
962
+ const _GC = "GuardrailConfiguration";
963
+ const _GCB = "GuardrailContentBlock";
964
+ const _GCBL = "GuardrailContentBlockList";
965
+ const _GCCB = "GuardrailConverseContentBlock";
966
+ const _GCF = "GuardrailContentFilter";
967
+ const _GCFL = "GuardrailContentFilterList";
968
+ const _GCGF = "GuardrailContextualGroundingFilter";
969
+ const _GCGFu = "GuardrailContextualGroundingFilters";
970
+ const _GCGPA = "GuardrailContextualGroundingPolicyAssessment";
971
+ const _GCIB = "GuardrailConverseImageBlock";
972
+ const _GCIS = "GuardrailConverseImageSource";
973
+ const _GCPA = "GuardrailContentPolicyAssessment";
974
+ const _GCTB = "GuardrailConverseTextBlock";
975
+ const _GCW = "GuardrailCustomWord";
976
+ const _GCWL = "GuardrailCustomWordList";
977
+ const _GCu = "GuardrailCoverage";
978
+ const _GIB = "GuardrailImageBlock";
979
+ const _GIC = "GuardrailImageCoverage";
980
+ const _GIM = "GuardrailInvocationMetrics";
981
+ const _GIS = "GuardrailImageSource";
982
+ const _GMW = "GuardrailManagedWord";
983
+ const _GMWL = "GuardrailManagedWordList";
984
+ const _GOC = "GuardrailOutputContent";
985
+ const _GOCL = "GuardrailOutputContentList";
986
+ const _GPEF = "GuardrailPiiEntityFilter";
987
+ const _GPEFL = "GuardrailPiiEntityFilterList";
988
+ const _GRF = "GuardrailRegexFilter";
989
+ const _GRFL = "GuardrailRegexFilterList";
990
+ const _GSC = "GuardrailStreamConfiguration";
991
+ const _GSIPA = "GuardrailSensitiveInformationPolicyAssessment";
992
+ const _GT = "GuardrailTopic";
993
+ const _GTA = "GuardrailTraceAssessment";
994
+ const _GTB = "GuardrailTextBlock";
995
+ const _GTCC = "GuardrailTextCharactersCoverage";
996
+ const _GTL = "GuardrailTopicList";
997
+ const _GTPA = "GuardrailTopicPolicyAssessment";
998
+ const _GU = "GuardrailUsage";
999
+ const _GWPA = "GuardrailWordPolicyAssessment";
1000
+ const _IB = "ImageBlock";
1001
+ const _IC = "InferenceConfiguration";
1002
+ const _IM = "InvokeModel";
1003
+ const _IMR = "InvokeModelRequest";
1004
+ const _IMRn = "InvokeModelResponse";
1005
+ const _IMTR = "InvokeModelTokensRequest";
1006
+ const _IMWBS = "InvokeModelWithBidirectionalStream";
1007
+ const _IMWBSI = "InvokeModelWithBidirectionalStreamInput";
1008
+ const _IMWBSO = "InvokeModelWithBidirectionalStreamOutput";
1009
+ const _IMWBSR = "InvokeModelWithBidirectionalStreamRequest";
1010
+ const _IMWBSRn = "InvokeModelWithBidirectionalStreamResponse";
1011
+ const _IMWRS = "InvokeModelWithResponseStream";
1012
+ const _IMWRSR = "InvokeModelWithResponseStreamRequest";
1013
+ const _IMWRSRn = "InvokeModelWithResponseStreamResponse";
1014
+ const _IS = "ImageSource";
1015
+ const _ISE = "InternalServerException";
1016
+ const _LAI = "ListAsyncInvokes";
1017
+ const _LAIR = "ListAsyncInvokesRequest";
1018
+ const _LAIRi = "ListAsyncInvokesResponse";
1019
+ const _M = "Message";
1020
+ const _MEE = "ModelErrorException";
1021
+ const _MIP = "ModelInputPayload";
1022
+ const _MNRE = "ModelNotReadyException";
1023
+ const _MSE = "MessageStartEvent";
1024
+ const _MSEE = "ModelStreamErrorException";
1025
+ const _MSEe = "MessageStopEvent";
1026
+ const _MTE = "ModelTimeoutException";
1027
+ const _Me = "Messages";
1028
+ const _PB = "PartBody";
1029
+ const _PC = "PerformanceConfiguration";
1030
+ const _PP = "PayloadPart";
1031
+ const _PRT = "PromptRouterTrace";
1032
+ const _PVM = "PromptVariableMap";
1033
+ const _PVV = "PromptVariableValues";
1034
+ const _RCB = "ReasoningContentBlock";
1035
+ const _RCBD = "ReasoningContentBlockDelta";
1036
+ const _RM = "RequestMetadata";
1037
+ const _RNFE = "ResourceNotFoundException";
1038
+ const _RS = "ResponseStream";
1039
+ const _RTB = "ReasoningTextBlock";
1040
+ const _SAI = "StartAsyncInvoke";
1041
+ const _SAIR = "StartAsyncInvokeRequest";
1042
+ const _SAIRt = "StartAsyncInvokeResponse";
1043
+ const _SCB = "SystemContentBlocks";
1044
+ const _SCBy = "SystemContentBlock";
1045
+ const _SL = "S3Location";
1046
+ const _SQEE = "ServiceQuotaExceededException";
1047
+ const _ST = "SystemTool";
1048
+ const _STC = "SpecificToolChoice";
1049
+ const _SUE = "ServiceUnavailableException";
1050
+ const _T = "Tag";
1051
+ const _TC = "ToolConfiguration";
1052
+ const _TCo = "ToolChoice";
1053
+ const _TE = "ThrottlingException";
1054
+ const _TIS = "ToolInputSchema";
1055
+ const _TL = "TagList";
1056
+ const _TRB = "ToolResultBlock";
1057
+ const _TRBD = "ToolResultBlocksDelta";
1058
+ const _TRBDo = "ToolResultBlockDelta";
1059
+ const _TRBS = "ToolResultBlockStart";
1060
+ const _TRCB = "ToolResultContentBlocks";
1061
+ const _TRCBo = "ToolResultContentBlock";
1062
+ const _TS = "ToolSpecification";
1063
+ const _TU = "TokenUsage";
1064
+ const _TUB = "ToolUseBlock";
1065
+ const _TUBD = "ToolUseBlockDelta";
1066
+ const _TUBS = "ToolUseBlockStart";
1067
+ const _To = "Tools";
1068
+ const _Too = "Tool";
1069
+ const _VB = "VideoBlock";
1070
+ const _VE = "ValidationException";
1071
+ const _VS = "VideoSource";
1072
+ const _WL = "WebLocation";
1073
+ const _XABA = "X-Amzn-Bedrock-Accept";
1074
+ const _XABCT = "X-Amzn-Bedrock-Content-Type";
1075
+ const _XABG = "X-Amzn-Bedrock-GuardrailIdentifier";
1076
+ const _XABG_ = "X-Amzn-Bedrock-GuardrailVersion";
1077
+ const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
1078
+ const _XABT = "X-Amzn-Bedrock-Trace";
1079
+ const _a = "action";
1080
+ const _aIS = "asyncInvokeSummaries";
1081
+ const _aMRF = "additionalModelRequestFields";
1082
+ const _aMRFP = "additionalModelResponseFieldPaths";
1083
+ const _aMRFd = "additionalModelResponseFields";
1084
+ const _aR = "actionReason";
1085
+ const _aRP = "automatedReasoningPolicy";
1086
+ const _aRPU = "automatedReasoningPolicyUnits";
1087
+ const _aRPu = "automatedReasoningPolicies";
1088
+ const _ac = "accept";
1089
+ const _an = "any";
1090
+ const _as = "assessments";
1091
+ const _au = "auto";
1092
+ const _b = "bytes";
1093
+ const _bO = "bucketOwner";
1094
+ const _bo = "body";
1095
+ const _c = "client";
1096
+ const _cBD = "contentBlockDelta";
1097
+ const _cBI = "contentBlockIndex";
1098
+ const _cBS = "contentBlockStart";
1099
+ const _cBSo = "contentBlockStop";
1100
+ const _cC = "citationsContent";
1101
+ const _cFS = "claimsFalseScenario";
1102
+ const _cGP = "contextualGroundingPolicy";
1103
+ const _cGPU = "contextualGroundingPolicyUnits";
1104
+ const _cP = "contentPolicy";
1105
+ const _cPIU = "contentPolicyImageUnits";
1106
+ const _cPU = "contentPolicyUnits";
1107
+ const _cPa = "cachePoint";
1108
+ const _cR = "contradictingRules";
1109
+ const _cRIT = "cacheReadInputTokens";
1110
+ const _cRT = "clientRequestToken";
2861
1111
  const _cT = "contentType";
2862
- const _ct = "content-type";
1112
+ const _cTS = "claimsTrueScenario";
1113
+ const _cW = "customWords";
1114
+ const _cWIT = "cacheWriteInputTokens";
1115
+ const _ch = "chunk";
1116
+ const _ci = "citations";
1117
+ const _cit = "citation";
1118
+ const _cl = "claims";
1119
+ const _co = "content";
1120
+ const _con = "context";
1121
+ const _conf = "confidence";
1122
+ const _conv = "converse";
1123
+ const _d = "delta";
1124
+ const _dC = "documentChar";
1125
+ const _dCo = "documentChunk";
1126
+ const _dI = "documentIndex";
1127
+ const _dP = "documentPage";
1128
+ const _dS = "differenceScenarios";
1129
+ const _de = "detected";
1130
+ const _des = "description";
1131
+ const _do = "domain";
1132
+ const _doc = "document";
1133
+ const _e = "error";
1134
+ const _eT = "endTime";
1135
+ const _en = "enabled";
1136
+ const _end = "end";
1137
+ const _f = "format";
1138
+ const _fM = "failureMessage";
1139
+ const _fS = "filterStrength";
1140
+ const _fi = "findings";
1141
+ const _fil = "filters";
1142
+ const _g = "guardrail";
1143
+ const _gC = "guardrailCoverage";
1144
+ const _gCu = "guardrailConfig";
1145
+ const _gCua = "guardContent";
2863
1146
  const _gI = "guardrailIdentifier";
1147
+ const _gPL = "guardrailProcessingLatency";
2864
1148
  const _gV = "guardrailVersion";
1149
+ const _gu = "guarded";
1150
+ const _h = "http";
1151
+ const _hE = "httpError";
1152
+ const _hH = "httpHeader";
1153
+ const _hQ = "httpQuery";
1154
+ const _i = "input";
1155
+ const _iA = "invocationArn";
1156
+ const _iAn = "inputAssessment";
1157
+ const _iC = "inferenceConfig";
1158
+ const _iM = "invocationMetrics";
1159
+ const _iMI = "invokedModelId";
1160
+ const _iMn = "invokeModel";
1161
+ const _iS = "inputSchema";
1162
+ const _iSE = "internalServerException";
1163
+ const _iT = "inputTokens";
1164
+ const _id = "identifier";
1165
+ const _im = "images";
1166
+ const _ima = "image";
1167
+ const _imp = "impossible";
1168
+ const _in = "invalid";
1169
+ const _j = "json";
1170
+ const _k = "key";
1171
+ const _kKI = "kmsKeyId";
1172
+ const _l = "location";
1173
+ const _lM = "latencyMs";
1174
+ const _lMT = "lastModifiedTime";
1175
+ const _lW = "logicWarning";
1176
+ const _la = "latency";
1177
+ const _lo = "logic";
1178
+ const _m = "message";
1179
+ const _mA = "modelArn";
1180
+ const _mI = "modelId";
1181
+ const _mIo = "modelInput";
1182
+ const _mO = "modelOutput";
2865
1183
  const _mR = "maxResults";
1184
+ const _mS = "messageStart";
1185
+ const _mSEE = "modelStreamErrorException";
1186
+ const _mSe = "messageStop";
1187
+ const _mT = "maxTokens";
1188
+ const _mTE = "modelTimeoutException";
1189
+ const _mWL = "managedWordLists";
1190
+ const _ma = "match";
1191
+ const _me = "messages";
1192
+ const _met = "metrics";
1193
+ const _meta = "metadata";
1194
+ const _n = "name";
1195
+ const _nL = "naturalLanguage";
2866
1196
  const _nT = "nextToken";
1197
+ const _nTo = "noTranslations";
1198
+ const _o = "outputs";
1199
+ const _oA = "outputAssessments";
1200
+ const _oDC = "outputDataConfig";
1201
+ const _oM = "originalMessage";
1202
+ const _oS = "outputScope";
1203
+ const _oSC = "originalStatusCode";
1204
+ const _oT = "outputTokens";
1205
+ const _op = "options";
1206
+ const _ou = "output";
1207
+ const _p = "premises";
1208
+ const _pC = "performanceConfig";
2867
1209
  const _pCL = "performanceConfigLatency";
1210
+ const _pE = "piiEntities";
1211
+ const _pR = "promptRouter";
1212
+ const _pV = "promptVariables";
1213
+ const _pVA = "policyVersionArn";
1214
+ const _q = "qualifiers";
1215
+ const _r = "regex";
1216
+ const _rC = "reasoningContent";
1217
+ const _rCe = "redactedContent";
1218
+ const _rM = "requestMetadata";
1219
+ const _rN = "resourceName";
1220
+ const _rT = "reasoningText";
1221
+ const _re = "regexes";
1222
+ const _ro = "role";
1223
+ const _s = "source";
2868
1224
  const _sB = "sortBy";
1225
+ const _sC = "sourceContent";
2869
1226
  const _sE = "statusEquals";
1227
+ const _sIP = "sensitiveInformationPolicy";
1228
+ const _sIPFU = "sensitiveInformationPolicyFreeUnits";
1229
+ const _sIPU = "sensitiveInformationPolicyUnits";
1230
+ const _sL = "s3Location";
2870
1231
  const _sO = "sortOrder";
1232
+ const _sODC = "s3OutputDataConfig";
1233
+ const _sPM = "streamProcessingMode";
1234
+ const _sR = "stopReason";
1235
+ const _sRu = "supportingRules";
1236
+ const _sS = "stopSequences";
1237
+ const _sT = "submitTime";
2871
1238
  const _sTA = "submitTimeAfter";
2872
1239
  const _sTB = "submitTimeBefore";
2873
- const _t = "trace";
2874
- const _xaba = "x-amzn-bedrock-accept";
2875
- const _xabct = "x-amzn-bedrock-content-type";
2876
- const _xabg = "x-amzn-bedrock-guardrailidentifier";
2877
- const _xabg_ = "x-amzn-bedrock-guardrailversion";
2878
- const _xabpl = "x-amzn-bedrock-performanceconfig-latency";
2879
- const _xabt = "x-amzn-bedrock-trace";
1240
+ const _sTy = "systemTool";
1241
+ const _sU = "s3Uri";
1242
+ const _sUE = "serviceUnavailableException";
1243
+ const _sa = "satisfiable";
1244
+ const _sc = "score";
1245
+ const _se = "server";
1246
+ const _si = "signature";
1247
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime";
1248
+ const _st = "status";
1249
+ const _sta = "start";
1250
+ const _stat = "statements";
1251
+ const _str = "stream";
1252
+ const _stre = "streaming";
1253
+ const _sy = "system";
1254
+ const _t = "type";
1255
+ const _tA = "translationAmbiguous";
1256
+ const _tC = "toolConfig";
1257
+ const _tCe = "textCharacters";
1258
+ const _tCo = "toolChoice";
1259
+ const _tCoo = "tooComplex";
1260
+ const _tE = "throttlingException";
1261
+ const _tP = "topicPolicy";
1262
+ const _tPU = "topicPolicyUnits";
1263
+ const _tPo = "topP";
1264
+ const _tR = "toolResult";
1265
+ const _tS = "toolSpec";
1266
+ const _tT = "totalTokens";
1267
+ const _tU = "toolUse";
1268
+ const _tUI = "toolUseId";
1269
+ const _ta = "tags";
1270
+ const _te = "text";
1271
+ const _tem = "temperature";
1272
+ const _th = "threshold";
1273
+ const _ti = "title";
1274
+ const _to = "total";
1275
+ const _too = "tools";
1276
+ const _tool = "tool";
1277
+ const _top = "topics";
1278
+ const _tr = "trace";
1279
+ const _tra = "translation";
1280
+ const _tran = "translations";
1281
+ const _u = "usage";
1282
+ const _uC = "untranslatedClaims";
1283
+ const _uP = "untranslatedPremises";
1284
+ const _ur = "uri";
1285
+ const _url = "url";
1286
+ const _v = "value";
1287
+ const _vE = "validationException";
1288
+ const _va = "valid";
1289
+ const _vi = "video";
1290
+ const _w = "web";
1291
+ const _wP = "wordPolicy";
1292
+ const _wPU = "wordPolicyUnits";
1293
+ const n0 = "com.amazonaws.bedrockruntime";
1294
+ var AsyncInvokeMessage = [0, n0, _AIM, 8, 0];
1295
+ var Body = [0, n0, _B, 8, 21];
1296
+ var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
1297
+ var GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
1298
+ var ModelInputPayload = [0, n0, _MIP, 8, 15];
1299
+ var PartBody = [0, n0, _PB, 8, 21];
1300
+ var AccessDeniedException = [
1301
+ -3,
1302
+ n0,
1303
+ _ADE,
1304
+ {
1305
+ [_e]: _c,
1306
+ [_hE]: 403,
1307
+ },
1308
+ [_m],
1309
+ [0],
1310
+ ];
1311
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
1312
+ var AnyToolChoice = [3, n0, _ATC, 0, [], []];
1313
+ var ApplyGuardrailRequest = [
1314
+ 3,
1315
+ n0,
1316
+ _AGR,
1317
+ 0,
1318
+ [_gI, _gV, _s, _co, _oS],
1319
+ [[0, 1], [0, 1], 0, [() => GuardrailContentBlockList, 0], 0],
1320
+ ];
1321
+ var ApplyGuardrailResponse = [
1322
+ 3,
1323
+ n0,
1324
+ _AGRp,
1325
+ 0,
1326
+ [_u, _a, _aR, _o, _as, _gC],
1327
+ [
1328
+ () => GuardrailUsage,
1329
+ 0,
1330
+ 0,
1331
+ () => GuardrailOutputContentList,
1332
+ [() => GuardrailAssessmentList, 0],
1333
+ () => GuardrailCoverage,
1334
+ ],
1335
+ ];
1336
+ var AsyncInvokeS3OutputDataConfig = [3, n0, _AISODC, 0, [_sU, _kKI, _bO], [0, 0, 0]];
1337
+ var AsyncInvokeSummary = [
1338
+ 3,
1339
+ n0,
1340
+ _AIS,
1341
+ 0,
1342
+ [_iA, _mA, _cRT, _st, _fM, _sT, _lMT, _eT, _oDC],
1343
+ [0, 0, 0, 0, [() => AsyncInvokeMessage, 0], 5, 5, 5, () => AsyncInvokeOutputDataConfig],
1344
+ ];
1345
+ var AutoToolChoice = [3, n0, _ATCu, 0, [], []];
1346
+ var BidirectionalInputPayloadPart = [3, n0, _BIPP, 8, [_b], [[() => PartBody, 0]]];
1347
+ var BidirectionalOutputPayloadPart = [3, n0, _BOPP, 8, [_b], [[() => PartBody, 0]]];
1348
+ var CachePointBlock = [3, n0, _CPB, 0, [_t], [0]];
1349
+ var Citation = [
1350
+ 3,
1351
+ n0,
1352
+ _C,
1353
+ 0,
1354
+ [_ti, _sC, _l],
1355
+ [0, () => CitationSourceContentList, () => CitationLocation],
1356
+ ];
1357
+ var CitationsConfig = [3, n0, _CC, 0, [_en], [2]];
1358
+ var CitationsContentBlock = [
1359
+ 3,
1360
+ n0,
1361
+ _CCB,
1362
+ 0,
1363
+ [_co, _ci],
1364
+ [() => CitationGeneratedContentList, () => Citations],
1365
+ ];
1366
+ var CitationsDelta = [
1367
+ 3,
1368
+ n0,
1369
+ _CD,
1370
+ 0,
1371
+ [_ti, _sC, _l],
1372
+ [0, () => CitationSourceContentListDelta, () => CitationLocation],
1373
+ ];
1374
+ var CitationSourceContentDelta = [3, n0, _CSCD, 0, [_te], [0]];
1375
+ var ConflictException = [
1376
+ -3,
1377
+ n0,
1378
+ _CE,
1379
+ {
1380
+ [_e]: _c,
1381
+ [_hE]: 400,
1382
+ },
1383
+ [_m],
1384
+ [0],
1385
+ ];
1386
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
1387
+ var ContentBlockDeltaEvent = [
1388
+ 3,
1389
+ n0,
1390
+ _CBDE,
1391
+ 0,
1392
+ [_d, _cBI],
1393
+ [[() => ContentBlockDelta, 0], 1],
1394
+ ];
1395
+ var ContentBlockStartEvent = [
1396
+ 3,
1397
+ n0,
1398
+ _CBSE,
1399
+ 0,
1400
+ [_sta, _cBI],
1401
+ [() => ContentBlockStart, 1],
1402
+ ];
1403
+ var ContentBlockStopEvent = [3, n0, _CBSEo, 0, [_cBI], [1]];
1404
+ var ConverseMetrics = [3, n0, _CM, 0, [_lM], [1]];
1405
+ var ConverseRequest = [
1406
+ 3,
1407
+ n0,
1408
+ _CR,
1409
+ 0,
1410
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
1411
+ [
1412
+ [0, 1],
1413
+ [() => Messages, 0],
1414
+ [() => SystemContentBlocks, 0],
1415
+ () => InferenceConfiguration,
1416
+ () => ToolConfiguration,
1417
+ () => GuardrailConfiguration,
1418
+ 15,
1419
+ [() => PromptVariableMap, 0],
1420
+ 64 | 0,
1421
+ [() => RequestMetadata, 0],
1422
+ () => PerformanceConfiguration,
1423
+ ],
1424
+ ];
1425
+ var ConverseResponse = [
1426
+ 3,
1427
+ n0,
1428
+ _CRo,
1429
+ 0,
1430
+ [_ou, _sR, _u, _met, _aMRFd, _tr, _pC],
1431
+ [
1432
+ [() => ConverseOutput, 0],
1433
+ 0,
1434
+ () => TokenUsage,
1435
+ () => ConverseMetrics,
1436
+ 15,
1437
+ [() => ConverseTrace, 0],
1438
+ () => PerformanceConfiguration,
1439
+ ],
1440
+ ];
1441
+ var ConverseStreamMetadataEvent = [
1442
+ 3,
1443
+ n0,
1444
+ _CSME,
1445
+ 0,
1446
+ [_u, _met, _tr, _pC],
1447
+ [() => TokenUsage, () => ConverseStreamMetrics, [() => ConverseStreamTrace, 0], () => PerformanceConfiguration],
1448
+ ];
1449
+ var ConverseStreamMetrics = [3, n0, _CSM, 0, [_lM], [1]];
1450
+ var ConverseStreamRequest = [
1451
+ 3,
1452
+ n0,
1453
+ _CSR,
1454
+ 0,
1455
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
1456
+ [
1457
+ [0, 1],
1458
+ [() => Messages, 0],
1459
+ [() => SystemContentBlocks, 0],
1460
+ () => InferenceConfiguration,
1461
+ () => ToolConfiguration,
1462
+ () => GuardrailStreamConfiguration,
1463
+ 15,
1464
+ [() => PromptVariableMap, 0],
1465
+ 64 | 0,
1466
+ [() => RequestMetadata, 0],
1467
+ () => PerformanceConfiguration,
1468
+ ],
1469
+ ];
1470
+ var ConverseStreamResponse = [
1471
+ 3,
1472
+ n0,
1473
+ _CSRo,
1474
+ 0,
1475
+ [_str],
1476
+ [[() => ConverseStreamOutput, 16]],
1477
+ ];
1478
+ var ConverseStreamTrace = [
1479
+ 3,
1480
+ n0,
1481
+ _CST,
1482
+ 0,
1483
+ [_g, _pR],
1484
+ [[() => GuardrailTraceAssessment, 0], () => PromptRouterTrace],
1485
+ ];
1486
+ var ConverseTokensRequest = [
1487
+ 3,
1488
+ n0,
1489
+ _CTR,
1490
+ 0,
1491
+ [_me, _sy],
1492
+ [
1493
+ [() => Messages, 0],
1494
+ [() => SystemContentBlocks, 0],
1495
+ ],
1496
+ ];
1497
+ var ConverseTrace = [
1498
+ 3,
1499
+ n0,
1500
+ _CT,
1501
+ 0,
1502
+ [_g, _pR],
1503
+ [[() => GuardrailTraceAssessment, 0], () => PromptRouterTrace],
1504
+ ];
1505
+ var CountTokensRequest = [
1506
+ 3,
1507
+ n0,
1508
+ _CTRo,
1509
+ 0,
1510
+ [_mI, _i],
1511
+ [
1512
+ [0, 1],
1513
+ [() => CountTokensInput, 0],
1514
+ ],
1515
+ ];
1516
+ var CountTokensResponse = [3, n0, _CTRou, 0, [_iT], [1]];
1517
+ var DocumentBlock = [
1518
+ 3,
1519
+ n0,
1520
+ _DB,
1521
+ 0,
1522
+ [_f, _n, _s, _con, _ci],
1523
+ [0, 0, () => DocumentSource, 0, () => CitationsConfig],
1524
+ ];
1525
+ var DocumentCharLocation = [3, n0, _DCL, 0, [_dI, _sta, _end], [1, 1, 1]];
1526
+ var DocumentChunkLocation = [3, n0, _DCLo, 0, [_dI, _sta, _end], [1, 1, 1]];
1527
+ var DocumentPageLocation = [3, n0, _DPL, 0, [_dI, _sta, _end], [1, 1, 1]];
1528
+ var GetAsyncInvokeRequest = [3, n0, _GAIR, 0, [_iA], [[0, 1]]];
1529
+ var GetAsyncInvokeResponse = [
1530
+ 3,
1531
+ n0,
1532
+ _GAIRe,
1533
+ 0,
1534
+ [_iA, _mA, _cRT, _st, _fM, _sT, _lMT, _eT, _oDC],
1535
+ [0, 0, 0, 0, [() => AsyncInvokeMessage, 0], 5, 5, 5, () => AsyncInvokeOutputDataConfig],
1536
+ ];
1537
+ var GuardrailAssessment = [
1538
+ 3,
1539
+ n0,
1540
+ _GA,
1541
+ 0,
1542
+ [_tP, _cP, _wP, _sIP, _cGP, _aRP, _iM],
1543
+ [
1544
+ () => GuardrailTopicPolicyAssessment,
1545
+ () => GuardrailContentPolicyAssessment,
1546
+ () => GuardrailWordPolicyAssessment,
1547
+ () => GuardrailSensitiveInformationPolicyAssessment,
1548
+ () => GuardrailContextualGroundingPolicyAssessment,
1549
+ [() => GuardrailAutomatedReasoningPolicyAssessment, 0],
1550
+ () => GuardrailInvocationMetrics,
1551
+ ],
1552
+ ];
1553
+ var GuardrailAutomatedReasoningImpossibleFinding = [
1554
+ 3,
1555
+ n0,
1556
+ _GARIF,
1557
+ 0,
1558
+ [_tra, _cR, _lW],
1559
+ [
1560
+ [() => GuardrailAutomatedReasoningTranslation, 0],
1561
+ () => GuardrailAutomatedReasoningRuleList,
1562
+ [() => GuardrailAutomatedReasoningLogicWarning, 0],
1563
+ ],
1564
+ ];
1565
+ var GuardrailAutomatedReasoningInputTextReference = [
1566
+ 3,
1567
+ n0,
1568
+ _GARITR,
1569
+ 0,
1570
+ [_te],
1571
+ [[() => GuardrailAutomatedReasoningStatementNaturalLanguageContent, 0]],
1572
+ ];
1573
+ var GuardrailAutomatedReasoningInvalidFinding = [
1574
+ 3,
1575
+ n0,
1576
+ _GARIFu,
1577
+ 0,
1578
+ [_tra, _cR, _lW],
1579
+ [
1580
+ [() => GuardrailAutomatedReasoningTranslation, 0],
1581
+ () => GuardrailAutomatedReasoningRuleList,
1582
+ [() => GuardrailAutomatedReasoningLogicWarning, 0],
1583
+ ],
1584
+ ];
1585
+ var GuardrailAutomatedReasoningLogicWarning = [
1586
+ 3,
1587
+ n0,
1588
+ _GARLW,
1589
+ 0,
1590
+ [_t, _p, _cl],
1591
+ [0, [() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningStatementList, 0]],
1592
+ ];
1593
+ var GuardrailAutomatedReasoningNoTranslationsFinding = [3, n0, _GARNTF, 0, [], []];
1594
+ var GuardrailAutomatedReasoningPolicyAssessment = [
1595
+ 3,
1596
+ n0,
1597
+ _GARPA,
1598
+ 0,
1599
+ [_fi],
1600
+ [[() => GuardrailAutomatedReasoningFindingList, 0]],
1601
+ ];
1602
+ var GuardrailAutomatedReasoningRule = [3, n0, _GARR, 0, [_id, _pVA], [0, 0]];
1603
+ var GuardrailAutomatedReasoningSatisfiableFinding = [
1604
+ 3,
1605
+ n0,
1606
+ _GARSF,
1607
+ 0,
1608
+ [_tra, _cTS, _cFS, _lW],
1609
+ [
1610
+ [() => GuardrailAutomatedReasoningTranslation, 0],
1611
+ [() => GuardrailAutomatedReasoningScenario, 0],
1612
+ [() => GuardrailAutomatedReasoningScenario, 0],
1613
+ [() => GuardrailAutomatedReasoningLogicWarning, 0],
1614
+ ],
1615
+ ];
1616
+ var GuardrailAutomatedReasoningScenario = [
1617
+ 3,
1618
+ n0,
1619
+ _GARS,
1620
+ 0,
1621
+ [_stat],
1622
+ [[() => GuardrailAutomatedReasoningStatementList, 0]],
1623
+ ];
1624
+ var GuardrailAutomatedReasoningStatement = [
1625
+ 3,
1626
+ n0,
1627
+ _GARSu,
1628
+ 0,
1629
+ [_lo, _nL],
1630
+ [
1631
+ [() => GuardrailAutomatedReasoningStatementLogicContent, 0],
1632
+ [() => GuardrailAutomatedReasoningStatementNaturalLanguageContent, 0],
1633
+ ],
1634
+ ];
1635
+ var GuardrailAutomatedReasoningTooComplexFinding = [3, n0, _GARTCF, 0, [], []];
1636
+ var GuardrailAutomatedReasoningTranslation = [
1637
+ 3,
1638
+ n0,
1639
+ _GART,
1640
+ 0,
1641
+ [_p, _cl, _uP, _uC, _conf],
1642
+ [
1643
+ [() => GuardrailAutomatedReasoningStatementList, 0],
1644
+ [() => GuardrailAutomatedReasoningStatementList, 0],
1645
+ [() => GuardrailAutomatedReasoningInputTextReferenceList, 0],
1646
+ [() => GuardrailAutomatedReasoningInputTextReferenceList, 0],
1647
+ 1,
1648
+ ],
1649
+ ];
1650
+ var GuardrailAutomatedReasoningTranslationAmbiguousFinding = [
1651
+ 3,
1652
+ n0,
1653
+ _GARTAF,
1654
+ 0,
1655
+ [_op, _dS],
1656
+ [
1657
+ [() => GuardrailAutomatedReasoningTranslationOptionList, 0],
1658
+ [() => GuardrailAutomatedReasoningDifferenceScenarioList, 0],
1659
+ ],
1660
+ ];
1661
+ var GuardrailAutomatedReasoningTranslationOption = [
1662
+ 3,
1663
+ n0,
1664
+ _GARTO,
1665
+ 0,
1666
+ [_tran],
1667
+ [[() => GuardrailAutomatedReasoningTranslationList, 0]],
1668
+ ];
1669
+ var GuardrailAutomatedReasoningValidFinding = [
1670
+ 3,
1671
+ n0,
1672
+ _GARVF,
1673
+ 0,
1674
+ [_tra, _cTS, _sRu, _lW],
1675
+ [
1676
+ [() => GuardrailAutomatedReasoningTranslation, 0],
1677
+ [() => GuardrailAutomatedReasoningScenario, 0],
1678
+ () => GuardrailAutomatedReasoningRuleList,
1679
+ [() => GuardrailAutomatedReasoningLogicWarning, 0],
1680
+ ],
1681
+ ];
1682
+ var GuardrailConfiguration = [3, n0, _GC, 0, [_gI, _gV, _tr], [0, 0, 0]];
1683
+ var GuardrailContentFilter = [3, n0, _GCF, 0, [_t, _conf, _fS, _a, _de], [0, 0, 0, 0, 2]];
1684
+ var GuardrailContentPolicyAssessment = [
1685
+ 3,
1686
+ n0,
1687
+ _GCPA,
1688
+ 0,
1689
+ [_fil],
1690
+ [() => GuardrailContentFilterList],
1691
+ ];
1692
+ var GuardrailContextualGroundingFilter = [
1693
+ 3,
1694
+ n0,
1695
+ _GCGF,
1696
+ 0,
1697
+ [_t, _th, _sc, _a, _de],
1698
+ [0, 1, 1, 0, 2],
1699
+ ];
1700
+ var GuardrailContextualGroundingPolicyAssessment = [
1701
+ 3,
1702
+ n0,
1703
+ _GCGPA,
1704
+ 0,
1705
+ [_fil],
1706
+ [() => GuardrailContextualGroundingFilters],
1707
+ ];
1708
+ var GuardrailConverseImageBlock = [
1709
+ 3,
1710
+ n0,
1711
+ _GCIB,
1712
+ 8,
1713
+ [_f, _s],
1714
+ [0, [() => GuardrailConverseImageSource, 0]],
1715
+ ];
1716
+ var GuardrailConverseTextBlock = [3, n0, _GCTB, 0, [_te, _q], [0, 64 | 0]];
1717
+ var GuardrailCoverage = [
1718
+ 3,
1719
+ n0,
1720
+ _GCu,
1721
+ 0,
1722
+ [_tCe, _im],
1723
+ [() => GuardrailTextCharactersCoverage, () => GuardrailImageCoverage],
1724
+ ];
1725
+ var GuardrailCustomWord = [3, n0, _GCW, 0, [_ma, _a, _de], [0, 0, 2]];
1726
+ var GuardrailImageBlock = [
1727
+ 3,
1728
+ n0,
1729
+ _GIB,
1730
+ 8,
1731
+ [_f, _s],
1732
+ [0, [() => GuardrailImageSource, 0]],
1733
+ ];
1734
+ var GuardrailImageCoverage = [3, n0, _GIC, 0, [_gu, _to], [1, 1]];
1735
+ var GuardrailInvocationMetrics = [
1736
+ 3,
1737
+ n0,
1738
+ _GIM,
1739
+ 0,
1740
+ [_gPL, _u, _gC],
1741
+ [1, () => GuardrailUsage, () => GuardrailCoverage],
1742
+ ];
1743
+ var GuardrailManagedWord = [3, n0, _GMW, 0, [_ma, _t, _a, _de], [0, 0, 0, 2]];
1744
+ var GuardrailOutputContent = [3, n0, _GOC, 0, [_te], [0]];
1745
+ var GuardrailPiiEntityFilter = [3, n0, _GPEF, 0, [_ma, _t, _a, _de], [0, 0, 0, 2]];
1746
+ var GuardrailRegexFilter = [3, n0, _GRF, 0, [_n, _ma, _r, _a, _de], [0, 0, 0, 0, 2]];
1747
+ var GuardrailSensitiveInformationPolicyAssessment = [
1748
+ 3,
1749
+ n0,
1750
+ _GSIPA,
1751
+ 0,
1752
+ [_pE, _re],
1753
+ [() => GuardrailPiiEntityFilterList, () => GuardrailRegexFilterList],
1754
+ ];
1755
+ var GuardrailStreamConfiguration = [3, n0, _GSC, 0, [_gI, _gV, _tr, _sPM], [0, 0, 0, 0]];
1756
+ var GuardrailTextBlock = [3, n0, _GTB, 0, [_te, _q], [0, 64 | 0]];
1757
+ var GuardrailTextCharactersCoverage = [3, n0, _GTCC, 0, [_gu, _to], [1, 1]];
1758
+ var GuardrailTopic = [3, n0, _GT, 0, [_n, _t, _a, _de], [0, 0, 0, 2]];
1759
+ var GuardrailTopicPolicyAssessment = [
1760
+ 3,
1761
+ n0,
1762
+ _GTPA,
1763
+ 0,
1764
+ [_top],
1765
+ [() => GuardrailTopicList],
1766
+ ];
1767
+ var GuardrailTraceAssessment = [
1768
+ 3,
1769
+ n0,
1770
+ _GTA,
1771
+ 0,
1772
+ [_mO, _iAn, _oA, _aR],
1773
+ [64 | 0, [() => GuardrailAssessmentMap, 0], [() => GuardrailAssessmentListMap, 0], 0],
1774
+ ];
1775
+ var GuardrailUsage = [
1776
+ 3,
1777
+ n0,
1778
+ _GU,
1779
+ 0,
1780
+ [_tPU, _cPU, _wPU, _sIPU, _sIPFU, _cGPU, _cPIU, _aRPU, _aRPu],
1781
+ [1, 1, 1, 1, 1, 1, 1, 1, 1],
1782
+ ];
1783
+ var GuardrailWordPolicyAssessment = [
1784
+ 3,
1785
+ n0,
1786
+ _GWPA,
1787
+ 0,
1788
+ [_cW, _mWL],
1789
+ [() => GuardrailCustomWordList, () => GuardrailManagedWordList],
1790
+ ];
1791
+ var ImageBlock = [3, n0, _IB, 0, [_f, _s], [0, () => ImageSource]];
1792
+ var InferenceConfiguration = [3, n0, _IC, 0, [_mT, _tem, _tPo, _sS], [1, 1, 1, 64 | 0]];
1793
+ var InternalServerException = [
1794
+ -3,
1795
+ n0,
1796
+ _ISE,
1797
+ {
1798
+ [_e]: _se,
1799
+ [_hE]: 500,
1800
+ },
1801
+ [_m],
1802
+ [0],
1803
+ ];
1804
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
1805
+ var InvokeModelRequest = [
1806
+ 3,
1807
+ n0,
1808
+ _IMR,
1809
+ 0,
1810
+ [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
1811
+ [
1812
+ [() => Body, 16],
1813
+ [
1814
+ 0,
1815
+ {
1816
+ [_hH]: _CT_,
1817
+ },
1818
+ ],
1819
+ [
1820
+ 0,
1821
+ {
1822
+ [_hH]: _A,
1823
+ },
1824
+ ],
1825
+ [0, 1],
1826
+ [
1827
+ 0,
1828
+ {
1829
+ [_hH]: _XABT,
1830
+ },
1831
+ ],
1832
+ [
1833
+ 0,
1834
+ {
1835
+ [_hH]: _XABG,
1836
+ },
1837
+ ],
1838
+ [
1839
+ 0,
1840
+ {
1841
+ [_hH]: _XABG_,
1842
+ },
1843
+ ],
1844
+ [
1845
+ 0,
1846
+ {
1847
+ [_hH]: _XABPL,
1848
+ },
1849
+ ],
1850
+ ],
1851
+ ];
1852
+ var InvokeModelResponse = [
1853
+ 3,
1854
+ n0,
1855
+ _IMRn,
1856
+ 0,
1857
+ [_bo, _cT, _pCL],
1858
+ [
1859
+ [() => Body, 16],
1860
+ [
1861
+ 0,
1862
+ {
1863
+ [_hH]: _CT_,
1864
+ },
1865
+ ],
1866
+ [
1867
+ 0,
1868
+ {
1869
+ [_hH]: _XABPL,
1870
+ },
1871
+ ],
1872
+ ],
1873
+ ];
1874
+ var InvokeModelTokensRequest = [3, n0, _IMTR, 0, [_bo], [[() => Body, 0]]];
1875
+ var InvokeModelWithBidirectionalStreamRequest = [
1876
+ 3,
1877
+ n0,
1878
+ _IMWBSR,
1879
+ 0,
1880
+ [_mI, _bo],
1881
+ [
1882
+ [0, 1],
1883
+ [() => InvokeModelWithBidirectionalStreamInput, 16],
1884
+ ],
1885
+ ];
1886
+ var InvokeModelWithBidirectionalStreamResponse = [
1887
+ 3,
1888
+ n0,
1889
+ _IMWBSRn,
1890
+ 0,
1891
+ [_bo],
1892
+ [[() => InvokeModelWithBidirectionalStreamOutput, 16]],
1893
+ ];
1894
+ var InvokeModelWithResponseStreamRequest = [
1895
+ 3,
1896
+ n0,
1897
+ _IMWRSR,
1898
+ 0,
1899
+ [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
1900
+ [
1901
+ [() => Body, 16],
1902
+ [
1903
+ 0,
1904
+ {
1905
+ [_hH]: _CT_,
1906
+ },
1907
+ ],
1908
+ [
1909
+ 0,
1910
+ {
1911
+ [_hH]: _XABA,
1912
+ },
1913
+ ],
1914
+ [0, 1],
1915
+ [
1916
+ 0,
1917
+ {
1918
+ [_hH]: _XABT,
1919
+ },
1920
+ ],
1921
+ [
1922
+ 0,
1923
+ {
1924
+ [_hH]: _XABG,
1925
+ },
1926
+ ],
1927
+ [
1928
+ 0,
1929
+ {
1930
+ [_hH]: _XABG_,
1931
+ },
1932
+ ],
1933
+ [
1934
+ 0,
1935
+ {
1936
+ [_hH]: _XABPL,
1937
+ },
1938
+ ],
1939
+ ],
1940
+ ];
1941
+ var InvokeModelWithResponseStreamResponse = [
1942
+ 3,
1943
+ n0,
1944
+ _IMWRSRn,
1945
+ 0,
1946
+ [_bo, _cT, _pCL],
1947
+ [
1948
+ [() => ResponseStream, 16],
1949
+ [
1950
+ 0,
1951
+ {
1952
+ [_hH]: _XABCT,
1953
+ },
1954
+ ],
1955
+ [
1956
+ 0,
1957
+ {
1958
+ [_hH]: _XABPL,
1959
+ },
1960
+ ],
1961
+ ],
1962
+ ];
1963
+ var ListAsyncInvokesRequest = [
1964
+ 3,
1965
+ n0,
1966
+ _LAIR,
1967
+ 0,
1968
+ [_sTA, _sTB, _sE, _mR, _nT, _sB, _sO],
1969
+ [
1970
+ [
1971
+ 5,
1972
+ {
1973
+ [_hQ]: _sTA,
1974
+ },
1975
+ ],
1976
+ [
1977
+ 5,
1978
+ {
1979
+ [_hQ]: _sTB,
1980
+ },
1981
+ ],
1982
+ [
1983
+ 0,
1984
+ {
1985
+ [_hQ]: _sE,
1986
+ },
1987
+ ],
1988
+ [
1989
+ 1,
1990
+ {
1991
+ [_hQ]: _mR,
1992
+ },
1993
+ ],
1994
+ [
1995
+ 0,
1996
+ {
1997
+ [_hQ]: _nT,
1998
+ },
1999
+ ],
2000
+ [
2001
+ 0,
2002
+ {
2003
+ [_hQ]: _sB,
2004
+ },
2005
+ ],
2006
+ [
2007
+ 0,
2008
+ {
2009
+ [_hQ]: _sO,
2010
+ },
2011
+ ],
2012
+ ],
2013
+ ];
2014
+ var ListAsyncInvokesResponse = [
2015
+ 3,
2016
+ n0,
2017
+ _LAIRi,
2018
+ 0,
2019
+ [_nT, _aIS],
2020
+ [0, [() => AsyncInvokeSummaries, 0]],
2021
+ ];
2022
+ var Message = [3, n0, _M, 0, [_ro, _co], [0, [() => ContentBlocks, 0]]];
2023
+ var MessageStartEvent = [3, n0, _MSE, 0, [_ro], [0]];
2024
+ var MessageStopEvent = [3, n0, _MSEe, 0, [_sR, _aMRFd], [0, 15]];
2025
+ var ModelErrorException = [
2026
+ -3,
2027
+ n0,
2028
+ _MEE,
2029
+ {
2030
+ [_e]: _c,
2031
+ [_hE]: 424,
2032
+ },
2033
+ [_m, _oSC, _rN],
2034
+ [0, 1, 0],
2035
+ ];
2036
+ schema.TypeRegistry.for(n0).registerError(ModelErrorException, ModelErrorException$1);
2037
+ var ModelNotReadyException = [
2038
+ -3,
2039
+ n0,
2040
+ _MNRE,
2041
+ {
2042
+ [_e]: _c,
2043
+ [_hE]: 429,
2044
+ },
2045
+ [_m],
2046
+ [0],
2047
+ ];
2048
+ schema.TypeRegistry.for(n0).registerError(ModelNotReadyException, ModelNotReadyException$1);
2049
+ var ModelStreamErrorException = [
2050
+ -3,
2051
+ n0,
2052
+ _MSEE,
2053
+ {
2054
+ [_e]: _c,
2055
+ [_hE]: 424,
2056
+ },
2057
+ [_m, _oSC, _oM],
2058
+ [0, 1, 0],
2059
+ ];
2060
+ schema.TypeRegistry.for(n0).registerError(ModelStreamErrorException, ModelStreamErrorException$1);
2061
+ var ModelTimeoutException = [
2062
+ -3,
2063
+ n0,
2064
+ _MTE,
2065
+ {
2066
+ [_e]: _c,
2067
+ [_hE]: 408,
2068
+ },
2069
+ [_m],
2070
+ [0],
2071
+ ];
2072
+ schema.TypeRegistry.for(n0).registerError(ModelTimeoutException, ModelTimeoutException$1);
2073
+ var PayloadPart = [3, n0, _PP, 8, [_b], [[() => PartBody, 0]]];
2074
+ var PerformanceConfiguration = [3, n0, _PC, 0, [_la], [0]];
2075
+ var PromptRouterTrace = [3, n0, _PRT, 0, [_iMI], [0]];
2076
+ var ReasoningTextBlock = [3, n0, _RTB, 8, [_te, _si], [0, 0]];
2077
+ var ResourceNotFoundException = [
2078
+ -3,
2079
+ n0,
2080
+ _RNFE,
2081
+ {
2082
+ [_e]: _c,
2083
+ [_hE]: 404,
2084
+ },
2085
+ [_m],
2086
+ [0],
2087
+ ];
2088
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
2089
+ var S3Location = [3, n0, _SL, 0, [_ur, _bO], [0, 0]];
2090
+ var ServiceQuotaExceededException = [
2091
+ -3,
2092
+ n0,
2093
+ _SQEE,
2094
+ {
2095
+ [_e]: _c,
2096
+ [_hE]: 400,
2097
+ },
2098
+ [_m],
2099
+ [0],
2100
+ ];
2101
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
2102
+ var ServiceUnavailableException = [
2103
+ -3,
2104
+ n0,
2105
+ _SUE,
2106
+ {
2107
+ [_e]: _se,
2108
+ [_hE]: 503,
2109
+ },
2110
+ [_m],
2111
+ [0],
2112
+ ];
2113
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
2114
+ var SpecificToolChoice = [3, n0, _STC, 0, [_n], [0]];
2115
+ var StartAsyncInvokeRequest = [
2116
+ 3,
2117
+ n0,
2118
+ _SAIR,
2119
+ 0,
2120
+ [_cRT, _mI, _mIo, _oDC, _ta],
2121
+ [[0, 4], 0, [() => ModelInputPayload, 0], () => AsyncInvokeOutputDataConfig, () => TagList],
2122
+ ];
2123
+ var StartAsyncInvokeResponse = [3, n0, _SAIRt, 0, [_iA], [0]];
2124
+ var SystemTool = [3, n0, _ST, 0, [_n], [0]];
2125
+ var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
2126
+ var ThrottlingException = [
2127
+ -3,
2128
+ n0,
2129
+ _TE,
2130
+ {
2131
+ [_e]: _c,
2132
+ [_hE]: 429,
2133
+ },
2134
+ [_m],
2135
+ [0],
2136
+ ];
2137
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
2138
+ var TokenUsage = [3, n0, _TU, 0, [_iT, _oT, _tT, _cRIT, _cWIT], [1, 1, 1, 1, 1]];
2139
+ var ToolConfiguration = [3, n0, _TC, 0, [_too, _tCo], [() => Tools, () => ToolChoice]];
2140
+ var ToolResultBlock = [
2141
+ 3,
2142
+ n0,
2143
+ _TRB,
2144
+ 0,
2145
+ [_tUI, _co, _st, _t],
2146
+ [0, () => ToolResultContentBlocks, 0, 0],
2147
+ ];
2148
+ var ToolResultBlockStart = [3, n0, _TRBS, 0, [_tUI, _t, _st], [0, 0, 0]];
2149
+ var ToolSpecification = [3, n0, _TS, 0, [_n, _des, _iS], [0, 0, () => ToolInputSchema]];
2150
+ var ToolUseBlock = [3, n0, _TUB, 0, [_tUI, _n, _i, _t], [0, 0, 15, 0]];
2151
+ var ToolUseBlockDelta = [3, n0, _TUBD, 0, [_i], [0]];
2152
+ var ToolUseBlockStart = [3, n0, _TUBS, 0, [_tUI, _n, _t], [0, 0, 0]];
2153
+ var ValidationException = [
2154
+ -3,
2155
+ n0,
2156
+ _VE,
2157
+ {
2158
+ [_e]: _c,
2159
+ [_hE]: 400,
2160
+ },
2161
+ [_m],
2162
+ [0],
2163
+ ];
2164
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
2165
+ var VideoBlock = [3, n0, _VB, 0, [_f, _s], [0, () => VideoSource]];
2166
+ var WebLocation = [3, n0, _WL, 0, [_url, _do], [0, 0]];
2167
+ var BedrockRuntimeServiceException = [-3, _sm, "BedrockRuntimeServiceException", 0, [], []];
2168
+ schema.TypeRegistry.for(_sm).registerError(BedrockRuntimeServiceException, BedrockRuntimeServiceException$1);
2169
+ var AsyncInvokeSummaries = [1, n0, _AISs, 0, [() => AsyncInvokeSummary, 0]];
2170
+ var CitationGeneratedContentList = [1, n0, _CGCL, 0, () => CitationGeneratedContent];
2171
+ var Citations = [1, n0, _Ci, 0, () => Citation];
2172
+ var CitationSourceContentList = [1, n0, _CSCL, 0, () => CitationSourceContent];
2173
+ var CitationSourceContentListDelta = [1, n0, _CSCLD, 0, () => CitationSourceContentDelta];
2174
+ var ContentBlocks = [1, n0, _CB, 0, [() => ContentBlock, 0]];
2175
+ var DocumentContentBlocks = [1, n0, _DCB, 0, () => DocumentContentBlock];
2176
+ var GuardrailAssessmentList = [1, n0, _GAL, 0, [() => GuardrailAssessment, 0]];
2177
+ var GuardrailAutomatedReasoningDifferenceScenarioList = [
2178
+ 1,
2179
+ n0,
2180
+ _GARDSL,
2181
+ 0,
2182
+ [() => GuardrailAutomatedReasoningScenario, 0],
2183
+ ];
2184
+ var GuardrailAutomatedReasoningFindingList = [
2185
+ 1,
2186
+ n0,
2187
+ _GARFL,
2188
+ 0,
2189
+ [() => GuardrailAutomatedReasoningFinding, 0],
2190
+ ];
2191
+ var GuardrailAutomatedReasoningInputTextReferenceList = [
2192
+ 1,
2193
+ n0,
2194
+ _GARITRL,
2195
+ 0,
2196
+ [() => GuardrailAutomatedReasoningInputTextReference, 0],
2197
+ ];
2198
+ var GuardrailAutomatedReasoningRuleList = [
2199
+ 1,
2200
+ n0,
2201
+ _GARRL,
2202
+ 0,
2203
+ () => GuardrailAutomatedReasoningRule,
2204
+ ];
2205
+ var GuardrailAutomatedReasoningStatementList = [
2206
+ 1,
2207
+ n0,
2208
+ _GARSL,
2209
+ 0,
2210
+ [() => GuardrailAutomatedReasoningStatement, 0],
2211
+ ];
2212
+ var GuardrailAutomatedReasoningTranslationList = [
2213
+ 1,
2214
+ n0,
2215
+ _GARTL,
2216
+ 0,
2217
+ [() => GuardrailAutomatedReasoningTranslation, 0],
2218
+ ];
2219
+ var GuardrailAutomatedReasoningTranslationOptionList = [
2220
+ 1,
2221
+ n0,
2222
+ _GARTOL,
2223
+ 0,
2224
+ [() => GuardrailAutomatedReasoningTranslationOption, 0],
2225
+ ];
2226
+ var GuardrailContentBlockList = [1, n0, _GCBL, 0, [() => GuardrailContentBlock, 0]];
2227
+ var GuardrailContentFilterList = [1, n0, _GCFL, 0, () => GuardrailContentFilter];
2228
+ var GuardrailContextualGroundingFilters = [
2229
+ 1,
2230
+ n0,
2231
+ _GCGFu,
2232
+ 0,
2233
+ () => GuardrailContextualGroundingFilter,
2234
+ ];
2235
+ var GuardrailCustomWordList = [1, n0, _GCWL, 0, () => GuardrailCustomWord];
2236
+ var GuardrailManagedWordList = [1, n0, _GMWL, 0, () => GuardrailManagedWord];
2237
+ var GuardrailOutputContentList = [1, n0, _GOCL, 0, () => GuardrailOutputContent];
2238
+ var GuardrailPiiEntityFilterList = [1, n0, _GPEFL, 0, () => GuardrailPiiEntityFilter];
2239
+ var GuardrailRegexFilterList = [1, n0, _GRFL, 0, () => GuardrailRegexFilter];
2240
+ var GuardrailTopicList = [1, n0, _GTL, 0, () => GuardrailTopic];
2241
+ var Messages = [1, n0, _Me, 0, [() => Message, 0]];
2242
+ var SystemContentBlocks = [1, n0, _SCB, 0, [() => SystemContentBlock, 0]];
2243
+ var TagList = [1, n0, _TL, 0, () => Tag];
2244
+ var ToolResultBlocksDelta = [1, n0, _TRBD, 0, () => ToolResultBlockDelta];
2245
+ var ToolResultContentBlocks = [1, n0, _TRCB, 0, () => ToolResultContentBlock];
2246
+ var Tools = [1, n0, _To, 0, () => Tool];
2247
+ var GuardrailAssessmentListMap = [2, n0, _GALM, 0, [0, 0], [() => GuardrailAssessmentList, 0]];
2248
+ var GuardrailAssessmentMap = [2, n0, _GAM, 0, [0, 0], [() => GuardrailAssessment, 0]];
2249
+ var PromptVariableMap = [2, n0, _PVM, 8, 0, () => PromptVariableValues];
2250
+ var RequestMetadata = [2, n0, _RM, 8, 0, 0];
2251
+ var AsyncInvokeOutputDataConfig = [
2252
+ 3,
2253
+ n0,
2254
+ _AIODC,
2255
+ 0,
2256
+ [_sODC],
2257
+ [() => AsyncInvokeS3OutputDataConfig],
2258
+ ];
2259
+ var CitationGeneratedContent = [3, n0, _CGC, 0, [_te], [0]];
2260
+ var CitationLocation = [
2261
+ 3,
2262
+ n0,
2263
+ _CL,
2264
+ 0,
2265
+ [_w, _dC, _dP, _dCo],
2266
+ [() => WebLocation, () => DocumentCharLocation, () => DocumentPageLocation, () => DocumentChunkLocation],
2267
+ ];
2268
+ var CitationSourceContent = [3, n0, _CSC, 0, [_te], [0]];
2269
+ var ContentBlock = [
2270
+ 3,
2271
+ n0,
2272
+ _CBo,
2273
+ 0,
2274
+ [_te, _ima, _doc, _vi, _tU, _tR, _gCua, _cPa, _rC, _cC],
2275
+ [
2276
+ 0,
2277
+ () => ImageBlock,
2278
+ () => DocumentBlock,
2279
+ () => VideoBlock,
2280
+ () => ToolUseBlock,
2281
+ () => ToolResultBlock,
2282
+ [() => GuardrailConverseContentBlock, 0],
2283
+ () => CachePointBlock,
2284
+ [() => ReasoningContentBlock, 0],
2285
+ () => CitationsContentBlock,
2286
+ ],
2287
+ ];
2288
+ var ContentBlockDelta = [
2289
+ 3,
2290
+ n0,
2291
+ _CBD,
2292
+ 0,
2293
+ [_te, _tU, _tR, _rC, _cit],
2294
+ [
2295
+ 0,
2296
+ () => ToolUseBlockDelta,
2297
+ () => ToolResultBlocksDelta,
2298
+ [() => ReasoningContentBlockDelta, 0],
2299
+ () => CitationsDelta,
2300
+ ],
2301
+ ];
2302
+ var ContentBlockStart = [
2303
+ 3,
2304
+ n0,
2305
+ _CBS,
2306
+ 0,
2307
+ [_tU, _tR],
2308
+ [() => ToolUseBlockStart, () => ToolResultBlockStart],
2309
+ ];
2310
+ var ConverseOutput = [3, n0, _CO, 0, [_m], [[() => Message, 0]]];
2311
+ var ConverseStreamOutput = [
2312
+ 3,
2313
+ n0,
2314
+ _CSO,
2315
+ {
2316
+ [_stre]: 1,
2317
+ },
2318
+ [_mS, _cBS, _cBD, _cBSo, _mSe, _meta, _iSE, _mSEE, _vE, _tE, _sUE],
2319
+ [
2320
+ () => MessageStartEvent,
2321
+ () => ContentBlockStartEvent,
2322
+ [() => ContentBlockDeltaEvent, 0],
2323
+ () => ContentBlockStopEvent,
2324
+ () => MessageStopEvent,
2325
+ [() => ConverseStreamMetadataEvent, 0],
2326
+ [() => InternalServerException, 0],
2327
+ [() => ModelStreamErrorException, 0],
2328
+ [() => ValidationException, 0],
2329
+ [() => ThrottlingException, 0],
2330
+ [() => ServiceUnavailableException, 0],
2331
+ ],
2332
+ ];
2333
+ var CountTokensInput = [
2334
+ 3,
2335
+ n0,
2336
+ _CTI,
2337
+ 0,
2338
+ [_iMn, _conv],
2339
+ [
2340
+ [() => InvokeModelTokensRequest, 0],
2341
+ [() => ConverseTokensRequest, 0],
2342
+ ],
2343
+ ];
2344
+ var DocumentContentBlock = [3, n0, _DCBo, 0, [_te], [0]];
2345
+ var DocumentSource = [
2346
+ 3,
2347
+ n0,
2348
+ _DS,
2349
+ 0,
2350
+ [_b, _sL, _te, _co],
2351
+ [21, () => S3Location, 0, () => DocumentContentBlocks],
2352
+ ];
2353
+ var GuardrailAutomatedReasoningFinding = [
2354
+ 3,
2355
+ n0,
2356
+ _GARF,
2357
+ 0,
2358
+ [_va, _in, _sa, _imp, _tA, _tCoo, _nTo],
2359
+ [
2360
+ [() => GuardrailAutomatedReasoningValidFinding, 0],
2361
+ [() => GuardrailAutomatedReasoningInvalidFinding, 0],
2362
+ [() => GuardrailAutomatedReasoningSatisfiableFinding, 0],
2363
+ [() => GuardrailAutomatedReasoningImpossibleFinding, 0],
2364
+ [() => GuardrailAutomatedReasoningTranslationAmbiguousFinding, 0],
2365
+ () => GuardrailAutomatedReasoningTooComplexFinding,
2366
+ () => GuardrailAutomatedReasoningNoTranslationsFinding,
2367
+ ],
2368
+ ];
2369
+ var GuardrailContentBlock = [
2370
+ 3,
2371
+ n0,
2372
+ _GCB,
2373
+ 0,
2374
+ [_te, _ima],
2375
+ [() => GuardrailTextBlock, [() => GuardrailImageBlock, 0]],
2376
+ ];
2377
+ var GuardrailConverseContentBlock = [
2378
+ 3,
2379
+ n0,
2380
+ _GCCB,
2381
+ 0,
2382
+ [_te, _ima],
2383
+ [() => GuardrailConverseTextBlock, [() => GuardrailConverseImageBlock, 0]],
2384
+ ];
2385
+ var GuardrailConverseImageSource = [3, n0, _GCIS, 8, [_b], [21]];
2386
+ var GuardrailImageSource = [3, n0, _GIS, 8, [_b], [21]];
2387
+ var ImageSource = [3, n0, _IS, 0, [_b, _sL], [21, () => S3Location]];
2388
+ var InvokeModelWithBidirectionalStreamInput = [
2389
+ 3,
2390
+ n0,
2391
+ _IMWBSI,
2392
+ {
2393
+ [_stre]: 1,
2394
+ },
2395
+ [_ch],
2396
+ [[() => BidirectionalInputPayloadPart, 0]],
2397
+ ];
2398
+ var InvokeModelWithBidirectionalStreamOutput = [
2399
+ 3,
2400
+ n0,
2401
+ _IMWBSO,
2402
+ {
2403
+ [_stre]: 1,
2404
+ },
2405
+ [_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
2406
+ [
2407
+ [() => BidirectionalOutputPayloadPart, 0],
2408
+ [() => InternalServerException, 0],
2409
+ [() => ModelStreamErrorException, 0],
2410
+ [() => ValidationException, 0],
2411
+ [() => ThrottlingException, 0],
2412
+ [() => ModelTimeoutException, 0],
2413
+ [() => ServiceUnavailableException, 0],
2414
+ ],
2415
+ ];
2416
+ var PromptVariableValues = [3, n0, _PVV, 0, [_te], [0]];
2417
+ var ReasoningContentBlock = [
2418
+ 3,
2419
+ n0,
2420
+ _RCB,
2421
+ 8,
2422
+ [_rT, _rCe],
2423
+ [[() => ReasoningTextBlock, 0], 21],
2424
+ ];
2425
+ var ReasoningContentBlockDelta = [3, n0, _RCBD, 8, [_te, _rCe, _si], [0, 21, 0]];
2426
+ var ResponseStream = [
2427
+ 3,
2428
+ n0,
2429
+ _RS,
2430
+ {
2431
+ [_stre]: 1,
2432
+ },
2433
+ [_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
2434
+ [
2435
+ [() => PayloadPart, 0],
2436
+ [() => InternalServerException, 0],
2437
+ [() => ModelStreamErrorException, 0],
2438
+ [() => ValidationException, 0],
2439
+ [() => ThrottlingException, 0],
2440
+ [() => ModelTimeoutException, 0],
2441
+ [() => ServiceUnavailableException, 0],
2442
+ ],
2443
+ ];
2444
+ var SystemContentBlock = [
2445
+ 3,
2446
+ n0,
2447
+ _SCBy,
2448
+ 0,
2449
+ [_te, _gCua, _cPa],
2450
+ [0, [() => GuardrailConverseContentBlock, 0], () => CachePointBlock],
2451
+ ];
2452
+ var Tool = [
2453
+ 3,
2454
+ n0,
2455
+ _Too,
2456
+ 0,
2457
+ [_tS, _sTy, _cPa],
2458
+ [() => ToolSpecification, () => SystemTool, () => CachePointBlock],
2459
+ ];
2460
+ var ToolChoice = [
2461
+ 3,
2462
+ n0,
2463
+ _TCo,
2464
+ 0,
2465
+ [_au, _an, _tool],
2466
+ [() => AutoToolChoice, () => AnyToolChoice, () => SpecificToolChoice],
2467
+ ];
2468
+ var ToolInputSchema = [3, n0, _TIS, 0, [_j], [15]];
2469
+ var ToolResultBlockDelta = [3, n0, _TRBDo, 0, [_te], [0]];
2470
+ var ToolResultContentBlock = [
2471
+ 3,
2472
+ n0,
2473
+ _TRCBo,
2474
+ 0,
2475
+ [_j, _te, _ima, _doc, _vi],
2476
+ [15, 0, () => ImageBlock, () => DocumentBlock, () => VideoBlock],
2477
+ ];
2478
+ var VideoSource = [3, n0, _VS, 0, [_b, _sL], [21, () => S3Location]];
2479
+ var ApplyGuardrail = [
2480
+ 9,
2481
+ n0,
2482
+ _AG,
2483
+ {
2484
+ [_h]: ["POST", "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply", 200],
2485
+ },
2486
+ () => ApplyGuardrailRequest,
2487
+ () => ApplyGuardrailResponse,
2488
+ ];
2489
+ var Converse = [
2490
+ 9,
2491
+ n0,
2492
+ _Co,
2493
+ {
2494
+ [_h]: ["POST", "/model/{modelId}/converse", 200],
2495
+ },
2496
+ () => ConverseRequest,
2497
+ () => ConverseResponse,
2498
+ ];
2499
+ var ConverseStream = [
2500
+ 9,
2501
+ n0,
2502
+ _CS,
2503
+ {
2504
+ [_h]: ["POST", "/model/{modelId}/converse-stream", 200],
2505
+ },
2506
+ () => ConverseStreamRequest,
2507
+ () => ConverseStreamResponse,
2508
+ ];
2509
+ var CountTokens = [
2510
+ 9,
2511
+ n0,
2512
+ _CTo,
2513
+ {
2514
+ [_h]: ["POST", "/model/{modelId}/count-tokens", 200],
2515
+ },
2516
+ () => CountTokensRequest,
2517
+ () => CountTokensResponse,
2518
+ ];
2519
+ var GetAsyncInvoke = [
2520
+ 9,
2521
+ n0,
2522
+ _GAI,
2523
+ {
2524
+ [_h]: ["GET", "/async-invoke/{invocationArn}", 200],
2525
+ },
2526
+ () => GetAsyncInvokeRequest,
2527
+ () => GetAsyncInvokeResponse,
2528
+ ];
2529
+ var InvokeModel = [
2530
+ 9,
2531
+ n0,
2532
+ _IM,
2533
+ {
2534
+ [_h]: ["POST", "/model/{modelId}/invoke", 200],
2535
+ },
2536
+ () => InvokeModelRequest,
2537
+ () => InvokeModelResponse,
2538
+ ];
2539
+ var InvokeModelWithBidirectionalStream = [
2540
+ 9,
2541
+ n0,
2542
+ _IMWBS,
2543
+ {
2544
+ [_h]: ["POST", "/model/{modelId}/invoke-with-bidirectional-stream", 200],
2545
+ },
2546
+ () => InvokeModelWithBidirectionalStreamRequest,
2547
+ () => InvokeModelWithBidirectionalStreamResponse,
2548
+ ];
2549
+ var InvokeModelWithResponseStream = [
2550
+ 9,
2551
+ n0,
2552
+ _IMWRS,
2553
+ {
2554
+ [_h]: ["POST", "/model/{modelId}/invoke-with-response-stream", 200],
2555
+ },
2556
+ () => InvokeModelWithResponseStreamRequest,
2557
+ () => InvokeModelWithResponseStreamResponse,
2558
+ ];
2559
+ var ListAsyncInvokes = [
2560
+ 9,
2561
+ n0,
2562
+ _LAI,
2563
+ {
2564
+ [_h]: ["GET", "/async-invoke", 200],
2565
+ },
2566
+ () => ListAsyncInvokesRequest,
2567
+ () => ListAsyncInvokesResponse,
2568
+ ];
2569
+ var StartAsyncInvoke = [
2570
+ 9,
2571
+ n0,
2572
+ _SAI,
2573
+ {
2574
+ [_h]: ["POST", "/async-invoke", 200],
2575
+ },
2576
+ () => StartAsyncInvokeRequest,
2577
+ () => StartAsyncInvokeResponse,
2578
+ ];
2880
2579
 
2881
2580
  class ApplyGuardrailCommand extends smithyClient.Command
2882
2581
  .classBuilder()
2883
2582
  .ep(commonParams)
2884
2583
  .m(function (Command, cs, config, o) {
2885
- return [
2886
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2887
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2888
- ];
2584
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2889
2585
  })
2890
2586
  .s("AmazonBedrockFrontendService", "ApplyGuardrail", {})
2891
2587
  .n("BedrockRuntimeClient", "ApplyGuardrailCommand")
2892
- .f(ApplyGuardrailRequestFilterSensitiveLog, ApplyGuardrailResponseFilterSensitiveLog)
2893
- .ser(se_ApplyGuardrailCommand)
2894
- .de(de_ApplyGuardrailCommand)
2588
+ .sc(ApplyGuardrail)
2895
2589
  .build() {
2896
2590
  }
2897
2591
 
@@ -2899,16 +2593,11 @@ class ConverseCommand extends smithyClient.Command
2899
2593
  .classBuilder()
2900
2594
  .ep(commonParams)
2901
2595
  .m(function (Command, cs, config, o) {
2902
- return [
2903
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2904
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2905
- ];
2596
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2906
2597
  })
2907
2598
  .s("AmazonBedrockFrontendService", "Converse", {})
2908
2599
  .n("BedrockRuntimeClient", "ConverseCommand")
2909
- .f(ConverseRequestFilterSensitiveLog, ConverseResponseFilterSensitiveLog)
2910
- .ser(se_ConverseCommand)
2911
- .de(de_ConverseCommand)
2600
+ .sc(Converse)
2912
2601
  .build() {
2913
2602
  }
2914
2603
 
@@ -2916,10 +2605,7 @@ class ConverseStreamCommand extends smithyClient.Command
2916
2605
  .classBuilder()
2917
2606
  .ep(commonParams)
2918
2607
  .m(function (Command, cs, config, o) {
2919
- return [
2920
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2921
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2922
- ];
2608
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2923
2609
  })
2924
2610
  .s("AmazonBedrockFrontendService", "ConverseStream", {
2925
2611
  eventStream: {
@@ -2927,9 +2613,7 @@ class ConverseStreamCommand extends smithyClient.Command
2927
2613
  },
2928
2614
  })
2929
2615
  .n("BedrockRuntimeClient", "ConverseStreamCommand")
2930
- .f(ConverseStreamRequestFilterSensitiveLog, ConverseStreamResponseFilterSensitiveLog)
2931
- .ser(se_ConverseStreamCommand)
2932
- .de(de_ConverseStreamCommand)
2616
+ .sc(ConverseStream)
2933
2617
  .build() {
2934
2618
  }
2935
2619
 
@@ -2937,16 +2621,11 @@ class CountTokensCommand extends smithyClient.Command
2937
2621
  .classBuilder()
2938
2622
  .ep(commonParams)
2939
2623
  .m(function (Command, cs, config, o) {
2940
- return [
2941
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2942
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2943
- ];
2624
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2944
2625
  })
2945
2626
  .s("AmazonBedrockFrontendService", "CountTokens", {})
2946
2627
  .n("BedrockRuntimeClient", "CountTokensCommand")
2947
- .f(CountTokensRequestFilterSensitiveLog, void 0)
2948
- .ser(se_CountTokensCommand)
2949
- .de(de_CountTokensCommand)
2628
+ .sc(CountTokens)
2950
2629
  .build() {
2951
2630
  }
2952
2631
 
@@ -2954,16 +2633,11 @@ class GetAsyncInvokeCommand extends smithyClient.Command
2954
2633
  .classBuilder()
2955
2634
  .ep(commonParams)
2956
2635
  .m(function (Command, cs, config, o) {
2957
- return [
2958
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2959
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2960
- ];
2636
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2961
2637
  })
2962
2638
  .s("AmazonBedrockFrontendService", "GetAsyncInvoke", {})
2963
2639
  .n("BedrockRuntimeClient", "GetAsyncInvokeCommand")
2964
- .f(void 0, GetAsyncInvokeResponseFilterSensitiveLog)
2965
- .ser(se_GetAsyncInvokeCommand)
2966
- .de(de_GetAsyncInvokeCommand)
2640
+ .sc(GetAsyncInvoke)
2967
2641
  .build() {
2968
2642
  }
2969
2643
 
@@ -2971,16 +2645,11 @@ class InvokeModelCommand extends smithyClient.Command
2971
2645
  .classBuilder()
2972
2646
  .ep(commonParams)
2973
2647
  .m(function (Command, cs, config, o) {
2974
- return [
2975
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2976
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2977
- ];
2648
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2978
2649
  })
2979
2650
  .s("AmazonBedrockFrontendService", "InvokeModel", {})
2980
2651
  .n("BedrockRuntimeClient", "InvokeModelCommand")
2981
- .f(InvokeModelRequestFilterSensitiveLog, InvokeModelResponseFilterSensitiveLog)
2982
- .ser(se_InvokeModelCommand)
2983
- .de(de_InvokeModelCommand)
2652
+ .sc(InvokeModel)
2984
2653
  .build() {
2985
2654
  }
2986
2655
 
@@ -2989,7 +2658,6 @@ class InvokeModelWithBidirectionalStreamCommand extends smithyClient.Command
2989
2658
  .ep(commonParams)
2990
2659
  .m(function (Command, cs, config, o) {
2991
2660
  return [
2992
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2993
2661
  middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2994
2662
  middlewareEventstream.getEventStreamPlugin(config),
2995
2663
  middlewareWebsocket.getWebSocketPlugin(config, {
@@ -3004,9 +2672,7 @@ class InvokeModelWithBidirectionalStreamCommand extends smithyClient.Command
3004
2672
  },
3005
2673
  })
3006
2674
  .n("BedrockRuntimeClient", "InvokeModelWithBidirectionalStreamCommand")
3007
- .f(InvokeModelWithBidirectionalStreamRequestFilterSensitiveLog, InvokeModelWithBidirectionalStreamResponseFilterSensitiveLog)
3008
- .ser(se_InvokeModelWithBidirectionalStreamCommand)
3009
- .de(de_InvokeModelWithBidirectionalStreamCommand)
2675
+ .sc(InvokeModelWithBidirectionalStream)
3010
2676
  .build() {
3011
2677
  }
3012
2678
 
@@ -3014,10 +2680,7 @@ class InvokeModelWithResponseStreamCommand extends smithyClient.Command
3014
2680
  .classBuilder()
3015
2681
  .ep(commonParams)
3016
2682
  .m(function (Command, cs, config, o) {
3017
- return [
3018
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
3019
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
3020
- ];
2683
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
3021
2684
  })
3022
2685
  .s("AmazonBedrockFrontendService", "InvokeModelWithResponseStream", {
3023
2686
  eventStream: {
@@ -3025,9 +2688,7 @@ class InvokeModelWithResponseStreamCommand extends smithyClient.Command
3025
2688
  },
3026
2689
  })
3027
2690
  .n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand")
3028
- .f(InvokeModelWithResponseStreamRequestFilterSensitiveLog, InvokeModelWithResponseStreamResponseFilterSensitiveLog)
3029
- .ser(se_InvokeModelWithResponseStreamCommand)
3030
- .de(de_InvokeModelWithResponseStreamCommand)
2691
+ .sc(InvokeModelWithResponseStream)
3031
2692
  .build() {
3032
2693
  }
3033
2694
 
@@ -3035,16 +2696,11 @@ class ListAsyncInvokesCommand extends smithyClient.Command
3035
2696
  .classBuilder()
3036
2697
  .ep(commonParams)
3037
2698
  .m(function (Command, cs, config, o) {
3038
- return [
3039
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
3040
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
3041
- ];
2699
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
3042
2700
  })
3043
2701
  .s("AmazonBedrockFrontendService", "ListAsyncInvokes", {})
3044
2702
  .n("BedrockRuntimeClient", "ListAsyncInvokesCommand")
3045
- .f(void 0, ListAsyncInvokesResponseFilterSensitiveLog)
3046
- .ser(se_ListAsyncInvokesCommand)
3047
- .de(de_ListAsyncInvokesCommand)
2703
+ .sc(ListAsyncInvokes)
3048
2704
  .build() {
3049
2705
  }
3050
2706
 
@@ -3052,16 +2708,11 @@ class StartAsyncInvokeCommand extends smithyClient.Command
3052
2708
  .classBuilder()
3053
2709
  .ep(commonParams)
3054
2710
  .m(function (Command, cs, config, o) {
3055
- return [
3056
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
3057
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
3058
- ];
2711
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
3059
2712
  })
3060
2713
  .s("AmazonBedrockFrontendService", "StartAsyncInvoke", {})
3061
2714
  .n("BedrockRuntimeClient", "StartAsyncInvokeCommand")
3062
- .f(StartAsyncInvokeRequestFilterSensitiveLog, void 0)
3063
- .ser(se_StartAsyncInvokeCommand)
3064
- .de(de_StartAsyncInvokeCommand)
2715
+ .sc(StartAsyncInvoke)
3065
2716
  .build() {
3066
2717
  }
3067
2718
 
@@ -3091,58 +2742,22 @@ Object.defineProperty(exports, "__Client", {
3091
2742
  enumerable: true,
3092
2743
  get: function () { return smithyClient.Client; }
3093
2744
  });
3094
- exports.AccessDeniedException = AccessDeniedException;
2745
+ exports.AccessDeniedException = AccessDeniedException$1;
3095
2746
  exports.ApplyGuardrailCommand = ApplyGuardrailCommand;
3096
- exports.ApplyGuardrailRequestFilterSensitiveLog = ApplyGuardrailRequestFilterSensitiveLog;
3097
- exports.ApplyGuardrailResponseFilterSensitiveLog = ApplyGuardrailResponseFilterSensitiveLog;
3098
2747
  exports.AsyncInvokeStatus = AsyncInvokeStatus;
3099
- exports.AsyncInvokeSummaryFilterSensitiveLog = AsyncInvokeSummaryFilterSensitiveLog;
3100
2748
  exports.BedrockRuntime = BedrockRuntime;
3101
2749
  exports.BedrockRuntimeClient = BedrockRuntimeClient;
3102
- exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException;
3103
- exports.BidirectionalInputPayloadPartFilterSensitiveLog = BidirectionalInputPayloadPartFilterSensitiveLog;
3104
- exports.BidirectionalOutputPayloadPartFilterSensitiveLog = BidirectionalOutputPayloadPartFilterSensitiveLog;
2750
+ exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException$1;
3105
2751
  exports.CachePointType = CachePointType;
3106
- exports.ConflictException = ConflictException;
3107
- exports.ContentBlockDeltaEventFilterSensitiveLog = ContentBlockDeltaEventFilterSensitiveLog;
3108
- exports.ContentBlockDeltaFilterSensitiveLog = ContentBlockDeltaFilterSensitiveLog;
3109
- exports.ContentBlockFilterSensitiveLog = ContentBlockFilterSensitiveLog;
2752
+ exports.ConflictException = ConflictException$1;
3110
2753
  exports.ConversationRole = ConversationRole;
3111
2754
  exports.ConverseCommand = ConverseCommand;
3112
- exports.ConverseOutputFilterSensitiveLog = ConverseOutputFilterSensitiveLog;
3113
- exports.ConverseRequestFilterSensitiveLog = ConverseRequestFilterSensitiveLog;
3114
- exports.ConverseResponseFilterSensitiveLog = ConverseResponseFilterSensitiveLog;
3115
2755
  exports.ConverseStreamCommand = ConverseStreamCommand;
3116
- exports.ConverseStreamMetadataEventFilterSensitiveLog = ConverseStreamMetadataEventFilterSensitiveLog;
3117
- exports.ConverseStreamOutputFilterSensitiveLog = ConverseStreamOutputFilterSensitiveLog;
3118
- exports.ConverseStreamRequestFilterSensitiveLog = ConverseStreamRequestFilterSensitiveLog;
3119
- exports.ConverseStreamResponseFilterSensitiveLog = ConverseStreamResponseFilterSensitiveLog;
3120
- exports.ConverseStreamTraceFilterSensitiveLog = ConverseStreamTraceFilterSensitiveLog;
3121
- exports.ConverseTokensRequestFilterSensitiveLog = ConverseTokensRequestFilterSensitiveLog;
3122
- exports.ConverseTraceFilterSensitiveLog = ConverseTraceFilterSensitiveLog;
3123
2756
  exports.CountTokensCommand = CountTokensCommand;
3124
- exports.CountTokensInputFilterSensitiveLog = CountTokensInputFilterSensitiveLog;
3125
- exports.CountTokensRequestFilterSensitiveLog = CountTokensRequestFilterSensitiveLog;
3126
2757
  exports.DocumentFormat = DocumentFormat;
3127
2758
  exports.GetAsyncInvokeCommand = GetAsyncInvokeCommand;
3128
- exports.GetAsyncInvokeResponseFilterSensitiveLog = GetAsyncInvokeResponseFilterSensitiveLog;
3129
2759
  exports.GuardrailAction = GuardrailAction;
3130
- exports.GuardrailAssessmentFilterSensitiveLog = GuardrailAssessmentFilterSensitiveLog;
3131
- exports.GuardrailAutomatedReasoningFindingFilterSensitiveLog = GuardrailAutomatedReasoningFindingFilterSensitiveLog;
3132
- exports.GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog = GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog;
3133
- exports.GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog = GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog;
3134
- exports.GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog = GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog;
3135
- exports.GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog = GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog;
3136
2760
  exports.GuardrailAutomatedReasoningLogicWarningType = GuardrailAutomatedReasoningLogicWarningType;
3137
- exports.GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog = GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog;
3138
- exports.GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog = GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog;
3139
- exports.GuardrailAutomatedReasoningScenarioFilterSensitiveLog = GuardrailAutomatedReasoningScenarioFilterSensitiveLog;
3140
- exports.GuardrailAutomatedReasoningStatementFilterSensitiveLog = GuardrailAutomatedReasoningStatementFilterSensitiveLog;
3141
- exports.GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog = GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog;
3142
- exports.GuardrailAutomatedReasoningTranslationFilterSensitiveLog = GuardrailAutomatedReasoningTranslationFilterSensitiveLog;
3143
- exports.GuardrailAutomatedReasoningTranslationOptionFilterSensitiveLog = GuardrailAutomatedReasoningTranslationOptionFilterSensitiveLog;
3144
- exports.GuardrailAutomatedReasoningValidFindingFilterSensitiveLog = GuardrailAutomatedReasoningValidFindingFilterSensitiveLog;
3145
- exports.GuardrailContentBlockFilterSensitiveLog = GuardrailContentBlockFilterSensitiveLog;
3146
2761
  exports.GuardrailContentFilterConfidence = GuardrailContentFilterConfidence;
3147
2762
  exports.GuardrailContentFilterStrength = GuardrailContentFilterStrength;
3148
2763
  exports.GuardrailContentFilterType = GuardrailContentFilterType;
@@ -3151,14 +2766,9 @@ exports.GuardrailContentQualifier = GuardrailContentQualifier;
3151
2766
  exports.GuardrailContentSource = GuardrailContentSource;
3152
2767
  exports.GuardrailContextualGroundingFilterType = GuardrailContextualGroundingFilterType;
3153
2768
  exports.GuardrailContextualGroundingPolicyAction = GuardrailContextualGroundingPolicyAction;
3154
- exports.GuardrailConverseContentBlockFilterSensitiveLog = GuardrailConverseContentBlockFilterSensitiveLog;
3155
2769
  exports.GuardrailConverseContentQualifier = GuardrailConverseContentQualifier;
3156
- exports.GuardrailConverseImageBlockFilterSensitiveLog = GuardrailConverseImageBlockFilterSensitiveLog;
3157
2770
  exports.GuardrailConverseImageFormat = GuardrailConverseImageFormat;
3158
- exports.GuardrailConverseImageSourceFilterSensitiveLog = GuardrailConverseImageSourceFilterSensitiveLog;
3159
- exports.GuardrailImageBlockFilterSensitiveLog = GuardrailImageBlockFilterSensitiveLog;
3160
2771
  exports.GuardrailImageFormat = GuardrailImageFormat;
3161
- exports.GuardrailImageSourceFilterSensitiveLog = GuardrailImageSourceFilterSensitiveLog;
3162
2772
  exports.GuardrailManagedWordType = GuardrailManagedWordType;
3163
2773
  exports.GuardrailOutputScope = GuardrailOutputScope;
3164
2774
  exports.GuardrailPiiEntityType = GuardrailPiiEntityType;
@@ -3167,48 +2777,29 @@ exports.GuardrailStreamProcessingMode = GuardrailStreamProcessingMode;
3167
2777
  exports.GuardrailTopicPolicyAction = GuardrailTopicPolicyAction;
3168
2778
  exports.GuardrailTopicType = GuardrailTopicType;
3169
2779
  exports.GuardrailTrace = GuardrailTrace;
3170
- exports.GuardrailTraceAssessmentFilterSensitiveLog = GuardrailTraceAssessmentFilterSensitiveLog;
3171
2780
  exports.GuardrailWordPolicyAction = GuardrailWordPolicyAction;
3172
2781
  exports.ImageFormat = ImageFormat;
3173
- exports.InternalServerException = InternalServerException;
2782
+ exports.InternalServerException = InternalServerException$1;
3174
2783
  exports.InvokeModelCommand = InvokeModelCommand;
3175
- exports.InvokeModelRequestFilterSensitiveLog = InvokeModelRequestFilterSensitiveLog;
3176
- exports.InvokeModelResponseFilterSensitiveLog = InvokeModelResponseFilterSensitiveLog;
3177
- exports.InvokeModelTokensRequestFilterSensitiveLog = InvokeModelTokensRequestFilterSensitiveLog;
3178
2784
  exports.InvokeModelWithBidirectionalStreamCommand = InvokeModelWithBidirectionalStreamCommand;
3179
- exports.InvokeModelWithBidirectionalStreamInputFilterSensitiveLog = InvokeModelWithBidirectionalStreamInputFilterSensitiveLog;
3180
- exports.InvokeModelWithBidirectionalStreamOutputFilterSensitiveLog = InvokeModelWithBidirectionalStreamOutputFilterSensitiveLog;
3181
- exports.InvokeModelWithBidirectionalStreamRequestFilterSensitiveLog = InvokeModelWithBidirectionalStreamRequestFilterSensitiveLog;
3182
- exports.InvokeModelWithBidirectionalStreamResponseFilterSensitiveLog = InvokeModelWithBidirectionalStreamResponseFilterSensitiveLog;
3183
2785
  exports.InvokeModelWithResponseStreamCommand = InvokeModelWithResponseStreamCommand;
3184
- exports.InvokeModelWithResponseStreamRequestFilterSensitiveLog = InvokeModelWithResponseStreamRequestFilterSensitiveLog;
3185
- exports.InvokeModelWithResponseStreamResponseFilterSensitiveLog = InvokeModelWithResponseStreamResponseFilterSensitiveLog;
3186
2786
  exports.ListAsyncInvokesCommand = ListAsyncInvokesCommand;
3187
- exports.ListAsyncInvokesResponseFilterSensitiveLog = ListAsyncInvokesResponseFilterSensitiveLog;
3188
- exports.MessageFilterSensitiveLog = MessageFilterSensitiveLog;
3189
- exports.ModelErrorException = ModelErrorException;
3190
- exports.ModelNotReadyException = ModelNotReadyException;
3191
- exports.ModelStreamErrorException = ModelStreamErrorException;
3192
- exports.ModelTimeoutException = ModelTimeoutException;
3193
- exports.PayloadPartFilterSensitiveLog = PayloadPartFilterSensitiveLog;
2787
+ exports.ModelErrorException = ModelErrorException$1;
2788
+ exports.ModelNotReadyException = ModelNotReadyException$1;
2789
+ exports.ModelStreamErrorException = ModelStreamErrorException$1;
2790
+ exports.ModelTimeoutException = ModelTimeoutException$1;
3194
2791
  exports.PerformanceConfigLatency = PerformanceConfigLatency;
3195
- exports.ReasoningContentBlockDeltaFilterSensitiveLog = ReasoningContentBlockDeltaFilterSensitiveLog;
3196
- exports.ReasoningContentBlockFilterSensitiveLog = ReasoningContentBlockFilterSensitiveLog;
3197
- exports.ReasoningTextBlockFilterSensitiveLog = ReasoningTextBlockFilterSensitiveLog;
3198
- exports.ResourceNotFoundException = ResourceNotFoundException;
3199
- exports.ResponseStreamFilterSensitiveLog = ResponseStreamFilterSensitiveLog;
3200
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
3201
- exports.ServiceUnavailableException = ServiceUnavailableException;
2792
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
2793
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
2794
+ exports.ServiceUnavailableException = ServiceUnavailableException$1;
3202
2795
  exports.SortAsyncInvocationBy = SortAsyncInvocationBy;
3203
2796
  exports.SortOrder = SortOrder;
3204
2797
  exports.StartAsyncInvokeCommand = StartAsyncInvokeCommand;
3205
- exports.StartAsyncInvokeRequestFilterSensitiveLog = StartAsyncInvokeRequestFilterSensitiveLog;
3206
2798
  exports.StopReason = StopReason;
3207
- exports.SystemContentBlockFilterSensitiveLog = SystemContentBlockFilterSensitiveLog;
3208
- exports.ThrottlingException = ThrottlingException;
2799
+ exports.ThrottlingException = ThrottlingException$1;
3209
2800
  exports.ToolResultStatus = ToolResultStatus;
3210
2801
  exports.ToolUseType = ToolUseType;
3211
2802
  exports.Trace = Trace;
3212
- exports.ValidationException = ValidationException;
2803
+ exports.ValidationException = ValidationException$1;
3213
2804
  exports.VideoFormat = VideoFormat;
3214
2805
  exports.paginateListAsyncInvokes = paginateListAsyncInvokes;