@wildix/wilma-agents-client 1.0.31 → 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 +18 -93
  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 +16 -91
  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 +18 -72
  12. package/dist-types/commands/GetAgentCommand.d.ts +9 -36
  13. package/dist-types/commands/GetAgentVersionCommand.d.ts +9 -36
  14. package/dist-types/commands/ListAgentsCommand.d.ts +9 -36
  15. package/dist-types/commands/ListAgentsNamesCommand.d.ts +0 -1
  16. package/dist-types/commands/PublishAgentVersionCommand.d.ts +9 -36
  17. package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +9 -36
  18. package/dist-types/commands/UpdateAgentCommand.d.ts +18 -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 +78 -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,16 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListPronunciationDictionaries$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPronunciationDictionariesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WilmaAgents", "ListPronunciationDictionaries", {})
13
- .n("WilmaAgentsClient", "ListPronunciationDictionariesCommand")
14
- .sc(ListPronunciationDictionaries$)
15
- .build() {
16
- }
@@ -1,16 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
4
- import { PutPronunciationDictionary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutPronunciationDictionaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WilmaAgents", "PutPronunciationDictionary", {})
13
- .n("WilmaAgentsClient", "PutPronunciationDictionaryCommand")
14
- .sc(PutPronunciationDictionary$)
15
- .build() {
16
- }
@@ -1,82 +0,0 @@
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
- }
@@ -1,103 +0,0 @@
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
- }
@@ -1,117 +0,0 @@
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
- }