@aws-sdk/client-bedrock-agent 3.554.0 → 3.560.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/dist-cjs/index.js +35 -3
- package/dist-es/models/models_0.js +23 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +33 -1
- package/dist-types/commands/CreateAgentAliasCommand.d.ts +1 -1
- package/dist-types/commands/CreateAgentCommand.d.ts +3 -3
- package/dist-types/commands/CreateDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAgentActionGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAgentAliasCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAgentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAgentVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentActionGroupCommand.d.ts +17 -1
- package/dist-types/commands/GetAgentAliasCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentVersionCommand.d.ts +1 -1
- package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/GetIngestionJobCommand.d.ts +1 -1
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentActionGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListIngestionJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PrepareAgentCommand.d.ts +1 -1
- package/dist-types/commands/StartIngestionJobCommand.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/UpdateAgentActionGroupCommand.d.ts +33 -1
- package/dist-types/commands/UpdateAgentAliasCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +243 -34
- package/dist-types/ts3.4/models/models_0.d.ts +54 -1
- package/package.json +4 -4
|
@@ -7,20 +7,34 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
7
7
|
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
|
+
export declare const CustomControlMethod: {
|
|
11
|
+
readonly RETURN_CONTROL: "RETURN_CONTROL";
|
|
12
|
+
};
|
|
13
|
+
export type CustomControlMethod =
|
|
14
|
+
(typeof CustomControlMethod)[keyof typeof CustomControlMethod];
|
|
10
15
|
export type ActionGroupExecutor =
|
|
16
|
+
| ActionGroupExecutor.CustomControlMember
|
|
11
17
|
| ActionGroupExecutor.LambdaMember
|
|
12
18
|
| ActionGroupExecutor.$UnknownMember;
|
|
13
19
|
export declare namespace ActionGroupExecutor {
|
|
14
20
|
interface LambdaMember {
|
|
15
21
|
lambda: string;
|
|
22
|
+
customControl?: never;
|
|
23
|
+
$unknown?: never;
|
|
24
|
+
}
|
|
25
|
+
interface CustomControlMember {
|
|
26
|
+
lambda?: never;
|
|
27
|
+
customControl: CustomControlMethod;
|
|
16
28
|
$unknown?: never;
|
|
17
29
|
}
|
|
18
30
|
interface $UnknownMember {
|
|
19
31
|
lambda?: never;
|
|
32
|
+
customControl?: never;
|
|
20
33
|
$unknown: [string, any];
|
|
21
34
|
}
|
|
22
35
|
interface Visitor<T> {
|
|
23
36
|
lambda: (value: string) => T;
|
|
37
|
+
customControl: (value: CustomControlMethod) => T;
|
|
24
38
|
_: (name: string, value: any) => T;
|
|
25
39
|
}
|
|
26
40
|
const visit: <T>(value: ActionGroupExecutor, visitor: Visitor<T>) => T;
|
|
@@ -67,6 +81,42 @@ export declare namespace APISchema {
|
|
|
67
81
|
}
|
|
68
82
|
const visit: <T>(value: APISchema, visitor: Visitor<T>) => T;
|
|
69
83
|
}
|
|
84
|
+
export declare const Type: {
|
|
85
|
+
readonly ARRAY: "array";
|
|
86
|
+
readonly BOOLEAN: "boolean";
|
|
87
|
+
readonly INTEGER: "integer";
|
|
88
|
+
readonly NUMBER: "number";
|
|
89
|
+
readonly STRING: "string";
|
|
90
|
+
};
|
|
91
|
+
export type Type = (typeof Type)[keyof typeof Type];
|
|
92
|
+
export interface ParameterDetail {
|
|
93
|
+
description?: string;
|
|
94
|
+
type: Type | undefined;
|
|
95
|
+
required?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface Function {
|
|
98
|
+
name: string | undefined;
|
|
99
|
+
description?: string;
|
|
100
|
+
parameters?: Record<string, ParameterDetail>;
|
|
101
|
+
}
|
|
102
|
+
export type FunctionSchema =
|
|
103
|
+
| FunctionSchema.FunctionsMember
|
|
104
|
+
| FunctionSchema.$UnknownMember;
|
|
105
|
+
export declare namespace FunctionSchema {
|
|
106
|
+
interface FunctionsMember {
|
|
107
|
+
functions: Function[];
|
|
108
|
+
$unknown?: never;
|
|
109
|
+
}
|
|
110
|
+
interface $UnknownMember {
|
|
111
|
+
functions?: never;
|
|
112
|
+
$unknown: [string, any];
|
|
113
|
+
}
|
|
114
|
+
interface Visitor<T> {
|
|
115
|
+
functions: (value: Function[]) => T;
|
|
116
|
+
_: (name: string, value: any) => T;
|
|
117
|
+
}
|
|
118
|
+
const visit: <T>(value: FunctionSchema, visitor: Visitor<T>) => T;
|
|
119
|
+
}
|
|
70
120
|
export declare const ActionGroupSignature: {
|
|
71
121
|
readonly AMAZON_USERINPUT: "AMAZON.UserInput";
|
|
72
122
|
};
|
|
@@ -82,6 +132,7 @@ export interface CreateAgentActionGroupRequest {
|
|
|
82
132
|
actionGroupExecutor?: ActionGroupExecutor;
|
|
83
133
|
apiSchema?: APISchema;
|
|
84
134
|
actionGroupState?: ActionGroupState;
|
|
135
|
+
functionSchema?: FunctionSchema;
|
|
85
136
|
}
|
|
86
137
|
export interface AgentActionGroup {
|
|
87
138
|
agentId: string | undefined;
|
|
@@ -95,6 +146,7 @@ export interface AgentActionGroup {
|
|
|
95
146
|
parentActionSignature?: ActionGroupSignature;
|
|
96
147
|
actionGroupExecutor?: ActionGroupExecutor;
|
|
97
148
|
apiSchema?: APISchema;
|
|
149
|
+
functionSchema?: FunctionSchema;
|
|
98
150
|
actionGroupState: ActionGroupState | undefined;
|
|
99
151
|
}
|
|
100
152
|
export interface CreateAgentActionGroupResponse {
|
|
@@ -182,6 +234,7 @@ export interface UpdateAgentActionGroupRequest {
|
|
|
182
234
|
actionGroupExecutor?: ActionGroupExecutor;
|
|
183
235
|
actionGroupState?: ActionGroupState;
|
|
184
236
|
apiSchema?: APISchema;
|
|
237
|
+
functionSchema?: FunctionSchema;
|
|
185
238
|
}
|
|
186
239
|
export interface UpdateAgentActionGroupResponse {
|
|
187
240
|
agentActionGroup: AgentActionGroup | undefined;
|
|
@@ -320,7 +373,7 @@ export interface CreateAgentRequest {
|
|
|
320
373
|
foundationModel?: string;
|
|
321
374
|
description?: string;
|
|
322
375
|
idleSessionTTLInSeconds?: number;
|
|
323
|
-
agentResourceRoleArn
|
|
376
|
+
agentResourceRoleArn?: string;
|
|
324
377
|
customerEncryptionKeyArn?: string;
|
|
325
378
|
tags?: Record<string, string>;
|
|
326
379
|
promptOverrideConfiguration?: PromptOverrideConfiguration;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.560.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-agent",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.556.0",
|
|
24
|
+
"@aws-sdk/core": "3.556.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.556.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.535.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|