@wildix/wilma-copilot-client 1.0.2

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 (157) hide show
  1. package/dist-cjs/WilmaCopilot.js +75 -0
  2. package/dist-cjs/WilmaCopilotClient.js +49 -0
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/AttachProfileResourceCommand.js +20 -0
  6. package/dist-cjs/commands/CompareProfileVersionsCommand.js +20 -0
  7. package/dist-cjs/commands/CreateAssetCommand.js +20 -0
  8. package/dist-cjs/commands/CreateAutomationCommand.js +20 -0
  9. package/dist-cjs/commands/CreateEvaluationCommand.js +20 -0
  10. package/dist-cjs/commands/CreateIntentCommand.js +20 -0
  11. package/dist-cjs/commands/CreateProfileCommand.js +20 -0
  12. package/dist-cjs/commands/DeleteAssetCommand.js +20 -0
  13. package/dist-cjs/commands/DeleteAutomationCommand.js +20 -0
  14. package/dist-cjs/commands/DeleteEvaluationCommand.js +20 -0
  15. package/dist-cjs/commands/DeleteIntentCommand.js +20 -0
  16. package/dist-cjs/commands/DeleteProfileCommand.js +20 -0
  17. package/dist-cjs/commands/DeleteProfileResourceCommand.js +20 -0
  18. package/dist-cjs/commands/GetAssetCommand.js +20 -0
  19. package/dist-cjs/commands/GetAutomationCommand.js +20 -0
  20. package/dist-cjs/commands/GetEvaluationCommand.js +20 -0
  21. package/dist-cjs/commands/GetIntentCommand.js +20 -0
  22. package/dist-cjs/commands/GetProfileCommand.js +20 -0
  23. package/dist-cjs/commands/GetProfileVersionCommand.js +20 -0
  24. package/dist-cjs/commands/ListAssetsCommand.js +20 -0
  25. package/dist-cjs/commands/ListAutomationsCommand.js +20 -0
  26. package/dist-cjs/commands/ListEvaluationsCommand.js +20 -0
  27. package/dist-cjs/commands/ListIntentsCommand.js +20 -0
  28. package/dist-cjs/commands/ListProfileVersionsCommand.js +20 -0
  29. package/dist-cjs/commands/ListProfilesCommand.js +20 -0
  30. package/dist-cjs/commands/PublishProfileVersionCommand.js +20 -0
  31. package/dist-cjs/commands/RestoreProfileVersionToDraftCommand.js +20 -0
  32. package/dist-cjs/commands/UpdateAssetCommand.js +20 -0
  33. package/dist-cjs/commands/UpdateAutomationCommand.js +20 -0
  34. package/dist-cjs/commands/UpdateEvaluationCommand.js +20 -0
  35. package/dist-cjs/commands/UpdateIntentCommand.js +20 -0
  36. package/dist-cjs/commands/UpdateProfileCommand.js +20 -0
  37. package/dist-cjs/commands/index.js +35 -0
  38. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  39. package/dist-cjs/endpoint/bdd.js +28 -0
  40. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  41. package/dist-cjs/extensionConfiguration.js +2 -0
  42. package/dist-cjs/index.js +13 -0
  43. package/dist-cjs/models/WilmaCopilotServiceException.js +12 -0
  44. package/dist-cjs/models/enums.js +95 -0
  45. package/dist-cjs/models/errors.js +287 -0
  46. package/dist-cjs/models/models_0.js +2 -0
  47. package/dist-cjs/runtimeConfig.browser.js +32 -0
  48. package/dist-cjs/runtimeConfig.js +41 -0
  49. package/dist-cjs/runtimeConfig.native.js +15 -0
  50. package/dist-cjs/runtimeConfig.shared.js +41 -0
  51. package/dist-cjs/runtimeExtensions.js +12 -0
  52. package/dist-cjs/schemas/schemas_0.js +1249 -0
  53. package/dist-es/WilmaCopilot.js +71 -0
  54. package/dist-es/WilmaCopilotClient.js +45 -0
  55. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  56. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  57. package/dist-es/commands/AttachProfileResourceCommand.js +16 -0
  58. package/dist-es/commands/CompareProfileVersionsCommand.js +16 -0
  59. package/dist-es/commands/CreateAssetCommand.js +16 -0
  60. package/dist-es/commands/CreateAutomationCommand.js +16 -0
  61. package/dist-es/commands/CreateEvaluationCommand.js +16 -0
  62. package/dist-es/commands/CreateIntentCommand.js +16 -0
  63. package/dist-es/commands/CreateProfileCommand.js +16 -0
  64. package/dist-es/commands/DeleteAssetCommand.js +16 -0
  65. package/dist-es/commands/DeleteAutomationCommand.js +16 -0
  66. package/dist-es/commands/DeleteEvaluationCommand.js +16 -0
  67. package/dist-es/commands/DeleteIntentCommand.js +16 -0
  68. package/dist-es/commands/DeleteProfileCommand.js +16 -0
  69. package/dist-es/commands/DeleteProfileResourceCommand.js +16 -0
  70. package/dist-es/commands/GetAssetCommand.js +16 -0
  71. package/dist-es/commands/GetAutomationCommand.js +16 -0
  72. package/dist-es/commands/GetEvaluationCommand.js +16 -0
  73. package/dist-es/commands/GetIntentCommand.js +16 -0
  74. package/dist-es/commands/GetProfileCommand.js +16 -0
  75. package/dist-es/commands/GetProfileVersionCommand.js +16 -0
  76. package/dist-es/commands/ListAssetsCommand.js +16 -0
  77. package/dist-es/commands/ListAutomationsCommand.js +16 -0
  78. package/dist-es/commands/ListEvaluationsCommand.js +16 -0
  79. package/dist-es/commands/ListIntentsCommand.js +16 -0
  80. package/dist-es/commands/ListProfileVersionsCommand.js +16 -0
  81. package/dist-es/commands/ListProfilesCommand.js +16 -0
  82. package/dist-es/commands/PublishProfileVersionCommand.js +16 -0
  83. package/dist-es/commands/RestoreProfileVersionToDraftCommand.js +16 -0
  84. package/dist-es/commands/UpdateAssetCommand.js +16 -0
  85. package/dist-es/commands/UpdateAutomationCommand.js +16 -0
  86. package/dist-es/commands/UpdateEvaluationCommand.js +16 -0
  87. package/dist-es/commands/UpdateIntentCommand.js +16 -0
  88. package/dist-es/commands/UpdateProfileCommand.js +16 -0
  89. package/dist-es/commands/index.js +32 -0
  90. package/dist-es/endpoint/EndpointParameters.js +12 -0
  91. package/dist-es/endpoint/bdd.js +25 -0
  92. package/dist-es/endpoint/endpointResolver.js +12 -0
  93. package/dist-es/extensionConfiguration.js +1 -0
  94. package/dist-es/index.js +8 -0
  95. package/dist-es/models/WilmaCopilotServiceException.js +8 -0
  96. package/dist-es/models/enums.js +92 -0
  97. package/dist-es/models/errors.js +265 -0
  98. package/dist-es/models/models_0.js +1 -0
  99. package/dist-es/runtimeConfig.browser.js +27 -0
  100. package/dist-es/runtimeConfig.js +36 -0
  101. package/dist-es/runtimeConfig.native.js +11 -0
  102. package/dist-es/runtimeConfig.shared.js +37 -0
  103. package/dist-es/runtimeExtensions.js +8 -0
  104. package/dist-es/schemas/schemas_0.js +1243 -0
  105. package/dist-types/WilmaCopilot.d.ts +254 -0
  106. package/dist-types/WilmaCopilotClient.d.ts +209 -0
  107. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  108. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  109. package/dist-types/commands/AttachProfileResourceCommand.d.ts +165 -0
  110. package/dist-types/commands/CompareProfileVersionsCommand.d.ts +91 -0
  111. package/dist-types/commands/CreateAssetCommand.d.ts +328 -0
  112. package/dist-types/commands/CreateAutomationCommand.d.ts +176 -0
  113. package/dist-types/commands/CreateEvaluationCommand.d.ts +196 -0
  114. package/dist-types/commands/CreateIntentCommand.d.ts +202 -0
  115. package/dist-types/commands/CreateProfileCommand.d.ts +181 -0
  116. package/dist-types/commands/DeleteAssetCommand.d.ts +83 -0
  117. package/dist-types/commands/DeleteAutomationCommand.d.ts +83 -0
  118. package/dist-types/commands/DeleteEvaluationCommand.d.ts +83 -0
  119. package/dist-types/commands/DeleteIntentCommand.d.ts +83 -0
  120. package/dist-types/commands/DeleteProfileCommand.d.ts +79 -0
  121. package/dist-types/commands/DeleteProfileResourceCommand.d.ts +147 -0
  122. package/dist-types/commands/GetAssetCommand.d.ts +213 -0
  123. package/dist-types/commands/GetAutomationCommand.d.ts +137 -0
  124. package/dist-types/commands/GetEvaluationCommand.d.ts +147 -0
  125. package/dist-types/commands/GetIntentCommand.d.ts +150 -0
  126. package/dist-types/commands/GetProfileCommand.d.ts +141 -0
  127. package/dist-types/commands/GetProfileVersionCommand.d.ts +82 -0
  128. package/dist-types/commands/ListAssetsCommand.d.ts +107 -0
  129. package/dist-types/commands/ListAutomationsCommand.d.ts +103 -0
  130. package/dist-types/commands/ListEvaluationsCommand.d.ts +104 -0
  131. package/dist-types/commands/ListIntentsCommand.d.ts +103 -0
  132. package/dist-types/commands/ListProfileVersionsCommand.d.ts +95 -0
  133. package/dist-types/commands/ListProfilesCommand.d.ts +110 -0
  134. package/dist-types/commands/PublishProfileVersionCommand.d.ts +87 -0
  135. package/dist-types/commands/RestoreProfileVersionToDraftCommand.d.ts +146 -0
  136. package/dist-types/commands/UpdateAssetCommand.d.ts +335 -0
  137. package/dist-types/commands/UpdateAutomationCommand.d.ts +183 -0
  138. package/dist-types/commands/UpdateEvaluationCommand.d.ts +203 -0
  139. package/dist-types/commands/UpdateIntentCommand.d.ts +209 -0
  140. package/dist-types/commands/UpdateProfileCommand.d.ts +160 -0
  141. package/dist-types/commands/index.d.ts +32 -0
  142. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  143. package/dist-types/endpoint/bdd.d.ts +2 -0
  144. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  145. package/dist-types/extensionConfiguration.d.ts +8 -0
  146. package/dist-types/index.d.ts +31 -0
  147. package/dist-types/models/WilmaCopilotServiceException.d.ts +14 -0
  148. package/dist-types/models/enums.d.ts +287 -0
  149. package/dist-types/models/errors.d.ts +239 -0
  150. package/dist-types/models/models_0.d.ts +2808 -0
  151. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  152. package/dist-types/runtimeConfig.d.ts +55 -0
  153. package/dist-types/runtimeConfig.native.d.ts +54 -0
  154. package/dist-types/runtimeConfig.shared.d.ts +32 -0
  155. package/dist-types/runtimeExtensions.d.ts +17 -0
  156. package/dist-types/schemas/schemas_0.d.ts +182 -0
  157. package/package.json +57 -0
