@wildix/wilma-agents-client 1.0.15 → 1.0.16
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/WilmaAgents.js +4 -8
- package/dist-cjs/commands/{CreateAgentDeploymentCommand.js → PutAgentDeploymentCommand.js} +6 -6
- package/dist-cjs/commands/{ListAgentDeploymentsCommand.js → ResetAgentDeploymentCommand.js} +6 -6
- package/dist-cjs/commands/index.js +2 -4
- package/dist-cjs/models/enums.js +7 -5
- package/dist-cjs/runtimeConfig.shared.js +2 -2
- package/dist-cjs/schemas/schemas_0.js +66 -111
- package/dist-es/WilmaAgents.js +4 -8
- package/dist-es/commands/{ListAgentDeploymentsCommand.js → PutAgentDeploymentCommand.js} +5 -5
- package/dist-es/commands/{CreateAgentDeploymentCommand.js → ResetAgentDeploymentCommand.js} +5 -5
- package/dist-es/commands/index.js +2 -4
- package/dist-es/models/enums.js +6 -4
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-es/schemas/schemas_0.js +63 -108
- package/dist-types/WilmaAgents.d.ts +19 -38
- package/dist-types/WilmaAgentsClient.d.ts +9 -16
- package/dist-types/commands/CreateAgentCommand.d.ts +13 -38
- package/dist-types/commands/DeleteAgentCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentCommand.d.ts +8 -31
- package/dist-types/commands/GetAgentDeploymentCommand.d.ts +6 -26
- package/dist-types/commands/GetAgentVersionCommand.d.ts +4 -6
- package/dist-types/commands/ListAgentVersionsCommand.d.ts +0 -3
- package/dist-types/commands/ListAgentsCommand.d.ts +8 -31
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +5 -7
- package/dist-types/commands/PutAgentDeploymentCommand.d.ts +90 -0
- package/dist-types/commands/ResetAgentDeploymentCommand.d.ts +87 -0
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +9 -32
- package/dist-types/commands/UpdateAgentCommand.d.ts +12 -37
- package/dist-types/commands/index.d.ts +2 -4
- package/dist-types/index.d.ts +5 -10
- package/dist-types/models/enums.d.ts +27 -19
- package/dist-types/models/models_0.d.ts +91 -196
- package/dist-types/schemas/schemas_0.d.ts +6 -13
- package/package.json +1 -1
- package/dist-cjs/commands/DeleteAgentDeploymentCommand.js +0 -20
- package/dist-cjs/commands/UpdateAgentDeploymentCommand.js +0 -20
- package/dist-es/commands/DeleteAgentDeploymentCommand.js +0 -16
- package/dist-es/commands/UpdateAgentDeploymentCommand.js +0 -16
- package/dist-types/commands/CreateAgentDeploymentCommand.d.ts +0 -115
- package/dist-types/commands/DeleteAgentDeploymentCommand.d.ts +0 -81
- package/dist-types/commands/ListAgentDeploymentsCommand.d.ts +0 -105
- package/dist-types/commands/UpdateAgentDeploymentCommand.d.ts +0 -116
|
@@ -98,12 +98,10 @@ declare const ListAgentsCommand_base: {
|
|
|
98
98
|
* // callerEmail: true || false,
|
|
99
99
|
* // callerCompany: true || false,
|
|
100
100
|
* // time: true || false,
|
|
101
|
-
* // timeZone: "STRING_VALUE",
|
|
102
101
|
* // },
|
|
103
102
|
* // },
|
|
104
103
|
* // chat: { // ChatChannelSettings
|
|
105
104
|
* // discoverable: true || false,
|
|
106
|
-
* // artifacts: true || false,
|
|
107
105
|
* // },
|
|
108
106
|
* // assistant: { // AssistantChannelSettings
|
|
109
107
|
* // default: true || false,
|
|
@@ -114,6 +112,8 @@ declare const ListAgentsCommand_base: {
|
|
|
114
112
|
* // ai: { // AgentAiEngine
|
|
115
113
|
* // instructions: "STRING_VALUE", // required
|
|
116
114
|
* // model: "STRING_VALUE",
|
|
115
|
+
* // timeZone: "STRING_VALUE",
|
|
116
|
+
* // artifacts: true || false,
|
|
117
117
|
* // skills: [ // AgentSkillsList
|
|
118
118
|
* // { // AgentSkillReference
|
|
119
119
|
* // id: "STRING_VALUE", // required
|
|
@@ -133,6 +133,7 @@ declare const ListAgentsCommand_base: {
|
|
|
133
133
|
* // { // AgentCapability Union: only one key present
|
|
134
134
|
* // tool: { // AgentTool
|
|
135
135
|
* // id: "STRING_VALUE", // required
|
|
136
|
+
* // toolVersion: Number("int"),
|
|
136
137
|
* // description: "STRING_VALUE",
|
|
137
138
|
* // fields: [ // AgentToolFieldsList
|
|
138
139
|
* // { // AgentToolField
|
|
@@ -233,7 +234,7 @@ declare const ListAgentsCommand_base: {
|
|
|
233
234
|
* // allowedDomains: [
|
|
234
235
|
* // "STRING_VALUE",
|
|
235
236
|
* // ],
|
|
236
|
-
* //
|
|
237
|
+
* // size: "min" || "small" || "large" || "max",
|
|
237
238
|
* // },
|
|
238
239
|
* // },
|
|
239
240
|
* // webSearch: { // AgentWebSearchCapability
|
|
@@ -256,7 +257,6 @@ declare const ListAgentsCommand_base: {
|
|
|
256
257
|
* // agent: { // AgentCallCapability
|
|
257
258
|
* // agentId: "STRING_VALUE", // required
|
|
258
259
|
* // agentVersion: Number("int"),
|
|
259
|
-
* // agentDeployment: "STRING_VALUE",
|
|
260
260
|
* // access: {
|
|
261
261
|
* // visibility: "explicit" || "organization",
|
|
262
262
|
* // grants: [
|
|
@@ -287,7 +287,6 @@ declare const ListAgentsCommand_base: {
|
|
|
287
287
|
* // variant: "agent" || "service",
|
|
288
288
|
* // agent: "STRING_VALUE",
|
|
289
289
|
* // agentVersion: Number("int"),
|
|
290
|
-
* // agentDeployment: "STRING_VALUE",
|
|
291
290
|
* // service: "STRING_VALUE",
|
|
292
291
|
* // silent: true || false,
|
|
293
292
|
* // pipeline: { // AgentHandoverPipeline
|
|
@@ -316,7 +315,6 @@ declare const ListAgentsCommand_base: {
|
|
|
316
315
|
* // description: "STRING_VALUE",
|
|
317
316
|
* // id: "STRING_VALUE", // required
|
|
318
317
|
* // agentVersion: Number("int"),
|
|
319
|
-
* // agentDeployment: "STRING_VALUE",
|
|
320
318
|
* // annotations: [
|
|
321
319
|
* // {// Union: only one key present
|
|
322
320
|
* // tag: {
|
|
@@ -410,31 +408,10 @@ declare const ListAgentsCommand_base: {
|
|
|
410
408
|
* // revision: Number("int"), // required
|
|
411
409
|
* // latestVersion: Number("int"),
|
|
412
410
|
* // draftBaseVersion: Number("int"),
|
|
413
|
-
* //
|
|
414
|
-
* // { //
|
|
415
|
-
* //
|
|
416
|
-
* //
|
|
417
|
-
* // type: "user" || "api_key" || "service", // required
|
|
418
|
-
* // id: "STRING_VALUE", // required
|
|
419
|
-
* // name: "STRING_VALUE",
|
|
420
|
-
* // },
|
|
421
|
-
* // updatedAt: "STRING_VALUE",
|
|
422
|
-
* // updatedBy: {
|
|
423
|
-
* // type: "user" || "api_key" || "service", // required
|
|
424
|
-
* // id: "STRING_VALUE", // required
|
|
425
|
-
* // name: "STRING_VALUE",
|
|
426
|
-
* // },
|
|
427
|
-
* // agentId: "STRING_VALUE", // required
|
|
428
|
-
* // name: "STRING_VALUE", // required
|
|
429
|
-
* // description: "STRING_VALUE",
|
|
430
|
-
* // status: "active" || "paused", // required
|
|
431
|
-
* // routing: [ // AgentDeploymentRoutesList // required
|
|
432
|
-
* // { // AgentDeploymentRoute
|
|
433
|
-
* // version: Number("int"), // required
|
|
434
|
-
* // percentage: Number("int"), // required
|
|
435
|
-
* // },
|
|
436
|
-
* // ],
|
|
437
|
-
* // revision: Number("int"), // required
|
|
411
|
+
* // deployment: [ // AgentDeploymentRoutesList
|
|
412
|
+
* // { // AgentDeploymentRoute
|
|
413
|
+
* // version: Number("int"), // required
|
|
414
|
+
* // percentage: Number("int"), // required
|
|
438
415
|
* // },
|
|
439
416
|
* // ],
|
|
440
417
|
* // },
|
|
@@ -27,7 +27,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Publishes the current draft as a new immutable version. Publishing never changes what is served;
|
|
30
|
+
* Publishes the current draft as a new immutable version. Publishing never changes what is served; call PutAgentDeployment separately to route sessions to it.
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -102,12 +102,10 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
102
102
|
* // callerEmail: true || false,
|
|
103
103
|
* // callerCompany: true || false,
|
|
104
104
|
* // time: true || false,
|
|
105
|
-
* // timeZone: "STRING_VALUE",
|
|
106
105
|
* // },
|
|
107
106
|
* // },
|
|
108
107
|
* // chat: { // ChatChannelSettings
|
|
109
108
|
* // discoverable: true || false,
|
|
110
|
-
* // artifacts: true || false,
|
|
111
109
|
* // },
|
|
112
110
|
* // assistant: { // AssistantChannelSettings
|
|
113
111
|
* // default: true || false,
|
|
@@ -118,6 +116,8 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
118
116
|
* // ai: { // AgentAiEngine
|
|
119
117
|
* // instructions: "STRING_VALUE", // required
|
|
120
118
|
* // model: "STRING_VALUE",
|
|
119
|
+
* // timeZone: "STRING_VALUE",
|
|
120
|
+
* // artifacts: true || false,
|
|
121
121
|
* // skills: [ // AgentSkillsList
|
|
122
122
|
* // { // AgentSkillReference
|
|
123
123
|
* // id: "STRING_VALUE", // required
|
|
@@ -137,6 +137,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
137
137
|
* // { // AgentCapability Union: only one key present
|
|
138
138
|
* // tool: { // AgentTool
|
|
139
139
|
* // id: "STRING_VALUE", // required
|
|
140
|
+
* // toolVersion: Number("int"),
|
|
140
141
|
* // description: "STRING_VALUE",
|
|
141
142
|
* // fields: [ // AgentToolFieldsList
|
|
142
143
|
* // { // AgentToolField
|
|
@@ -237,7 +238,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
237
238
|
* // allowedDomains: [
|
|
238
239
|
* // "STRING_VALUE",
|
|
239
240
|
* // ],
|
|
240
|
-
* //
|
|
241
|
+
* // size: "min" || "small" || "large" || "max",
|
|
241
242
|
* // },
|
|
242
243
|
* // },
|
|
243
244
|
* // webSearch: { // AgentWebSearchCapability
|
|
@@ -260,7 +261,6 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
260
261
|
* // agent: { // AgentCallCapability
|
|
261
262
|
* // agentId: "STRING_VALUE", // required
|
|
262
263
|
* // agentVersion: Number("int"),
|
|
263
|
-
* // agentDeployment: "STRING_VALUE",
|
|
264
264
|
* // access: {
|
|
265
265
|
* // visibility: "explicit" || "organization",
|
|
266
266
|
* // grants: [
|
|
@@ -291,7 +291,6 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
291
291
|
* // variant: "agent" || "service",
|
|
292
292
|
* // agent: "STRING_VALUE",
|
|
293
293
|
* // agentVersion: Number("int"),
|
|
294
|
-
* // agentDeployment: "STRING_VALUE",
|
|
295
294
|
* // service: "STRING_VALUE",
|
|
296
295
|
* // silent: true || false,
|
|
297
296
|
* // pipeline: { // AgentHandoverPipeline
|
|
@@ -320,7 +319,6 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
320
319
|
* // description: "STRING_VALUE",
|
|
321
320
|
* // id: "STRING_VALUE", // required
|
|
322
321
|
* // agentVersion: Number("int"),
|
|
323
|
-
* // agentDeployment: "STRING_VALUE",
|
|
324
322
|
* // annotations: [
|
|
325
323
|
* // {// Union: only one key present
|
|
326
324
|
* // tag: {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { PutAgentDeploymentInput, PutAgentDeploymentOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaAgentsClientResolvedConfig } from "../WilmaAgentsClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutAgentDeploymentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutAgentDeploymentCommandInput extends PutAgentDeploymentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutAgentDeploymentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutAgentDeploymentCommandOutput extends PutAgentDeploymentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutAgentDeploymentCommand_base: {
|
|
25
|
+
new (input: PutAgentDeploymentCommandInput): import("@smithy/core/client").CommandImpl<PutAgentDeploymentCommandInput, PutAgentDeploymentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: PutAgentDeploymentCommandInput): import("@smithy/core/client").CommandImpl<PutAgentDeploymentCommandInput, PutAgentDeploymentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Sets how new sessions are split across the agent's published versions, e.g. 80% on version 1 and 20% on version 2. Percentages must total 100. Running sessions keep the version they started on.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaAgentsClient, PutAgentDeploymentCommand } from "@wildix/wilma-agents-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaAgentsClient, PutAgentDeploymentCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
|
|
36
|
+
* // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
|
|
37
|
+
* const config = {}; // type is WilmaAgentsClientConfig
|
|
38
|
+
* const client = new WilmaAgentsClient(config);
|
|
39
|
+
* const input = { // PutAgentDeploymentInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* agentId: "STRING_VALUE", // required
|
|
42
|
+
* deployment: [ // AgentDeploymentRoutesList // required
|
|
43
|
+
* { // AgentDeploymentRoute
|
|
44
|
+
* version: Number("int"), // required
|
|
45
|
+
* percentage: Number("int"), // required
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* };
|
|
49
|
+
* const command = new PutAgentDeploymentCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // PutAgentDeploymentOutput
|
|
52
|
+
* // deployment: [ // AgentDeploymentRoutesList // required
|
|
53
|
+
* // { // AgentDeploymentRoute
|
|
54
|
+
* // version: Number("int"), // required
|
|
55
|
+
* // percentage: Number("int"), // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // };
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param PutAgentDeploymentCommandInput - {@link PutAgentDeploymentCommandInput}
|
|
63
|
+
* @returns {@link PutAgentDeploymentCommandOutput}
|
|
64
|
+
* @see {@link PutAgentDeploymentCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link PutAgentDeploymentCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link NotFoundException} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link WilmaAgentsServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from WilmaAgents service.</p>
|
|
74
|
+
*
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export declare class PutAgentDeploymentCommand extends PutAgentDeploymentCommand_base {
|
|
79
|
+
/** @internal type navigation helper, not in runtime. */
|
|
80
|
+
protected static __types: {
|
|
81
|
+
api: {
|
|
82
|
+
input: PutAgentDeploymentInput;
|
|
83
|
+
output: PutAgentDeploymentOutput;
|
|
84
|
+
};
|
|
85
|
+
sdk: {
|
|
86
|
+
input: PutAgentDeploymentCommandInput;
|
|
87
|
+
output: PutAgentDeploymentCommandOutput;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ResetAgentDeploymentInput, ResetAgentDeploymentOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaAgentsClientResolvedConfig } from "../WilmaAgentsClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ResetAgentDeploymentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ResetAgentDeploymentCommandInput extends ResetAgentDeploymentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ResetAgentDeploymentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ResetAgentDeploymentCommandOutput extends ResetAgentDeploymentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ResetAgentDeploymentCommand_base: {
|
|
25
|
+
new (input: ResetAgentDeploymentCommandInput): import("@smithy/core/client").CommandImpl<ResetAgentDeploymentCommandInput, ResetAgentDeploymentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ResetAgentDeploymentCommandInput): import("@smithy/core/client").CommandImpl<ResetAgentDeploymentCommandInput, ResetAgentDeploymentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Resets the deployment to the default: 100% of new sessions on the latest published version. Fails with ConflictException while the agent has no published version.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaAgentsClient, ResetAgentDeploymentCommand } from "@wildix/wilma-agents-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaAgentsClient, ResetAgentDeploymentCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
|
|
36
|
+
* // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
|
|
37
|
+
* const config = {}; // type is WilmaAgentsClientConfig
|
|
38
|
+
* const client = new WilmaAgentsClient(config);
|
|
39
|
+
* const input = { // ResetAgentDeploymentInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* agentId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ResetAgentDeploymentCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // ResetAgentDeploymentOutput
|
|
46
|
+
* // deployment: [ // AgentDeploymentRoutesList // required
|
|
47
|
+
* // { // AgentDeploymentRoute
|
|
48
|
+
* // version: Number("int"), // required
|
|
49
|
+
* // percentage: Number("int"), // required
|
|
50
|
+
* // },
|
|
51
|
+
* // ],
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param ResetAgentDeploymentCommandInput - {@link ResetAgentDeploymentCommandInput}
|
|
57
|
+
* @returns {@link ResetAgentDeploymentCommandOutput}
|
|
58
|
+
* @see {@link ResetAgentDeploymentCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link ResetAgentDeploymentCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link NotFoundException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ConflictException} (client fault)
|
|
65
|
+
* The request conflicts with the current state of the resource, e.g. a duplicate name, a resource still in use, or an unmet precondition.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link WilmaAgentsServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from WilmaAgents service.</p>
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class ResetAgentDeploymentCommand extends ResetAgentDeploymentCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: ResetAgentDeploymentInput;
|
|
80
|
+
output: ResetAgentDeploymentOutput;
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: ResetAgentDeploymentCommandInput;
|
|
84
|
+
output: ResetAgentDeploymentCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -27,7 +27,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Replaces the mutable draft with a published version's definition. The draft revision is incremented; published versions and
|
|
30
|
+
* Replaces the mutable draft with a published version's definition. The draft revision is incremented; published versions and the deployment configuration are unchanged.
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -95,12 +95,10 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
95
95
|
* // callerEmail: true || false,
|
|
96
96
|
* // callerCompany: true || false,
|
|
97
97
|
* // time: true || false,
|
|
98
|
-
* // timeZone: "STRING_VALUE",
|
|
99
98
|
* // },
|
|
100
99
|
* // },
|
|
101
100
|
* // chat: { // ChatChannelSettings
|
|
102
101
|
* // discoverable: true || false,
|
|
103
|
-
* // artifacts: true || false,
|
|
104
102
|
* // },
|
|
105
103
|
* // assistant: { // AssistantChannelSettings
|
|
106
104
|
* // default: true || false,
|
|
@@ -111,6 +109,8 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
111
109
|
* // ai: { // AgentAiEngine
|
|
112
110
|
* // instructions: "STRING_VALUE", // required
|
|
113
111
|
* // model: "STRING_VALUE",
|
|
112
|
+
* // timeZone: "STRING_VALUE",
|
|
113
|
+
* // artifacts: true || false,
|
|
114
114
|
* // skills: [ // AgentSkillsList
|
|
115
115
|
* // { // AgentSkillReference
|
|
116
116
|
* // id: "STRING_VALUE", // required
|
|
@@ -130,6 +130,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
130
130
|
* // { // AgentCapability Union: only one key present
|
|
131
131
|
* // tool: { // AgentTool
|
|
132
132
|
* // id: "STRING_VALUE", // required
|
|
133
|
+
* // toolVersion: Number("int"),
|
|
133
134
|
* // description: "STRING_VALUE",
|
|
134
135
|
* // fields: [ // AgentToolFieldsList
|
|
135
136
|
* // { // AgentToolField
|
|
@@ -230,7 +231,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
230
231
|
* // allowedDomains: [
|
|
231
232
|
* // "STRING_VALUE",
|
|
232
233
|
* // ],
|
|
233
|
-
* //
|
|
234
|
+
* // size: "min" || "small" || "large" || "max",
|
|
234
235
|
* // },
|
|
235
236
|
* // },
|
|
236
237
|
* // webSearch: { // AgentWebSearchCapability
|
|
@@ -253,7 +254,6 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
253
254
|
* // agent: { // AgentCallCapability
|
|
254
255
|
* // agentId: "STRING_VALUE", // required
|
|
255
256
|
* // agentVersion: Number("int"),
|
|
256
|
-
* // agentDeployment: "STRING_VALUE",
|
|
257
257
|
* // access: {
|
|
258
258
|
* // visibility: "explicit" || "organization",
|
|
259
259
|
* // grants: [
|
|
@@ -284,7 +284,6 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
284
284
|
* // variant: "agent" || "service",
|
|
285
285
|
* // agent: "STRING_VALUE",
|
|
286
286
|
* // agentVersion: Number("int"),
|
|
287
|
-
* // agentDeployment: "STRING_VALUE",
|
|
288
287
|
* // service: "STRING_VALUE",
|
|
289
288
|
* // silent: true || false,
|
|
290
289
|
* // pipeline: { // AgentHandoverPipeline
|
|
@@ -313,7 +312,6 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
313
312
|
* // description: "STRING_VALUE",
|
|
314
313
|
* // id: "STRING_VALUE", // required
|
|
315
314
|
* // agentVersion: Number("int"),
|
|
316
|
-
* // agentDeployment: "STRING_VALUE",
|
|
317
315
|
* // annotations: [
|
|
318
316
|
* // {// Union: only one key present
|
|
319
317
|
* // tag: {
|
|
@@ -407,31 +405,10 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
407
405
|
* // revision: Number("int"), // required
|
|
408
406
|
* // latestVersion: Number("int"),
|
|
409
407
|
* // draftBaseVersion: Number("int"),
|
|
410
|
-
* //
|
|
411
|
-
* // { //
|
|
412
|
-
* //
|
|
413
|
-
* //
|
|
414
|
-
* // type: "user" || "api_key" || "service", // required
|
|
415
|
-
* // id: "STRING_VALUE", // required
|
|
416
|
-
* // name: "STRING_VALUE",
|
|
417
|
-
* // },
|
|
418
|
-
* // updatedAt: "STRING_VALUE",
|
|
419
|
-
* // updatedBy: {
|
|
420
|
-
* // type: "user" || "api_key" || "service", // required
|
|
421
|
-
* // id: "STRING_VALUE", // required
|
|
422
|
-
* // name: "STRING_VALUE",
|
|
423
|
-
* // },
|
|
424
|
-
* // agentId: "STRING_VALUE", // required
|
|
425
|
-
* // name: "STRING_VALUE", // required
|
|
426
|
-
* // description: "STRING_VALUE",
|
|
427
|
-
* // status: "active" || "paused", // required
|
|
428
|
-
* // routing: [ // AgentDeploymentRoutesList // required
|
|
429
|
-
* // { // AgentDeploymentRoute
|
|
430
|
-
* // version: Number("int"), // required
|
|
431
|
-
* // percentage: Number("int"), // required
|
|
432
|
-
* // },
|
|
433
|
-
* // ],
|
|
434
|
-
* // revision: Number("int"), // required
|
|
408
|
+
* // deployment: [ // AgentDeploymentRoutesList
|
|
409
|
+
* // { // AgentDeploymentRoute
|
|
410
|
+
* // version: Number("int"), // required
|
|
411
|
+
* // percentage: Number("int"), // required
|
|
435
412
|
* // },
|
|
436
413
|
* // ],
|
|
437
414
|
* // },
|
|
@@ -86,12 +86,10 @@ declare const UpdateAgentCommand_base: {
|
|
|
86
86
|
* callerEmail: true || false,
|
|
87
87
|
* callerCompany: true || false,
|
|
88
88
|
* time: true || false,
|
|
89
|
-
* timeZone: "STRING_VALUE",
|
|
90
89
|
* },
|
|
91
90
|
* },
|
|
92
91
|
* chat: { // ChatChannelSettings
|
|
93
92
|
* discoverable: true || false,
|
|
94
|
-
* artifacts: true || false,
|
|
95
93
|
* },
|
|
96
94
|
* assistant: { // AssistantChannelSettings
|
|
97
95
|
* default: true || false,
|
|
@@ -102,6 +100,8 @@ declare const UpdateAgentCommand_base: {
|
|
|
102
100
|
* ai: { // AgentAiEngine
|
|
103
101
|
* instructions: "STRING_VALUE", // required
|
|
104
102
|
* model: "STRING_VALUE",
|
|
103
|
+
* timeZone: "STRING_VALUE",
|
|
104
|
+
* artifacts: true || false,
|
|
105
105
|
* skills: [ // AgentSkillsList
|
|
106
106
|
* { // AgentSkillReference
|
|
107
107
|
* id: "STRING_VALUE", // required
|
|
@@ -121,6 +121,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
121
121
|
* { // AgentCapability Union: only one key present
|
|
122
122
|
* tool: { // AgentTool
|
|
123
123
|
* id: "STRING_VALUE", // required
|
|
124
|
+
* toolVersion: Number("int"),
|
|
124
125
|
* description: "STRING_VALUE",
|
|
125
126
|
* fields: [ // AgentToolFieldsList
|
|
126
127
|
* { // AgentToolField
|
|
@@ -221,7 +222,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
221
222
|
* allowedDomains: [
|
|
222
223
|
* "STRING_VALUE",
|
|
223
224
|
* ],
|
|
224
|
-
*
|
|
225
|
+
* size: "min" || "small" || "large" || "max",
|
|
225
226
|
* },
|
|
226
227
|
* },
|
|
227
228
|
* webSearch: { // AgentWebSearchCapability
|
|
@@ -244,7 +245,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
244
245
|
* agent: { // AgentCallCapability
|
|
245
246
|
* agentId: "STRING_VALUE", // required
|
|
246
247
|
* agentVersion: Number("int"),
|
|
247
|
-
* agentDeployment: "STRING_VALUE",
|
|
248
248
|
* access: {
|
|
249
249
|
* visibility: "explicit" || "organization",
|
|
250
250
|
* grants: [
|
|
@@ -275,7 +275,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
275
275
|
* variant: "agent" || "service",
|
|
276
276
|
* agent: "STRING_VALUE",
|
|
277
277
|
* agentVersion: Number("int"),
|
|
278
|
-
* agentDeployment: "STRING_VALUE",
|
|
279
278
|
* service: "STRING_VALUE",
|
|
280
279
|
* silent: true || false,
|
|
281
280
|
* pipeline: { // AgentHandoverPipeline
|
|
@@ -304,7 +303,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
304
303
|
* description: "STRING_VALUE",
|
|
305
304
|
* id: "STRING_VALUE", // required
|
|
306
305
|
* agentVersion: Number("int"),
|
|
307
|
-
* agentDeployment: "STRING_VALUE",
|
|
308
306
|
* annotations: [
|
|
309
307
|
* {// Union: only one key present
|
|
310
308
|
* tag: {
|
|
@@ -438,12 +436,10 @@ declare const UpdateAgentCommand_base: {
|
|
|
438
436
|
* // callerEmail: true || false,
|
|
439
437
|
* // callerCompany: true || false,
|
|
440
438
|
* // time: true || false,
|
|
441
|
-
* // timeZone: "STRING_VALUE",
|
|
442
439
|
* // },
|
|
443
440
|
* // },
|
|
444
441
|
* // chat: { // ChatChannelSettings
|
|
445
442
|
* // discoverable: true || false,
|
|
446
|
-
* // artifacts: true || false,
|
|
447
443
|
* // },
|
|
448
444
|
* // assistant: { // AssistantChannelSettings
|
|
449
445
|
* // default: true || false,
|
|
@@ -454,6 +450,8 @@ declare const UpdateAgentCommand_base: {
|
|
|
454
450
|
* // ai: { // AgentAiEngine
|
|
455
451
|
* // instructions: "STRING_VALUE", // required
|
|
456
452
|
* // model: "STRING_VALUE",
|
|
453
|
+
* // timeZone: "STRING_VALUE",
|
|
454
|
+
* // artifacts: true || false,
|
|
457
455
|
* // skills: [ // AgentSkillsList
|
|
458
456
|
* // { // AgentSkillReference
|
|
459
457
|
* // id: "STRING_VALUE", // required
|
|
@@ -473,6 +471,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
473
471
|
* // { // AgentCapability Union: only one key present
|
|
474
472
|
* // tool: { // AgentTool
|
|
475
473
|
* // id: "STRING_VALUE", // required
|
|
474
|
+
* // toolVersion: Number("int"),
|
|
476
475
|
* // description: "STRING_VALUE",
|
|
477
476
|
* // fields: [ // AgentToolFieldsList
|
|
478
477
|
* // { // AgentToolField
|
|
@@ -573,7 +572,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
573
572
|
* // allowedDomains: [
|
|
574
573
|
* // "STRING_VALUE",
|
|
575
574
|
* // ],
|
|
576
|
-
* //
|
|
575
|
+
* // size: "min" || "small" || "large" || "max",
|
|
577
576
|
* // },
|
|
578
577
|
* // },
|
|
579
578
|
* // webSearch: { // AgentWebSearchCapability
|
|
@@ -596,7 +595,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
596
595
|
* // agent: { // AgentCallCapability
|
|
597
596
|
* // agentId: "STRING_VALUE", // required
|
|
598
597
|
* // agentVersion: Number("int"),
|
|
599
|
-
* // agentDeployment: "STRING_VALUE",
|
|
600
598
|
* // access: {
|
|
601
599
|
* // visibility: "explicit" || "organization",
|
|
602
600
|
* // grants: [
|
|
@@ -627,7 +625,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
627
625
|
* // variant: "agent" || "service",
|
|
628
626
|
* // agent: "STRING_VALUE",
|
|
629
627
|
* // agentVersion: Number("int"),
|
|
630
|
-
* // agentDeployment: "STRING_VALUE",
|
|
631
628
|
* // service: "STRING_VALUE",
|
|
632
629
|
* // silent: true || false,
|
|
633
630
|
* // pipeline: { // AgentHandoverPipeline
|
|
@@ -656,7 +653,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
656
653
|
* // description: "STRING_VALUE",
|
|
657
654
|
* // id: "STRING_VALUE", // required
|
|
658
655
|
* // agentVersion: Number("int"),
|
|
659
|
-
* // agentDeployment: "STRING_VALUE",
|
|
660
656
|
* // annotations: [
|
|
661
657
|
* // {// Union: only one key present
|
|
662
658
|
* // tag: {
|
|
@@ -750,31 +746,10 @@ declare const UpdateAgentCommand_base: {
|
|
|
750
746
|
* // revision: Number("int"), // required
|
|
751
747
|
* // latestVersion: Number("int"),
|
|
752
748
|
* // draftBaseVersion: Number("int"),
|
|
753
|
-
* //
|
|
754
|
-
* // { //
|
|
755
|
-
* //
|
|
756
|
-
* //
|
|
757
|
-
* // type: "user" || "api_key" || "service", // required
|
|
758
|
-
* // id: "STRING_VALUE", // required
|
|
759
|
-
* // name: "STRING_VALUE",
|
|
760
|
-
* // },
|
|
761
|
-
* // updatedAt: "STRING_VALUE",
|
|
762
|
-
* // updatedBy: {
|
|
763
|
-
* // type: "user" || "api_key" || "service", // required
|
|
764
|
-
* // id: "STRING_VALUE", // required
|
|
765
|
-
* // name: "STRING_VALUE",
|
|
766
|
-
* // },
|
|
767
|
-
* // agentId: "STRING_VALUE", // required
|
|
768
|
-
* // name: "STRING_VALUE", // required
|
|
769
|
-
* // description: "STRING_VALUE",
|
|
770
|
-
* // status: "active" || "paused", // required
|
|
771
|
-
* // routing: [ // AgentDeploymentRoutesList // required
|
|
772
|
-
* // { // AgentDeploymentRoute
|
|
773
|
-
* // version: Number("int"), // required
|
|
774
|
-
* // percentage: Number("int"), // required
|
|
775
|
-
* // },
|
|
776
|
-
* // ],
|
|
777
|
-
* // revision: Number("int"), // required
|
|
749
|
+
* // deployment: [ // AgentDeploymentRoutesList
|
|
750
|
+
* // { // AgentDeploymentRoute
|
|
751
|
+
* // version: Number("int"), // required
|
|
752
|
+
* // percentage: Number("int"), // required
|
|
778
753
|
* // },
|
|
779
754
|
* // ],
|
|
780
755
|
* // },
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
export * from "./CompareAgentVersionsCommand";
|
|
2
2
|
export * from "./CreateAgentApiKeyCommand";
|
|
3
3
|
export * from "./CreateAgentCommand";
|
|
4
|
-
export * from "./CreateAgentDeploymentCommand";
|
|
5
4
|
export * from "./DeleteAgentApiKeyCommand";
|
|
6
5
|
export * from "./DeleteAgentCommand";
|
|
7
|
-
export * from "./DeleteAgentDeploymentCommand";
|
|
8
6
|
export * from "./GetAgentCommand";
|
|
9
7
|
export * from "./GetAgentDeploymentCommand";
|
|
10
8
|
export * from "./GetAgentVersionCommand";
|
|
11
9
|
export * from "./ListAgentApiKeysCommand";
|
|
12
|
-
export * from "./ListAgentDeploymentsCommand";
|
|
13
10
|
export * from "./ListAgentVersionsCommand";
|
|
14
11
|
export * from "./ListAgentsCommand";
|
|
15
12
|
export * from "./ListAgentsNamesCommand";
|
|
16
13
|
export * from "./PublishAgentVersionCommand";
|
|
14
|
+
export * from "./PutAgentDeploymentCommand";
|
|
15
|
+
export * from "./ResetAgentDeploymentCommand";
|
|
17
16
|
export * from "./RestoreAgentVersionToDraftCommand";
|
|
18
17
|
export * from "./UpdateAgentCommand";
|
|
19
|
-
export * from "./UpdateAgentDeploymentCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Unified agent platform
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* and wim-voicebots. Covers the agent lifecycle: draft editing, immutable versions,
|
|
8
|
-
* deployment traffic routing (rollback, canary) and API keys. The runtime lives in the
|
|
9
|
-
* per-channel services (wilma-assistant, wilma-chat, wilma-voice, wilma-workflows) and
|
|
10
|
-
* skills in wilma-skills. The company-wide audit trail lives in wilma-audit; evaluations
|
|
11
|
-
* in wilma-evaluations; observability in wilma-traces; analytics in wilma-analytics.
|
|
2
|
+
* Unified agent platform covering the agent lifecycle: draft editing, immutable
|
|
3
|
+
* published versions, deployment of new sessions across those versions and API keys.
|
|
4
|
+
* Each agent serves one or more channels (voice, chat, assistant or workflow) with
|
|
5
|
+
* per-channel settings; workflow agents have no delivery channel and run as
|
|
6
|
+
* background tasks — invoked by other agents, by automations or over the API.
|
|
12
7
|
*
|
|
13
8
|
* @packageDocumentation
|
|
14
9
|
*/
|