@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.
- package/dist-cjs/WilmaCopilot.js +75 -0
- package/dist-cjs/WilmaCopilotClient.js +49 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/AttachProfileResourceCommand.js +20 -0
- package/dist-cjs/commands/CompareProfileVersionsCommand.js +20 -0
- package/dist-cjs/commands/CreateAssetCommand.js +20 -0
- package/dist-cjs/commands/CreateAutomationCommand.js +20 -0
- package/dist-cjs/commands/CreateEvaluationCommand.js +20 -0
- package/dist-cjs/commands/CreateIntentCommand.js +20 -0
- package/dist-cjs/commands/CreateProfileCommand.js +20 -0
- package/dist-cjs/commands/DeleteAssetCommand.js +20 -0
- package/dist-cjs/commands/DeleteAutomationCommand.js +20 -0
- package/dist-cjs/commands/DeleteEvaluationCommand.js +20 -0
- package/dist-cjs/commands/DeleteIntentCommand.js +20 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +20 -0
- package/dist-cjs/commands/DeleteProfileResourceCommand.js +20 -0
- package/dist-cjs/commands/GetAssetCommand.js +20 -0
- package/dist-cjs/commands/GetAutomationCommand.js +20 -0
- package/dist-cjs/commands/GetEvaluationCommand.js +20 -0
- package/dist-cjs/commands/GetIntentCommand.js +20 -0
- package/dist-cjs/commands/GetProfileCommand.js +20 -0
- package/dist-cjs/commands/GetProfileVersionCommand.js +20 -0
- package/dist-cjs/commands/ListAssetsCommand.js +20 -0
- package/dist-cjs/commands/ListAutomationsCommand.js +20 -0
- package/dist-cjs/commands/ListEvaluationsCommand.js +20 -0
- package/dist-cjs/commands/ListIntentsCommand.js +20 -0
- package/dist-cjs/commands/ListProfileVersionsCommand.js +20 -0
- package/dist-cjs/commands/ListProfilesCommand.js +20 -0
- package/dist-cjs/commands/PublishProfileVersionCommand.js +20 -0
- package/dist-cjs/commands/RestoreProfileVersionToDraftCommand.js +20 -0
- package/dist-cjs/commands/UpdateAssetCommand.js +20 -0
- package/dist-cjs/commands/UpdateAutomationCommand.js +20 -0
- package/dist-cjs/commands/UpdateEvaluationCommand.js +20 -0
- package/dist-cjs/commands/UpdateIntentCommand.js +20 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +20 -0
- package/dist-cjs/commands/index.js +35 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +13 -0
- package/dist-cjs/models/WilmaCopilotServiceException.js +12 -0
- package/dist-cjs/models/enums.js +95 -0
- package/dist-cjs/models/errors.js +287 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +41 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +41 -0
- package/dist-cjs/runtimeExtensions.js +12 -0
- package/dist-cjs/schemas/schemas_0.js +1249 -0
- package/dist-es/WilmaCopilot.js +71 -0
- package/dist-es/WilmaCopilotClient.js +45 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/AttachProfileResourceCommand.js +16 -0
- package/dist-es/commands/CompareProfileVersionsCommand.js +16 -0
- package/dist-es/commands/CreateAssetCommand.js +16 -0
- package/dist-es/commands/CreateAutomationCommand.js +16 -0
- package/dist-es/commands/CreateEvaluationCommand.js +16 -0
- package/dist-es/commands/CreateIntentCommand.js +16 -0
- package/dist-es/commands/CreateProfileCommand.js +16 -0
- package/dist-es/commands/DeleteAssetCommand.js +16 -0
- package/dist-es/commands/DeleteAutomationCommand.js +16 -0
- package/dist-es/commands/DeleteEvaluationCommand.js +16 -0
- package/dist-es/commands/DeleteIntentCommand.js +16 -0
- package/dist-es/commands/DeleteProfileCommand.js +16 -0
- package/dist-es/commands/DeleteProfileResourceCommand.js +16 -0
- package/dist-es/commands/GetAssetCommand.js +16 -0
- package/dist-es/commands/GetAutomationCommand.js +16 -0
- package/dist-es/commands/GetEvaluationCommand.js +16 -0
- package/dist-es/commands/GetIntentCommand.js +16 -0
- package/dist-es/commands/GetProfileCommand.js +16 -0
- package/dist-es/commands/GetProfileVersionCommand.js +16 -0
- package/dist-es/commands/ListAssetsCommand.js +16 -0
- package/dist-es/commands/ListAutomationsCommand.js +16 -0
- package/dist-es/commands/ListEvaluationsCommand.js +16 -0
- package/dist-es/commands/ListIntentsCommand.js +16 -0
- package/dist-es/commands/ListProfileVersionsCommand.js +16 -0
- package/dist-es/commands/ListProfilesCommand.js +16 -0
- package/dist-es/commands/PublishProfileVersionCommand.js +16 -0
- package/dist-es/commands/RestoreProfileVersionToDraftCommand.js +16 -0
- package/dist-es/commands/UpdateAssetCommand.js +16 -0
- package/dist-es/commands/UpdateAutomationCommand.js +16 -0
- package/dist-es/commands/UpdateEvaluationCommand.js +16 -0
- package/dist-es/commands/UpdateIntentCommand.js +16 -0
- package/dist-es/commands/UpdateProfileCommand.js +16 -0
- package/dist-es/commands/index.js +32 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +8 -0
- package/dist-es/models/WilmaCopilotServiceException.js +8 -0
- package/dist-es/models/enums.js +92 -0
- package/dist-es/models/errors.js +265 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +36 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +37 -0
- package/dist-es/runtimeExtensions.js +8 -0
- package/dist-es/schemas/schemas_0.js +1243 -0
- package/dist-types/WilmaCopilot.d.ts +254 -0
- package/dist-types/WilmaCopilotClient.d.ts +209 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/AttachProfileResourceCommand.d.ts +165 -0
- package/dist-types/commands/CompareProfileVersionsCommand.d.ts +91 -0
- package/dist-types/commands/CreateAssetCommand.d.ts +328 -0
- package/dist-types/commands/CreateAutomationCommand.d.ts +176 -0
- package/dist-types/commands/CreateEvaluationCommand.d.ts +196 -0
- package/dist-types/commands/CreateIntentCommand.d.ts +202 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +181 -0
- package/dist-types/commands/DeleteAssetCommand.d.ts +83 -0
- package/dist-types/commands/DeleteAutomationCommand.d.ts +83 -0
- package/dist-types/commands/DeleteEvaluationCommand.d.ts +83 -0
- package/dist-types/commands/DeleteIntentCommand.d.ts +83 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +79 -0
- package/dist-types/commands/DeleteProfileResourceCommand.d.ts +147 -0
- package/dist-types/commands/GetAssetCommand.d.ts +213 -0
- package/dist-types/commands/GetAutomationCommand.d.ts +137 -0
- package/dist-types/commands/GetEvaluationCommand.d.ts +147 -0
- package/dist-types/commands/GetIntentCommand.d.ts +150 -0
- package/dist-types/commands/GetProfileCommand.d.ts +141 -0
- package/dist-types/commands/GetProfileVersionCommand.d.ts +82 -0
- package/dist-types/commands/ListAssetsCommand.d.ts +107 -0
- package/dist-types/commands/ListAutomationsCommand.d.ts +103 -0
- package/dist-types/commands/ListEvaluationsCommand.d.ts +104 -0
- package/dist-types/commands/ListIntentsCommand.d.ts +103 -0
- package/dist-types/commands/ListProfileVersionsCommand.d.ts +95 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +110 -0
- package/dist-types/commands/PublishProfileVersionCommand.d.ts +87 -0
- package/dist-types/commands/RestoreProfileVersionToDraftCommand.d.ts +146 -0
- package/dist-types/commands/UpdateAssetCommand.d.ts +335 -0
- package/dist-types/commands/UpdateAutomationCommand.d.ts +183 -0
- package/dist-types/commands/UpdateEvaluationCommand.d.ts +203 -0
- package/dist-types/commands/UpdateIntentCommand.d.ts +209 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +160 -0
- package/dist-types/commands/index.d.ts +32 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +31 -0
- package/dist-types/models/WilmaCopilotServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +287 -0
- package/dist-types/models/errors.d.ts +239 -0
- package/dist-types/models/models_0.d.ts +2808 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +182 -0
- 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
|
+
}
|