@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
@@ -3,6 +3,7 @@ export * from "./CreateAgentApiKeyCommand";
3
3
  export * from "./CreateAgentCommand";
4
4
  export * from "./DeleteAgentApiKeyCommand";
5
5
  export * from "./DeleteAgentCommand";
6
+ export * from "./DeletePronunciationDictionaryCommand";
6
7
  export * from "./GetAgentCommand";
7
8
  export * from "./GetAgentDeploymentCommand";
8
9
  export * from "./GetAgentVersionCommand";
@@ -10,8 +11,10 @@ export * from "./ListAgentApiKeysCommand";
10
11
  export * from "./ListAgentVersionsCommand";
11
12
  export * from "./ListAgentsCommand";
12
13
  export * from "./ListAgentsNamesCommand";
14
+ export * from "./ListPronunciationDictionariesCommand";
13
15
  export * from "./PublishAgentVersionCommand";
14
16
  export * from "./PutAgentDeploymentCommand";
17
+ export * from "./PutPronunciationDictionaryCommand";
15
18
  export * from "./ResetAgentDeploymentCommand";
16
19
  export * from "./RestoreAgentVersionToDraftCommand";
17
20
  export * from "./UpdateAgentCommand";
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Unified agent platform covering the agent lifecycle: draft editing, immutable
3
3
  * published versions, deployment of new sessions across those versions and API keys.
4
- * Each agent serves one or more channels (voice, chat, assistant or workflow) with
5
- * per-channel settings; workflow agents have no delivery channel and run as
6
- * background tasks — invoked by other agents, by automations or over the API.
4
+ * Each agent serves one or more channels (voice, chat or assistant) with per-channel
5
+ * settings, and any agent can also run as a background task — invoked by other agents,
6
+ * by automations or over the API.
7
7
  *
8
8
  * @packageDocumentation
9
9
  */
@@ -11,11 +11,57 @@ export declare const AgentVisibility: {
11
11
  * Everyone in the organization can use the agent.
12
12
  */
13
13
  readonly ORGANIZATION: "organization";
14
+ /**
15
+ * Anyone, including people outside the organization and with no account at all: the agent is served to unauthenticated callers, and its AgentInfo can be read without a token (GetAgent on wilma-assistant). `grants` are ignored. Set this only for an agent meant to face the public — it can be reached by anyone who learns its id.
16
+ */
17
+ readonly PUBLIC: "public";
14
18
  };
15
19
  /**
16
20
  * @public
17
21
  */
18
22
  export type AgentVisibility = (typeof AgentVisibility)[keyof typeof AgentVisibility];
23
+ /**
24
+ * @public
25
+ * @enum
26
+ */
27
+ export declare const VoicePronunciationEncoding: {
28
+ /**
29
+ * A respelling substituted into the text before it reaches the provider. The only encoding version 1 applies.
30
+ */
31
+ readonly ALIAS: "alias";
32
+ /**
33
+ * Phonetic transcription. Declared so IPA can be enabled per provider later; ignored by the runtime today.
34
+ */
35
+ readonly IPA: "ipa";
36
+ };
37
+ /**
38
+ * @public
39
+ */
40
+ export type VoicePronunciationEncoding = (typeof VoicePronunciationEncoding)[keyof typeof VoicePronunciationEncoding];
41
+ /**
42
+ * @public
43
+ * @enum
44
+ */
45
+ export declare const VoiceSpeechProvider: {
46
+ readonly AMAZON_POLLY: "amazon_polly";
47
+ readonly ELEVENLABS: "elevenlabs";
48
+ readonly GOOGLE: "google";
49
+ };
50
+ /**
51
+ * @public
52
+ */
53
+ export type VoiceSpeechProvider = (typeof VoiceSpeechProvider)[keyof typeof VoiceSpeechProvider];
54
+ /**
55
+ * @public
56
+ * @enum
57
+ */
58
+ export declare const VoiceTranscriptionVendor: {
59
+ readonly AWS: "aws";
60
+ };
61
+ /**
62
+ * @public
63
+ */
64
+ export type VoiceTranscriptionVendor = (typeof VoiceTranscriptionVendor)[keyof typeof VoiceTranscriptionVendor];
19
65
  /**
20
66
  * @public
21
67
  * @enum
@@ -29,6 +75,28 @@ export declare const ActorType: {
29
75
  * @public
30
76
  */
31
77
  export type ActorType = (typeof ActorType)[keyof typeof ActorType];
78
+ /**
79
+ * @public
80
+ * @enum
81
+ */
82
+ export declare const ChannelType: {
83
+ /**
84
+ * In-app assistant (x-bees / x-hoppers / Collaboration).
85
+ */
86
+ readonly ASSISTANT: "assistant";
87
+ /**
88
+ * Bot member of chat conversations.
89
+ */
90
+ readonly CHAT: "chat";
91
+ /**
92
+ * Voice calls on the PBX.
93
+ */
94
+ readonly VOICE: "voice";
95
+ };
96
+ /**
97
+ * @public
98
+ */
99
+ export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
32
100
  /**
33
101
  * @public
34
102
  * @enum
@@ -213,6 +281,97 @@ export declare const WebSearchContextSize: {
213
281
  * @public
214
282
  */
