@aws-sdk/client-bedrock-runtime 3.839.0 → 3.842.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 (40) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +17 -0
  2. package/dist-cjs/index.js +89 -5
  3. package/dist-cjs/runtimeConfig.browser.js +3 -3
  4. package/dist-cjs/runtimeConfig.js +23 -0
  5. package/dist-cjs/runtimeConfig.shared.js +6 -0
  6. package/dist-es/BedrockRuntimeClient.js +5 -2
  7. package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
  8. package/dist-es/auth/httpAuthSchemeProvider.js +17 -0
  9. package/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +4 -0
  10. package/dist-es/models/models_0.js +48 -0
  11. package/dist-es/protocols/Aws_restJson1.js +25 -0
  12. package/dist-es/runtimeConfig.browser.js +5 -5
  13. package/dist-es/runtimeConfig.js +24 -1
  14. package/dist-es/runtimeConfig.shared.js +6 -0
  15. package/dist-types/BedrockRuntimeClient.d.ts +3 -2
  16. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +4 -1
  17. package/dist-types/auth/httpAuthSchemeProvider.d.ts +9 -1
  18. package/dist-types/commands/ApplyGuardrailCommand.d.ts +6 -13
  19. package/dist-types/commands/ConverseCommand.d.ts +120 -44
  20. package/dist-types/commands/ConverseStreamCommand.d.ts +89 -48
  21. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +4 -8
  22. package/dist-types/commands/InvokeModelCommand.d.ts +8 -30
  23. package/dist-types/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +8 -18
  24. package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +8 -35
  25. package/dist-types/commands/ListAsyncInvokesCommand.d.ts +4 -8
  26. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +7 -21
  27. package/dist-types/models/models_0.d.ts +432 -296
  28. package/dist-types/runtimeConfig.browser.d.ts +12 -3
  29. package/dist-types/runtimeConfig.d.ts +13 -1
  30. package/dist-types/runtimeConfig.native.d.ts +14 -2
  31. package/dist-types/runtimeConfig.shared.d.ts +12 -1
  32. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +6 -0
  33. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +5 -0
  34. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +4 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +192 -1
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +29 -5
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +30 -1
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +41 -3
  39. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -1
  40. package/package.json +16 -14
@@ -7,8 +7,20 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
7
7
  | import("@smithy/types").NodeHttpHandlerOptions
8
8
  | import("@smithy/types").FetchHttpHandlerOptions
9
9
  | Record<string, unknown>
10
- | import("@smithy/protocol-http").HttpHandler<any>
11
- | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
+ | (import("@smithy/types").RequestHandler<
11
+ any,
12
+ any,
13
+ import("@smithy/types").HttpHandlerOptions
14
+ > &
15
+ import("@smithy/types").RequestHandler<
16
+ import("@smithy/protocol-http").HttpRequest,
17
+ import("@smithy/protocol-http").HttpResponse,
18
+ import("@smithy/types").HttpHandlerOptions
19
+ > & {
20
+ updateHttpClientConfig(key: never, value: never): void;
21
+ httpHandlerConfigs(): {};
22
+ })
23
+ | import("@aws-sdk/middleware-websocket").WebSocketFetchHandler;
12
24
  apiVersion: string;
13
25
  cacheMiddleware?: boolean;
14
26
  urlParser: import("@smithy/types").UrlParser;
@@ -78,8 +90,34 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
78
90
  tls?: boolean;
79
91
  serviceConfiguredEndpoint?: never;
