@wildix/wilma-agents-client 1.0.1

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 (130) hide show
  1. package/dist-cjs/WilmaAgents.js +57 -0
  2. package/dist-cjs/WilmaAgentsClient.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/CompareAgentVersionsCommand.js +20 -0
  6. package/dist-cjs/commands/CreateAgentApiKeyCommand.js +20 -0
  7. package/dist-cjs/commands/CreateAgentCommand.js +20 -0
  8. package/dist-cjs/commands/CreateGuardrailCommand.js +20 -0
  9. package/dist-cjs/commands/DeleteAgentAliasCommand.js +20 -0
  10. package/dist-cjs/commands/DeleteAgentApiKeyCommand.js +20 -0
  11. package/dist-cjs/commands/DeleteAgentCommand.js +20 -0
  12. package/dist-cjs/commands/DeleteGuardrailCommand.js +20 -0
  13. package/dist-cjs/commands/ExecuteAgentCommand.js +20 -0
  14. package/dist-cjs/commands/GetAgentCommand.js +20 -0
  15. package/dist-cjs/commands/GetAgentVersionCommand.js +20 -0
  16. package/dist-cjs/commands/GetGuardrailCommand.js +20 -0
  17. package/dist-cjs/commands/ListAgentAliasesCommand.js +20 -0
  18. package/dist-cjs/commands/ListAgentApiKeysCommand.js +20 -0
  19. package/dist-cjs/commands/ListAgentVersionsCommand.js +20 -0
  20. package/dist-cjs/commands/ListAgentsCommand.js +20 -0
  21. package/dist-cjs/commands/ListAgentsNamesCommand.js +20 -0
  22. package/dist-cjs/commands/ListAuditRecordsCommand.js +20 -0
  23. package/dist-cjs/commands/ListGuardrailsCommand.js +20 -0
  24. package/dist-cjs/commands/PublishAgentVersionCommand.js +20 -0
  25. package/dist-cjs/commands/PutAgentAliasCommand.js +20 -0
  26. package/dist-cjs/commands/UpdateAgentCommand.js +20 -0
  27. package/dist-cjs/commands/UpdateGuardrailCommand.js +20 -0
  28. package/dist-cjs/commands/index.js +26 -0
  29. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  30. package/dist-cjs/endpoint/bdd.js +28 -0
  31. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  32. package/dist-cjs/extensionConfiguration.js +2 -0
  33. package/dist-cjs/index.js +13 -0
  34. package/dist-cjs/models/WilmaAgentsServiceException.js +12 -0
  35. package/dist-cjs/models/enums.js +118 -0
  36. package/dist-cjs/models/errors.js +154 -0
  37. package/dist-cjs/models/models_0.js +2 -0
  38. package/dist-cjs/runtimeConfig.browser.js +32 -0
  39. package/dist-cjs/runtimeConfig.js +41 -0
  40. package/dist-cjs/runtimeConfig.native.js +15 -0
  41. package/dist-cjs/runtimeConfig.shared.js +41 -0
  42. package/dist-cjs/runtimeExtensions.js +12 -0
  43. package/dist-cjs/schemas/schemas_0.js +1168 -0
  44. package/dist-es/WilmaAgents.js +53 -0
  45. package/dist-es/WilmaAgentsClient.js +45 -0
  46. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  47. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  48. package/dist-es/commands/CompareAgentVersionsCommand.js +16 -0
  49. package/dist-es/commands/CreateAgentApiKeyCommand.js +16 -0
  50. package/dist-es/commands/CreateAgentCommand.js +16 -0
  51. package/dist-es/commands/CreateGuardrailCommand.js +16 -0
  52. package/dist-es/commands/DeleteAgentAliasCommand.js +16 -0
  53. package/dist-es/commands/DeleteAgentApiKeyCommand.js +16 -0
  54. package/dist-es/commands/DeleteAgentCommand.js +16 -0
  55. package/dist-es/commands/DeleteGuardrailCommand.js +16 -0
  56. package/dist-es/commands/ExecuteAgentCommand.js +16 -0
  57. package/dist-es/commands/GetAgentCommand.js +16 -0
  58. package/dist-es/commands/GetAgentVersionCommand.js +16 -0
  59. package/dist-es/commands/GetGuardrailCommand.js +16 -0
  60. package/dist-es/commands/ListAgentAliasesCommand.js +16 -0
  61. package/dist-es/commands/ListAgentApiKeysCommand.js +16 -0
  62. package/dist-es/commands/ListAgentVersionsCommand.js +16 -0
  63. package/dist-es/commands/ListAgentsCommand.js +16 -0
  64. package/dist-es/commands/ListAgentsNamesCommand.js +16 -0
  65. package/dist-es/commands/ListAuditRecordsCommand.js +16 -0
  66. package/dist-es/commands/ListGuardrailsCommand.js +16 -0
  67. package/dist-es/commands/PublishAgentVersionCommand.js +16 -0
  68. package/dist-es/commands/PutAgentAliasCommand.js +16 -0
  69. package/dist-es/commands/UpdateAgentCommand.js +16 -0
  70. package/dist-es/commands/UpdateGuardrailCommand.js +16 -0
  71. package/dist-es/commands/index.js +23 -0
  72. package/dist-es/endpoint/EndpointParameters.js +12 -0
  73. package/dist-es/endpoint/bdd.js +25 -0
  74. package/dist-es/endpoint/endpointResolver.js +12 -0
  75. package/dist-es/extensionConfiguration.js +1 -0
  76. package/dist-es/index.js +8 -0
  77. package/dist-es/models/WilmaAgentsServiceException.js +8 -0
  78. package/dist-es/models/enums.js +115 -0
  79. package/dist-es/models/errors.js +141 -0
  80. package/dist-es/models/models_0.js +1 -0
  81. package/dist-es/runtimeConfig.browser.js +27 -0
  82. package/dist-es/runtimeConfig.js +36 -0
  83. package/dist-es/runtimeConfig.native.js +11 -0
  84. package/dist-es/runtimeConfig.shared.js +37 -0
  85. package/dist-es/runtimeExtensions.js +8 -0
  86. package/dist-es/schemas/schemas_0.js +1162 -0
  87. package/dist-types/WilmaAgents.d.ts +182 -0
  88. package/dist-types/WilmaAgentsClient.d.ts +192 -0
  89. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  90. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  91. package/dist-types/commands/CompareAgentVersionsCommand.d.ts +91 -0
  92. package/dist-types/commands/CreateAgentApiKeyCommand.d.ts +96 -0
  93. package/dist-types/commands/CreateAgentCommand.d.ts +654 -0
  94. package/dist-types/commands/CreateGuardrailCommand.d.ts +172 -0
  95. package/dist-types/commands/DeleteAgentAliasCommand.d.ts +82 -0
  96. package/dist-types/commands/DeleteAgentApiKeyCommand.d.ts +82 -0
  97. package/dist-types/commands/DeleteAgentCommand.d.ts +77 -0
  98. package/dist-types/commands/DeleteGuardrailCommand.d.ts +80 -0
  99. package/dist-types/commands/ExecuteAgentCommand.d.ts +112 -0
  100. package/dist-types/commands/GetAgentCommand.d.ts +386 -0
  101. package/dist-types/commands/GetAgentVersionCommand.d.ts +365 -0
  102. package/dist-types/commands/GetGuardrailCommand.d.ts +135 -0
  103. package/dist-types/commands/ListAgentAliasesCommand.d.ts +99 -0
  104. package/dist-types/commands/ListAgentApiKeysCommand.d.ts +95 -0
  105. package/dist-types/commands/ListAgentVersionsCommand.d.ts +99 -0
  106. package/dist-types/commands/ListAgentsCommand.d.ts +391 -0
  107. package/dist-types/commands/ListAgentsNamesCommand.d.ts +90 -0
  108. package/dist-types/commands/ListAuditRecordsCommand.d.ts +109 -0
  109. package/dist-types/commands/ListGuardrailsCommand.d.ts +137 -0
  110. package/dist-types/commands/PublishAgentVersionCommand.d.ts +370 -0
  111. package/dist-types/commands/PutAgentAliasCommand.d.ts +107 -0
  112. package/dist-types/commands/UpdateAgentCommand.d.ts +661 -0
  113. package/dist-types/commands/UpdateGuardrailCommand.d.ts +175 -0
  114. package/dist-types/commands/index.d.ts +23 -0
  115. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  116. package/dist-types/endpoint/bdd.d.ts +2 -0
  117. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  118. package/dist-types/extensionConfiguration.d.ts +8 -0
  119. package/dist-types/index.d.ts +23 -0
  120. package/dist-types/models/WilmaAgentsServiceException.d.ts +14 -0
  121. package/dist-types/models/enums.d.ts +301 -0
  122. package/dist-types/models/errors.d.ts +129 -0
  123. package/dist-types/models/models_0.d.ts +2186 -0
  124. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  125. package/dist-types/runtimeConfig.d.ts +55 -0
  126. package/dist-types/runtimeConfig.native.d.ts +54 -0
  127. package/dist-types/runtimeConfig.shared.d.ts +32 -0
  128. package/dist-types/runtimeExtensions.d.ts +17 -0
  129. package/dist-types/schemas/schemas_0.d.ts +160 -0
  130. package/package.json +57 -0
