@wildix/wim-voicebots-client 1.1.5 → 1.1.7

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.
@@ -209,6 +209,10 @@ var TraceToolCall;
209
209
  return visitor.delegation(value.delegation);
210
210
  if (value.function !== undefined)
211
211
  return visitor.function(value.function);
212
+ if (value.capabilityTool !== undefined)
213
+ return visitor.capabilityTool(value.capabilityTool);
214
+ if (value.capabilityKb !== undefined)
215
+ return visitor.capabilityKb(value.capabilityKb);
212
216
  return visitor._(value.$unknown[0], value.$unknown[1]);
213
217
  };
214
218
  })(TraceToolCall || (exports.TraceToolCall = TraceToolCall = {}));
@@ -611,6 +611,7 @@ const se_VoiceBotLlmEndpoint = (input, context) => {
611
611
  return (0, smithy_client_1.take)(input, {
612
612
  'capabilities': smithy_client_1._json,
613
613
  'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
614
+ 'guidelines': smithy_client_1._json,
614
615
  'metadata': smithy_client_1._json,
615
616
  'model': [],
616
617
  'prompt': [],
@@ -981,6 +982,7 @@ const de_VoiceBotLlmEndpoint = (output, context) => {
981
982
  return (0, smithy_client_1.take)(output, {
982
983
  'capabilities': smithy_client_1._json,
983
984
  'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
985
+ 'guidelines': smithy_client_1._json,
984
986
  'metadata': smithy_client_1._json,
985
987
  'model': smithy_client_1.expectString,
986
988
  'prompt': smithy_client_1.expectString,
@@ -203,6 +203,10 @@ export var TraceToolCall;
203
203
  return visitor.delegation(value.delegation);
204
204
  if (value.function !== undefined)
205
205
  return visitor.function(value.function);
206
+ if (value.capabilityTool !== undefined)
207
+ return visitor.capabilityTool(value.capabilityTool);
208
+ if (value.capabilityKb !== undefined)
209
+ return visitor.capabilityKb(value.capabilityKb);
206
210
  return visitor._(value.$unknown[0], value.$unknown[1]);
207
211
  };
208
212
  })(TraceToolCall || (TraceToolCall = {}));
@@ -580,6 +580,7 @@ const se_VoiceBotLlmEndpoint = (input, context) => {
580
580
  return take(input, {
581
581
  'capabilities': _json,
582
582
  'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
583
+ 'guidelines': _json,
583
584
  'metadata': _json,
584
585
  'model': [],
585
586
  'prompt': [],
@@ -950,6 +951,7 @@ const de_VoiceBotLlmEndpoint = (output, context) => {
950
951
  return take(output, {
951
952
  'capabilities': _json,
952
953
  'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
954
+ 'guidelines': _json,
953
955
  'metadata': _json,
954
956
  'model': __expectString,
955
957
  'prompt': __expectString,
@@ -63,6 +63,9 @@ declare const CreateVoiceBotCommand_base: {
63
63
  * llm: { // VoiceBotLlmEndpoint
64
64
  * prompt: "STRING_VALUE", // required
65
65
  * model: "STRING_VALUE",
66
+ * guidelines: [ // AgentGuidelinesList
67
+ * "STRING_VALUE",
68
+ * ],
66
69
  * metadata: { // VoiceBotPromptMetadata
67
70
  * userName: { // VoiceBotPromptMetadataEnabled
68
71
  * enabled: true || false, // required
@@ -249,6 +252,9 @@ declare const CreateVoiceBotCommand_base: {
249
252
  * // llm: { // VoiceBotLlmEndpoint
250
253
  * // prompt: "STRING_VALUE", // required
251
254
  * // model: "STRING_VALUE",
255
+ * // guidelines: [ // AgentGuidelinesList
256
+ * // "STRING_VALUE",
257
+ * // ],
252
258
  * // metadata: { // VoiceBotPromptMetadata
253
259
  * // userName: { // VoiceBotPromptMetadataEnabled
254
260
  * // enabled: true || false, // required
@@ -407,6 +407,14 @@ declare const DescribeEventCommand_base: {
407
407
  * // body: "STRING_VALUE",
408
408
  * // },
409
409
  * // },
410
+ * // capabilityTool: { // TraceCapabilityToolCall
411
+ * // name: "STRING_VALUE",
412
+ * // args: "STRING_VALUE",
413
+ * // },
414
+ * // capabilityKb: { // TraceCapabilityKbCall
415
+ * // name: "STRING_VALUE",
416
+ * // args: "STRING_VALUE",
417
+ * // },
410
418
  * // },
411
419
  * // result: "STRING_VALUE",
412
420
  * // },
@@ -438,6 +446,14 @@ declare const DescribeEventCommand_base: {
438
446
  * // body: "STRING_VALUE",
439
447
  * // },
440
448
  * // },
449
+ * // capabilityTool: {
450
+ * // name: "STRING_VALUE",
451
+ * // args: "STRING_VALUE",
452
+ * // },
453
+ * // capabilityKb: {
454
+ * // name: "STRING_VALUE",
455
+ * // args: "STRING_VALUE",
456
+ * // },
441
457
  * // },
442
458
  * // result: "STRING_VALUE",
443
459
  * // },
@@ -469,6 +485,14 @@ declare const DescribeEventCommand_base: {
469
485
  * // body: "STRING_VALUE",
470
486
  * // },
471
487
  * // },
488
+ * // capabilityTool: {
489
+ * // name: "STRING_VALUE",
490
+ * // args: "STRING_VALUE",
491
+ * // },
492
+ * // capabilityKb: {
493
+ * // name: "STRING_VALUE",
494
+ * // args: "STRING_VALUE",
495
+ * // },
472
496
  * // },
473
497
  * // oauth: { // TraceOAuthInput
474
498
  * // clientId: "STRING_VALUE",
@@ -220,6 +220,14 @@ declare const GetTraceCommand_base: {
220
220
  * // body: "STRING_VALUE",
221
221
  * // },
222
222
  * // },
223
+ * // capabilityTool: { // TraceCapabilityToolCall
224
+ * // name: "STRING_VALUE",
225
+ * // args: "STRING_VALUE",
226
+ * // },
227
+ * // capabilityKb: { // TraceCapabilityKbCall
228
+ * // name: "STRING_VALUE",
229
+ * // args: "STRING_VALUE",
230
+ * // },
223
231
  * // },
224
232
  * // result: "STRING_VALUE",
225
233
  * // },
@@ -251,6 +259,14 @@ declare const GetTraceCommand_base: {
251
259
  * // body: "STRING_VALUE",
252
260
  * // },
253
261
  * // },
262
+ * // capabilityTool: {
263
+ * // name: "STRING_VALUE",
264
+ * // args: "STRING_VALUE",
265
+ * // },
266
+ * // capabilityKb: {
267
+ * // name: "STRING_VALUE",
268
+ * // args: "STRING_VALUE",
269
+ * // },
254
270
  * // },
255
271
  * // result: "STRING_VALUE",
256
272
  * // },
@@ -282,6 +298,14 @@ declare const GetTraceCommand_base: {
282
298
  * // body: "STRING_VALUE",
283
299
  * // },
284
300
  * // },
301
+ * // capabilityTool: {
302
+ * // name: "STRING_VALUE",
303
+ * // args: "STRING_VALUE",
304
+ * // },
305
+ * // capabilityKb: {
306
+ * // name: "STRING_VALUE",
307
+ * // args: "STRING_VALUE",
308
+ * // },
285
309
  * // },
286
310
  * // oauth: { // TraceOAuthInput
287
311
  * // clientId: "STRING_VALUE",
@@ -70,6 +70,9 @@ declare const GetVoiceBotCommand_base: {
70
70
  * // llm: { // VoiceBotLlmEndpoint
71
71
  * // prompt: "STRING_VALUE", // required
72
72
  * // model: "STRING_VALUE",
73
+ * // guidelines: [ // AgentGuidelinesList
74
+ * // "STRING_VALUE",
75
+ * // ],
73
76
  * // metadata: { // VoiceBotPromptMetadata
74
77
  * // userName: { // VoiceBotPromptMetadataEnabled
75
78
  * // enabled: true || false, // required
@@ -70,6 +70,9 @@ declare const ListVoiceBotsCommand_base: {
70
70
  * // llm: { // VoiceBotLlmEndpoint
71
71
  * // prompt: "STRING_VALUE", // required
72
72
  * // model: "STRING_VALUE",
73
+ * // guidelines: [ // AgentGuidelinesList
74
+ * // "STRING_VALUE",
75
+ * // ],
73
76
  * // metadata: { // VoiceBotPromptMetadata
74
77
  * // userName: { // VoiceBotPromptMetadataEnabled
75
78
  * // enabled: true || false, // required
@@ -63,6 +63,9 @@ declare const UpdateVoiceBotCommand_base: {
63
63
  * llm: { // VoiceBotLlmEndpoint
64
64
  * prompt: "STRING_VALUE", // required
65
65
  * model: "STRING_VALUE",
66
+ * guidelines: [ // AgentGuidelinesList
67
+ * "STRING_VALUE",
68
+ * ],
66
69
  * metadata: { // VoiceBotPromptMetadata
67
70
  * userName: { // VoiceBotPromptMetadataEnabled
68
71
  * enabled: true || false, // required
@@ -250,6 +253,9 @@ declare const UpdateVoiceBotCommand_base: {
250
253
  * // llm: { // VoiceBotLlmEndpoint
251
254
  * // prompt: "STRING_VALUE", // required
252
255
  * // model: "STRING_VALUE",
256
+ * // guidelines: [ // AgentGuidelinesList
257
+ * // "STRING_VALUE",
258
+ * // ],
253
259
  * // metadata: { // VoiceBotPromptMetadata
254
260
  * // userName: { // VoiceBotPromptMetadataEnabled
255
261
  * // enabled: true || false, // required
@@ -556,6 +556,7 @@ export interface VoiceBotLlmEndpoint {
556
556
  * @public
557
557
  */
558
558
  model?: string | undefined;
559
+ guidelines?: (string)[] | undefined;
559
560
  /**
560
561
  * Metadata configuration to include in the system prompt context.
561
562
  * @public
@@ -1362,6 +1363,22 @@ export interface TraceActivity {
1362
1363
  timings?: Record<string, number> | undefined;
1363
1364
  usage?: TraceUsage | undefined;
1364
1365
  }
1366
+ /**
1367
+ * Knowledge base capability call segment for trace.
1368
+ * @public
1369
+ */
1370
+ export interface TraceCapabilityKbCall {
1371
+ name?: string | undefined;
1372
+ args?: string | undefined;
1373
+ }
1374
+ /**
1375
+ * Capability tool call (wim-tools) segment for trace.
1376
+ * @public
1377
+ */
1378
+ export interface TraceCapabilityToolCall {
1379
+ name?: string | undefined;
1380
+ args?: string | undefined;
1381
+ }
1365
1382
  /**
1366
1383
  * @public
1367
1384
  */
@@ -1405,7 +1422,7 @@ export interface TraceWaitToolCall {
1405
1422
  /**
1406
1423
  * @public
1407
1424
  */
1408
- export type TraceToolCall = TraceToolCall.DelegationMember | TraceToolCall.FunctionMember | TraceToolCall.HangupMember | TraceToolCall.TransferMember | TraceToolCall.WaitMember | TraceToolCall.$UnknownMember;
1425
+ export type TraceToolCall = TraceToolCall.CapabilityKbMember | TraceToolCall.CapabilityToolMember | TraceToolCall.DelegationMember | TraceToolCall.FunctionMember | TraceToolCall.HangupMember | TraceToolCall.TransferMember | TraceToolCall.WaitMember | TraceToolCall.$UnknownMember;
1409
1426
  /**
1410
1427
  * @public
1411
1428
  */
@@ -1416,6 +1433,8 @@ export declare namespace TraceToolCall {
1416
1433
  wait?: never;
1417
1434
  delegation?: never;
1418
1435
  function?: never;
1436
+ capabilityTool?: never;
1437
+ capabilityKb?: never;
1419
1438
  $unknown?: never;
1420
1439
  }
1421
1440
  interface HangupMember {
@@ -1424,6 +1443,8 @@ export declare namespace TraceToolCall {
1424
1443
  wait?: never;
1425
1444
  delegation?: never;
1426
1445
  function?: never;
1446
+ capabilityTool?: never;
1447
+ capabilityKb?: never;
1427
1448
  $unknown?: never;
1428
1449
  }
1429
1450
  interface WaitMember {
@@ -1432,6 +1453,8 @@ export declare namespace TraceToolCall {
1432
1453
  wait: TraceWaitToolCall;
1433
1454
  delegation?: never;
1434
1455
  function?: never;
1456
+ capabilityTool?: never;
1457
+ capabilityKb?: never;
1435
1458
  $unknown?: never;
1436
1459
  }
1437
1460
  interface DelegationMember {
@@ -1440,6 +1463,8 @@ export declare namespace TraceToolCall {
1440
1463
  wait?: never;
1441
1464
  delegation: TraceDelegationToolCall;
1442
1465
  function?: never;
1466
+ capabilityTool?: never;
1467
+ capabilityKb?: never;
1443
1468
  $unknown?: never;
1444
1469
  }
1445
1470
  interface FunctionMember {
@@ -1448,6 +1473,36 @@ export declare namespace TraceToolCall {
1448
1473
  wait?: never;
1449
1474
  delegation?: never;
1450
1475
  function: TraceFunctionToolCall;
1476
+ capabilityTool?: never;
1477
+ capabilityKb?: never;
1478
+ $unknown?: never;
1479
+ }
1480
+ /**
1481
+ * Capability tool call (wim-tools) segment for trace.
1482
+ * @public
1483
+ */
1484
+ interface CapabilityToolMember {
1485
+ transfer?: never;
1486
+ hangup?: never;
1487
+ wait?: never;
1488
+ delegation?: never;
1489
+ function?: never;
1490
+ capabilityTool: TraceCapabilityToolCall;
1491
+ capabilityKb?: never;
1492
+ $unknown?: never;
1493
+ }
1494
+ /**
1495
+ * Knowledge base capability call segment for trace.
1496
+ * @public
1497
+ */
1498
+ interface CapabilityKbMember {
1499
+ transfer?: never;
1500
+ hangup?: never;
1501
+ wait?: never;
1502
+ delegation?: never;
1503
+ function?: never;
1504
+ capabilityTool?: never;
1505
+ capabilityKb: TraceCapabilityKbCall;
1451
1506
  $unknown?: never;
1452
1507
  }
1453
1508
  /**
@@ -1459,6 +1514,8 @@ export declare namespace TraceToolCall {
1459
1514
  wait?: never;
1460
1515
  delegation?: never;
1461
1516
  function?: never;
1517
+ capabilityTool?: never;
1518
+ capabilityKb?: never;
1462
1519
  $unknown: [string, any];
1463
1520
  }
1464
1521
  interface Visitor<T> {
@@ -1467,6 +1524,8 @@ export declare namespace TraceToolCall {
1467
1524
  wait: (value: TraceWaitToolCall) => T;
1468
1525
  delegation: (value: TraceDelegationToolCall) => T;
1469
1526
  function: (value: TraceFunctionToolCall) => T;
1527
+ capabilityTool: (value: TraceCapabilityToolCall) => T;
1528
+ capabilityKb: (value: TraceCapabilityKbCall) => T;
1470
1529
  _: (name: string, value: any) => T;
1471
1530
  }
1472
1531
  const visit: <T>(value: TraceToolCall, visitor: Visitor<T>) => T;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wim-voicebots-client",
3
3
  "description": "@wildix/wim-voicebots-client client",
4
- "version": "1.1.5",
4
+ "version": "1.1.7",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -80,4 +80,4 @@
80
80
  "react-native": {
81
81
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
82
82
  }
83
- }
83
+ }