@wildix/wim-voicebots-client 1.0.9 → 1.0.10

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.
@@ -37,6 +37,18 @@ export const VoiceBotEmbeddedToolType = {
37
37
  HANGUP: "HANGUP",
38
38
  TRANSFER: "TRANSFER",
39
39
  };
40
+ export var VoiceBotFunctionIntegrationWebhookAuthorization;
41
+ (function (VoiceBotFunctionIntegrationWebhookAuthorization) {
42
+ VoiceBotFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
43
+ if (value.bearer !== undefined)
44
+ return visitor.bearer(value.bearer);
45
+ if (value.basic !== undefined)
46
+ return visitor.basic(value.basic);
47
+ if (value.oauth !== undefined)
48
+ return visitor.oauth(value.oauth);
49
+ return visitor._(value.$unknown[0], value.$unknown[1]);
50
+ };
51
+ })(VoiceBotFunctionIntegrationWebhookAuthorization || (VoiceBotFunctionIntegrationWebhookAuthorization = {}));
40
52
  export var VoiceBotFunctionIntegration;
41
53
  (function (VoiceBotFunctionIntegration) {
42
54
  VoiceBotFunctionIntegration.visit = (value, visitor) => {
@@ -69,6 +81,136 @@ export const VoiceBotCommandType = {
69
81
  SAY: "say",
70
82
  TRANSFER: "transfer",
71
83
  };
84
+ export var TraceActivityResult;
85
+ (function (TraceActivityResult) {
86
+ TraceActivityResult.visit = (value, visitor) => {
87
+ if (value.error !== undefined)
88
+ return visitor.error(value.error);
89
+ if (value.text !== undefined)
90
+ return visitor.text(value.text);
91
+ return visitor._(value.$unknown[0], value.$unknown[1]);
92
+ };
93
+ })(TraceActivityResult || (TraceActivityResult = {}));
94
+ export const TraceActivityStatus = {
95
+ CANCELLED: "cancelled",
96
+ COMPLETE: "complete",
97
+ ERROR: "error",
98
+ PENDING: "pending",
99
+ };
100
+ export var TraceActivityTrigger;
101
+ (function (TraceActivityTrigger) {
102
+ TraceActivityTrigger.visit = (value, visitor) => {
103
+ if (value.connectEvent !== undefined)
104
+ return visitor.connectEvent(value.connectEvent);
105
+ if (value.disconnectEvent !== undefined)
106
+ return visitor.disconnectEvent(value.disconnectEvent);
107
+ if (value.replyEvent !== undefined)
108
+ return visitor.replyEvent(value.replyEvent);
109
+ if (value.completeEvent !== undefined)
110
+ return visitor.completeEvent(value.completeEvent);
111
+ if (value.interruptionEvent !== undefined)
112
+ return visitor.interruptionEvent(value.interruptionEvent);
113
+ if (value.playbackEvent !== undefined)
114
+ return visitor.playbackEvent(value.playbackEvent);
115
+ if (value.transcriptionEvent !== undefined)
116
+ return visitor.transcriptionEvent(value.transcriptionEvent);
117
+ if (value.sayCommand !== undefined)
118
+ return visitor.sayCommand(value.sayCommand);
119
+ if (value.hangupCommand !== undefined)
120
+ return visitor.hangupCommand(value.hangupCommand);
121
+ if (value.transferCommand !== undefined)
122
+ return visitor.transferCommand(value.transferCommand);
123
+ if (value.silenceTimeoutTask !== undefined)
124
+ return visitor.silenceTimeoutTask(value.silenceTimeoutTask);
125
+ if (value.durationTimeoutTask !== undefined)
126
+ return visitor.durationTimeoutTask(value.durationTimeoutTask);
127
+ return visitor._(value.$unknown[0], value.$unknown[1]);
128
+ };
129
+ })(TraceActivityTrigger || (TraceActivityTrigger = {}));
130
+ export var TraceSegmentCompletionMessageItem;
131
+ (function (TraceSegmentCompletionMessageItem) {
132
+ TraceSegmentCompletionMessageItem.visit = (value, visitor) => {
133
+ if (value.user !== undefined)
134
+ return visitor.user(value.user);
135
+ if (value.bot !== undefined)
136
+ return visitor.bot(value.bot);
137
+ return visitor._(value.$unknown[0], value.$unknown[1]);
138
+ };
139
+ })(TraceSegmentCompletionMessageItem || (TraceSegmentCompletionMessageItem = {}));
140
+ export var TraceToolCall;
141
+ (function (TraceToolCall) {
142
+ TraceToolCall.visit = (value, visitor) => {
143
+ if (value.transfer !== undefined)
144
+ return visitor.transfer(value.transfer);
145
+ if (value.hangup !== undefined)
146
+ return visitor.hangup(value.hangup);
147
+ if (value.delegation !== undefined)
148
+ return visitor.delegation(value.delegation);
149
+ if (value.function !== undefined)
150
+ return visitor.function(value.function);
151
+ return visitor._(value.$unknown[0], value.$unknown[1]);
152
+ };
153
+ })(TraceToolCall || (TraceToolCall = {}));
154
+ export var TraceSegmentInput;
155
+ (function (TraceSegmentInput) {
156
+ TraceSegmentInput.visit = (value, visitor) => {
157
+ if (value.completion !== undefined)
158
+ return visitor.completion(value.completion);
159
+ if (value.tool !== undefined)
160
+ return visitor.tool(value.tool);
161
+ return visitor._(value.$unknown[0], value.$unknown[1]);
162
+ };
163
+ })(TraceSegmentInput || (TraceSegmentInput = {}));
164
+ export var TraceToolResult;
165
+ (function (TraceToolResult) {
166
+ TraceToolResult.visit = (value, visitor) => {
167
+ if (value.transfer !== undefined)
168
+ return visitor.transfer(value.transfer);
169
+ if (value.hangup !== undefined)
170
+ return visitor.hangup(value.hangup);
171
+ if (value.delegation !== undefined)
172
+ return visitor.delegation(value.delegation);
173
+ if (value.function !== undefined)
174
+ return visitor.function(value.function);
175
+ return visitor._(value.$unknown[0], value.$unknown[1]);
176
+ };
177
+ })(TraceToolResult || (TraceToolResult = {}));
178
+ export var TraceSegmentResult;
179
+ (function (TraceSegmentResult) {
180
+ TraceSegmentResult.visit = (value, visitor) => {
181
+ if (value.error !== undefined)
182
+ return visitor.error(value.error);
183
+ if (value.tools !== undefined)
184
+ return visitor.tools(value.tools);
185
+ if (value.text !== undefined)
186
+ return visitor.text(value.text);
187
+ if (value.json !== undefined)
188
+ return visitor.json(value.json);
189
+ return visitor._(value.$unknown[0], value.$unknown[1]);
190
+ };
191
+ })(TraceSegmentResult || (TraceSegmentResult = {}));
192
+ export const TraceSegmentStatus = {
193
+ COMPLETE: "complete",
194
+ ERROR: "error",
195
+ PENDING: "pending",
196
+ };
197
+ export const TraceSessionStatus = {
198
+ COMPLETE: "complete",
199
+ COMPLETE_WITH_ERROR: "complete_with_error",
200
+ PENDING: "pending",
201
+ };
202
+ export var PubSubBroadcastItem;
203
+ (function (PubSubBroadcastItem) {
204
+ PubSubBroadcastItem.visit = (value, visitor) => {
205
+ if (value.session !== undefined)
206
+ return visitor.session(value.session);
207
+ if (value.activity !== undefined)
208
+ return visitor.activity(value.activity);
209
+ if (value.segment !== undefined)
210
+ return visitor.segment(value.segment);
211
+ return visitor._(value.$unknown[0], value.$unknown[1]);
212
+ };
213
+ })(PubSubBroadcastItem || (PubSubBroadcastItem = {}));
72
214
  export class VoiceBotNotFoundException extends __BaseException {
73
215
  constructor(opts) {
74
216
  super({
@@ -52,6 +52,21 @@ export const se_DescribeEventCommand = async (input, context) => {
52
52
  .b(body);
53
53
  return b.build();
54
54
  };
55
+ export const se_GetTraceCommand = async (input, context) => {
56
+ const b = rb(input, context);
57
+ const headers = {};
58
+ b.bp("/v2/voicebots/traces/{sessionId}");
59
+ b.p('sessionId', () => input.sessionId, '{sessionId}', false);
60
+ const query = map({
61
+ [_c]: [, input[_c]],
62
+ });
63
+ let body;
64
+ b.m("GET")
65
+ .h(headers)
66
+ .q(query)
67
+ .b(body);
68
+ return b.build();
69
+ };
55
70
  export const se_GetVoiceBotCommand = async (input, context) => {
56
71
  const b = rb(input, context);
57
72
  const headers = {};
@@ -67,6 +82,20 @@ export const se_GetVoiceBotCommand = async (input, context) => {
67
82
  .b(body);
68
83
  return b.build();
69
84
  };
85
+ export const se_ListTracesCommand = async (input, context) => {
86
+ const b = rb(input, context);
87
+ const headers = {};
88
+ b.bp("/v2/voicebots/traces");
89
+ const query = map({
90
+ [_c]: [, input[_c]],
91
+ });
92
+ let body;
93
+ b.m("GET")
94
+ .h(headers)
95
+ .q(query)
96
+ .b(body);
97
+ return b.build();
98
+ };
70
99
  export const se_ListVoiceBotsCommand = async (input, context) => {
71
100
  const b = rb(input, context);
72
101
  const headers = {};
@@ -209,6 +238,11 @@ export const de_DescribeEventCommand = async (output, context) => {
209
238
  'InterruptionWebsocketEvent': _json,
210
239
  'PlaybackWebhookEvent': _json,
211
240
  'PlaybackWebsocketEvent': _json,
241
+ 'PubSubBroadcastWebsocketEvent': _ => de_PubSubBroadcastWebsocketEvent(_, context),
242
+ 'PubSubSubscribeWebsocketCommand': _json,
243
+ 'PubSubSubscribedWebsocketEvent': _json,
244
+ 'PubSubUnsubscribeWebsocketCommand': _json,
245
+ 'PubSubUnsubscribedWebsocketEvent': _json,
212
246
  'ReplyWebhookEvent': _json,
213
247
  'ReplyWebsocketEvent': _json,
214
248
  'SayWebsocketCommand': _json,
@@ -221,6 +255,20 @@ export const de_DescribeEventCommand = async (output, context) => {
221
255
  Object.assign(contents, doc);
222
256
  return contents;
223
257
  };
258
+ export const de_GetTraceCommand = async (output, context) => {
259
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
260
+ return de_CommandError(output, context);
261
+ }
262
+ const contents = map({
263
+ $metadata: deserializeMetadata(output),
264
+ });
265
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
266
+ const doc = take(data, {
267
+ 'trace': _ => de_Trace(_, context),
268
+ });
269
+ Object.assign(contents, doc);
270
+ return contents;
271
+ };
224
272
  export const de_GetVoiceBotCommand = async (output, context) => {
225
273
  if (output.statusCode !== 200 && output.statusCode >= 300) {
226
274
  return de_CommandError(output, context);
@@ -235,6 +283,20 @@ export const de_GetVoiceBotCommand = async (output, context) => {
235
283
  Object.assign(contents, doc);
236
284
  return contents;
237
285
  };
286
+ export const de_ListTracesCommand = async (output, context) => {
287
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
288
+ return de_CommandError(output, context);
289
+ }
290
+ const contents = map({
291
+ $metadata: deserializeMetadata(output),
292
+ });
293
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
294
+ const doc = take(data, {
295
+ 'traces': _json,
296
+ });
297
+ Object.assign(contents, doc);
298
+ return contents;
299
+ };
238
300
  export const de_ListVoiceBotsCommand = async (output, context) => {
239
301
  if (output.statusCode !== 200 && output.statusCode >= 300) {
240
302
  return de_CommandError(output, context);
@@ -432,10 +494,9 @@ const se_VoiceBotFunctionIntegration = (input, context) => {
432
494
  const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
433
495
  return take(input, {
434
496
  'async': [],
435
- 'authorization': _ => se_Document(_, context),
497
+ 'authorization': _json,
436
498
  'headers': _json,
437
499
  'parameters': _ => se_Document(_, context),
438
- 'timeout': [],
439
500
  'url': [],
440
501
  });
441
502
  };
@@ -468,6 +529,183 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
468
529
  const de_Document = (output, context) => {
469
530
  return output;
470
531
  };
532
+ const de_PubSubBroadcastItem = (output, context) => {
533
+ if (output.activity != null) {
534
+ return {
535
+ activity: de_TraceActivity(output.activity, context)
536
+ };
537
+ }
538
+ if (output.segment != null) {
539
+ return {
540
+ segment: de_TraceSegment(output.segment, context)
541
+ };
542
+ }
543
+ if (output.session != null) {
544
+ return {
545
+ session: _json(output.session)
546
+ };
547
+ }
548
+ return { $unknown: Object.entries(output)[0] };
549
+ };
550
+ const de_PubSubBroadcastItems = (output, context) => {
551
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
552
+ return de_PubSubBroadcastItem(__expectUnion(entry), context);
553
+ });
554
+ return retVal;
555
+ };
556
+ const de_PubSubBroadcastWebsocketEvent = (output, context) => {
557
+ return take(output, {
558
+ 'event': __expectString,
559
+ 'items': (_) => de_PubSubBroadcastItems(_, context),
560
+ 'topic': __expectString,
561
+ });
562
+ };
563
+ const de_Trace = (output, context) => {
564
+ return take(output, {
565
+ 'activities': (_) => de_TraceActivitiesList(_, context),
566
+ 'segments': (_) => de_TraceSegmentsList(_, context),
567
+ 'session': _json,
568
+ });
569
+ };
570
+ const de_TraceActivitiesList = (output, context) => {
571
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
572
+ return de_TraceActivity(entry, context);
573
+ });
574
+ return retVal;
575
+ };
576
+ const de_TraceActivity = (output, context) => {
577
+ return take(output, {
578
+ 'duration': __expectInt32,
579
+ 'id': __expectString,
580
+ 'result': (_) => _json(__expectUnion(_)),
581
+ 'start': __expectInt32,
582
+ 'status': __expectString,
583
+ 'trigger': (_) => de_TraceActivityTrigger(__expectUnion(_), context),
584
+ 'version': __expectInt32,
585
+ });
586
+ };
587
+ const de_TraceActivityTrigger = (output, context) => {
588
+ if (output.completeEvent != null) {
589
+ return {
590
+ completeEvent: _json(output.completeEvent)
591
+ };
592
+ }
593
+ if (output.connectEvent != null) {
594
+ return {
595
+ connectEvent: de_TraceConnectEventTrigger(output.connectEvent, context)
596
+ };
597
+ }
598
+ if (output.disconnectEvent != null) {
599
+ return {
600
+ disconnectEvent: de_TraceDisconnectEventTrigger(output.disconnectEvent, context)
601
+ };
602
+ }
603
+ if (output.durationTimeoutTask != null) {
604
+ return {
605
+ durationTimeoutTask: de_TraceDurationTimeoutTaskTrigger(output.durationTimeoutTask, context)
606
+ };
607
+ }
608
+ if (output.hangupCommand != null) {
609
+ return {
610
+ hangupCommand: _json(output.hangupCommand)
611
+ };
612
+ }
613
+ if (output.interruptionEvent != null) {
614
+ return {
615
+ interruptionEvent: _json(output.interruptionEvent)
616
+ };
617
+ }
618
+ if (output.playbackEvent != null) {
619
+ return {
620
+ playbackEvent: _json(output.playbackEvent)
621
+ };
622
+ }
623
+ if (output.replyEvent != null) {
624
+ return {
625
+ replyEvent: _json(output.replyEvent)
626
+ };
627
+ }
628
+ if (output.sayCommand != null) {
629
+ return {
630
+ sayCommand: _json(output.sayCommand)
631
+ };
632
+ }
633
+ if (output.silenceTimeoutTask != null) {
634
+ return {
635
+ silenceTimeoutTask: de_TraceSilenceTimeoutTaskTrigger(output.silenceTimeoutTask, context)
636
+ };
637
+ }
638
+ if (output.transcriptionEvent != null) {
639
+ return {
640
+ transcriptionEvent: _json(output.transcriptionEvent)
641
+ };
642
+ }
643
+ if (output.transferCommand != null) {
644
+ return {
645
+ transferCommand: _json(output.transferCommand)
646
+ };
647
+ }
648
+ return { $unknown: Object.entries(output)[0] };
649
+ };
650
+ const de_TraceConnectEventTrigger = (output, context) => {
651
+ return take(output, {
652
+ 'parameters': (_) => de_Document(_, context),
653
+ });
654
+ };
655
+ const de_TraceDisconnectEventTrigger = (output, context) => {
656
+ return take(output, {
657
+ 'parameters': (_) => de_Document(_, context),
658
+ });
659
+ };
660
+ const de_TraceDurationTimeoutTaskTrigger = (output, context) => {
661
+ return take(output, {
662
+ 'parameters': (_) => de_Document(_, context),
663
+ });
664
+ };
665
+ const de_TraceSegment = (output, context) => {
666
+ return take(output, {
667
+ 'activityId': __expectString,
668
+ 'duration': __expectInt32,
669
+ 'id': __expectString,
670
+ 'input': (_) => _json(__expectUnion(_)),
671
+ 'result': (_) => de_TraceSegmentResult(__expectUnion(_), context),
672
+ 'start': __expectInt32,
673
+ 'status': __expectString,
674
+ 'version': __expectInt32,
675
+ });
676
+ };
677
+ const de_TraceSegmentResult = (output, context) => {
678
+ if (output.error != null) {
679
+ return {
680
+ error: _json(output.error)
681
+ };
682
+ }
683
+ if (output.json != null) {
684
+ return {
685
+ json: de_Document(output.json, context)
686
+ };
687
+ }
688
+ if (__expectString(output.text) !== undefined) {
689
+ return { text: __expectString(output.text) };
690
+ }
691
+ if (output.tools != null) {
692
+ return {
693
+ tools: _json(output.tools)
694
+ };
695
+ }
696
+ return { $unknown: Object.entries(output)[0] };
697
+ };
698
+ const de_TraceSegmentsList = (output, context) => {
699
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
700
+ return de_TraceSegment(entry, context);
701
+ });
702
+ return retVal;
703
+ };
704
+ const de_TraceSilenceTimeoutTaskTrigger = (output, context) => {
705
+ return take(output, {
706
+ 'parameters': (_) => de_Document(_, context),
707
+ });
708
+ };
471
709
  const de_VoiceBot = (output, context) => {
472
710
  return take(output, {
473
711
  'createdAt': __expectString,
@@ -539,10 +777,9 @@ const de_VoiceBotFunctionIntegration = (output, context) => {
539
777
  const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
540
778
  return take(output, {
541
779
  'async': __expectBoolean,
542
- 'authorization': (_) => de_Document(_, context),
780
+ 'authorization': (_) => _json(__expectUnion(_)),
543
781
  'headers': _json,
544
782
  'parameters': (_) => de_Document(_, context),
545
- 'timeout': __expectInt32,
546
783
  'url': __expectString,
547
784
  });
548
785
  };
@@ -2,7 +2,9 @@ import { VoiceBotsClient } from "./VoiceBotsClient";
2
2
  import { CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput } from "./commands/CreateVoiceBotCommand";
3
3
  import { DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput } from "./commands/DeleteVoiceBotCommand";
4
4
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
5
+ import { GetTraceCommandInput, GetTraceCommandOutput } from "./commands/GetTraceCommand";
5
6
  import { GetVoiceBotCommandInput, GetVoiceBotCommandOutput } from "./commands/GetVoiceBotCommand";
7
+ import { ListTracesCommandInput, ListTracesCommandOutput } from "./commands/ListTracesCommand";
6
8
  import { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
7
9
  import { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
8
10
  import { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
@@ -30,12 +32,25 @@ export interface VoiceBots {
30
32
  describeEvent(args: DescribeEventCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventCommandOutput>;
31
33
  describeEvent(args: DescribeEventCommandInput, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
32
34
  describeEvent(args: DescribeEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
35
+ /**
36
+ * @see {@link GetTraceCommand}
37
+ */
38
+ getTrace(args: GetTraceCommandInput, options?: __HttpHandlerOptions): Promise<GetTraceCommandOutput>;
39
+ getTrace(args: GetTraceCommandInput, cb: (err: any, data?: GetTraceCommandOutput) => void): void;
40
+ getTrace(args: GetTraceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTraceCommandOutput) => void): void;
33
41
  /**
34
42
  * @see {@link GetVoiceBotCommand}
35
43
  */
36
44
  getVoiceBot(args: GetVoiceBotCommandInput, options?: __HttpHandlerOptions): Promise<GetVoiceBotCommandOutput>;
37
45
  getVoiceBot(args: GetVoiceBotCommandInput, cb: (err: any, data?: GetVoiceBotCommandOutput) => void): void;
38
46
  getVoiceBot(args: GetVoiceBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetVoiceBotCommandOutput) => void): void;
47
+ /**
48
+ * @see {@link ListTracesCommand}
49
+ */
50
+ listTraces(): Promise<ListTracesCommandOutput>;
51
+ listTraces(args: ListTracesCommandInput, options?: __HttpHandlerOptions): Promise<ListTracesCommandOutput>;
52
+ listTraces(args: ListTracesCommandInput, cb: (err: any, data?: ListTracesCommandOutput) => void): void;
53
+ listTraces(args: ListTracesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTracesCommandOutput) => void): void;
39
54
  /**
40
55
  * @see {@link ListVoiceBotsCommand}
41
56
  */
@@ -1,7 +1,9 @@
1
1
  import { CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput } from "./commands/CreateVoiceBotCommand";
2
2
  import { DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput } from "./commands/DeleteVoiceBotCommand";
3
3
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
4
+ import { GetTraceCommandInput, GetTraceCommandOutput } from "./commands/GetTraceCommand";
4
5
  import { GetVoiceBotCommandInput, GetVoiceBotCommandOutput } from "./commands/GetVoiceBotCommand";
6
+ import { ListTracesCommandInput, ListTracesCommandOutput } from "./commands/ListTracesCommand";
5
7
  import { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
6
8
  import { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
7
9
  import { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
@@ -19,11 +21,11 @@ export { __Client };
19
21
  /**
20
22
  * @public
21
23
  */
22
- export type ServiceInputTypes = CreateVoiceBotCommandInput | DeleteVoiceBotCommandInput | DescribeEventCommandInput | GetVoiceBotCommandInput | ListVoiceBotsCommandInput | ListVoiceBotsNamesCommandInput | SendHangupCommandInput | SendSayCommandInput | SendTransferCommandInput | UpdateVoiceBotCommandInput;
24
+ export type ServiceInputTypes = CreateVoiceBotCommandInput | DeleteVoiceBotCommandInput | DescribeEventCommandInput | GetTraceCommandInput | GetVoiceBotCommandInput | ListTracesCommandInput | ListVoiceBotsCommandInput | ListVoiceBotsNamesCommandInput | SendHangupCommandInput | SendSayCommandInput | SendTransferCommandInput | UpdateVoiceBotCommandInput;
23
25
  /**
24
26
  * @public
25
27
  */
26
- export type ServiceOutputTypes = CreateVoiceBotCommandOutput | DeleteVoiceBotCommandOutput | DescribeEventCommandOutput | GetVoiceBotCommandOutput | ListVoiceBotsCommandOutput | ListVoiceBotsNamesCommandOutput | SendHangupCommandOutput | SendSayCommandOutput | SendTransferCommandOutput | UpdateVoiceBotCommandOutput;
28
+ export type ServiceOutputTypes = CreateVoiceBotCommandOutput | DeleteVoiceBotCommandOutput | DescribeEventCommandOutput | GetTraceCommandOutput | GetVoiceBotCommandOutput | ListTracesCommandOutput | ListVoiceBotsCommandOutput | ListVoiceBotsNamesCommandOutput | SendHangupCommandOutput | SendSayCommandOutput | SendTransferCommandOutput | UpdateVoiceBotCommandOutput;
27
29
  /**
28
30
  * @public
29
31
  */
@@ -66,8 +66,21 @@ declare const CreateVoiceBotCommand_base: {
66
66
  * webhook: { // VoiceBotFunctionIntegrationWebhook
67
67
  * url: "STRING_VALUE", // required
68
68
  * async: true || false,
69
- * timeout: Number("int"),
70
- * authorization: "DOCUMENT_VALUE",
69
+ * authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
70
+ * bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
71
+ * token: "STRING_VALUE", // required
72
+ * },
73
+ * basic: { // VoiceBotFunctionIntegrationWebhookAuthorizationBasic
74
+ * username: "STRING_VALUE", // required
75
+ * password: "STRING_VALUE", // required
76
+ * },
77
+ * oauth: { // VoiceBotFunctionIntegrationWebhookAuthorizationOAuth
78
+ * clientId: "STRING_VALUE", // required
79
+ * clientSecret: "STRING_VALUE", // required
80
+ * endpointUrl: "STRING_VALUE", // required
81
+ * scope: "STRING_VALUE",
82
+ * },
83
+ * },
71
84
  * headers: [ // VoiceBotFunctionIntegrationWebhookHeadersList
72
85
  * { // VoiceBotFunctionIntegrationWebhookHeader
73
86
  * key: "STRING_VALUE", // required
@@ -137,8 +150,21 @@ declare const CreateVoiceBotCommand_base: {
137
150
  * // webhook: { // VoiceBotFunctionIntegrationWebhook
138
151
  * // url: "STRING_VALUE", // required
139
152
  * // async: true || false,
140
- * // timeout: Number("int"),
141
- * // authorization: "DOCUMENT_VALUE",
153
+ * // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
154
+ * // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
155
+ * // token: "STRING_VALUE", // required
156
+ * // },
157
+ * // basic: { // VoiceBotFunctionIntegrationWebhookAuthorizationBasic
158
+ * // username: "STRING_VALUE", // required
159
+ * // password: "STRING_VALUE", // required
160
+ * // },
161
+ * // oauth: { // VoiceBotFunctionIntegrationWebhookAuthorizationOAuth
162
+ * // clientId: "STRING_VALUE", // required
163
+ * // clientSecret: "STRING_VALUE", // required
164
+ * // endpointUrl: "STRING_VALUE", // required
165
+ * // scope: "STRING_VALUE",
166
+ * // },
167
+ * // },
142
168
  * // headers: [ // VoiceBotFunctionIntegrationWebhookHeadersList
143
169
  * // { // VoiceBotFunctionIntegrationWebhookHeader
144
170
  * // key: "STRING_VALUE", // required