@wildix/wilma-agents-client 1.0.1 → 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 (72) hide show
  1. package/dist-cjs/WilmaAgents.js +12 -20
  2. package/dist-cjs/commands/{DeleteGuardrailCommand.js → CreateAgentDeploymentCommand.js} +6 -6
  3. package/dist-cjs/commands/{ExecuteAgentCommand.js → DeleteAgentDeploymentCommand.js} +6 -6
  4. package/dist-cjs/commands/{CreateGuardrailCommand.js → GetAgentDeploymentCommand.js} +6 -6
  5. package/dist-cjs/commands/{DeleteAgentAliasCommand.js → ListAgentDeploymentsCommand.js} +6 -6
  6. package/dist-cjs/commands/RestoreAgentVersionToDraftCommand.js +20 -0
  7. package/dist-cjs/commands/UpdateAgentDeploymentCommand.js +20 -0
  8. package/dist-cjs/commands/index.js +6 -10
  9. package/dist-cjs/models/enums.js +36 -81
  10. package/dist-cjs/models/errors.js +51 -36
  11. package/dist-cjs/schemas/schemas_0.js +358 -539
  12. package/dist-es/WilmaAgents.js +12 -20
  13. package/dist-es/commands/{DeleteAgentAliasCommand.js → CreateAgentDeploymentCommand.js} +5 -5
  14. package/dist-es/commands/{ExecuteAgentCommand.js → DeleteAgentDeploymentCommand.js} +5 -5
  15. package/dist-es/commands/{CreateGuardrailCommand.js → GetAgentDeploymentCommand.js} +5 -5
  16. package/dist-es/commands/{DeleteGuardrailCommand.js → ListAgentDeploymentsCommand.js} +5 -5
  17. package/dist-es/commands/RestoreAgentVersionToDraftCommand.js +16 -0
  18. package/dist-es/commands/UpdateAgentDeploymentCommand.js +16 -0
  19. package/dist-es/commands/index.js +6 -10
  20. package/dist-es/models/enums.js +35 -80
  21. package/dist-es/models/errors.js +42 -28
  22. package/dist-es/schemas/schemas_0.js +356 -536
  23. package/dist-types/WilmaAgents.d.ts +42 -71
  24. package/dist-types/WilmaAgentsClient.d.ts +16 -19
  25. package/dist-types/commands/CompareAgentVersionsCommand.d.ts +5 -5
  26. package/dist-types/commands/CreateAgentApiKeyCommand.d.ts +1 -3
  27. package/dist-types/commands/CreateAgentCommand.d.ts +451 -324
  28. package/dist-types/commands/CreateAgentDeploymentCommand.d.ts +116 -0
  29. package/dist-types/commands/DeleteAgentApiKeyCommand.d.ts +1 -3
  30. package/dist-types/commands/DeleteAgentCommand.d.ts +5 -4
  31. package/dist-types/commands/DeleteAgentDeploymentCommand.d.ts +83 -0
  32. package/dist-types/commands/GetAgentCommand.d.ts +237 -170
  33. package/dist-types/commands/GetAgentDeploymentCommand.d.ts +106 -0
  34. package/dist-types/commands/GetAgentVersionCommand.d.ts +219 -158
  35. package/dist-types/commands/ListAgentApiKeysCommand.d.ts +1 -3
  36. package/dist-types/commands/ListAgentDeploymentsCommand.d.ts +105 -0
  37. package/dist-types/commands/ListAgentVersionsCommand.d.ts +8 -7
  38. package/dist-types/commands/ListAgentsCommand.d.ts +241 -174
  39. package/dist-types/commands/ListAgentsNamesCommand.d.ts +6 -8
  40. package/dist-types/commands/PublishAgentVersionCommand.d.ts +221 -159
  41. package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +460 -0
  42. package/dist-types/commands/UpdateAgentCommand.d.ts +451 -324
  43. package/dist-types/commands/UpdateAgentDeploymentCommand.d.ts +120 -0
  44. package/dist-types/commands/index.d.ts +6 -10
  45. package/dist-types/index.d.ts +8 -7
  46. package/dist-types/models/enums.d.ts +126 -161
  47. package/dist-types/models/errors.d.ts +35 -22
  48. package/dist-types/models/models_0.d.ts +695 -741
  49. package/dist-types/schemas/schemas_0.d.ts +41 -61
  50. package/package.json +2 -2
  51. package/dist-cjs/commands/GetGuardrailCommand.js +0 -20
  52. package/dist-cjs/commands/ListAgentAliasesCommand.js +0 -20
  53. package/dist-cjs/commands/ListAuditRecordsCommand.js +0 -20
  54. package/dist-cjs/commands/ListGuardrailsCommand.js +0 -20
  55. package/dist-cjs/commands/PutAgentAliasCommand.js +0 -20
  56. package/dist-cjs/commands/UpdateGuardrailCommand.js +0 -20
  57. package/dist-es/commands/GetGuardrailCommand.js +0 -16
  58. package/dist-es/commands/ListAgentAliasesCommand.js +0 -16
  59. package/dist-es/commands/ListAuditRecordsCommand.js +0 -16
  60. package/dist-es/commands/ListGuardrailsCommand.js +0 -16
  61. package/dist-es/commands/PutAgentAliasCommand.js +0 -16
  62. package/dist-es/commands/UpdateGuardrailCommand.js +0 -16
  63. package/dist-types/commands/CreateGuardrailCommand.d.ts +0 -172
  64. package/dist-types/commands/DeleteAgentAliasCommand.d.ts +0 -82
  65. package/dist-types/commands/DeleteGuardrailCommand.d.ts +0 -80
  66. package/dist-types/commands/ExecuteAgentCommand.d.ts +0 -112
  67. package/dist-types/commands/GetGuardrailCommand.d.ts +0 -135
  68. package/dist-types/commands/ListAgentAliasesCommand.d.ts +0 -99
  69. package/dist-types/commands/ListAuditRecordsCommand.d.ts +0 -109
  70. package/dist-types/commands/ListGuardrailsCommand.d.ts +0 -137
  71. package/dist-types/commands/PutAgentAliasCommand.d.ts +0 -107
  72. package/dist-types/commands/UpdateGuardrailCommand.d.ts +0 -175
