@aws-sdk/client-bedrock-runtime 3.699.0 → 3.705.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 (43) hide show
  1. package/README.md +31 -7
  2. package/dist-cjs/index.js +484 -116
  3. package/dist-es/BedrockRuntime.js +6 -0
  4. package/dist-es/commands/GetAsyncInvokeCommand.js +23 -0
  5. package/dist-es/commands/ListAsyncInvokesCommand.js +23 -0
  6. package/dist-es/commands/StartAsyncInvokeCommand.js +23 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/index.js +1 -0
  9. package/dist-es/models/models_0.js +156 -72
  10. package/dist-es/pagination/Interfaces.js +1 -0
  11. package/dist-es/pagination/ListAsyncInvokesPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +2 -0
  13. package/dist-es/protocols/Aws_restJson1.js +200 -2
  14. package/dist-types/BedrockRuntime.d.ts +22 -0
  15. package/dist-types/BedrockRuntimeClient.d.ts +5 -2
  16. package/dist-types/commands/ApplyGuardrailCommand.d.ts +12 -5
  17. package/dist-types/commands/ConverseCommand.d.ts +73 -9
  18. package/dist-types/commands/ConverseStreamCommand.d.ts +53 -9
  19. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
  20. package/dist-types/commands/InvokeModelCommand.d.ts +26 -9
  21. package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +26 -9
  22. package/dist-types/commands/ListAsyncInvokesCommand.d.ts +112 -0
  23. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +124 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/index.d.ts +1 -0
  26. package/dist-types/models/models_0.d.ts +652 -97
  27. package/dist-types/pagination/Interfaces.d.ts +8 -0
  28. package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +2 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  31. package/dist-types/ts3.4/BedrockRuntime.d.ts +52 -0
  32. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +20 -2
  33. package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +50 -0
  35. package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +50 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  37. package/dist-types/ts3.4/index.d.ts +1 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +254 -42
  39. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  40. package/dist-types/ts3.4/pagination/ListAsyncInvokesPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  43. package/package.json +4 -2
@@ -0,0 +1,8 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { BedrockRuntimeClient } from "../BedrockRuntimeClient";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface BedrockRuntimePaginationConfiguration extends PaginationConfiguration {
7
+ client: BedrockRuntimeClient;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput } from "../commands/ListAsyncInvokesCommand";
3
+ import { BedrockRuntimePaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListAsyncInvokes: (config: BedrockRuntimePaginationConfiguration, input: ListAsyncInvokesCommandInput, ...rest: any[]) => Paginator<ListAsyncInvokesCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAsyncInvokesPaginator";
@@ -3,8 +3,11 @@ import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as _
3
3
  import { ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput } from "../commands/ApplyGuardrailCommand";
4
4
  import { ConverseCommandInput, ConverseCommandOutput } from "../commands/ConverseCommand";
5
5
  import { ConverseStreamCommandInput, ConverseStreamCommandOutput } from "../commands/ConverseStreamCommand";
6
+ import { GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput } from "../commands/GetAsyncInvokeCommand";
6
7
  import { InvokeModelCommandInput, InvokeModelCommandOutput } from "../commands/InvokeModelCommand";
7
8
  import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput } from "../commands/InvokeModelWithResponseStreamCommand";
9
+ import { ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput } from "../commands/ListAsyncInvokesCommand";
10
+ import { StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput } from "../commands/StartAsyncInvokeCommand";
8
11
  /**
9
12
  * serializeAws_restJson1ApplyGuardrailCommand
10
13
  */
