@wildix/wda-stream-client 1.1.47 → 1.1.49

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 (34) hide show
  1. package/dist-cjs/WdaStream.js +2 -0
  2. package/dist-cjs/commands/ListServicesCommand.js +21 -0
  3. package/dist-cjs/commands/index.js +1 -0
  4. package/dist-cjs/models/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +77 -41
  6. package/dist-cjs/models/models_1.js +44 -0
  7. package/dist-cjs/protocols/Aws_restJson1.js +146 -8
  8. package/dist-es/WdaStream.js +2 -0
  9. package/dist-es/commands/ListServicesCommand.js +17 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/index.js +1 -0
  12. package/dist-es/models/models_0.js +76 -38
  13. package/dist-es/models/models_1.js +39 -0
  14. package/dist-es/protocols/Aws_restJson1.js +142 -6
  15. package/dist-types/WdaStream.d.ts +8 -0
  16. package/dist-types/WdaStreamClient.d.ts +3 -2
  17. package/dist-types/commands/ConsumeEventCommand.d.ts +203 -12
  18. package/dist-types/commands/DescribeEventCommand.d.ts +411 -117
  19. package/dist-types/commands/GetConferenceIdCommand.d.ts +1 -1
  20. package/dist-types/commands/GetOngoingCallCommand.d.ts +3 -1
  21. package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +3 -2
  22. package/dist-types/commands/GetOngoingConferenceCommand.d.ts +2 -2
  23. package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +3 -3
  24. package/dist-types/commands/ListServicesCommand.d.ts +87 -0
  25. package/dist-types/commands/QueryConversationsCommand.d.ts +5 -5
  26. package/dist-types/commands/QueryPresenceCommand.d.ts +1 -1
  27. package/dist-types/commands/QueryPresencesCommand.d.ts +1 -1
  28. package/dist-types/commands/UpdatePresenceLastSeenCommand.d.ts +1 -1
  29. package/dist-types/commands/index.d.ts +1 -0
  30. package/dist-types/models/index.d.ts +1 -0
  31. package/dist-types/models/models_0.d.ts +1355 -423
  32. package/dist-types/models/models_1.d.ts +471 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  34. package/package.json +1 -1