@@ -24,12 +24,10 @@ export interface CreateAgentCommandOutput extends CreateAgentOutput, __MetadataB
24
24
  declare const CreateAgentCommand_base: {
25
25
  new (input: CreateAgentCommandInput): import("@smithy/core/client").CommandImpl<CreateAgentCommandInput, CreateAgentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: CreateAgentCommandInput): import("@smithy/core/client").CommandImpl<CreateAgentCommandInput, CreateAgentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
- * Creates a new agent draft with the specified configuration. The agent serves no traffic until its first version is published.
30
+ * Creates a new mutable agent draft. The agent serves no traffic until the draft is published and a deployment routes traffic to that version.
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -43,12 +41,80 @@ declare const CreateAgentCommand_base: {
43
41
  * description: "STRING_VALUE",
44
42
  * category: "STRING_VALUE",
45
43
  * picture: "STRING_VALUE",
44
+ * channels: { // AgentChannels
45
+ * voice: { // VoiceChannelSettings
46
+ * greeting: "STRING_VALUE",
47
+ * interruptions: { // VoiceInterruptionSettings
48
+ * enabled: true || false, // required
49
+ * minWords: Number("int"),
50
+ * },
51
+ * silenceTimeout: { // VoiceSilenceTimeoutSettings
52
+ * seconds: Number("int"), // required
53
+ * action: { // VoiceTerminateAction Union: only one key present
54
+ * hangup: { // VoiceTerminateHangupAction
55
+ * message: "STRING_VALUE",
56
+ * },
57
+ * transfer: { // VoiceTransferTarget
58
+ * name: "STRING_VALUE", // required
59
+ * description: "STRING_VALUE",
60
+ * context: "STRING_VALUE", // required
61
+ * extension: "STRING_VALUE", // required
62
+ * },
63
+ * },
64
+ * },
65
+ * maxDuration: { // VoiceMaxDurationSettings
66
+ * seconds: Number("int"), // required
67
+ * action: {// Union: only one key present
68
+ * hangup: {
69
+ * message: "STRING_VALUE",
70
+ * },
71
+ * transfer: {
72
+ * name: "STRING_VALUE", // required
73
+ * description: "STRING_VALUE",
74
+ * context: "STRING_VALUE", // required
75
+ * extension: "STRING_VALUE", // required
76
+ * },
77
+ * },
78
+ * },
79
+ * endCall: { // VoiceEndCallSettings
80
+ * enabled: true || false, // required
81
+ * phrases: "STRING_VALUE",
82
+ * },
83
+ * callerMetadata: { // VoiceCallerMetadataSettings
84
+ * callerName: true || false,
85
+ * callerNumber: true || false,
86
+ * callerEmail: true || false,
87
+ * callerCompany: true || false,
88
+ * time: true || false,
89
+ * timeZone: "STRING_VALUE",
90
+ * },
91
+ * },
92
+ * chat: { // ChatChannelSettings
93
+ * discoverable: true || false,
94
+ * },
95
+ * assistant: { // AssistantChannelSettings
96
+ * default: true || false,
97
+ * },
98
+ * autonomous: {},
99
+ * },
46
100
  * engine: { // AgentEngine Union: only one key present
47
- * llm: { // AgentLlmEngine
101
+ * ai: { // AgentAiEngine
48
102
  * instructions: "STRING_VALUE", // required
49
103
  * model: "STRING_VALUE",
50
104
  * skills: [ // AgentSkillsList
51
- * "STRING_VALUE",
105
+ * { // AgentSkillReference
106
+ * id: "STRING_VALUE", // required
107
+ * skillVersion: "STRING_VALUE",
108
+ * access: { // AgentAccess
109
+ * visibility: "explicit" || "organization",
110
+ * grants: [ // AgentGrantPrincipalList
111
+ * { // AgentGrantPrincipal Union: only one key present
112
+ * userId: "STRING_VALUE",
113
+ * groupId: "STRING_VALUE",
114
+ * },
115
+ * ],
116
+ * },
117
+ * },
52
118
  * ],
53
119
  * capabilities: [ // AgentCapabilitiesList
54
120
  * { // AgentCapability Union: only one key present
@@ -63,50 +129,55 @@ declare const CreateAgentCommand_base: {
63
129
  * description: "STRING_VALUE", // required
64
130
  * },
65
131
  * predefined: { // AgentToolVariablePredefinedHandler
66
- * description: "STRING_VALUE", // required
132
+ * value: "STRING_VALUE", // required
67
133
  * },
68
134
  * },
69
135
  * },
70
136
  * ],
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
- * },
137
+ * startMessage: "STRING_VALUE",
138
+ * pipeline: { // AgentToolPipeline
139
+ * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
140
+ * instructions: "STRING_VALUE",
141
+ * },
142
+ * approval: { // AgentToolApproval
143
+ * prompt: "STRING_VALUE",
144
+ * },
145
+ * annotations: [ // AgentToolAnnotationsList
146
+ * { // AgentToolAnnotation Union: only one key present
147
+ * tag: { // AgentToolTagAnnotation
148
+ * value: "STRING_VALUE",
149
+ * applyOnSuccess: true || false,
150
+ * applyOnFailure: true || false,
95
151
  * },
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",
152
+ * comment: { // AgentToolCommentAnnotation
153
+ * value: "STRING_VALUE",
154
+ * applyOnSuccess: true || false,
155
+ * applyOnFailure: true || false,
156
+ * },
157
+ * variables: {},
158
+ * result: {},
104
159
  * },
105
- * },
160
+ * ],
106
161
  * },
