@wildix/wilma-voice-client 0.0.30 → 0.0.31

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.
@@ -120,8 +120,8 @@ const _l = "language";
120
120
  const _la = "languages";
121
121
  const _m = "message";
122
122
  const _mT = "mediaType";
123
+ const _me = "metadata";
123
124
  const _n = "name";
124
- const _o = "options";
125
125
  const _oA = "outputAudio";
126
126
  const _oT = "originalText";
127
127
  const _p = "phrase";
@@ -145,7 +145,6 @@ const _sT = "startTime";
145
145
  const _sWC = "sayWebsocketCommand";
146
146
  const _sWCt = "stopWebsocketCommand";
147
147
  const _se = "seq";
148
- const _sea = "search";
149
148
  const _sp = "speech";
150
149
  const _t = "type";
151
150
  const _tI = "traceId";
@@ -262,8 +261,8 @@ exports.InterruptionWebsocketEvent$ = [3, n1, _IWE,
262
261
  ];
263
262
  exports.ListVoicesInput$ = [3, n1, _LVI,
264
263
  0,
265
- [_pr, _l, _sea, _cr],
266
- [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
264
+ [_pr, _l, _cr],
265
+ [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _cr }]], 1
267
266
  ];
268
267
  exports.ListVoicesOutput$ = [3, n1, _LVO,
269
268
  0,
@@ -427,7 +426,7 @@ exports.TransferWebsocketCommand$ = [3, n1, _TWC,
427
426
  ];
428
427
  exports.Voice$ = [3, n1, _V,
429
428
  0,
430
- [_u, _n, _o],
429
+ [_u, _n, _me],
431
430
  [0, 0, 15], 2
432
431
  ];
433
432
  exports.VoiceAudioFormat$ = [3, n1, _VAF,
@@ -116,8 +116,8 @@ const _l = "language";
116
116
  const _la = "languages";
117
117
  const _m = "message";
118
118
  const _mT = "mediaType";
119
+ const _me = "metadata";
119
120
  const _n = "name";
120
- const _o = "options";
121
121
  const _oA = "outputAudio";
122
122
  const _oT = "originalText";
123
123
  const _p = "phrase";
@@ -141,7 +141,6 @@ const _sT = "startTime";
141
141
  const _sWC = "sayWebsocketCommand";
142
142
  const _sWCt = "stopWebsocketCommand";
143
143
  const _se = "seq";
144
- const _sea = "search";
145
144
  const _sp = "speech";
146
145
  const _t = "type";
147
146
  const _tI = "traceId";
@@ -258,8 +257,8 @@ export var InterruptionWebsocketEvent$ = [3, n1, _IWE,
258
257
  ];
259
258
  export var ListVoicesInput$ = [3, n1, _LVI,
260
259
  0,
261
- [_pr, _l, _sea, _cr],
262
- [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
260
+ [_pr, _l, _cr],
261
+ [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _cr }]], 1
263
262
  ];
264
263
  export var ListVoicesOutput$ = [3, n1, _LVO,
265
264
  0,
@@ -423,7 +422,7 @@ export var TransferWebsocketCommand$ = [3, n1, _TWC,
423
422
  ];
424
423
  export var Voice$ = [3, n1, _V,
425
424
  0,
426
- [_u, _n, _o],
425
+ [_u, _n, _me],
427
426
  [0, 0, 15], 2
428
427
  ];
429
428
  export var VoiceAudioFormat$ = [3, n1, _VAF,
@@ -39,7 +39,6 @@ declare const ListVoicesCommand_base: {
39
39
  * const input = { // ListVoicesInput
40
40
  * provider: "STRING_VALUE", // required
41
41
  * language: "STRING_VALUE",
42
- * search: "STRING_VALUE",
43
42
  * credential: "STRING_VALUE",
44
43
  * };
45
44
  * const command = new ListVoicesCommand(input);
@@ -49,7 +48,7 @@ declare const ListVoicesCommand_base: {
49
48
  * // { // Voice
50
49
  * // uri: "STRING_VALUE", // required
51
50
  * // name: "STRING_VALUE", // required
52
- * // options: "DOCUMENT_VALUE",
51
+ * // metadata: "DOCUMENT_VALUE",
53
52
  * // },
54
53
  * // ],
55
54
  * // };
@@ -435,7 +435,14 @@ export interface SayCommandData {
435
435
  */
436
436
  interruptible?: boolean | undefined;
437
437
  /**
438
- * Voice URI the PBX should synthesize with. Set only for a provider whose synthesis runs ON THE PBX (`amazon_polly://`); ElevenLabs and Google are synthesized in the cloud and streamed as PCM through `play` instead, and leave this absent.
438
+ * Bare Amazon Polly voice id, e.g. 'Joanna' — NOT a URI. The PBX consumes this verbatim as the
439
+ * AMI `Voice=` action parameter, so it takes exactly what Polly names the voice, with the
440
+ * `amazon_polly://` scheme and any query parameters already stripped by whoever builds this
441
+ * command out of the agent's stored `VoiceUri`.
442
+ *
443
+ * Set only for a provider whose synthesis runs ON THE PBX (Amazon Polly); ElevenLabs and Google
444
+ * are synthesized in the cloud and streamed as PCM through `play` instead, and leave this
445
+ * absent.
439
446
  * @public
440
447
  */
441
448
  voice?: string | undefined;
@@ -811,7 +818,6 @@ export interface ListVoicesInput {
811
818
  * @public
812
819
  */
813
820
  language?: string | undefined;
814
- search?: string | undefined;
815
821
  /**
816
822
  * A reference to the company's own provider credential, so the picker lists that account's
817
823
  * voices including cloned ones. Absent means the platform key.
@@ -843,15 +849,15 @@ export interface Voice {
843
849
  */
844
850
  uri: string;
845
851
  /**
846
- * Display name as the provider publishes it, e.g. 'Rachel'. A member rather than part of `options` because it is the one thing every provider has and every picker shows.
852
+ * Display name as the provider publishes it, e.g. 'Rachel'. A member rather than part of `metadata` because it is the one thing every provider has and every picker shows.
847
853
  * @public
848
854
  */
849
855
  name: string;
850
856
  /**
851
- * The provider's own metadata for this voice, for rendering and filtering only. See VoiceOptions.
857
+ * The provider's own metadata for this voice, for rendering and filtering only. See VoiceMetadata.
852
858
  * @public
853
859
  */
854
- options?: __DocumentType | undefined;
860
+ metadata?: __DocumentType | undefined;
855
861
  }
856
862
  /**
857
863
  * @public
@@ -920,7 +926,14 @@ export interface SendSayInput {
920
926
  */
921
927
  interruptible?: boolean | undefined;
922
928
  /**
923
- * Voice URI the PBX should synthesize with. Set only for a provider whose synthesis runs ON THE PBX (`amazon_polly://`); ElevenLabs and Google are synthesized in the cloud and streamed as PCM through `play` instead, and leave this absent.
929
+ * Bare Amazon Polly voice id, e.g. 'Joanna' — NOT a URI. The PBX consumes this verbatim as the
930
+ * AMI `Voice=` action parameter, so it takes exactly what Polly names the voice, with the
931
+ * `amazon_polly://` scheme and any query parameters already stripped by whoever builds this
932
+ * command out of the agent's stored `VoiceUri`.
933
+ *
934
+ * Set only for a provider whose synthesis runs ON THE PBX (Amazon Polly); ElevenLabs and Google
935
+ * are synthesized in the cloud and streamed as PCM through `play` instead, and leave this
936
+ * absent.
924
937
  * @public
925
938
  */
926
939
  voice?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wilma-voice-client",
3
3
  "description": "@wildix/wilma-voice-client client",
4
- "version": "0.0.30",
4
+ "version": "0.0.31",
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",