@wildix/wilma-agents-client 1.0.1 → 1.0.2
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 +12 -20
- package/dist-cjs/commands/{DeleteGuardrailCommand.js → CreateAgentDeploymentCommand.js} +6 -6
- package/dist-cjs/commands/{ExecuteAgentCommand.js → DeleteAgentDeploymentCommand.js} +6 -6
- package/dist-cjs/commands/{CreateGuardrailCommand.js → GetAgentDeploymentCommand.js} +6 -6
- package/dist-cjs/commands/{DeleteAgentAliasCommand.js → ListAgentDeploymentsCommand.js} +6 -6
- package/dist-cjs/commands/RestoreAgentVersionToDraftCommand.js +20 -0
- package/dist-cjs/commands/UpdateAgentDeploymentCommand.js +20 -0
- package/dist-cjs/commands/index.js +6 -10
- package/dist-cjs/models/enums.js +36 -81
- package/dist-cjs/models/errors.js +51 -36
- package/dist-cjs/schemas/schemas_0.js +358 -539
- package/dist-es/WilmaAgents.js +12 -20
- package/dist-es/commands/{DeleteAgentAliasCommand.js → CreateAgentDeploymentCommand.js} +5 -5
- package/dist-es/commands/{ExecuteAgentCommand.js → DeleteAgentDeploymentCommand.js} +5 -5
- package/dist-es/commands/{CreateGuardrailCommand.js → GetAgentDeploymentCommand.js} +5 -5
- package/dist-es/commands/{DeleteGuardrailCommand.js → ListAgentDeploymentsCommand.js} +5 -5
- package/dist-es/commands/RestoreAgentVersionToDraftCommand.js +16 -0
- package/dist-es/commands/UpdateAgentDeploymentCommand.js +16 -0
- package/dist-es/commands/index.js +6 -10
- package/dist-es/models/enums.js +35 -80
- package/dist-es/models/errors.js +42 -28
- package/dist-es/schemas/schemas_0.js +356 -536
- package/dist-types/WilmaAgents.d.ts +42 -71
- package/dist-types/WilmaAgentsClient.d.ts +16 -19
- package/dist-types/commands/CompareAgentVersionsCommand.d.ts +5 -5
- package/dist-types/commands/CreateAgentApiKeyCommand.d.ts +1 -3
- package/dist-types/commands/CreateAgentCommand.d.ts +451 -324
- package/dist-types/commands/CreateAgentDeploymentCommand.d.ts +116 -0
- package/dist-types/commands/DeleteAgentApiKeyCommand.d.ts +1 -3
- package/dist-types/commands/DeleteAgentCommand.d.ts +5 -4
- package/dist-types/commands/DeleteAgentDeploymentCommand.d.ts +83 -0
- package/dist-types/commands/GetAgentCommand.d.ts +237 -170
- package/dist-types/commands/GetAgentDeploymentCommand.d.ts +106 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +219 -158
- package/dist-types/commands/ListAgentApiKeysCommand.d.ts +1 -3
- package/dist-types/commands/ListAgentDeploymentsCommand.d.ts +105 -0
- package/dist-types/commands/ListAgentVersionsCommand.d.ts +8 -7
- package/dist-types/commands/ListAgentsCommand.d.ts +241 -174
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +6 -8
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +221 -159
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +460 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +451 -324
- package/dist-types/commands/UpdateAgentDeploymentCommand.d.ts +120 -0
- package/dist-types/commands/index.d.ts +6 -10
- package/dist-types/index.d.ts +8 -7
- package/dist-types/models/enums.d.ts +126 -161
- package/dist-types/models/errors.d.ts +35 -22
- package/dist-types/models/models_0.d.ts +695 -741
- package/dist-types/schemas/schemas_0.d.ts +41 -61
- package/package.json +2 -2
- package/dist-cjs/commands/GetGuardrailCommand.js +0 -20
- package/dist-cjs/commands/ListAgentAliasesCommand.js +0 -20
- package/dist-cjs/commands/ListAuditRecordsCommand.js +0 -20
- package/dist-cjs/commands/ListGuardrailsCommand.js +0 -20
- package/dist-cjs/commands/PutAgentAliasCommand.js +0 -20
- package/dist-cjs/commands/UpdateGuardrailCommand.js +0 -20
- package/dist-es/commands/GetGuardrailCommand.js +0 -16
- package/dist-es/commands/ListAgentAliasesCommand.js +0 -16
- package/dist-es/commands/ListAuditRecordsCommand.js +0 -16
- package/dist-es/commands/ListGuardrailsCommand.js +0 -16
- package/dist-es/commands/PutAgentAliasCommand.js +0 -16
- package/dist-es/commands/UpdateGuardrailCommand.js +0 -16
- package/dist-types/commands/CreateGuardrailCommand.d.ts +0 -172
- package/dist-types/commands/DeleteAgentAliasCommand.d.ts +0 -82
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +0 -80
- package/dist-types/commands/ExecuteAgentCommand.d.ts +0 -112
- package/dist-types/commands/GetGuardrailCommand.d.ts +0 -135
- package/dist-types/commands/ListAgentAliasesCommand.d.ts +0 -99
- package/dist-types/commands/ListAuditRecordsCommand.d.ts +0 -109
- package/dist-types/commands/ListGuardrailsCommand.d.ts +0 -137
- package/dist-types/commands/PutAgentAliasCommand.d.ts +0 -107
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +0 -175
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UpdateAgentDeploymentInput, UpdateAgentDeploymentOutput } 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 UpdateAgentDeploymentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAgentDeploymentCommandInput extends UpdateAgentDeploymentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAgentDeploymentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAgentDeploymentCommandOutput extends UpdateAgentDeploymentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateAgentDeploymentCommand_base: {
|
|
25
|
+
new (input: UpdateAgentDeploymentCommandInput): import("@smithy/core/client").CommandImpl<UpdateAgentDeploymentCommandInput, UpdateAgentDeploymentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateAgentDeploymentCommandInput): import("@smithy/core/client").CommandImpl<UpdateAgentDeploymentCommandInput, UpdateAgentDeploymentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Atomically updates deployment status or traffic allocation for new sessions. Existing sessions remain pinned to their resolved version.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaAgentsClient, UpdateAgentDeploymentCommand } from "@wildix/wilma-agents-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaAgentsClient, UpdateAgentDeploymentCommand } = 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 = { // UpdateAgentDeploymentInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* agentId: "STRING_VALUE", // required
|
|
42
|
+
* deploymentName: "STRING_VALUE", // required
|
|
43
|
+
* description: "STRING_VALUE",
|
|
44
|
+
* status: "active" || "paused", // required
|
|
45
|
+
* routing: [ // AgentDeploymentRoutesList // required
|
|
46
|
+
* { // AgentDeploymentRoute
|
|
47
|
+
* version: "STRING_VALUE", // required
|
|
48
|
+
* percentage: Number("int"), // required
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
51
|
+
* revision: Number("int"), // required
|
|
52
|
+
* };
|
|
53
|
+
* const command = new UpdateAgentDeploymentCommand(input);
|
|
54
|
+
* const response = await client.send(command);
|
|
55
|
+
* // { // UpdateAgentDeploymentOutput
|
|
56
|
+
* // deployment: { // AgentDeployment
|
|
57
|
+
* // createdAt: "STRING_VALUE", // required
|
|
58
|
+
* // createdBy: { // Actor
|
|
59
|
+
* // type: "user" || "api_key" || "service", // required
|
|
60
|
+
* // id: "STRING_VALUE", // required
|
|
61
|
+
* // name: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // updatedAt: "STRING_VALUE",
|
|
64
|
+
* // updatedBy: {
|
|
65
|
+
* // type: "user" || "api_key" || "service", // required
|
|
66
|
+
* // id: "STRING_VALUE", // required
|
|
67
|
+
* // name: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // agentId: "STRING_VALUE", // required
|
|
70
|
+
* // name: "STRING_VALUE", // required
|
|
71
|
+
* // description: "STRING_VALUE",
|
|
72
|
+
* // status: "active" || "paused", // required
|
|
73
|
+
* // routing: [ // AgentDeploymentRoutesList // required
|
|
74
|
+
* // { // AgentDeploymentRoute
|
|
75
|
+
* // version: "STRING_VALUE", // required
|
|
76
|
+
* // percentage: Number("int"), // required
|
|
77
|
+
* // },
|
|
78
|
+
* // ],
|
|
79
|
+
* // revision: Number("int"), // required
|
|
80
|
+
* // },
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param UpdateAgentDeploymentCommandInput - {@link UpdateAgentDeploymentCommandInput}
|
|
86
|
+
* @returns {@link UpdateAgentDeploymentCommandOutput}
|
|
87
|
+
* @see {@link UpdateAgentDeploymentCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link UpdateAgentDeploymentCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link AgentNotFoundException} (client fault)
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link AgentVersionNotFoundException} (client fault)
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link AgentDeploymentNotFoundException} (client fault)
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link RevisionConflictException} (client fault)
|
|
98
|
+
* The resource was modified concurrently; re-read it and retry with the latest revision.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ValidationException} (client fault)
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link WilmaAgentsServiceException}
|
|
103
|
+
* <p>Base exception class for all service exceptions from WilmaAgents service.</p>
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export declare class UpdateAgentDeploymentCommand extends UpdateAgentDeploymentCommand_base {
|
|
109
|
+
/** @internal type navigation helper, not in runtime. */
|
|
110
|
+
protected static __types: {
|
|
111
|
+
api: {
|
|
112
|
+
input: UpdateAgentDeploymentInput;
|
|
113
|
+
output: UpdateAgentDeploymentOutput;
|
|
114
|
+
};
|
|
115
|
+
sdk: {
|
|
116
|
+
input: UpdateAgentDeploymentCommandInput;
|
|
117
|
+
output: UpdateAgentDeploymentCommandOutput;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
export * from "./CompareAgentVersionsCommand";
|
|
2
2
|
export * from "./CreateAgentApiKeyCommand";
|
|
3
3
|
export * from "./CreateAgentCommand";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./DeleteAgentAliasCommand";
|
|
4
|
+
export * from "./CreateAgentDeploymentCommand";
|
|
6
5
|
export * from "./DeleteAgentApiKeyCommand";
|
|
7
6
|
export * from "./DeleteAgentCommand";
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./ExecuteAgentCommand";
|
|
7
|
+
export * from "./DeleteAgentDeploymentCommand";
|
|
10
8
|
export * from "./GetAgentCommand";
|
|
9
|
+
export * from "./GetAgentDeploymentCommand";
|
|
11
10
|
export * from "./GetAgentVersionCommand";
|
|
12
|
-
export * from "./GetGuardrailCommand";
|
|
13
|
-
export * from "./ListAgentAliasesCommand";
|
|
14
11
|
export * from "./ListAgentApiKeysCommand";
|
|
12
|
+
export * from "./ListAgentDeploymentsCommand";
|
|
15
13
|
export * from "./ListAgentVersionsCommand";
|
|
16
14
|
export * from "./ListAgentsCommand";
|
|
17
15
|
export * from "./ListAgentsNamesCommand";
|
|
18
|
-
export * from "./ListAuditRecordsCommand";
|
|
19
|
-
export * from "./ListGuardrailsCommand";
|
|
20
16
|
export * from "./PublishAgentVersionCommand";
|
|
21
|
-
export * from "./
|
|
17
|
+
export * from "./RestoreAgentVersionToDraftCommand";
|
|
22
18
|
export * from "./UpdateAgentCommand";
|
|
23
|
-
export * from "./
|
|
19
|
+
export * from "./UpdateAgentDeploymentCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Unified agent platform.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
2
|
+
* Unified agent platform. Each agent has a single type (voice, chat, assistant or
|
|
3
|
+
* autonomous) carrying the matching channel settings; autonomous agents have no
|
|
4
|
+
* delivery channel and are invoked by other agents or as automation triggers.
|
|
5
|
+
* Successor of the agent/bot configuration APIs of wim-wilma, xbees-users bots
|
|
6
|
+
* and wim-voicebots. Covers the agent lifecycle: draft editing, immutable versions,
|
|
7
|
+
* deployment traffic routing (rollback, canary) and API keys. Durable runtime sessions live in
|
|
8
|
+
* the companion wilma-sessions service and skills in wilma-skills. The company-wide
|
|
9
|
+
* audit trail lives in wilma-audit; evaluations in wilma-evaluations; observability in
|
|
9
10
|
* wilma-traces; analytics in wilma-analytics.
|
|
10
11
|
*
|
|
11
12
|
* @packageDocumentation
|
|
@@ -1,35 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @public
|
|
3
|
-
* @enum
|
|
4
|
-
*/
|
|
5
|
-
export declare const ActorType: {
|
|
6
|
-
readonly API_KEY: "api_key";
|
|
7
|
-
readonly SERVICE: "service";
|
|
8
|
-
readonly USER: "user";
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export type ActorType = (typeof ActorType)[keyof typeof ActorType];
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
* @enum
|
|
17
|
-
*/
|
|
18
|
-
export declare const AgentGrantPermission: {
|
|
19
|
-
readonly EDIT: "edit";
|
|
20
|
-
readonly USE: "use";
|
|
21
|
-
readonly VIEW: "view";
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
export type AgentGrantPermission = (typeof AgentGrantPermission)[keyof typeof AgentGrantPermission];
|
|
27
1
|
/**
|
|
28
2
|
* @public
|
|
29
3
|
* @enum
|
|
30
4
|
*/
|
|
31
5
|
export declare const AgentVisibility: {
|
|
6
|
+
/**
|
|
7
|
+
* Only the users and groups listed in `grants` can use the agent.
|
|
8
|
+
*/
|
|
32
9
|
readonly EXPLICIT: "explicit";
|
|
10
|
+
/**
|
|
11
|
+
* Everyone in the organization can use the agent.
|
|
12
|
+
*/
|
|
33
13
|
readonly ORGANIZATION: "organization";
|
|
34
14
|
};
|
|
35
15
|
/**
|
|
@@ -40,262 +20,247 @@ export type AgentVisibility = (typeof AgentVisibility)[keyof typeof AgentVisibil
|
|
|
40
20
|
* @public
|
|
41
21
|
* @enum
|
|
42
22
|
*/
|
|
43
|
-
export declare const
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @public
|
|
49
|
-
*/
|
|
50
|
-
export type SpeechProvider = (typeof SpeechProvider)[keyof typeof SpeechProvider];
|
|
51
|
-
/**
|
|
52
|
-
* @public
|
|
53
|
-
* @enum
|
|
54
|
-
*/
|
|
55
|
-
export declare const WebhookMethod: {
|
|
56
|
-
readonly DELETE: "delete";
|
|
57
|
-
readonly GET: "get";
|
|
58
|
-
readonly PATCH: "patch";
|
|
59
|
-
readonly POST: "post";
|
|
60
|
-
readonly PUT: "put";
|
|
23
|
+
export declare const ActorType: {
|
|
24
|
+
readonly API_KEY: "api_key";
|
|
25
|
+
readonly SERVICE: "service";
|
|
26
|
+
readonly USER: "user";
|
|
61
27
|
};
|
|
62
28
|
/**
|
|
63
29
|
* @public
|
|
64
30
|
*/
|
|
65
|
-
export type
|
|
31
|
+
export type ActorType = (typeof ActorType)[keyof typeof ActorType];
|
|
66
32
|
/**
|
|
67
33
|
* @public
|
|
68
34
|
* @enum
|
|
69
35
|
*/
|
|
70
|
-
export declare const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
36
|
+
export declare const AgentDeploymentStatus: {
|
|
37
|
+
/**
|
|
38
|
+
* The deployment accepts new sessions.
|
|
39
|
+
*/
|
|
40
|
+
readonly ACTIVE: "active";
|
|
41
|
+
/**
|
|
42
|
+
* The deployment rejects new sessions without changing its routing configuration.
|
|
43
|
+
*/
|
|
44
|
+
readonly PAUSED: "paused";
|
|
74
45
|
};
|
|
75
46
|
/**
|
|
76
47
|
* @public
|
|
77
48
|
*/
|
|
78
|
-
export type
|
|
49
|
+
export type AgentDeploymentStatus = (typeof AgentDeploymentStatus)[keyof typeof AgentDeploymentStatus];
|
|
79
50
|
/**
|
|
80
51
|
* @public
|
|
81
52
|
* @enum
|
|
82
53
|
*/
|
|
83
|
-
export declare const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
54
|
+
export declare const AgentHandoverPipelineType: {
|
|
55
|
+
/**
|
|
56
|
+
* Hand over immediately without a model reply.
|
|
57
|
+
*/
|
|
58
|
+
readonly HANDOVER: "handover";
|
|
59
|
+
/**
|
|
60
|
+
* Reply to the user, then hand over.
|
|
61
|
+
*/
|
|
62
|
+
readonly REPLY_AND_HANDOVER: "reply_and_handover";
|
|
63
|
+
/**
|
|
64
|
+
* Reply using pipeline instructions, then hand over.
|
|
65
|
+
*/
|
|
66
|
+
readonly REPLY_INSTRUCTED_AND_HANDOVER: "reply_instructed_and_handover";
|
|
87
67
|
};
|
|
88
68
|
/**
|
|
89
69
|
* @public
|
|
90
70
|
*/
|
|
91
|
-
export type
|
|
71
|
+
export type AgentHandoverPipelineType = (typeof AgentHandoverPipelineType)[keyof typeof AgentHandoverPipelineType];
|
|
92
72
|
/**
|
|
93
73
|
* @public
|
|
94
74
|
* @enum
|
|
95
75
|
*/
|
|
96
|
-
export declare const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
readonly
|
|
101
|
-
|
|
76
|
+
export declare const AgentHandoverVariant: {
|
|
77
|
+
/**
|
|
78
|
+
* Hand over to another Wilma agent.
|
|
79
|
+
*/
|
|
80
|
+
readonly AGENT: "agent";
|
|
81
|
+
/**
|
|
82
|
+
* Hand over to an x-bees service desk.
|
|
83
|
+
*/
|
|
84
|
+
readonly SERVICE: "service";
|
|
102
85
|
};
|
|
103
86
|
/**
|
|
104
87
|
* @public
|
|
105
88
|
*/
|
|
106
|
-
export type
|
|
89
|
+
export type AgentHandoverVariant = (typeof AgentHandoverVariant)[keyof typeof AgentHandoverVariant];
|
|
107
90
|
/**
|
|
108
91
|
* @public
|
|
109
92
|
* @enum
|
|
110
93
|
*/
|
|
111
|
-
export declare const
|
|
94
|
+
export declare const AgentHangupPipelineType: {
|
|
112
95
|
/**
|
|
113
|
-
*
|
|
96
|
+
* Hang up immediately without a model reply.
|
|
114
97
|
*/
|
|
115
|
-
readonly
|
|
98
|
+
readonly HANGUP: "hangup";
|
|
116
99
|
/**
|
|
117
|
-
*
|
|
100
|
+
* Reply to the caller, then hang up.
|
|
118
101
|
*/
|
|
119
|
-
readonly
|
|
102
|
+
readonly REPLY_AND_HANGUP: "reply_and_hangup";
|
|
120
103
|
/**
|
|
121
|
-
*
|
|
104
|
+
* Reply using pipeline instructions, then hang up.
|
|
122
105
|
*/
|
|
123
|
-
readonly
|
|
106
|
+
readonly REPLY_INSTRUCTED_AND_HANGUP: "reply_instructed_and_hangup";
|
|
124
107
|
};
|
|
125
108
|
/**
|
|
126
109
|
* @public
|
|
127
110
|
*/
|
|
128
|
-
export type
|
|
111
|
+
export type AgentHangupPipelineType = (typeof AgentHangupPipelineType)[keyof typeof AgentHangupPipelineType];
|
|
129
112
|
/**
|
|
130
113
|
* @public
|
|
131
114
|
* @enum
|
|
132
115
|
*/
|
|
133
|
-
export declare const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
readonly AGENT: "agent";
|
|
138
|
-
/**
|
|
139
|
-
* Visible and downloadable by the end user.
|
|
140
|
-
*/
|
|
141
|
-
readonly USER: "user";
|
|
116
|
+
export declare const SandboxNetworkAccess: {
|
|
117
|
+
readonly ALL: "allow-all";
|
|
118
|
+
readonly ALLOWLIST: "allowlist";
|
|
119
|
+
readonly NONE: "deny-all";
|
|
142
120
|
};
|
|
143
121
|
/**
|
|
144
122
|
* @public
|
|
145
123
|
*/
|
|
146
|
-
export type
|
|
124
|
+
export type SandboxNetworkAccess = (typeof SandboxNetworkAccess)[keyof typeof SandboxNetworkAccess];
|
|
147
125
|
/**
|
|
148
126
|
* @public
|
|
149
127
|
* @enum
|
|
150
128
|
*/
|
|
151
|
-
export declare const
|
|
129
|
+
export declare const AgentToolPipelineType: {
|
|
152
130
|
/**
|
|
153
|
-
*
|
|
131
|
+
* Fire-and-forget; do not synthesize a reply.
|
|
154
132
|
*/
|
|
155
|
-
readonly
|
|
133
|
+
readonly ASYNC_REQUEST: "async_request";
|
|
156
134
|
/**
|
|
157
|
-
*
|
|
135
|
+
* Fire-and-forget; synthesize a reply using `instructions`.
|
|
158
136
|
*/
|
|
159
|
-
readonly
|
|
137
|
+
readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
|
|
160
138
|
/**
|
|
161
|
-
*
|
|
139
|
+
* Wait for the tool; do not synthesize a reply from its result.
|
|
162
140
|
*/
|
|
163
|
-
readonly
|
|
141
|
+
readonly BLOCKING_REQUEST: "blocking_request";
|
|
164
142
|
/**
|
|
165
|
-
*
|
|
143
|
+
* Wait for the tool; synthesize a reply from its result using `instructions`.
|
|
166
144
|
*/
|
|
167
|
-
readonly
|
|
145
|
+
readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
|
|
168
146
|
};
|
|
169
147
|
/**
|
|
170
148
|
* @public
|
|
171
149
|
*/
|
|
172
|
-
export type
|
|
150
|
+
export type AgentToolPipelineType = (typeof AgentToolPipelineType)[keyof typeof AgentToolPipelineType];
|
|
173
151
|
/**
|
|
174
152
|
* @public
|
|
175
153
|
* @enum
|
|
176
154
|
*/
|
|
177
|
-
export declare const
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
readonly
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
readonly
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
155
|
+
export declare const AgentTransferPipelineType: {
|
|
156
|
+
/**
|
|
157
|
+
* Reply to the caller, then transfer.
|
|
158
|
+
*/
|
|
159
|
+
readonly REPLY_AND_TRANSFER: "reply_and_transfer";
|
|
160
|
+
/**
|
|
161
|
+
* Reply using pipeline instructions, then transfer.
|
|
162
|
+
*/
|
|
163
|
+
readonly REPLY_INSTRUCTED_AND_TRANSFER: "reply_instructed_and_transfer";
|
|
164
|
+
/**
|
|
165
|
+
* Transfer immediately without a model reply.
|
|
166
|
+
*/
|
|
167
|
+
readonly TRANSFER: "transfer";
|
|
189
168
|
};
|
|
190
169
|
/**
|
|
191
170
|
* @public
|
|
192
171
|
*/
|
|
193
|
-
export type
|
|
172
|
+
export type AgentTransferPipelineType = (typeof AgentTransferPipelineType)[keyof typeof AgentTransferPipelineType];
|
|
194
173
|
/**
|
|
195
174
|
* @public
|
|
196
175
|
* @enum
|
|
197
176
|
*/
|
|
198
|
-
export declare const
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
readonly
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
readonly
|
|
207
|
-
|
|
208
|
-
|
|
177
|
+
export declare const AgentTransferVariant: {
|
|
178
|
+
/**
|
|
179
|
+
* Resolve the transfer target from the PBX directory using caller speech.
|
|
180
|
+
*/
|
|
181
|
+
readonly DIRECTORY: "directory";
|
|
182
|
+
/**
|
|
183
|
+
* Transfer to an extension chosen by the model at runtime.
|
|
184
|
+
*/
|
|
185
|
+
readonly DYNAMIC: "dynamic";
|
|
186
|
+
/**
|
|
187
|
+
* Transfer to a fixed PBX destination (context + extension).
|
|
188
|
+
*/
|
|
189
|
+
readonly PREDEFINED: "predefined";
|
|
209
190
|
};
|
|
210
191
|
/**
|
|
211
192
|
* @public
|
|
212
193
|
*/
|
|
213
|
-
export type
|
|
194
|
+
export type AgentTransferVariant = (typeof AgentTransferVariant)[keyof typeof AgentTransferVariant];
|
|
214
195
|
/**
|
|
215
196
|
* @public
|
|
216
197
|
* @enum
|
|
217
198
|
*/
|
|
218
|
-
export declare const
|
|
219
|
-
readonly
|
|
220
|
-
readonly
|
|
221
|
-
readonly
|
|
222
|
-
readonly PROMPT_ATTACK: "prompt_attack";
|
|
223
|
-
readonly SEXUAL: "sexual";
|
|
224
|
-
readonly VIOLENCE: "violence";
|
|
199
|
+
export declare const WebSearchContextSize: {
|
|
200
|
+
readonly HIGH: "high";
|
|
201
|
+
readonly LOW: "low";
|
|
202
|
+
readonly MEDIUM: "medium";
|
|
225
203
|
};
|
|
226
204
|
/**
|
|
227
205
|
* @public
|
|
228
206
|
*/
|
|
229
|
-
export type
|
|
207
|
+
export type WebSearchContextSize = (typeof WebSearchContextSize)[keyof typeof WebSearchContextSize];
|
|
230
208
|
/**
|
|
231
209
|
* @public
|
|
232
210
|
* @enum
|
|
233
211
|
*/
|
|
234
|
-
export declare const
|
|
235
|
-
readonly
|
|
236
|
-
readonly
|
|
237
|
-
readonly
|
|
238
|
-
readonly
|
|
212
|
+
export declare const AgentVariableType: {
|
|
213
|
+
readonly BOOLEAN: "boolean";
|
|
214
|
+
readonly NUMBER: "number";
|
|
215
|
+
readonly NUMBER_ARRAY: "number_array";
|
|
216
|
+
readonly STRING: "string";
|
|
217
|
+
readonly STRING_ARRAY: "string_array";
|
|
239
218
|
};
|
|
240
219
|
/**
|
|
241
220
|
* @public
|
|
242
221
|
*/
|
|
243
|
-
export type
|
|
222
|
+
export type AgentVariableType = (typeof AgentVariableType)[keyof typeof AgentVariableType];
|
|
244
223
|
/**
|
|
245
224
|
* @public
|
|
246
225
|
* @enum
|
|
247
226
|
*/
|
|
248
|
-
export declare const
|
|
227
|
+
export declare const AgentStatus: {
|
|
249
228
|
/**
|
|
250
|
-
*
|
|
229
|
+
* Has at least one published version.
|
|
251
230
|
*/
|
|
252
|
-
readonly
|
|
231
|
+
readonly ACTIVE: "active";
|
|
253
232
|
/**
|
|
254
|
-
*
|
|
233
|
+
* Being edited; never published yet.
|
|
255
234
|
*/
|
|
256
|
-
readonly
|
|
235
|
+
readonly DRAFT: "draft";
|
|
257
236
|
};
|
|
258
237
|
/**
|
|
259
238
|
* @public
|
|
260
239
|
*/
|
|
261
|
-
export type
|
|
240
|
+
export type AgentStatus = (typeof AgentStatus)[keyof typeof AgentStatus];
|
|
262
241
|
/**
|
|
263
242
|
* @public
|
|
264
243
|
* @enum
|
|
265
244
|
*/
|
|
266
|
-
export declare const
|
|
267
|
-
readonly ADDRESS: "address";
|
|
268
|
-
readonly CREDIT_CARD: "credit_card";
|
|
245
|
+
export declare const ChannelType: {
|
|
269
246
|
/**
|
|
270
|
-
*
|
|
247
|
+
* In-app assistant (x-bees / x-hoppers / Collaboration).
|
|
271
248
|
*/
|
|
272
|
-
readonly
|
|
273
|
-
readonly EMAIL: "email";
|
|
274
|
-
readonly IBAN: "iban";
|
|
275
|
-
readonly NAME: "name";
|
|
276
|
-
readonly NATIONAL_ID: "national_id";
|
|
277
|
-
readonly PASSWORD: "password";
|
|
278
|
-
readonly PHONE_NUMBER: "phone_number";
|
|
279
|
-
};
|
|
280
|
-
/**
|
|
281
|
-
* @public
|
|
282
|
-
*/
|
|
283
|
-
export type GuardrailPiiEntityType = (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
|
|
284
|
-
/**
|
|
285
|
-
* @public
|
|
286
|
-
* @enum
|
|
287
|
-
*/
|
|
288
|
-
export declare const GuardrailAction: {
|
|
249
|
+
readonly ASSISTANT: "assistant";
|
|
289
250
|
/**
|
|
290
|
-
*
|
|
251
|
+
* No delivery channel: invoked by other agents (call / delegation / handover) or as an automation trigger, and runnable over the API.
|
|
291
252
|
*/
|
|
292
|
-
readonly
|
|
253
|
+
readonly AUTONOMOUS: "autonomous";
|
|
293
254
|
/**
|
|
294
|
-
*
|
|
255
|
+
* Bot member of chat conversations.
|
|
295
256
|
*/
|
|
296
|
-
readonly
|
|
257
|
+
readonly CHAT: "chat";
|
|
258
|
+
/**
|
|
259
|
+
* Voice calls on the PBX.
|
|
260
|
+
*/
|
|
261
|
+
readonly VOICE: "voice";
|
|
297
262
|
};
|
|
298
263
|
/**
|
|
299
264
|
* @public
|
|
300
265
|
*/
|
|
301
|
-
export type
|
|
266
|
+
export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
|