@aws-sdk/client-bedrock-runtime 3.952.0 → 3.953.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 (30) hide show
  1. package/dist-cjs/index.js +610 -428
  2. package/dist-cjs/runtimeConfig.shared.js +6 -1
  3. package/dist-es/commands/ApplyGuardrailCommand.js +2 -2
  4. package/dist-es/commands/ConverseCommand.js +2 -2
  5. package/dist-es/commands/ConverseStreamCommand.js +2 -2
  6. package/dist-es/commands/CountTokensCommand.js +2 -2
  7. package/dist-es/commands/GetAsyncInvokeCommand.js +2 -2
  8. package/dist-es/commands/InvokeModelCommand.js +2 -2
  9. package/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -2
  10. package/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -2
  11. package/dist-es/commands/ListAsyncInvokesCommand.js +2 -2
  12. package/dist-es/commands/StartAsyncInvokeCommand.js +2 -2
  13. package/dist-es/index.js +1 -0
  14. package/dist-es/runtimeConfig.shared.js +6 -1
  15. package/dist-es/schemas/schemas_0.js +410 -402
  16. package/dist-types/BedrockRuntimeClient.d.ts +1 -10
  17. package/dist-types/index.d.ts +1 -0
  18. package/dist-types/runtimeConfig.browser.d.ts +6 -2
  19. package/dist-types/runtimeConfig.d.ts +6 -2
  20. package/dist-types/runtimeConfig.native.d.ts +6 -2
  21. package/dist-types/runtimeConfig.shared.d.ts +6 -1
  22. package/dist-types/schemas/schemas_0.d.ts +175 -222
  23. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +0 -4
  24. package/dist-types/ts3.4/index.d.ts +1 -0
  25. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
  26. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
  27. package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
  28. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
  29. package/dist-types/ts3.4/schemas/schemas_0.d.ts +174 -224
  30. package/package.json +42 -42
@@ -32,7 +32,12 @@ const getRuntimeConfig = (config) => {
32
32
  },
33
33
  ],
34
34
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
35
- protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.bedrockruntime" }),
35
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
36
+ protocolSettings: config?.protocolSettings ?? {
37
+ defaultNamespace: "com.amazonaws.bedrockruntime",
38
+ version: "2023-09-30",
39
+ serviceTarget: "AmazonBedrockFrontendService",
40
+ },
36
41
  serviceId: config?.serviceId ?? "Bedrock Runtime",
37
42
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
38
43
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ApplyGuardrail } from "../schemas/schemas_0";
4
+ import { ApplyGuardrail$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ApplyGuardrailCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ApplyGuardrailCommand extends $Command
11
11
  })
12
12
  .s("AmazonBedrockFrontendService", "ApplyGuardrail", {})
13
13
  .n("BedrockRuntimeClient", "ApplyGuardrailCommand")
14
- .sc(ApplyGuardrail)
14
+ .sc(ApplyGuardrail$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { Converse } from "../schemas/schemas_0";
4
+ import { Converse$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ConverseCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ConverseCommand extends $Command
11
11
  })
12
12
  .s("AmazonBedrockFrontendService", "Converse", {})
13
13
  .n("BedrockRuntimeClient", "ConverseCommand")
14
- .sc(Converse)
14
+ .sc(Converse$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ConverseStream } from "../schemas/schemas_0";
4
+ import { ConverseStream$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ConverseStreamCommand extends $Command
7
7
  .classBuilder()
@@ -15,6 +15,6 @@ export class ConverseStreamCommand extends $Command
15
15
  },
16
16
  })
17
17
  .n("BedrockRuntimeClient", "ConverseStreamCommand")
18
- .sc(ConverseStream)
18
+ .sc(ConverseStream$)
19
19
  .build() {
20
20
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { CountTokens } from "../schemas/schemas_0";
4
+ import { CountTokens$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class CountTokensCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class CountTokensCommand extends $Command
11
11
  })
12
12
  .s("AmazonBedrockFrontendService", "CountTokens", {})
13
13
  .n("BedrockRuntimeClient", "CountTokensCommand")
