@wildix/wilma-agents-client 1.0.30 → 1.0.32

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.
Files changed (32) hide show
  1. package/dist-cjs/WilmaAgents.js +0 -6
  2. package/dist-cjs/commands/index.js +0 -3
  3. package/dist-cjs/models/enums.js +1 -9
  4. package/dist-cjs/schemas/schemas_0.js +20 -95
  5. package/dist-es/WilmaAgents.js +0 -6
  6. package/dist-es/commands/index.js +0 -3
  7. package/dist-es/models/enums.js +0 -8
  8. package/dist-es/schemas/schemas_0.js +18 -93
  9. package/dist-types/WilmaAgents.d.ts +0 -22
  10. package/dist-types/WilmaAgentsClient.d.ts +2 -5
  11. package/dist-types/commands/CreateAgentCommand.d.ts +38 -72
  12. package/dist-types/commands/GetAgentCommand.d.ts +19 -36
  13. package/dist-types/commands/GetAgentVersionCommand.d.ts +19 -36
  14. package/dist-types/commands/ListAgentsCommand.d.ts +19 -36
  15. package/dist-types/commands/ListAgentsNamesCommand.d.ts +0 -1
  16. package/dist-types/commands/PublishAgentVersionCommand.d.ts +19 -36
  17. package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +19 -36
  18. package/dist-types/commands/UpdateAgentCommand.d.ts +38 -72
  19. package/dist-types/commands/index.d.ts +0 -3
  20. package/dist-types/models/enums.d.ts +0 -24
  21. package/dist-types/models/models_0.d.ts +83 -308
  22. package/dist-types/schemas/schemas_0.d.ts +1 -11
  23. package/package.json +1 -1
  24. package/dist-cjs/commands/DeletePronunciationDictionaryCommand.js +0 -20
  25. package/dist-cjs/commands/ListPronunciationDictionariesCommand.js +0 -20
  26. package/dist-cjs/commands/PutPronunciationDictionaryCommand.js +0 -20
  27. package/dist-es/commands/DeletePronunciationDictionaryCommand.js +0 -16
  28. package/dist-es/commands/ListPronunciationDictionariesCommand.js +0 -16
  29. package/dist-es/commands/PutPronunciationDictionaryCommand.js +0 -16
  30. package/dist-types/commands/DeletePronunciationDictionaryCommand.d.ts +0 -82
  31. package/dist-types/commands/ListPronunciationDictionariesCommand.d.ts +0 -103
  32. 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, VoiceSpeechProvider, VoiceTranscriptionVendor, WebSearchContextSize } from "./enums";
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. A dictionary shared ACROSS languages
300
- * would fight itself, which is why the company dictionary is keyed by language too — see
301
- * PronunciationDictionary.
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
- * Synthesis options, used at two levels: as provider-level defaults on VoiceSpeechSettings and as
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
- * Text-to-speech provider for THIS language. Absent falls back to
384
- * VoiceSpeechSettings.provider, which is what records written before this member
385
- * existed rely on. The console writes it on every language it creates.
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
- * Per language rather than per bot because provider quality is not uniform across
388
- * languages, and because a single bot-wide provider made changing it invalidate
389
- * every configured voice at once: a voice id belongs to one provider, so switching
390
- * the bot meant reselecting a speaker for every language.
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
- * Extra instructions active only while the conversation runs in this language.
435
- * @public
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
- * It lives beside the provider because a credential belongs to one: a company's
449
- * ElevenLabs key cannot serve a language synthesized by Google, and a single
450
- * bot-wide credential would have been silently inapplicable to some languages.
451
- * @public
452
- */
453
- credential?: SecretRef | undefined;
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. Vendor-specific recognition options — term hints, custom
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
- * Recognition vendor. Absent resolves to the platform default (`aws` today), resolved by the
475
- * server so exactly one component decides it.
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
- * DELIBERATELY NOT @required, and the sentence above is why: the server already answers the
478
- * default for a `transcription` that carries no vendor, and both consoles were written to
479
- * that promise. @required contradicted it — it made the server-side default reachable only
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
- vendor?: VoiceTranscriptionVendor | undefined;
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 selected transcription vendor's `maxCandidates` (five for Amazon Transcribe),
504
- * enforced in the service from its catalog so a vendor with a different limit needs no model
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
- * Speech-to-text configuration. Vendor-specific recognition options — term hints, custom
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, as a music-on-hold class name.
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?: string | undefined;
471
+ backgroundSound?: VoiceBackgroundSoundSettings | undefined;
565
472
  /**
566
- * Provider, languages, voices, initial phrases and pronunciation. Absent means the legacy behavior: voice URI from the dialplan connect parameter, one voice, language as prompt context only.
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;
@@ -2010,6 +1917,11 @@ export interface AgentGuardrailInput {
2010
1917
  * @public
2011
1918
  */
