@aws-sdk/client-bedrock-agent-runtime 3.755.0 → 3.764.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 (92) hide show
  1. package/README.md +119 -7
  2. package/dist-cjs/index.js +1035 -78
  3. package/dist-es/BedrockAgentRuntime.js +28 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +22 -0
  5. package/dist-es/commands/CreateSessionCommand.js +22 -0
  6. package/dist-es/commands/DeleteSessionCommand.js +22 -0
  7. package/dist-es/commands/EndSessionCommand.js +22 -0
  8. package/dist-es/commands/GetInvocationStepCommand.js +23 -0
  9. package/dist-es/commands/GetSessionCommand.js +22 -0
  10. package/dist-es/commands/InvokeAgentCommand.js +2 -1
  11. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
  12. package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
  13. package/dist-es/commands/ListInvocationsCommand.js +22 -0
  14. package/dist-es/commands/ListSessionsCommand.js +22 -0
  15. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  16. package/dist-es/commands/PutInvocationStepCommand.js +23 -0
  17. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
  18. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
  19. package/dist-es/commands/RetrieveCommand.js +2 -1
  20. package/dist-es/commands/TagResourceCommand.js +22 -0
  21. package/dist-es/commands/UntagResourceCommand.js +22 -0
  22. package/dist-es/commands/UpdateSessionCommand.js +22 -0
  23. package/dist-es/commands/index.js +14 -0
  24. package/dist-es/models/index.js +1 -0
  25. package/dist-es/models/models_0.js +76 -156
  26. package/dist-es/models/models_1.js +181 -0
  27. package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
  28. package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
  29. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +3 -0
  31. package/dist-es/protocols/Aws_restJson1.js +560 -8
  32. package/dist-types/BedrockAgentRuntime.d.ts +100 -0
  33. package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
  34. package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
  35. package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
  36. package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
  37. package/dist-types/commands/EndSessionCommand.d.ts +93 -0
  38. package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
  39. package/dist-types/commands/GetSessionCommand.d.ts +94 -0
  40. package/dist-types/commands/InvokeAgentCommand.d.ts +3 -1
  41. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +216 -64
  42. package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
  43. package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
  44. package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  46. package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
  47. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
  48. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
  49. package/dist-types/commands/RetrieveCommand.d.ts +2 -1
  50. package/dist-types/commands/TagResourceCommand.d.ts +91 -0
  51. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  52. package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
  53. package/dist-types/commands/index.d.ts +14 -0
  54. package/dist-types/models/index.d.ts +1 -0
  55. package/dist-types/models/models_0.d.ts +605 -684
  56. package/dist-types/models/models_1.d.ts +1055 -0
  57. package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/index.d.ts +3 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  62. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
  63. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
  64. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
  67. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  70. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
  71. package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
  72. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
  73. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
  74. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
  78. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
  79. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
  80. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +48 -0
  81. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  82. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  84. package/dist-types/ts3.4/models/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +250 -374
  86. package/dist-types/ts3.4/models/models_1.d.ts +441 -0
  87. package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  92. package/package.json +12 -12
