@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
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { HttpBearerAuthSigner } from "@smithy/core";
3
4
  import { NoOpLogger } from "@smithy/smithy-client";
4
5
  import { parseUrl } from "@smithy/url-parser";
@@ -28,6 +29,7 @@ export const getRuntimeConfig = (config) => {
28
29
  },
29
30
  ],
30
31
  logger: config?.logger ?? new NoOpLogger(),
32
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.bedrockruntime" }),
31
33
  serviceId: config?.serviceId ?? "Bedrock Runtime",
32
34
  urlParser: config?.urlParser ?? parseUrl,
33
35
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,