@@ -0,0 +1,203 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateEvaluationInput, UpdateEvaluationOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateEvaluationCommand}.
14
+ */
15
+ export interface UpdateEvaluationCommandInput extends UpdateEvaluationInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateEvaluationCommand}.
21
+ */
22
+ export interface UpdateEvaluationCommandOutput extends UpdateEvaluationOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateEvaluationCommand_base: {
25
+ new (input: UpdateEvaluationCommandInput): import("@smithy/core/client").CommandImpl<UpdateEvaluationCommandInput, UpdateEvaluationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateEvaluationCommandInput): import("@smithy/core/client").CommandImpl<UpdateEvaluationCommandInput, UpdateEvaluationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Updates an evaluation. Published profile versions that captured this evaluation are unaffected; the change reaches live conversations when a profile referencing it is republished.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, UpdateEvaluationCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, UpdateEvaluationCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
36
+ * // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
37
+ * const config = {}; // type is WilmaCopilotClientConfig
38
+ * const client = new WilmaCopilotClient(config);
39
+ * const input = { // UpdateEvaluationInput
40
+ * name: "STRING_VALUE", // required
41
+ * description: "STRING_VALUE",
42
+ * instructions: "STRING_VALUE", // required
43
+ * fields: [ // CopilotFieldsList
44
+ * { // CopilotField
45
+ * id: "STRING_VALUE", // required
46
+ * name: "STRING_VALUE", // required
47
+ * description: "STRING_VALUE",
48
+ * optional: true || false,
49
+ * parameter: { // CopilotFieldParameter Union: only one key present
50
+ * text: { // CopilotTextParameter
51
+ * examples: [ // StringList
52
+ * "STRING_VALUE",
53
+ * ],
54
+ * },
55
+ * multiline: { // CopilotMultilineParameter
56
+ * examples: [
57
+ * "STRING_VALUE",
58
+ * ],
59
+ * },
60
+ * number: { // CopilotNumberParameter
61
+ * min: Number("int"),
62
+ * max: Number("int"),
63
+ * },
64
+ * selection: { // CopilotSelectionParameter
65
+ * options: [ // required
66
+ * "STRING_VALUE",
67
+ * ],
68
+ * multi: true || false,
69
+ * adaptive: true || false,
70
+ * adaptiveOptions: [
71
+ * "STRING_VALUE",
72
+ * ],
73
+ * },
74
+ * },
75
+ * },
76
+ * ],
77
+ * triggers: { // EvaluationTriggers
78
+ * interval: { // EvaluationIntervalTrigger
79
+ * enabled: true || false, // required
80
+ * intervalSeconds: Number("int"),
81
+ * },
82
+ * customerEndSpeaking: true || false,
83
+ * agentEndSpeaking: true || false,
84
+ * immediatelyOncePerSession: true || false,
85
+ * },
86
+ * window: "new_transcript" || "new_with_prior" || "full_transcript", // required
87
+ * model: "STRING_VALUE",
88
+ * group: "STRING_VALUE",
89
+ * conditions: "DOCUMENT_VALUE",
90
+ * company: "STRING_VALUE",
91
+ * evaluationId: "STRING_VALUE", // required
92
+ * revision: Number("int"), // required
93
+ * };
94
+ * const command = new UpdateEvaluationCommand(input);
95
+ * const response = await client.send(command);
96
+ * // { // UpdateEvaluationOutput
97
+ * // evaluation: { // Evaluation
98
+ * // name: "STRING_VALUE", // required
99
+ * // description: "STRING_VALUE",
100
+ * // instructions: "STRING_VALUE", // required
101
+ * // fields: [ // CopilotFieldsList
102
+ * // { // CopilotField
103
+ * // id: "STRING_VALUE", // required
104
+ * // name: "STRING_VALUE", // required
105
+ * // description: "STRING_VALUE",
106
+ * // optional: true || false,
107
+ * // parameter: { // CopilotFieldParameter Union: only one key present
108
+ * // text: { // CopilotTextParameter
109
+ * // examples: [ // StringList
110
+ * // "STRING_VALUE",
111
+ * // ],
112
+ * // },
113
+ * // multiline: { // CopilotMultilineParameter
114
+ * // examples: [
115
+ * // "STRING_VALUE",
116
+ * // ],
117
+ * // },
118
+ * // number: { // CopilotNumberParameter
119
+ * // min: Number("int"),
120
+ * // max: Number("int"),
121
+ * // },
122
+ * // selection: { // CopilotSelectionParameter
123
+ * // options: [ // required
124
+ * // "STRING_VALUE",
125
+ * // ],
126
+ * // multi: true || false,
127
+ * // adaptive: true || false,
128
+ * // adaptiveOptions: [
129
+ * // "STRING_VALUE",
130
+ * // ],
131
+ * // },
132
+ * // },
133
+ * // },
134
+ * // ],
135
+ * // triggers: { // EvaluationTriggers
136
+ * // interval: { // EvaluationIntervalTrigger
137
+ * // enabled: true || false, // required
138
+ * // intervalSeconds: Number("int"),
139
+ * // },
140
+ * // customerEndSpeaking: true || false,
141
+ * // agentEndSpeaking: true || false,
142
+ * // immediatelyOncePerSession: true || false,
143
+ * // },
144
+ * // window: "new_transcript" || "new_with_prior" || "full_transcript", // required
145
+ * // model: "STRING_VALUE",
146
+ * // group: "STRING_VALUE",
147
+ * // conditions: "DOCUMENT_VALUE",
148
+ * // createdAt: "STRING_VALUE", // required
149
+ * // createdBy: { // Actor
150
+ * // type: "user" || "api_key" || "service", // required
151
+ * // id: "STRING_VALUE", // required
152
+ * // name: "STRING_VALUE",
153
+ * // },
154
+ * // updatedAt: "STRING_VALUE",
155
+ * // updatedBy: {
156
+ * // type: "user" || "api_key" || "service", // required
157
+ * // id: "STRING_VALUE", // required
158
+ * // name: "STRING_VALUE",
159
+ * // },
160
+ * // id: "STRING_VALUE", // required
161
+ * // revision: Number("int"), // required
162
+ * // usageLast30Days: Number("int"),
163
+ * // },
164
+ * // };
165
+ *
166
+ * ```
167
+ *
168
+ * @param UpdateEvaluationCommandInput - {@link UpdateEvaluationCommandInput}
169
+ * @returns {@link UpdateEvaluationCommandOutput}
170
+ * @see {@link UpdateEvaluationCommandInput} for command's `input` shape.
171
+ * @see {@link UpdateEvaluationCommandOutput} for command's `response` shape.
172
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
173
+ *
174
+ * @throws {@link ForbiddenException} (client fault)
175
+ *
176
+ * @throws {@link ValidationException} (client fault)
177
+ *
178
+ * @throws {@link EvaluationNotFoundException} (client fault)
179
+ *
180
+ * @throws {@link EvaluationNonUniqueNameException} (client fault)
181
+ *
182
+ * @throws {@link RevisionConflictException} (client fault)
183
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
184
+ *
185
+ * @throws {@link WilmaCopilotServiceException}
186
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
187
+ *
188
+ *
189
+ * @public
190
+ */
191
+ export declare class UpdateEvaluationCommand extends UpdateEvaluationCommand_base {
192
+ /** @internal type navigation helper, not in runtime. */
193
+ protected static __types: {
194
+ api: {
195
+ input: UpdateEvaluationInput;
196
+ output: UpdateEvaluationOutput;
197
+ };
198
+ sdk: {
199
+ input: UpdateEvaluationCommandInput;
200
+ output: UpdateEvaluationCommandOutput;
201
+ };
202
+ };
203
+ }
@@ -0,0 +1,209 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateIntentInput, UpdateIntentOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateIntentCommand}.
14
+ */
15
+ export interface UpdateIntentCommandInput extends UpdateIntentInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateIntentCommand}.
21
+ */
22
+ export interface UpdateIntentCommandOutput extends UpdateIntentOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateIntentCommand_base: {
25
+ new (input: UpdateIntentCommandInput): import("@smithy/core/client").CommandImpl<UpdateIntentCommandInput, UpdateIntentCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateIntentCommandInput): import("@smithy/core/client").CommandImpl<UpdateIntentCommandInput, UpdateIntentCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Updates an intent. Published profile versions that captured this intent are unaffected; the change reaches live conversations when a profile referencing it is republished.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, UpdateIntentCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, UpdateIntentCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
36
+ * // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
37
+ * const config = {}; // type is WilmaCopilotClientConfig
38
+ * const client = new WilmaCopilotClient(config);
39
+ * const input = { // UpdateIntentInput
40
+ * name: "STRING_VALUE", // required
41
+ * description: "STRING_VALUE",
42
+ * handlers: { // IntentHandlers
43
+ * textMatch: { // IntentTextMatch
44
+ * enabled: true || false, // required
45
+ * options: [ // IntentTextMatchOptionsList
46
+ * { // IntentTextMatchOption
47
+ * id: "STRING_VALUE", // required
48
+ * value: "STRING_VALUE", // required
49
+ * mode: "exact" || "fuzzy" || "regex", // required
50
+ * },
51
+ * ],
52
+ * },
53
+ * aiMatch: { // IntentAiMatch
54
+ * enabled: true || false, // required
55
+ * instructions: "STRING_VALUE",
56
+ * fields: [ // CopilotFieldsList
57
+ * { // CopilotField
58
+ * id: "STRING_VALUE", // required
59
+ * name: "STRING_VALUE", // required
60
+ * description: "STRING_VALUE",
61
+ * optional: true || false,
62
+ * parameter: { // CopilotFieldParameter Union: only one key present
63
+ * text: { // CopilotTextParameter
64
+ * examples: [ // StringList
65
+ * "STRING_VALUE",
66
+ * ],
67
+ * },
68
+ * multiline: { // CopilotMultilineParameter
69
+ * examples: [
70
+ * "STRING_VALUE",
71
+ * ],
72
+ * },
73
+ * number: { // CopilotNumberParameter
74
+ * min: Number("int"),
75
+ * max: Number("int"),
76
+ * },
77
+ * selection: { // CopilotSelectionParameter
78
+ * options: [ // required
79
+ * "STRING_VALUE",
80
+ * ],
81
+ * multi: true || false,
82
+ * adaptive: true || false,
83
+ * adaptiveOptions: [
84
+ * "STRING_VALUE",
85
+ * ],
86
+ * },
87
+ * },
88
+ * },
89
+ * ],
90
+ * },
91
+ * },
92
+ * conditions: "DOCUMENT_VALUE",
93
+ * company: "STRING_VALUE",
94
+ * intentId: "STRING_VALUE", // required
95
+ * revision: Number("int"), // required
96
+ * };
97
+ * const command = new UpdateIntentCommand(input);
98
+ * const response = await client.send(command);
99
+ * // { // UpdateIntentOutput
100
+ * // intent: { // Intent
101
+ * // name: "STRING_VALUE", // required
102
+ * // description: "STRING_VALUE",
103
+ * // handlers: { // IntentHandlers
104
+ * // textMatch: { // IntentTextMatch
105
+ * // enabled: true || false, // required
106
+ * // options: [ // IntentTextMatchOptionsList
107
+ * // { // IntentTextMatchOption
108
+ * // id: "STRING_VALUE", // required
109
+ * // value: "STRING_VALUE", // required
110
+ * // mode: "exact" || "fuzzy" || "regex", // required
111
+ * // },
112
+ * // ],
113
+ * // },
114
+ * // aiMatch: { // IntentAiMatch
115
+ * // enabled: true || false, // required
116
+ * // instructions: "STRING_VALUE",
117
+ * // fields: [ // CopilotFieldsList
118
+ * // { // CopilotField
119
+ * // id: "STRING_VALUE", // required
120
+ * // name: "STRING_VALUE", // required
121
+ * // description: "STRING_VALUE",
122
+ * // optional: true || false,
123
+ * // parameter: { // CopilotFieldParameter Union: only one key present
124
+ * // text: { // CopilotTextParameter
125
+ * // examples: [ // StringList
126
+ * // "STRING_VALUE",
127
+ * // ],
128
+ * // },
129
+ * // multiline: { // CopilotMultilineParameter
130
+ * // examples: [
131
+ * // "STRING_VALUE",
132
+ * // ],
133
+ * // },
134
+ * // number: { // CopilotNumberParameter
135
+ * // min: Number("int"),
136
+ * // max: Number("int"),
137
+ * // },
138
+ * // selection: { // CopilotSelectionParameter
139
+ * // options: [ // required
140
+ * // "STRING_VALUE",
141
+ * // ],
142
+ * // multi: true || false,
143
+ * // adaptive: true || false,
144
+ * // adaptiveOptions: [
145
+ * // "STRING_VALUE",
146
+ * // ],
147
+ * // },
148
+ * // },
149
+ * // },
150
+ * // ],
151
+ * // },
152
+ * // },
153
+ * // conditions: "DOCUMENT_VALUE",
154
+ * // createdAt: "STRING_VALUE", // required
155
+ * // createdBy: { // Actor
156
+ * // type: "user" || "api_key" || "service", // required
157
+ * // id: "STRING_VALUE", // required
158
+ * // name: "STRING_VALUE",
159
+ * // },
160
+ * // updatedAt: "STRING_VALUE",
161
+ * // updatedBy: {
162
+ * // type: "user" || "api_key" || "service", // required
163
+ * // id: "STRING_VALUE", // required
164
+ * // name: "STRING_VALUE",
165
+ * // },
166
+ * // id: "STRING_VALUE", // required
167
+ * // revision: Number("int"), // required
168
+ * // usageLast30Days: Number("int"),
169
+ * // },
170
+ * // };
171
+ *
172
+ * ```
173
+ *
174
+ * @param UpdateIntentCommandInput - {@link UpdateIntentCommandInput}
175
+ * @returns {@link UpdateIntentCommandOutput}
176
+ * @see {@link UpdateIntentCommandInput} for command's `input` shape.
177
+ * @see {@link UpdateIntentCommandOutput} for command's `response` shape.
178
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
179
+ *
180
+ * @throws {@link ForbiddenException} (client fault)
181
+ *
182
+ * @throws {@link ValidationException} (client fault)
183
+ *
184
+ * @throws {@link IntentNotFoundException} (client fault)
185
+ *
186
+ * @throws {@link IntentNonUniqueNameException} (client fault)
187
+ *
188
+ * @throws {@link RevisionConflictException} (client fault)
189
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
190
+ *
191
+ * @throws {@link WilmaCopilotServiceException}
192
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
193
+ *
194
+ *
195
+ * @public
196
+ */
197
+ export declare class UpdateIntentCommand extends UpdateIntentCommand_base {
198
+ /** @internal type navigation helper, not in runtime. */
199
+ protected static __types: {
200
+ api: {
201
+ input: UpdateIntentInput;
202
+ output: UpdateIntentOutput;
203
+ };
204
+ sdk: {
205
+ input: UpdateIntentCommandInput;
206
+ output: UpdateIntentCommandOutput;
207
+ };
208
+ };
209
+ }
@@ -0,0 +1,160 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateProfileInput, UpdateProfileOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateProfileCommand}.
14
+ */
15
+ export interface UpdateProfileCommandInput extends UpdateProfileInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateProfileCommand}.
21
+ */
22
+ export interface UpdateProfileCommandOutput extends UpdateProfileOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateProfileCommand_base: {
25
+ new (input: UpdateProfileCommandInput): import("@smithy/core/client").CommandImpl<UpdateProfileCommandInput, UpdateProfileCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateProfileCommandInput): import("@smithy/core/client").CommandImpl<UpdateProfileCommandInput, UpdateProfileCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Updates profile metadata only. Attachments are changed through AttachProfileResource and DeleteProfileResource. Does not affect live conversations until the draft is published.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, UpdateProfileCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, UpdateProfileCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
36
+ * // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
37
+ * const config = {}; // type is WilmaCopilotClientConfig
38
+ * const client = new WilmaCopilotClient(config);
39
+ * const input = { // UpdateProfileInput
40
+ * name: "STRING_VALUE", // required
41
+ * description: "STRING_VALUE",
42
+ * channel: "calls" || "chats" || "any", // required
43
+ * conditions: "DOCUMENT_VALUE",
44
+ * access: { // CopilotAccess
45
+ * visibility: "explicit" || "organization",
46
+ * grants: [ // CopilotGrantPrincipalList
47
+ * { // CopilotGrantPrincipal Union: only one key present
48
+ * userId: "STRING_VALUE",
49
+ * groupId: "STRING_VALUE",
50
+ * },
51
+ * ],
52
+ * },
53
+ * company: "STRING_VALUE",
54
+ * profileId: "STRING_VALUE", // required
55
+ * revision: Number("int"), // required
56
+ * };
57
+ * const command = new UpdateProfileCommand(input);
58
+ * const response = await client.send(command);
59
+ * // { // UpdateProfileOutput
60
+ * // profile: { // Profile
61
+ * // name: "STRING_VALUE", // required
62
+ * // description: "STRING_VALUE",
63
+ * // channel: "calls" || "chats" || "any", // required
64
+ * // conditions: "DOCUMENT_VALUE",
65
+ * // access: { // CopilotAccess
66
+ * // visibility: "explicit" || "organization",
67
+ * // grants: [ // CopilotGrantPrincipalList
68
+ * // { // CopilotGrantPrincipal Union: only one key present
69
+ * // userId: "STRING_VALUE",
70
+ * // groupId: "STRING_VALUE",
71
+ * // },
72
+ * // ],
73
+ * // },
74
+ * // features: [ // CopilotFeaturesList
75
+ * // { // CopilotFeature Union: only one key present
76
+ * // csat: {},
77
+ * // sentiment: {},
78
+ * // talkRatio: {},
79
+ * // topics: {},
80
+ * // contextualKnowledgeAnswers: { // ContextualKnowledgeAnswersFeatureConfiguration
81
+ * // source: "knowledge_bases" || "agent", // required
82
+ * // knowledgeBaseIds: [ // KnowledgeBaseIdList
83
+ * // "STRING_VALUE",
84
+ * // ],
85
+ * // agentId: "STRING_VALUE",
86
+ * // mode: "suggest_action" || "automatic_answer", // required
87
+ * // },
88
+ * // },
89
+ * // ],
90
+ * // assets: [ // AssetIdList
91
+ * // "STRING_VALUE",
92
+ * // ],
93
+ * // intents: [ // IntentIdList
94
+ * // "STRING_VALUE",
95
+ * // ],
96
+ * // evaluations: [ // EvaluationIdList
97
+ * // "STRING_VALUE",
98
+ * // ],
99
+ * // automations: [ // AutomationIdList
100
+ * // "STRING_VALUE",
101
+ * // ],
102
+ * // createdAt: "STRING_VALUE", // required
103
+ * // createdBy: { // Actor
104
+ * // type: "user" || "api_key" || "service", // required
105
+ * // id: "STRING_VALUE", // required
106
+ * // name: "STRING_VALUE",
107
+ * // },
108
+ * // updatedAt: "STRING_VALUE",
109
+ * // updatedBy: {
110
+ * // type: "user" || "api_key" || "service", // required
111
+ * // id: "STRING_VALUE", // required
112
+ * // name: "STRING_VALUE",
113
+ * // },
114
+ * // id: "STRING_VALUE", // required
115
+ * // status: "draft" || "active", // required
116
+ * // revision: Number("int"), // required
117
+ * // latestVersion: Number("int"),
118
+ * // draftBaseVersion: Number("int"),
119
+ * // live: true || false, // required
120
+ * // },
121
+ * // };
122
+ *
123
+ * ```
124
+ *
125
+ * @param UpdateProfileCommandInput - {@link UpdateProfileCommandInput}
126
+ * @returns {@link UpdateProfileCommandOutput}
127
+ * @see {@link UpdateProfileCommandInput} for command's `input` shape.
128
+ * @see {@link UpdateProfileCommandOutput} for command's `response` shape.
129
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
130
+ *
131
+ * @throws {@link ForbiddenException} (client fault)
132
+ *
133
+ * @throws {@link ValidationException} (client fault)
134
+ *
135
+ * @throws {@link ProfileNotFoundException} (client fault)
136
+ *
137
+ * @throws {@link ProfileNonUniqueNameException} (client fault)
138
+ *
139
+ * @throws {@link RevisionConflictException} (client fault)
140
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
141
+ *
142
+ * @throws {@link WilmaCopilotServiceException}
143
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
144
+ *
145
+ *
146
+ * @public
147
+ */
148
+ export declare class UpdateProfileCommand extends UpdateProfileCommand_base {
149
+ /** @internal type navigation helper, not in runtime. */
150
+ protected static __types: {
151
+ api: {
152
+ input: UpdateProfileInput;
153
+ output: UpdateProfileOutput;
154
+ };
155
+ sdk: {
156
+ input: UpdateProfileCommandInput;
157
+ output: UpdateProfileCommandOutput;
158
+ };
159
+ };
160
+ }
@@ -0,0 +1,32 @@
1
+ export * from "./AttachProfileResourceCommand";
2
+ export * from "./CompareProfileVersionsCommand";
3
+ export * from "./CreateAssetCommand";
4
+ export * from "./CreateAutomationCommand";
5
+ export * from "./CreateEvaluationCommand";
6
+ export * from "./CreateIntentCommand";
7
+ export * from "./CreateProfileCommand";
8
+ export * from "./DeleteAssetCommand";
9
+ export * from "./DeleteAutomationCommand";
10
+ export * from "./DeleteEvaluationCommand";
11
+ export * from "./DeleteIntentCommand";
12
+ export * from "./DeleteProfileCommand";
13
+ export * from "./DeleteProfileResourceCommand";
14
+ export * from "./GetAssetCommand";
15
+ export * from "./GetAutomationCommand";
16
+ export * from "./GetEvaluationCommand";
17
+ export * from "./GetIntentCommand";
18
+ export * from "./GetProfileCommand";
19
+ export * from "./GetProfileVersionCommand";
20
+ export * from "./ListAssetsCommand";
21
+ export * from "./ListAutomationsCommand";
22
+ export * from "./ListEvaluationsCommand";
23
+ export * from "./ListIntentsCommand";
24
+ export * from "./ListProfileVersionsCommand";
25
+ export * from "./ListProfilesCommand";
26
+ export * from "./PublishProfileVersionCommand";
27
+ export * from "./RestoreProfileVersionToDraftCommand";
28
+ export * from "./UpdateAssetCommand";
29
+ export * from "./UpdateAutomationCommand";
30
+ export * from "./UpdateEvaluationCommand";
31
+ export * from "./UpdateIntentCommand";
32
+ export * from "./UpdateProfileCommand";
@@ -0,0 +1,41 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ clientContextParams?: {
7
+ env?: string | undefined | Provider<string | undefined>;
8
+ };
9
+ env?: string | undefined | Provider<string | undefined>;
10
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
11
+ }
12
+ /**
13
+ * @public
14
+ */
15
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
16
+ defaultSigningName: string;
17
+ };
18
+ /**
19
+ * @internal
20
+ */
21
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const commonParams: {
26
+ readonly env: {
27
+ readonly type: "clientContextParams";
28
+ readonly name: "env";
29
+ };
30
+ readonly endpoint: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "endpoint";
33
+ };
34
+ };
35
+ /**
36
+ * @internal
37
+ */
38
+ export interface EndpointParameters extends __EndpointParameters {
39
+ env?: string | undefined;
40
+ endpoint?: string | undefined;
41
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,8 @@
1
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
2
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
3
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface WilmaCopilotExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, HttpAuthExtensionConfiguration {
8
+ }