@wildix/wim-wilma-client 0.0.4 → 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 +30 -1
- package/dist-cjs/protocols/Aws_restJson1.js +249 -4
- 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 +29 -0
- package/dist-es/protocols/Aws_restJson1.js +234 -3
- 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/ListAgentsCommand.d.ts +112 -0
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +80 -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 +326 -0
- 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
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
|
|
2
|
+
import { ListAgentsNamesInput, ListAgentsNamesOutput } 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 ListAgentsNamesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAgentsNamesCommandInput extends ListAgentsNamesInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAgentsNamesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAgentsNamesCommandOutput extends ListAgentsNamesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAgentsNamesCommand_base: {
|
|
25
|
+
new (input: ListAgentsNamesCommandInput): import("@smithy/smithy-client").CommandImpl<ListAgentsNamesCommandInput, ListAgentsNamesCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListAgentsNamesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListAgentsNamesCommandInput, ListAgentsNamesCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a list of agents names and basic information 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, ListAgentsNamesCommand } from "@wildix/wim-wilma-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaClient, ListAgentsNamesCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
|
|
36
|
+
* const client = new WilmaClient(config);
|
|
37
|
+
* const input = { // ListAgentsNamesInput
|
|
38
|
+
* company: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListAgentsNamesCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListAgentsNamesOutput
|
|
43
|
+
* // agents: [ // AgentsInfoList // required
|
|
44
|
+
* // { // AgentInfo
|
|
45
|
+
* // id: "STRING_VALUE", // required
|
|
46
|
+
* // name: "STRING_VALUE", // required
|
|
47
|
+
* // model: "STRING_VALUE",
|
|
48
|
+
* // },
|
|
49
|
+
* // ],
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param ListAgentsNamesCommandInput - {@link ListAgentsNamesCommandInput}
|
|
55
|
+
* @returns {@link ListAgentsNamesCommandOutput}
|
|
56
|
+
* @see {@link ListAgentsNamesCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link ListAgentsNamesCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ValidationException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link WilmaServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from Wilma service.</p>
|
|
64
|
+
*
|
|
65
|
+
*
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export declare class ListAgentsNamesCommand extends ListAgentsNamesCommand_base {
|
|
69
|
+
/** @internal type navigation helper, not in runtime. */
|
|
70
|
+
protected static __types: {
|
|
71
|
+
api: {
|
|
72
|
+
input: ListAgentsNamesInput;
|
|
73
|
+
output: ListAgentsNamesOutput;
|
|
74
|
+
};
|
|
75
|
+
sdk: {
|
|
76
|
+
input: ListAgentsNamesCommandInput;
|
|
77
|
+
output: ListAgentsNamesCommandOutput;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}
|