@aws-sdk/client-bedrock-agent 3.686.0 → 3.691.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.
- package/README.md +8 -0
- package/dist-cjs/index.js +516 -49
- package/dist-es/BedrockAgent.js +2 -0
- package/dist-es/commands/CreatePromptCommand.js +1 -1
- package/dist-es/commands/CreatePromptVersionCommand.js +1 -1
- package/dist-es/commands/GetAgentVersionCommand.js +1 -1
- package/dist-es/commands/GetPromptCommand.js +1 -1
- package/dist-es/commands/UpdatePromptCommand.js +1 -1
- package/dist-es/commands/ValidateFlowDefinitionCommand.js +23 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +239 -41
- package/dist-es/models/models_1.js +69 -0
- package/dist-es/protocols/Aws_restJson1.js +141 -5
- package/dist-types/BedrockAgent.d.ts +7 -0
- package/dist-types/BedrockAgentClient.d.ts +3 -2
- package/dist-types/commands/CreateFlowCommand.d.ts +102 -2
- package/dist-types/commands/CreateFlowVersionCommand.d.ts +51 -1
- package/dist-types/commands/CreatePromptCommand.d.ts +97 -3
- package/dist-types/commands/CreatePromptVersionCommand.d.ts +49 -2
- package/dist-types/commands/DeleteAgentVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeletePromptCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentVersionCommand.d.ts +1 -1
- package/dist-types/commands/GetFlowCommand.d.ts +137 -1
- package/dist-types/commands/GetFlowVersionCommand.d.ts +51 -1
- package/dist-types/commands/GetPromptCommand.d.ts +49 -2
- package/dist-types/commands/ListAgentKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/commands/ListPromptsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFlowCommand.d.ts +102 -2
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePromptCommand.d.ts +97 -3
- package/dist-types/commands/ValidateFlowDefinitionCommand.d.ts +335 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2286 -1582
- package/dist-types/models/models_1.d.ts +974 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/BedrockAgent.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteAgentVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetAgentVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAgentKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAgentVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ValidateFlowDefinitionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1395 -495
- package/dist-types/ts3.4/models/models_1.d.ts +287 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +7 -7
|
@@ -62,6 +62,7 @@ import { UpdateFlowAliasCommandInput, UpdateFlowAliasCommandOutput } from "../co
|
|
|
62
62
|
import { UpdateFlowCommandInput, UpdateFlowCommandOutput } from "../commands/UpdateFlowCommand";
|
|
63
63
|
import { UpdateKnowledgeBaseCommandInput, UpdateKnowledgeBaseCommandOutput } from "../commands/UpdateKnowledgeBaseCommand";
|
|
64
64
|
import { UpdatePromptCommandInput, UpdatePromptCommandOutput } from "../commands/UpdatePromptCommand";
|
|
65
|
+
import { ValidateFlowDefinitionCommandInput, ValidateFlowDefinitionCommandOutput } from "../commands/ValidateFlowDefinitionCommand";
|
|
65
66
|
/**
|
|
66
67
|
* serializeAws_restJson1AssociateAgentKnowledgeBaseCommand
|
|
67
68
|
*/
|
|
@@ -310,6 +311,10 @@ export declare const se_UpdateKnowledgeBaseCommand: (input: UpdateKnowledgeBaseC
|
|
|
310
311
|
* serializeAws_restJson1UpdatePromptCommand
|
|
311
312
|
*/
|
|
312
313
|
export declare const se_UpdatePromptCommand: (input: UpdatePromptCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
314
|
+
/**
|
|
315
|
+
* serializeAws_restJson1ValidateFlowDefinitionCommand
|
|
316
|
+
*/
|
|
317
|
+
export declare const se_ValidateFlowDefinitionCommand: (input: ValidateFlowDefinitionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
313
318
|
/**
|
|
314
319
|
* deserializeAws_restJson1AssociateAgentKnowledgeBaseCommand
|
|
315
320
|
*/
|
|
@@ -558,3 +563,7 @@ export declare const de_UpdateKnowledgeBaseCommand: (output: __HttpResponse, con
|
|
|
558
563
|
* deserializeAws_restJson1UpdatePromptCommand
|
|
559
564
|
*/
|
|
560
565
|
export declare const de_UpdatePromptCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePromptCommandOutput>;
|
|
566
|
+
/**
|
|
567
|
+
* deserializeAws_restJson1ValidateFlowDefinitionCommand
|
|
568
|
+
*/
|
|
569
|
+
export declare const de_ValidateFlowDefinitionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ValidateFlowDefinitionCommandOutput>;
|
|
@@ -248,6 +248,10 @@ import {
|
|
|
248
248
|
UpdatePromptCommandInput,
|
|
249
249
|
UpdatePromptCommandOutput,
|
|
250
250
|
} from "./commands/UpdatePromptCommand";
|
|
251
|
+
import {
|
|
252
|
+
ValidateFlowDefinitionCommandInput,
|
|
253
|
+
ValidateFlowDefinitionCommandOutput,
|
|
254
|
+
} from "./commands/ValidateFlowDefinitionCommand";
|
|
251
255
|
export interface BedrockAgent {
|
|
252
256
|
associateAgentKnowledgeBase(
|
|
253
257
|
args: AssociateAgentKnowledgeBaseCommandInput,
|
|
@@ -1059,6 +1063,19 @@ export interface BedrockAgent {
|
|
|
1059
1063
|
options: __HttpHandlerOptions,
|
|
1060
1064
|
cb: (err: any, data?: UpdatePromptCommandOutput) => void
|
|
1061
1065
|
): void;
|
|
1066
|
+
validateFlowDefinition(
|
|
1067
|
+
args: ValidateFlowDefinitionCommandInput,
|
|
1068
|
+
options?: __HttpHandlerOptions
|
|
1069
|
+
): Promise<ValidateFlowDefinitionCommandOutput>;
|
|
1070
|
+
validateFlowDefinition(
|
|
1071
|
+
args: ValidateFlowDefinitionCommandInput,
|
|
1072
|
+
cb: (err: any, data?: ValidateFlowDefinitionCommandOutput) => void
|
|
1073
|
+
): void;
|
|
1074
|
+
validateFlowDefinition(
|
|
1075
|
+
args: ValidateFlowDefinitionCommandInput,
|
|
1076
|
+
options: __HttpHandlerOptions,
|
|
1077
|
+
cb: (err: any, data?: ValidateFlowDefinitionCommandOutput) => void
|
|
1078
|
+
): void;
|
|
1062
1079
|
}
|
|
1063
1080
|
export declare class BedrockAgent
|
|
1064
1081
|
extends BedrockAgentClient
|
|
@@ -293,6 +293,10 @@ import {
|
|
|
293
293
|
UpdatePromptCommandInput,
|
|
294
294
|
UpdatePromptCommandOutput,
|
|
295
295
|
} from "./commands/UpdatePromptCommand";
|
|
296
|
+
import {
|
|
297
|
+
ValidateFlowDefinitionCommandInput,
|
|
298
|
+
ValidateFlowDefinitionCommandOutput,
|
|
299
|
+
} from "./commands/ValidateFlowDefinitionCommand";
|
|
296
300
|
import {
|
|
297
301
|
ClientInputEndpointParameters,
|
|
298
302
|
ClientResolvedEndpointParameters,
|
|
@@ -362,7 +366,8 @@ export type ServiceInputTypes =
|
|
|
362
366
|
| UpdateFlowAliasCommandInput
|
|
363
367
|
| UpdateFlowCommandInput
|
|
364
368
|
| UpdateKnowledgeBaseCommandInput
|
|
365
|
-
| UpdatePromptCommandInput
|
|
369
|
+
| UpdatePromptCommandInput
|
|
370
|
+
| ValidateFlowDefinitionCommandInput;
|
|
366
371
|
export type ServiceOutputTypes =
|
|
367
372
|
| AssociateAgentKnowledgeBaseCommandOutput
|
|
368
373
|
| CreateAgentActionGroupCommandOutput
|
|
@@ -425,7 +430,8 @@ export type ServiceOutputTypes =
|
|
|
425
430
|
| UpdateFlowAliasCommandOutput
|
|
426
431
|
| UpdateFlowCommandOutput
|
|
427
432
|
| UpdateKnowledgeBaseCommandOutput
|
|
428
|
-
| UpdatePromptCommandOutput
|
|
433
|
+
| UpdatePromptCommandOutput
|
|
434
|
+
| ValidateFlowDefinitionCommandOutput;
|
|
429
435
|
export interface ClientDefaults
|
|
430
436
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
431
437
|
requestHandler?: __HttpHandlerUserInput;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentClient";
|
|
8
|
-
import { CreatePromptRequest, CreatePromptResponse } from "../models/
|
|
8
|
+
import { CreatePromptRequest, CreatePromptResponse } from "../models/models_1";
|
|
9
9
|
export { __MetadataBearer };
|
|
10
10
|
export { $Command };
|
|
11
11
|
export interface CreatePromptCommandInput extends CreatePromptRequest {}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentClient";
|
|
8
|
-
import { DeletePromptRequest, DeletePromptResponse } from "../models/
|
|
8
|
+
import { DeletePromptRequest, DeletePromptResponse } from "../models/models_1";
|
|
9
9
|
export { __MetadataBearer };
|
|
10
10
|
export { $Command };
|
|
11
11
|
export interface DeletePromptCommandInput extends DeletePromptRequest {}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
GetAgentVersionRequest,
|
|
10
10
|
GetAgentVersionResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface GetAgentVersionCommandInput extends GetAgentVersionRequest {}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentClient";
|
|
8
|
-
import { GetPromptRequest, GetPromptResponse } from "../models/
|
|
8
|
+
import { GetPromptRequest, GetPromptResponse } from "../models/models_1";
|
|
9
9
|
export { __MetadataBearer };
|
|
10
10
|
export { $Command };
|
|
11
11
|
export interface GetPromptCommandInput extends GetPromptRequest {}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
ListAgentKnowledgeBasesRequest,
|
|
10
10
|
ListAgentKnowledgeBasesResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface ListAgentKnowledgeBasesCommandInput
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentClient";
|
|
8
|
-
import { ListPromptsRequest, ListPromptsResponse } from "../models/
|
|
8
|
+
import { ListPromptsRequest, ListPromptsResponse } from "../models/models_1";
|
|
9
9
|
export { __MetadataBearer };
|
|
10
10
|
export { $Command };
|
|
11
11
|
export interface ListPromptsCommandInput extends ListPromptsRequest {}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentClient";
|
|
8
|
-
import { TagResourceRequest, TagResourceResponse } from "../models/
|
|
8
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
|
|
9
9
|
export { __MetadataBearer };
|
|
10
10
|
export { $Command };
|
|
11
11
|
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
UntagResourceRequest,
|
|
10
10
|
UntagResourceResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
UpdateAgentKnowledgeBaseRequest,
|
|
10
10
|
UpdateAgentKnowledgeBaseResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface UpdateAgentKnowledgeBaseCommandInput
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentClient";
|
|
8
|
-
import { UpdatePromptRequest, UpdatePromptResponse } from "../models/
|
|
8
|
+
import { UpdatePromptRequest, UpdatePromptResponse } from "../models/models_1";
|
|
9
9
|
export { __MetadataBearer };
|
|
10
10
|
export { $Command };
|
|
11
11
|
export interface UpdatePromptCommandInput extends UpdatePromptRequest {}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockAgentClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockAgentClient";
|
|
8
|
+
import {
|
|
9
|
+
ValidateFlowDefinitionRequest,
|
|
10
|
+
ValidateFlowDefinitionResponse,
|
|
11
|
+
} from "../models/models_1";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface ValidateFlowDefinitionCommandInput
|
|
15
|
+
extends ValidateFlowDefinitionRequest {}
|
|
16
|
+
export interface ValidateFlowDefinitionCommandOutput
|
|
17
|
+
extends ValidateFlowDefinitionResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const ValidateFlowDefinitionCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: ValidateFlowDefinitionCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
ValidateFlowDefinitionCommandInput,
|
|
24
|
+
ValidateFlowDefinitionCommandOutput,
|
|
25
|
+
BedrockAgentClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: ValidateFlowDefinitionCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
ValidateFlowDefinitionCommandInput,
|
|
33
|
+
ValidateFlowDefinitionCommandOutput,
|
|
34
|
+
BedrockAgentClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class ValidateFlowDefinitionCommand extends ValidateFlowDefinitionCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: ValidateFlowDefinitionRequest;
|
|
44
|
+
output: ValidateFlowDefinitionResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: ValidateFlowDefinitionCommandInput;
|
|
48
|
+
output: ValidateFlowDefinitionCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|