107
162
  * kb: { // AgentKnowledgeBase
108
163
  * knowledgeBaseId: "STRING_VALUE",
109
164
  * instructions: "STRING_VALUE",
165
+ * annotations: [
166
+ * {// Union: only one key present
167
+ * tag: {
168
+ * value: "STRING_VALUE",
169
+ * applyOnSuccess: true || false,
170
+ * applyOnFailure: true || false,
171
+ * },
172
+ * comment: {
173
+ * value: "STRING_VALUE",
174
+ * applyOnSuccess: true || false,
175
+ * applyOnFailure: true || false,
176
+ * },
177
+ * variables: {},
178
+ * result: {},
179
+ * },
180
+ * ],
110
181
  * },
111
182
  * sandbox: { // AgentSandboxCapability Union: only one key present
112
183
  * vercel: { // AgentVercelSandboxOptions
@@ -144,6 +215,17 @@ declare const CreateAgentCommand_base: {
144
215
  * },
145
216
  * agent: { // AgentCallCapability
146
217
  * agentId: "STRING_VALUE", // required
218
+ * agentVersion: "STRING_VALUE",
219
+ * agentDeployment: "STRING_VALUE",
220
+ * access: {
221
+ * visibility: "explicit" || "organization",
222
+ * grants: [
223
+ * {// Union: only one key present
224
+ * userId: "STRING_VALUE",
225
+ * groupId: "STRING_VALUE",
226
+ * },
227
+ * ],
228
+ * },
147
229
  * variables: [
148
230
  * {
149
231
  * name: "STRING_VALUE", // required
@@ -153,55 +235,111 @@ declare const CreateAgentCommand_base: {
153
235
  * description: "STRING_VALUE", // required
154
236
  * },
155
237
  * predefined: {
156
- * description: "STRING_VALUE", // required
238
+ * value: "STRING_VALUE", // required
157
239
  * },
158
240
  * },
159
241
  * },
160
242
  * ],
161
243
  * },
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
- * },
244
+ * handover: { // AgentHandoverCapability
245
+ * name: "STRING_VALUE",
246
+ * description: "STRING_VALUE",
247
+ * variant: "agent" || "service",
248
+ * agent: "STRING_VALUE",
249
+ * agentVersion: "STRING_VALUE",
250
+ * agentDeployment: "STRING_VALUE",
251
+ * service: "STRING_VALUE",
252
+ * silent: true || false,
253
+ * pipeline: { // AgentHandoverPipeline
254
+ * type: "handover" || "reply_and_handover" || "reply_instructed_and_handover",
255
+ * instructions: "STRING_VALUE",
178
256
  * },
179
- * allowedTools: [ // FunctionNameList
180
- * "STRING_VALUE",
257
+ * annotations: [
258
+ * {// Union: only one key present
259
+ * tag: {
260
+ * value: "STRING_VALUE",
261
+ * applyOnSuccess: true || false,
262
+ * applyOnFailure: true || false,
263
+ * },
264
+ * comment: {
265
+ * value: "STRING_VALUE",
266
+ * applyOnSuccess: true || false,
267
+ * applyOnFailure: true || false,
268
+ * },
269
+ * variables: {},
270
+ * result: {},
271
+ * },
181
272
  * ],
182
273
  * },
183
- * handover: { // AgentHandoverCapability
184
- * instructions: "STRING_VALUE",
185
- * message: "STRING_VALUE",
186
- * },
187
274
  * delegation: { // AgentDelegationCapability
188
- * agents: [ // AgentIdList
189
- * "STRING_VALUE",
275
+ * name: "STRING_VALUE",
276
+ * description: "STRING_VALUE",
277
+ * id: "STRING_VALUE", // required
278
+ * agentVersion: "STRING_VALUE",
279
+ * agentDeployment: "STRING_VALUE",
280
+ * annotations: [
281
+ * {// Union: only one key present
282
+ * tag: {
283
+ * value: "STRING_VALUE",
284
+ * applyOnSuccess: true || false,
285
+ * applyOnFailure: true || false,
286
+ * },
287
+ * comment: {
288
+ * value: "STRING_VALUE",
289
+ * applyOnSuccess: true || false,
290
+ * applyOnFailure: true || false,
291
+ * },
292
+ * variables: {},
293
+ * result: {},
294
+ * },
190
295
  * ],
191
- * instructions: "STRING_VALUE",
192
296
  * },
193
297
  * 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
298
+ * name: "STRING_VALUE",
299
+ * description: "STRING_VALUE",
300
+ * variant: "predefined" || "dynamic" || "directory",
301
+ * context: "STRING_VALUE",
302
+ * extension: "STRING_VALUE",
303
+ * pipeline: { // AgentTransferPipeline
304
+ * type: "transfer" || "reply_and_transfer" || "reply_instructed_and_transfer",
305
+ * instructions: "STRING_VALUE",
306
+ * },
307
+ * annotations: [
308
+ * {// Union: only one key present
309
+ * tag: {
310
+ * value: "STRING_VALUE",
311
+ * applyOnSuccess: true || false,
312
+ * applyOnFailure: true || false,
313
+ * },
314
+ * comment: {
315
+ * value: "STRING_VALUE",
316
+ * applyOnSuccess: true || false,
317
+ * applyOnFailure: true || false,
318
+ * },
319
+ * variables: {},
320
+ * result: {},
200
321
  * },
201
322
  * ],
202
- * instructions: "STRING_VALUE",
203
323
  * },
204
- * suggestions: {},
324
+ * suggestions: { // AgentSuggestionsCapability
325
+ * name: "STRING_VALUE",
326
+ * annotations: "<AgentToolAnnotationsList>",
327
+ * },
328
+ * hangup: { // AgentHangupCapability
329
+ * name: "STRING_VALUE",
330
+ * description: "STRING_VALUE",
331
+ * pipeline: { // AgentHangupPipeline
332
+ * type: "hangup" || "reply_and_hangup" || "reply_instructed_and_hangup",
333
+ * instructions: "STRING_VALUE",
334
+ * },
335
+ * annotations: "<AgentToolAnnotationsList>",
336
+ * },
337
+ * wait: { // AgentWaitCapability
338
+ * name: "STRING_VALUE",
339
+ * description: "STRING_VALUE",
340
+ * message: "STRING_VALUE",
341
+ * annotations: "<AgentToolAnnotationsList>",
342
+ * },
205
343
  * },
