@wildix/wilma-agents-client 1.0.45 → 1.0.47
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/schemas/schemas_0.js +7 -6
- package/dist-es/schemas/schemas_0.js +7 -6
- package/dist-types/commands/CreateAgentCommand.d.ts +16 -4
- package/dist-types/commands/GetAgentCommand.d.ts +8 -2
- package/dist-types/commands/GetAgentVersionCommand.d.ts +8 -2
- package/dist-types/commands/ListAgentsCommand.d.ts +8 -2
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +1 -0
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +8 -2
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +8 -2
- package/dist-types/commands/UpdateAgentCommand.d.ts +16 -4
- package/dist-types/models/models_0.d.ts +69 -38
- package/package.json +57 -57
|
@@ -210,6 +210,7 @@ const _VTS = "VoiceTranscriptionSettings";
|
|
|
210
210
|
const _VTT = "VoiceTransferTarget";
|
|
211
211
|
const _WSUL = "WebSearchUserLocation";
|
|
212
212
|
const _a = "access";
|
|
213
|
+
const _aA = "assistantAudio";
|
|
213
214
|
const _aD = "allowedDomains";
|
|
214
215
|
const _aDu = "autoDetect";
|
|
215
216
|
const _aI = "agentId";
|
|
@@ -597,8 +598,8 @@ exports.AgentHangupPipeline$ = [3, n2, _AHPg,
|
|
|
597
598
|
];
|
|
598
599
|
exports.AgentInfo$ = [3, n2, _AI,
|
|
599
600
|
0,
|
|
600
|
-
[_i, _n, _st, _ch, _p, _ca, _sC, _sI, _as, _lV],
|
|
601
|
-
[0, 0, 0, 64 | 0, 0, 0, 2, 64 | 0, () => exports.AssistantUiSettings$, 1], 4
|
|
601
|
+
[_i, _n, _st, _ch, _p, _ca, _sC, _aA, _sI, _as, _lV],
|
|
602
|
+
[0, 0, 0, 64 | 0, 0, 0, 2, 2, 64 | 0, () => exports.AssistantUiSettings$, 1], 4
|
|
602
603
|
];
|
|
603
604
|
exports.AgentKnowledgeBase$ = [3, n2, _AKB,
|
|
604
605
|
0,
|
|
@@ -912,8 +913,8 @@ exports.AssistantChannelSettings$ = [3, n2, _ACS,
|
|
|
912
913
|
];
|
|
913
914
|
exports.AssistantLanguage$ = [3, n2, _AL,
|
|
914
915
|
0,
|
|
915
|
-
[_cod, _vo, _iD],
|
|
916
|
-
[0, 0, 2],
|
|
916
|
+
[_cod, _vo, _iD, _pron],
|
|
917
|
+
[0, 0, 2, () => VoicePronunciationList], 1
|
|
917
918
|
];
|
|
918
919
|
exports.AssistantQuickCommand$ = [3, n2, _AQC,
|
|
919
920
|
0,
|
|
@@ -927,8 +928,8 @@ exports.AssistantSpeechSettings$ = [3, n2, _ASS,
|
|
|
927
928
|
];
|
|
928
929
|
exports.AssistantTranscriptionSettings$ = [3, n2, _ATS,
|
|
929
930
|
0,
|
|
930
|
-
[_en
|
|
931
|
-
[0
|
|
931
|
+
[_en],
|
|
932
|
+
[0]
|
|
932
933
|
];
|
|
933
934
|
exports.AssistantUiSettings$ = [3, n2, _AUS,
|
|
934
935
|
0,
|
|
@@ -204,6 +204,7 @@ const _VTS = "VoiceTranscriptionSettings";
|
|
|
204
204
|
const _VTT = "VoiceTransferTarget";
|
|
205
205
|
const _WSUL = "WebSearchUserLocation";
|
|
206
206
|
const _a = "access";
|
|
207
|
+
const _aA = "assistantAudio";
|
|
207
208
|
const _aD = "allowedDomains";
|
|
208
209
|
const _aDu = "autoDetect";
|
|
209
210
|
const _aI = "agentId";
|
|
@@ -591,8 +592,8 @@ export var AgentHangupPipeline$ = [3, n2, _AHPg,
|
|
|
591
592
|
];
|
|
592
593
|
export var AgentInfo$ = [3, n2, _AI,
|
|
593
594
|
0,
|
|
594
|
-
[_i, _n, _st, _ch, _p, _ca, _sC, _sI, _as, _lV],
|
|
595
|
-
[0, 0, 0, 64 | 0, 0, 0, 2, 64 | 0, () => AssistantUiSettings$, 1], 4
|
|
595
|
+
[_i, _n, _st, _ch, _p, _ca, _sC, _aA, _sI, _as, _lV],
|
|
596
|
+
[0, 0, 0, 64 | 0, 0, 0, 2, 2, 64 | 0, () => AssistantUiSettings$, 1], 4
|
|
596
597
|
];
|
|
597
598
|
export var AgentKnowledgeBase$ = [3, n2, _AKB,
|
|
598
599
|
0,
|
|
@@ -906,8 +907,8 @@ export var AssistantChannelSettings$ = [3, n2, _ACS,
|
|
|
906
907
|
];
|
|
907
908
|
export var AssistantLanguage$ = [3, n2, _AL,
|
|
908
909
|
0,
|
|
909
|
-
[_cod, _vo, _iD],
|
|
910
|
-
[0, 0, 2],
|
|
910
|
+
[_cod, _vo, _iD, _pron],
|
|
911
|
+
[0, 0, 2, () => VoicePronunciationList], 1
|
|
911
912
|
];
|
|
912
913
|
export var AssistantQuickCommand$ = [3, n2, _AQC,
|
|
913
914
|
0,
|
|
@@ -921,8 +922,8 @@ export var AssistantSpeechSettings$ = [3, n2, _ASS,
|
|
|
921
922
|
];
|
|
922
923
|
export var AssistantTranscriptionSettings$ = [3, n2, _ATS,
|
|
923
924
|
0,
|
|
924
|
-
[_en
|
|
925
|
-
[0
|
|
925
|
+
[_en],
|
|
926
|
+
[0]
|
|
926
927
|
];
|
|
927
928
|
export var AssistantUiSettings$ = [3, n2, _AUS,
|
|
928
929
|
0,
|
|
@@ -152,13 +152,19 @@ declare const CreateAgentCommand_base: {
|
|
|
152
152
|
* languages: [ // AssistantLanguageList // required
|
|
153
153
|
* { // AssistantLanguage
|
|
154
154
|
* code: "STRING_VALUE", // required
|
|
155
|
-
* voice: "STRING_VALUE",
|
|
155
|
+
* voice: "STRING_VALUE",
|
|
156
156
|
* isDefault: true || false,
|
|
157
|
+
* pronunciations: [
|
|
158
|
+
* {
|
|
159
|
+
* phrase: "STRING_VALUE", // required
|
|
160
|
+
* as: "STRING_VALUE", // required
|
|
161
|
+
* encoding: "alias" || "ipa",
|
|
162
|
+
* },
|
|
163
|
+
* ],
|
|
157
164
|
* },
|
|
158
165
|
* ],
|
|
159
166
|
* transcription: { // AssistantTranscriptionSettings
|
|
160
167
|
* engine: "STRING_VALUE",
|
|
161
|
-
* autoDetect: true || false,
|
|
162
168
|
* },
|
|
163
169
|
* },
|
|
164
170
|
* },
|
|
@@ -1056,13 +1062,19 @@ declare const CreateAgentCommand_base: {
|
|
|
1056
1062
|
* // languages: [ // AssistantLanguageList // required
|
|
1057
1063
|
* // { // AssistantLanguage
|
|
1058
1064
|
* // code: "STRING_VALUE", // required
|
|
1059
|
-
* // voice: "STRING_VALUE",
|
|
1065
|
+
* // voice: "STRING_VALUE",
|
|
1060
1066
|
* // isDefault: true || false,
|
|
1067
|
+
* // pronunciations: [
|
|
1068
|
+
* // {
|
|
1069
|
+
* // phrase: "STRING_VALUE", // required
|
|
1070
|
+
* // as: "STRING_VALUE", // required
|
|
1071
|
+
* // encoding: "alias" || "ipa",
|
|
1072
|
+
* // },
|
|
1073
|
+
* // ],
|
|
1061
1074
|
* // },
|
|
1062
1075
|
* // ],
|
|
1063
1076
|
* // transcription: { // AssistantTranscriptionSettings
|
|
1064
1077
|
* // engine: "STRING_VALUE",
|
|
1065
|
-
* // autoDetect: true || false,
|
|
1066
1078
|
* // },
|
|
1067
1079
|
* // },
|
|
1068
1080
|
* // },
|
|
@@ -159,13 +159,19 @@ declare const GetAgentCommand_base: {
|
|
|
159
159
|
* // languages: [ // AssistantLanguageList // required
|
|
160
160
|
* // { // AssistantLanguage
|
|
161
161
|
* // code: "STRING_VALUE", // required
|
|
162
|
-
* // voice: "STRING_VALUE",
|
|
162
|
+
* // voice: "STRING_VALUE",
|
|
163
163
|
* // isDefault: true || false,
|
|
164
|
+
* // pronunciations: [
|
|
165
|
+
* // {
|
|
166
|
+
* // phrase: "STRING_VALUE", // required
|
|
167
|
+
* // as: "STRING_VALUE", // required
|
|
168
|
+
* // encoding: "alias" || "ipa",
|
|
169
|
+
* // },
|
|
170
|
+
* // ],
|
|
164
171
|
* // },
|
|
165
172
|
* // ],
|
|
166
173
|
* // transcription: { // AssistantTranscriptionSettings
|
|
167
174
|
* // engine: "STRING_VALUE",
|
|
168
|
-
* // autoDetect: true || false,
|
|
169
175
|
* // },
|
|
170
176
|
* // },
|
|
171
177
|
* // },
|
|
@@ -166,13 +166,19 @@ declare const GetAgentVersionCommand_base: {
|
|
|
166
166
|
* // languages: [ // AssistantLanguageList // required
|
|
167
167
|
* // { // AssistantLanguage
|
|
168
168
|
* // code: "STRING_VALUE", // required
|
|
169
|
-
* // voice: "STRING_VALUE",
|
|
169
|
+
* // voice: "STRING_VALUE",
|
|
170
170
|
* // isDefault: true || false,
|
|
171
|
+
* // pronunciations: [
|
|
172
|
+
* // {
|
|
173
|
+
* // phrase: "STRING_VALUE", // required
|
|
174
|
+
* // as: "STRING_VALUE", // required
|
|
175
|
+
* // encoding: "alias" || "ipa",
|
|
176
|
+
* // },
|
|
177
|
+
* // ],
|
|
171
178
|
* // },
|
|
172
179
|
* // ],
|
|
173
180
|
* // transcription: { // AssistantTranscriptionSettings
|
|
174
181
|
* // engine: "STRING_VALUE",
|
|
175
|
-
* // autoDetect: true || false,
|
|
176
182
|
* // },
|
|
177
183
|
* // },
|
|
178
184
|
* // },
|
|
@@ -164,13 +164,19 @@ declare const ListAgentsCommand_base: {
|
|
|
164
164
|
* // languages: [ // AssistantLanguageList // required
|
|
165
165
|
* // { // AssistantLanguage
|
|
166
166
|
* // code: "STRING_VALUE", // required
|
|
167
|
-
* // voice: "STRING_VALUE",
|
|
167
|
+
* // voice: "STRING_VALUE",
|
|
168
168
|
* // isDefault: true || false,
|
|
169
|
+
* // pronunciations: [
|
|
170
|
+
* // {
|
|
171
|
+
* // phrase: "STRING_VALUE", // required
|
|
172
|
+
* // as: "STRING_VALUE", // required
|
|
173
|
+
* // encoding: "alias" || "ipa",
|
|
174
|
+
* // },
|
|
175
|
+
* // ],
|
|
169
176
|
* // },
|
|
170
177
|
* // ],
|
|
171
178
|
* // transcription: { // AssistantTranscriptionSettings
|
|
172
179
|
* // engine: "STRING_VALUE",
|
|
173
|
-
* // autoDetect: true || false,
|
|
174
180
|
* // },
|
|
175
181
|
* // },
|
|
176
182
|
* // },
|
|
@@ -168,13 +168,19 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
168
168
|
* // languages: [ // AssistantLanguageList // required
|
|
169
169
|
* // { // AssistantLanguage
|
|
170
170
|
* // code: "STRING_VALUE", // required
|
|
171
|
-
* // voice: "STRING_VALUE",
|
|
171
|
+
* // voice: "STRING_VALUE",
|
|
172
172
|
* // isDefault: true || false,
|
|
173
|
+
* // pronunciations: [
|
|
174
|
+
* // {
|
|
175
|
+
* // phrase: "STRING_VALUE", // required
|
|
176
|
+
* // as: "STRING_VALUE", // required
|
|
177
|
+
* // encoding: "alias" || "ipa",
|
|
178
|
+
* // },
|
|
179
|
+
* // ],
|
|
173
180
|
* // },
|
|
174
181
|
* // ],
|
|
175
182
|
* // transcription: { // AssistantTranscriptionSettings
|
|
176
183
|
* // engine: "STRING_VALUE",
|
|
177
|
-
* // autoDetect: true || false,
|
|
178
184
|
* // },
|
|
179
185
|
* // },
|
|
180
186
|
* // },
|
|
@@ -161,13 +161,19 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
161
161
|
* // languages: [ // AssistantLanguageList // required
|
|
162
162
|
* // { // AssistantLanguage
|
|
163
163
|
* // code: "STRING_VALUE", // required
|
|
164
|
-
* // voice: "STRING_VALUE",
|
|
164
|
+
* // voice: "STRING_VALUE",
|
|
165
165
|
* // isDefault: true || false,
|
|
166
|
+
* // pronunciations: [
|
|
167
|
+
* // {
|
|
168
|
+
* // phrase: "STRING_VALUE", // required
|
|
169
|
+
* // as: "STRING_VALUE", // required
|
|
170
|
+
* // encoding: "alias" || "ipa",
|
|
171
|
+
* // },
|
|
172
|
+
* // ],
|
|
166
173
|
* // },
|
|
167
174
|
* // ],
|
|
168
175
|
* // transcription: { // AssistantTranscriptionSettings
|
|
169
176
|
* // engine: "STRING_VALUE",
|
|
170
|
-
* // autoDetect: true || false,
|
|
171
177
|
* // },
|
|
172
178
|
* // },
|
|
173
179
|
* // },
|
|
@@ -152,13 +152,19 @@ declare const UpdateAgentCommand_base: {
|
|
|
152
152
|
* languages: [ // AssistantLanguageList // required
|
|
153
153
|
* { // AssistantLanguage
|
|
154
154
|
* code: "STRING_VALUE", // required
|
|
155
|
-
* voice: "STRING_VALUE",
|
|
155
|
+
* voice: "STRING_VALUE",
|
|
156
156
|
* isDefault: true || false,
|
|
157
|
+
* pronunciations: [
|
|
158
|
+
* {
|
|
159
|
+
* phrase: "STRING_VALUE", // required
|
|
160
|
+
* as: "STRING_VALUE", // required
|
|
161
|
+
* encoding: "alias" || "ipa",
|
|
162
|
+
* },
|
|
163
|
+
* ],
|
|
157
164
|
* },
|
|
158
165
|
* ],
|
|
159
166
|
* transcription: { // AssistantTranscriptionSettings
|
|
160
167
|
* engine: "STRING_VALUE",
|
|
161
|
-
* autoDetect: true || false,
|
|
162
168
|
* },
|
|
163
169
|
* },
|
|
164
170
|
* },
|
|
@@ -1058,13 +1064,19 @@ declare const UpdateAgentCommand_base: {
|
|
|
1058
1064
|
* // languages: [ // AssistantLanguageList // required
|
|
1059
1065
|
* // { // AssistantLanguage
|
|
1060
1066
|
* // code: "STRING_VALUE", // required
|
|
1061
|
-
* // voice: "STRING_VALUE",
|
|
1067
|
+
* // voice: "STRING_VALUE",
|
|
1062
1068
|
* // isDefault: true || false,
|
|
1069
|
+
* // pronunciations: [
|
|
1070
|
+
* // {
|
|
1071
|
+
* // phrase: "STRING_VALUE", // required
|
|
1072
|
+
* // as: "STRING_VALUE", // required
|
|
1073
|
+
* // encoding: "alias" || "ipa",
|
|
1074
|
+
* // },
|
|
1075
|
+
* // ],
|
|
1063
1076
|
* // },
|
|
1064
1077
|
* // ],
|
|
1065
1078
|
* // transcription: { // AssistantTranscriptionSettings
|
|
1066
1079
|
* // engine: "STRING_VALUE",
|
|
1067
|
-
* // autoDetect: true || false,
|
|
1068
1080
|
* // },
|
|
1069
1081
|
* // },
|
|
1070
1082
|
* // },
|
|
@@ -57,6 +57,30 @@ export interface AgentAccess {
|
|
|
57
57
|
*/
|
|
58
58
|
grants?: AgentGrantPrincipal[] | undefined;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
|
|
62
|
+
* respelled differently for an Italian and a German voice, so one list shared ACROSS languages
|
|
63
|
+
* would fight itself. That is why the rules hang off the language and nowhere else — there is no
|
|
64
|
+
* company-wide dictionary above them to inherit from, or to disagree with.
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export interface VoicePronunciation {
|
|
68
|
+
/**
|
|
69
|
+
* 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.
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
phrase: string;
|
|
73
|
+
/**
|
|
74
|
+
* Respelling (ALIAS) or phonetic transcription (IPA), e.g. 'Wil-dix'.
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
as: string;
|
|
78
|
+
/**
|
|
79
|
+
* Defaults to ALIAS.
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
encoding?: VoicePronunciationEncoding | undefined;
|
|
83
|
+
}
|
|
60
84
|
/**
|
|
61
85
|
* One language the assistant audio channel can recognise and speak. There is deliberately no
|
|
62
86
|
* greeting here: an assistant conversation is already open when its audio call starts, so there
|
|
@@ -70,10 +94,20 @@ export interface AssistantLanguage {
|
|
|
70
94
|
*/
|
|
71
95
|
code: string;
|
|
72
96
|
/**
|
|
73
|
-
* Voice this language speaks with. Reuses the channel-neutral URI value so providers and
|
|
97
|
+
* Voice this language speaks with. Reuses the channel-neutral URI value so providers and
|
|
98
|
+
* synthesis parameters have the same representation in every channel without coupling their
|
|
99
|
+
* language rules.
|
|
100
|
+
*
|
|
101
|
+
* REQUIRED ONLY FOR THE 'voice' ENGINE, enforced in the service rather than here (the engine
|
|
102
|
+
* that resolves an audio call is itself resolved there, at
|
|
103
|
+
* `requireAssistantAudioEngine` — this contract has no view of it). 'gpt-live',
|
|
104
|
+
* 'gemini-live' and 'gemini-live-thinking' hold the audio and speak with the gateway's own
|
|
105
|
+
* voice (see AssistantAudioEngine); a language row for one of them carries no voice, and a
|
|
106
|
+
* caller configuring a gateway agent must not have to invent a synthesis URI nobody will ever
|
|
107
|
+
* hear just to satisfy this member.
|
|
74
108
|
* @public
|
|
75
109
|
*/
|
|
76
|
-
voice
|
|
110
|
+
voice?: string | undefined;
|
|
77
111
|
/**
|
|
78
112
|
* Marks the language used when the caller's language matches nothing configured.
|
|
79
113
|
*
|
|
@@ -89,9 +123,27 @@ export interface AssistantLanguage {
|
|
|
89
123
|
* @public
|
|
90
124
|
*/
|
|
91
125
|
isDefault?: boolean | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* The rules this language is spoken with, same shape and same per-language ownership as
|
|
128
|
+
* VoiceLanguage.pronunciations — a respelling is about how a synthesized reply SOUNDS, not
|
|
129
|
+
* about how a conversation starts, so the rationale that leaves `greeting` off this structure
|
|
130
|
+
* does not apply here. Absent means no respellings for this language, distinct from the voice
|
|
131
|
+
* channel's OWN configured rules for the same language: an agent's assistant audio does not
|
|
132
|
+
* inherit them, so a name gets fixed once and read once, on whichever channel it is saved.
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
pronunciations?: VoicePronunciation[] | undefined;
|
|
92
136
|
}
|
|
93
137
|
/**
|
|
94
|
-
* Speech-to-text configuration owned by the assistant channel, so changes to assistant
|
|
138
|
+
* Speech-to-text configuration owned by the assistant channel, so changes to assistant
|
|
139
|
+
* recognition policy cannot alter telephony calls.
|
|
140
|
+
*
|
|
141
|
+
* NO `autoDetect` HERE, unlike the voice channel: on this channel configuring a second language
|
|
142
|
+
* IS the request to recognise which one is being spoken — nobody lists two and then asks to be
|
|
143
|
+
* heard in only one — so the server derives identification from the language list and clamps it
|
|
144
|
+
* to false when the recogniser cannot identify among them, or there are too few to identify. The
|
|
145
|
+
* voice channel keeps the switch because a dialplan can hand a call its language, which is a
|
|
146
|
+
* choice an assistant conversation never has to make.
|
|
95
147
|
* @public
|
|
96
148
|
*/
|
|
97
149
|
export interface AssistantTranscriptionSettings {
|
|
@@ -100,14 +152,6 @@ export interface AssistantTranscriptionSettings {
|
|
|
100
152
|
* @public
|
|
101
153
|
*/
|
|
102
154
|
engine?: string | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* Identify the caller's language per utterance and switch voice and reply language while the
|
|
105
|
-
* audio call is open. Absent means off. It requires at least two configured languages and a
|
|
106
|
-
* recogniser that can identify them; the server clamps it to false otherwise because passing
|
|
107
|
-
* one candidate to an identifying recogniser can make it reject the stream.
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
110
|
-
autoDetect?: boolean | undefined;
|
|
111
155
|
}
|
|
112
156
|
/**
|
|
113
157
|
* Recognition and synthesis policy for assistant audio. This is assistant-owned rather than a
|
|
@@ -119,13 +163,19 @@ export interface AssistantTranscriptionSettings {
|
|
|
119
163
|
export interface AssistantSpeechSettings {
|
|
120
164
|
/**
|
|
121
165
|
* Languages the assistant audio channel can recognise and speak. The @length bound is a
|
|
122
|
-
* STORAGE ceiling, not
|
|
123
|
-
*
|
|
166
|
+
* STORAGE ceiling, not a promise about what a recogniser accepts at once — unlike the voice
|
|
167
|
+
* channel, where a caller opts into identification with `autoDetect`, THIS channel derives
|
|
168
|
+
* identification from `languages` and turns it on whenever the recogniser can identify among
|
|
169
|
+
* more than one, so every one of the up to ten rows here can become a live candidate list. The
|
|
170
|
+
* service does not clamp that list to a recogniser's own practical limit today (Amazon
|
|
171
|
+
* Transcribe's documented recommendation for streaming identification is five); a caller
|
|
172
|
+
* configuring more than a recogniser accepts should expect degraded identification or a
|
|
173
|
+
* rejected stream, not a refusal from this contract.
|
|
124
174
|
* @public
|
|
125
175
|
*/
|
|
126
176
|
languages: AssistantLanguage[];
|
|
127
177
|
/**
|
|
128
|
-
* Which recogniser listens to assistant audio
|
|
178
|
+
* Which recogniser listens to assistant audio. Absent uses the platform default recogniser. Whether it identifies the spoken language is derived from `languages` rather than configured — see AssistantTranscriptionSettings.
|
|
129
179
|
* @public
|
|
130
180
|
*/
|
|
131
181
|
transcription?: AssistantTranscriptionSettings | undefined;
|
|
@@ -433,30 +483,6 @@ export interface VoiceSilenceTimeoutSettings {
|
|
|
433
483
|
seconds: number;
|
|
434
484
|
action: VoiceTerminateAction;
|
|
435
485
|
}
|
|
436
|
-
/**
|
|
437
|
-
* A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
|
|
438
|
-
* respelled differently for an Italian and a German voice, so one list shared ACROSS languages
|
|
439
|
-
* would fight itself. That is why the rules hang off the language and nowhere else — there is no
|
|
440
|
-
* company-wide dictionary above them to inherit from, or to disagree with.
|
|
441
|
-
* @public
|
|
442
|
-
*/
|
|
443
|
-
export interface VoicePronunciation {
|
|
444
|
-
/**
|
|
445
|
-
* 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.
|
|
446
|
-
* @public
|
|
447
|
-
*/
|
|
448
|
-
phrase: string;
|
|
449
|
-
/**
|
|
450
|
-
* Respelling (ALIAS) or phonetic transcription (IPA), e.g. 'Wil-dix'.
|
|
451
|
-
* @public
|
|
452
|
-
*/
|
|
453
|
-
as: string;
|
|
454
|
-
/**
|
|
455
|
-
* Defaults to ALIAS.
|
|
456
|
-
* @public
|
|
457
|
-
*/
|
|
458
|
-
encoding?: VoicePronunciationEncoding | undefined;
|
|
459
|
-
}
|
|
460
486
|
/**
|
|
461
487
|
* One configured language: its voice, its initial phrase and its pronunciation rules.
|
|
462
488
|
* @public
|
|
@@ -3546,6 +3572,11 @@ export interface AgentInfo {
|
|
|
3546
3572
|
* @public
|
|
3547
3573
|
*/
|
|
3548
3574
|
speechConfigured?: boolean | undefined;
|
|
3575
|
+
/**
|
|
3576
|
+
* Whether the assistant channel accepts audio calls, from `channels.assistant.audio.enabled`. `ChannelType.ASSISTANT` on `channels` says the assistant surface is served; this is the one bit end-user clients need to decide whether to offer a microphone on it at all, since `channels.assistant.audio` itself carries speech policy an end user must not see. Absent is read as false.
|
|
3577
|
+
* @public
|
|
3578
|
+
*/
|
|
3579
|
+
assistantAudio?: boolean | undefined;
|
|
3549
3580
|
/**
|
|
3550
3581
|
* Ids of the skills attached to this agent. Always active in this agent's sessions; user skill preferences cannot disable them.
|
|
3551
3582
|
* @public
|
package/package.json
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
"name": "@wildix/wilma-agents-client",
|
|
3
|
+
"description": "@wildix/wilma-agents-client client",
|
|
4
|
+
"version": "1.0.47",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
12
|
+
"prepack": "yarn run clean && yarn run build",
|
|
13
|
+
"postpublish": "node ../../scripts/postpublish.js"
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist-cjs/index.js",
|
|
16
|
+
"types": "./dist-types/index.d.ts",
|
|
17
|
+
"module": "./dist-es/index.js",
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"tslib": "^2.6.2",
|
|
21
|
+
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
|
+
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
+
"@aws-sdk/core": "^3.974.15",
|
|
24
|
+
"@smithy/core": "^3.24.5",
|
|
25
|
+
"@smithy/fetch-http-handler": "^5.4.5",
|
|
26
|
+
"@smithy/node-http-handler": "^4.7.5",
|
|
27
|
+
"@smithy/types": "^4.14.2",
|
|
28
|
+
"@wildix/smithy-react-native": "^1.0.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@tsconfig/node20": "20.1.8",
|
|
32
|
+
"concurrently": "7.0.0",
|
|
33
|
+
"downlevel-dts": "0.10.1",
|
|
34
|
+
"premove": "4.0.0",
|
|
35
|
+
"typescript": "~5.8.3",
|
|
36
|
+
"@types/node": "^20.14.8"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=20.0.0"
|
|
40
|
+
},
|
|
41
|
+
"typesVersions": {
|
|
42
|
+
"<4.5": {
|
|
43
|
+
"dist-types/*": [
|
|
44
|
+
"dist-types/ts3.4/*"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"dist-*/**"
|
|
50
|
+
],
|
|
51
|
+
"license": "Apache-2.0",
|
|
52
|
+
"react-native": {
|
|
53
|
+
"@aws-sdk/core/client": "@aws-sdk/core/dist-es/submodules/client/index.native.js",
|
|
54
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
55
|
+
},
|
|
56
|
+
"browser": {
|
|
57
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
46
58
|
}
|
|
47
|
-
|
|
48
|
-
"files": [
|
|
49
|
-
"dist-*/**"
|
|
50
|
-
],
|
|
51
|
-
"license": "Apache-2.0",
|
|
52
|
-
"react-native": {
|
|
53
|
-
"@aws-sdk/core/client": "@aws-sdk/core/dist-es/submodules/client/index.native.js",
|
|
54
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
55
|
-
},
|
|
56
|
-
"browser": {
|
|
57
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
59
|
+
}
|