@wildix/wilma-agents-client 1.0.28 → 1.0.29

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 (33) hide show
  1. package/dist-cjs/WilmaAgents.js +6 -0
  2. package/dist-cjs/commands/DeletePronunciationDictionaryCommand.js +20 -0
  3. package/dist-cjs/commands/ListPronunciationDictionariesCommand.js +20 -0
  4. package/dist-cjs/commands/PutPronunciationDictionaryCommand.js +20 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/models/enums.js +19 -7
  7. package/dist-cjs/schemas/schemas_0.js +233 -84
  8. package/dist-es/WilmaAgents.js +6 -0
  9. package/dist-es/commands/DeletePronunciationDictionaryCommand.js +16 -0
  10. package/dist-es/commands/ListPronunciationDictionariesCommand.js +16 -0
  11. package/dist-es/commands/PutPronunciationDictionaryCommand.js +16 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/models/enums.js +18 -6
  14. package/dist-es/schemas/schemas_0.js +230 -81
  15. package/dist-types/WilmaAgents.d.ts +25 -3
  16. package/dist-types/WilmaAgentsClient.d.ts +8 -5
  17. package/dist-types/commands/CreateAgentCommand.d.ts +212 -32
  18. package/dist-types/commands/DeletePronunciationDictionaryCommand.d.ts +82 -0
  19. package/dist-types/commands/GetAgentCommand.d.ts +106 -16
  20. package/dist-types/commands/GetAgentVersionCommand.d.ts +106 -16
  21. package/dist-types/commands/ListAgentsCommand.d.ts +107 -17
  22. package/dist-types/commands/ListAgentsNamesCommand.d.ts +18 -2
  23. package/dist-types/commands/ListPronunciationDictionariesCommand.d.ts +103 -0
  24. package/dist-types/commands/PublishAgentVersionCommand.d.ts +106 -16
  25. package/dist-types/commands/PutPronunciationDictionaryCommand.d.ts +117 -0
  26. package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +106 -16
  27. package/dist-types/commands/UpdateAgentCommand.d.ts +212 -32
  28. package/dist-types/commands/index.d.ts +3 -0
  29. package/dist-types/index.d.ts +3 -3
  30. package/dist-types/models/enums.d.ts +68 -26
  31. package/dist-types/models/models_0.d.ts +618 -49
  32. package/dist-types/schemas/schemas_0.d.ts +18 -1
  33. package/package.json +2 -2
