@aws-sdk/client-bedrock-runtime 3.928.0 → 3.930.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 -2549
  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 -810
  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 +124 -271
  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 -223
  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 +41 -42
  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
@@ -9,7 +9,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
9
9
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
10
10
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
11
11
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
12
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
12
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
13
13
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
14
14
  import { ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput } from "./commands/ApplyGuardrailCommand";
15
15
  import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand";
@@ -155,6 +155,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
155
155
  * Optional extensions
156
156
  */
157
157
  extensions?: RuntimeExtension[];
158
+ /**
159
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
160
+ * may be overridden. A default will always be set by the client.
161
+ * Available options depend on the service's supported protocols and will not be validated by
162
+ * the client.
163
+ * @alpha
164
+ *
165
+ */
166
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
158
167
  /**
159
168
  * The function that provides necessary utilities for generating and parsing event stream
160
169
  */