@wildix/wim-voicebots-client 1.1.7 → 1.1.9

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceGenericInputBlockContent = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotNonUniqueNameException = exports.VoiceBotPipelineTerminateAction = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotCapability = exports.VoiceBotToolVariableHandler = exports.VoiceBotCapabilityToolPipelineType = exports.VoiceBotEventType = exports.ValidationException = exports.ForbiddenException = void 0;
3
+ exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceGenericInputBlockContent = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotNonUniqueNameException = exports.VoiceBotPipelineTerminateAction = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotCapability = exports.VoiceBotToolVariableHandler = exports.VoiceBotCapabilityToolPipelineType = exports.VoiceBotToolAnnotation = exports.VoiceBotEventType = exports.AnnotationSourceType = exports.AnnotationPayload = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
5
5
  class ForbiddenException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
6
6
  name = "ForbiddenException";
@@ -28,6 +28,26 @@ class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceEx
28
28
  }
29
29
  }
30
30
  exports.ValidationException = ValidationException;
31
+ var AnnotationPayload;
32
+ (function (AnnotationPayload) {
33
+ AnnotationPayload.visit = (value, visitor) => {
34
+ if (value.tag !== undefined)
35
+ return visitor.tag(value.tag);
36
+ if (value.text !== undefined)
37
+ return visitor.text(value.text);
38
+ if (value.variables !== undefined)
39
+ return visitor.variables(value.variables);
40
+ if (value.result !== undefined)
41
+ return visitor.result(value.result);
42
+ return visitor._(value.$unknown[0], value.$unknown[1]);
43
+ };
44
+ })(AnnotationPayload || (exports.AnnotationPayload = AnnotationPayload = {}));
45
+ exports.AnnotationSourceType = {
46
+ CHATBOT: "chatbot",
47
+ SYSTEM: "system",
48
+ USER: "user",
49
+ VOICEBOT: "voicebot",
50
+ };
31
51
  exports.VoiceBotEventType = {
32
52
  AUDIO: "audio",
33
53
  COMPLETE: "complete",
@@ -38,6 +58,20 @@ exports.VoiceBotEventType = {
38
58
  STARTED: "started",
39
59
  TRANSCRIPTION: "transcription",
40
60
  };
61
+ var VoiceBotToolAnnotation;
62
+ (function (VoiceBotToolAnnotation) {
63
+ VoiceBotToolAnnotation.visit = (value, visitor) => {
64
+ if (value.tag !== undefined)
65
+ return visitor.tag(value.tag);
66
+ if (value.comment !== undefined)
67
+ return visitor.comment(value.comment);
68
+ if (value.variables !== undefined)
69
+ return visitor.variables(value.variables);
70
+ if (value.result !== undefined)
71
+ return visitor.result(value.result);
72
+ return visitor._(value.$unknown[0], value.$unknown[1]);
73
+ };
74
+ })(VoiceBotToolAnnotation || (exports.VoiceBotToolAnnotation = VoiceBotToolAnnotation = {}));
41
75
  exports.VoiceBotCapabilityToolPipelineType = {
42
76
  ASYNC_REQUEST: "async_request",
43
77
  ASYNC_REQUEST_GUIDED: "async_request_guided",
@@ -189,6 +223,8 @@ var TraceActivityTrigger;
189
223
  return visitor.hangupCommand(value.hangupCommand);
190
224
  if (value.transferCommand !== undefined)
191
225
  return visitor.transferCommand(value.transferCommand);
226
+ if (value.annotationCommand !== undefined)
227
+ return visitor.annotationCommand(value.annotationCommand);
192
228
  if (value.silenceTimeoutTask !== undefined)
193
229
  return visitor.silenceTimeoutTask(value.silenceTimeoutTask);
194
230
  if (value.durationTimeoutTask !== undefined)
@@ -20,6 +20,7 @@ const se_CreateVoiceBotCommand = async (input, context) => {
20
20
  'capabilities': _ => (0, smithy_client_1._json)(_),
21
21
  'category': [],
22
22
  'endpoint': _ => se_VoiceBotEndpoint(_, context),
23
+ 'groupId': [],
23
24
  'message': [],
24
25
  'name': [],
25
26
  'pipeline': _ => (0, smithy_client_1._json)(_),
@@ -237,6 +238,7 @@ const se_UpdateVoiceBotCommand = async (input, context) => {
237
238
  'capabilities': _ => (0, smithy_client_1._json)(_),
238
239
  'category': [],
239
240
  'endpoint': _ => se_VoiceBotEndpoint(_, context),
241
+ 'groupId': [],
240
242
  'message': [],
241
243
  'name': [],
242
244
  'pipeline': _ => (0, smithy_client_1._json)(_),
@@ -303,8 +305,8 @@ const de_DescribeEventCommand = async (output, context) => {
303
305
  'SessionEndedWebhookEvent': smithy_client_1._json,
304
306
  'SessionStartedWebhookEvent': smithy_client_1._json,
305
307
  'StopWebsocketCommand': smithy_client_1._json,
306
- 'TranscriptionWebhookEvent': smithy_client_1._json,
307
- 'TranscriptionWebsocketEvent': smithy_client_1._json,
308
+ 'TranscriptionWebhookEvent': _ => de_TranscriptionWebhookEvent(_, context),
309
+ 'TranscriptionWebsocketEvent': _ => de_TranscriptionWebsocketEvent(_, context),
308
310
  'TransferWebsocketCommand': smithy_client_1._json,
309
311
  });
310
312
  Object.assign(contents, doc);
@@ -561,6 +563,7 @@ const se_Document = (input, context) => {
561
563
  };
562
564
  const se_VoiceBotEmbeddedTool = (input, context) => {
563
565
  return (0, smithy_client_1.take)(input, {
566
+ 'annotations': smithy_client_1._json,
564
567
  'name': [],
565
568
  'parameters': _ => se_Document(_, context),
566
569
  'type': [],
@@ -621,6 +624,7 @@ const se_VoiceBotLlmEndpoint = (input, context) => {
621
624
  };
622
625
  const se_VoiceBotTool = (input, context) => {
623
626
  return (0, smithy_client_1.take)(input, {
627
+ 'annotations': smithy_client_1._json,
624
628
  'function': _ => se_VoiceBotFunctionDefinition(_, context),
625
629
  'type': [],
626
630
  });
@@ -641,6 +645,43 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
641
645
  const de_Document = (output, context) => {
642
646
  return output;
643
647
  };
648
+ const de_Annotation = (output, context) => {
649
+ return (0, smithy_client_1.take)(output, {
650
+ 'id': smithy_client_1.expectString,
651
+ 'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
652
+ 'source': smithy_client_1._json,
653
+ 'time': smithy_client_1.expectLong,
654
+ });
655
+ };
656
+ const de_AnnotationPayload = (output, context) => {
657
+ if (output.result != null) {
658
+ return {
659
+ result: de_AnnotationResultValue(output.result, context)
660
+ };
661
+ }
662
+ if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
663
+ return { tag: (0, smithy_client_1.expectString)(output.tag) };
664
+ }
665
+ if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
666
+ return { text: (0, smithy_client_1.expectString)(output.text) };
667
+ }
668
+ if (output.variables != null) {
669
+ return {
670
+ variables: de_AnnotationVariablesValue(output.variables, context)
671
+ };
672
+ }
673
+ return { $unknown: Object.entries(output)[0] };
674
+ };
675
+ const de_AnnotationResultValue = (output, context) => {
676
+ return (0, smithy_client_1.take)(output, {
677
+ 'value': (_) => de_Document(_, context),
678
+ });
679
+ };
680
+ const de_AnnotationVariablesValue = (output, context) => {
681
+ return (0, smithy_client_1.take)(output, {
682
+ 'value': (_) => de_Document(_, context),
683
+ });
684
+ };
644
685
  const de_PubSubBroadcastItem = (output, context) => {
645
686
  return (0, smithy_client_1.take)(output, {
646
687
  'activity': (_) => de_TraceActivity(_, context),
@@ -691,6 +732,11 @@ const de_TraceActivity = (output, context) => {
691
732
  });
692
733
  };
693
734
  const de_TraceActivityTrigger = (output, context) => {
735
+ if (output.annotationCommand != null) {
736
+ return {
737
+ annotationCommand: de_TraceAnnotationCommand(output.annotationCommand, context)
738
+ };
739
+ }
694
740
  if (output.completeEvent != null) {
695
741
  return {
696
742
  completeEvent: (0, smithy_client_1._json)(output.completeEvent)
@@ -743,7 +789,7 @@ const de_TraceActivityTrigger = (output, context) => {
743
789
  }
744
790
  if (output.transcriptionEvent != null) {
745
791
  return {
746
- transcriptionEvent: (0, smithy_client_1._json)(output.transcriptionEvent)
792
+ transcriptionEvent: de_TranscriptionWebsocketEvent(output.transcriptionEvent, context)
747
793
  };
748
794
  }
749
795
  if (output.transferCommand != null) {
@@ -753,6 +799,11 @@ const de_TraceActivityTrigger = (output, context) => {
753
799
  }
754
800
  return { $unknown: Object.entries(output)[0] };
755
801
  };
802
+ const de_TraceAnnotationCommand = (output, context) => {
803
+ return (0, smithy_client_1.take)(output, {
804
+ 'annotation': (_) => de_Annotation(_, context),
805
+ });
806
+ };
756
807
  const de_TraceConnectEventTrigger = (output, context) => {
757
808
  return (0, smithy_client_1.take)(output, {
758
809
  'parameters': (_) => de_Document(_, context),
@@ -896,12 +947,38 @@ const de_TraceTimings = (output, context) => {
896
947
  return acc;
897
948
  }, {});
898
949
  };
950
+ const de_TranscriptionEvent = (output, context) => {
951
+ return (0, smithy_client_1.take)(output, {
952
+ 'confidence': smithy_client_1.limitedParseDouble,
953
+ 'final': smithy_client_1.expectBoolean,
954
+ 'id': smithy_client_1.expectString,
955
+ 'text': smithy_client_1.expectString,
956
+ 'time': smithy_client_1.expectLong,
957
+ 'type': smithy_client_1.expectString,
958
+ });
959
+ };
960
+ const de_TranscriptionWebhookEvent = (output, context) => {
961
+ return (0, smithy_client_1.take)(output, {
962
+ 'botId': smithy_client_1.expectString,
963
+ 'callId': smithy_client_1.expectString,
964
+ 'event': (_) => de_TranscriptionEvent(_, context),
965
+ 'flowIndex': smithy_client_1.expectInt32,
966
+ 'sessionId': smithy_client_1.expectString,
967
+ });
968
+ };
969
+ const de_TranscriptionWebsocketEvent = (output, context) => {
970
+ return (0, smithy_client_1.take)(output, {
971
+ 'event': (_) => de_TranscriptionEvent(_, context),
972
+ 'type': smithy_client_1.expectString,
973
+ });
974
+ };
899
975
  const de_VoiceBot = (output, context) => {
900
976
  return (0, smithy_client_1.take)(output, {
901
977
  'capabilities': smithy_client_1._json,
902
978
  'category': smithy_client_1.expectString,
903
979
  'createdAt': smithy_client_1.expectString,
904
980
  'endpoint': (_) => de_VoiceBotEndpoint((0, core_1.awsExpectUnion)(_), context),
981
+ 'groupId': smithy_client_1.expectString,
905
982
  'id': smithy_client_1.expectString,
906
983
  'message': smithy_client_1.expectString,
907
984
  'name': smithy_client_1.expectString,
@@ -911,6 +988,7 @@ const de_VoiceBot = (output, context) => {
911
988
  };
912
989
  const de_VoiceBotEmbeddedTool = (output, context) => {
913
990
  return (0, smithy_client_1.take)(output, {
991
+ 'annotations': smithy_client_1._json,
914
992
  'name': smithy_client_1.expectString,
915
993
  'parameters': (_) => de_Document(_, context),
916
994
  'type': smithy_client_1.expectString,
@@ -998,6 +1076,7 @@ const de_VoiceBotsList = (output, context) => {
998
1076
  };
999
1077
  const de_VoiceBotTool = (output, context) => {
1000
1078
  return (0, smithy_client_1.take)(output, {
1079
+ 'annotations': smithy_client_1._json,
1001
1080
  'function': (_) => de_VoiceBotFunctionDefinition(_, context),
1002
1081
  'type': smithy_client_1.expectString,
1003
1082
  });
@@ -23,6 +23,26 @@ export class ValidationException extends __BaseException {
23
23
  Object.setPrototypeOf(this, ValidationException.prototype);
24
24
  }
25
25
  }
26
+ export var AnnotationPayload;
27
+ (function (AnnotationPayload) {
28
+ AnnotationPayload.visit = (value, visitor) => {
29
+ if (value.tag !== undefined)
30
+ return visitor.tag(value.tag);
31
+ if (value.text !== undefined)
32
+ return visitor.text(value.text);
33
+ if (value.variables !== undefined)
34
+ return visitor.variables(value.variables);
35
+ if (value.result !== undefined)
36
+ return visitor.result(value.result);
37
+ return visitor._(value.$unknown[0], value.$unknown[1]);
38
+ };
39
+ })(AnnotationPayload || (AnnotationPayload = {}));
40
+ export const AnnotationSourceType = {
41
+ CHATBOT: "chatbot",
42
+ SYSTEM: "system",
43
+ USER: "user",
44
+ VOICEBOT: "voicebot",
45
+ };
26
46
  export const VoiceBotEventType = {
27
47
  AUDIO: "audio",
28
48
  COMPLETE: "complete",
@@ -33,6 +53,20 @@ export const VoiceBotEventType = {
33
53
  STARTED: "started",
34
54
  TRANSCRIPTION: "transcription",
35
55
  };
56
+ export var VoiceBotToolAnnotation;
57
+ (function (VoiceBotToolAnnotation) {
58
+ VoiceBotToolAnnotation.visit = (value, visitor) => {
59
+ if (value.tag !== undefined)
60
+ return visitor.tag(value.tag);
61
+ if (value.comment !== undefined)
62
+ return visitor.comment(value.comment);
63
+ if (value.variables !== undefined)
64
+ return visitor.variables(value.variables);
65
+ if (value.result !== undefined)
66
+ return visitor.result(value.result);
67
+ return visitor._(value.$unknown[0], value.$unknown[1]);
68
+ };
69
+ })(VoiceBotToolAnnotation || (VoiceBotToolAnnotation = {}));
36
70
  export const VoiceBotCapabilityToolPipelineType = {
37
71
  ASYNC_REQUEST: "async_request",
38
72
  ASYNC_REQUEST_GUIDED: "async_request_guided",
@@ -183,6 +217,8 @@ export var TraceActivityTrigger;
183
217
  return visitor.hangupCommand(value.hangupCommand);
184
218
  if (value.transferCommand !== undefined)
185
219
  return visitor.transferCommand(value.transferCommand);
220
+ if (value.annotationCommand !== undefined)
221
+ return visitor.annotationCommand(value.annotationCommand);
186
222
  if (value.silenceTimeoutTask !== undefined)
187
223
  return visitor.silenceTimeoutTask(value.silenceTimeoutTask);
188
224
  if (value.durationTimeoutTask !== undefined)
@@ -2,7 +2,7 @@ import { VoiceBotsServiceException as __BaseException } from "../models/VoiceBot
2
2
  import { ForbiddenException, ValidationException, VoiceBotEndpoint, VoiceBotFunctionIntegration, VoiceBotNonUniqueNameException, VoiceBotNotFoundException, VoiceSessionNotFoundException, } from "../models/models_0";
3
3
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
6
6
  export const se_CreateVoiceBotCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {
@@ -17,6 +17,7 @@ export const se_CreateVoiceBotCommand = async (input, context) => {
17
17
  'capabilities': _ => _json(_),
18
18
  'category': [],
19
19
  'endpoint': _ => se_VoiceBotEndpoint(_, context),
20
+ 'groupId': [],
20
21
  'message': [],
21
22
  'name': [],
22
23
  'pipeline': _ => _json(_),
@@ -221,6 +222,7 @@ export const se_UpdateVoiceBotCommand = async (input, context) => {
221
222
  'capabilities': _ => _json(_),
222
223
  'category': [],
223
224
  'endpoint': _ => se_VoiceBotEndpoint(_, context),
225
+ 'groupId': [],
224
226
  'message': [],
225
227
  'name': [],
226
228
  'pipeline': _ => _json(_),
@@ -284,8 +286,8 @@ export const de_DescribeEventCommand = async (output, context) => {
284
286
  'SessionEndedWebhookEvent': _json,
285
287
  'SessionStartedWebhookEvent': _json,
286
288
  'StopWebsocketCommand': _json,
287
- 'TranscriptionWebhookEvent': _json,
288
- 'TranscriptionWebsocketEvent': _json,
289
+ 'TranscriptionWebhookEvent': _ => de_TranscriptionWebhookEvent(_, context),
290
+ 'TranscriptionWebsocketEvent': _ => de_TranscriptionWebsocketEvent(_, context),
289
291
  'TransferWebsocketCommand': _json,
290
292
  });
291
293
  Object.assign(contents, doc);
@@ -530,6 +532,7 @@ const se_Document = (input, context) => {
530
532
  };
531
533
  const se_VoiceBotEmbeddedTool = (input, context) => {
532
534
  return take(input, {
535
+ 'annotations': _json,
533
536
  'name': [],
534
537
  'parameters': _ => se_Document(_, context),
535
538
  'type': [],
@@ -590,6 +593,7 @@ const se_VoiceBotLlmEndpoint = (input, context) => {
590
593
  };
591
594
  const se_VoiceBotTool = (input, context) => {
592
595
  return take(input, {
596
+ 'annotations': _json,
593
597
  'function': _ => se_VoiceBotFunctionDefinition(_, context),
594
598
  'type': [],
595
599
  });
@@ -610,6 +614,43 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
610
614
  const de_Document = (output, context) => {
611
615
  return output;
612
616
  };
617
+ const de_Annotation = (output, context) => {
618
+ return take(output, {
619
+ 'id': __expectString,
620
+ 'payload': (_) => de_AnnotationPayload(__expectUnion(_), context),
621
+ 'source': _json,
622
+ 'time': __expectLong,
623
+ });
624
+ };
625
+ const de_AnnotationPayload = (output, context) => {
626
+ if (output.result != null) {
627
+ return {
628
+ result: de_AnnotationResultValue(output.result, context)
629
+ };
630
+ }
631
+ if (__expectString(output.tag) !== undefined) {
632
+ return { tag: __expectString(output.tag) };
633
+ }
634
+ if (__expectString(output.text) !== undefined) {
635
+ return { text: __expectString(output.text) };
636
+ }
637
+ if (output.variables != null) {
638
+ return {
639
+ variables: de_AnnotationVariablesValue(output.variables, context)
640
+ };
641
+ }
642
+ return { $unknown: Object.entries(output)[0] };
643
+ };
644
+ const de_AnnotationResultValue = (output, context) => {
645
+ return take(output, {
646
+ 'value': (_) => de_Document(_, context),
647
+ });
648
+ };
649
+ const de_AnnotationVariablesValue = (output, context) => {
650
+ return take(output, {
651
+ 'value': (_) => de_Document(_, context),
652
+ });
653
+ };
613
654
  const de_PubSubBroadcastItem = (output, context) => {
614
655
  return take(output, {
615
656
  'activity': (_) => de_TraceActivity(_, context),
@@ -660,6 +701,11 @@ const de_TraceActivity = (output, context) => {
660
701
  });
661
702
  };
662
703
  const de_TraceActivityTrigger = (output, context) => {
704
+ if (output.annotationCommand != null) {
705
+ return {
706
+ annotationCommand: de_TraceAnnotationCommand(output.annotationCommand, context)
707
+ };
708
+ }
663
709
  if (output.completeEvent != null) {
664
710
  return {
665
711
  completeEvent: _json(output.completeEvent)
@@ -712,7 +758,7 @@ const de_TraceActivityTrigger = (output, context) => {
712
758
  }
713
759
  if (output.transcriptionEvent != null) {
714
760
  return {
715
- transcriptionEvent: _json(output.transcriptionEvent)
761
+ transcriptionEvent: de_TranscriptionWebsocketEvent(output.transcriptionEvent, context)
716
762
  };
717
763
  }
718
764
  if (output.transferCommand != null) {
@@ -722,6 +768,11 @@ const de_TraceActivityTrigger = (output, context) => {
722
768
  }
723
769
  return { $unknown: Object.entries(output)[0] };
724
770
  };
771
+ const de_TraceAnnotationCommand = (output, context) => {
772
+ return take(output, {
773
+ 'annotation': (_) => de_Annotation(_, context),
774
+ });
775
+ };
725
776
  const de_TraceConnectEventTrigger = (output, context) => {
726
777
  return take(output, {
727
778
  'parameters': (_) => de_Document(_, context),
@@ -865,12 +916,38 @@ const de_TraceTimings = (output, context) => {
865
916
  return acc;
866
917
  }, {});
867
918
  };
919
+ const de_TranscriptionEvent = (output, context) => {
920
+ return take(output, {
921
+ 'confidence': __limitedParseDouble,
922
+ 'final': __expectBoolean,
923
+ 'id': __expectString,
924
+ 'text': __expectString,
925
+ 'time': __expectLong,
926
+ 'type': __expectString,
927
+ });
928
+ };
929
+ const de_TranscriptionWebhookEvent = (output, context) => {
930
+ return take(output, {
931
+ 'botId': __expectString,
932
+ 'callId': __expectString,
933
+ 'event': (_) => de_TranscriptionEvent(_, context),
934
+ 'flowIndex': __expectInt32,
935
+ 'sessionId': __expectString,
936
+ });
937
+ };
938
+ const de_TranscriptionWebsocketEvent = (output, context) => {
939
+ return take(output, {
940
+ 'event': (_) => de_TranscriptionEvent(_, context),
941
+ 'type': __expectString,
942
+ });
943
+ };
868
944
  const de_VoiceBot = (output, context) => {
869
945
  return take(output, {
870
946
  'capabilities': _json,
871
947
  'category': __expectString,
872
948
  'createdAt': __expectString,
873
949
  'endpoint': (_) => de_VoiceBotEndpoint(__expectUnion(_), context),
950
+ 'groupId': __expectString,
874
951
  'id': __expectString,
875
952
  'message': __expectString,
876
953
  'name': __expectString,
@@ -880,6 +957,7 @@ const de_VoiceBot = (output, context) => {
880
957
  };
881
958
  const de_VoiceBotEmbeddedTool = (output, context) => {
882
959
  return take(output, {
960
+ 'annotations': _json,
883
961
  'name': __expectString,
884
962
  'parameters': (_) => de_Document(_, context),
885
963
  'type': __expectString,
@@ -967,6 +1045,7 @@ const de_VoiceBotsList = (output, context) => {
967
1045
  };
968
1046
  const de_VoiceBotTool = (output, context) => {
969
1047
  return take(output, {
1048
+ 'annotations': _json,
970
1049
  'function': (_) => de_VoiceBotFunctionDefinition(_, context),
971
1050
  'type': __expectString,
972
1051
  });
@@ -89,6 +89,22 @@ declare const CreateVoiceBotCommand_base: {
89
89
  * type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
90
90
  * name: "STRING_VALUE", // required
91
91
  * parameters: "DOCUMENT_VALUE",
92
+ * annotations: [ // VoiceBotToolAnnotationsList
93
+ * { // VoiceBotToolAnnotation Union: only one key present
94
+ * tag: { // VoiceBotToolTagAnnotation
95
+ * value: "STRING_VALUE",
96
+ * applyOnSuccess: true || false,
97
+ * applyOnFailure: true || false,
98
+ * },
99
+ * comment: { // VoiceBotToolCommentAnnotation
100
+ * value: "STRING_VALUE",
101
+ * applyOnSuccess: true || false,
102
+ * applyOnFailure: true || false,
103
+ * },
104
+ * variables: {},
105
+ * result: {},
106
+ * },
107
+ * ],
92
108
  * },
93
109
  * ],
94
110
  * tools: [ // VoiceBotToolsList
@@ -130,6 +146,22 @@ declare const CreateVoiceBotCommand_base: {
130
146
  * },
131
147
  * },
132
148
  * },
149
+ * annotations: [
150
+ * {// Union: only one key present
151
+ * tag: {
152
+ * value: "STRING_VALUE",
153
+ * applyOnSuccess: true || false,
154
+ * applyOnFailure: true || false,
155
+ * },
156
+ * comment: {
157
+ * value: "STRING_VALUE",
158
+ * applyOnSuccess: true || false,
159
+ * applyOnFailure: true || false,
160
+ * },
161
+ * variables: {},
162
+ * result: {},
163
+ * },
164
+ * ],
133
165
  * },
134
166
  * ],
135
167
  * capabilities: [ // VoiceBotCapabilitiesList
@@ -155,10 +187,42 @@ declare const CreateVoiceBotCommand_base: {
155
187
  * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
156
188
  * instructions: "STRING_VALUE",
157
189
  * },
190
+ * annotations: [
191
+ * {// Union: only one key present
192
+ * tag: {
193
+ * value: "STRING_VALUE",
194
+ * applyOnSuccess: true || false,
195
+ * applyOnFailure: true || false,
196
+ * },
197
+ * comment: {
198
+ * value: "STRING_VALUE",
199
+ * applyOnSuccess: true || false,
200
+ * applyOnFailure: true || false,
201
+ * },
202
+ * variables: {},
203
+ * result: {},
204
+ * },
205
+ * ],
158
206
  * },
159
207
  * kb: { // VoiceBotKnowledgeBase
160
208
  * knowledgeBaseId: "STRING_VALUE",
161
209
  * instructions: "STRING_VALUE",
210
+ * annotations: [
211
+ * {// Union: only one key present
212
+ * tag: {
213
+ * value: "STRING_VALUE",
214
+ * applyOnSuccess: true || false,
215
+ * applyOnFailure: true || false,
216
+ * },
217
+ * comment: {
218
+ * value: "STRING_VALUE",
219
+ * applyOnSuccess: true || false,
220
+ * applyOnFailure: true || false,
221
+ * },
222
+ * variables: {},
223
+ * result: {},
224
+ * },
225
+ * ],
162
226
  * },
163
227
  * },
164
228
  * ],
@@ -211,13 +275,16 @@ declare const CreateVoiceBotCommand_base: {
211
275
  * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
212
276
  * instructions: "STRING_VALUE",
213
277
  * },
278
+ * annotations: "<VoiceBotToolAnnotationsList>",
214
279
  * },
215
280
  * kb: {
216
281
  * knowledgeBaseId: "STRING_VALUE",
217
282
  * instructions: "STRING_VALUE",
283
+ * annotations: "<VoiceBotToolAnnotationsList>",
218
284
  * },
219
285
  * },
220
286
  * ],
287
+ * groupId: "STRING_VALUE",
221
288
  * company: "STRING_VALUE",
222
289
  * };
223
290
  * const command = new CreateVoiceBotCommand(input);
@@ -278,6 +345,22 @@ declare const CreateVoiceBotCommand_base: {
278
345
  * // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
279
346
  * // name: "STRING_VALUE", // required
280
347
  * // parameters: "DOCUMENT_VALUE",
348
+ * // annotations: [ // VoiceBotToolAnnotationsList
349
+ * // { // VoiceBotToolAnnotation Union: only one key present
350
+ * // tag: { // VoiceBotToolTagAnnotation
351
+ * // value: "STRING_VALUE",
352
+ * // applyOnSuccess: true || false,
353
+ * // applyOnFailure: true || false,
354
+ * // },
355
+ * // comment: { // VoiceBotToolCommentAnnotation
356
+ * // value: "STRING_VALUE",
357
+ * // applyOnSuccess: true || false,
358
+ * // applyOnFailure: true || false,
359
+ * // },
360
+ * // variables: {},
361
+ * // result: {},
362
+ * // },
363
+ * // ],
281
364
  * // },
282
365
  * // ],
283
366
  * // tools: [ // VoiceBotToolsList
@@ -319,6 +402,22 @@ declare const CreateVoiceBotCommand_base: {
319
402
  * // },
320
403
  * // },
321
404
  * // },
405
+ * // annotations: [
406
+ * // {// Union: only one key present
407
+ * // tag: {
408
+ * // value: "STRING_VALUE",
409
+ * // applyOnSuccess: true || false,
410
+ * // applyOnFailure: true || false,
411
+ * // },
412
+ * // comment: {
413
+ * // value: "STRING_VALUE",
414
+ * // applyOnSuccess: true || false,
415
+ * // applyOnFailure: true || false,
416
+ * // },
417
+ * // variables: {},
418
+ * // result: {},
419
+ * // },
420
+ * // ],
322
421
  * // },
323
422
  * // ],
324
423
  * // capabilities: [ // VoiceBotCapabilitiesList
@@ -344,10 +443,42 @@ declare const CreateVoiceBotCommand_base: {
344
443
  * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
345
444
  * // instructions: "STRING_VALUE",
346
445
  * // },
446
+ * // annotations: [
447
+ * // {// Union: only one key present
448
+ * // tag: {
449
+ * // value: "STRING_VALUE",
450
+ * // applyOnSuccess: true || false,
451
+ * // applyOnFailure: true || false,
452
+ * // },
453
+ * // comment: {
454
+ * // value: "STRING_VALUE",
455
+ * // applyOnSuccess: true || false,
456
+ * // applyOnFailure: true || false,
457
+ * // },
458
+ * // variables: {},
459
+ * // result: {},
460
+ * // },
461
+ * // ],
347
462
  * // },
348
463
  * // kb: { // VoiceBotKnowledgeBase
349
464
  * // knowledgeBaseId: "STRING_VALUE",
350
465
  * // instructions: "STRING_VALUE",
466
+ * // annotations: [
467
+ * // {// Union: only one key present
468
+ * // tag: {
469
+ * // value: "STRING_VALUE",
470
+ * // applyOnSuccess: true || false,
471
+ * // applyOnFailure: true || false,
472
+ * // },
473
+ * // comment: {
474
+ * // value: "STRING_VALUE",
475
+ * // applyOnSuccess: true || false,
476
+ * // applyOnFailure: true || false,
477
+ * // },
478
+ * // variables: {},
479
+ * // result: {},
480
+ * // },
481
+ * // ],
351
482
  * // },
352
483
  * // },
353
484
  * // ],
@@ -400,13 +531,16 @@ declare const CreateVoiceBotCommand_base: {
400
531
  * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
401
532
  * // instructions: "STRING_VALUE",
402
533
  * // },
534
+ * // annotations: "<VoiceBotToolAnnotationsList>",
403
535
  * // },
404
536
  * // kb: {
405
537
  * // knowledgeBaseId: "STRING_VALUE",
406
538
  * // instructions: "STRING_VALUE",
539
+ * // annotations: "<VoiceBotToolAnnotationsList>",
407
540
  * // },
408
541
  * // },
409
542
  * // ],
543
+ * // groupId: "STRING_VALUE",
410
544
  * // id: "STRING_VALUE", // required
411
545
  * // createdAt: "STRING_VALUE", // required
412
546
  * // updatedAt: "STRING_VALUE",