80
92
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
81
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
93
+ httpAuthSchemes: (
94
+ | {
95
+ schemeId: string;
96
+ identityProvider: (
97
+ ipc: import("@smithy/types").IdentityProviderConfig
98
+ ) =>
99
+ | import("@smithy/types").IdentityProvider<
100
+ import("@smithy/types").Identity
101
+ >
102
+ | undefined;
103
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
104
+ }
105
+ | {
106
+ schemeId: string;
107
+ identityProvider: (
108
+ ipc: import("@smithy/types").IdentityProviderConfig
109
+ ) =>
110
+ | import("@smithy/types").IdentityProvider<
111
+ import("@smithy/types").Identity
112
+ >
113
+ | undefined;
114
+ signer: import("@smithy/core").HttpBearerAuthSigner;
115
+ }
116
+ )[];
82
117
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
118
+ token?:
119
+ | import("@smithy/types").TokenIdentity
120
+ | import("@smithy/types").TokenIdentityProvider;
83
121
  credentials?:
84
122
  | import("@smithy/types").AwsCredentialIdentity
85
123
  | import("@smithy/types").AwsCredentialIdentityProvider;
@@ -1,3 +1,6 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { HttpBearerAuthSigner } from "@smithy/core";
3
+ import { IdentityProviderConfig } from "@smithy/types";
1
4
  import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
2
5
  export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
3
6
  apiVersion: string;
@@ -12,7 +15,30 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
12
15
  ) => import("@smithy/types").EndpointV2;
13
16
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
17
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
15
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
+ httpAuthSchemes: (
19
+ | {
20
+ schemeId: string;
21
+ identityProvider: (
22
+ ipc: IdentityProviderConfig
23
+ ) =>
24
+ | import("@smithy/types").IdentityProvider<
25
+ import("@smithy/types").Identity
26
+ >
27
+ | undefined;
28
+ signer: AwsSdkSigV4Signer;
29
+ }
30
+ | {
31
+ schemeId: string;
32
+ identityProvider: (
33
+ ipc: IdentityProviderConfig
34
+ ) =>
35
+ | import("@smithy/types").IdentityProvider<
36
+ import("@smithy/types").Identity
37
+ >
38
+ | undefined;
39
+ signer: HttpBearerAuthSigner;
40
+ }
41
+ )[];
16
42
  logger: import("@smithy/types").Logger;
17
43
  serviceId: string;
18
44
  urlParser: import("@smithy/types").UrlParser;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.839.0",
4
+ "version": "3.842.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
@@ -20,19 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.839.0",
24
- "@aws-sdk/credential-provider-node": "3.839.0",
25
- "@aws-sdk/eventstream-handler-node": "3.821.0",
26
- "@aws-sdk/middleware-eventstream": "3.821.0",
27
- "@aws-sdk/middleware-host-header": "3.821.0",
28
- "@aws-sdk/middleware-logger": "3.821.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.821.0",
30
- "@aws-sdk/middleware-user-agent": "3.839.0",
31
- "@aws-sdk/region-config-resolver": "3.821.0",
32
- "@aws-sdk/types": "3.821.0",
33
- "@aws-sdk/util-endpoints": "3.828.0",
34
- "@aws-sdk/util-user-agent-browser": "3.821.0",
35
- "@aws-sdk/util-user-agent-node": "3.839.0",
23
+ "@aws-sdk/core": "3.840.0",
24
+ "@aws-sdk/credential-provider-node": "3.840.0",
25
+ "@aws-sdk/eventstream-handler-node": "3.840.0",
26
+ "@aws-sdk/middleware-eventstream": "3.840.0",
27
+ "@aws-sdk/middleware-host-header": "3.840.0",
28
+ "@aws-sdk/middleware-logger": "3.840.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.840.0",
30
+ "@aws-sdk/middleware-user-agent": "3.840.0",
31
+ "@aws-sdk/middleware-websocket": "3.840.0",
32
+ "@aws-sdk/region-config-resolver": "3.840.0",
33
+ "@aws-sdk/token-providers": "3.840.0",
34
+ "@aws-sdk/types": "3.840.0",
35
+ "@aws-sdk/util-endpoints": "3.840.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.840.0",
37
+ "@aws-sdk/util-user-agent-node": "3.840.0",
36
38
  "@smithy/config-resolver": "^4.1.4",
37
39
  "@smithy/core": "^3.6.0",
38
40
  "@smithy/eventstream-serde-browser": "^4.0.4",