@@ -0,0 +1,661 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateAgentInput, UpdateAgentOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaAgentsClientResolvedConfig } from "../WilmaAgentsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateAgentCommand}.
14
+ */
15
+ export interface UpdateAgentCommandInput extends UpdateAgentInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateAgentCommand}.
21
+ */
22
+ export interface UpdateAgentCommandOutput extends UpdateAgentOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateAgentCommand_base: {
25
+ new (input: UpdateAgentCommandInput): import("@smithy/core/client").CommandImpl<UpdateAgentCommandInput, UpdateAgentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateAgentCommandInput): import("@smithy/core/client").CommandImpl<UpdateAgentCommandInput, UpdateAgentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Updates the draft definition of an agent. Does not affect served traffic until the draft is published.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WilmaAgentsClient, UpdateAgentCommand } from "@wildix/wilma-agents-client"; // ES Modules import
37
+ * // const { WilmaAgentsClient, UpdateAgentCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
38
+ * // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
39
+ * const config = {}; // type is WilmaAgentsClientConfig
40
+ * const client = new WilmaAgentsClient(config);
41
+ * const input = { // UpdateAgentInput
42
+ * name: "STRING_VALUE", // required
43
+ * description: "STRING_VALUE",
44
+ * category: "STRING_VALUE",
45
+ * picture: "STRING_VALUE",
46
+ * engine: { // AgentEngine Union: only one key present
47
+ * llm: { // AgentLlmEngine
48
+ * instructions: "STRING_VALUE", // required
49
+ * model: "STRING_VALUE",
50
+ * skills: [ // AgentSkillsList
51
+ * "STRING_VALUE",
52
+ * ],
53
+ * capabilities: [ // AgentCapabilitiesList
54
+ * { // AgentCapability Union: only one key present
55
+ * tool: { // AgentTool
56
+ * id: "STRING_VALUE", // required
57
+ * variables: [ // AgentToolVariablesList
58
+ * { // AgentToolVariable
59
+ * name: "STRING_VALUE", // required
60
+ * handler: { // AgentToolVariableHandler Union: only one key present
61
+ * auto: {},
62
+ * guided: { // AgentToolVariableGuidedHandler
63
+ * description: "STRING_VALUE", // required
64
+ * },
65
+ * predefined: { // AgentToolVariablePredefinedHandler
66
+ * description: "STRING_VALUE", // required
67
+ * },
68
+ * },
69
+ * },
70
+ * ],
71
+ * },
72
+ * function: { // AgentFunctionTool
73
+ * name: "STRING_VALUE", // required
74
+ * description: "STRING_VALUE",
75
+ * parameters: "DOCUMENT_VALUE",
76
+ * integration: { // FunctionIntegration Union: only one key present
77
+ * webhook: { // FunctionWebhookIntegration
78
+ * url: "STRING_VALUE", // required
79
+ * method: "get" || "post" || "put" || "delete" || "patch",
80
+ * async: true || false,
81
+ * authorization: { // WebhookAuthorization Union: only one key present
82
+ * bearer: { // WebhookAuthorizationBearer
83
+ * token: "STRING_VALUE", // required
84
+ * },
85
+ * basic: { // WebhookAuthorizationBasic
86
+ * username: "STRING_VALUE", // required
87
+ * password: "STRING_VALUE", // required
88
+ * },
89
+ * oauth: { // WebhookAuthorizationOAuth
90
+ * clientId: "STRING_VALUE", // required
91
+ * clientSecret: "STRING_VALUE", // required
92
+ * endpointUrl: "STRING_VALUE", // required
93
+ * scope: "STRING_VALUE",
94
+ * },
95
+ * },
96
+ * headers: [ // WebhookHeadersList
97
+ * { // WebhookHeader
98
+ * name: "STRING_VALUE", // required
99
+ * value: "STRING_VALUE", // required
100
+ * },
101
+ * ],
102
+ * timeout: Number("int"),
103
+ * parameters: "DOCUMENT_VALUE",
104
+ * },
105
+ * },
106
+ * },
107
+ * kb: { // AgentKnowledgeBase
108
+ * knowledgeBaseId: "STRING_VALUE",
109
+ * instructions: "STRING_VALUE",
110
+ * },
111
+ * sandbox: { // AgentSandboxCapability Union: only one key present
112
+ * vercel: { // AgentVercelSandboxOptions
113
+ * vcpus: Number("int"),
114
+ * network: "allow-all" || "deny-all" || "allowlist",
115
+ * allowedDomains: [ // DomainNameList
116
+ * "STRING_VALUE",
117
+ * ],
118
+ * },
119
+ * snapshot: { // AgentSnapshotSandboxOptions
120
+ * snapshotId: "STRING_VALUE", // required
121
+ * network: "allow-all" || "deny-all" || "allowlist",
122
+ * allowedDomains: [
123
+ * "STRING_VALUE",
124
+ * ],
125
+ * vcpus: Number("int"),
126
+ * },
127
+ * },
128
+ * webSearch: { // AgentWebSearchCapability
129
+ * contextSize: "low" || "medium" || "high",
130
+ * allowedDomains: [
131
+ * "STRING_VALUE",
132
+ * ],
133
+ * userLocation: { // WebSearchUserLocation
134
+ * country: "STRING_VALUE",
135
+ * region: "STRING_VALUE",
136
+ * city: "STRING_VALUE",
137
+ * timezone: "STRING_VALUE",
138
+ * },
139
+ * },
140
+ * webFetch: { // AgentWebFetchCapability
141
+ * allowedDomains: [
142
+ * "STRING_VALUE",
143
+ * ],
144
+ * },
145
+ * agent: { // AgentCallCapability
146
+ * agentId: "STRING_VALUE", // required
147
+ * variables: [
148
+ * {
149
+ * name: "STRING_VALUE", // required
150
+ * handler: {// Union: only one key present
151
+ * auto: {},
152
+ * guided: {
153
+ * description: "STRING_VALUE", // required
154
+ * },
155
+ * predefined: {
156
+ * description: "STRING_VALUE", // required
157
+ * },
158
+ * },
159
+ * },
160
+ * ],
161
+ * },
162
+ * mcp: { // AgentMcpServerCapability
163
+ * url: "STRING_VALUE", // required
164
+ * authorization: {// Union: only one key present
165
+ * bearer: {
166
+ * token: "STRING_VALUE", // required
167
+ * },
168
+ * basic: {
169
+ * username: "STRING_VALUE", // required
170
+ * password: "STRING_VALUE", // required
171
+ * },
172
+ * oauth: {
173
+ * clientId: "STRING_VALUE", // required
174
+ * clientSecret: "STRING_VALUE", // required
175
+ * endpointUrl: "STRING_VALUE", // required
176
+ * scope: "STRING_VALUE",
177
+ * },
178
+ * },
179
+ * allowedTools: [ // FunctionNameList
180
+ * "STRING_VALUE",
181
+ * ],
182
+ * },
183
+ * handover: { // AgentHandoverCapability
184
+ * instructions: "STRING_VALUE",
185
+ * message: "STRING_VALUE",
186
+ * },
187
+ * delegation: { // AgentDelegationCapability
188
+ * agents: [ // AgentIdList
189
+ * "STRING_VALUE",
190
+ * ],
191
+ * instructions: "STRING_VALUE",
192
+ * },
193
+ * transfer: { // AgentTransferCapability
194
+ * targets: [ // VoiceTransferTargetsList // required
195
+ * { // VoiceTransferTarget
196
+ * name: "STRING_VALUE", // required
197
+ * description: "STRING_VALUE",
198
+ * context: "STRING_VALUE", // required
199
+ * extension: "STRING_VALUE", // required
200
+ * },
201
+ * ],
202
+ * instructions: "STRING_VALUE",
203
+ * },
204
+ * suggestions: {},
205
+ * },
206
+ * ],
207
+ * variables: [ // AgentVariablesList
208
+ * { // AgentVariable
209
+ * name: "STRING_VALUE", // required
210
+ * type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
211
+ * optional: true || false, // required
212
+ * description: "STRING_VALUE",
213
+ * },
214
+ * ],
215
+ * },
216
+ * webhook: { // AgentWebhookEngine
217
+ * url: "STRING_VALUE", // required
218
+ * secret: "STRING_VALUE", // required
219
+ * timeout: Number("int"),
220
+ * },
221
+ * sqs: { // AgentSqsEngine
222
+ * url: "STRING_VALUE", // required
223
+ * key: "STRING_VALUE", // required
224
+ * secret: "STRING_VALUE", // required
225
+ * },
226
+ * },
227
+ * channels: { // AgentChannels
228
+ * assistant: { // AssistantChannelSettings
229
+ * enabled: true || false, // required
230
+ * default: true || false,
231
+ * },
232
+ * chat: { // ChatChannelSettings
233
+ * enabled: true || false, // required
234
+ * discoverable: true || false,
235
+ * pbxGroupId: "STRING_VALUE",
236
+ * welcomeMessage: "STRING_VALUE",
237
+ * },
238
+ * voice: { // VoiceChannelSettings
239
+ * enabled: true || false, // required
240
+ * language: "STRING_VALUE", // required
241
+ * synthesis: { // VoiceSynthesisSettings
242
+ * provider: "elevenlabs" || "google", // required
243
+ * voiceId: "STRING_VALUE", // required
244
+ * speed: Number("float"),
245
+ * },
246
+ * greeting: "STRING_VALUE",
247
+ * interruptions: { // VoiceInterruptionSettings
248
+ * enabled: true || false, // required
249
+ * minWords: Number("int"),
250
+ * },
251
+ * silenceTimeout: { // VoiceSilenceTimeoutSettings
252
+ * seconds: Number("int"), // required
253
+ * action: { // VoiceTerminateAction Union: only one key present
254
+ * hangup: { // VoiceTerminateHangupAction
255
+ * message: "STRING_VALUE",
256
+ * },
257
+ * transfer: {
258
+ * name: "STRING_VALUE", // required
259
+ * description: "STRING_VALUE",
260
+ * context: "STRING_VALUE", // required
261
+ * extension: "STRING_VALUE", // required
262
+ * },
263
+ * },
264
+ * },
265
+ * maxDuration: { // VoiceMaxDurationSettings
266
+ * seconds: Number("int"), // required
267
+ * action: {// Union: only one key present
268
+ * hangup: {
269
+ * message: "STRING_VALUE",
270
+ * },
271
+ * transfer: {
272
+ * name: "STRING_VALUE", // required
273
+ * description: "STRING_VALUE",
274
+ * context: "STRING_VALUE", // required
275
+ * extension: "STRING_VALUE", // required
276
+ * },
277
+ * },
278
+ * },
279
+ * endCall: { // VoiceEndCallSettings
280
+ * enabled: true || false, // required
281
+ * phrases: "STRING_VALUE",
282
+ * },
283
+ * callerMetadata: { // VoiceCallerMetadataSettings
284
+ * callerName: true || false,
285
+ * callerNumber: true || false,
286
+ * callerEmail: true || false,
287
+ * callerCompany: true || false,
288
+ * time: true || false,
289
+ * timeZone: "STRING_VALUE",
290
+ * },
291
+ * },
292
+ * api: { // ApiChannelSettings
293
+ * enabled: true || false, // required
294
+ * },
295
+ * },
296
+ * guardrails: [ // GuardrailIdList
297
+ * "STRING_VALUE",
298
+ * ],
299
+ * access: { // AgentAccess
300
+ * visibility: "explicit" || "organization",
301
+ * grants: [ // AgentGrantList
302
+ * { // AgentGrant
303
+ * permission: "view" || "edit" || "use", // required
304
+ * principal: { // AgentGrantPrincipal Union: only one key present
305
+ * userId: "STRING_VALUE",
306
+ * groupId: "STRING_VALUE",
307
+ * },
308
+ * },
309
+ * ],
310
+ * },
311
+ * company: "STRING_VALUE",
312
+ * agentId: "STRING_VALUE", // required
313
+ * revision: Number("int"),
314
+ * };
315
+ * const command = new UpdateAgentCommand(input);
316
+ * const response = await client.send(command);
317
+ * // { // UpdateAgentOutput
318
+ * // agent: { // Agent
319
+ * // name: "STRING_VALUE", // required
320
+ * // description: "STRING_VALUE",
321
+ * // category: "STRING_VALUE",
322
+ * // picture: "STRING_VALUE",
323
+ * // engine: { // AgentEngine Union: only one key present
324
+ * // llm: { // AgentLlmEngine
325
+ * // instructions: "STRING_VALUE", // required
326
+ * // model: "STRING_VALUE",
327
+ * // skills: [ // AgentSkillsList
328
+ * // "STRING_VALUE",
329
+ * // ],
330
+ * // capabilities: [ // AgentCapabilitiesList
331
+ * // { // AgentCapability Union: only one key present
332
+ * // tool: { // AgentTool
333
+ * // id: "STRING_VALUE", // required
334
+ * // variables: [ // AgentToolVariablesList
335
+ * // { // AgentToolVariable
336
+ * // name: "STRING_VALUE", // required
337
+ * // handler: { // AgentToolVariableHandler Union: only one key present
338
+ * // auto: {},
339
+ * // guided: { // AgentToolVariableGuidedHandler
340
+ * // description: "STRING_VALUE", // required
341
+ * // },
342
+ * // predefined: { // AgentToolVariablePredefinedHandler
343
+ * // description: "STRING_VALUE", // required
344
+ * // },
345
+ * // },
346
+ * // },
347
+ * // ],
348
+ * // },
349
+ * // function: { // AgentFunctionTool
350
+ * // name: "STRING_VALUE", // required
351
+ * // description: "STRING_VALUE",
352
+ * // parameters: "DOCUMENT_VALUE",
353
+ * // integration: { // FunctionIntegration Union: only one key present
354
+ * // webhook: { // FunctionWebhookIntegration
355
+ * // url: "STRING_VALUE", // required
356
+ * // method: "get" || "post" || "put" || "delete" || "patch",
357
+ * // async: true || false,
358
+ * // authorization: { // WebhookAuthorization Union: only one key present
359
+ * // bearer: { // WebhookAuthorizationBearer
360
+ * // token: "STRING_VALUE", // required
361
+ * // },
362
+ * // basic: { // WebhookAuthorizationBasic
363
+ * // username: "STRING_VALUE", // required
364
+ * // password: "STRING_VALUE", // required
365
+ * // },
366
+ * // oauth: { // WebhookAuthorizationOAuth
367
+ * // clientId: "STRING_VALUE", // required
368
+ * // clientSecret: "STRING_VALUE", // required
369
+ * // endpointUrl: "STRING_VALUE", // required
370
+ * // scope: "STRING_VALUE",
371
+ * // },
372
+ * // },
373
+ * // headers: [ // WebhookHeadersList
374
+ * // { // WebhookHeader
375
+ * // name: "STRING_VALUE", // required
376
+ * // value: "STRING_VALUE", // required
377
+ * // },
378
+ * // ],
379
+ * // timeout: Number("int"),
380
+ * // parameters: "DOCUMENT_VALUE",
381
+ * // },
382
+ * // },
383
+ * // },
384
+ * // kb: { // AgentKnowledgeBase
385
+ * // knowledgeBaseId: "STRING_VALUE",
386
+ * // instructions: "STRING_VALUE",
387
+ * // },
388
+ * // sandbox: { // AgentSandboxCapability Union: only one key present
389
+ * // vercel: { // AgentVercelSandboxOptions
390
+ * // vcpus: Number("int"),
391
+ * // network: "allow-all" || "deny-all" || "allowlist",
392
+ * // allowedDomains: [ // DomainNameList
393
+ * // "STRING_VALUE",
394
+ * // ],
395
+ * // },
396
+ * // snapshot: { // AgentSnapshotSandboxOptions
397
+ * // snapshotId: "STRING_VALUE", // required
398
+ * // network: "allow-all" || "deny-all" || "allowlist",
399
+ * // allowedDomains: [
400
+ * // "STRING_VALUE",
401
+ * // ],
402
+ * // vcpus: Number("int"),
403
+ * // },
404
+ * // },
405
+ * // webSearch: { // AgentWebSearchCapability
406
+ * // contextSize: "low" || "medium" || "high",
407
+ * // allowedDomains: [
408
+ * // "STRING_VALUE",
409
+ * // ],
410
+ * // userLocation: { // WebSearchUserLocation
411
+ * // country: "STRING_VALUE",
412
+ * // region: "STRING_VALUE",
413
+ * // city: "STRING_VALUE",
414
+ * // timezone: "STRING_VALUE",
415
+ * // },
416
+ * // },
417
+ * // webFetch: { // AgentWebFetchCapability
418
+ * // allowedDomains: [
419
+ * // "STRING_VALUE",
420
+ * // ],
421
+ * // },
422
+ * // agent: { // AgentCallCapability
423
+ * // agentId: "STRING_VALUE", // required
424
+ * // variables: [
425
+ * // {
426
+ * // name: "STRING_VALUE", // required
427
+ * // handler: {// Union: only one key present
428
+ * // auto: {},
429
+ * // guided: {
430
+ * // description: "STRING_VALUE", // required
431
+ * // },
432
+ * // predefined: {
433
+ * // description: "STRING_VALUE", // required
434
+ * // },
435
+ * // },
436
+ * // },
437
+ * // ],
438
+ * // },
439
+ * // mcp: { // AgentMcpServerCapability
440
+ * // url: "STRING_VALUE", // required
441
+ * // authorization: {// Union: only one key present
442
+ * // bearer: {
443
+ * // token: "STRING_VALUE", // required
444
+ * // },
445
+ * // basic: {
446
+ * // username: "STRING_VALUE", // required
447
+ * // password: "STRING_VALUE", // required
448
+ * // },
449
+ * // oauth: {
450
+ * // clientId: "STRING_VALUE", // required
451
+ * // clientSecret: "STRING_VALUE", // required
452
+ * // endpointUrl: "STRING_VALUE", // required
453
+ * // scope: "STRING_VALUE",
454
+ * // },
455
+ * // },
456
+ * // allowedTools: [ // FunctionNameList
457
+ * // "STRING_VALUE",
458
+ * // ],
459
+ * // },
460
+ * // handover: { // AgentHandoverCapability
461
+ * // instructions: "STRING_VALUE",
462
+ * // message: "STRING_VALUE",
463
+ * // },
464
+ * // delegation: { // AgentDelegationCapability
465
+ * // agents: [ // AgentIdList
466
+ * // "STRING_VALUE",
467
+ * // ],
468
+ * // instructions: "STRING_VALUE",
469
+ * // },
470
+ * // transfer: { // AgentTransferCapability
471
+ * // targets: [ // VoiceTransferTargetsList // required
472
+ * // { // VoiceTransferTarget
473
+ * // name: "STRING_VALUE", // required
474
+ * // description: "STRING_VALUE",
475
+ * // context: "STRING_VALUE", // required
476
+ * // extension: "STRING_VALUE", // required
477
+ * // },
478
+ * // ],
479
+ * // instructions: "STRING_VALUE",
480
+ * // },
481
+ * // suggestions: {},
482
+ * // },
483
+ * // ],
484
+ * // variables: [ // AgentVariablesList
485
+ * // { // AgentVariable
486
+ * // name: "STRING_VALUE", // required
487
+ * // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
488
+ * // optional: true || false, // required
489
+ * // description: "STRING_VALUE",
490
+ * // },
491
+ * // ],
492
+ * // },
493
+ * // webhook: { // AgentWebhookEngine
494
+ * // url: "STRING_VALUE", // required
495
+ * // secret: "STRING_VALUE", // required
496
+ * // timeout: Number("int"),
497
+ * // },
498
+ * // sqs: { // AgentSqsEngine
499
+ * // url: "STRING_VALUE", // required
500
+ * // key: "STRING_VALUE", // required
501
+ * // secret: "STRING_VALUE", // required
502
+ * // },
503
+ * // },
504
+ * // channels: { // AgentChannels
505
+ * // assistant: { // AssistantChannelSettings
506
+ * // enabled: true || false, // required
507
+ * // default: true || false,
508
+ * // },
509
+ * // chat: { // ChatChannelSettings
510
+ * // enabled: true || false, // required
511
+ * // discoverable: true || false,
512
+ * // pbxGroupId: "STRING_VALUE",
513
+ * // welcomeMessage: "STRING_VALUE",
514
+ * // },
515
+ * // voice: { // VoiceChannelSettings
516
+ * // enabled: true || false, // required
517
+ * // language: "STRING_VALUE", // required
518
+ * // synthesis: { // VoiceSynthesisSettings
519
+ * // provider: "elevenlabs" || "google", // required
520
+ * // voiceId: "STRING_VALUE", // required
521
+ * // speed: Number("float"),
522
+ * // },
523
+ * // greeting: "STRING_VALUE",
524
+ * // interruptions: { // VoiceInterruptionSettings
525
+ * // enabled: true || false, // required
526
+ * // minWords: Number("int"),
527
+ * // },
528
+ * // silenceTimeout: { // VoiceSilenceTimeoutSettings
529
+ * // seconds: Number("int"), // required
530
+ * // action: { // VoiceTerminateAction Union: only one key present
531
+ * // hangup: { // VoiceTerminateHangupAction
532
+ * // message: "STRING_VALUE",
533
+ * // },
534
+ * // transfer: {
535
+ * // name: "STRING_VALUE", // required
536
+ * // description: "STRING_VALUE",
537
+ * // context: "STRING_VALUE", // required
538
+ * // extension: "STRING_VALUE", // required
539
+ * // },
540
+ * // },
541
+ * // },
542
+ * // maxDuration: { // VoiceMaxDurationSettings
543
+ * // seconds: Number("int"), // required
544
+ * // action: {// Union: only one key present
545
+ * // hangup: {
546
+ * // message: "STRING_VALUE",
547
+ * // },
548
+ * // transfer: {
549
+ * // name: "STRING_VALUE", // required
550
+ * // description: "STRING_VALUE",
551
+ * // context: "STRING_VALUE", // required
552
+ * // extension: "STRING_VALUE", // required
553
+ * // },
554
+ * // },
555
+ * // },
556
+ * // endCall: { // VoiceEndCallSettings
557
+ * // enabled: true || false, // required
558
+ * // phrases: "STRING_VALUE",
559
+ * // },
560
+ * // callerMetadata: { // VoiceCallerMetadataSettings
561
+ * // callerName: true || false,
562
+ * // callerNumber: true || false,
563
+ * // callerEmail: true || false,
564
+ * // callerCompany: true || false,
565
+ * // time: true || false,
566
+ * // timeZone: "STRING_VALUE",
567
+ * // },
568
+ * // },
569
+ * // api: { // ApiChannelSettings
570
+ * // enabled: true || false, // required
571
+ * // },
572
+ * // },
573
+ * // guardrails: [ // GuardrailIdList
574
+ * // "STRING_VALUE",
575
+ * // ],
576
+ * // access: { // AgentAccess
577
+ * // visibility: "explicit" || "organization",
578
+ * // grants: [ // AgentGrantList
579
+ * // { // AgentGrant
580
+ * // permission: "view" || "edit" || "use", // required
581
+ * // principal: { // AgentGrantPrincipal Union: only one key present
582
+ * // userId: "STRING_VALUE",
583
+ * // groupId: "STRING_VALUE",
584
+ * // },
585
+ * // },
586
+ * // ],
587
+ * // },
588
+ * // createdAt: "STRING_VALUE", // required
589
+ * // createdBy: { // Actor
590
+ * // type: "user" || "api_key" || "service", // required
591
+ * // id: "STRING_VALUE", // required
592
+ * // name: "STRING_VALUE",
593
+ * // },
594
+ * // updatedAt: "STRING_VALUE",
595
+ * // updatedBy: {
596
+ * // type: "user" || "api_key" || "service", // required
597
+ * // id: "STRING_VALUE", // required
598
+ * // name: "STRING_VALUE",
599
+ * // },
600
+ * // id: "STRING_VALUE", // required
601
+ * // status: "draft" || "active" || "archived", // required
602
+ * // revision: Number("int"), // required
603
+ * // latestVersion: Number("int"),
604
+ * // aliases: [ // AgentAliasesList
605
+ * // { // AgentAlias
606
+ * // name: "STRING_VALUE", // required
607
+ * // agentId: "STRING_VALUE", // required
608
+ * // description: "STRING_VALUE",
609
+ * // routing: [ // AgentAliasRoutesList // required
610
+ * // { // AgentAliasRoute
611
+ * // version: Number("int"), // required
612
+ * // weight: Number("int"), // required
613
+ * // },
614
+ * // ],
615
+ * // updatedAt: "STRING_VALUE", // required
616
+ * // updatedBy: {
617
+ * // type: "user" || "api_key" || "service", // required
618
+ * // id: "STRING_VALUE", // required
619
+ * // name: "STRING_VALUE",
620
+ * // },
621
+ * // },
622
+ * // ],
623
+ * // },
624
+ * // };
625
+ *
626
+ * ```
627
+ *
628
+ * @param UpdateAgentCommandInput - {@link UpdateAgentCommandInput}
629
+ * @returns {@link UpdateAgentCommandOutput}
630
+ * @see {@link UpdateAgentCommandInput} for command's `input` shape.
631
+ * @see {@link UpdateAgentCommandOutput} for command's `response` shape.
632
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
633
+ *
634
+ * @throws {@link AgentNotFoundException} (client fault)
635
+ *
636
+ * @throws {@link AgentNonUniqueNameException} (client fault)
637
+ *
638
+ * @throws {@link RevisionConflictException} (client fault)
639
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
640
+ *
641
+ * @throws {@link ValidationException} (client fault)
642
+ *
643
+ * @throws {@link WilmaAgentsServiceException}
644
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
645
+ *
646
+ *
647
+ * @public
648
+ */
649
+ export declare class UpdateAgentCommand extends UpdateAgentCommand_base {
650
+ /** @internal type navigation helper, not in runtime. */
651
+ protected static __types: {
652
+ api: {
653
+ input: UpdateAgentInput;
654
+ output: UpdateAgentOutput;
655
+ };
656
+ sdk: {
657
+ input: UpdateAgentCommandInput;
658
+ output: UpdateAgentCommandOutput;
659
+ };
660
+ };
661
+ }