@wildix/wilma-agents-client 1.0.31 → 1.0.33
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 +0 -6
- package/dist-cjs/commands/index.js +0 -3
- package/dist-cjs/models/enums.js +1 -9
- package/dist-cjs/schemas/schemas_0.js +16 -90
- package/dist-es/WilmaAgents.js +0 -6
- package/dist-es/commands/index.js +0 -3
- package/dist-es/models/enums.js +0 -8
- package/dist-es/schemas/schemas_0.js +14 -88
- package/dist-types/WilmaAgents.d.ts +0 -22
- package/dist-types/WilmaAgentsClient.d.ts +2 -5
- package/dist-types/commands/CreateAgentCommand.d.ts +18 -72
- package/dist-types/commands/GetAgentCommand.d.ts +9 -36
- package/dist-types/commands/GetAgentVersionCommand.d.ts +9 -36
- package/dist-types/commands/ListAgentsCommand.d.ts +9 -36
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +9 -36
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +9 -36
- package/dist-types/commands/UpdateAgentCommand.d.ts +18 -72
- package/dist-types/commands/index.d.ts +0 -3
- package/dist-types/models/enums.d.ts +0 -24
- package/dist-types/models/models_0.d.ts +79 -304
- package/dist-types/schemas/schemas_0.d.ts +1 -11
- package/package.json +1 -1
- package/dist-cjs/commands/DeletePronunciationDictionaryCommand.js +0 -20
- package/dist-cjs/commands/ListPronunciationDictionariesCommand.js +0 -20
- package/dist-cjs/commands/PutPronunciationDictionaryCommand.js +0 -20
- package/dist-es/commands/DeletePronunciationDictionaryCommand.js +0 -16
- package/dist-es/commands/ListPronunciationDictionariesCommand.js +0 -16
- package/dist-es/commands/PutPronunciationDictionaryCommand.js +0 -16
- package/dist-types/commands/DeletePronunciationDictionaryCommand.d.ts +0 -82
- package/dist-types/commands/ListPronunciationDictionariesCommand.d.ts +0 -103
- package/dist-types/commands/PutPronunciationDictionaryCommand.d.ts +0 -117
|
@@ -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, VoicePronunciationEncoding,
|
|
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, VoicePronunciationEncoding, WebSearchContextSize } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* A user or group that access is granted to.
|
|
5
5
|
* @public
|
|
@@ -140,6 +140,29 @@ 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
|
+
}
|
|
143
166
|
/**
|
|
144
167
|
* Caller context injected into the model prompt.
|
|
145
168
|
* @public
|
|
@@ -282,23 +305,11 @@ export interface VoiceSilenceTimeoutSettings {
|
|
|
282
305
|
seconds: number;
|
|
283
306
|
action: VoiceTerminateAction;
|
|
284
307
|
}
|
|
285
|
-
/**
|
|
286
|
-
* A reference to a stored secret, held by other services in place of the value.
|
|
287
|
-
* Resolved server-to-server via GetSecretValue at execution time — always to the current value.
|
|
288
|
-
* @public
|
|
289
|
-
*/
|
|
290
|
-
export interface SecretRef {
|
|
291
|
-
/**
|
|
292
|
-
* Unique identifier of a secret.
|
|
293
|
-
* @public
|
|
294
|
-
*/
|
|
295
|
-
id: string;
|
|
296
|
-
}
|
|
297
308
|
/**
|
|
298
309
|
* A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
|
|
299
|
-
* respelled differently for an Italian and a German voice
|
|
300
|
-
* would fight itself
|
|
301
|
-
*
|
|
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.
|
|
302
313
|
* @public
|
|
303
314
|
*/
|
|
304
315
|
export interface VoicePronunciation {
|
|
@@ -319,58 +330,7 @@ export interface VoicePronunciation {
|
|
|
319
330
|
encoding?: VoicePronunciationEncoding | undefined;
|
|
320
331
|
}
|
|
321
332
|
/**
|
|
322
|
-
*
|
|
323
|
-
* per-language overrides on VoiceLanguage. Absent means inherit; there is no way to express
|
|
324
|
-
* 'explicitly the same as the parent', which is the intended simplification — the merged result is
|
|
325
|
-
* identical either way. Which members apply is a property of the provider AND the model (Chirp 3:
|
|
326
|
-
* HD documents only speakingRate; eleven_v3 carries no stability, similarity or speaker boost), so
|
|
327
|
-
* the console renders them from a catalog rather than unconditionally.
|
|
328
|
-
* @public
|
|
329
|
-
*/
|
|
330
|
-
export interface VoiceSynthesisOptions {
|
|
331
|
-
/**
|
|
332
|
-
* Provider model id, e.g. 'eleven_flash_v2_5'.
|
|
333
|
-
* @public
|
|
334
|
-
*/
|
|
335
|
-
model?: string | undefined;
|
|
336
|
-
/**
|
|
337
|
-
* Speaking rate. ElevenLabs 0.7-1.2 (default 1.0); Google 0.25-2.0 (default 1.0).
|
|
338
|
-
* @public
|
|
339
|
-
*/
|
|
340
|
-
speed?: number | undefined;
|
|
341
|
-
/**
|
|
342
|
-
* ElevenLabs stability, 0-1 (default 0.5). Our clamp, not a vendor-stated bound.
|
|
343
|
-
* @public
|
|
344
|
-
*/
|
|
345
|
-
stability?: number | undefined;
|
|
346
|
-
/**
|
|
347
|
-
* ElevenLabs similarity boost, 0-1 (default 0.75). Our clamp.
|
|
348
|
-
* @public
|
|
349
|
-
*/
|
|
350
|
-
similarity?: number | undefined;
|
|
351
|
-
/**
|
|
352
|
-
* ElevenLabs style exaggeration, 0-1 (default 0). Our clamp.
|
|
353
|
-
* @public
|
|
354
|
-
*/
|
|
355
|
-
style?: number | undefined;
|
|
356
|
-
/**
|
|
357
|
-
* ElevenLabs speaker boost (default true).
|
|
358
|
-
* @public
|
|
359
|
-
*/
|
|
360
|
-
speakerBoost?: boolean | undefined;
|
|
361
|
-
/**
|
|
362
|
-
* Google pitch in semitones, -20 to 20. Not offered for Chirp 3: HD voices.
|
|
363
|
-
* @public
|
|
364
|
-
*/
|
|
365
|
-
pitch?: number | undefined;
|
|
366
|
-
/**
|
|
367
|
-
* Google volume gain in dB, -96 to 16 (default 0); the vendor recommends staying under +10. Not offered for Chirp 3: HD voices.
|
|
368
|
-
* @public
|
|
369
|
-
*/
|
|
370
|
-
volumeGain?: number | undefined;
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* One configured language: its voice, its initial phrase and its overrides.
|
|
333
|
+
* One configured language: its voice, its initial phrase and its pronunciation rules.
|
|
374
334
|
* @public
|
|
375
335
|
*/
|
|
376
336
|
export interface VoiceLanguage {
|
|
@@ -380,25 +340,14 @@ export interface VoiceLanguage {
|
|
|
380
340
|
*/
|
|
381
341
|
code: string;
|
|
382
342
|
/**
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
*
|
|
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.
|
|
386
346
|
*
|
|
387
|
-
*
|
|
388
|
-
* languages,
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
* @public
|
|
392
|
-
*/
|
|
393
|
-
provider?: VoiceSpeechProvider | undefined;
|
|
394
|
-
/**
|
|
395
|
-
* Provider voice id (ElevenLabs voice_id, Google voice name, Polly Id).
|
|
396
|
-
* A CR OR LF IS REFUSED BY THE PATTERN, and the reason is not tidiness: this value reaches the
|
|
397
|
-
* PBX as an AMI action parameter, and AMI frames on CRLF, so a newline inside it closes the
|
|
398
|
-
* action and starts another one on a local, already-authenticated manager connection. Whoever
|
|
399
|
-
* configures a voice agent in the cloud needs no PBX credential, so the model is the first place
|
|
400
|
-
* that can refuse it. `pbx-data-engine` refuses it again on the send path — two layers, because
|
|
401
|
-
* the AMI serializer is out of tree and neither layer can promise the other's behaviour.
|
|
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.
|
|
402
351
|
* @public
|
|
403
352
|
*/
|
|
404
353
|
voice: string;
|
|
@@ -431,57 +380,44 @@ export interface VoiceLanguage {
|
|
|
431
380
|
*/
|
|
432
381
|
isDefault?: boolean | undefined;
|
|
433
382
|
/**
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
|
|
437
|
-
instructions?: string | undefined;
|
|
438
|
-
/**
|
|
439
|
-
* Overrides VoiceSpeechSettings.synthesis member by member.
|
|
440
|
-
* @public
|
|
441
|
-
*/
|
|
442
|
-
synthesis?: VoiceSynthesisOptions | undefined;
|
|
443
|
-
/**
|
|
444
|
-
* The company's own credential for THIS language's provider (secret variant
|
|
445
|
-
* `auth_bearer`). Absent falls back to VoiceSpeechSettings.credential, then to the
|
|
446
|
-
* platform key.
|
|
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.
|
|
447
386
|
*
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
*
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
* This agent's OWN rules for this language. A rule whose phrase also exists in the
|
|
456
|
-
* company dictionary replaces it; a rule whose phrase does not is simply an addition —
|
|
457
|
-
* the two are the same member because they are the same act.
|
|
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.
|
|
458
394
|
* @public
|
|
459
395
|
*/
|
|
460
396
|
pronunciations?: VoicePronunciation[] | undefined;
|
|
461
|
-
/**
|
|
462
|
-
* Company-dictionary phrases this agent declines. See VoicePronunciationSuppressionList.
|
|
463
|
-
* @public
|
|
464
|
-
*/
|
|
465
|
-
pronunciationSuppressions?: string[] | undefined;
|
|
466
397
|
}
|
|
467
398
|
/**
|
|
468
|
-
* Speech-to-text configuration
|
|
469
|
-
* vocabulary — land here alongside the vendors that take them; nothing writes them today.
|
|
399
|
+
* Speech-to-text configuration: which recogniser listens to the caller, and whether it identifies the language while it does.
|
|
470
400
|
* @public
|
|
471
401
|
*/
|
|
472
402
|
export interface VoiceTranscriptionSettings {
|
|
473
403
|
/**
|
|
474
|
-
*
|
|
475
|
-
*
|
|
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.
|
|
476
414
|
*
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
* for a WHOLLY ABSENT `transcription`, and refused a shape this documentation describes as
|
|
481
|
-
* legal.
|
|
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.
|
|
482
418
|
* @public
|
|
483
419
|
*/
|
|
484
|
-
|
|
420
|
+
autoDetect?: boolean | undefined;
|
|
485
421
|
}
|
|
486
422
|
/**
|
|
487
423
|
* Speech configuration for the voice channel. When present it WINS over the dialplan's `voice` and
|
|
@@ -490,27 +426,13 @@ export interface VoiceTranscriptionSettings {
|
|
|
490
426
|
* @public
|
|
491
427
|
*/
|
|
492
428
|
export interface VoiceSpeechSettings {
|
|
493
|
-
/**
|
|
494
|
-
* DEFAULT text-to-speech provider, used by a language that names none of its own.
|
|
495
|
-
* Still required, so a record always answers 'which provider' — but the console now
|
|
496
|
-
* writes `provider` on every language, so this is what pre-existing records and API
|
|
497
|
-
* callers fall back to rather than the primary control.
|
|
498
|
-
* @public
|
|
499
|
-
*/
|
|
500
|
-
provider: VoiceSpeechProvider;
|
|
501
429
|
/**
|
|
502
430
|
* Configured languages. The @length bound is a STORAGE ceiling, not the product rule: the real
|
|
503
|
-
* cap is the
|
|
504
|
-
*
|
|
505
|
-
* change.
|
|
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.
|
|
506
433
|
* @public
|
|
507
434
|
*/
|
|
508
435
|
languages: VoiceLanguage[];
|
|
509
|
-
/**
|
|
510
|
-
* Identify the caller's language automatically and switch voice and reply language mid-call. Requires at least two languages and a vendor that can identify languages; the server clamps it to false otherwise.
|
|
511
|
-
* @public
|
|
512
|
-
*/
|
|
513
|
-
autoDetect?: boolean | undefined;
|
|
514
436
|
/**
|
|
515
437
|
* Speak the first message of every configured language in turn when the call is answered, each
|
|
516
438
|
* in the voice, provider account and pronunciation rules of its own language, instead of only the
|
|
@@ -522,21 +444,10 @@ export interface VoiceSpeechSettings {
|
|
|
522
444
|
*/
|
|
523
445
|
greetEveryLanguage?: boolean | undefined;
|
|
524
446
|
/**
|
|
525
|
-
*
|
|
526
|
-
* vocabulary — land here alongside the vendors that take them; nothing writes them today.
|
|
447
|
+
* Which recogniser listens to the caller, and whether it identifies the language. Absent takes the platform default recogniser with no language identification.
|
|
527
448
|
* @public
|
|
528
449
|
*/
|
|
529
450
|
transcription?: VoiceTranscriptionSettings | undefined;
|
|
530
|
-
/**
|
|
531
|
-
* Provider-level synthesis defaults, inherited by every language.
|
|
532
|
-
* @public
|
|
533
|
-
*/
|
|
534
|
-
synthesis?: VoiceSynthesisOptions | undefined;
|
|
535
|
-
/**
|
|
536
|
-
* The company's own provider credential (secret variant `auth_bearer`). Absent means the platform key. Has no counterpart in wim-voicebots — a deliberate parity gap.
|
|
537
|
-
* @public
|
|
538
|
-
*/
|
|
539
|
-
credential?: SecretRef | undefined;
|
|
540
451
|
}
|
|
541
452
|
/**
|
|
542
453
|
* 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.
|
|
@@ -549,11 +460,7 @@ export interface VoiceChannelSettings {
|
|
|
549
460
|
*/
|
|
550
461
|
greeting?: string | undefined;
|
|
551
462
|
/**
|
|
552
|
-
* Ambient background played under the call
|
|
553
|
-
*
|
|
554
|
-
* ABSENT MEANS OFF. There is no value meaning 'none': the member is simply not sent, which is
|
|
555
|
-
* exactly the state every call was in before this setting existed, so a bot that never touches
|
|
556
|
-
* it behaves as it always did and the PBX needs no new case.
|
|
463
|
+
* Ambient background audio played under the call.
|
|
557
464
|
*
|
|
558
465
|
* It belongs to the CHANNEL rather than to `speech`, even though the console shows the control
|
|
559
466
|
* under the automatic-language switch. `speech` is the recognition and synthesis
|
|
@@ -561,9 +468,9 @@ export interface VoiceChannelSettings {
|
|
|
561
468
|
* to do with either, and a bot with no languages must still be able to have it.
|
|
562
469
|
* @public
|
|
563
470
|
*/
|
|
564
|
-
backgroundSound?:
|
|
471
|
+
backgroundSound?: VoiceBackgroundSoundSettings | undefined;
|
|
565
472
|
/**
|
|
566
|
-
*
|
|
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.
|
|
567
474
|
* @public
|
|
568
475
|
*/
|
|
569
476
|
speech?: VoiceSpeechSettings | undefined;
|
|
@@ -3178,6 +3085,18 @@ export interface AgentAiEngine {
|
|
|
3178
3085
|
capabilities?: AgentCapability[] | undefined;
|
|
3179
3086
|
variables?: AgentVariable[] | undefined;
|
|
3180
3087
|
}
|
|
3088
|
+
/**
|
|
3089
|
+
* A reference to a stored secret, held by other services in place of the value.
|
|
3090
|
+
* Resolved server-to-server via GetSecretValue at execution time — always to the current value.
|
|
3091
|
+
* @public
|
|
3092
|
+
*/
|
|
3093
|
+
export interface SecretRef {
|
|
3094
|
+
/**
|
|
3095
|
+
* Unique identifier of a secret.
|
|
3096
|
+
* @public
|
|
3097
|
+
*/
|
|
3098
|
+
id: string;
|
|
3099
|
+
}
|
|
3181
3100
|
/**
|
|
3182
3101
|
* Bring-your-own backend over SQS: turns are forwarded to the queue, replies are posted back via the API.
|
|
3183
3102
|
* @public
|
|
@@ -3454,7 +3373,7 @@ export interface AgentInfo {
|
|
|
3454
3373
|
*/
|
|
3455
3374
|
channels: ChannelType[];
|
|
3456
3375
|
/**
|
|
3457
|
-
* Whether the
|
|
3376
|
+
* Whether the voice channel has at least one configured speech language. A dialplan form partitions its application lists on this, so the answer has to travel with the list rather than cost one lookup per entry — it is the reason this member exists and the reason removing it broke that form. Absent is read as false.
|
|
3458
3377
|
* @public
|
|
3459
3378
|
*/
|
|
3460
3379
|
speechConfigured?: boolean | undefined;
|
|
@@ -3698,25 +3617,6 @@ export interface DeleteAgentApiKeyInput {
|
|
|
3698
3617
|
*/
|
|
3699
3618
|
export interface DeleteAgentApiKeyOutput {
|
|
3700
3619
|
}
|
|
3701
|
-
/**
|
|
3702
|
-
* @public
|
|
3703
|
-
*/
|
|
3704
|
-
export interface DeletePronunciationDictionaryInput {
|
|
3705
|
-
company?: string | undefined;
|
|
3706
|
-
/**
|
|
3707
|
-
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
3708
|
-
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
3709
|
-
* transcription vendor and changes with it, so an enumeration here would cap the set at whatever
|
|
3710
|
-
* was known when the model was released.
|
|
3711
|
-
* @public
|
|
3712
|
-
*/
|
|
3713
|
-
code: string;
|
|
3714
|
-
}
|
|
3715
|
-
/**
|
|
3716
|
-
* @public
|
|
3717
|
-
*/
|
|
3718
|
-
export interface DeletePronunciationDictionaryOutput {
|
|
3719
|
-
}
|
|
3720
3620
|
/**
|
|
3721
3621
|
* @public
|
|
3722
3622
|
*/
|
|
@@ -3857,72 +3757,6 @@ export interface ListAgentVersionsOutput {
|
|
|
3857
3757
|
*/
|
|
3858
3758
|
nextCursor?: string | undefined;
|
|
3859
3759
|
}
|
|
3860
|
-
/**
|
|
3861
|
-
* @public
|
|
3862
|
-
*/
|
|
3863
|
-
export interface ListPronunciationDictionariesInput {
|
|
3864
|
-
company?: string | undefined;
|
|
3865
|
-
/**
|
|
3866
|
-
* Page size. ABSENT MEANS EVERY DICTIONARY — see the operation's documentation.
|
|
3867
|
-
* @public
|
|
3868
|
-
*/
|
|
3869
|
-
limit?: number | undefined;
|
|
3870
|
-
/**
|
|
3871
|
-
* Opaque cursor returned by a previous page; pass it back to fetch the next page.
|
|
3872
|
-
* @public
|
|
3873
|
-
*/
|
|
3874
|
-
cursor?: string | undefined;
|
|
3875
|
-
}
|
|
3876
|
-
/**
|
|
3877
|
-
* Every pronunciation rule a company has written for one language.
|
|
3878
|
-
* @public
|
|
3879
|
-
*/
|
|
3880
|
-
export interface PronunciationDictionary {
|
|
3881
|
-
id: string;
|
|
3882
|
-
/**
|
|
3883
|
-
* BCP-47 code with locale, e.g. 'en-US'. Unique per company — this is the link.
|
|
3884
|
-
* @public
|
|
3885
|
-
*/
|
|
3886
|
-
code: string;
|
|
3887
|
-
/**
|
|
3888
|
-
* Pronunciation rules for one language.
|
|
3889
|
-
*
|
|
3890
|
-
* BOUNDED, and the bound is not decoration. Both runtimes compile every rule of a language into
|
|
3891
|
-
* a SINGLE alternating regular expression, so the cost is the pattern's total size: measured
|
|
3892
|
-
* against the real escaping and matching logic, 1,000 rules cost ~0.9 s of CPU per synthesized
|
|
3893
|
-
* sentence, 5,000 cost ~4.9 s, and around 10,000 `new RegExp` throws V8's pattern-size error.
|
|
3894
|
-
*
|
|
3895
|
-
* 200 is far above any real use — a product glossary is a handful of names — and far below where
|
|
3896
|
-
* either cost begins. Found by a security review.
|
|
3897
|
-
* NO LOWER BOUND on `phrase` or `as`, deliberately. Both consoles add an EMPTY rule row the
|
|
3898
|
-
* moment someone clicks 'Add pronunciation', so a `min: 1` would make saving an agent with a
|
|
3899
|
-
* half-typed row fail entirely — and the runtime already ignores a rule with no phrase. Dropping
|
|
3900
|
-
* blank rows belongs in the consoles' save filters, not in a refusal here.
|
|
3901
|
-
* @public
|
|
3902
|
-
*/
|
|
3903
|
-
rules: VoicePronunciation[];
|
|
3904
|
-
/**
|
|
3905
|
-
* ISO-8601 timestamp with millisecond precision, e.g. '2026-07-10T14:12:30.123Z'.
|
|
3906
|
-
* @public
|
|
3907
|
-
*/
|
|
3908
|
-
updatedAt: string;
|
|
3909
|
-
/**
|
|
3910
|
-
* Who performed an action: an interactive user, an API key or an internal service.
|
|
3911
|
-
* @public
|
|
3912
|
-
*/
|
|
3913
|
-
updatedBy: Actor;
|
|
3914
|
-
}
|
|
3915
|
-
/**
|
|
3916
|
-
* @public
|
|
3917
|
-
*/
|
|
3918
|
-
export interface ListPronunciationDictionariesOutput {
|
|
3919
|
-
dictionaries: PronunciationDictionary[];
|
|
3920
|
-
/**
|
|
3921
|
-
* Absent on the last page, and always absent when `limit` was not sent — there is then nothing left to continue from.
|
|
3922
|
-
* @public
|
|
3923
|
-
*/
|
|
3924
|
-
nextCursor?: string | undefined;
|
|
3925
|
-
}
|
|
3926
3760
|
/**
|
|
3927
3761
|
* @public
|
|
3928
3762
|
*/
|
|
@@ -3973,65 +3807,6 @@ export interface PutAgentDeploymentOutput {
|
|
|
3973
3807
|
*/
|
|
3974
3808
|
deployment: AgentDeploymentRoute[];
|
|
3975
3809
|
}
|
|
3976
|
-
/**
|
|
3977
|
-
* @public
|
|
3978
|
-
*/
|
|
3979
|
-
export interface PutPronunciationDictionaryInput {
|
|
3980
|
-
company?: string | undefined;
|
|
3981
|
-
/**
|
|
3982
|
-
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
3983
|
-
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
3984
|
-
* transcription vendor and changes with it, so an enumeration here would cap the set at whatever
|
|
3985
|
-
* was known when the model was released.
|
|
3986
|
-
* @public
|
|
3987
|
-
*/
|
|
3988
|
-
code: string;
|
|
3989
|
-
/**
|
|
3990
|
-
* Pronunciation rules for one language.
|
|
3991
|
-
*
|
|
3992
|
-
* BOUNDED, and the bound is not decoration. Both runtimes compile every rule of a language into
|
|
3993
|
-
* a SINGLE alternating regular expression, so the cost is the pattern's total size: measured
|
|
3994
|
-
* against the real escaping and matching logic, 1,000 rules cost ~0.9 s of CPU per synthesized
|
|
3995
|
-
* sentence, 5,000 cost ~4.9 s, and around 10,000 `new RegExp` throws V8's pattern-size error.
|
|
3996
|
-
*
|
|
3997
|
-
* 200 is far above any real use — a product glossary is a handful of names — and far below where
|
|
3998
|
-
* either cost begins. Found by a security review.
|
|
3999
|
-
* NO LOWER BOUND on `phrase` or `as`, deliberately. Both consoles add an EMPTY rule row the
|
|
4000
|
-
* moment someone clicks 'Add pronunciation', so a `min: 1` would make saving an agent with a
|
|
4001
|
-
* half-typed row fail entirely — and the runtime already ignores a rule with no phrase. Dropping
|
|
4002
|
-
* blank rows belongs in the consoles' save filters, not in a refusal here.
|
|
4003
|
-
* @public
|
|
4004
|
-
*/
|
|
4005
|
-
rules: VoicePronunciation[];
|
|
4006
|
-
/**
|
|
4007
|
-
* Precondition: the `updatedAt` of the dictionary this edit was made against, echoed back
|
|
4008
|
-
* from the PronunciationDictionary the caller read. When it does not match the stored value
|
|
4009
|
-
* the write is refused with RevisionConflictException and the caller re-reads rather than
|
|
4010
|
-
* overwriting an edit it never saw.
|
|
4011
|
-
*
|
|
4012
|
-
* A TIMESTAMP RATHER THAN AN INTEGER REVISION, unlike UpdateAgent: the dictionary already
|
|
4013
|
-
* carries `updatedAt` on every read, so the round trip exists today and no stored record
|
|
4014
|
-
* needs a new field to take part. The meaning is UpdateAgent's meaning — 'based on the
|
|
4015
|
-
* version I read' — and the error is the same one.
|
|
4016
|
-
*
|
|
4017
|
-
* OPTIONAL, and ABSENCE MEANS LAST-WRITE-WINS: this operation shipped without a precondition,
|
|
4018
|
-
* so making it mandatory would break every existing caller for a guarantee they can opt into.
|
|
4019
|
-
* RevisionConflictException carries no `currentRevision` here — this resource is versioned by
|
|
4020
|
-
* its timestamp, and the current one is on the dictionary a re-read returns.
|
|
4021
|
-
* @public
|
|
4022
|
-
*/
|
|
4023
|
-
expectedUpdatedAt?: string | undefined;
|
|
4024
|
-
}
|
|
4025
|
-
/**
|
|
4026
|
-
* @public
|
|
4027
|
-
*/
|
|
4028
|
-
export interface PutPronunciationDictionaryOutput {
|
|
4029
|
-
/**
|
|
4030
|
-
* Every pronunciation rule a company has written for one language.
|
|
4031
|
-
* @public
|
|
4032
|
-
*/
|
|
4033
|
-
dictionary: PronunciationDictionary;
|
|
4034
|
-
}
|
|
4035
3810
|
/**
|
|
4036
3811
|
* @public
|
|
4037
3812
|
*/
|
|
@@ -110,8 +110,6 @@ export declare var DeleteAgentApiKeyInput$: StaticStructureSchema;
|
|
|
110
110
|
export declare var DeleteAgentApiKeyOutput$: StaticStructureSchema;
|
|
111
111
|
export declare var DeleteAgentInput$: StaticStructureSchema;
|
|
112
112
|
export declare var DeleteAgentOutput$: StaticStructureSchema;
|
|
113
|
-
export declare var DeletePronunciationDictionaryInput$: StaticStructureSchema;
|
|
114
|
-
export declare var DeletePronunciationDictionaryOutput$: StaticStructureSchema;
|
|
115
113
|
export declare var GetAgentDeploymentInput$: StaticStructureSchema;
|
|
116
114
|
export declare var GetAgentDeploymentOutput$: StaticStructureSchema;
|
|
117
115
|
export declare var GetAgentInput$: StaticStructureSchema;
|
|
@@ -126,21 +124,17 @@ export declare var ListAgentsNamesOutput$: StaticStructureSchema;
|
|
|
126
124
|
export declare var ListAgentsOutput$: StaticStructureSchema;
|
|
127
125
|
export declare var ListAgentVersionsInput$: StaticStructureSchema;
|
|
128
126
|
export declare var ListAgentVersionsOutput$: StaticStructureSchema;
|
|
129
|
-
export declare var ListPronunciationDictionariesInput$: StaticStructureSchema;
|
|
130
|
-
export declare var ListPronunciationDictionariesOutput$: StaticStructureSchema;
|
|
131
|
-
export declare var PronunciationDictionary$: StaticStructureSchema;
|
|
132
127
|
export declare var PublishAgentVersionInput$: StaticStructureSchema;
|
|
133
128
|
export declare var PublishAgentVersionOutput$: StaticStructureSchema;
|
|
134
129
|
export declare var PutAgentDeploymentInput$: StaticStructureSchema;
|
|
135
130
|
export declare var PutAgentDeploymentOutput$: StaticStructureSchema;
|
|
136
|
-
export declare var PutPronunciationDictionaryInput$: StaticStructureSchema;
|
|
137
|
-
export declare var PutPronunciationDictionaryOutput$: StaticStructureSchema;
|
|
138
131
|
export declare var ResetAgentDeploymentInput$: StaticStructureSchema;
|
|
139
132
|
export declare var ResetAgentDeploymentOutput$: StaticStructureSchema;
|
|
140
133
|
export declare var RestoreAgentVersionToDraftInput$: StaticStructureSchema;
|
|
141
134
|
export declare var RestoreAgentVersionToDraftOutput$: StaticStructureSchema;
|
|
142
135
|
export declare var UpdateAgentInput$: StaticStructureSchema;
|
|
143
136
|
export declare var UpdateAgentOutput$: StaticStructureSchema;
|
|
137
|
+
export declare var VoiceBackgroundSoundSettings$: StaticStructureSchema;
|
|
144
138
|
export declare var VoiceCallerMetadataSettings$: StaticStructureSchema;
|
|
145
139
|
export declare var VoiceChannelSettings$: StaticStructureSchema;
|
|
146
140
|
export declare var VoiceEndCallSettings$: StaticStructureSchema;
|
|
@@ -150,7 +144,6 @@ export declare var VoiceMaxDurationSettings$: StaticStructureSchema;
|
|
|
150
144
|
export declare var VoicePronunciation$: StaticStructureSchema;
|
|
151
145
|
export declare var VoiceSilenceTimeoutSettings$: StaticStructureSchema;
|
|
152
146
|
export declare var VoiceSpeechSettings$: StaticStructureSchema;
|
|
153
|
-
export declare var VoiceSynthesisOptions$: StaticStructureSchema;
|
|
154
147
|
export declare var VoiceTerminateHangupAction$: StaticStructureSchema;
|
|
155
148
|
export declare var VoiceTranscriptionSettings$: StaticStructureSchema;
|
|
156
149
|
export declare var VoiceTransferTarget$: StaticStructureSchema;
|
|
@@ -179,7 +172,6 @@ export declare var CreateAgent$: StaticOperationSchema;
|
|
|
179
172
|
export declare var CreateAgentApiKey$: StaticOperationSchema;
|
|
180
173
|
export declare var DeleteAgent$: StaticOperationSchema;
|
|
181
174
|
export declare var DeleteAgentApiKey$: StaticOperationSchema;
|
|
182
|
-
export declare var DeletePronunciationDictionary$: StaticOperationSchema;
|
|
183
175
|
export declare var GetAgent$: StaticOperationSchema;
|
|
184
176
|
export declare var GetAgentDeployment$: StaticOperationSchema;
|
|
185
177
|
export declare var GetAgentVersion$: StaticOperationSchema;
|
|
@@ -187,10 +179,8 @@ export declare var ListAgentApiKeys$: StaticOperationSchema;
|
|
|
187
179
|
export declare var ListAgents$: StaticOperationSchema;
|
|
188
180
|
export declare var ListAgentsNames$: StaticOperationSchema;
|
|
189
181
|
export declare var ListAgentVersions$: StaticOperationSchema;
|
|
190
|
-
export declare var ListPronunciationDictionaries$: StaticOperationSchema;
|
|
191
182
|
export declare var PublishAgentVersion$: StaticOperationSchema;
|
|
192
183
|
export declare var PutAgentDeployment$: StaticOperationSchema;
|
|
193
|
-
export declare var PutPronunciationDictionary$: StaticOperationSchema;
|
|
194
184
|
export declare var ResetAgentDeployment$: StaticOperationSchema;
|
|
195
185
|
export declare var RestoreAgentVersionToDraft$: StaticOperationSchema;
|
|
196
186
|
export declare var UpdateAgent$: StaticOperationSchema;
|
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.33",
|
|
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",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeletePronunciationDictionaryCommand = exports.$Command = void 0;
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
-
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class DeletePronunciationDictionaryCommand extends client_1.Command
|
|
10
|
-
.classBuilder()
|
|
11
|
-
.ep(EndpointParameters_1.commonParams)
|
|
12
|
-
.m(function (Command, cs, config, o) {
|
|
13
|
-
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
-
})
|
|
15
|
-
.s("WilmaAgents", "DeletePronunciationDictionary", {})
|
|
16
|
-
.n("WilmaAgentsClient", "DeletePronunciationDictionaryCommand")
|
|
17
|
-
.sc(schemas_0_1.DeletePronunciationDictionary$)
|
|
18
|
-
.build() {
|
|
19
|
-
}
|
|
20
|
-
exports.DeletePronunciationDictionaryCommand = DeletePronunciationDictionaryCommand;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListPronunciationDictionariesCommand = exports.$Command = void 0;
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
-
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class ListPronunciationDictionariesCommand extends client_1.Command
|
|
10
|
-
.classBuilder()
|
|
11
|
-
.ep(EndpointParameters_1.commonParams)
|
|
12
|
-
.m(function (Command, cs, config, o) {
|
|
13
|
-
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
-
})
|
|
15
|
-
.s("WilmaAgents", "ListPronunciationDictionaries", {})
|
|
16
|
-
.n("WilmaAgentsClient", "ListPronunciationDictionariesCommand")
|
|
17
|
-
.sc(schemas_0_1.ListPronunciationDictionaries$)
|
|
18
|
-
.build() {
|
|
19
|
-
}
|
|
20
|
-
exports.ListPronunciationDictionariesCommand = ListPronunciationDictionariesCommand;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutPronunciationDictionaryCommand = exports.$Command = void 0;
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
-
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class PutPronunciationDictionaryCommand extends client_1.Command
|
|
10
|
-
.classBuilder()
|
|
11
|
-
.ep(EndpointParameters_1.commonParams)
|
|
12
|
-
.m(function (Command, cs, config, o) {
|
|
13
|
-
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
-
})
|
|
15
|
-
.s("WilmaAgents", "PutPronunciationDictionary", {})
|
|
16
|
-
.n("WilmaAgentsClient", "PutPronunciationDictionaryCommand")
|
|
17
|
-
.sc(schemas_0_1.PutPronunciationDictionary$)
|
|
18
|
-
.build() {
|
|
19
|
-
}
|
|
20
|
-
exports.PutPronunciationDictionaryCommand = PutPronunciationDictionaryCommand;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { DeletePronunciationDictionary$ } from "../schemas/schemas_0";
|
|
5
|
-
export { $Command };
|
|
6
|
-
export class DeletePronunciationDictionaryCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("WilmaAgents", "DeletePronunciationDictionary", {})
|
|
13
|
-
.n("WilmaAgentsClient", "DeletePronunciationDictionaryCommand")
|
|
14
|
-
.sc(DeletePronunciationDictionary$)
|
|
15
|
-
.build() {
|
|
16
|
-
}
|