215
283
  export type WebSearchContextSize = (typeof WebSearchContextSize)[keyof typeof WebSearchContextSize];
284
+ /**
285
+ * @public
286
+ * @enum
287
+ */
288
+ export declare const AgentGuardrailPreset: {
289
+ /**
290
+ * Slurs and sustained abuse aimed at the agent or at staff. Not the same as profanity in passing.
291
+ */
292
+ readonly ABUSE: "abuse";
293
+ /**
294
+ * Violence, hate, sexual content, weapons and illegal activity — the MLCommons-shaped set, minus self-harm, which is SELF_HARM because the right response to it is different.
295
+ */
296
+ readonly HARMFUL: "harmful";
297
+ /**
298
+ * Instruction override, role-play as an unrestricted persona, embedded fake dialogue, and encoding tricks. Written from the attack subtypes Azure publishes for Prompt Shields.
299
+ */
300
+ readonly JAILBREAK: "jailbreak";
301
+ /**
302
+ * Anything outside the agent's own stated purpose. The only preset that reads `engine.ai.instructions`, and meaningless without them.
303
+ */
304
+ readonly OFF_TOPIC: "offTopic";
305
+ /**
306
+ * Card numbers, national IDs and credentials the caller volunteers. Returns spans, so it is one of the two presets `redact` may be used with.
307
+ */
308
+ readonly PII: "pii";
309
+ /**
310
+ * Soliciting legal, medical or financial advice.
311
+ */
312
+ readonly REGULATED_ADVICE: "regulatedAdvice";
313
+ /**
314
+ * API keys, tokens and passwords pasted into a turn. Returns spans. Mostly an assistant and chat problem.
315
+ */
316
+ readonly SECRETS: "secrets";
317
+ /**
318
+ * Suicidal ideation, self-harm intent or instructions. Its own preset so that its action can differ: the default is a block whose message routes the caller to help, and it must never be `end`, which on voice hangs up on someone in distress.
319
+ */
320
+ readonly SELF_HARM: "selfHarm";
321
+ };
322
+ /**
323
+ * @public
324
+ */
325
+ export type AgentGuardrailPreset = (typeof AgentGuardrailPreset)[keyof typeof AgentGuardrailPreset];
326
+ /**
327
+ * @public
328
+ * @enum
329
+ */
330
+ export declare const AgentGuardrailSensitivity: {
331
+ readonly HIGH: "high";
332
+ readonly LOW: "low";
333
+ readonly MEDIUM: "medium";
334
+ };
335
+ /**
336
+ * @public
337
+ */
338
+ export type AgentGuardrailSensitivity = (typeof AgentGuardrailSensitivity)[keyof typeof AgentGuardrailSensitivity];
339
+ /**
340
+ * @public
341
+ * @enum
342
+ */
343
+ export declare const AgentGuardrailErrorMode: {
344
+ readonly CLOSED: "closed";
345
+ readonly OPEN: "open";
346
+ };
347
+ /**
348
+ * @public
349
+ */
350
+ export type AgentGuardrailErrorMode = (typeof AgentGuardrailErrorMode)[keyof typeof AgentGuardrailErrorMode];
351
+ /**
352
+ * @public
353
+ * @enum
354
+ */
355
+ export declare const AgentGuardrailMode: {
356
+ readonly BLOCKING: "blocking";
357
+ readonly PARALLEL: "parallel";
358
+ };
359
+ /**
360
+ * @public
361
+ */
362
+ export type AgentGuardrailMode = (typeof AgentGuardrailMode)[keyof typeof AgentGuardrailMode];
363
+ /**
364
+ * @public
365
+ * @enum
366
+ */
367
+ export declare const AgentGuardrailWindow: {
368
+ readonly LAST_MESSAGE: "lastMessage";
369
+ readonly LAST_WITH_PRIOR: "lastWithPrior";
370
+ };
371
+ /**
372
+ * @public
373
+ */
374
+ export type AgentGuardrailWindow = (typeof AgentGuardrailWindow)[keyof typeof AgentGuardrailWindow];
216
375
  /**
217
376
  * @public
218
377
  * @enum
@@ -335,29 +494,3 @@ export declare const AgentStatus: {
335
494
  * @public
336
495
  */
337
496
  export type AgentStatus = (typeof AgentStatus)[keyof typeof AgentStatus];
338
- /**
339
- * @public
340
- * @enum
341
- */
342
- export declare const ChannelType: {
343
- /**
344
- * In-app assistant (x-bees / x-hoppers / Collaboration).
345
- */
346
- readonly ASSISTANT: "assistant";
347
- /**
348
- * Bot member of chat conversations.
349
- */
350
- readonly CHAT: "chat";
351
- /**
352
- * Voice calls on the PBX.
353
- */
354
- readonly VOICE: "voice";
355
- /**
356
- * No delivery channel: runs as background tasks — invoked by other agents (call / delegation / handover), by automations or over the API.
357
- */
358
- readonly WORKFLOW: "workflow";
359
- };
360
- /**
361
- * @public
362
- */
363
- export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];