@wildix/wim-wilma-client 0.0.3 → 0.0.5
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/Wilma.js +14 -0
- package/dist-cjs/commands/CreateAgentCommand.js +21 -0
- package/dist-cjs/commands/DeleteAgentCommand.js +21 -0
- package/dist-cjs/commands/ExecuteAgentCommand.js +21 -0
- package/dist-cjs/commands/GetAgentCommand.js +21 -0
- package/dist-cjs/commands/ListAgentsCommand.js +21 -0
- package/dist-cjs/commands/ListAgentsNamesCommand.js +21 -0
- package/dist-cjs/commands/UpdateAgentCommand.js +21 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +43 -14
- package/dist-cjs/protocols/Aws_restJson1.js +269 -6
- package/dist-es/Wilma.js +14 -0
- package/dist-es/commands/CreateAgentCommand.js +17 -0
- package/dist-es/commands/DeleteAgentCommand.js +17 -0
- package/dist-es/commands/ExecuteAgentCommand.js +17 -0
- package/dist-es/commands/GetAgentCommand.js +17 -0
- package/dist-es/commands/ListAgentsCommand.js +17 -0
- package/dist-es/commands/ListAgentsNamesCommand.js +17 -0
- package/dist-es/commands/UpdateAgentCommand.js +17 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +41 -12
- package/dist-es/protocols/Aws_restJson1.js +254 -5
- package/dist-types/Wilma.d.ts +51 -0
- package/dist-types/WilmaClient.d.ts +9 -2
- package/dist-types/commands/CreateAgentCommand.d.ts +142 -0
- package/dist-types/commands/DeleteAgentCommand.d.ts +73 -0
- package/dist-types/commands/ExecuteAgentCommand.d.ts +84 -0
- package/dist-types/commands/GetAgentCommand.d.ts +113 -0
- package/dist-types/commands/GetChatCommand.d.ts +2 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +112 -0
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +80 -0
- package/dist-types/commands/ListChatsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +145 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +333 -5
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/dist-types/runtimeConfig.d.ts +6 -1
- package/dist-types/runtimeConfig.native.d.ts +6 -1
- package/package.json +1 -1
package/dist-types/Wilma.d.ts
CHANGED
|
@@ -1,13 +1,32 @@
|
|
|
1
1
|
import { WilmaClient } from "./WilmaClient";
|
|
2
|
+
import { CreateAgentCommandInput, CreateAgentCommandOutput } from "./commands/CreateAgentCommand";
|
|
3
|
+
import { DeleteAgentCommandInput, DeleteAgentCommandOutput } from "./commands/DeleteAgentCommand";
|
|
2
4
|
import { DeleteChatCommandInput, DeleteChatCommandOutput } from "./commands/DeleteChatCommand";
|
|
3
5
|
import { DislikeAnswerCommandInput, DislikeAnswerCommandOutput } from "./commands/DislikeAnswerCommand";
|
|
6
|
+
import { ExecuteAgentCommandInput, ExecuteAgentCommandOutput } from "./commands/ExecuteAgentCommand";
|
|
7
|
+
import { GetAgentCommandInput, GetAgentCommandOutput } from "./commands/GetAgentCommand";
|
|
4
8
|
import { GetChatCommandInput, GetChatCommandOutput } from "./commands/GetChatCommand";
|
|
5
9
|
import { LikeAnswerCommandInput, LikeAnswerCommandOutput } from "./commands/LikeAnswerCommand";
|
|
6
10
|
import { ListAgentFeedbacksCommandInput, ListAgentFeedbacksCommandOutput } from "./commands/ListAgentFeedbacksCommand";
|
|
11
|
+
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
12
|
+
import { ListAgentsNamesCommandInput, ListAgentsNamesCommandOutput } from "./commands/ListAgentsNamesCommand";
|
|
7
13
|
import { ListChatsCommandInput, ListChatsCommandOutput } from "./commands/ListChatsCommand";
|
|
8
14
|
import { ListFeedbacksCommandInput, ListFeedbacksCommandOutput } from "./commands/ListFeedbacksCommand";
|
|
15
|
+
import { UpdateAgentCommandInput, UpdateAgentCommandOutput } from "./commands/UpdateAgentCommand";
|
|
9
16
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
10
17
|
export interface Wilma {
|
|
18
|
+
/**
|
|
19
|
+
* @see {@link CreateAgentCommand}
|
|
20
|
+
*/
|
|
21
|
+
createAgent(args: CreateAgentCommandInput, options?: __HttpHandlerOptions): Promise<CreateAgentCommandOutput>;
|
|
22
|
+
createAgent(args: CreateAgentCommandInput, cb: (err: any, data?: CreateAgentCommandOutput) => void): void;
|
|
23
|
+
createAgent(args: CreateAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAgentCommandOutput) => void): void;
|
|
24
|
+
/**
|
|
25
|
+
* @see {@link DeleteAgentCommand}
|
|
26
|
+
*/
|
|
27
|
+
deleteAgent(args: DeleteAgentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAgentCommandOutput>;
|
|
28
|
+
deleteAgent(args: DeleteAgentCommandInput, cb: (err: any, data?: DeleteAgentCommandOutput) => void): void;
|
|
29
|
+
deleteAgent(args: DeleteAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAgentCommandOutput) => void): void;
|
|
11
30
|
/**
|
|
12
31
|
* @see {@link DeleteChatCommand}
|
|
13
32
|
*/
|
|
@@ -20,6 +39,18 @@ export interface Wilma {
|
|
|
20
39
|
dislikeAnswer(args: DislikeAnswerCommandInput, options?: __HttpHandlerOptions): Promise<DislikeAnswerCommandOutput>;
|
|
21
40
|
dislikeAnswer(args: DislikeAnswerCommandInput, cb: (err: any, data?: DislikeAnswerCommandOutput) => void): void;
|
|
22
41
|
dislikeAnswer(args: DislikeAnswerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DislikeAnswerCommandOutput) => void): void;
|
|
42
|
+
/**
|
|
43
|
+
* @see {@link ExecuteAgentCommand}
|
|
44
|
+
*/
|
|
45
|
+
executeAgent(args: ExecuteAgentCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteAgentCommandOutput>;
|
|
46
|
+
executeAgent(args: ExecuteAgentCommandInput, cb: (err: any, data?: ExecuteAgentCommandOutput) => void): void;
|
|
47
|
+
executeAgent(args: ExecuteAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteAgentCommandOutput) => void): void;
|
|
48
|
+
/**
|
|
49
|
+
* @see {@link GetAgentCommand}
|
|
50
|
+
*/
|
|
51
|
+
getAgent(args: GetAgentCommandInput, options?: __HttpHandlerOptions): Promise<GetAgentCommandOutput>;
|
|
52
|
+
getAgent(args: GetAgentCommandInput, cb: (err: any, data?: GetAgentCommandOutput) => void): void;
|
|
53
|
+
getAgent(args: GetAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAgentCommandOutput) => void): void;
|
|
23
54
|
/**
|
|
24
55
|
* @see {@link GetChatCommand}
|
|
25
56
|
*/
|
|
@@ -38,6 +69,20 @@ export interface Wilma {
|
|
|
38
69
|
listAgentFeedbacks(args: ListAgentFeedbacksCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentFeedbacksCommandOutput>;
|
|
39
70
|
listAgentFeedbacks(args: ListAgentFeedbacksCommandInput, cb: (err: any, data?: ListAgentFeedbacksCommandOutput) => void): void;
|
|
40
71
|
listAgentFeedbacks(args: ListAgentFeedbacksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentFeedbacksCommandOutput) => void): void;
|
|
72
|
+
/**
|
|
73
|
+
* @see {@link ListAgentsCommand}
|
|
74
|
+
*/
|
|
75
|
+
listAgents(): Promise<ListAgentsCommandOutput>;
|
|
76
|
+
listAgents(args: ListAgentsCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentsCommandOutput>;
|
|
77
|
+
listAgents(args: ListAgentsCommandInput, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
78
|
+
listAgents(args: ListAgentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link ListAgentsNamesCommand}
|
|
81
|
+
*/
|
|
82
|
+
listAgentsNames(): Promise<ListAgentsNamesCommandOutput>;
|
|
83
|
+
listAgentsNames(args: ListAgentsNamesCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentsNamesCommandOutput>;
|
|
84
|
+
listAgentsNames(args: ListAgentsNamesCommandInput, cb: (err: any, data?: ListAgentsNamesCommandOutput) => void): void;
|
|
85
|
+
listAgentsNames(args: ListAgentsNamesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentsNamesCommandOutput) => void): void;
|
|
41
86
|
/**
|
|
42
87
|
* @see {@link ListChatsCommand}
|
|
43
88
|
*/
|
|
@@ -52,6 +97,12 @@ export interface Wilma {
|
|
|
52
97
|
listFeedbacks(args: ListFeedbacksCommandInput, options?: __HttpHandlerOptions): Promise<ListFeedbacksCommandOutput>;
|
|
53
98
|
listFeedbacks(args: ListFeedbacksCommandInput, cb: (err: any, data?: ListFeedbacksCommandOutput) => void): void;
|
|
54
99
|
listFeedbacks(args: ListFeedbacksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFeedbacksCommandOutput) => void): void;
|
|
100
|
+
/**
|
|
101
|
+
* @see {@link UpdateAgentCommand}
|
|
102
|
+
*/
|
|
103
|
+
updateAgent(args: UpdateAgentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAgentCommandOutput>;
|
|
104
|
+
updateAgent(args: UpdateAgentCommandInput, cb: (err: any, data?: UpdateAgentCommandOutput) => void): void;
|
|
105
|
+
updateAgent(args: UpdateAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAgentCommandOutput) => void): void;
|
|
55
106
|
}
|
|
56
107
|
/**
|
|
57
108
|
* @public
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
import { CreateAgentCommandInput, CreateAgentCommandOutput } from "./commands/CreateAgentCommand";
|
|
2
|
+
import { DeleteAgentCommandInput, DeleteAgentCommandOutput } from "./commands/DeleteAgentCommand";
|
|
1
3
|
import { DeleteChatCommandInput, DeleteChatCommandOutput } from "./commands/DeleteChatCommand";
|
|
2
4
|
import { DislikeAnswerCommandInput, DislikeAnswerCommandOutput } from "./commands/DislikeAnswerCommand";
|
|
5
|
+
import { ExecuteAgentCommandInput, ExecuteAgentCommandOutput } from "./commands/ExecuteAgentCommand";
|
|
6
|
+
import { GetAgentCommandInput, GetAgentCommandOutput } from "./commands/GetAgentCommand";
|
|
3
7
|
import { GetChatCommandInput, GetChatCommandOutput } from "./commands/GetChatCommand";
|
|
4
8
|
import { LikeAnswerCommandInput, LikeAnswerCommandOutput } from "./commands/LikeAnswerCommand";
|
|
5
9
|
import { ListAgentFeedbacksCommandInput, ListAgentFeedbacksCommandOutput } from "./commands/ListAgentFeedbacksCommand";
|
|
10
|
+
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
11
|
+
import { ListAgentsNamesCommandInput, ListAgentsNamesCommandOutput } from "./commands/ListAgentsNamesCommand";
|
|
6
12
|
import { ListChatsCommandInput, ListChatsCommandOutput } from "./commands/ListChatsCommand";
|
|
7
13
|
import { ListFeedbacksCommandInput, ListFeedbacksCommandOutput } from "./commands/ListFeedbacksCommand";
|
|
14
|
+
import { UpdateAgentCommandInput, UpdateAgentCommandOutput } from "./commands/UpdateAgentCommand";
|
|
8
15
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
9
16
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
10
17
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
@@ -16,11 +23,11 @@ export { __Client };
|
|
|
16
23
|
/**
|
|
17
24
|
* @public
|
|
18
25
|
*/
|
|
19
|
-
export type ServiceInputTypes = DeleteChatCommandInput | DislikeAnswerCommandInput | GetChatCommandInput | LikeAnswerCommandInput | ListAgentFeedbacksCommandInput | ListChatsCommandInput | ListFeedbacksCommandInput;
|
|
26
|
+
export type ServiceInputTypes = CreateAgentCommandInput | DeleteAgentCommandInput | DeleteChatCommandInput | DislikeAnswerCommandInput | ExecuteAgentCommandInput | GetAgentCommandInput | GetChatCommandInput | LikeAnswerCommandInput | ListAgentFeedbacksCommandInput | ListAgentsCommandInput | ListAgentsNamesCommandInput | ListChatsCommandInput | ListFeedbacksCommandInput | UpdateAgentCommandInput;
|
|
20
27
|
/**
|
|
21
28
|
* @public
|
|
22
29
|
*/
|
|
23
|
-
export type ServiceOutputTypes = DeleteChatCommandOutput | DislikeAnswerCommandOutput | GetChatCommandOutput | LikeAnswerCommandOutput | ListAgentFeedbacksCommandOutput | ListChatsCommandOutput | ListFeedbacksCommandOutput;
|
|
30
|
+
export type ServiceOutputTypes = CreateAgentCommandOutput | DeleteAgentCommandOutput | DeleteChatCommandOutput | DislikeAnswerCommandOutput | ExecuteAgentCommandOutput | GetAgentCommandOutput | GetChatCommandOutput | LikeAnswerCommandOutput | ListAgentFeedbacksCommandOutput | ListAgentsCommandOutput | ListAgentsNamesCommandOutput | ListChatsCommandOutput | ListFeedbacksCommandOutput | UpdateAgentCommandOutput;
|
|
24
31
|
/**
|
|
25
32
|
* @public
|
|
26
33
|
*/
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
|
|
2
|
+
import { CreateAgentInput, CreateAgentOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateAgentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateAgentCommandInput extends CreateAgentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateAgentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateAgentCommandOutput extends CreateAgentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateAgentCommand_base: {
|
|
25
|
+
new (input: CreateAgentCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAgentCommandInput, CreateAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateAgentCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAgentCommandInput, CreateAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new voice bot with the specified configuration for the company.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaClient, CreateAgentCommand } from "@wildix/wim-wilma-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaClient, CreateAgentCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
|
|
36
|
+
* const client = new WilmaClient(config);
|
|
37
|
+
* const input = { // CreateAgentInput
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* model: "STRING_VALUE",
|
|
40
|
+
* instructions: "STRING_VALUE", // required
|
|
41
|
+
* capabilities: [ // AgentCapabilitiesList
|
|
42
|
+
* { // AgentCapability Union: only one key present
|
|
43
|
+
* tool: { // AgentTool
|
|
44
|
+
* id: "STRING_VALUE", // required
|
|
45
|
+
* variables: [ // AgentToolVariablesList
|
|
46
|
+
* { // AgentToolVariable
|
|
47
|
+
* name: "STRING_VALUE", // required
|
|
48
|
+
* handler: { // AgentToolVariableHandler Union: only one key present
|
|
49
|
+
* auto: {},
|
|
50
|
+
* guided: { // AgentToolVariableGuidedHandler
|
|
51
|
+
* description: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* predefined: {},
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* },
|
|
58
|
+
* kb: { // AgentKnowledgeBase
|
|
59
|
+
* knowledgeBaseId: "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* variables: [ // AgentVariablesList
|
|
64
|
+
* { // AgentVariable
|
|
65
|
+
* name: "STRING_VALUE", // required
|
|
66
|
+
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
67
|
+
* optional: true || false, // required
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* company: "STRING_VALUE",
|
|
71
|
+
* };
|
|
72
|
+
* const command = new CreateAgentCommand(input);
|
|
73
|
+
* const response = await client.send(command);
|
|
74
|
+
* // { // CreateAgentOutput
|
|
75
|
+
* // agent: { // Agent
|
|
76
|
+
* // name: "STRING_VALUE", // required
|
|
77
|
+
* // model: "STRING_VALUE",
|
|
78
|
+
* // instructions: "STRING_VALUE", // required
|
|
79
|
+
* // capabilities: [ // AgentCapabilitiesList
|
|
80
|
+
* // { // AgentCapability Union: only one key present
|
|
81
|
+
* // tool: { // AgentTool
|
|
82
|
+
* // id: "STRING_VALUE", // required
|
|
83
|
+
* // variables: [ // AgentToolVariablesList
|
|
84
|
+
* // { // AgentToolVariable
|
|
85
|
+
* // name: "STRING_VALUE", // required
|
|
86
|
+
* // handler: { // AgentToolVariableHandler Union: only one key present
|
|
87
|
+
* // auto: {},
|
|
88
|
+
* // guided: { // AgentToolVariableGuidedHandler
|
|
89
|
+
* // description: "STRING_VALUE", // required
|
|
90
|
+
* // },
|
|
91
|
+
* // predefined: {},
|
|
92
|
+
* // },
|
|
93
|
+
* // },
|
|
94
|
+
* // ],
|
|
95
|
+
* // },
|
|
96
|
+
* // kb: { // AgentKnowledgeBase
|
|
97
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
98
|
+
* // },
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // variables: [ // AgentVariablesList
|
|
102
|
+
* // { // AgentVariable
|
|
103
|
+
* // name: "STRING_VALUE", // required
|
|
104
|
+
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
105
|
+
* // optional: true || false, // required
|
|
106
|
+
* // },
|
|
107
|
+
* // ],
|
|
108
|
+
* // id: "STRING_VALUE", // required
|
|
109
|
+
* // createdAt: "STRING_VALUE", // required
|
|
110
|
+
* // updatedAt: "STRING_VALUE",
|
|
111
|
+
* // },
|
|
112
|
+
* // };
|
|
113
|
+
*
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @param CreateAgentCommandInput - {@link CreateAgentCommandInput}
|
|
117
|
+
* @returns {@link CreateAgentCommandOutput}
|
|
118
|
+
* @see {@link CreateAgentCommandInput} for command's `input` shape.
|
|
119
|
+
* @see {@link CreateAgentCommandOutput} for command's `response` shape.
|
|
120
|
+
* @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link ValidationException} (client fault)
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link WilmaServiceException}
|
|
125
|
+
* <p>Base exception class for all service exceptions from Wilma service.</p>
|
|
126
|
+
*
|
|
127
|
+
*
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
export declare class CreateAgentCommand extends CreateAgentCommand_base {
|
|
131
|
+
/** @internal type navigation helper, not in runtime. */
|
|
132
|
+
protected static __types: {
|
|
133
|
+
api: {
|
|
134
|
+
input: CreateAgentInput;
|
|
135
|
+
output: CreateAgentOutput;
|
|
136
|
+
};
|
|
137
|
+
sdk: {
|
|
138
|
+
input: CreateAgentCommandInput;
|
|
139
|
+
output: CreateAgentCommandOutput;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
|
|
2
|
+
import { DeleteAgentInput, DeleteAgentOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteAgentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteAgentCommandInput extends DeleteAgentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteAgentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteAgentCommandOutput extends DeleteAgentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteAgentCommand_base: {
|
|
25
|
+
new (input: DeleteAgentCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAgentCommandInput, DeleteAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteAgentCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAgentCommandInput, DeleteAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Deletes an existing voice bot and all its associated data.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaClient, DeleteAgentCommand } from "@wildix/wim-wilma-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaClient, DeleteAgentCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
|
|
36
|
+
* const client = new WilmaClient(config);
|
|
37
|
+
* const input = { // DeleteAgentInput
|
|
38
|
+
* company: "STRING_VALUE",
|
|
39
|
+
* agentId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DeleteAgentCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param DeleteAgentCommandInput - {@link DeleteAgentCommandInput}
|
|
48
|
+
* @returns {@link DeleteAgentCommandOutput}
|
|
49
|
+
* @see {@link DeleteAgentCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link DeleteAgentCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ValidationException} (client fault)
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link WilmaServiceException}
|
|
56
|
+
* <p>Base exception class for all service exceptions from Wilma service.</p>
|
|
57
|
+
*
|
|
58
|
+
*
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare class DeleteAgentCommand extends DeleteAgentCommand_base {
|
|
62
|
+
/** @internal type navigation helper, not in runtime. */
|
|
63
|
+
protected static __types: {
|
|
64
|
+
api: {
|
|
65
|
+
input: DeleteAgentInput;
|
|
66
|
+
output: {};
|
|
67
|
+
};
|
|
68
|
+
sdk: {
|
|
69
|
+
input: DeleteAgentCommandInput;
|
|
70
|
+
output: DeleteAgentCommandOutput;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
|
|
2
|
+
import { ExecuteAgentInput, ExecuteAgentOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ExecuteAgentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ExecuteAgentCommandInput extends ExecuteAgentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ExecuteAgentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ExecuteAgentCommandOutput extends ExecuteAgentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ExecuteAgentCommand_base: {
|
|
25
|
+
new (input: ExecuteAgentCommandInput): import("@smithy/smithy-client").CommandImpl<ExecuteAgentCommandInput, ExecuteAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ExecuteAgentCommandInput): import("@smithy/smithy-client").CommandImpl<ExecuteAgentCommandInput, ExecuteAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Execute an agent with the provided content and input.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaClient, ExecuteAgentCommand } from "@wildix/wim-wilma-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaClient, ExecuteAgentCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
|
|
36
|
+
* const client = new WilmaClient(config);
|
|
37
|
+
* const input = { // ExecuteAgentInput
|
|
38
|
+
* company: "STRING_VALUE",
|
|
39
|
+
* agentId: "STRING_VALUE", // required
|
|
40
|
+
* data: "STRING_VALUE",
|
|
41
|
+
* variables: "DOCUMENT_VALUE",
|
|
42
|
+
* service: "STRING_VALUE",
|
|
43
|
+
* user: "STRING_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new ExecuteAgentCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // ExecuteAgentOutput
|
|
48
|
+
* // result: { // AgentExecutionResult
|
|
49
|
+
* // output: "DOCUMENT_VALUE", // required
|
|
50
|
+
* // error: { // AgentExecutionError
|
|
51
|
+
* // message: "STRING_VALUE", // required
|
|
52
|
+
* // },
|
|
53
|
+
* // },
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param ExecuteAgentCommandInput - {@link ExecuteAgentCommandInput}
|
|
59
|
+
* @returns {@link ExecuteAgentCommandOutput}
|
|
60
|
+
* @see {@link ExecuteAgentCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link ExecuteAgentCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link WilmaServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Wilma service.</p>
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class ExecuteAgentCommand extends ExecuteAgentCommand_base {
|
|
73
|
+
/** @internal type navigation helper, not in runtime. */
|
|
74
|
+
protected static __types: {
|
|
75
|
+
api: {
|
|
76
|
+
input: ExecuteAgentInput;
|
|
77
|
+
output: ExecuteAgentOutput;
|
|
78
|
+
};
|
|
79
|
+
sdk: {
|
|
80
|
+
input: ExecuteAgentCommandInput;
|
|
81
|
+
output: ExecuteAgentCommandOutput;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
|
|
2
|
+
import { GetAgentInput, GetAgentOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAgentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAgentCommandInput extends GetAgentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAgentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAgentCommandOutput extends GetAgentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAgentCommand_base: {
|
|
25
|
+
new (input: GetAgentCommandInput): import("@smithy/smithy-client").CommandImpl<GetAgentCommandInput, GetAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetAgentCommandInput): import("@smithy/smithy-client").CommandImpl<GetAgentCommandInput, GetAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves details of a specific voice bot by its unique identifier.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaClient, GetAgentCommand } from "@wildix/wim-wilma-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaClient, GetAgentCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
|
|
36
|
+
* const client = new WilmaClient(config);
|
|
37
|
+
* const input = { // GetAgentInput
|
|
38
|
+
* company: "STRING_VALUE",
|
|
39
|
+
* agentId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetAgentCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetAgentOutput
|
|
44
|
+
* // agent: { // Agent
|
|
45
|
+
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // model: "STRING_VALUE",
|
|
47
|
+
* // instructions: "STRING_VALUE", // required
|
|
48
|
+
* // capabilities: [ // AgentCapabilitiesList
|
|
49
|
+
* // { // AgentCapability Union: only one key present
|
|
50
|
+
* // tool: { // AgentTool
|
|
51
|
+
* // id: "STRING_VALUE", // required
|
|
52
|
+
* // variables: [ // AgentToolVariablesList
|
|
53
|
+
* // { // AgentToolVariable
|
|
54
|
+
* // name: "STRING_VALUE", // required
|
|
55
|
+
* // handler: { // AgentToolVariableHandler Union: only one key present
|
|
56
|
+
* // auto: {},
|
|
57
|
+
* // guided: { // AgentToolVariableGuidedHandler
|
|
58
|
+
* // description: "STRING_VALUE", // required
|
|
59
|
+
* // },
|
|
60
|
+
* // predefined: {},
|
|
61
|
+
* // },
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // },
|
|
65
|
+
* // kb: { // AgentKnowledgeBase
|
|
66
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // },
|
|
69
|
+
* // ],
|
|
70
|
+
* // variables: [ // AgentVariablesList
|
|
71
|
+
* // { // AgentVariable
|
|
72
|
+
* // name: "STRING_VALUE", // required
|
|
73
|
+
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
74
|
+
* // optional: true || false, // required
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // id: "STRING_VALUE", // required
|
|
78
|
+
* // createdAt: "STRING_VALUE", // required
|
|
79
|
+
* // updatedAt: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param GetAgentCommandInput - {@link GetAgentCommandInput}
|
|
86
|
+
* @returns {@link GetAgentCommandOutput}
|
|
87
|
+
* @see {@link GetAgentCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link GetAgentCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link NotFoundException} (client fault)
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link WilmaServiceException}
|
|
96
|
+
* <p>Base exception class for all service exceptions from Wilma service.</p>
|
|
97
|
+
*
|
|
98
|
+
*
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export declare class GetAgentCommand extends GetAgentCommand_base {
|
|
102
|
+
/** @internal type navigation helper, not in runtime. */
|
|
103
|
+
protected static __types: {
|
|
104
|
+
api: {
|
|
105
|
+
input: GetAgentInput;
|
|
106
|
+
output: GetAgentOutput;
|
|
107
|
+
};
|
|
108
|
+
sdk: {
|
|
109
|
+
input: GetAgentCommandInput;
|
|
110
|
+
output: GetAgentCommandOutput;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -47,6 +47,8 @@ declare const GetChatCommand_base: {
|
|
|
47
47
|
* // agentId: "STRING_VALUE",
|
|
48
48
|
* // title: "STRING_VALUE",
|
|
49
49
|
* // target: "STRING_VALUE",
|
|
50
|
+
* // options: "DOCUMENT_VALUE",
|
|
51
|
+
* // mentions: "DOCUMENT_VALUE",
|
|
50
52
|
* // createdAt: "STRING_VALUE", // required
|
|
51
53
|
* // updatedAt: "STRING_VALUE",
|
|
52
54
|
* // },
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
|
|
2
|
+
import { ListAgentsInput, ListAgentsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListAgentsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAgentsCommandInput extends ListAgentsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAgentsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAgentsCommandOutput extends ListAgentsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAgentsCommand_base: {
|
|
25
|
+
new (input: ListAgentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAgentsCommandInput, ListAgentsCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListAgentsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListAgentsCommandInput, ListAgentsCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a list of agents for the specified company.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaClient, ListAgentsCommand } from "@wildix/wim-wilma-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaClient, ListAgentsCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
|
|
36
|
+
* const client = new WilmaClient(config);
|
|
37
|
+
* const input = { // ListAgentsInput
|
|
38
|
+
* company: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListAgentsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListAgentsOutput
|
|
43
|
+
* // agents: [ // AgentsList // required
|
|
44
|
+
* // { // Agent
|
|
45
|
+
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // model: "STRING_VALUE",
|
|
47
|
+
* // instructions: "STRING_VALUE", // required
|
|
48
|
+
* // capabilities: [ // AgentCapabilitiesList
|
|
49
|
+
* // { // AgentCapability Union: only one key present
|
|
50
|
+
* // tool: { // AgentTool
|
|
51
|
+
* // id: "STRING_VALUE", // required
|
|
52
|
+
* // variables: [ // AgentToolVariablesList
|
|
53
|
+
* // { // AgentToolVariable
|
|
54
|
+
* // name: "STRING_VALUE", // required
|
|
55
|
+
* // handler: { // AgentToolVariableHandler Union: only one key present
|
|
56
|
+
* // auto: {},
|
|
57
|
+
* // guided: { // AgentToolVariableGuidedHandler
|
|
58
|
+
* // description: "STRING_VALUE", // required
|
|
59
|
+
* // },
|
|
60
|
+
* // predefined: {},
|
|
61
|
+
* // },
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // },
|
|
65
|
+
* // kb: { // AgentKnowledgeBase
|
|
66
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // },
|
|
69
|
+
* // ],
|
|
70
|
+
* // variables: [ // AgentVariablesList
|
|
71
|
+
* // { // AgentVariable
|
|
72
|
+
* // name: "STRING_VALUE", // required
|
|
73
|
+
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
74
|
+
* // optional: true || false, // required
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // id: "STRING_VALUE", // required
|
|
78
|
+
* // createdAt: "STRING_VALUE", // required
|
|
79
|
+
* // updatedAt: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // ],
|
|
82
|
+
* // };
|
|
83
|
+
*
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* @param ListAgentsCommandInput - {@link ListAgentsCommandInput}
|
|
87
|
+
* @returns {@link ListAgentsCommandOutput}
|
|
88
|
+
* @see {@link ListAgentsCommandInput} for command's `input` shape.
|
|
89
|
+
* @see {@link ListAgentsCommandOutput} for command's `response` shape.
|
|
90
|
+
* @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ValidationException} (client fault)
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link WilmaServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from Wilma service.</p>
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
export declare class ListAgentsCommand extends ListAgentsCommand_base {
|
|
101
|
+
/** @internal type navigation helper, not in runtime. */
|
|
102
|
+
protected static __types: {
|
|
103
|
+
api: {
|
|
104
|
+
input: ListAgentsInput;
|
|
105
|
+
output: ListAgentsOutput;
|
|
106
|
+
};
|
|
107
|
+
sdk: {
|
|
108
|
+
input: ListAgentsCommandInput;
|
|
109
|
+
output: ListAgentsCommandOutput;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}
|