14
- .sc(CountTokens)
14
+ .sc(CountTokens$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetAsyncInvoke } from "../schemas/schemas_0";
4
+ import { GetAsyncInvoke$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetAsyncInvokeCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetAsyncInvokeCommand extends $Command
11
11
  })
12
12
  .s("AmazonBedrockFrontendService", "GetAsyncInvoke", {})
13
13
  .n("BedrockRuntimeClient", "GetAsyncInvokeCommand")
14
- .sc(GetAsyncInvoke)
14
+ .sc(GetAsyncInvoke$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { InvokeModel } from "../schemas/schemas_0";
4
+ import { InvokeModel$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class InvokeModelCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class InvokeModelCommand extends $Command
11
11
  })
12
12
  .s("AmazonBedrockFrontendService", "InvokeModel", {})
13
13
  .n("BedrockRuntimeClient", "InvokeModelCommand")
14
- .sc(InvokeModel)
14
+ .sc(InvokeModel$)
15
15
  .build() {
16
16
  }
@@ -3,7 +3,7 @@ import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
3
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
5
  import { commonParams } from "../endpoint/EndpointParameters";
6
- import { InvokeModelWithBidirectionalStream } from "../schemas/schemas_0";
6
+ import { InvokeModelWithBidirectionalStream$ } from "../schemas/schemas_0";
7
7
  export { $Command };
8
8
  export class InvokeModelWithBidirectionalStreamCommand extends $Command
9
9
  .classBuilder()
@@ -24,6 +24,6 @@ export class InvokeModelWithBidirectionalStreamCommand extends $Command
24
24
  },
25
25
  })
26
26
  .n("BedrockRuntimeClient", "InvokeModelWithBidirectionalStreamCommand")
27
- .sc(InvokeModelWithBidirectionalStream)
27
+ .sc(InvokeModelWithBidirectionalStream$)
28
28
  .build() {
29
29
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { InvokeModelWithResponseStream } from "../schemas/schemas_0";
4
+ import { InvokeModelWithResponseStream$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class InvokeModelWithResponseStreamCommand extends $Command
7
7
  .classBuilder()
@@ -15,6 +15,6 @@ export class InvokeModelWithResponseStreamCommand extends $Command
15
15
  },
16
16
  })
17
17
  .n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand")
18
- .sc(InvokeModelWithResponseStream)
18
+ .sc(InvokeModelWithResponseStream$)
19
19
  .build() {
20
20
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListAsyncInvokes } from "../schemas/schemas_0";
4
+ import { ListAsyncInvokes$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListAsyncInvokesCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListAsyncInvokesCommand extends $Command
11
11
  })
12
12
  .s("AmazonBedrockFrontendService", "ListAsyncInvokes", {})
13
13
  .n("BedrockRuntimeClient", "ListAsyncInvokesCommand")
14
- .sc(ListAsyncInvokes)
14
+ .sc(ListAsyncInvokes$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StartAsyncInvoke } from "../schemas/schemas_0";
4
+ import { StartAsyncInvoke$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StartAsyncInvokeCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StartAsyncInvokeCommand extends $Command
11
11
  })
12
12
  .s("AmazonBedrockFrontendService", "StartAsyncInvoke", {})
13
13
  .n("BedrockRuntimeClient", "StartAsyncInvokeCommand")
14
- .sc(StartAsyncInvoke)
14
+ .sc(StartAsyncInvoke$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./BedrockRuntimeClient";
2
2
  export * from "./BedrockRuntime";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./pagination";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
@@ -29,7 +29,12 @@ export const getRuntimeConfig = (config) => {
29
29
  },
30
30
  ],
31
31
  logger: config?.logger ?? new NoOpLogger(),
32
- protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.bedrockruntime" }),
32
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
33
+ protocolSettings: config?.protocolSettings ?? {
34
+ defaultNamespace: "com.amazonaws.bedrockruntime",
35
+ version: "2023-09-30",
36
+ serviceTarget: "AmazonBedrockFrontendService",
37
+ },
33
38
  serviceId: config?.serviceId ?? "Bedrock Runtime",
34
39
  urlParser: config?.urlParser ?? parseUrl,
35
40
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,