@wildix/wilma-agents-client 1.0.27 → 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 +46 -7
  7. package/dist-cjs/schemas/schemas_0.js +333 -99
  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 +45 -6
  14. package/dist-es/schemas/schemas_0.js +329 -95
  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 +286 -16
  18. package/dist-types/commands/DeletePronunciationDictionaryCommand.d.ts +82 -0
  19. package/dist-types/commands/GetAgentCommand.d.ts +143 -8
  20. package/dist-types/commands/GetAgentVersionCommand.d.ts +143 -8
  21. package/dist-types/commands/ListAgentsCommand.d.ts +144 -9
  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 +143 -8
  25. package/dist-types/commands/PutPronunciationDictionaryCommand.d.ts +117 -0
  26. package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +143 -8
  27. package/dist-types/commands/UpdateAgentCommand.d.ts +286 -16
  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 +159 -26
  31. package/dist-types/models/models_0.d.ts +913 -49
  32. package/dist-types/schemas/schemas_0.d.ts +29 -1
  33. package/package.json +2 -2
@@ -0,0 +1,82 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeletePronunciationDictionaryInput, DeletePronunciationDictionaryOutput } 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 DeletePronunciationDictionaryCommand}.
14
+ */
15
+ export interface DeletePronunciationDictionaryCommandInput extends DeletePronunciationDictionaryInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeletePronunciationDictionaryCommand}.
21
+ */
22
+ export interface DeletePronunciationDictionaryCommandOutput extends DeletePronunciationDictionaryOutput, __MetadataBearer {
23
+ }
24
+ declare const DeletePronunciationDictionaryCommand_base: {
25
+ new (input: DeletePronunciationDictionaryCommandInput): import("@smithy/core/client").CommandImpl<DeletePronunciationDictionaryCommandInput, DeletePronunciationDictionaryCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeletePronunciationDictionaryCommandInput): import("@smithy/core/client").CommandImpl<DeletePronunciationDictionaryCommandInput, DeletePronunciationDictionaryCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Deletes the dictionary for one language. Agents keep their own rules, and their suppressions
31
+ * become no-ops rather than errors — the two are edited independently.
32
+ *
33
+ * A LANGUAGE WITH NO DICTIONARY IS A SUCCESS, not a NotFoundException. The operation is
34
+ * @idempotent, which is a promise that a retry is safe, and a retried DELETE — the ordinary
35
+ * outcome of a timed-out response — would otherwise report failure for a row it had already
36
+ * removed. The output is empty either way, so there is nothing a caller could do with the
37
+ * distinction; it says the same thing the paragraph above says about suppressions.
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { WilmaAgentsClient, DeletePronunciationDictionaryCommand } from "@wildix/wilma-agents-client"; // ES Modules import
42
+ * // const { WilmaAgentsClient, DeletePronunciationDictionaryCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
43
+ * // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
44
+ * const config = {}; // type is WilmaAgentsClientConfig
45
+ * const client = new WilmaAgentsClient(config);
46
+ * const input = { // DeletePronunciationDictionaryInput
47
+ * company: "STRING_VALUE",
48
+ * code: "STRING_VALUE", // required
49
+ * };
50
+ * const command = new DeletePronunciationDictionaryCommand(input);
51
+ * const response = await client.send(command);
52
+ * // {};
53
+ *
54
+ * ```
55
+ *
56
+ * @param DeletePronunciationDictionaryCommandInput - {@link DeletePronunciationDictionaryCommandInput}
57
+ * @returns {@link DeletePronunciationDictionaryCommandOutput}
58
+ * @see {@link DeletePronunciationDictionaryCommandInput} for command's `input` shape.
59
+ * @see {@link DeletePronunciationDictionaryCommandOutput} for command's `response` shape.
60
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ *
64
+ * @throws {@link WilmaAgentsServiceException}
65
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
66
+ *
67
+ *
68
+ * @public
69
+ */
70
+ export declare class DeletePronunciationDictionaryCommand extends DeletePronunciationDictionaryCommand_base {
71
+ /** @internal type navigation helper, not in runtime. */
72
+ protected static __types: {
73
+ api: {
74
+ input: DeletePronunciationDictionaryInput;
75
+ output: {};
76
+ };
77
+ sdk: {
78
+ input: DeletePronunciationDictionaryCommandInput;
79
+ output: DeletePronunciationDictionaryCommandOutput;
80
+ };
81
+ };
82
+ }
@@ -51,6 +51,61 @@ declare const GetAgentCommand_base: {
51
51
  * // channels: { // AgentChannels
52
52
  * // voice: { // VoiceChannelSettings
53
53
  * // greeting: "STRING_VALUE",
54
+ * // backgroundSound: "STRING_VALUE",
55
+ * // speech: { // VoiceSpeechSettings
56
+ * // provider: "elevenlabs" || "google" || "amazon_polly", // required
57
+ * // languages: [ // VoiceLanguageList // required
58
+ * // { // VoiceLanguage
59
+ * // code: "STRING_VALUE", // required
60
+ * // provider: "elevenlabs" || "google" || "amazon_polly",
61
+ * // voice: "STRING_VALUE", // required
62
+ * // greeting: "STRING_VALUE",
63
+ * // isDefault: true || false,
64
+ * // instructions: "STRING_VALUE",
65
+ * // synthesis: { // VoiceSynthesisOptions
66
+ * // model: "STRING_VALUE",
67
+ * // speed: Number("float"),
68
+ * // stability: Number("float"),
69
+ * // similarity: Number("float"),
70
+ * // style: Number("float"),
71
+ * // speakerBoost: true || false,
72
+ * // pitch: Number("float"),
73
+ * // volumeGain: Number("float"),
74
+ * // },
75
+ * // credential: { // SecretRef
76
+ * // id: "STRING_VALUE", // required
77
+ * // },
78
+ * // pronunciations: [ // VoicePronunciationList
79
+ * // { // VoicePronunciation
80
+ * // phrase: "STRING_VALUE", // required
81
+ * // as: "STRING_VALUE", // required
82
+ * // encoding: "alias" || "ipa",
83
+ * // },
84
+ * // ],
85
+ * // pronunciationSuppressions: [ // VoicePronunciationSuppressionList
86
+ * // "STRING_VALUE",
87
+ * // ],
88
+ * // },
89
+ * // ],
90
+ * // autoDetect: true || false,
91
+ * // greetEveryLanguage: true || false,
92
+ * // transcription: { // VoiceTranscriptionSettings
93
+ * // vendor: "aws",
94
+ * // },
95
+ * // synthesis: {
96
+ * // model: "STRING_VALUE",
97
+ * // speed: Number("float"),
98
+ * // stability: Number("float"),
99
+ * // similarity: Number("float"),
100
+ * // style: Number("float"),
101
+ * // speakerBoost: true || false,
102
+ * // pitch: Number("float"),
103
+ * // volumeGain: Number("float"),
104
+ * // },
105
+ * // credential: {
106
+ * // id: "STRING_VALUE", // required
107
+ * // },
108
+ * // },
54
109
  * // interruptions: { // VoiceInterruptionSettings
55
110
  * // enabled: true || false, // required
56
111
  * // minWords: Number("int"),
@@ -100,8 +155,21 @@ declare const GetAgentCommand_base: {
100
155
  * // },
101
156
  * // assistant: { // AssistantChannelSettings
102
157
  * // default: true || false,
158
+ * // ui: { // AssistantUiSettings
159
+ * // welcome: { // AssistantWelcomeSettings
160
+ * // title: "STRING_VALUE",
161
+ * // subtitle: "STRING_VALUE",
162
+ * // },
163
+ * // commands: [ // AssistantQuickCommandsList
164
+ * // { // AssistantQuickCommand
165
+ * // title: "STRING_VALUE", // required
166
+ * // description: "STRING_VALUE",
167
+ * // prompt: "STRING_VALUE", // required
168
+ * // },
169
+ * // ],
170
+ * // placeholder: "STRING_VALUE",
171
+ * // },
103
172
  * // },
104
- * // workflow: {},
105
173
  * // },
106
174
  * // engine: { // AgentEngine Union: only one key present
107
175
  * // ai: { // AgentAiEngine
@@ -112,7 +180,6 @@ declare const GetAgentCommand_base: {
112
180
  * // { // AgentWorkflowStep
113
181
  * // id: "STRING_VALUE", // required
114
182
  * // label: "STRING_VALUE", // required
115
- * // summary: "STRING_VALUE",
116
183
  * // stage: "STRING_VALUE",
117
184
  * // handler: { // AgentWorkflowHandler Union: only one key present
118
185
  * // conversation: { // AgentWorkflowConversationHandler
@@ -153,6 +220,9 @@ declare const GetAgentCommand_base: {
153
220
  * // approval: { // AgentToolApproval
154
221
  * // prompt: "STRING_VALUE",
155
222
  * // },
223
+ * // channels: [ // AgentCapabilityChannelsList
224
+ * // "voice" || "chat" || "assistant",
225
+ * // ],
156
226
  * // annotations: [ // AgentToolAnnotationsList
157
227
  * // { // AgentToolAnnotation Union: only one key present
158
228
  * // tag: { // AgentToolTagAnnotation
@@ -180,6 +250,9 @@ declare const GetAgentCommand_base: {
180
250
  * // approval: {
181
251
  * // prompt: "STRING_VALUE",
182
252
  * // },
253
+ * // channels: [
254
+ * // "voice" || "chat" || "assistant",
255
+ * // ],
183
256
  * // annotations: [
184
257
  * // {// Union: only one key present
185
258
  * // tag: {
@@ -200,6 +273,9 @@ declare const GetAgentCommand_base: {
200
273
  * // kb: { // AgentKnowledgeBase
201
274
  * // knowledgeBaseId: "STRING_VALUE",
202
275
  * // instructions: "STRING_VALUE",
276
+ * // channels: [
277
+ * // "voice" || "chat" || "assistant",
278
+ * // ],
203
279
  * // annotations: [
204
280
  * // {// Union: only one key present
205
281
  * // tag: {
@@ -245,17 +321,23 @@ declare const GetAgentCommand_base: {
245
321
  * // city: "STRING_VALUE",
246
322
  * // timezone: "STRING_VALUE",
247
323
  * // },
324
+ * // channels: [
325
+ * // "voice" || "chat" || "assistant",
326
+ * // ],
248
327
  * // },
249
328
  * // webFetch: { // AgentWebFetchCapability
250
329
  * // allowedDomains: [
251
330
  * // "STRING_VALUE",
252
331
  * // ],
332
+ * // channels: [
333
+ * // "voice" || "chat" || "assistant",
334
+ * // ],
253
335
  * // },
254
336
  * // agent: { // AgentCallCapability
255
337
  * // agentId: "STRING_VALUE", // required
256
338
  * // agentVersion: Number("int"),
257
339
  * // access: { // AgentAccess
258
- * // visibility: "explicit" || "organization",
340
+ * // visibility: "explicit" || "organization" || "public",
259
341
  * // grants: [ // AgentGrantPrincipalList
260
342
  * // { // AgentGrantPrincipal Union: only one key present
261
343
  * // userId: "STRING_VALUE",
@@ -277,6 +359,7 @@ declare const GetAgentCommand_base: {
277
359
  * // },
278
360
  * // },
279
361
  * // ],
362
+ * // channels: "<AgentCapabilityChannelsList>",
280
363
  * // },
281
364
  * // handover: { // AgentHandoverCapability
282
365
  * // name: "STRING_VALUE",
@@ -290,6 +373,7 @@ declare const GetAgentCommand_base: {
290
373
  * // type: "handover" || "reply_and_handover" || "reply_instructed_and_handover",
291
374
  * // instructions: "STRING_VALUE",
292
375
  * // },
376
+ * // channels: "<AgentCapabilityChannelsList>",
293
377
  * // annotations: [
294
378
  * // {// Union: only one key present
295
379
  * // tag: {
@@ -312,6 +396,7 @@ declare const GetAgentCommand_base: {
312
396
  * // description: "STRING_VALUE",
313
397
  * // id: "STRING_VALUE", // required
314
398
  * // agentVersion: Number("int"),
399
+ * // channels: "<AgentCapabilityChannelsList>",
315
400
  * // annotations: [
316
401
  * // {// Union: only one key present
317
402
  * // tag: {
@@ -339,10 +424,12 @@ declare const GetAgentCommand_base: {
339
424
  * // type: "transfer" || "reply_and_transfer" || "reply_instructed_and_transfer",
340
425
  * // instructions: "STRING_VALUE",
341
426
  * // },
427
+ * // channels: "<AgentCapabilityChannelsList>",
342
428
  * // annotations: "<AgentToolAnnotationsList>",
343
429
  * // },
344
430
  * // suggestions: { // AgentSuggestionsCapability
345
431
  * // name: "STRING_VALUE",
432
+ * // channels: "<AgentCapabilityChannelsList>",
346
433
  * // annotations: "<AgentToolAnnotationsList>",
347
434
  * // },
348
435
  * // hangup: { // AgentHangupCapability
@@ -352,12 +439,14 @@ declare const GetAgentCommand_base: {
352
439
  * // type: "hangup" || "reply_and_hangup" || "reply_instructed_and_hangup",
353
440
  * // instructions: "STRING_VALUE",
354
441
  * // },
442
+ * // channels: "<AgentCapabilityChannelsList>",
355
443
  * // annotations: "<AgentToolAnnotationsList>",
356
444
  * // },
357
445
  * // wait: { // AgentWaitCapability
358
446
  * // name: "STRING_VALUE",
359
447
  * // description: "STRING_VALUE",
360
448
  * // message: "STRING_VALUE",
449
+ * // channels: "<AgentCapabilityChannelsList>",
361
450
  * // annotations: "<AgentToolAnnotationsList>",
362
451
  * // },
363
452
  * // },
@@ -422,6 +511,7 @@ declare const GetAgentCommand_base: {
422
511
  * // approval: {
423
512
  * // prompt: "STRING_VALUE",
424
513
  * // },
514
+ * // channels: "<AgentCapabilityChannelsList>",
425
515
  * // annotations: "<AgentToolAnnotationsList>",
426
516
  * // },
427
517
  * // connector: {
@@ -434,13 +524,14 @@ declare const GetAgentCommand_base: {
434
524
  * // approval: {
435
525
  * // prompt: "STRING_VALUE",
436
526
  * // },
527
+ * // channels: "<AgentCapabilityChannelsList>",
437
528
  * // annotations: "<AgentToolAnnotationsList>",
438
529
  * // },
439
530
  * // agent: {
440
531
  * // agentId: "STRING_VALUE", // required
441
532
  * // agentVersion: Number("int"),
442
533
  * // access: {
443
- * // visibility: "explicit" || "organization",
534
+ * // visibility: "explicit" || "organization" || "public",
444
535
  * // grants: [
445
536
  * // {// Union: only one key present
446
537
  * // userId: "STRING_VALUE",
@@ -462,6 +553,7 @@ declare const GetAgentCommand_base: {
462
553
  * // },
463
554
  * // },
464
555
  * // ],
556
+ * // channels: "<AgentCapabilityChannelsList>",
465
557
  * // },
466
558
  * // handover: {
467
559
  * // name: "STRING_VALUE",
@@ -475,6 +567,7 @@ declare const GetAgentCommand_base: {
475
567
  * // type: "handover" || "reply_and_handover" || "reply_instructed_and_handover",
476
568
  * // instructions: "STRING_VALUE",
477
569
  * // },
570
+ * // channels: "<AgentCapabilityChannelsList>",
478
571
  * // annotations: "<AgentToolAnnotationsList>",
479
572
  * // },
480
573
  * // delegation: {
@@ -482,6 +575,7 @@ declare const GetAgentCommand_base: {
482
575
  * // description: "STRING_VALUE",
483
576
  * // id: "STRING_VALUE", // required
484
577
  * // agentVersion: Number("int"),
578
+ * // channels: "<AgentCapabilityChannelsList>",
485
579
  * // annotations: "<AgentToolAnnotationsList>",
486
580
  * // },
487
581
  * // transfer: {
@@ -494,6 +588,7 @@ declare const GetAgentCommand_base: {
494
588
  * // type: "transfer" || "reply_and_transfer" || "reply_instructed_and_transfer",
495
589
  * // instructions: "STRING_VALUE",
496
590
  * // },
591
+ * // channels: "<AgentCapabilityChannelsList>",
497
592
  * // annotations: "<AgentToolAnnotationsList>",
498
593
  * // },
499
594
  * // hangup: {
@@ -503,12 +598,14 @@ declare const GetAgentCommand_base: {
503
598
  * // type: "hangup" || "reply_and_hangup" || "reply_instructed_and_hangup",
504
599
  * // instructions: "STRING_VALUE",
505
600
  * // },
601
+ * // channels: "<AgentCapabilityChannelsList>",
506
602
  * // annotations: "<AgentToolAnnotationsList>",
507
603
  * // },
508
604
  * // wait: {
509
605
  * // name: "STRING_VALUE",
510
606
  * // description: "STRING_VALUE",
511
607
  * // message: "STRING_VALUE",
608
+ * // channels: "<AgentCapabilityChannelsList>",
512
609
  * // annotations: "<AgentToolAnnotationsList>",
513
610
  * // },
514
611
  * // },
@@ -569,7 +666,6 @@ declare const GetAgentCommand_base: {
569
666
  * // {
570
667
  * // id: "STRING_VALUE", // required
571
668
  * // label: "STRING_VALUE", // required
572
- * // summary: "STRING_VALUE",
573
669
  * // stage: "STRING_VALUE",
574
670
  * // handler: {// Union: only one key present
575
671
  * // conversation: {
@@ -587,6 +683,7 @@ declare const GetAgentCommand_base: {
587
683
  * // kb: {
588
684
  * // knowledgeBaseId: "STRING_VALUE",
589
685
  * // instructions: "STRING_VALUE",
686
+ * // channels: "<AgentCapabilityChannelsList>",
590
687
  * // annotations: "<AgentToolAnnotationsList>",
591
688
  * // },
592
689
  * // sandbox: {// Union: only one key present
@@ -611,9 +708,11 @@ declare const GetAgentCommand_base: {
611
708
  * // city: "STRING_VALUE",
612
709
  * // timezone: "STRING_VALUE",
613
710
  * // },
711
+ * // channels: "<AgentCapabilityChannelsList>",
614
712
  * // },
615
713
  * // webFetch: {
616
714
  * // allowedDomains: "<DomainNameList>",
715
+ * // channels: "<AgentCapabilityChannelsList>",
617
716
  * // },
618
717
  * // agent: "<AgentCallCapability>",
619
718
  * // handover: "<AgentHandoverCapability>",
@@ -621,6 +720,7 @@ declare const GetAgentCommand_base: {
621
720
  * // transfer: "<AgentTransferCapability>",
622
721
  * // suggestions: {
623
722
  * // name: "STRING_VALUE",
723
+ * // channels: "<AgentCapabilityChannelsList>",
624
724
  * // annotations: "<AgentToolAnnotationsList>",
625
725
  * // },
626
726
  * // hangup: "<AgentHangupCapability>",
@@ -729,6 +829,43 @@ declare const GetAgentCommand_base: {
729
829
  * // layout: "flow" || "compact" || "stages",
730
830
  * // },
731
831
  * // },
832
+ * // guardrails: { // AgentGuardrails
833
+ * // input: { // AgentGuardrailInput
834
+ * // checks: [ // AgentGuardrailChecksList
835
+ * // { // AgentGuardrailCheck
836
+ * // name: "STRING_VALUE", // required
837
+ * // description: "STRING_VALUE",
838
+ * // kind: { // AgentGuardrailCheckKind Union: only one key present
839
+ * // preset: { // AgentGuardrailPresetCheck
840
+ * // preset: "jailbreak" || "offTopic" || "abuse" || "harmful" || "selfHarm" || "pii" || "secrets" || "regulatedAdvice", // required
841
+ * // notes: "STRING_VALUE",
842
+ * // },
843
+ * // custom: { // AgentGuardrailCustomCheck
844
+ * // instructions: "STRING_VALUE", // required
845
+ * // examples: [ // AgentGuardrailExamplesList
846
+ * // "STRING_VALUE",
847
+ * // ],
848
+ * // },
849
+ * // },
850
+ * // sensitivity: "low" || "medium" || "high",
851
+ * // action: { // AgentGuardrailAction Union: only one key present
852
+ * // observe: {},
853
+ * // redact: {},
854
+ * // block: { // AgentGuardrailBlockAction
855
+ * // message: "STRING_VALUE",
856
+ * // },
857
+ * // end: { // AgentGuardrailEndAction
858
+ * // message: "STRING_VALUE",
859
+ * // },
860
+ * // },
861
+ * // },
862
+ * // ],
863
+ * // model: "STRING_VALUE",
864
+ * // mode: "blocking" || "parallel",
865
+ * // errorMode: "open" || "closed",
866
+ * // window: "lastMessage" || "lastWithPrior",
867
+ * // },
868
+ * // },
732
869
  * // model: "STRING_VALUE",
733
870
  * // timeZone: "STRING_VALUE",
734
871
  * // artifacts: true || false,
@@ -757,9 +894,7 @@ declare const GetAgentCommand_base: {
757
894
  * // sqs: { // AgentSqsEngine
758
895
  * // url: "STRING_VALUE", // required
759
896
  * // key: "STRING_VALUE", // required
760
- * // secret: { // SecretRef
761
- * // id: "STRING_VALUE", // required
762
- * // },
897
+ * // secret: "<SecretRef>", // required
763
898
  * // },
764
899
  * // },
765
900
  * // settings: { // AgentSettings