@@ -17,6 +20,10 @@ export declare const se_ConverseCommand: (input: ConverseCommandInput, context:
17
20
  * serializeAws_restJson1ConverseStreamCommand
18
21
  */
19
22
  export declare const se_ConverseStreamCommand: (input: ConverseStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
+ /**
24
+ * serializeAws_restJson1GetAsyncInvokeCommand
25
+ */
26
+ export declare const se_GetAsyncInvokeCommand: (input: GetAsyncInvokeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
27
  /**
21
28
  * serializeAws_restJson1InvokeModelCommand
22
29
  */
@@ -25,6 +32,14 @@ export declare const se_InvokeModelCommand: (input: InvokeModelCommandInput, con
25
32
  * serializeAws_restJson1InvokeModelWithResponseStreamCommand
26
33
  */
27
34
  export declare const se_InvokeModelWithResponseStreamCommand: (input: InvokeModelWithResponseStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
35
+ /**
36
+ * serializeAws_restJson1ListAsyncInvokesCommand
37
+ */
38
+ export declare const se_ListAsyncInvokesCommand: (input: ListAsyncInvokesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
+ /**
40
+ * serializeAws_restJson1StartAsyncInvokeCommand
41
+ */
42
+ export declare const se_StartAsyncInvokeCommand: (input: StartAsyncInvokeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
43
  /**
29
44
  * deserializeAws_restJson1ApplyGuardrailCommand
30
45
  */
@@ -37,6 +52,10 @@ export declare const de_ConverseCommand: (output: __HttpResponse, context: __Ser
37
52
  * deserializeAws_restJson1ConverseStreamCommand
38
53
  */
39
54
  export declare const de_ConverseStreamCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<ConverseStreamCommandOutput>;
55
+ /**
56
+ * deserializeAws_restJson1GetAsyncInvokeCommand
57
+ */
58
+ export declare const de_GetAsyncInvokeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAsyncInvokeCommandOutput>;
40
59
  /**
41
60
  * deserializeAws_restJson1InvokeModelCommand
42
61
  */
@@ -45,3 +64,11 @@ export declare const de_InvokeModelCommand: (output: __HttpResponse, context: __
45
64
  * deserializeAws_restJson1InvokeModelWithResponseStreamCommand
46
65
  */
47
66
  export declare const de_InvokeModelWithResponseStreamCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<InvokeModelWithResponseStreamCommandOutput>;
67
+ /**
68
+ * deserializeAws_restJson1ListAsyncInvokesCommand
69
+ */
70
+ export declare const de_ListAsyncInvokesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAsyncInvokesCommandOutput>;
71
+ /**
72
+ * deserializeAws_restJson1StartAsyncInvokeCommand
73
+ */
74
+ export declare const de_StartAsyncInvokeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartAsyncInvokeCommandOutput>;
@@ -12,6 +12,10 @@ import {
12
12
  ConverseStreamCommandInput,
13
13
  ConverseStreamCommandOutput,
14
14
  } from "./commands/ConverseStreamCommand";
15
+ import {
16
+ GetAsyncInvokeCommandInput,
17
+ GetAsyncInvokeCommandOutput,
18
+ } from "./commands/GetAsyncInvokeCommand";
15
19
  import {
16
20
  InvokeModelCommandInput,
17
21
  InvokeModelCommandOutput,
@@ -20,6 +24,14 @@ import {
20
24
  InvokeModelWithResponseStreamCommandInput,
21
25
  InvokeModelWithResponseStreamCommandOutput,
22
26
  } from "./commands/InvokeModelWithResponseStreamCommand";
27
+ import {
28
+ ListAsyncInvokesCommandInput,
29
+ ListAsyncInvokesCommandOutput,
30
+ } from "./commands/ListAsyncInvokesCommand";
31
+ import {
32
+ StartAsyncInvokeCommandInput,
33
+ StartAsyncInvokeCommandOutput,
34
+ } from "./commands/StartAsyncInvokeCommand";
23
35
  export interface BedrockRuntime {
24
36
  applyGuardrail(
25
37
  args: ApplyGuardrailCommandInput,
@@ -60,6 +72,19 @@ export interface BedrockRuntime {
60
72
  options: __HttpHandlerOptions,
61
73
  cb: (err: any, data?: ConverseStreamCommandOutput) => void
62
74
  ): void;
75
+ getAsyncInvoke(
76
+ args: GetAsyncInvokeCommandInput,
77
+ options?: __HttpHandlerOptions
78
+ ): Promise<GetAsyncInvokeCommandOutput>;
79
+ getAsyncInvoke(
80
+ args: GetAsyncInvokeCommandInput,
81
+ cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void
82
+ ): void;
83
+ getAsyncInvoke(
84
+ args: GetAsyncInvokeCommandInput,
85
+ options: __HttpHandlerOptions,
86
+ cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void
87
+ ): void;
63
88
  invokeModel(
64
89
  args: InvokeModelCommandInput,
65
90
  options?: __HttpHandlerOptions
@@ -86,6 +111,33 @@ export interface BedrockRuntime {
86
111
  options: __HttpHandlerOptions,
87
112
  cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void
88
113
  ): void;
114
+ listAsyncInvokes(): Promise<ListAsyncInvokesCommandOutput>;
115
+ listAsyncInvokes(
116
+ args: ListAsyncInvokesCommandInput,
117
+ options?: __HttpHandlerOptions
118
+ ): Promise<ListAsyncInvokesCommandOutput>;
119
+ listAsyncInvokes(
120
+ args: ListAsyncInvokesCommandInput,
121
+ cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void
122
+ ): void;
123
+ listAsyncInvokes(
124
+ args: ListAsyncInvokesCommandInput,
125
+ options: __HttpHandlerOptions,
126
+ cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void
127
+ ): void;
128
+ startAsyncInvoke(
129
+ args: StartAsyncInvokeCommandInput,
130
+ options?: __HttpHandlerOptions
131
+ ): Promise<StartAsyncInvokeCommandOutput>;
132
+ startAsyncInvoke(
133
+ args: StartAsyncInvokeCommandInput,
134
+ cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void
135
+ ): void;
136
+ startAsyncInvoke(
137
+ args: StartAsyncInvokeCommandInput,
138
+ options: __HttpHandlerOptions,
139
+ cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void
140
+ ): void;
89
141
  }
90
142
  export declare class BedrockRuntime
91
143
  extends BedrockRuntimeClient
@@ -62,6 +62,10 @@ import {
62
62
  ConverseStreamCommandInput,
63
63
  ConverseStreamCommandOutput,
64
64
  } from "./commands/ConverseStreamCommand";
65
+ import {
66
+ GetAsyncInvokeCommandInput,
67
+ GetAsyncInvokeCommandOutput,
68
+ } from "./commands/GetAsyncInvokeCommand";
65
69
  import {
66
70
  InvokeModelCommandInput,
67
71
  InvokeModelCommandOutput,
@@ -70,6 +74,14 @@ import {
70
74
  InvokeModelWithResponseStreamCommandInput,
71
75
  InvokeModelWithResponseStreamCommandOutput,
72
76
  } from "./commands/InvokeModelWithResponseStreamCommand";
77
+ import {
78
+ ListAsyncInvokesCommandInput,
79
+ ListAsyncInvokesCommandOutput,
80
+ } from "./commands/ListAsyncInvokesCommand";
81
+ import {
82
+ StartAsyncInvokeCommandInput,
83
+ StartAsyncInvokeCommandOutput,
84
+ } from "./commands/StartAsyncInvokeCommand";
73
85
  import {
74
86
  ClientInputEndpointParameters,
75
87
  ClientResolvedEndpointParameters,
@@ -81,14 +93,20 @@ export type ServiceInputTypes =
81
93
  | ApplyGuardrailCommandInput
82
94
  | ConverseCommandInput
83
95
  | ConverseStreamCommandInput
96
+ | GetAsyncInvokeCommandInput
84
97
  | InvokeModelCommandInput
85
- | InvokeModelWithResponseStreamCommandInput;
98
+ | InvokeModelWithResponseStreamCommandInput
99
+ | ListAsyncInvokesCommandInput
100
+ | StartAsyncInvokeCommandInput;
86
101
  export type ServiceOutputTypes =
87
102
  | ApplyGuardrailCommandOutput
88
103
  | ConverseCommandOutput
89
104
  | ConverseStreamCommandOutput
105
+ | GetAsyncInvokeCommandOutput
90
106
  | InvokeModelCommandOutput
91
- | InvokeModelWithResponseStreamCommandOutput;
107
+ | InvokeModelWithResponseStreamCommandOutput
108
+ | ListAsyncInvokesCommandOutput
109
+ | StartAsyncInvokeCommandOutput;
92
110
  export interface ClientDefaults
93
111
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
94
112
  requestHandler?: __HttpHandlerUserInput;
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockRuntimeClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockRuntimeClient";
8
+ import {
9
+ GetAsyncInvokeRequest,
10
+ GetAsyncInvokeResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetAsyncInvokeCommandInput extends GetAsyncInvokeRequest {}
15
+ export interface GetAsyncInvokeCommandOutput
16
+ extends GetAsyncInvokeResponse,
17
+ __MetadataBearer {}
18
+ declare const GetAsyncInvokeCommand_base: {
19
+ new (
20
+ input: GetAsyncInvokeCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ GetAsyncInvokeCommandInput,
23
+ GetAsyncInvokeCommandOutput,
24
+ BedrockRuntimeClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: GetAsyncInvokeCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ GetAsyncInvokeCommandInput,
32
+ GetAsyncInvokeCommandOutput,
33
+ BedrockRuntimeClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class GetAsyncInvokeCommand extends GetAsyncInvokeCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: GetAsyncInvokeRequest;
43
+ output: GetAsyncInvokeResponse;
44
+ };
45
+ sdk: {
46
+ input: GetAsyncInvokeCommandInput;
47
+ output: GetAsyncInvokeCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockRuntimeClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockRuntimeClient";
8
+ import {
9
+ ListAsyncInvokesRequest,
10
+ ListAsyncInvokesResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListAsyncInvokesCommandInput extends ListAsyncInvokesRequest {}
15
+ export interface ListAsyncInvokesCommandOutput
16
+ extends ListAsyncInvokesResponse,
17
+ __MetadataBearer {}
18
+ declare const ListAsyncInvokesCommand_base: {
19
+ new (
20
+ input: ListAsyncInvokesCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ ListAsyncInvokesCommandInput,
23
+ ListAsyncInvokesCommandOutput,
24
+ BedrockRuntimeClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ ...[input]: [] | [ListAsyncInvokesCommandInput]
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ ListAsyncInvokesCommandInput,
32
+ ListAsyncInvokesCommandOutput,
33
+ BedrockRuntimeClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class ListAsyncInvokesCommand extends ListAsyncInvokesCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: ListAsyncInvokesRequest;
43
+ output: ListAsyncInvokesResponse;
44
+ };
45
+ sdk: {
46
+ input: ListAsyncInvokesCommandInput;
47
+ output: ListAsyncInvokesCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockRuntimeClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockRuntimeClient";
8
+ import {
9
+ StartAsyncInvokeRequest,
10
+ StartAsyncInvokeResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface StartAsyncInvokeCommandInput extends StartAsyncInvokeRequest {}
15
+ export interface StartAsyncInvokeCommandOutput
16
+ extends StartAsyncInvokeResponse,
17
+ __MetadataBearer {}
18
+ declare const StartAsyncInvokeCommand_base: {
19
+ new (
20
+ input: StartAsyncInvokeCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ StartAsyncInvokeCommandInput,
23
+ StartAsyncInvokeCommandOutput,
24
+ BedrockRuntimeClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: StartAsyncInvokeCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ StartAsyncInvokeCommandInput,
32
+ StartAsyncInvokeCommandOutput,
33
+ BedrockRuntimeClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class StartAsyncInvokeCommand extends StartAsyncInvokeCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: StartAsyncInvokeRequest;
43
+ output: StartAsyncInvokeResponse;
44
+ };
45
+ sdk: {
46
+ input: StartAsyncInvokeCommandInput;
47
+ output: StartAsyncInvokeCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -1,5 +1,8 @@
1
1
  export * from "./ApplyGuardrailCommand";
2
2
  export * from "./ConverseCommand";
3
3
  export * from "./ConverseStreamCommand";
4
+ export * from "./GetAsyncInvokeCommand";
4
5
  export * from "./InvokeModelCommand";
5
6
  export * from "./InvokeModelWithResponseStreamCommand";
7
+ export * from "./ListAsyncInvokesCommand";
8
+ export * from "./StartAsyncInvokeCommand";
@@ -4,5 +4,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { BedrockRuntimeExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
+ export * from "./pagination";
7
8
  export * from "./models";
8
9
  export { BedrockRuntimeServiceException } from "./models/BedrockRuntimeServiceException";