2012
1919
  model?: string | undefined;
1920
+ /**
1921
+ * Action for checks that declare none. Defaults to a block.
1922
+ * @public
1923
+ */
1924
+ action?: AgentGuardrailAction | undefined;
2013
1925
  /**
2014
1926
  * 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.
2015
1927
  * @public
@@ -3173,6 +3085,18 @@ export interface AgentAiEngine {
3173
3085
  capabilities?: AgentCapability[] | undefined;
3174
3086
  variables?: AgentVariable[] | undefined;
3175
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
+ }
3176
3100
  /**
3177
3101
  * Bring-your-own backend over SQS: turns are forwarded to the queue, replies are posted back via the API.
3178
3102
  * @public
@@ -3448,11 +3372,6 @@ export interface AgentInfo {
3448
3372
  * @public
3449
3373
  */
3450
3374
  channels: ChannelType[];
3451
- /**
3452
- * Whether the agent's 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. Absent is read as false.
3453
- * @public
3454
- */
3455
- speechConfigured?: boolean | undefined;
3456
3375
  /**
3457
3376
  * 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.
3458
3377
  * @public
@@ -3693,25 +3612,6 @@ export interface DeleteAgentApiKeyInput {
3693
3612
  */
3694
3613
  export interface DeleteAgentApiKeyOutput {
3695
3614
  }
3696
- /**
3697
- * @public
3698
- */
3699
- export interface DeletePronunciationDictionaryInput {
3700
- company?: string | undefined;
3701
- /**
3702
- * BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
3703
- * constrained string rather than an enum: the offerable set is a property of the selected
3704
- * transcription vendor and changes with it, so an enumeration here would cap the set at whatever
3705
- * was known when the model was released.
3706
- * @public
3707
- */
3708
- code: string;
3709
- }
3710
- /**
3711
- * @public
3712
- */
3713
- export interface DeletePronunciationDictionaryOutput {
3714
- }
3715
3615
  /**
3716
3616
  * @public
3717
3617
  */
@@ -3852,72 +3752,6 @@ export interface ListAgentVersionsOutput {
3852
3752
  */
3853
3753
  nextCursor?: string | undefined;
3854
3754
  }
3855
- /**
3856
- * @public
3857
- */
3858
- export interface ListPronunciationDictionariesInput {
3859
- company?: string | undefined;
3860
- /**
3861
- * Page size. ABSENT MEANS EVERY DICTIONARY — see the operation's documentation.
3862
- * @public
3863
- */
3864
- limit?: number | undefined;
3865
- /**
3866
- * Opaque cursor returned by a previous page; pass it back to fetch the next page.
3867
- * @public
3868
- */
3869
- cursor?: string | undefined;
3870
- }
3871
- /**
3872
- * Every pronunciation rule a company has written for one language.
3873
- * @public
3874
- */
3875
- export interface PronunciationDictionary {
3876
- id: string;
3877
- /**
3878
- * BCP-47 code with locale, e.g. 'en-US'. Unique per company — this is the link.
3879
- * @public
3880
- */
3881
- code: string;
3882
- /**
3883
- * Pronunciation rules for one language.
3884
- *
3885
- * BOUNDED, and the bound is not decoration. Both runtimes compile every rule of a language into
3886
- * a SINGLE alternating regular expression, so the cost is the pattern's total size: measured
3887
- * against the real escaping and matching logic, 1,000 rules cost ~0.9 s of CPU per synthesized
3888
- * sentence, 5,000 cost ~4.9 s, and around 10,000 `new RegExp` throws V8's pattern-size error.
3889
- *
3890
- * 200 is far above any real use — a product glossary is a handful of names — and far below where
3891
- * either cost begins. Found by a security review.
3892
- * NO LOWER BOUND on `phrase` or `as`, deliberately. Both consoles add an EMPTY rule row the
3893
- * moment someone clicks 'Add pronunciation', so a `min: 1` would make saving an agent with a
3894
- * half-typed row fail entirely — and the runtime already ignores a rule with no phrase. Dropping
3895
- * blank rows belongs in the consoles' save filters, not in a refusal here.
3896
- * @public
3897
- */
3898
- rules: VoicePronunciation[];
3899
- /**
3900
- * ISO-8601 timestamp with millisecond precision, e.g. '2026-07-10T14:12:30.123Z'.
3901
- * @public
3902
- */
3903
- updatedAt: string;
3904
- /**
3905
- * Who performed an action: an interactive user, an API key or an internal service.
3906
- * @public
3907
- */
3908
- updatedBy: Actor;
3909
- }
3910
- /**
3911
- * @public
3912
- */
3913
- export interface ListPronunciationDictionariesOutput {
3914
- dictionaries: PronunciationDictionary[];
3915
- /**
3916
- * Absent on the last page, and always absent when `limit` was not sent — there is then nothing left to continue from.
3917
- * @public
3918
- */
3919
- nextCursor?: string | undefined;
3920
- }
3921
3755
  /**
3922
3756
  * @public
3923
3757
  */