@@ -0,0 +1,95 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
+ import { ListInvocationsRequest, ListInvocationsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListInvocationsCommand}.
14
+ */
15
+ export interface ListInvocationsCommandInput extends ListInvocationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListInvocationsCommand}.
21
+ */
22
+ export interface ListInvocationsCommandOutput extends ListInvocationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListInvocationsCommand_base: {
25
+ new (input: ListInvocationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListInvocationsCommandInput, ListInvocationsCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListInvocationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListInvocationsCommandInput, ListInvocationsCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all invocations associated with a specific session. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentRuntimeClient, ListInvocationsCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
35
+ * // const { BedrockAgentRuntimeClient, ListInvocationsCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
36
+ * const client = new BedrockAgentRuntimeClient(config);
37
+ * const input = { // ListInvocationsRequest
38
+ * nextToken: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * sessionIdentifier: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new ListInvocationsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListInvocationsResponse
45
+ * // invocationSummaries: [ // InvocationSummaries // required
46
+ * // { // InvocationSummary
47
+ * // sessionId: "STRING_VALUE", // required
48
+ * // invocationId: "STRING_VALUE", // required
49
+ * // createdAt: new Date("TIMESTAMP"), // required
50
+ * // },
51
+ * // ],
52
+ * // nextToken: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListInvocationsCommandInput - {@link ListInvocationsCommandInput}
58
+ * @returns {@link ListInvocationsCommandOutput}
59
+ * @see {@link ListInvocationsCommandInput} for command's `input` shape.
60
+ * @see {@link ListInvocationsCommandOutput} for command's `response` shape.
61
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>An internal server error occurred. Retry your request.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
77
+ *
78
+ * @throws {@link BedrockAgentRuntimeServiceException}
79
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
80
+ *
81
+ * @public
82
+ */
83
+ export declare class ListInvocationsCommand extends ListInvocationsCommand_base {
84
+ /** @internal type navigation helper, not in runtime. */
85
+ protected static __types: {
86
+ api: {
87
+ input: ListInvocationsRequest;
88
+ output: ListInvocationsResponse;
89
+ };
90
+ sdk: {
91
+ input: ListInvocationsCommandInput;
92
+ output: ListInvocationsCommandOutput;
93
+ };
94
+ };
95
+ }
@@ -0,0 +1,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
+ import { ListSessionsRequest, ListSessionsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListSessionsCommand}.
14
+ */
15
+ export interface ListSessionsCommandInput extends ListSessionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListSessionsCommand}.
21
+ */
22
+ export interface ListSessionsCommandOutput extends ListSessionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListSessionsCommand_base: {
25
+ new (input: ListSessionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListSessionsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all sessions in your Amazon Web Services account. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentRuntimeClient, ListSessionsCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
35
+ * // const { BedrockAgentRuntimeClient, ListSessionsCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
36
+ * const client = new BedrockAgentRuntimeClient(config);
37
+ * const input = { // ListSessionsRequest
38
+ * maxResults: Number("int"),
39
+ * nextToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new ListSessionsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListSessionsResponse
44
+ * // sessionSummaries: [ // SessionSummaries // required
45
+ * // { // SessionSummary
46
+ * // sessionId: "STRING_VALUE", // required
47
+ * // sessionArn: "STRING_VALUE", // required
48
+ * // sessionStatus: "ACTIVE" || "EXPIRED" || "ENDED", // required
49
+ * // createdAt: new Date("TIMESTAMP"), // required
50
+ * // lastUpdatedAt: new Date("TIMESTAMP"), // required
51
+ * // },
52
+ * // ],
53
+ * // nextToken: "STRING_VALUE",
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param ListSessionsCommandInput - {@link ListSessionsCommandInput}
59
+ * @returns {@link ListSessionsCommandOutput}
60
+ * @see {@link ListSessionsCommandInput} for command's `input` shape.
61
+ * @see {@link ListSessionsCommandOutput} for command's `response` shape.
62
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>An internal server error occurred. Retry your request.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
75
+ *
76
+ * @throws {@link BedrockAgentRuntimeServiceException}
77
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
78
+ *
79
+ * @public
80
+ */
81
+ export declare class ListSessionsCommand extends ListSessionsCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: ListSessionsRequest;
86
+ output: ListSessionsResponse;
87
+ };
88
+ sdk: {
89
+ input: ListSessionsCommandInput;
90
+ output: ListSessionsCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -0,0 +1,88 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListTagsForResourceCommand}.
14
+ */
15
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTagsForResourceCommand}.
21
+ */
22
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const ListTagsForResourceCommand_base: {
25
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>List all the tags for the resource you specify.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentRuntimeClient, ListTagsForResourceCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
35
+ * // const { BedrockAgentRuntimeClient, ListTagsForResourceCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
36
+ * const client = new BedrockAgentRuntimeClient(config);
37
+ * const input = { // ListTagsForResourceRequest
38
+ * resourceArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new ListTagsForResourceCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListTagsForResourceResponse
43
+ * // tags: { // TagsMap
44
+ * // "<keys>": "STRING_VALUE",
45
+ * // },
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
51
+ * @returns {@link ListTagsForResourceCommandOutput}
52
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
53
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
54
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>An internal server error occurred. Retry your request.</p>
61
+ *
62
+ * @throws {@link ResourceNotFoundException} (client fault)
63
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
64
+ *
65
+ * @throws {@link ThrottlingException} (client fault)
66
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
67
+ *
68
+ * @throws {@link ValidationException} (client fault)
69
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
70
+ *
71
+ * @throws {@link BedrockAgentRuntimeServiceException}
72
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
73
+ *
74
+ * @public
75
+ */
76
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
77
+ /** @internal type navigation helper, not in runtime. */
78
+ protected static __types: {
79
+ api: {
80
+ input: ListTagsForResourceRequest;
81
+ output: ListTagsForResourceResponse;
82
+ };
83
+ sdk: {
84
+ input: ListTagsForResourceCommandInput;
85
+ output: ListTagsForResourceCommandOutput;
86
+ };
87
+ };
88
+ }
@@ -0,0 +1,134 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
+ import { PutInvocationStepRequest, PutInvocationStepResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutInvocationStepCommand}.
14
+ */
15
+ export interface PutInvocationStepCommandInput extends PutInvocationStepRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutInvocationStepCommand}.
21
+ */
22
+ export interface PutInvocationStepCommandOutput extends PutInvocationStepResponse, __MetadataBearer {
23
+ }
24
+ declare const PutInvocationStepCommand_base: {
25
+ new (input: PutInvocationStepCommandInput): import("@smithy/smithy-client").CommandImpl<PutInvocationStepCommandInput, PutInvocationStepCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PutInvocationStepCommandInput): import("@smithy/smithy-client").CommandImpl<PutInvocationStepCommandInput, PutInvocationStepCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Add an invocation step to an invocation in a session. An invocation step stores fine-grained state checkpoints, including text and images, for each interaction. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
31
+ * <p>Related APIs:</p>
32
+ * <ul>
33
+ * <li>
34
+ * <p>
35
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetInvocationStep.html">GetInvocationStep</a>
36
+ * </p>
37
+ * </li>
38
+ * <li>
39
+ * <p>
40
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocationSteps.html">ListInvocationSteps</a>
41
+ * </p>
42
+ * </li>
43
+ * <li>
44
+ * <p>
45
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListInvocations</a>
46
+ * </p>
47
+ * </li>
48
+ * <li>
49
+ * <p>
50
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListSessions</a>
51
+ * </p>
52
+ * </li>
53
+ * </ul>
54
+ * @example
55
+ * Use a bare-bones client and the command you need to make an API call.
56
+ * ```javascript
57
+ * import { BedrockAgentRuntimeClient, PutInvocationStepCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
58
+ * // const { BedrockAgentRuntimeClient, PutInvocationStepCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
59
+ * const client = new BedrockAgentRuntimeClient(config);
60
+ * const input = { // PutInvocationStepRequest
61
+ * sessionIdentifier: "STRING_VALUE", // required
62
+ * invocationIdentifier: "STRING_VALUE", // required
63
+ * invocationStepTime: new Date("TIMESTAMP"), // required
64
+ * payload: { // InvocationStepPayload Union: only one key present
65
+ * contentBlocks: [ // BedrockSessionContentBlocks
66
+ * { // BedrockSessionContentBlock Union: only one key present
67
+ * text: "STRING_VALUE",
68
+ * image: { // ImageBlock
69
+ * format: "png" || "jpeg" || "gif" || "webp", // required
70
+ * source: { // ImageSource Union: only one key present
71
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
72
+ * s3Location: { // S3Location
73
+ * uri: "STRING_VALUE", // required
74
+ * },
75
+ * },
76
+ * },
77
+ * },
78
+ * ],
79
+ * },
80
+ * invocationStepId: "STRING_VALUE",
81
+ * };
82
+ * const command = new PutInvocationStepCommand(input);
83
+ * const response = await client.send(command);
84
+ * // { // PutInvocationStepResponse
85
+ * // invocationStepId: "STRING_VALUE", // required
86
+ * // };
87
+ *
88
+ * ```
89
+ *
90
+ * @param PutInvocationStepCommandInput - {@link PutInvocationStepCommandInput}
91
+ * @returns {@link PutInvocationStepCommandOutput}
92
+ * @see {@link PutInvocationStepCommandInput} for command's `input` shape.
93
+ * @see {@link PutInvocationStepCommandOutput} for command's `response` shape.
94
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
95
+ *
96
+ * @throws {@link AccessDeniedException} (client fault)
97
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
98
+ *
99
+ * @throws {@link ConflictException} (client fault)
100
+ * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
101
+ *
102
+ * @throws {@link InternalServerException} (server fault)
103
+ * <p>An internal server error occurred. Retry your request.</p>
104
+ *
105
+ * @throws {@link ResourceNotFoundException} (client fault)
106
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
107
+ *
108
+ * @throws {@link ServiceQuotaExceededException} (client fault)
109
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
110
+ *
111
+ * @throws {@link ThrottlingException} (client fault)
112
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
113
+ *
114
+ * @throws {@link ValidationException} (client fault)
115
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
116
+ *
117
+ * @throws {@link BedrockAgentRuntimeServiceException}
118
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
119
+ *
120
+ * @public
121
+ */
122
+ export declare class PutInvocationStepCommand extends PutInvocationStepCommand_base {
123
+ /** @internal type navigation helper, not in runtime. */
124
+ protected static __types: {
125
+ api: {
126
+ input: PutInvocationStepRequest;
127
+ output: PutInvocationStepResponse;
128
+ };
129
+ sdk: {
130
+ input: PutInvocationStepCommandInput;
131
+ output: PutInvocationStepCommandOutput;
132
+ };
133
+ };
134
+ }
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
- import { RetrieveAndGenerateRequest, RetrieveAndGenerateResponse } from "../models/models_0";
4
+ import { RetrieveAndGenerateResponse } from "../models/models_0";
5
+ import { RetrieveAndGenerateRequest } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
- import { RetrieveAndGenerateStreamRequest, RetrieveAndGenerateStreamResponse } from "../models/models_0";
4
+ import { RetrieveAndGenerateStreamResponse } from "../models/models_0";
5
+ import { RetrieveAndGenerateStreamRequest } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
- import { RetrieveRequest, RetrieveResponse } from "../models/models_0";
4
+ import { RetrieveResponse } from "../models/models_0";
5
+ import { RetrieveRequest } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -0,0 +1,91 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
+ import { TagResourceRequest } from "../models/models_0";
5
+ import { TagResourceResponse } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export type { __MetadataBearer };
10
+ export { $Command };
11
+ /**
12
+ * @public
13
+ *
14
+ * The input for {@link TagResourceCommand}.
15
+ */
16
+ export interface TagResourceCommandInput extends TagResourceRequest {
17
+ }
18
+ /**
19
+ * @public
20
+ *
21
+ * The output of {@link TagResourceCommand}.
22
+ */
23
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
24
+ }
25
+ declare const TagResourceCommand_base: {
26
+ new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ new (__0_0: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
28
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
+ };
30
+ /**
31
+ * <p>Associate tags with a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the Amazon Bedrock User Guide.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { BedrockAgentRuntimeClient, TagResourceCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
36
+ * // const { BedrockAgentRuntimeClient, TagResourceCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
37
+ * const client = new BedrockAgentRuntimeClient(config);
38
+ * const input = { // TagResourceRequest
39
+ * resourceArn: "STRING_VALUE", // required
40
+ * tags: { // TagsMap // required
41
+ * "<keys>": "STRING_VALUE",
42
+ * },
43
+ * };
44
+ * const command = new TagResourceCommand(input);
45
+ * const response = await client.send(command);
46
+ * // {};
47
+ *
48
+ * ```
49
+ *
50
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
51
+ * @returns {@link TagResourceCommandOutput}
52
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
53
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
54
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>An internal server error occurred. Retry your request.</p>
61
+ *
62
+ * @throws {@link ResourceNotFoundException} (client fault)
63
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
64
+ *
65
+ * @throws {@link ServiceQuotaExceededException} (client fault)
66
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
73
+ *
74
+ * @throws {@link BedrockAgentRuntimeServiceException}
75
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
76
+ *
77
+ * @public
78
+ */
79
+ export declare class TagResourceCommand extends TagResourceCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: TagResourceRequest;
84
+ output: {};
85
+ };
86
+ sdk: {
87
+ input: TagResourceCommandInput;
88
+ output: TagResourceCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UntagResourceCommand}.
14
+ */
15
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UntagResourceCommand}.
21
+ */
22
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const UntagResourceCommand_base: {
25
+ new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Remove tags from a resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentRuntimeClient, UntagResourceCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
35
+ * // const { BedrockAgentRuntimeClient, UntagResourceCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
36
+ * const client = new BedrockAgentRuntimeClient(config);
37
+ * const input = { // UntagResourceRequest
38
+ * resourceArn: "STRING_VALUE", // required
39
+ * tagKeys: [ // TagKeyList // required
40
+ * "STRING_VALUE",
41
+ * ],
42
+ * };
43
+ * const command = new UntagResourceCommand(input);
44
+ * const response = await client.send(command);
45
+ * // {};
46
+ *
47
+ * ```
48
+ *
49
+ * @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
50
+ * @returns {@link UntagResourceCommandOutput}
51
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
52
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
53
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <p>An internal server error occurred. Retry your request.</p>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
69
+ *
70
+ * @throws {@link BedrockAgentRuntimeServiceException}
71
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
72
+ *
73
+ * @public
74
+ */
75
+ export declare class UntagResourceCommand extends UntagResourceCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: UntagResourceRequest;
80
+ output: {};
81
+ };
82
+ sdk: {
83
+ input: UntagResourceCommandInput;
84
+ output: UntagResourceCommandOutput;
85
+ };
86
+ };
87
+ }