@wildix/wilma-agents-client 1.0.46 → 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.
@@ -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], 2
916
+ [_cod, _vo, _iD, _pron],
917
+ [0, 0, 2, () => VoicePronunciationList], 1
917
918
  ];
918
919
  exports.AssistantQuickCommand$ = [3, n2, _AQC,
919
920
  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], 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,
@@ -152,8 +152,15 @@ declare const CreateAgentCommand_base: {
152
152
  * languages: [ // AssistantLanguageList // required
153
153
  * { // AssistantLanguage
154
154
  * code: "STRING_VALUE", // required
155
- * voice: "STRING_VALUE", // required
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
@@ -1055,8 +1062,15 @@ declare const CreateAgentCommand_base: {
1055
1062
  * // languages: [ // AssistantLanguageList // required
1056
1063
  * // { // AssistantLanguage
1057
1064
  * // code: "STRING_VALUE", // required
1058
- * // voice: "STRING_VALUE", // required
1065
+ * // voice: "STRING_VALUE",
1059
1066
  * // isDefault: true || false,
1067
+ * // pronunciations: [
1068
+ * // {
1069
+ * // phrase: "STRING_VALUE", // required
1070
+ * // as: "STRING_VALUE", // required
1071
+ * // encoding: "alias" || "ipa",
1072
+ * // },
1073
+ * // ],
1060
1074
  * // },
1061
1075
  * // ],
1062
1076
  * // transcription: { // AssistantTranscriptionSettings
@@ -159,8 +159,15 @@ declare const GetAgentCommand_base: {
159
159
  * // languages: [ // AssistantLanguageList // required
160
160
  * // { // AssistantLanguage
161
161
  * // code: "STRING_VALUE", // required
162
- * // voice: "STRING_VALUE", // required
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
@@ -166,8 +166,15 @@ declare const GetAgentVersionCommand_base: {
166
166
  * // languages: [ // AssistantLanguageList // required
167
167
  * // { // AssistantLanguage
168
168
  * // code: "STRING_VALUE", // required
169
- * // voice: "STRING_VALUE", // required
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
@@ -164,8 +164,15 @@ declare const ListAgentsCommand_base: {
164
164
  * // languages: [ // AssistantLanguageList // required
165
165
  * // { // AssistantLanguage
166
166
  * // code: "STRING_VALUE", // required
167
- * // voice: "STRING_VALUE", // required
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
@@ -54,6 +54,7 @@ declare const ListAgentsNamesCommand_base: {
54
54
  * // "voice" || "chat" || "assistant",
55
55
  * // ],
56
56
  * // speechConfigured: true || false,
57
+ * // assistantAudio: true || false,
57
58
  * // skillIds: [ // AgentSkillIdsList
58
59
  * // "STRING_VALUE",
59
60
  * // ],
@@ -168,8 +168,15 @@ declare const PublishAgentVersionCommand_base: {
168
168
  * // languages: [ // AssistantLanguageList // required
169
169
  * // { // AssistantLanguage
170
170
  * // code: "STRING_VALUE", // required
171
- * // voice: "STRING_VALUE", // required
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
@@ -161,8 +161,15 @@ declare const RestoreAgentVersionToDraftCommand_base: {
161
161
  * // languages: [ // AssistantLanguageList // required
162
162
  * // { // AssistantLanguage
163
163
  * // code: "STRING_VALUE", // required
164
- * // voice: "STRING_VALUE", // required
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
@@ -152,8 +152,15 @@ declare const UpdateAgentCommand_base: {
152
152
  * languages: [ // AssistantLanguageList // required
153
153
  * { // AssistantLanguage
154
154
  * code: "STRING_VALUE", // required
155
- * voice: "STRING_VALUE", // required
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
@@ -1057,8 +1064,15 @@ declare const UpdateAgentCommand_base: {
1057
1064
  * // languages: [ // AssistantLanguageList // required
1058
1065
  * // { // AssistantLanguage
1059
1066
  * // code: "STRING_VALUE", // required
1060
- * // voice: "STRING_VALUE", // required
1067
+ * // voice: "STRING_VALUE",
1061
1068
  * // isDefault: true || false,
1069
+ * // pronunciations: [
1070
+ * // {
1071
+ * // phrase: "STRING_VALUE", // required
1072
+ * // as: "STRING_VALUE", // required
1073
+ * // encoding: "alias" || "ipa",
1074
+ * // },
1075
+ * // ],
1062
1076
  * // },
1063
1077
  * // ],
1064
1078
  * // transcription: { // AssistantTranscriptionSettings
@@ -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 synthesis parameters have the same representation in every channel without coupling their language rules.
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: string;
110
+ voice?: string | undefined;
77
111
  /**
78
112
  * Marks the language used when the caller's language matches nothing configured.
79
113
  *
@@ -89,6 +123,16 @@ 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
138
  * Speech-to-text configuration owned by the assistant channel, so changes to assistant
@@ -119,8 +163,14 @@ 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 the product rule: the real cap is the recogniser's own candidate limit,
123
- * enforced in the service so a recogniser with a different limit needs no model change.
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[];
@@ -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
- "name": "@wildix/wilma-agents-client",
3
- "description": "@wildix/wilma-agents-client client",
4
- "version": "1.0.46",
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
- ]
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
+ }