@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,335 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateAssetInput, UpdateAssetOutput } 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 UpdateAssetCommand}.
14
+ */
15
+ export interface UpdateAssetCommandInput extends UpdateAssetInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateAssetCommand}.
21
+ */
22
+ export interface UpdateAssetCommandOutput extends UpdateAssetOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateAssetCommand_base: {
25
+ new (input: UpdateAssetCommandInput): import("@smithy/core/client").CommandImpl<UpdateAssetCommandInput, UpdateAssetCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateAssetCommandInput): import("@smithy/core/client").CommandImpl<UpdateAssetCommandInput, UpdateAssetCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Updates an asset. Published profile versions that captured this asset 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, UpdateAssetCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, UpdateAssetCommand } = 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 = { // UpdateAssetInput
40
+ * key: "STRING_VALUE",
41
+ * name: "STRING_VALUE", // required
42
+ * description: "STRING_VALUE",
43
+ * enabled: true || false,
44
+ * type: "guidance" || "next_best_action" || "battle_card" || "playbook" || "knowledge",
45
+ * title: "STRING_VALUE",
46
+ * subtitle: "STRING_VALUE",
47
+ * markdown: "STRING_VALUE",
48
+ * footer: "STRING_VALUE",
49
+ * severity: "neutral" || "success" || "warning" || "danger",
50
+ * icon: "info" || "lightbulb" || "shield" || "book_open" || "alert" || "sparkles",
51
+ * sticky: true || false,
52
+ * content: { // AssetContent Union: only one key present
53
+ * card: { // AssetCard
54
+ * content: { // CardContent Union: only one key present
55
+ * static: { // CardStaticContent
56
+ * markdown: "STRING_VALUE",
57
+ * },
58
+ * agent: { // CardAgentContent
59
+ * agentId: "STRING_VALUE", // required
60
+ * variables: [ // CopilotVariableBindingsList
61
+ * { // CopilotVariableBinding
62
+ * name: "STRING_VALUE", // required
63
+ * type: "STRING_VALUE",
64
+ * optional: true || false,
65
+ * variant: "auto" || "guided" || "predefined", // required
66
+ * description: "STRING_VALUE",
67
+ * value: "STRING_VALUE",
68
+ * },
69
+ * ],
70
+ * },
71
+ * },
72
+ * },
73
+ * playbook: { // AssetPlaybook
74
+ * goal: "STRING_VALUE",
75
+ * steps: [ // PlaybookStepsList
76
+ * { // PlaybookStep
77
+ * id: "STRING_VALUE", // required
78
+ * title: "STRING_VALUE", // required
79
+ * markdown: "STRING_VALUE",
80
+ * required: true || false,
81
+ * autoComplete: true || false,
82
+ * autoCompleteInstructions: "STRING_VALUE",
83
+ * },
84
+ * ],
85
+ * completionCriteria: { // PlaybookCompletionCriteria Union: only one key present
86
+ * manual: { // PlaybookManualCompletion
87
+ * allowAgentMarkComplete: true || false, // required
88
+ * },
89
+ * semantic: { // PlaybookSemanticCompletion
90
+ * description: "STRING_VALUE", // required
91
+ * examples: [ // StringList
92
+ * "STRING_VALUE",
93
+ * ],
94
+ * },
95
+ * },
96
+ * },
97
+ * smartAction: { // AssetSmartActions
98
+ * actions: [ // SmartActionItemsList // required
99
+ * { // SmartActionItem
100
+ * id: "STRING_VALUE", // required
101
+ * label: "STRING_VALUE", // required
102
+ * description: "STRING_VALUE",
103
+ * action: { // SmartAction Union: only one key present
104
+ * openUrl: { // SmartActionOpenUrl
105
+ * url: "STRING_VALUE", // required
106
+ * openInNewTab: true || false,
107
+ * },
108
+ * runAgent: { // SmartActionRunAgent
109
+ * agentId: "STRING_VALUE", // required
110
+ * variables: [
111
+ * {
112
+ * name: "STRING_VALUE", // required
113
+ * type: "STRING_VALUE",
114
+ * optional: true || false,
115
+ * variant: "auto" || "guided" || "predefined", // required
116
+ * description: "STRING_VALUE",
117
+ * value: "STRING_VALUE",
118
+ * },
119
+ * ],
120
+ * resultMode: "show_card" || "silent", // required
121
+ * requireConfirmation: true || false,
122
+ * },
123
+ * runTool: { // SmartActionRunTool
124
+ * toolId: "STRING_VALUE", // required
125
+ * variables: [
126
+ * {
127
+ * name: "STRING_VALUE", // required
128
+ * type: "STRING_VALUE",
129
+ * optional: true || false,
130
+ * variant: "auto" || "guided" || "predefined", // required
131
+ * description: "STRING_VALUE",
132
+ * value: "STRING_VALUE",
133
+ * },
134
+ * ],
135
+ * resultMode: "show_card" || "silent", // required
136
+ * requireConfirmation: true || false,
137
+ * },
138
+ * transfer: { // SmartActionTransfer
139
+ * destination: "STRING_VALUE", // required
140
+ * },
141
+ * handover: { // SmartActionHandover
142
+ * handoverVariant: "agent" || "service", // required
143
+ * assignee: "STRING_VALUE",
144
+ * service: "STRING_VALUE",
145
+ * },
146
+ * },
147
+ * },
148
+ * ],
149
+ * },
150
+ * knowledge: { // AssetKnowledge
151
+ * summary: "STRING_VALUE",
152
+ * sources: "STRING_VALUE",
153
+ * },
154
+ * },
155
+ * conditions: "DOCUMENT_VALUE",
156
+ * company: "STRING_VALUE",
157
+ * assetId: "STRING_VALUE", // required
158
+ * revision: Number("int"), // required
159
+ * };
160
+ * const command = new UpdateAssetCommand(input);
161
+ * const response = await client.send(command);
162
+ * // { // UpdateAssetOutput
163
+ * // asset: { // Asset
164
+ * // key: "STRING_VALUE",
165
+ * // name: "STRING_VALUE", // required
166
+ * // description: "STRING_VALUE",
167
+ * // enabled: true || false,
168
+ * // type: "guidance" || "next_best_action" || "battle_card" || "playbook" || "knowledge",
169
+ * // title: "STRING_VALUE",
170
+ * // subtitle: "STRING_VALUE",
171
+ * // markdown: "STRING_VALUE",
172
+ * // footer: "STRING_VALUE",
173
+ * // severity: "neutral" || "success" || "warning" || "danger",
174
+ * // icon: "info" || "lightbulb" || "shield" || "book_open" || "alert" || "sparkles",
175
+ * // sticky: true || false,
176
+ * // content: { // AssetContent Union: only one key present
177
+ * // card: { // AssetCard
178
+ * // content: { // CardContent Union: only one key present
179
+ * // static: { // CardStaticContent
180
+ * // markdown: "STRING_VALUE",
181
+ * // },
182
+ * // agent: { // CardAgentContent
183
+ * // agentId: "STRING_VALUE", // required
184
+ * // variables: [ // CopilotVariableBindingsList
185
+ * // { // CopilotVariableBinding
186
+ * // name: "STRING_VALUE", // required
187
+ * // type: "STRING_VALUE",
188
+ * // optional: true || false,
189
+ * // variant: "auto" || "guided" || "predefined", // required
190
+ * // description: "STRING_VALUE",
191
+ * // value: "STRING_VALUE",
192
+ * // },
193
+ * // ],
194
+ * // },
195
+ * // },
196
+ * // },
197
+ * // playbook: { // AssetPlaybook
198
+ * // goal: "STRING_VALUE",
199
+ * // steps: [ // PlaybookStepsList
200
+ * // { // PlaybookStep
201
+ * // id: "STRING_VALUE", // required
202
+ * // title: "STRING_VALUE", // required
203
+ * // markdown: "STRING_VALUE",
204
+ * // required: true || false,
205
+ * // autoComplete: true || false,
206
+ * // autoCompleteInstructions: "STRING_VALUE",
207
+ * // },
208
+ * // ],
209
+ * // completionCriteria: { // PlaybookCompletionCriteria Union: only one key present
210
+ * // manual: { // PlaybookManualCompletion
211
+ * // allowAgentMarkComplete: true || false, // required
212
+ * // },
213
+ * // semantic: { // PlaybookSemanticCompletion
214
+ * // description: "STRING_VALUE", // required
215
+ * // examples: [ // StringList
216
+ * // "STRING_VALUE",
217
+ * // ],
218
+ * // },
219
+ * // },
220
+ * // },
221
+ * // smartAction: { // AssetSmartActions
222
+ * // actions: [ // SmartActionItemsList // required
223
+ * // { // SmartActionItem
224
+ * // id: "STRING_VALUE", // required
225
+ * // label: "STRING_VALUE", // required
226
+ * // description: "STRING_VALUE",
227
+ * // action: { // SmartAction Union: only one key present
228
+ * // openUrl: { // SmartActionOpenUrl
229
+ * // url: "STRING_VALUE", // required
230
+ * // openInNewTab: true || false,
231
+ * // },
232
+ * // runAgent: { // SmartActionRunAgent
233
+ * // agentId: "STRING_VALUE", // required
234
+ * // variables: [
235
+ * // {
236
+ * // name: "STRING_VALUE", // required
237
+ * // type: "STRING_VALUE",
238
+ * // optional: true || false,
239
+ * // variant: "auto" || "guided" || "predefined", // required
240
+ * // description: "STRING_VALUE",
241
+ * // value: "STRING_VALUE",
242
+ * // },
243
+ * // ],
244
+ * // resultMode: "show_card" || "silent", // required
245
+ * // requireConfirmation: true || false,
246
+ * // },
247
+ * // runTool: { // SmartActionRunTool
248
+ * // toolId: "STRING_VALUE", // required
249
+ * // variables: [
250
+ * // {
251
+ * // name: "STRING_VALUE", // required
252
+ * // type: "STRING_VALUE",
253
+ * // optional: true || false,
254
+ * // variant: "auto" || "guided" || "predefined", // required
255
+ * // description: "STRING_VALUE",
256
+ * // value: "STRING_VALUE",
257
+ * // },
258
+ * // ],
259
+ * // resultMode: "show_card" || "silent", // required
260
+ * // requireConfirmation: true || false,
261
+ * // },
262
+ * // transfer: { // SmartActionTransfer
263
+ * // destination: "STRING_VALUE", // required
264
+ * // },
265
+ * // handover: { // SmartActionHandover
266
+ * // handoverVariant: "agent" || "service", // required
267
+ * // assignee: "STRING_VALUE",
268
+ * // service: "STRING_VALUE",
269
+ * // },
270
+ * // },
271
+ * // },
272
+ * // ],
273
+ * // },
274
+ * // knowledge: { // AssetKnowledge
275
+ * // summary: "STRING_VALUE",
276
+ * // sources: "STRING_VALUE",
277
+ * // },
278
+ * // },
279
+ * // conditions: "DOCUMENT_VALUE",
280
+ * // createdAt: "STRING_VALUE", // required
281
+ * // createdBy: { // Actor
282
+ * // type: "user" || "api_key" || "service", // required
283
+ * // id: "STRING_VALUE", // required
284
+ * // name: "STRING_VALUE",
285
+ * // },
286
+ * // updatedAt: "STRING_VALUE",
287
+ * // updatedBy: {
288
+ * // type: "user" || "api_key" || "service", // required
289
+ * // id: "STRING_VALUE", // required
290
+ * // name: "STRING_VALUE",
291
+ * // },
292
+ * // id: "STRING_VALUE", // required
293
+ * // revision: Number("int"), // required
294
+ * // usageLast30Days: Number("int"),
295
+ * // },
296
+ * // };
297
+ *
298
+ * ```
299
+ *
300
+ * @param UpdateAssetCommandInput - {@link UpdateAssetCommandInput}
301
+ * @returns {@link UpdateAssetCommandOutput}
302
+ * @see {@link UpdateAssetCommandInput} for command's `input` shape.
303
+ * @see {@link UpdateAssetCommandOutput} for command's `response` shape.
304
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
305
+ *
306
+ * @throws {@link ForbiddenException} (client fault)
307
+ *
308
+ * @throws {@link ValidationException} (client fault)
309
+ *
310
+ * @throws {@link AssetNotFoundException} (client fault)
311
+ *
312
+ * @throws {@link AssetNonUniqueNameException} (client fault)
313
+ *
314
+ * @throws {@link RevisionConflictException} (client fault)
315
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
316
+ *
317
+ * @throws {@link WilmaCopilotServiceException}
318
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
319
+ *
320
+ *
321
+ * @public
322
+ */
323
+ export declare class UpdateAssetCommand extends UpdateAssetCommand_base {
324
+ /** @internal type navigation helper, not in runtime. */
325
+ protected static __types: {
326
+ api: {
327
+ input: UpdateAssetInput;
328
+ output: UpdateAssetOutput;
329
+ };
330
+ sdk: {
331
+ input: UpdateAssetCommandInput;
332
+ output: UpdateAssetCommandOutput;
333
+ };
334
+ };
335
+ }
@@ -0,0 +1,183 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateAutomationInput, UpdateAutomationOutput } 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 UpdateAutomationCommand}.
14
+ */
15
+ export interface UpdateAutomationCommandInput extends UpdateAutomationInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateAutomationCommand}.
21
+ */
22
+ export interface UpdateAutomationCommandOutput extends UpdateAutomationOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateAutomationCommand_base: {
25
+ new (input: UpdateAutomationCommandInput): import("@smithy/core/client").CommandImpl<UpdateAutomationCommandInput, UpdateAutomationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateAutomationCommandInput): import("@smithy/core/client").CommandImpl<UpdateAutomationCommandInput, UpdateAutomationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Updates an automation. Published profile versions that captured this automation 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, UpdateAutomationCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, UpdateAutomationCommand } = 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 = { // UpdateAutomationInput
40
+ * name: "STRING_VALUE", // required
41
+ * description: "STRING_VALUE",
42
+ * handler: { // AutomationHandler Union: only one key present
43
+ * agent: { // AgentAutomationHandler
44
+ * agentId: "STRING_VALUE", // required
45
+ * prompt: "STRING_VALUE",
46
+ * outputMode: "card" || "silent",
47
+ * parameters: [ // CopilotVariableBindingsList
48
+ * { // CopilotVariableBinding
49
+ * name: "STRING_VALUE", // required
50
+ * type: "STRING_VALUE",
51
+ * optional: true || false,
52
+ * variant: "auto" || "guided" || "predefined", // required
53
+ * description: "STRING_VALUE",
54
+ * value: "STRING_VALUE",
55
+ * },
56
+ * ],
57
+ * },
58
+ * tool: { // ToolAutomationHandler
59
+ * toolId: "STRING_VALUE",
60
+ * toolName: "STRING_VALUE", // required
61
+ * action: "STRING_VALUE",
62
+ * payloadTemplate: "STRING_VALUE",
63
+ * outputMode: "card" || "silent",
64
+ * parameters: [
65
+ * {
66
+ * name: "STRING_VALUE", // required
67
+ * type: "STRING_VALUE",
68
+ * optional: true || false,
69
+ * variant: "auto" || "guided" || "predefined", // required
70
+ * description: "STRING_VALUE",
71
+ * value: "STRING_VALUE",
72
+ * },
73
+ * ],
74
+ * },
75
+ * knowledgeBase: { // KnowledgeBaseAutomationHandler
76
+ * knowledgeBaseId: "STRING_VALUE", // required
77
+ * },
78
+ * },
79
+ * conditions: "DOCUMENT_VALUE",
80
+ * company: "STRING_VALUE",
81
+ * automationId: "STRING_VALUE", // required
82
+ * revision: Number("int"), // required
83
+ * };
84
+ * const command = new UpdateAutomationCommand(input);
85
+ * const response = await client.send(command);
86
+ * // { // UpdateAutomationOutput
87
+ * // automation: { // Automation
88
+ * // name: "STRING_VALUE", // required
89
+ * // description: "STRING_VALUE",
90
+ * // handler: { // AutomationHandler Union: only one key present
91
+ * // agent: { // AgentAutomationHandler
92
+ * // agentId: "STRING_VALUE", // required
93
+ * // prompt: "STRING_VALUE",
94
+ * // outputMode: "card" || "silent",
95
+ * // parameters: [ // CopilotVariableBindingsList
96
+ * // { // CopilotVariableBinding
97
+ * // name: "STRING_VALUE", // required
98
+ * // type: "STRING_VALUE",
99
+ * // optional: true || false,
100
+ * // variant: "auto" || "guided" || "predefined", // required
101
+ * // description: "STRING_VALUE",
102
+ * // value: "STRING_VALUE",
103
+ * // },
104
+ * // ],
105
+ * // },
106
+ * // tool: { // ToolAutomationHandler
107
+ * // toolId: "STRING_VALUE",
108
+ * // toolName: "STRING_VALUE", // required
109
+ * // action: "STRING_VALUE",
110
+ * // payloadTemplate: "STRING_VALUE",
111
+ * // outputMode: "card" || "silent",
112
+ * // parameters: [
113
+ * // {
114
+ * // name: "STRING_VALUE", // required
115
+ * // type: "STRING_VALUE",
116
+ * // optional: true || false,
117
+ * // variant: "auto" || "guided" || "predefined", // required
118
+ * // description: "STRING_VALUE",
119
+ * // value: "STRING_VALUE",
120
+ * // },
121
+ * // ],
122
+ * // },
123
+ * // knowledgeBase: { // KnowledgeBaseAutomationHandler
124
+ * // knowledgeBaseId: "STRING_VALUE", // required
125
+ * // },
126
+ * // },
127
+ * // conditions: "DOCUMENT_VALUE",
128
+ * // createdAt: "STRING_VALUE", // required
129
+ * // createdBy: { // Actor
130
+ * // type: "user" || "api_key" || "service", // required
131
+ * // id: "STRING_VALUE", // required
132
+ * // name: "STRING_VALUE",
133
+ * // },
134
+ * // updatedAt: "STRING_VALUE",
135
+ * // updatedBy: {
136
+ * // type: "user" || "api_key" || "service", // required
137
+ * // id: "STRING_VALUE", // required
138
+ * // name: "STRING_VALUE",
139
+ * // },
140
+ * // id: "STRING_VALUE", // required
141
+ * // revision: Number("int"), // required
142
+ * // executionsLast30Days: Number("int"),
143
+ * // },
144
+ * // };
145
+ *
146
+ * ```
147
+ *
148
+ * @param UpdateAutomationCommandInput - {@link UpdateAutomationCommandInput}
149
+ * @returns {@link UpdateAutomationCommandOutput}
150
+ * @see {@link UpdateAutomationCommandInput} for command's `input` shape.
151
+ * @see {@link UpdateAutomationCommandOutput} for command's `response` shape.
152
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
153
+ *
154
+ * @throws {@link ForbiddenException} (client fault)
155
+ *
156
+ * @throws {@link ValidationException} (client fault)
157
+ *
158
+ * @throws {@link AutomationNotFoundException} (client fault)
159
+ *
160
+ * @throws {@link AutomationNonUniqueNameException} (client fault)
161
+ *
162
+ * @throws {@link RevisionConflictException} (client fault)
163
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
164
+ *
165
+ * @throws {@link WilmaCopilotServiceException}
166
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
167
+ *
168
+ *
169
+ * @public
170
+ */
171
+ export declare class UpdateAutomationCommand extends UpdateAutomationCommand_base {
172
+ /** @internal type navigation helper, not in runtime. */
173
+ protected static __types: {
174
+ api: {
175
+ input: UpdateAutomationInput;
176
+ output: UpdateAutomationOutput;
177
+ };
178
+ sdk: {
179
+ input: UpdateAutomationCommandInput;
180
+ output: UpdateAutomationCommandOutput;
181
+ };
182
+ };
183
+ }