@@ -38,7 +38,7 @@ declare const ListAgentsNamesCommand_base: {
38
38
  * const client = new WilmaAgentsClient(config);
39
39
  * const input = { // ListAgentsNamesInput
40
40
  * company: "STRING_VALUE",
41
- * channel: "voice" || "chat" || "assistant" || "workflow",
41
+ * channel: "voice" || "chat" || "assistant",
42
42
  * };
43
43
  * const command = new ListAgentsNamesCommand(input);
44
44
  * const response = await client.send(command);
@@ -47,11 +47,27 @@ declare const ListAgentsNamesCommand_base: {
47
47
  * // { // AgentInfo
48
48
  * // id: "STRING_VALUE", // required
49
49
  * // name: "STRING_VALUE", // required
50
+ * // picture: "STRING_VALUE",
50
51
  * // category: "STRING_VALUE",
51
52
  * // status: "draft" || "active", // required
52
53
  * // channels: [ // ChannelTypeList // required
53
- * // "voice" || "chat" || "assistant" || "workflow",
54
+ * // "voice" || "chat" || "assistant",
54
55
  * // ],
56
+ * // speechConfigured: true || false,
57
+ * // assistant: { // AssistantUiSettings
58
+ * // welcome: { // AssistantWelcomeSettings
59
+ * // title: "STRING_VALUE",
60
+ * // subtitle: "STRING_VALUE",
61
+ * // },
62
+ * // commands: [ // AssistantQuickCommandsList
63
+ * // { // AssistantQuickCommand
64
+ * // title: "STRING_VALUE", // required
65
+ * // description: "STRING_VALUE",
66
+ * // prompt: "STRING_VALUE", // required
67
+ * // },
68
+ * // ],
69
+ * // placeholder: "STRING_VALUE",
70
+ * // },
55
71
  * // latestVersion: Number("int"),
56
72
  * // },
57
73
  * // ],
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListPronunciationDictionariesInput, ListPronunciationDictionariesOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaAgentsClientResolvedConfig } from "../WilmaAgentsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPronunciationDictionariesCommand}.
14
+ */
15
+ export interface ListPronunciationDictionariesCommandInput extends ListPronunciationDictionariesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPronunciationDictionariesCommand}.
21
+ */
22
+ export interface ListPronunciationDictionariesCommandOutput extends ListPronunciationDictionariesOutput, __MetadataBearer {
23
+ }
24
+ declare const ListPronunciationDictionariesCommand_base: {
25
+ new (input: ListPronunciationDictionariesCommandInput): import("@smithy/core/client").CommandImpl<ListPronunciationDictionariesCommandInput, ListPronunciationDictionariesCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListPronunciationDictionariesCommandInput]): import("@smithy/core/client").CommandImpl<ListPronunciationDictionariesCommandInput, ListPronunciationDictionariesCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists the pronunciation dictionaries of the company.
31
+ *
32
+ * PAGINATED LIKE EVERY OTHER LIST IN THIS SERVICE, but with an ABSENT `limit` meaning EVERY
33
+ * LANGUAGE — which is what this operation always did, and what the management surface relies on:
34
+ * it shows the languages together and the set is bounded by the languages a company actually
35
+ * configures. So a caller that sends neither member is unaffected, and one that wants pages opts
36
+ * in. `nextCursor` is returned only while there is another page.
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { WilmaAgentsClient, ListPronunciationDictionariesCommand } from "@wildix/wilma-agents-client"; // ES Modules import
41
+ * // const { WilmaAgentsClient, ListPronunciationDictionariesCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
42
+ * // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
43
+ * const config = {}; // type is WilmaAgentsClientConfig
44
+ * const client = new WilmaAgentsClient(config);
45
+ * const input = { // ListPronunciationDictionariesInput
46
+ * company: "STRING_VALUE",
47
+ * limit: Number("int"),
48
+ * cursor: "STRING_VALUE",
49
+ * };
50
+ * const command = new ListPronunciationDictionariesCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // ListPronunciationDictionariesOutput
53
+ * // dictionaries: [ // PronunciationDictionaryList // required
54
+ * // { // PronunciationDictionary
55
+ * // id: "STRING_VALUE", // required
56
+ * // code: "STRING_VALUE", // required
57
+ * // rules: [ // VoicePronunciationList // required
58
+ * // { // VoicePronunciation
59
+ * // phrase: "STRING_VALUE", // required
60
+ * // as: "STRING_VALUE", // required
61
+ * // encoding: "alias" || "ipa",
62
+ * // },
63
+ * // ],
64
+ * // updatedAt: "STRING_VALUE", // required
65
+ * // updatedBy: { // Actor
66
+ * // type: "user" || "api_key" || "service", // required
67
+ * // id: "STRING_VALUE", // required
68
+ * // name: "STRING_VALUE",
69
+ * // },
70
+ * // },
71
+ * // ],
72
+ * // nextCursor: "STRING_VALUE",
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param ListPronunciationDictionariesCommandInput - {@link ListPronunciationDictionariesCommandInput}
78
+ * @returns {@link ListPronunciationDictionariesCommandOutput}
79
+ * @see {@link ListPronunciationDictionariesCommandInput} for command's `input` shape.
80
+ * @see {@link ListPronunciationDictionariesCommandOutput} for command's `response` shape.
81
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
82
+ *
83
+ * @throws {@link ValidationException} (client fault)
84
+ *
85
+ * @throws {@link WilmaAgentsServiceException}
86
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class ListPronunciationDictionariesCommand extends ListPronunciationDictionariesCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: ListPronunciationDictionariesInput;
96
+ output: ListPronunciationDictionariesOutput;
97
+ };
98
+ sdk: {
99
+ input: ListPronunciationDictionariesCommandInput;
100
+ output: ListPronunciationDictionariesCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -60,6 +60,61 @@ declare const PublishAgentVersionCommand_base: {
60
60
  * // channels: { // AgentChannels
61
61
  * // voice: { // VoiceChannelSettings
62
62
  * // greeting: "STRING_VALUE",
63
+ * // backgroundSound: "STRING_VALUE",
64
+ * // speech: { // VoiceSpeechSettings
65
+ * // provider: "elevenlabs" || "google" || "amazon_polly", // required
66
+ * // languages: [ // VoiceLanguageList // required
67
+ * // { // VoiceLanguage
68
+ * // code: "STRING_VALUE", // required
69
+ * // provider: "elevenlabs" || "google" || "amazon_polly",
70
+ * // voice: "STRING_VALUE", // required
71
+ * // greeting: "STRING_VALUE",
72
+ * // isDefault: true || false,
73
+ * // instructions: "STRING_VALUE",
74
+ * // synthesis: { // VoiceSynthesisOptions
75
+ * // model: "STRING_VALUE",
76
+ * // speed: Number("float"),
77
+ * // stability: Number("float"),
78
+ * // similarity: Number("float"),
79
+ * // style: Number("float"),
80
+ * // speakerBoost: true || false,
81
+ * // pitch: Number("float"),
82
+ * // volumeGain: Number("float"),
83
+ * // },
84
+ * // credential: { // SecretRef
85
+ * // id: "STRING_VALUE", // required
86
+ * // },
87
+ * // pronunciations: [ // VoicePronunciationList
88
+ * // { // VoicePronunciation
89
+ * // phrase: "STRING_VALUE", // required
90
+ * // as: "STRING_VALUE", // required
91
+ * // encoding: "alias" || "ipa",
92
+ * // },
93
+ * // ],
94
+ * // pronunciationSuppressions: [ // VoicePronunciationSuppressionList
95
+ * // "STRING_VALUE",
96
+ * // ],
97
+ * // },
98
+ * // ],
99
+ * // autoDetect: true || false,
100
+ * // greetEveryLanguage: true || false,
101
+ * // transcription: { // VoiceTranscriptionSettings
102
+ * // vendor: "aws",
103
+ * // },
104
+ * // synthesis: {
105
+ * // model: "STRING_VALUE",
106
+ * // speed: Number("float"),
107
+ * // stability: Number("float"),
108
+ * // similarity: Number("float"),
109
+ * // style: Number("float"),
110
+ * // speakerBoost: true || false,
111
+ * // pitch: Number("float"),
112
+ * // volumeGain: Number("float"),
113
+ * // },
114
+ * // credential: {
115
+ * // id: "STRING_VALUE", // required
116
+ * // },
117
+ * // },
63
118
  * // interruptions: { // VoiceInterruptionSettings
64
119
  * // enabled: true || false, // required
65
120
  * // minWords: Number("int"),
@@ -109,8 +164,21 @@ declare const PublishAgentVersionCommand_base: {
109
164
  * // },
110
165
  * // assistant: { // AssistantChannelSettings
111
166
  * // default: true || false,
167
+ * // ui: { // AssistantUiSettings
168
+ * // welcome: { // AssistantWelcomeSettings
169
+ * // title: "STRING_VALUE",
170
+ * // subtitle: "STRING_VALUE",
171
+ * // },
172
+ * // commands: [ // AssistantQuickCommandsList
173
+ * // { // AssistantQuickCommand
174
+ * // title: "STRING_VALUE", // required
175
+ * // description: "STRING_VALUE",
176
+ * // prompt: "STRING_VALUE", // required
177
+ * // },
178
+ * // ],
179
+ * // placeholder: "STRING_VALUE",
180
+ * // },
112
181
  * // },
113
- * // workflow: {},
114
182
  * // },
115
183
  * // engine: { // AgentEngine Union: only one key present
116
184
  * // ai: { // AgentAiEngine
@@ -161,6 +229,9 @@ declare const PublishAgentVersionCommand_base: {
161
229
  * // approval: { // AgentToolApproval
162
230
  * // prompt: "STRING_VALUE",
163
231
  * // },
232
+ * // channels: [ // AgentCapabilityChannelsList
233
+ * // "voice" || "chat" || "assistant",
234
+ * // ],
164
235
  * // annotations: [ // AgentToolAnnotationsList
165
236
  * // { // AgentToolAnnotation Union: only one key present
166
237
  * // tag: { // AgentToolTagAnnotation
@@ -188,6 +259,9 @@ declare const PublishAgentVersionCommand_base: {
188
259
  * // approval: {
189
260
  * // prompt: "STRING_VALUE",
190
261
  * // },
262
+ * // channels: [
263
+ * // "voice" || "chat" || "assistant",
264
+ * // ],
191
265
  * // annotations: [
192
266
  * // {// Union: only one key present
193
267
  * // tag: {
@@ -208,6 +282,9 @@ declare const PublishAgentVersionCommand_base: {
208
282
  * // kb: { // AgentKnowledgeBase
209
283
  * // knowledgeBaseId: "STRING_VALUE",
210
284
  * // instructions: "STRING_VALUE",
285
+ * // channels: [
286
+ * // "voice" || "chat" || "assistant",
287
+ * // ],
211
288
  * // annotations: [
212
289
  * // {// Union: only one key present
213
290
  * // tag: {
@@ -253,17 +330,23 @@ declare const PublishAgentVersionCommand_base: {
253
330
  * // city: "STRING_VALUE",
254
331
  * // timezone: "STRING_VALUE",
255
332
  * // },
333
+ * // channels: [
334
+ * // "voice" || "chat" || "assistant",
335
+ * // ],
256
336
  * // },
257
337
  * // webFetch: { // AgentWebFetchCapability
258
338
  * // allowedDomains: [
259
339
  * // "STRING_VALUE",
260
340
  * // ],
341
+ * // channels: [
342
+ * // "voice" || "chat" || "assistant",
343
+ * // ],
261
344
  * // },
262
345
  * // agent: { // AgentCallCapability
263
346
  * // agentId: "STRING_VALUE", // required
264
347
  * // agentVersion: Number("int"),
265
348
  * // access: { // AgentAccess
266
- * // visibility: "explicit" || "organization",
349
+ * // visibility: "explicit" || "organization" || "public",
267
350
  * // grants: [ // AgentGrantPrincipalList
268
351
  * // { // AgentGrantPrincipal Union: only one key present
269
352
  * // userId: "STRING_VALUE",
@@ -285,6 +368,7 @@ declare const PublishAgentVersionCommand_base: {
285
368
  * // },
286
369
  * // },
287
370
  * // ],
371
+ * // channels: "<AgentCapabilityChannelsList>",
288
372
  * // },
289
373
  * // handover: { // AgentHandoverCapability
290
374
  * // name: "STRING_VALUE",
@@ -298,6 +382,7 @@ declare const PublishAgentVersionCommand_base: {
298
382
  * // type: "handover" || "reply_and_handover" || "reply_instructed_and_handover",
299
383
  * // instructions: "STRING_VALUE",
300
384
  * // },
385
+ * // channels: "<AgentCapabilityChannelsList>",
301
386
  * // annotations: [
302
387
  * // {// Union: only one key present
303
388
  * // tag: {
@@ -320,6 +405,7 @@ declare const PublishAgentVersionCommand_base: {
320
405
  * // description: "STRING_VALUE",
321
406
  * // id: "STRING_VALUE", // required
322
407
  * // agentVersion: Number("int"),
408
+ * // channels: "<AgentCapabilityChannelsList>",
323
409
  * // annotations: [
324
410
  * // {// Union: only one key present
325
411
  * // tag: {
@@ -347,10 +433,12 @@ declare const PublishAgentVersionCommand_base: {
347
433
  * // type: "transfer" || "reply_and_transfer" || "reply_instructed_and_transfer",
348
434
  * // instructions: "STRING_VALUE",
349
435
  * // },
436
+ * // channels: "<AgentCapabilityChannelsList>",
350
437
  * // annotations: "<AgentToolAnnotationsList>",
351
438
  * // },
352
439
  * // suggestions: { // AgentSuggestionsCapability
353
440
  * // name: "STRING_VALUE",
441
+ * // channels: "<AgentCapabilityChannelsList>",
354
442
  * // annotations: "<AgentToolAnnotationsList>",
355
443
  * // },
356
444
  * // hangup: { // AgentHangupCapability
@@ -360,12 +448,14 @@ declare const PublishAgentVersionCommand_base: {
360
448
  * // type: "hangup" || "reply_and_hangup" || "reply_instructed_and_hangup",
361
449
  * // instructions: "STRING_VALUE",
362
450
  * // },
451
+ * // channels: "<AgentCapabilityChannelsList>",
363
452
  * // annotations: "<AgentToolAnnotationsList>",
364
453
  * // },
365
454
  * // wait: { // AgentWaitCapability
366
455
  * // name: "STRING_VALUE",
367
456
  * // description: "STRING_VALUE",
368
457
  * // message: "STRING_VALUE",
458
+ * // channels: "<AgentCapabilityChannelsList>",
369
459
  * // annotations: "<AgentToolAnnotationsList>",
370
460
  * // },
371
461
  * // },
@@ -430,6 +520,7 @@ declare const PublishAgentVersionCommand_base: {
430
520
  * // approval: {
431
521
  * // prompt: "STRING_VALUE",
432
522
  * // },
523
+ * // channels: "<AgentCapabilityChannelsList>",
433
524
  * // annotations: "<AgentToolAnnotationsList>",
434
525
  * // },
435
526
  * // connector: {
@@ -442,13 +533,14 @@ declare const PublishAgentVersionCommand_base: {
442
533
  * // approval: {
443
534
  * // prompt: "STRING_VALUE",
444
535
  * // },
536
+ * // channels: "<AgentCapabilityChannelsList>",
445
537
  * // annotations: "<AgentToolAnnotationsList>",
446
538
  * // },
447
539
  * // agent: {
448
540
  * // agentId: "STRING_VALUE", // required
449
541
  * // agentVersion: Number("int"),
450
542
  * // access: {
451
- * // visibility: "explicit" || "organization",
543
+ * // visibility: "explicit" || "organization" || "public",
452
544
  * // grants: [
453
545
  * // {// Union: only one key present
454
546
  * // userId: "STRING_VALUE",
@@ -470,6 +562,7 @@ declare const PublishAgentVersionCommand_base: {
470
562
  * // },
471
563
  * // },
472
564
  * // ],
565
+ * // channels: "<AgentCapabilityChannelsList>",
473
566
  * // },
474
567
  * // handover: {
475
568
  * // name: "STRING_VALUE",
@@ -483,6 +576,7 @@ declare const PublishAgentVersionCommand_base: {
483
576
  * // type: "handover" || "reply_and_handover" || "reply_instructed_and_handover",
484
577
  * // instructions: "STRING_VALUE",
485
578
  * // },
579
+ * // channels: "<AgentCapabilityChannelsList>",
486
580
  * // annotations: "<AgentToolAnnotationsList>",
487
581
  * // },
488
582
  * // delegation: {
@@ -490,6 +584,7 @@ declare const PublishAgentVersionCommand_base: {
490
584
  * // description: "STRING_VALUE",
491
585
  * // id: "STRING_VALUE", // required
492
586
  * // agentVersion: Number("int"),
587
+ * // channels: "<AgentCapabilityChannelsList>",
493
588
  * // annotations: "<AgentToolAnnotationsList>",
494
589
  * // },
495
590
  * // transfer: {
@@ -502,6 +597,7 @@ declare const PublishAgentVersionCommand_base: {
502
597
  * // type: "transfer" || "reply_and_transfer" || "reply_instructed_and_transfer",
503
598
  * // instructions: "STRING_VALUE",
504
599
  * // },
600
+ * // channels: "<AgentCapabilityChannelsList>",
505
601
  * // annotations: "<AgentToolAnnotationsList>",
506
602
  * // },
507
603
  * // hangup: {
@@ -511,12 +607,14 @@ declare const PublishAgentVersionCommand_base: {
511
607
  * // type: "hangup" || "reply_and_hangup" || "reply_instructed_and_hangup",
512
608
  * // instructions: "STRING_VALUE",
513
609
  * // },
610
+ * // channels: "<AgentCapabilityChannelsList>",
514
611
  * // annotations: "<AgentToolAnnotationsList>",
515
612
  * // },
516
613
  * // wait: {
517
614
  * // name: "STRING_VALUE",
518
615
  * // description: "STRING_VALUE",
519
616
  * // message: "STRING_VALUE",
617
+ * // channels: "<AgentCapabilityChannelsList>",
520
618
  * // annotations: "<AgentToolAnnotationsList>",
521
619
  * // },
522
620
  * // },
@@ -594,6 +692,7 @@ declare const PublishAgentVersionCommand_base: {
594
692
  * // kb: {
595
693
  * // knowledgeBaseId: "STRING_VALUE",
596
694
  * // instructions: "STRING_VALUE",
695
+ * // channels: "<AgentCapabilityChannelsList>",
597
696
  * // annotations: "<AgentToolAnnotationsList>",
598
697
  * // },
599
698
  * // sandbox: {// Union: only one key present
@@ -618,9 +717,11 @@ declare const PublishAgentVersionCommand_base: {
618
717
  * // city: "STRING_VALUE",
619
718
  * // timezone: "STRING_VALUE",
620
719
  * // },
720
+ * // channels: "<AgentCapabilityChannelsList>",
621
721
  * // },
622
722
  * // webFetch: {
623
723
  * // allowedDomains: "<DomainNameList>",
724
+ * // channels: "<AgentCapabilityChannelsList>",
624
725
  * // },
625
726
  * // agent: "<AgentCallCapability>",
626
727
  * // handover: "<AgentHandoverCapability>",
@@ -628,6 +729,7 @@ declare const PublishAgentVersionCommand_base: {
628
729
  * // transfer: "<AgentTransferCapability>",
629
730
  * // suggestions: {
630
731
  * // name: "STRING_VALUE",
732
+ * // channels: "<AgentCapabilityChannelsList>",
631
733
  * // annotations: "<AgentToolAnnotationsList>",
632
734
  * // },
633
735
  * // hangup: "<AgentHangupCapability>",
@@ -768,16 +870,6 @@ declare const PublishAgentVersionCommand_base: {
768
870
  * // },
769
871
  * // ],
770
872
  * // model: "STRING_VALUE",
771
- * // action: {// Union: only one key present
772
- * // observe: {},
773
- * // redact: {},
774
- * // block: {
775
- * // message: "STRING_VALUE",
776
- * // },
777
- * // end: {
778
- * // message: "STRING_VALUE",
779
- * // },
780
- * // },
781
873
  * // mode: "blocking" || "parallel",
782
874
  * // errorMode: "open" || "closed",
783
875
  * // window: "lastMessage" || "lastWithPrior",
@@ -811,9 +903,7 @@ declare const PublishAgentVersionCommand_base: {
811
903
  * // sqs: { // AgentSqsEngine
812
904
  * // url: "STRING_VALUE", // required
813
905
  * // key: "STRING_VALUE", // required
814
- * // secret: { // SecretRef
815
- * // id: "STRING_VALUE", // required
816
- * // },
906
+ * // secret: "<SecretRef>", // required
817
907
  * // },
818
908
  * // },
819
909
  * // settings: { // AgentSettings
@@ -0,0 +1,117 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { PutPronunciationDictionaryInput, PutPronunciationDictionaryOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaAgentsClientResolvedConfig } from "../WilmaAgentsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutPronunciationDictionaryCommand}.
14
+ */
15
+ export interface PutPronunciationDictionaryCommandInput extends PutPronunciationDictionaryInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutPronunciationDictionaryCommand}.
21
+ */
22
+ export interface PutPronunciationDictionaryCommandOutput extends PutPronunciationDictionaryOutput, __MetadataBearer {
23
+ }
24
+ declare const PutPronunciationDictionaryCommand_base: {
25
+ new (input: PutPronunciationDictionaryCommandInput): import("@smithy/core/client").CommandImpl<PutPronunciationDictionaryCommandInput, PutPronunciationDictionaryCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: PutPronunciationDictionaryCommandInput): import("@smithy/core/client").CommandImpl<PutPronunciationDictionaryCommandInput, PutPronunciationDictionaryCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Creates or replaces the whole rule list for one language.
31
+ *
32
+ * REPLACE RATHER THAN PATCH: the editor holds the entire list anyway, and a patch protocol for
33
+ * an unordered set of rules buys nothing but a second way to be wrong.
34
+ *
35
+ * REFUSES when the result would push any agent's merged list past the 200-rule limit, naming
36
+ * the agents. The dictionary is shared, so a rule added here can overflow an agent nobody
37
+ * editing it is looking at; truncating silently would drop rules from a running agent with no
38
+ * signal anywhere.
39
+ *
40
+ * OPTIMISTIC LOCKING via `expectedUpdatedAt`, for the same reason the write is a replace: two
41
+ * administrators editing one company dictionary otherwise silently lose one of the two edits,
42
+ * and every agent speaking that language loses the missing rules on its next call. Absent means
43
+ * last-write-wins, exactly as before this member existed.
44
+ * @example
45
+ * Use a bare-bones client and the command you need to make an API call.
46
+ * ```javascript
47
+ * import { WilmaAgentsClient, PutPronunciationDictionaryCommand } from "@wildix/wilma-agents-client"; // ES Modules import
48
+ * // const { WilmaAgentsClient, PutPronunciationDictionaryCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
49
+ * // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
50
+ * const config = {}; // type is WilmaAgentsClientConfig
51
+ * const client = new WilmaAgentsClient(config);
52
+ * const input = { // PutPronunciationDictionaryInput
53
+ * company: "STRING_VALUE",
54
+ * code: "STRING_VALUE", // required
55
+ * rules: [ // VoicePronunciationList // required
56
+ * { // VoicePronunciation
57
+ * phrase: "STRING_VALUE", // required
58
+ * as: "STRING_VALUE", // required
59
+ * encoding: "alias" || "ipa",
60
+ * },
61
+ * ],
62
+ * expectedUpdatedAt: "STRING_VALUE",
63
+ * };
64
+ * const command = new PutPronunciationDictionaryCommand(input);
65
+ * const response = await client.send(command);
66
+ * // { // PutPronunciationDictionaryOutput
67
+ * // dictionary: { // PronunciationDictionary
68
+ * // id: "STRING_VALUE", // required
69
+ * // code: "STRING_VALUE", // required
70
+ * // rules: [ // VoicePronunciationList // required
71
+ * // { // VoicePronunciation
72
+ * // phrase: "STRING_VALUE", // required
73
+ * // as: "STRING_VALUE", // required
74
+ * // encoding: "alias" || "ipa",
75
+ * // },
76
+ * // ],
77
+ * // updatedAt: "STRING_VALUE", // required
78
+ * // updatedBy: { // Actor
79
+ * // type: "user" || "api_key" || "service", // required
80
+ * // id: "STRING_VALUE", // required
81
+ * // name: "STRING_VALUE",
82
+ * // },
83
+ * // },
84
+ * // };
85
+ *
86
+ * ```
87
+ *
88
+ * @param PutPronunciationDictionaryCommandInput - {@link PutPronunciationDictionaryCommandInput}
89
+ * @returns {@link PutPronunciationDictionaryCommandOutput}
90
+ * @see {@link PutPronunciationDictionaryCommandInput} for command's `input` shape.
91
+ * @see {@link PutPronunciationDictionaryCommandOutput} for command's `response` shape.
92
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
93
+ *
94
+ * @throws {@link RevisionConflictException} (client fault)
95
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
96
+ *
97
+ * @throws {@link ValidationException} (client fault)
98
+ *
99
+ * @throws {@link WilmaAgentsServiceException}
100
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
101
+ *
102
+ *
103
+ * @public
104
+ */
105
+ export declare class PutPronunciationDictionaryCommand extends PutPronunciationDictionaryCommand_base {
106
+ /** @internal type navigation helper, not in runtime. */
107
+ protected static __types: {
108
+ api: {
109
+ input: PutPronunciationDictionaryInput;
110
+ output: PutPronunciationDictionaryOutput;
111
+ };
112
+ sdk: {
113
+ input: PutPronunciationDictionaryCommandInput;
114
+ output: PutPronunciationDictionaryCommandOutput;
115
+ };
116
+ };
117
+ }