@wildix/wilma-agents-client 1.0.28 → 1.0.30
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 +6 -0
- package/dist-cjs/commands/DeletePronunciationDictionaryCommand.js +20 -0
- package/dist-cjs/commands/ListPronunciationDictionariesCommand.js +20 -0
- package/dist-cjs/commands/PutPronunciationDictionaryCommand.js +20 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/enums.js +20 -7
- package/dist-cjs/schemas/schemas_0.js +231 -76
- package/dist-es/WilmaAgents.js +6 -0
- package/dist-es/commands/DeletePronunciationDictionaryCommand.js +16 -0
- package/dist-es/commands/ListPronunciationDictionariesCommand.js +16 -0
- package/dist-es/commands/PutPronunciationDictionaryCommand.js +16 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +19 -6
- package/dist-es/schemas/schemas_0.js +228 -73
- package/dist-types/WilmaAgents.d.ts +25 -3
- package/dist-types/WilmaAgentsClient.d.ts +8 -5
- package/dist-types/commands/CreateAgentCommand.d.ts +212 -30
- package/dist-types/commands/DeletePronunciationDictionaryCommand.d.ts +82 -0
- package/dist-types/commands/GetAgentCommand.d.ts +106 -15
- package/dist-types/commands/GetAgentVersionCommand.d.ts +106 -15
- package/dist-types/commands/ListAgentsCommand.d.ts +106 -15
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +16 -0
- package/dist-types/commands/ListPronunciationDictionariesCommand.d.ts +103 -0
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +106 -15
- package/dist-types/commands/PutPronunciationDictionaryCommand.d.ts +117 -0
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +106 -15
- package/dist-types/commands/UpdateAgentCommand.d.ts +212 -30
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +3 -3
- package/dist-types/models/enums.d.ts +72 -26
- package/dist-types/models/models_0.d.ts +620 -40
- package/dist-types/schemas/schemas_0.d.ts +18 -0
- package/package.json +2 -2
|
@@ -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,6 +164,20 @@ 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
182
|
* // workflow: {},
|
|
114
183
|
* // },
|
|
@@ -161,6 +230,9 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
161
230
|
* // approval: { // AgentToolApproval
|
|
162
231
|
* // prompt: "STRING_VALUE",
|
|
163
232
|
* // },
|
|
233
|
+
* // channels: [ // AgentCapabilityChannelsList
|
|
234
|
+
* // "voice" || "chat" || "assistant" || "workflow",
|
|
235
|
+
* // ],
|
|
164
236
|
* // annotations: [ // AgentToolAnnotationsList
|
|
165
237
|
* // { // AgentToolAnnotation Union: only one key present
|
|
166
238
|
* // tag: { // AgentToolTagAnnotation
|
|
@@ -188,6 +260,9 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
188
260
|
* // approval: {
|
|
189
261
|
* // prompt: "STRING_VALUE",
|
|
190
262
|
* // },
|
|
263
|
+
* // channels: [
|
|
264
|
+
* // "voice" || "chat" || "assistant" || "workflow",
|
|
265
|
+
* // ],
|
|
191
266
|
* // annotations: [
|
|
192
267
|
* // {// Union: only one key present
|
|
193
268
|
* // tag: {
|
|
@@ -208,6 +283,9 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
208
283
|
* // kb: { // AgentKnowledgeBase
|
|
209
284
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
210
285
|
* // instructions: "STRING_VALUE",
|
|
286
|
+
* // channels: [
|
|
287
|
+
* // "voice" || "chat" || "assistant" || "workflow",
|
|
288
|
+
* // ],
|
|
211
289
|
* // annotations: [
|
|
212
290
|
* // {// Union: only one key present
|
|
213
291
|
* // tag: {
|
|
@@ -253,17 +331,23 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
253
331
|
* // city: "STRING_VALUE",
|
|
254
332
|
* // timezone: "STRING_VALUE",
|
|
255
333
|
* // },
|
|
334
|
+
* // channels: [
|
|
335
|
+
* // "voice" || "chat" || "assistant" || "workflow",
|
|
336
|
+
* // ],
|
|
256
337
|
* // },
|
|
257
338
|
* // webFetch: { // AgentWebFetchCapability
|
|
258
339
|
* // allowedDomains: [
|
|
259
340
|
* // "STRING_VALUE",
|
|
260
341
|
* // ],
|
|
342
|
+
* // channels: [
|
|
343
|
+
* // "voice" || "chat" || "assistant" || "workflow",
|
|
344
|
+
* // ],
|
|
261
345
|
* // },
|
|
262
346
|
* // agent: { // AgentCallCapability
|
|
263
347
|
* // agentId: "STRING_VALUE", // required
|
|
264
348
|
* // agentVersion: Number("int"),
|
|
265
349
|
* // access: { // AgentAccess
|
|
266
|
-
* // visibility: "explicit" || "organization",
|
|
350
|
+
* // visibility: "explicit" || "organization" || "public",
|
|
267
351
|
* // grants: [ // AgentGrantPrincipalList
|
|
268
352
|
* // { // AgentGrantPrincipal Union: only one key present
|
|
269
353
|
* // userId: "STRING_VALUE",
|
|
@@ -285,6 +369,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
285
369
|
* // },
|
|
286
370
|
* // },
|
|
287
371
|
* // ],
|
|
372
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
288
373
|
* // },
|
|
289
374
|
* // handover: { // AgentHandoverCapability
|
|
290
375
|
* // name: "STRING_VALUE",
|
|
@@ -298,6 +383,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
298
383
|
* // type: "handover" || "reply_and_handover" || "reply_instructed_and_handover",
|
|
299
384
|
* // instructions: "STRING_VALUE",
|
|
300
385
|
* // },
|
|
386
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
301
387
|
* // annotations: [
|
|
302
388
|
* // {// Union: only one key present
|
|
303
389
|
* // tag: {
|
|
@@ -320,6 +406,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
320
406
|
* // description: "STRING_VALUE",
|
|
321
407
|
* // id: "STRING_VALUE", // required
|
|
322
408
|
* // agentVersion: Number("int"),
|
|
409
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
323
410
|
* // annotations: [
|
|
324
411
|
* // {// Union: only one key present
|
|
325
412
|
* // tag: {
|
|
@@ -347,10 +434,12 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
347
434
|
* // type: "transfer" || "reply_and_transfer" || "reply_instructed_and_transfer",
|
|
348
435
|
* // instructions: "STRING_VALUE",
|
|
349
436
|
* // },
|
|
437
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
350
438
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
351
439
|
* // },
|
|
352
440
|
* // suggestions: { // AgentSuggestionsCapability
|
|
353
441
|
* // name: "STRING_VALUE",
|
|
442
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
354
443
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
355
444
|
* // },
|
|
356
445
|
* // hangup: { // AgentHangupCapability
|
|
@@ -360,12 +449,14 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
360
449
|
* // type: "hangup" || "reply_and_hangup" || "reply_instructed_and_hangup",
|
|
361
450
|
* // instructions: "STRING_VALUE",
|
|
362
451
|
* // },
|
|
452
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
363
453
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
364
454
|
* // },
|
|
365
455
|
* // wait: { // AgentWaitCapability
|
|
366
456
|
* // name: "STRING_VALUE",
|
|
367
457
|
* // description: "STRING_VALUE",
|
|
368
458
|
* // message: "STRING_VALUE",
|
|
459
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
369
460
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
370
461
|
* // },
|
|
371
462
|
* // },
|
|
@@ -430,6 +521,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
430
521
|
* // approval: {
|
|
431
522
|
* // prompt: "STRING_VALUE",
|
|
432
523
|
* // },
|
|
524
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
433
525
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
434
526
|
* // },
|
|
435
527
|
* // connector: {
|
|
@@ -442,13 +534,14 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
442
534
|
* // approval: {
|
|
443
535
|
* // prompt: "STRING_VALUE",
|
|
444
536
|
* // },
|
|
537
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
445
538
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
446
539
|
* // },
|
|
447
540
|
* // agent: {
|
|
448
541
|
* // agentId: "STRING_VALUE", // required
|
|
449
542
|
* // agentVersion: Number("int"),
|
|
450
543
|
* // access: {
|
|
451
|
-
* // visibility: "explicit" || "organization",
|
|
544
|
+
* // visibility: "explicit" || "organization" || "public",
|
|
452
545
|
* // grants: [
|
|
453
546
|
* // {// Union: only one key present
|
|
454
547
|
* // userId: "STRING_VALUE",
|
|
@@ -470,6 +563,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
470
563
|
* // },
|
|
471
564
|
* // },
|
|
472
565
|
* // ],
|
|
566
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
473
567
|
* // },
|
|
474
568
|
* // handover: {
|
|
475
569
|
* // name: "STRING_VALUE",
|
|
@@ -483,6 +577,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
483
577
|
* // type: "handover" || "reply_and_handover" || "reply_instructed_and_handover",
|
|
484
578
|
* // instructions: "STRING_VALUE",
|
|
485
579
|
* // },
|
|
580
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
486
581
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
487
582
|
* // },
|
|
488
583
|
* // delegation: {
|
|
@@ -490,6 +585,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
490
585
|
* // description: "STRING_VALUE",
|
|
491
586
|
* // id: "STRING_VALUE", // required
|
|
492
587
|
* // agentVersion: Number("int"),
|
|
588
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
493
589
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
494
590
|
* // },
|
|
495
591
|
* // transfer: {
|
|
@@ -502,6 +598,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
502
598
|
* // type: "transfer" || "reply_and_transfer" || "reply_instructed_and_transfer",
|
|
503
599
|
* // instructions: "STRING_VALUE",
|
|
504
600
|
* // },
|
|
601
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
505
602
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
506
603
|
* // },
|
|
507
604
|
* // hangup: {
|
|
@@ -511,12 +608,14 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
511
608
|
* // type: "hangup" || "reply_and_hangup" || "reply_instructed_and_hangup",
|
|
512
609
|
* // instructions: "STRING_VALUE",
|
|
513
610
|
* // },
|
|
611
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
514
612
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
515
613
|
* // },
|
|
516
614
|
* // wait: {
|
|
517
615
|
* // name: "STRING_VALUE",
|
|
518
616
|
* // description: "STRING_VALUE",
|
|
519
617
|
* // message: "STRING_VALUE",
|
|
618
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
520
619
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
521
620
|
* // },
|
|
522
621
|
* // },
|
|
@@ -594,6 +693,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
594
693
|
* // kb: {
|
|
595
694
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
596
695
|
* // instructions: "STRING_VALUE",
|
|
696
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
597
697
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
598
698
|
* // },
|
|
599
699
|
* // sandbox: {// Union: only one key present
|
|
@@ -618,9 +718,11 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
618
718
|
* // city: "STRING_VALUE",
|
|
619
719
|
* // timezone: "STRING_VALUE",
|
|
620
720
|
* // },
|
|
721
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
621
722
|
* // },
|
|
622
723
|
* // webFetch: {
|
|
623
724
|
* // allowedDomains: "<DomainNameList>",
|
|
725
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
624
726
|
* // },
|
|
625
727
|
* // agent: "<AgentCallCapability>",
|
|
626
728
|
* // handover: "<AgentHandoverCapability>",
|
|
@@ -628,6 +730,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
628
730
|
* // transfer: "<AgentTransferCapability>",
|
|
629
731
|
* // suggestions: {
|
|
630
732
|
* // name: "STRING_VALUE",
|
|
733
|
+
* // channels: "<AgentCapabilityChannelsList>",
|
|
631
734
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
632
735
|
* // },
|
|
633
736
|
* // hangup: "<AgentHangupCapability>",
|
|
@@ -768,16 +871,6 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
768
871
|
* // },
|
|
769
872
|
* // ],
|
|
770
873
|
* // 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
874
|
* // mode: "blocking" || "parallel",
|
|
782
875
|
* // errorMode: "open" || "closed",
|
|
783
876
|
* // window: "lastMessage" || "lastWithPrior",
|
|
@@ -811,9 +904,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
811
904
|
* // sqs: { // AgentSqsEngine
|
|
812
905
|
* // url: "STRING_VALUE", // required
|
|
813
906
|
* // key: "STRING_VALUE", // required
|
|
814
|
-
* // secret:
|
|
815
|
-
* // id: "STRING_VALUE", // required
|
|
816
|
-
* // },
|
|
907
|
+
* // secret: "<SecretRef>", // required
|
|
817
908
|
* // },
|
|
818
909
|
* // },
|
|
819
910
|
* // 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
|
+
}
|