@@ -246,8 +246,10 @@ export const CallConsumeEventType = {
246
246
  CALL_END: "CALL.END",
247
247
  CALL_LIVE: "CALL.LIVE",
248
248
  CALL_POST_TRANSCRIPTION: "CALL.POST_TRANSCRIPTION",
249
+ CALL_RECORD_PAUSE: "CALL.RECORD_PAUSE",
249
250
  CALL_RECORD_START: "CALL.RECORD_START",
250
251
  CALL_RECORD_STOP: "CALL.RECORD_STOP",
252
+ CALL_RECORD_UNPAUSE: "CALL.RECORD_UNPAUSE",
251
253
  CALL_SPLIT: "CALL.SPLIT",
252
254
  CALL_START: "CALL.START",
253
255
  CALL_TRANSCRIPTION: "CALL.TRANSCRIPTION",
@@ -270,13 +272,20 @@ export const LiveEventType = {
270
272
  CONFERENCE_JOIN: "conference_join",
271
273
  CONFERENCE_LEAVE: "conference_leave",
272
274
  CONFERENCE_TRANSCRIPTION: "conference_transcription",
275
+ SERVICE: "service",
276
+ SERVICE_AGENT: "service_agent",
277
+ SERVICE_CALL: "service_call",
278
+ SERVICE_CALL_COMPLETE: "service_call_complete",
279
+ SERVICE_COMPLETE: "service_complete",
273
280
  };
274
281
  export const CallAnalyticsLiveProgressEventTrigger = {
275
282
  AGENTS_CANCEL: "call.agents_cancel",
276
283
  AGENTS_START: "call.agents_start",
277
284
  ATTACHMENT: "call.attachment",
285
+ RECORD_PAUSE: "call.record_pause",
278
286
  RECORD_START: "call.record_start",
279
287
  RECORD_STOP: "call.record_stop",
288
+ RECORD_UNPAUSE: "call.record_unpause",
280
289
  SPLIT: "call.split",
281
290
  START: "call.start",
282
291
  TRANSCRIPTION: "call.transcription",
@@ -365,6 +374,27 @@ export const PresenceConsumeEventType = {
365
374
  PRESENCE: "PRESENCE",
366
375
  PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
367
376
  };
377
+ export const ServiceAgentType = {
378
+ DYNAMIC: "DYNAMIC",
379
+ STATIC: "STATIC",
380
+ };
381
+ export const ServiceConsumeEventType = {
382
+ SERVICE_AGENT_JOIN: "SERVICE.AGENT_JOIN",
383
+ SERVICE_AGENT_LEAVE: "SERVICE.AGENT_LEAVE",
384
+ SERVICE_AGENT_UPDATE: "SERVICE.AGENT_UPDATE",
385
+ SERVICE_CALL_END: "SERVICE.CALL_END",
386
+ SERVICE_CALL_INIT: "SERVICE.CALL_INIT",
387
+ SERVICE_CALL_UPDATE: "SERVICE.CALL_UPDATE",
388
+ SERVICE_END: "SERVICE.END",
389
+ SERVICE_INIT: "SERVICE.INIT",
390
+ SERVICE_UPDATE: "SERVICE.UPDATE",
391
+ };
392
+ export const ServiceCallAction = {
393
+ ANSWER: "ANSWER",
394
+ CANCEL: "CANCEL",
395
+ REJECT: "REJECT",
396
+ RING: "RING",
397
+ };
368
398
  export const SmsConsumeEventType = {
369
399
  SMS_INBOUND: "SMS.INBOUND",
370
400
  SMS_STATUS: "SMS.STATUS",
@@ -407,6 +437,10 @@ export var ConsumeEventInputEvent;
407
437
  return visitor.callRecordStart(value.callRecordStart);
408
438
  if (value.callRecordStop !== undefined)
409
439
  return visitor.callRecordStop(value.callRecordStop);
440
+ if (value.callRecordPause !== undefined)
441
+ return visitor.callRecordPause(value.callRecordPause);
442
+ if (value.callRecordUnpause !== undefined)
443
+ return visitor.callRecordUnpause(value.callRecordUnpause);
410
444
  if (value.callAttachment !== undefined)
411
445
  return visitor.callAttachment(value.callAttachment);
412
446
  if (value.callTranscription !== undefined)
@@ -451,6 +485,24 @@ export var ConsumeEventInputEvent;
451
485
  return visitor.presence(value.presence);
452
486
  if (value.presenceTelephony !== undefined)
453
487
  return visitor.presenceTelephony(value.presenceTelephony);
488
+ if (value.serviceInit !== undefined)
489
+ return visitor.serviceInit(value.serviceInit);
490
+ if (value.serviceUpdate !== undefined)
491
+ return visitor.serviceUpdate(value.serviceUpdate);
492
+ if (value.serviceEnd !== undefined)
493
+ return visitor.serviceEnd(value.serviceEnd);
494
+ if (value.serviceCallInit !== undefined)
495
+ return visitor.serviceCallInit(value.serviceCallInit);
496
+ if (value.serviceCallUpdate !== undefined)
497
+ return visitor.serviceCallUpdate(value.serviceCallUpdate);
498
+ if (value.serviceCallEnd !== undefined)
499
+ return visitor.serviceCallEnd(value.serviceCallEnd);
500
+ if (value.serviceAgentJoin !== undefined)
501
+ return visitor.serviceAgentJoin(value.serviceAgentJoin);
502
+ if (value.serviceAgentUpdate !== undefined)
503
+ return visitor.serviceAgentUpdate(value.serviceAgentUpdate);
504
+ if (value.serviceAgentLeave !== undefined)
505
+ return visitor.serviceAgentLeave(value.serviceAgentLeave);
454
506
  if (value.usageStt !== undefined)
455
507
  return visitor.usageStt(value.usageStt);
456
508
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -464,6 +516,7 @@ export const WebsocketAction = {
464
516
  export const WebsocketTopic = {
465
517
  CONVERSATIONS: "conversations",
466
518
  PRESENCE: "presence",
519
+ SERVICES: "services",
467
520
  TRANSCRIPTIONS: "transcriptions",
468
521
  };
469
522
  export const PresenceAnalyticsEventType = {
@@ -475,11 +528,34 @@ export const PresenceEventType = {
475
528
  STATUS_EVENT: "PresenceAnalyticsStatusEvent",
476
529
  TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
477
530
  };
531
+ export const ServiceAnalyticsEventTrigger = {
532
+ SERVICE_AGENT_JOIN: "service.agent_join",
533
+ SERVICE_AGENT_LEAVE: "service.agent_leave",
534
+ SERVICE_AGENT_UPDATE: "service.agent_update",
535
+ SERVICE_CALL_END: "service.call_end",
536
+ SERVICE_CALL_INIT: "service.call_init",
537
+ SERVICE_CALL_UPDATE: "service.call_update",
538
+ SERVICE_END: "service.end",
539
+ SERVICE_INIT: "service.init",
540
+ SERVICE_UPDATE: "service.update",
541
+ };
542
+ export const ServiceCallEventType = {
543
+ LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
544
+ LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
545
+ };
546
+ export const ServiceEventType = {
547
+ LIVE_COMPLETE_EVENT: "ServiceAnalyticsLiveCompleteEvent",
548
+ LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
549
+ };
478
550
  export const WebhookEventType = {
479
551
  CALL_COMPLETED: "call:completed",
480
552
  CALL_LIVE_COMPLETED: "call:live:completed",
481
553
  CALL_LIVE_INTERRUPTED: "call:live:interrupted",
482
554
  CALL_LIVE_PROGRESS: "call:live:progress",
555
+ CALL_LIVE_RECORD_PAUSE: "call:live:record:pause",
556
+ CALL_LIVE_RECORD_START: "call:live:record:start",
557
+ CALL_LIVE_RECORD_STOP: "call:live:record:stop",
558
+ CALL_LIVE_RECORD_UNPAUSE: "call:live:record:unpause",
483
559
  CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
484
560
  CALL_SUMMARY_COMPLETED: "call:summary:completed",
485
561
  CALL_TRANSCRIPTION_COMPLETED: "call:transcription:completed",
@@ -515,41 +591,3 @@ export const WebsocketEvent = {
515
591
  SUBSCRIBED: "subscribed",
516
592
  UNSUBSCRIBE: "unsubscribed",
517
593
  };
518
- export class MatchNotFoundException extends __BaseException {
519
- name = "MatchNotFoundException";
520
- $fault = "client";
521
- constructor(opts) {
522
- super({
523
- name: "MatchNotFoundException",
524
- $fault: "client",
525
- ...opts
526
- });
527
- Object.setPrototypeOf(this, MatchNotFoundException.prototype);
528
- }
529
- }
530
- export const PresenceStatus = {
531
- AWAY: "AWAY",
532
- DND: "DND",
533
- OFFLINE: "OFFLINE",
534
- ONLINE: "ONLINE",
535
- ONLY_SIP: "ONLY_SIP",
536
- };
537
- export const TelephonyStatus = {
538
- REGISTERED: "REGISTERED",
539
- RINGING: "RINGING",
540
- RT: "RT",
541
- TALKING: "TALKING",
542
- UNREGISTERED: "UNREGISTERED",
543
- };
544
- export class PresenceNotAvailableException extends __BaseException {
545
- name = "PresenceNotAvailableException";
546
- $fault = "client";
547
- constructor(opts) {
548
- super({
549
- name: "PresenceNotAvailableException",
550
- $fault: "client",
551
- ...opts
552
- });
553
- Object.setPrototypeOf(this, PresenceNotAvailableException.prototype);
554
- }
555
- }
@@ -0,0 +1,39 @@
1
+ import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
2
+ export class MatchNotFoundException extends __BaseException {
3
+ name = "MatchNotFoundException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "MatchNotFoundException",
8
+ $fault: "client",
9
+ ...opts
10
+ });
11
+ Object.setPrototypeOf(this, MatchNotFoundException.prototype);
12
+ }
13
+ }
14
+ export const PresenceStatus = {
15
+ AWAY: "AWAY",
16
+ DND: "DND",
17
+ OFFLINE: "OFFLINE",
18
+ ONLINE: "ONLINE",
19
+ ONLY_SIP: "ONLY_SIP",
20
+ };
21
+ export const TelephonyStatus = {
22
+ REGISTERED: "REGISTERED",
23
+ RINGING: "RINGING",
24
+ RT: "RT",
25
+ TALKING: "TALKING",
26
+ UNREGISTERED: "UNREGISTERED",
27
+ };
28
+ export class PresenceNotAvailableException extends __BaseException {
29
+ name = "PresenceNotAvailableException";
30
+ $fault = "client";
31
+ constructor(opts) {
32
+ super({
33
+ name: "PresenceNotAvailableException",
34
+ $fault: "client",
35
+ ...opts
36
+ });
37
+ Object.setPrototypeOf(this, PresenceNotAvailableException.prototype);
38
+ }
39
+ }
@@ -1,5 +1,6 @@
1
1
  import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
2
- import { ConsumeEventInputEvent, ForbiddenException, MatchNotFoundException, PresenceNotAvailableException, ValidationException, } from "../models/models_0";
2
+ import { ConsumeEventInputEvent, ForbiddenException, ValidationException, } from "../models/models_0";
3
+ import { MatchNotFoundException, PresenceNotAvailableException, } from "../models/models_1";
3
4
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
5
  import { requestBuilder as rb } from "@smithy/core";
5
6
  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, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
@@ -114,6 +115,25 @@ export const se_GetOngoingConferenceTranscriptionCommand = async (input, context
114
115
  .b(body);
115
116
  return b.build();
116
117
  };
118
+ export const se_ListServicesCommand = async (input, context) => {
119
+ const b = rb(input, context);
120
+ const headers = {
121
+ 'content-type': 'application/json',
122
+ };
123
+ b.bp("/v2/stream/services");
124
+ const query = map({
125
+ [_c]: [, input[_c]],
126
+ });
127
+ let body;
128
+ body = JSON.stringify(take(input, {
129
+ 'filter': _ => _json(_),
130
+ }));
131
+ b.m("POST")
132
+ .h(headers)
133
+ .q(query)
134
+ .b(body);
135
+ return b.build();
136
+ };
117
137
  export const se_QueryConversationsCommand = async (input, context) => {
118
138
  const b = rb(input, context);
119
139
  const headers = {
@@ -200,9 +220,9 @@ export const de_DescribeEventCommand = async (output, context) => {
200
220
  'CallAnalyticsLiveCompleteEvent': _json,
201
221
  'CallAnalyticsLiveInterruptedEvent': _json,
202
222
  'CallAnalyticsLiveProgressEvent': _json,
203
- 'CallAnalyticsLiveTranscriptionEvent': _json,
223
+ 'CallAnalyticsLiveTranscriptionEvent': _ => de_CallAnalyticsLiveTranscriptionEvent(_, context),
204
224
  'CallAnalyticsRecordEvent': _json,
205
- 'CallAnalyticsTranscriptionRecordEvent': _json,
225
+ 'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
206
226
  'CallEventType': __expectString,
207
227
  'ChatAnalyticsLiveCompleteEvent': _json,
208
228
  'ChatAnalyticsLiveInterruptedEvent': _json,
@@ -225,11 +245,21 @@ export const de_DescribeEventCommand = async (output, context) => {
225
245
  'PresenceAnalyticsStatusEvent': _json,
226
246
  'PresenceAnalyticsTelephonyEvent': _json,
227
247
  'PresenceEventType': __expectString,
248
+ 'ServiceAnalyticsLiveCompleteEvent': _json,
249
+ 'ServiceAnalyticsLiveProgressEvent': _json,
250
+ 'ServiceCallAnalyticsLiveCompleteEvent': _json,
251
+ 'ServiceCallAnalyticsLiveProgressEvent': _json,
252
+ 'ServiceCallEventType': __expectString,
253
+ 'ServiceEventType': __expectString,
228
254
  'WebhookCallCompletedEvent': _json,
229
255
  'WebhookCallLiveCompletedEvent': _json,
230
256
  'WebhookCallLiveInterruptedEvent': _json,
231
257
  'WebhookCallLiveProgressEvent': _json,
232
- 'WebhookCallLiveTranscriptionEvent': _json,
258
+ 'WebhookCallLiveRecordPauseEvent': _json,
259
+ 'WebhookCallLiveRecordStartEvent': _json,
260
+ 'WebhookCallLiveRecordStopEvent': _json,
261
+ 'WebhookCallLiveRecordUnpauseEvent': _json,
262
+ 'WebhookCallLiveTranscriptionEvent': _ => de_WebhookCallLiveTranscriptionEvent(_, context),
233
263
  'WebhookCallSummaryCompletedEvent': _json,
234
264
  'WebhookCallTranscriptionCompletedEvent': _json,
235
265
  'WebhookCallTranscriptionTextCompletedEvent': _json,
@@ -309,7 +339,7 @@ export const de_GetOngoingCallTranscriptionCommand = async (output, context) =>
309
339
  const doc = take(data, {
310
340
  'company': __expectString,
311
341
  'flows': _json,
312
- 'transcriptions': _json,
342
+ 'transcriptions': _ => de_CallAnalyticsLiveTranscriptionEventList(_, context),
313
343
  });
314
344
  Object.assign(contents, doc);
315
345
  return contents;
@@ -343,6 +373,20 @@ export const de_GetOngoingConferenceTranscriptionCommand = async (output, contex
343
373
  Object.assign(contents, doc);
344
374
  return contents;
345
375
  };
376
+ export const de_ListServicesCommand = async (output, context) => {
377
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
378
+ return de_CommandError(output, context);
379
+ }
380
+ const contents = map({
381
+ $metadata: deserializeMetadata(output),
382
+ });
383
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
384
+ const doc = take(data, {
385
+ 'services': _json,
386
+ });
387
+ Object.assign(contents, doc);
388
+ return contents;
389
+ };
346
390
  export const de_QueryConversationsCommand = async (output, context) => {
347
391
  if (output.statusCode !== 200 && output.statusCode >= 300) {
348
392
  return de_CommandError(output, context);
@@ -489,8 +533,10 @@ const se_ConsumeEventInputEvent = (input, context) => {
489
533
  callEnd: value => ({ "callEnd": _json(value) }),
490
534
  callLive: value => ({ "callLive": _json(value) }),
491
535
  callPostTranscription: value => ({ "callPostTranscription": _json(value) }),
536
+ callRecordPause: value => ({ "callRecordPause": _json(value) }),
492
537
  callRecordStart: value => ({ "callRecordStart": _json(value) }),
493
538
  callRecordStop: value => ({ "callRecordStop": _json(value) }),
539
+ callRecordUnpause: value => ({ "callRecordUnpause": _json(value) }),
494
540
  callSplit: value => ({ "callSplit": _json(value) }),
495
541
  callStart: value => ({ "callStart": _json(value) }),
496
542
  callTranscription: value => ({ "callTranscription": _json(value) }),
@@ -510,6 +556,15 @@ const se_ConsumeEventInputEvent = (input, context) => {
510
556
  conferenceTranscription: value => ({ "conferenceTranscription": _json(value) }),
511
557
  presence: value => ({ "presence": _json(value) }),
512
558
  presenceTelephony: value => ({ "presenceTelephony": _json(value) }),
559
+ serviceAgentJoin: value => ({ "serviceAgentJoin": _json(value) }),
560
+ serviceAgentLeave: value => ({ "serviceAgentLeave": _json(value) }),
561
+ serviceAgentUpdate: value => ({ "serviceAgentUpdate": _json(value) }),
562
+ serviceCallEnd: value => ({ "serviceCallEnd": _json(value) }),
563
+ serviceCallInit: value => ({ "serviceCallInit": _json(value) }),
564
+ serviceCallUpdate: value => ({ "serviceCallUpdate": _json(value) }),
565
+ serviceEnd: value => ({ "serviceEnd": _json(value) }),
566
+ serviceInit: value => ({ "serviceInit": _json(value) }),
567
+ serviceUpdate: value => ({ "serviceUpdate": _json(value) }),
513
568
  smsInbound: value => ({ "smsInbound": _json(value) }),
514
569
  smsStatus: value => ({ "smsStatus": _json(value) }),
515
570
  usageStt: value => ({ "usageStt": _json(value) }),
@@ -587,10 +642,80 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
587
642
  'licenses': _json,
588
643
  'pbx': __expectString,
589
644
  'time': __expectLong,
590
- 'transcriptions': _json,
645
+ 'transcriptions': (_) => de_CallTranscriptionList(_, context),
646
+ 'type': __expectString,
647
+ });
648
+ };
649
+ const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
650
+ return take(output, {
651
+ 'callStartTime': __expectLong,
652
+ 'chunk': (_) => de_CallTranscriptionChunk(_, context),
653
+ 'company': __expectString,
654
+ 'event': __expectString,
655
+ 'flowIndex': __expectInt32,
656
+ 'flowStartTime': __expectLong,
657
+ 'id': __expectString,
658
+ 'licenses': _json,
659
+ 'participant': _json,
660
+ 'pbx': __expectString,
661
+ 'time': __expectLong,
662
+ });
663
+ };
664
+ const de_CallAnalyticsLiveTranscriptionEventList = (output, context) => {
665
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
666
+ return de_CallAnalyticsLiveTranscriptionEvent(entry, context);
667
+ });
668
+ return retVal;
669
+ };
670
+ const de_CallAnalyticsTranscriptionRecordEvent = (output, context) => {
671
+ return take(output, {
672
+ 'company': __expectString,
673
+ 'complete': __expectBoolean,
674
+ 'id': __expectString,
675
+ 'licenses': _json,
676
+ 'pbx': __expectString,
677
+ 'time': __expectLong,
678
+ 'transcriptions': (_) => de_CallTranscriptionList(_, context),
591
679
  'type': __expectString,
592
680
  });
593
681
  };
682
+ const de_CallTranscription = (output, context) => {
683
+ return take(output, {
684
+ 'callStartTime': __expectLong,
685
+ 'chunks': (_) => de_CallTranscriptionChunksMap(_, context),
686
+ 'flowIndex': __expectInt32,
687
+ 'flowStartTime': __expectLong,
688
+ });
689
+ };
690
+ const de_CallTranscriptionChunk = (output, context) => {
691
+ return take(output, {
692
+ 'confidence': __limitedParseDouble,
693
+ 'end': __expectLong,
694
+ 'id': __expectString,
695
+ 'isFinal': __expectBoolean,
696
+ 'language': __expectString,
697
+ 'sentiment': __expectString,
698
+ 'speaker': __expectString,
699
+ 'start': __expectLong,
700
+ 'text': __expectString,
701
+ 'time': __expectLong,
702
+ });
703
+ };
704
+ const de_CallTranscriptionChunksMap = (output, context) => {
705
+ return Object.entries(output).reduce((acc, [key, value]) => {
706
+ if (value === null) {
707
+ return acc;
708
+ }
709
+ acc[key] = de_CallTranscriptionChunk(value, context);
710
+ return acc;
711
+ }, {});
712
+ };
713
+ const de_CallTranscriptionList = (output, context) => {
714
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
715
+ return de_CallTranscription(entry, context);
716
+ });
717
+ return retVal;
718
+ };
594
719
  const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
595
720
  return take(output, {
596
721
  'chatId': __expectString,
@@ -601,6 +726,17 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
601
726
  'type': __expectString,
602
727
  });
603
728
  };
729
+ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
730
+ return take(output, {
731
+ 'company': __expectString,
732
+ 'data': (_) => de_CallAnalyticsLiveTranscriptionEvent(_, context),
733
+ 'id': __expectString,
734
+ 'integrationId': __expectString,
735
+ 'pbx': __expectString,
736
+ 'time': __expectLong,
737
+ 'type': __expectString,
738
+ });
739
+ };
604
740
  const de_WebsocketAuthorizedEvent = (output, context) => {
605
741
  return take(output, {
606
742
  'connectionId': __expectString,
@@ -6,6 +6,7 @@ import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./comma
6
6
  import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
7
7
  import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
8
8
  import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
9
+ import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
9
10
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
10
11
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
11
12
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
@@ -55,6 +56,13 @@ export interface WdaStream {
55
56
  getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceTranscriptionCommandOutput>;
56
57
  getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
57
58
  getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
59
+ /**
60
+ * @see {@link ListServicesCommand}
61
+ */
62
+ listServices(): Promise<ListServicesCommandOutput>;
63
+ listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
64
+ listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
65
+ listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
58
66
  /**
59
67
  * @see {@link QueryConversationsCommand}
60
68
  */
@@ -5,6 +5,7 @@ import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./comma
5
5
  import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
6
6
  import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
7
7
  import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
8
+ import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
8
9
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
9
10
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
10
11
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
@@ -20,11 +21,11 @@ export { __Client };
20
21
  /**
21
22
  * @public
22
23
  */
23
- export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
24
+ export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
24
25
  /**
25
26
  * @public
26
27
  */
27
- export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
28
+ export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
28
29
  /**
29
30
  * @public
30
31
  */