@wildix/wilma-agents-client 1.0.33 → 1.0.34
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/models/enums.js +1 -6
- package/dist-cjs/schemas/schemas_0.js +18 -74
- package/dist-es/models/enums.js +0 -5
- package/dist-es/schemas/schemas_0.js +16 -72
- package/dist-types/commands/CreateAgentCommand.d.ts +10 -84
- package/dist-types/commands/GetAgentCommand.d.ts +5 -42
- package/dist-types/commands/GetAgentVersionCommand.d.ts +5 -42
- package/dist-types/commands/ListAgentsCommand.d.ts +6 -43
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +5 -3
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +5 -42
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +5 -42
- package/dist-types/commands/UpdateAgentCommand.d.ts +10 -84
- package/dist-types/models/enums.d.ts +0 -22
- package/dist-types/models/models_0.d.ts +3 -201
- package/dist-types/schemas/schemas_0.d.ts +0 -6
- package/package.json +2 -2
|
@@ -53,32 +53,6 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
53
53
|
* // channels: { // AgentChannels
|
|
54
54
|
* // voice: { // VoiceChannelSettings
|
|
55
55
|
* // greeting: "STRING_VALUE",
|
|
56
|
-
* // backgroundSound: { // VoiceBackgroundSoundSettings
|
|
57
|
-
* // enabled: true || false, // required
|
|
58
|
-
* // sound: "STRING_VALUE",
|
|
59
|
-
* // },
|
|
60
|
-
* // speech: { // VoiceSpeechSettings
|
|
61
|
-
* // languages: [ // VoiceLanguageList // required
|
|
62
|
-
* // { // VoiceLanguage
|
|
63
|
-
* // code: "STRING_VALUE", // required
|
|
64
|
-
* // voice: "STRING_VALUE", // required
|
|
65
|
-
* // greeting: "STRING_VALUE",
|
|
66
|
-
* // isDefault: true || false,
|
|
67
|
-
* // pronunciations: [ // VoicePronunciationList
|
|
68
|
-
* // { // VoicePronunciation
|
|
69
|
-
* // phrase: "STRING_VALUE", // required
|
|
70
|
-
* // as: "STRING_VALUE", // required
|
|
71
|
-
* // encoding: "alias" || "ipa",
|
|
72
|
-
* // },
|
|
73
|
-
* // ],
|
|
74
|
-
* // },
|
|
75
|
-
* // ],
|
|
76
|
-
* // greetEveryLanguage: true || false,
|
|
77
|
-
* // transcription: { // VoiceTranscriptionSettings
|
|
78
|
-
* // engine: "STRING_VALUE",
|
|
79
|
-
* // autoDetect: true || false,
|
|
80
|
-
* // },
|
|
81
|
-
* // },
|
|
82
56
|
* // interruptions: { // VoiceInterruptionSettings
|
|
83
57
|
* // enabled: true || false, // required
|
|
84
58
|
* // minWords: Number("int"),
|
|
@@ -143,7 +117,6 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
143
117
|
* // placeholder: "STRING_VALUE",
|
|
144
118
|
* // },
|
|
145
119
|
* // },
|
|
146
|
-
* // workflow: {},
|
|
147
120
|
* // },
|
|
148
121
|
* // engine: { // AgentEngine Union: only one key present
|
|
149
122
|
* // ai: { // AgentAiEngine
|
|
@@ -195,7 +168,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
195
168
|
* // prompt: "STRING_VALUE",
|
|
196
169
|
* // },
|
|
197
170
|
* // channels: [ // AgentCapabilityChannelsList
|
|
198
|
-
* // "voice" || "chat" || "assistant"
|
|
171
|
+
* // "voice" || "chat" || "assistant",
|
|
199
172
|
* // ],
|
|
200
173
|
* // annotations: [ // AgentToolAnnotationsList
|
|
201
174
|
* // { // AgentToolAnnotation Union: only one key present
|
|
@@ -225,7 +198,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
225
198
|
* // prompt: "STRING_VALUE",
|
|
226
199
|
* // },
|
|
227
200
|
* // channels: [
|
|
228
|
-
* // "voice" || "chat" || "assistant"
|
|
201
|
+
* // "voice" || "chat" || "assistant",
|
|
229
202
|
* // ],
|
|
230
203
|
* // annotations: [
|
|
231
204
|
* // {// Union: only one key present
|
|
@@ -248,7 +221,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
248
221
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
249
222
|
* // instructions: "STRING_VALUE",
|
|
250
223
|
* // channels: [
|
|
251
|
-
* // "voice" || "chat" || "assistant"
|
|
224
|
+
* // "voice" || "chat" || "assistant",
|
|
252
225
|
* // ],
|
|
253
226
|
* // annotations: [
|
|
254
227
|
* // {// Union: only one key present
|
|
@@ -296,7 +269,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
296
269
|
* // timezone: "STRING_VALUE",
|
|
297
270
|
* // },
|
|
298
271
|
* // channels: [
|
|
299
|
-
* // "voice" || "chat" || "assistant"
|
|
272
|
+
* // "voice" || "chat" || "assistant",
|
|
300
273
|
* // ],
|
|
301
274
|
* // },
|
|
302
275
|
* // webFetch: { // AgentWebFetchCapability
|
|
@@ -304,7 +277,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
304
277
|
* // "STRING_VALUE",
|
|
305
278
|
* // ],
|
|
306
279
|
* // channels: [
|
|
307
|
-
* // "voice" || "chat" || "assistant"
|
|
280
|
+
* // "voice" || "chat" || "assistant",
|
|
308
281
|
* // ],
|
|
309
282
|
* // },
|
|
310
283
|
* // agent: { // AgentCallCapability
|
|
@@ -835,16 +808,6 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
835
808
|
* // },
|
|
836
809
|
* // ],
|
|
837
810
|
* // model: "STRING_VALUE",
|
|
838
|
-
* // action: {// Union: only one key present
|
|
839
|
-
* // observe: {},
|
|
840
|
-
* // redact: {},
|
|
841
|
-
* // block: {
|
|
842
|
-
* // message: "STRING_VALUE",
|
|
843
|
-
* // },
|
|
844
|
-
* // end: {
|
|
845
|
-
* // message: "STRING_VALUE",
|
|
846
|
-
* // },
|
|
847
|
-
* // },
|
|
848
811
|
* // mode: "blocking" || "parallel",
|
|
849
812
|
* // errorMode: "open" || "closed",
|
|
850
813
|
* // window: "lastMessage" || "lastWithPrior",
|
|
@@ -44,32 +44,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
44
44
|
* channels: { // AgentChannels
|
|
45
45
|
* voice: { // VoiceChannelSettings
|
|
46
46
|
* greeting: "STRING_VALUE",
|
|
47
|
-
* backgroundSound: { // VoiceBackgroundSoundSettings
|
|
48
|
-
* enabled: true || false, // required
|
|
49
|
-
* sound: "STRING_VALUE",
|
|
50
|
-
* },
|
|
51
|
-
* speech: { // VoiceSpeechSettings
|
|
52
|
-
* languages: [ // VoiceLanguageList // required
|
|
53
|
-
* { // VoiceLanguage
|
|
54
|
-
* code: "STRING_VALUE", // required
|
|
55
|
-
* voice: "STRING_VALUE", // required
|
|
56
|
-
* greeting: "STRING_VALUE",
|
|
57
|
-
* isDefault: true || false,
|
|
58
|
-
* pronunciations: [ // VoicePronunciationList
|
|
59
|
-
* { // VoicePronunciation
|
|
60
|
-
* phrase: "STRING_VALUE", // required
|
|
61
|
-
* as: "STRING_VALUE", // required
|
|
62
|
-
* encoding: "alias" || "ipa",
|
|
63
|
-
* },
|
|
64
|
-
* ],
|
|
65
|
-
* },
|
|
66
|
-
* ],
|
|
67
|
-
* greetEveryLanguage: true || false,
|
|
68
|
-
* transcription: { // VoiceTranscriptionSettings
|
|
69
|
-
* engine: "STRING_VALUE",
|
|
70
|
-
* autoDetect: true || false,
|
|
71
|
-
* },
|
|
72
|
-
* },
|
|
73
47
|
* interruptions: { // VoiceInterruptionSettings
|
|
74
48
|
* enabled: true || false, // required
|
|
75
49
|
* minWords: Number("int"),
|
|
@@ -134,7 +108,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
134
108
|
* placeholder: "STRING_VALUE",
|
|
135
109
|
* },
|
|
136
110
|
* },
|
|
137
|
-
* workflow: {},
|
|
138
111
|
* },
|
|
139
112
|
* engine: { // AgentEngine Union: only one key present
|
|
140
113
|
* ai: { // AgentAiEngine
|
|
@@ -186,7 +159,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
186
159
|
* prompt: "STRING_VALUE",
|
|
187
160
|
* },
|
|
188
161
|
* channels: [ // AgentCapabilityChannelsList
|
|
189
|
-
* "voice" || "chat" || "assistant"
|
|
162
|
+
* "voice" || "chat" || "assistant",
|
|
190
163
|
* ],
|
|
191
164
|
* annotations: [ // AgentToolAnnotationsList
|
|
192
165
|
* { // AgentToolAnnotation Union: only one key present
|
|
@@ -216,7 +189,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
216
189
|
* prompt: "STRING_VALUE",
|
|
217
190
|
* },
|
|
218
191
|
* channels: [
|
|
219
|
-
* "voice" || "chat" || "assistant"
|
|
192
|
+
* "voice" || "chat" || "assistant",
|
|
220
193
|
* ],
|
|
221
194
|
* annotations: [
|
|
222
195
|
* {// Union: only one key present
|
|
@@ -239,7 +212,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
239
212
|
* knowledgeBaseId: "STRING_VALUE",
|
|
240
213
|
* instructions: "STRING_VALUE",
|
|
241
214
|
* channels: [
|
|
242
|
-
* "voice" || "chat" || "assistant"
|
|
215
|
+
* "voice" || "chat" || "assistant",
|
|
243
216
|
* ],
|
|
244
217
|
* annotations: [
|
|
245
218
|
* {// Union: only one key present
|
|
@@ -287,7 +260,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
287
260
|
* timezone: "STRING_VALUE",
|
|
288
261
|
* },
|
|
289
262
|
* channels: [
|
|
290
|
-
* "voice" || "chat" || "assistant"
|
|
263
|
+
* "voice" || "chat" || "assistant",
|
|
291
264
|
* ],
|
|
292
265
|
* },
|
|
293
266
|
* webFetch: { // AgentWebFetchCapability
|
|
@@ -295,7 +268,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
295
268
|
* "STRING_VALUE",
|
|
296
269
|
* ],
|
|
297
270
|
* channels: [
|
|
298
|
-
* "voice" || "chat" || "assistant"
|
|
271
|
+
* "voice" || "chat" || "assistant",
|
|
299
272
|
* ],
|
|
300
273
|
* },
|
|
301
274
|
* agent: { // AgentCallCapability
|
|
@@ -826,16 +799,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
826
799
|
* },
|
|
827
800
|
* ],
|
|
828
801
|
* model: "STRING_VALUE",
|
|
829
|
-
* action: {// Union: only one key present
|
|
830
|
-
* observe: {},
|
|
831
|
-
* redact: {},
|
|
832
|
-
* block: {
|
|
833
|
-
* message: "STRING_VALUE",
|
|
834
|
-
* },
|
|
835
|
-
* end: {
|
|
836
|
-
* message: "STRING_VALUE",
|
|
837
|
-
* },
|
|
838
|
-
* },
|
|
839
802
|
* mode: "blocking" || "parallel",
|
|
840
803
|
* errorMode: "open" || "closed",
|
|
841
804
|
* window: "lastMessage" || "lastWithPrior",
|
|
@@ -893,32 +856,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
893
856
|
* // channels: { // AgentChannels
|
|
894
857
|
* // voice: { // VoiceChannelSettings
|
|
895
858
|
* // greeting: "STRING_VALUE",
|
|
896
|
-
* // backgroundSound: { // VoiceBackgroundSoundSettings
|
|
897
|
-
* // enabled: true || false, // required
|
|
898
|
-
* // sound: "STRING_VALUE",
|
|
899
|
-
* // },
|
|
900
|
-
* // speech: { // VoiceSpeechSettings
|
|
901
|
-
* // languages: [ // VoiceLanguageList // required
|
|
902
|
-
* // { // VoiceLanguage
|
|
903
|
-
* // code: "STRING_VALUE", // required
|
|
904
|
-
* // voice: "STRING_VALUE", // required
|
|
905
|
-
* // greeting: "STRING_VALUE",
|
|
906
|
-
* // isDefault: true || false,
|
|
907
|
-
* // pronunciations: [ // VoicePronunciationList
|
|
908
|
-
* // { // VoicePronunciation
|
|
909
|
-
* // phrase: "STRING_VALUE", // required
|
|
910
|
-
* // as: "STRING_VALUE", // required
|
|
911
|
-
* // encoding: "alias" || "ipa",
|
|
912
|
-
* // },
|
|
913
|
-
* // ],
|
|
914
|
-
* // },
|
|
915
|
-
* // ],
|
|
916
|
-
* // greetEveryLanguage: true || false,
|
|
917
|
-
* // transcription: { // VoiceTranscriptionSettings
|
|
918
|
-
* // engine: "STRING_VALUE",
|
|
919
|
-
* // autoDetect: true || false,
|
|
920
|
-
* // },
|
|
921
|
-
* // },
|
|
922
859
|
* // interruptions: { // VoiceInterruptionSettings
|
|
923
860
|
* // enabled: true || false, // required
|
|
924
861
|
* // minWords: Number("int"),
|
|
@@ -983,7 +920,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
983
920
|
* // placeholder: "STRING_VALUE",
|
|
984
921
|
* // },
|
|
985
922
|
* // },
|
|
986
|
-
* // workflow: {},
|
|
987
923
|
* // },
|
|
988
924
|
* // engine: { // AgentEngine Union: only one key present
|
|
989
925
|
* // ai: { // AgentAiEngine
|
|
@@ -1035,7 +971,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1035
971
|
* // prompt: "STRING_VALUE",
|
|
1036
972
|
* // },
|
|
1037
973
|
* // channels: [ // AgentCapabilityChannelsList
|
|
1038
|
-
* // "voice" || "chat" || "assistant"
|
|
974
|
+
* // "voice" || "chat" || "assistant",
|
|
1039
975
|
* // ],
|
|
1040
976
|
* // annotations: [ // AgentToolAnnotationsList
|
|
1041
977
|
* // { // AgentToolAnnotation Union: only one key present
|
|
@@ -1065,7 +1001,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1065
1001
|
* // prompt: "STRING_VALUE",
|
|
1066
1002
|
* // },
|
|
1067
1003
|
* // channels: [
|
|
1068
|
-
* // "voice" || "chat" || "assistant"
|
|
1004
|
+
* // "voice" || "chat" || "assistant",
|
|
1069
1005
|
* // ],
|
|
1070
1006
|
* // annotations: [
|
|
1071
1007
|
* // {// Union: only one key present
|
|
@@ -1088,7 +1024,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1088
1024
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1089
1025
|
* // instructions: "STRING_VALUE",
|
|
1090
1026
|
* // channels: [
|
|
1091
|
-
* // "voice" || "chat" || "assistant"
|
|
1027
|
+
* // "voice" || "chat" || "assistant",
|
|
1092
1028
|
* // ],
|
|
1093
1029
|
* // annotations: [
|
|
1094
1030
|
* // {// Union: only one key present
|
|
@@ -1136,7 +1072,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1136
1072
|
* // timezone: "STRING_VALUE",
|
|
1137
1073
|
* // },
|
|
1138
1074
|
* // channels: [
|
|
1139
|
-
* // "voice" || "chat" || "assistant"
|
|
1075
|
+
* // "voice" || "chat" || "assistant",
|
|
1140
1076
|
* // ],
|
|
1141
1077
|
* // },
|
|
1142
1078
|
* // webFetch: { // AgentWebFetchCapability
|
|
@@ -1144,7 +1080,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1144
1080
|
* // "STRING_VALUE",
|
|
1145
1081
|
* // ],
|
|
1146
1082
|
* // channels: [
|
|
1147
|
-
* // "voice" || "chat" || "assistant"
|
|
1083
|
+
* // "voice" || "chat" || "assistant",
|
|
1148
1084
|
* // ],
|
|
1149
1085
|
* // },
|
|
1150
1086
|
* // agent: { // AgentCallCapability
|
|
@@ -1675,16 +1611,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
1675
1611
|
* // },
|
|
1676
1612
|
* // ],
|
|
1677
1613
|
* // model: "STRING_VALUE",
|
|
1678
|
-
* // action: {// Union: only one key present
|
|
1679
|
-
* // observe: {},
|
|
1680
|
-
* // redact: {},
|
|
1681
|
-
* // block: {
|
|
1682
|
-
* // message: "STRING_VALUE",
|
|
1683
|
-
* // },
|
|
1684
|
-
* // end: {
|
|
1685
|
-
* // message: "STRING_VALUE",
|
|
1686
|
-
* // },
|
|
1687
|
-
* // },
|
|
1688
1614
|
* // mode: "blocking" || "parallel",
|
|
1689
1615
|
* // errorMode: "open" || "closed",
|
|
1690
1616
|
* // window: "lastMessage" || "lastWithPrior",
|
|
@@ -20,24 +20,6 @@ export declare const AgentVisibility: {
|
|
|
20
20
|
* @public
|
|
21
21
|
*/
|
|
22
22
|
export type AgentVisibility = (typeof AgentVisibility)[keyof typeof AgentVisibility];
|
|
23
|
-
/**
|
|
24
|
-
* @public
|
|
25
|
-
* @enum
|
|
26
|
-
*/
|
|
27
|
-
export declare const VoicePronunciationEncoding: {
|
|
28
|
-
/**
|
|
29
|
-
* A respelling substituted into the text before it reaches the provider. The only encoding version 1 applies.
|
|
30
|
-
*/
|
|
31
|
-
readonly ALIAS: "alias";
|
|
32
|
-
/**
|
|
33
|
-
* Phonetic transcription. Declared so IPA can be enabled per provider later; ignored by the runtime today.
|
|
34
|
-
*/
|
|
35
|
-
readonly IPA: "ipa";
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
|
-
export type VoicePronunciationEncoding = (typeof VoicePronunciationEncoding)[keyof typeof VoicePronunciationEncoding];
|
|
41
23
|
/**
|
|
42
24
|
* @public
|
|
43
25
|
* @enum
|
|
@@ -68,10 +50,6 @@ export declare const ChannelType: {
|
|
|
68
50
|
* Voice calls on the PBX.
|
|
69
51
|
*/
|
|
70
52
|
readonly VOICE: "voice";
|
|
71
|
-
/**
|
|
72
|
-
* No delivery channel: runs as background tasks — invoked by other agents (call / delegation / handover), by automations or over the API.
|
|
73
|
-
*/
|
|
74
|
-
readonly WORKFLOW: "workflow";
|
|
75
53
|
};
|
|
76
54
|
/**
|
|
77
55
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { ActorType, AgentGuardrailErrorMode, AgentGuardrailMode, AgentGuardrailPreset, AgentGuardrailSensitivity, AgentGuardrailWindow, AgentHandoverPipelineType, AgentHandoverVariant, AgentHangupPipelineType, AgentStatus, AgentToolPipelineType, AgentTransferPipelineType, AgentTransferVariant, AgentVariableType, AgentVisibility, AgentWorkflowEntryBehavior, AgentWorkflowFailureKind, AgentWorkflowLayout, AgentWorkflowMessageButtonVariant, ChannelType, SandboxNetworkAccess, SandboxSize,
|
|
2
|
+
import type { ActorType, AgentGuardrailErrorMode, AgentGuardrailMode, AgentGuardrailPreset, AgentGuardrailSensitivity, AgentGuardrailWindow, AgentHandoverPipelineType, AgentHandoverVariant, AgentHangupPipelineType, AgentStatus, AgentToolPipelineType, AgentTransferPipelineType, AgentTransferVariant, AgentVariableType, AgentVisibility, AgentWorkflowEntryBehavior, AgentWorkflowFailureKind, AgentWorkflowLayout, AgentWorkflowMessageButtonVariant, ChannelType, SandboxNetworkAccess, SandboxSize, WebSearchContextSize } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* A user or group that access is granted to.
|
|
5
5
|
* @public
|
|
@@ -140,29 +140,6 @@ export interface ChatChannelSettings {
|
|
|
140
140
|
*/
|
|
141
141
|
discoverable?: boolean | undefined;
|
|
142
142
|
}
|
|
143
|
-
/**
|
|
144
|
-
* Ambient background audio played under the call.
|
|
145
|
-
*
|
|
146
|
-
* A SETTINGS OBJECT like `interruptions` and `endCall`, rather than a loose name on the channel:
|
|
147
|
-
* it is one switchable call behaviour, it reads the same way as its siblings, and the volume and
|
|
148
|
-
* fade controls the console will want next have somewhere to go.
|
|
149
|
-
*
|
|
150
|
-
* ABSENT MEANS OFF — a bot that never touches it behaves exactly as every call did before this
|
|
151
|
-
* setting existed, and the PBX needs no new case.
|
|
152
|
-
* @public
|
|
153
|
-
*/
|
|
154
|
-
export interface VoiceBackgroundSoundSettings {
|
|
155
|
-
/**
|
|
156
|
-
* Whether ambient background audio plays under the call.
|
|
157
|
-
* @public
|
|
158
|
-
*/
|
|
159
|
-
enabled: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Music-on-hold class the PBX plays. Absent with `enabled` true leaves the choice of class to the PBX.
|
|
162
|
-
* @public
|
|
163
|
-
*/
|
|
164
|
-
sound?: string | undefined;
|
|
165
|
-
}
|
|
166
143
|
/**
|
|
167
144
|
* Caller context injected into the model prompt.
|
|
168
145
|
* @public
|
|
@@ -305,150 +282,6 @@ export interface VoiceSilenceTimeoutSettings {
|
|
|
305
282
|
seconds: number;
|
|
306
283
|
action: VoiceTerminateAction;
|
|
307
284
|
}
|
|
308
|
-
/**
|
|
309
|
-
* A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
|
|
310
|
-
* respelled differently for an Italian and a German voice, so one list shared ACROSS languages
|
|
311
|
-
* would fight itself. That is why the rules hang off the language and nowhere else — there is no
|
|
312
|
-
* company-wide dictionary above them to inherit from, or to disagree with.
|
|
313
|
-
* @public
|
|
314
|
-
*/
|
|
315
|
-
export interface VoicePronunciation {
|
|
316
|
-
/**
|
|
317
|
-
* The phrase as it appears in the text, e.g. 'Wildix'. Bounded because every rule is compiled into ONE regular expression — see the list below.
|
|
318
|
-
* @public
|
|
319
|
-
*/
|
|
320
|
-
phrase: string;
|
|
321
|
-
/**
|
|
322
|
-
* Respelling (ALIAS) or phonetic transcription (IPA), e.g. 'Wil-dix'.
|
|
323
|
-
* @public
|
|
324
|
-
*/
|
|
325
|
-
as: string;
|
|
326
|
-
/**
|
|
327
|
-
* Defaults to ALIAS.
|
|
328
|
-
* @public
|
|
329
|
-
*/
|
|
330
|
-
encoding?: VoicePronunciationEncoding | undefined;
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* One configured language: its voice, its initial phrase and its pronunciation rules.
|
|
334
|
-
* @public
|
|
335
|
-
*/
|
|
336
|
-
export interface VoiceLanguage {
|
|
337
|
-
/**
|
|
338
|
-
* BCP-47 code with locale, e.g. 'en-US', 'it-IT'.
|
|
339
|
-
* @public
|
|
340
|
-
*/
|
|
341
|
-
code: string;
|
|
342
|
-
/**
|
|
343
|
-
* Voice this language speaks with, as a URI — provider, voice id, synthesis parameters and,
|
|
344
|
-
* where the company uses its own provider account, an `apiKey=secrets:\{secretId\}` reference.
|
|
345
|
-
* See VoiceUri.
|
|
346
|
-
*
|
|
347
|
-
* PER LANGUAGE, and that is the whole reason the member is here rather than on the settings
|
|
348
|
-
* above: provider quality is not uniform across languages, a voice id belongs to exactly one
|
|
349
|
-
* provider, and a bot-wide provider made changing it invalidate every configured voice at
|
|
350
|
-
* once.
|
|
351
|
-
* @public
|
|
352
|
-
*/
|
|
353
|
-
voice: string;
|
|
354
|
-
/**
|
|
355
|
-
* Initial phrase spoken when the call starts in this language. Absent or empty means
|
|
356
|
-
* the agent says nothing and waits — it does NOT fall back to VoiceChannelSettings.greeting,
|
|
357
|
-
* which would speak one language's text in another language's voice.
|
|
358
|
-
* @public
|
|
359
|
-
*/
|
|
360
|
-
greeting?: string | undefined;
|
|
361
|
-
/**
|
|
362
|
-
* Marks the language a caller hears when their own matches nothing configured.
|
|
363
|
-
*
|
|
364
|
-
* THE FULL RESOLUTION ORDER, since a client author reading only this contract cannot
|
|
365
|
-
* otherwise find it: an exact match on the call's language, then a match on its primary
|
|
366
|
-
* subtag (`fr` finds `fr-FR`), then the language marked here, then a language whose
|
|
367
|
-
* primary subtag is `en`, then the first entry in the list.
|
|
368
|
-
*
|
|
369
|
-
* Marked is consulted BEFORE the English step, so a record with none marked resolves
|
|
370
|
-
* exactly as it did before this member existed. English is deliberate rather than
|
|
371
|
-
* arbitrary — it is the language a caller the agent was not built for is likeliest to
|
|
372
|
-
* understand — and the last step exists only to keep the rule total, which is why list
|
|
373
|
-
* order should not be treated as configuration.
|
|
374
|
-
*
|
|
375
|
-
* At most one language may carry it. A record with two — reachable through the API or
|
|
376
|
-
* the CLI, where no form prevents it — resolves to the first marked one in list order,
|
|
377
|
-
* because refusing a call over configuration drift is worse than serving it and saying
|
|
378
|
-
* so in the trace.
|
|
379
|
-
* @public
|
|
380
|
-
*/
|
|
381
|
-
isDefault?: boolean | undefined;
|
|
382
|
-
/**
|
|
383
|
-
* The rules this language is spoken with. THE WHOLE SET rather than an override layer: an
|
|
384
|
-
* agent's respellings are stored here and read from here, so what this list says is what the
|
|
385
|
-
* caller hears.
|
|
386
|
-
*
|
|
387
|
-
* THERE IS NOTHING ABOVE IT. An earlier draft of this contract carried a company-wide
|
|
388
|
-
* dictionary per language that every agent speaking it inherited, with a merge order over this
|
|
389
|
-
* member and an identity rule ('Wildix' -> 'Wildix') for declining an inherited respelling.
|
|
390
|
-
* It bought correcting a handful of names in one place, and cost a second store, a merge on
|
|
391
|
-
* every synthesis path, a screen of its own, and a reader who could not tell from an agent
|
|
392
|
-
* what that agent would actually say. Per language per agent is where the divergence that
|
|
393
|
-
* matters already lives.
|
|
394
|
-
* @public
|
|
395
|
-
*/
|
|
396
|
-
pronunciations?: VoicePronunciation[] | undefined;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Speech-to-text configuration: which recogniser listens to the caller, and whether it identifies the language while it does.
|
|
400
|
-
* @public
|
|
401
|
-
*/
|
|
402
|
-
export interface VoiceTranscriptionSettings {
|
|
403
|
-
/**
|
|
404
|
-
* Recogniser to transcribe the caller with. Absent resolves to the platform default ('aws://transcribe' today), resolved by the server so exactly one component decides it.
|
|
405
|
-
* @public
|
|
406
|
-
*/
|
|
407
|
-
engine?: string | undefined;
|
|
408
|
-
/**
|
|
409
|
-
* Identify the caller's language per utterance and switch voice and reply language mid-call.
|
|
410
|
-
*
|
|
411
|
-
* HERE RATHER THAN ON `VoiceSpeechSettings`, because identifying a language is something the
|
|
412
|
-
* RECOGNISER does: it becomes identify-multiple-languages plus language-options on the
|
|
413
|
-
* recognition stream, and nothing about synthesis reads it.
|
|
414
|
-
*
|
|
415
|
-
* Requires at least two configured languages and a recogniser that can identify them; the
|
|
416
|
-
* server clamps it to false otherwise, because forwarding true with a single candidate makes
|
|
417
|
-
* Amazon reject the stream outright.
|
|
418
|
-
* @public
|
|
419
|
-
*/
|
|
420
|
-
autoDetect?: boolean | undefined;
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* Speech configuration for the voice channel. When present it WINS over the dialplan's `voice` and
|
|
424
|
-
* `initialMessage` connect parameters; `language` is the single exception, because it is the
|
|
425
|
-
* channel's own input signal and the feature has no starting point without it.
|
|
426
|
-
* @public
|
|
427
|
-
*/
|
|
428
|
-
export interface VoiceSpeechSettings {
|
|
429
|
-
/**
|
|
430
|
-
* Configured languages. The @length bound is a STORAGE ceiling, not the product rule: the real
|
|
431
|
-
* cap is the recogniser's own candidate limit (five for Amazon Transcribe), enforced in the
|
|
432
|
-
* service so a recogniser with a different limit needs no model change.
|
|
433
|
-
* @public
|
|
434
|
-
*/
|
|
435
|
-
languages: VoiceLanguage[];
|
|
436
|
-
/**
|
|
437
|
-
* Speak the first message of every configured language in turn when the call is answered, each
|
|
438
|
-
* in the voice, provider account and pronunciation rules of its own language, instead of only the
|
|
439
|
-
* language the call resolved to. Languages whose first message is empty, and languages the PBX
|
|
440
|
-
* synthesizes itself, are skipped. Absent means off. Requires at least two languages carrying a
|
|
441
|
-
* first message; below that the runtime speaks only the resolved language's phrase, and the
|
|
442
|
-
* console clamps the member on save.
|
|
443
|
-
* @public
|
|
444
|
-
*/
|
|
445
|
-
greetEveryLanguage?: boolean | undefined;
|
|
446
|
-
/**
|
|
447
|
-
* Which recogniser listens to the caller, and whether it identifies the language. Absent takes the platform default recogniser with no language identification.
|
|
448
|
-
* @public
|
|
449
|
-
*/
|
|
450
|
-
transcription?: VoiceTranscriptionSettings | undefined;
|
|
451
|
-
}
|
|
452
285
|
/**
|
|
453
286
|
* Voice channel settings. Note: a voice agent's AgentAccess.grants are ignored — inbound calls are routed by the PBX dialplan and data ACL is the agent-level `settings.pbxGroupId`, not per-user grants.
|
|
454
287
|
* @public
|
|
@@ -459,21 +292,6 @@ export interface VoiceChannelSettings {
|
|
|
459
292
|
* @public
|
|
460
293
|
*/
|
|
461
294
|
greeting?: string | undefined;
|
|
462
|
-
/**
|
|
463
|
-
* Ambient background audio played under the call.
|
|
464
|
-
*
|
|
465
|
-
* It belongs to the CHANNEL rather than to `speech`, even though the console shows the control
|
|
466
|
-
* under the automatic-language switch. `speech` is the recognition and synthesis
|
|
467
|
-
* configuration and is sent only when languages are configured — background audio has nothing
|
|
468
|
-
* to do with either, and a bot with no languages must still be able to have it.
|
|
469
|
-
* @public
|
|
470
|
-
*/
|
|
471
|
-
backgroundSound?: VoiceBackgroundSoundSettings | undefined;
|
|
472
|
-
/**
|
|
473
|
-
* Languages, voices, initial phrases, recogniser and pronunciation. Absent means the legacy behavior: voice URI from the dialplan connect parameter, one voice, language as prompt context only.
|
|
474
|
-
* @public
|
|
475
|
-
*/
|
|
476
|
-
speech?: VoiceSpeechSettings | undefined;
|
|
477
295
|
interruptions?: VoiceInterruptionSettings | undefined;
|
|
478
296
|
silenceTimeout?: VoiceSilenceTimeoutSettings | undefined;
|
|
479
297
|
maxDuration?: VoiceMaxDurationSettings | undefined;
|
|
@@ -484,12 +302,6 @@ export interface VoiceChannelSettings {
|
|
|
484
302
|
*/
|
|
485
303
|
callerMetadata?: VoiceCallerMetadataSettings | undefined;
|
|
486
304
|
}
|
|
487
|
-
/**
|
|
488
|
-
* Enablement only: a workflow agent has no delivery surface to configure. Present so `channels` can express that the agent runs as background tasks.
|
|
489
|
-
* @public
|
|
490
|
-
*/
|
|
491
|
-
export interface WorkflowChannelSettings {
|
|
492
|
-
}
|
|
493
305
|
/**
|
|
494
306
|
* The channels an agent serves and their channel-specific settings. Presence of a member enables that channel; at least one must be set. Enabled channels are mirrored as ChannelType values on AgentInfo.
|
|
495
307
|
* @public
|
|
@@ -502,11 +314,6 @@ export interface AgentChannels {
|
|
|
502
314
|
voice?: VoiceChannelSettings | undefined;
|
|
503
315
|
chat?: ChatChannelSettings | undefined;
|
|
504
316
|
assistant?: AssistantChannelSettings | undefined;
|
|
505
|
-
/**
|
|
506
|
-
* Enablement only: a workflow agent has no delivery surface to configure. Present so `channels` can express that the agent runs as background tasks.
|
|
507
|
-
* @public
|
|
508
|
-
*/
|
|
509
|
-
workflow?: WorkflowChannelSettings | undefined;
|
|
510
317
|
}
|
|
511
318
|
/**
|
|
512
319
|
* Who performed an action: an interactive user, an API key or an internal service.
|
|
@@ -1917,11 +1724,6 @@ export interface AgentGuardrailInput {
|
|
|
1917
1724
|
* @public
|
|
1918
1725
|
*/
|
|
1919
1726
|
model?: string | undefined;
|
|
1920
|
-
/**
|
|
1921
|
-
* Action for checks that declare none. Defaults to a block.
|
|
1922
|
-
* @public
|
|
1923
|
-
*/
|
|
1924
|
-
action?: AgentGuardrailAction | undefined;
|
|
1925
1727
|
/**
|
|
1926
1728
|
* Runs the checker before the agent's model (BLOCKING) or alongside it (PARALLEL). Blocking costs the checker's latency on every turn but guarantees that a refused turn spent no tokens and fired no tool; parallel adds no latency and is the right trade on voice, where the delay is audible, at the risk that part of a reply reaches the caller and that a tool has already run before the cancellation lands. Defaults to BLOCKING.
|
|
1927
1729
|
* @public
|
|
@@ -3373,10 +3175,10 @@ export interface AgentInfo {
|
|
|
3373
3175
|
*/
|
|
3374
3176
|
channels: ChannelType[];
|
|
3375
3177
|
/**
|
|
3376
|
-
*
|
|
3178
|
+
* Ids of the skills attached to this agent. Always active in this agent's sessions; user skill preferences cannot disable them.
|
|
3377
3179
|
* @public
|
|
3378
3180
|
*/
|
|
3379
|
-
|
|
3181
|
+
skillIds?: string[] | undefined;
|
|
3380
3182
|
/**
|
|
3381
3183
|
* How the agent presents itself in the assistant UI: welcome message, quick commands and composer placeholder, copied from `channels.assistant.ui`. Absent when the agent does not serve the assistant channel, or when its author configured no presentation and the client should use its own defaults.
|
|
3382
3184
|
* @public
|
|
@@ -134,21 +134,15 @@ export declare var RestoreAgentVersionToDraftInput$: StaticStructureSchema;
|
|
|
134
134
|
export declare var RestoreAgentVersionToDraftOutput$: StaticStructureSchema;
|
|
135
135
|
export declare var UpdateAgentInput$: StaticStructureSchema;
|
|
136
136
|
export declare var UpdateAgentOutput$: StaticStructureSchema;
|
|
137
|
-
export declare var VoiceBackgroundSoundSettings$: StaticStructureSchema;
|
|
138
137
|
export declare var VoiceCallerMetadataSettings$: StaticStructureSchema;
|
|
139
138
|
export declare var VoiceChannelSettings$: StaticStructureSchema;
|
|
140
139
|
export declare var VoiceEndCallSettings$: StaticStructureSchema;
|
|
141
140
|
export declare var VoiceInterruptionSettings$: StaticStructureSchema;
|
|
142
|
-
export declare var VoiceLanguage$: StaticStructureSchema;
|
|
143
141
|
export declare var VoiceMaxDurationSettings$: StaticStructureSchema;
|
|
144
|
-
export declare var VoicePronunciation$: StaticStructureSchema;
|
|
145
142
|
export declare var VoiceSilenceTimeoutSettings$: StaticStructureSchema;
|
|
146
|
-
export declare var VoiceSpeechSettings$: StaticStructureSchema;
|
|
147
143
|
export declare var VoiceTerminateHangupAction$: StaticStructureSchema;
|
|
148
|
-
export declare var VoiceTranscriptionSettings$: StaticStructureSchema;
|
|
149
144
|
export declare var VoiceTransferTarget$: StaticStructureSchema;
|
|
150
145
|
export declare var WebSearchUserLocation$: StaticStructureSchema;
|
|
151
|
-
export declare var WorkflowChannelSettings$: StaticStructureSchema;
|
|
152
146
|
export declare var Actor$: StaticStructureSchema;
|
|
153
147
|
export declare var SecretRef$: StaticStructureSchema;
|
|
154
148
|
export declare var AgentSkillReference$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-agents-client",
|
|
3
3
|
"description": "@wildix/wilma-agents-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.34",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
"browser": {
|
|
57
57
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|