206
344
  * ],
207
345
  * variables: [ // AgentVariablesList
@@ -224,90 +362,10 @@ declare const CreateAgentCommand_base: {
224
362
  * secret: "STRING_VALUE", // required
225
363
  * },
226
364
  * },
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
- * ],
365
+ * settings: { // AgentSettings
366
+ * pbxGroupId: "STRING_VALUE",
310
367
  * },
368
+ * access: "<AgentAccess>",
311
369
  * company: "STRING_VALUE",
312
370
  * };
313
371
  * const command = new CreateAgentCommand(input);
@@ -318,12 +376,80 @@ declare const CreateAgentCommand_base: {
318
376
  * // description: "STRING_VALUE",
319
377
  * // category: "STRING_VALUE",
320
378
  * // picture: "STRING_VALUE",
379
+ * // channels: { // AgentChannels
380
+ * // voice: { // VoiceChannelSettings
381
+ * // greeting: "STRING_VALUE",
382
+ * // interruptions: { // VoiceInterruptionSettings
383
+ * // enabled: true || false, // required
384
+ * // minWords: Number("int"),
385
+ * // },
386
+ * // silenceTimeout: { // VoiceSilenceTimeoutSettings
387
+ * // seconds: Number("int"), // required
388
+ * // action: { // VoiceTerminateAction Union: only one key present
389
+ * // hangup: { // VoiceTerminateHangupAction
390
+ * // message: "STRING_VALUE",
391
+ * // },
392
+ * // transfer: { // VoiceTransferTarget
393
+ * // name: "STRING_VALUE", // required
394
+ * // description: "STRING_VALUE",
395
+ * // context: "STRING_VALUE", // required
396
+ * // extension: "STRING_VALUE", // required
397
+ * // },
398
+ * // },
399
+ * // },
400
+ * // maxDuration: { // VoiceMaxDurationSettings
401
+ * // seconds: Number("int"), // required
402
+ * // action: {// Union: only one key present
403
+ * // hangup: {
404
+ * // message: "STRING_VALUE",
405
+ * // },
406
+ * // transfer: {
407
+ * // name: "STRING_VALUE", // required
408
+ * // description: "STRING_VALUE",
409
+ * // context: "STRING_VALUE", // required
410
+ * // extension: "STRING_VALUE", // required
411
+ * // },
412
+ * // },
413
+ * // },
414
+ * // endCall: { // VoiceEndCallSettings
415
+ * // enabled: true || false, // required
416
+ * // phrases: "STRING_VALUE",
417
+ * // },
418
+ * // callerMetadata: { // VoiceCallerMetadataSettings
419
+ * // callerName: true || false,
420
+ * // callerNumber: true || false,
421
+ * // callerEmail: true || false,
422
+ * // callerCompany: true || false,
423
+ * // time: true || false,
424
+ * // timeZone: "STRING_VALUE",
425
+ * // },
426
+ * // },
427
+ * // chat: { // ChatChannelSettings
428
+ * // discoverable: true || false,
429
+ * // },
430
+ * // assistant: { // AssistantChannelSettings
431
+ * // default: true || false,
432
+ * // },
433
+ * // autonomous: {},
434
+ * // },
321
435
  * // engine: { // AgentEngine Union: only one key present
322
- * // llm: { // AgentLlmEngine
436
+ * // ai: { // AgentAiEngine
323
437
  * // instructions: "STRING_VALUE", // required
324
438
  * // model: "STRING_VALUE",
325
439
  * // skills: [ // AgentSkillsList
326
- * // "STRING_VALUE",
440
+ * // { // AgentSkillReference
441
+ * // id: "STRING_VALUE", // required
442
+ * // skillVersion: "STRING_VALUE",
443
+ * // access: { // AgentAccess
444
+ * // visibility: "explicit" || "organization",
445
+ * // grants: [ // AgentGrantPrincipalList
446
+ * // { // AgentGrantPrincipal Union: only one key present
447
+ * // userId: "STRING_VALUE",
448
+ * // groupId: "STRING_VALUE",
449
+ * // },
450
+ * // ],
451
+ * // },
452
+ * // },
327
453
  * // ],
328
454
  * // capabilities: [ // AgentCapabilitiesList
329
455
  * // { // AgentCapability Union: only one key present
@@ -338,50 +464,55 @@ declare const CreateAgentCommand_base: {
338
464
  * // description: "STRING_VALUE", // required
339
465
  * // },
340
466
  * // predefined: { // AgentToolVariablePredefinedHandler
341
- * // description: "STRING_VALUE", // required
467
+ * // value: "STRING_VALUE", // required
342
468
  * // },
343
469
  * // },
344
470
  * // },
345
471
  * // ],
346
- * // },
347
- * // function: { // AgentFunctionTool
348
- * // name: "STRING_VALUE", // required
349
- * // description: "STRING_VALUE",
350
- * // parameters: "DOCUMENT_VALUE",
351
- * // integration: { // FunctionIntegration Union: only one key present
352
- * // webhook: { // FunctionWebhookIntegration
353
- * // url: "STRING_VALUE", // required
354
- * // method: "get" || "post" || "put" || "delete" || "patch",
355
- * // async: true || false,
356
- * // authorization: { // WebhookAuthorization Union: only one key present
357
- * // bearer: { // WebhookAuthorizationBearer
358
- * // token: "STRING_VALUE", // required
359
- * // },
360
- * // basic: { // WebhookAuthorizationBasic
361
- * // username: "STRING_VALUE", // required
362
- * // password: "STRING_VALUE", // required
363
- * // },
364
- * // oauth: { // WebhookAuthorizationOAuth
365
- * // clientId: "STRING_VALUE", // required
366
- * // clientSecret: "STRING_VALUE", // required
367
- * // endpointUrl: "STRING_VALUE", // required
368
- * // scope: "STRING_VALUE",
369
- * // },
472
+ * // startMessage: "STRING_VALUE",
473
+ * // pipeline: { // AgentToolPipeline
474
+ * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
475
+ * // instructions: "STRING_VALUE",
476
+ * // },
477
+ * // approval: { // AgentToolApproval
478
+ * // prompt: "STRING_VALUE",
479
+ * // },
480
+ * // annotations: [ // AgentToolAnnotationsList
481
+ * // { // AgentToolAnnotation Union: only one key present
482
+ * // tag: { // AgentToolTagAnnotation
483
+ * // value: "STRING_VALUE",
484
+ * // applyOnSuccess: true || false,
485
+ * // applyOnFailure: true || false,
370
486
  * // },
371
- * // headers: [ // WebhookHeadersList
372
- * // { // WebhookHeader
373
- * // name: "STRING_VALUE", // required
374
- * // value: "STRING_VALUE", // required
375
- * // },
376
- * // ],
377
- * // timeout: Number("int"),
378
- * // parameters: "DOCUMENT_VALUE",
487
+ * // comment: { // AgentToolCommentAnnotation
488
+ * // value: "STRING_VALUE",
489
+ * // applyOnSuccess: true || false,
490
+ * // applyOnFailure: true || false,
491
+ * // },
492
+ * // variables: {},
493
+ * // result: {},
379
494
  * // },
380
- * // },
495
+ * // ],
381
496
  * // },
382
497
  * // kb: { // AgentKnowledgeBase
383
498
  * // knowledgeBaseId: "STRING_VALUE",
384
499
  * // instructions: "STRING_VALUE",
500
+ * // annotations: [
501
+ * // {// Union: only one key present
502
+ * // tag: {
503
+ * // value: "STRING_VALUE",
504
+ * // applyOnSuccess: true || false,
505
+ * // applyOnFailure: true || false,
506
+ * // },
507
+ * // comment: {
508
+ * // value: "STRING_VALUE",
509
+ * // applyOnSuccess: true || false,
510
+ * // applyOnFailure: true || false,
511
+ * // },
512
+ * // variables: {},
513
+ * // result: {},
514
+ * // },
515
+ * // ],
385
516
  * // },
386
517
  * // sandbox: { // AgentSandboxCapability Union: only one key present
387
518
  * // vercel: { // AgentVercelSandboxOptions
@@ -419,6 +550,17 @@ declare const CreateAgentCommand_base: {
419
550
  * // },
420
551
  * // agent: { // AgentCallCapability
421
552
  * // agentId: "STRING_VALUE", // required
553
+ * // agentVersion: "STRING_VALUE",
554
+ * // agentDeployment: "STRING_VALUE",
555
+ * // access: {
556
+ * // visibility: "explicit" || "organization",
557
+ * // grants: [
558
+ * // {// Union: only one key present
559
+ * // userId: "STRING_VALUE",
560
+ * // groupId: "STRING_VALUE",
561
+ * // },
562
+ * // ],
563
+ * // },
422
564
  * // variables: [
423
565
  * // {
424
566
  * // name: "STRING_VALUE", // required
@@ -428,55 +570,111 @@ declare const CreateAgentCommand_base: {
428
570
  * // description: "STRING_VALUE", // required
429
571
  * // },
430
572
  * // predefined: {
431
- * // description: "STRING_VALUE", // required
573
+ * // value: "STRING_VALUE", // required
432
574
  * // },
433
575
  * // },
434
576
  * // },
435
577
  * // ],
436
578
  * // },
437
- * // mcp: { // AgentMcpServerCapability
438
- * // url: "STRING_VALUE", // required
439
- * // authorization: {// Union: only one key present
440
- * // bearer: {
441
- * // token: "STRING_VALUE", // required
442
- * // },
443
- * // basic: {
444
- * // username: "STRING_VALUE", // required
445
- * // password: "STRING_VALUE", // required
446
- * // },
447
- * // oauth: {
448
- * // clientId: "STRING_VALUE", // required
449
- * // clientSecret: "STRING_VALUE", // required
450
- * // endpointUrl: "STRING_VALUE", // required
451
- * // scope: "STRING_VALUE",
452
- * // },
579
+ * // handover: { // AgentHandoverCapability
580
+ * // name: "STRING_VALUE",
581
+ * // description: "STRING_VALUE",
582
+ * // variant: "agent" || "service",
583
+ * // agent: "STRING_VALUE",
584
+ * // agentVersion: "STRING_VALUE",
585
+ * // agentDeployment: "STRING_VALUE",
586
+ * // service: "STRING_VALUE",
587
+ * // silent: true || false,
588
+ * // pipeline: { // AgentHandoverPipeline
589
+ * // type: "handover" || "reply_and_handover" || "reply_instructed_and_handover",
590
+ * // instructions: "STRING_VALUE",
453
591
  * // },
454
- * // allowedTools: [ // FunctionNameList
455
- * // "STRING_VALUE",
592
+ * // annotations: [
593
+ * // {// Union: only one key present
594
+ * // tag: {
595
+ * // value: "STRING_VALUE",
596
+ * // applyOnSuccess: true || false,
597
+ * // applyOnFailure: true || false,
598
+ * // },
599
+ * // comment: {
600
+ * // value: "STRING_VALUE",
601
+ * // applyOnSuccess: true || false,
602
+ * // applyOnFailure: true || false,
603
+ * // },
604
+ * // variables: {},
605
+ * // result: {},
606
+ * // },
456
607
  * // ],
457
608
  * // },
458
- * // handover: { // AgentHandoverCapability
459
- * // instructions: "STRING_VALUE",
460
- * // message: "STRING_VALUE",
461
- * // },
462
609
  * // delegation: { // AgentDelegationCapability
463
- * // agents: [ // AgentIdList
464
- * // "STRING_VALUE",
610
+ * // name: "STRING_VALUE",
611
+ * // description: "STRING_VALUE",
612
+ * // id: "STRING_VALUE", // required
613
+ * // agentVersion: "STRING_VALUE",
614
+ * // agentDeployment: "STRING_VALUE",
615
+ * // annotations: [
616
+ * // {// Union: only one key present
617
+ * // tag: {
618
+ * // value: "STRING_VALUE",
619
+ * // applyOnSuccess: true || false,
620
+ * // applyOnFailure: true || false,
621
+ * // },
622
+ * // comment: {
623
+ * // value: "STRING_VALUE",
624
+ * // applyOnSuccess: true || false,
625
+ * // applyOnFailure: true || false,
626
+ * // },
627
+ * // variables: {},
628
+ * // result: {},
629
+ * // },
465
630
  * // ],
466
- * // instructions: "STRING_VALUE",
467
631
  * // },
468
632
  * // transfer: { // AgentTransferCapability
469
- * // targets: [ // VoiceTransferTargetsList // required
470
- * // { // VoiceTransferTarget
471
- * // name: "STRING_VALUE", // required
472
- * // description: "STRING_VALUE",
473
- * // context: "STRING_VALUE", // required
474
- * // extension: "STRING_VALUE", // required
633
+ * // name: "STRING_VALUE",
634
+ * // description: "STRING_VALUE",
635
+ * // variant: "predefined" || "dynamic" || "directory",
636
+ * // context: "STRING_VALUE",
637
+ * // extension: "STRING_VALUE",
638
+ * // pipeline: { // AgentTransferPipeline
639
+ * // type: "transfer" || "reply_and_transfer" || "reply_instructed_and_transfer",
640
+ * // instructions: "STRING_VALUE",
641
+ * // },
642
+ * // annotations: [
643
+ * // {// Union: only one key present
644
+ * // tag: {
645
+ * // value: "STRING_VALUE",
646
+ * // applyOnSuccess: true || false,
647
+ * // applyOnFailure: true || false,
648
+ * // },
649
+ * // comment: {
650
+ * // value: "STRING_VALUE",
651
+ * // applyOnSuccess: true || false,
652
+ * // applyOnFailure: true || false,
653
+ * // },
654
+ * // variables: {},
655
+ * // result: {},
475
656
  * // },
476
657
  * // ],
477
- * // instructions: "STRING_VALUE",
478
658
  * // },
479
- * // suggestions: {},
659
+ * // suggestions: { // AgentSuggestionsCapability
660
+ * // name: "STRING_VALUE",
661
+ * // annotations: "<AgentToolAnnotationsList>",
662
+ * // },
663
+ * // hangup: { // AgentHangupCapability
664
+ * // name: "STRING_VALUE",
665
+ * // description: "STRING_VALUE",
666
+ * // pipeline: { // AgentHangupPipeline
667
+ * // type: "hangup" || "reply_and_hangup" || "reply_instructed_and_hangup",
668
+ * // instructions: "STRING_VALUE",
669
+ * // },
670
+ * // annotations: "<AgentToolAnnotationsList>",
671
+ * // },
672
+ * // wait: { // AgentWaitCapability
673
+ * // name: "STRING_VALUE",
674
+ * // description: "STRING_VALUE",
675
+ * // message: "STRING_VALUE",
676
+ * // annotations: "<AgentToolAnnotationsList>",
677
+ * // },
480
678
  * // },
481
679
  * // ],
482
680
  * // variables: [ // AgentVariablesList
@@ -499,90 +697,10 @@ declare const CreateAgentCommand_base: {
499
697
  * // secret: "STRING_VALUE", // required
500
698
  * // },
501
699
  * // },
502
- * // channels: { // AgentChannels
503
- * // assistant: { // AssistantChannelSettings
504
- * // enabled: true || false, // required
505
- * // default: true || false,
506
- * // },
507
- * // chat: { // ChatChannelSettings
508
- * // enabled: true || false, // required
509
- * // discoverable: true || false,
510
- * // pbxGroupId: "STRING_VALUE",
511
- * // welcomeMessage: "STRING_VALUE",
512
- * // },
513
- * // voice: { // VoiceChannelSettings
514
- * // enabled: true || false, // required
515
- * // language: "STRING_VALUE", // required
516
- * // synthesis: { // VoiceSynthesisSettings
517
- * // provider: "elevenlabs" || "google", // required
518
- * // voiceId: "STRING_VALUE", // required
519
- * // speed: Number("float"),
520
- * // },
521
- * // greeting: "STRING_VALUE",
522
- * // interruptions: { // VoiceInterruptionSettings
523
- * // enabled: true || false, // required
524
- * // minWords: Number("int"),
525
- * // },
526
- * // silenceTimeout: { // VoiceSilenceTimeoutSettings
527
- * // seconds: Number("int"), // required
528
- * // action: { // VoiceTerminateAction Union: only one key present
529
- * // hangup: { // VoiceTerminateHangupAction
530
- * // message: "STRING_VALUE",
531
- * // },
532
- * // transfer: {
533
- * // name: "STRING_VALUE", // required
534
- * // description: "STRING_VALUE",
535
- * // context: "STRING_VALUE", // required
536
- * // extension: "STRING_VALUE", // required
537
- * // },
538
- * // },
539
- * // },
540
- * // maxDuration: { // VoiceMaxDurationSettings
541
- * // seconds: Number("int"), // required
542
- * // action: {// Union: only one key present
543
- * // hangup: {
544
- * // message: "STRING_VALUE",
545
- * // },
546
- * // transfer: {
547
- * // name: "STRING_VALUE", // required
548
- * // description: "STRING_VALUE",
549
- * // context: "STRING_VALUE", // required
550
- * // extension: "STRING_VALUE", // required
551
- * // },
552
- * // },
553
- * // },
554
- * // endCall: { // VoiceEndCallSettings
555
- * // enabled: true || false, // required
556
- * // phrases: "STRING_VALUE",
557
- * // },
558
- * // callerMetadata: { // VoiceCallerMetadataSettings
559
- * // callerName: true || false,
560
- * // callerNumber: true || false,
561
- * // callerEmail: true || false,
562
- * // callerCompany: true || false,
563
- * // time: true || false,
564
- * // timeZone: "STRING_VALUE",
565
- * // },
566
- * // },
567
- * // api: { // ApiChannelSettings
568
- * // enabled: true || false, // required
569
- * // },
570
- * // },
571
- * // guardrails: [ // GuardrailIdList
572
- * // "STRING_VALUE",
573
- * // ],
574
- * // access: { // AgentAccess
575
- * // visibility: "explicit" || "organization",
576
- * // grants: [ // AgentGrantList
577
- * // { // AgentGrant
578
- * // permission: "view" || "edit" || "use", // required
579
- * // principal: { // AgentGrantPrincipal Union: only one key present
580
- * // userId: "STRING_VALUE",
581
- * // groupId: "STRING_VALUE",
582
- * // },
583
- * // },
584
- * // ],
700
+ * // settings: { // AgentSettings
701
+ * // pbxGroupId: "STRING_VALUE",
585
702
  * // },
703
+ * // access: "<AgentAccess>",
586
704
  * // createdAt: "STRING_VALUE", // required
587
705
  * // createdBy: { // Actor
588
706
  * // type: "user" || "api_key" || "service", // required
@@ -596,26 +714,35 @@ declare const CreateAgentCommand_base: {
596
714
  * // name: "STRING_VALUE",
597
715
  * // },
598
716
  * // id: "STRING_VALUE", // required
599
- * // status: "draft" || "active" || "archived", // required
717
+ * // status: "draft" || "active", // required
600
718
  * // revision: Number("int"), // required
601
- * // latestVersion: Number("int"),
602
- * // aliases: [ // AgentAliasesList
603
- * // { // AgentAlias
604
- * // name: "STRING_VALUE", // required
605
- * // agentId: "STRING_VALUE", // required
606
- * // description: "STRING_VALUE",
607
- * // routing: [ // AgentAliasRoutesList // required
608
- * // { // AgentAliasRoute
609
- * // version: Number("int"), // required
610
- * // weight: Number("int"), // required
611
- * // },
612
- * // ],
613
- * // updatedAt: "STRING_VALUE", // required
719
+ * // latestVersion: "STRING_VALUE",
720
+ * // draftBaseVersion: "STRING_VALUE",
721
+ * // deployments: [ // AgentDeploymentsList
722
+ * // { // AgentDeployment
723
+ * // createdAt: "STRING_VALUE", // required
724
+ * // createdBy: {
725
+ * // type: "user" || "api_key" || "service", // required
726
+ * // id: "STRING_VALUE", // required
727
+ * // name: "STRING_VALUE",
728
+ * // },
729
+ * // updatedAt: "STRING_VALUE",
614
730
  * // updatedBy: {
615
731
  * // type: "user" || "api_key" || "service", // required
616
732
  * // id: "STRING_VALUE", // required
617
733
  * // name: "STRING_VALUE",
618
734
  * // },
735
+ * // agentId: "STRING_VALUE", // required
736
+ * // name: "STRING_VALUE", // required
737
+ * // description: "STRING_VALUE",
738
+ * // status: "active" || "paused", // required
739
+ * // routing: [ // AgentDeploymentRoutesList // required
740
+ * // { // AgentDeploymentRoute
741
+ * // version: "STRING_VALUE", // required
742
+ * // percentage: Number("int"), // required
743
+ * // },
744
+ * // ],
745
+ * // revision: Number("int"), // required
619
746
  * // },
620
747
  * // ],
621
748
  * // },