@@ -3968,65 +3802,6 @@ export interface PutAgentDeploymentOutput {
3968
3802
  */
3969
3803
  deployment: AgentDeploymentRoute[];
3970
3804
  }
3971
- /**
3972
- * @public
3973
- */
3974
- export interface PutPronunciationDictionaryInput {
3975
- company?: string | undefined;
3976
- /**
3977
- * BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
3978
- * constrained string rather than an enum: the offerable set is a property of the selected
3979
- * transcription vendor and changes with it, so an enumeration here would cap the set at whatever
3980
- * was known when the model was released.
3981
- * @public
3982
- */
3983
- code: string;
3984
- /**
3985
- * Pronunciation rules for one language.
3986
- *
3987
- * BOUNDED, and the bound is not decoration. Both runtimes compile every rule of a language into
3988
- * a SINGLE alternating regular expression, so the cost is the pattern's total size: measured
3989
- * against the real escaping and matching logic, 1,000 rules cost ~0.9 s of CPU per synthesized
3990
- * sentence, 5,000 cost ~4.9 s, and around 10,000 `new RegExp` throws V8's pattern-size error.
3991
- *
3992
- * 200 is far above any real use — a product glossary is a handful of names — and far below where
3993
- * either cost begins. Found by a security review.
3994
- * NO LOWER BOUND on `phrase` or `as`, deliberately. Both consoles add an EMPTY rule row the
3995
- * moment someone clicks 'Add pronunciation', so a `min: 1` would make saving an agent with a
3996
- * half-typed row fail entirely — and the runtime already ignores a rule with no phrase. Dropping
3997
- * blank rows belongs in the consoles' save filters, not in a refusal here.
3998
- * @public
3999
- */
4000
- rules: VoicePronunciation[];
4001
- /**
4002
- * Precondition: the `updatedAt` of the dictionary this edit was made against, echoed back
4003
- * from the PronunciationDictionary the caller read. When it does not match the stored value
4004
- * the write is refused with RevisionConflictException and the caller re-reads rather than
4005
- * overwriting an edit it never saw.
4006
- *
4007
- * A TIMESTAMP RATHER THAN AN INTEGER REVISION, unlike UpdateAgent: the dictionary already
4008
- * carries `updatedAt` on every read, so the round trip exists today and no stored record
4009
- * needs a new field to take part. The meaning is UpdateAgent's meaning — 'based on the
4010
- * version I read' — and the error is the same one.
4011
- *
4012
- * OPTIONAL, and ABSENCE MEANS LAST-WRITE-WINS: this operation shipped without a precondition,
4013
- * so making it mandatory would break every existing caller for a guarantee they can opt into.
4014
- * RevisionConflictException carries no `currentRevision` here — this resource is versioned by
4015
- * its timestamp, and the current one is on the dictionary a re-read returns.
4016
- * @public
4017
- */
4018
- expectedUpdatedAt?: string | undefined;
4019
- }
4020
- /**
4021
- * @public
4022
- */
4023
- export interface PutPronunciationDictionaryOutput {
4024
- /**
4025
- * Every pronunciation rule a company has written for one language.
4026
- * @public
4027
- */
4028
- dictionary: PronunciationDictionary;
4029
- }
4030
3805
  /**
4031
3806
  * @public
4032
3807
  */
@@ -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.30",
4
+ "version": "1.0.32",
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;