@wildix/wda-stream-client 1.1.45 → 1.1.47

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 (38) hide show
  1. package/dist-cjs/WdaStream.js +6 -2
  2. package/dist-cjs/commands/GetOngoingCallTranscriptionCommand.js +21 -0
  3. package/dist-cjs/commands/{ListServicesCommand.js → GetOngoingConferenceCommand.js} +7 -7
  4. package/dist-cjs/commands/GetOngoingConferenceTranscriptionCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +3 -1
  6. package/dist-cjs/models/index.js +0 -1
  7. package/dist-cjs/models/models_0.js +41 -65
  8. package/dist-cjs/protocols/Aws_restJson1.js +77 -33
  9. package/dist-es/WdaStream.js +6 -2
  10. package/dist-es/commands/GetOngoingCallTranscriptionCommand.js +17 -0
  11. package/dist-es/commands/GetOngoingConferenceCommand.js +17 -0
  12. package/dist-es/commands/GetOngoingConferenceTranscriptionCommand.js +17 -0
  13. package/dist-es/commands/index.js +3 -1
  14. package/dist-es/models/index.js +0 -1
  15. package/dist-es/models/models_0.js +38 -64
  16. package/dist-es/protocols/Aws_restJson1.js +68 -28
  17. package/dist-types/WdaStream.d.ts +19 -6
  18. package/dist-types/WdaStreamClient.d.ts +5 -3
  19. package/dist-types/commands/ConsumeEventCommand.d.ts +1 -178
  20. package/dist-types/commands/DescribeEventCommand.d.ts +44 -120
  21. package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -47
  22. package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +297 -0
  23. package/dist-types/commands/GetOngoingConferenceCommand.d.ts +106 -0
  24. package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +142 -0
  25. package/dist-types/commands/QueryConversationsCommand.d.ts +4 -4
  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 +3 -1
  30. package/dist-types/models/index.d.ts +0 -1
  31. package/dist-types/models/models_0.d.ts +351 -1156
  32. package/dist-types/protocols/Aws_restJson1.d.ts +23 -5
  33. package/package.json +1 -1
  34. package/dist-cjs/models/models_1.js +0 -44
  35. package/dist-es/commands/ListServicesCommand.js +0 -17
  36. package/dist-es/models/models_1.js +0 -39
  37. package/dist-types/commands/ListServicesCommand.d.ts +0 -87
  38. package/dist-types/models/models_1.d.ts +0 -272
@@ -6,7 +6,9 @@ const ConsumeEventCommand_1 = require("./commands/ConsumeEventCommand");
6
6
  const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
7
7
  const GetConferenceIdCommand_1 = require("./commands/GetConferenceIdCommand");
8
8
  const GetOngoingCallCommand_1 = require("./commands/GetOngoingCallCommand");
9
- const ListServicesCommand_1 = require("./commands/ListServicesCommand");
9
+ const GetOngoingCallTranscriptionCommand_1 = require("./commands/GetOngoingCallTranscriptionCommand");
10
+ const GetOngoingConferenceCommand_1 = require("./commands/GetOngoingConferenceCommand");
11
+ const GetOngoingConferenceTranscriptionCommand_1 = require("./commands/GetOngoingConferenceTranscriptionCommand");
10
12
  const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
11
13
  const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
12
14
  const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
@@ -17,7 +19,9 @@ const commands = {
17
19
  DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
18
20
  GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
19
21
  GetOngoingCallCommand: GetOngoingCallCommand_1.GetOngoingCallCommand,
20
- ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
22
+ GetOngoingCallTranscriptionCommand: GetOngoingCallTranscriptionCommand_1.GetOngoingCallTranscriptionCommand,
23
+ GetOngoingConferenceCommand: GetOngoingConferenceCommand_1.GetOngoingConferenceCommand,
24
+ GetOngoingConferenceTranscriptionCommand: GetOngoingConferenceTranscriptionCommand_1.GetOngoingConferenceTranscriptionCommand,
21
25
  QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
22
26
  QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
23
27
  QueryPresencesCommand: QueryPresencesCommand_1.QueryPresencesCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOngoingCallTranscriptionCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetOngoingCallTranscriptionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaStream", "GetOngoingCallTranscription", {})
15
+ .n("WdaStreamClient", "GetOngoingCallTranscriptionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOngoingCallTranscriptionCommand)
18
+ .de(Aws_restJson1_1.de_GetOngoingCallTranscriptionCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOngoingCallTranscriptionCommand = GetOngoingCallTranscriptionCommand;
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListServicesCommand = exports.$Command = void 0;
3
+ exports.GetOngoingConferenceCommand = exports.$Command = void 0;
4
4
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class ListServicesCommand extends smithy_client_1.Command.classBuilder()
8
+ class GetOngoingConferenceCommand extends smithy_client_1.Command.classBuilder()
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [
11
11
  (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
12
  ];
13
13
  })
14
- .s("WdaStream", "ListServices", {})
15
- .n("WdaStreamClient", "ListServicesCommand")
14
+ .s("WdaStream", "GetOngoingConference", {})
15
+ .n("WdaStreamClient", "GetOngoingConferenceCommand")
16
16
  .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_ListServicesCommand)
18
- .de(Aws_restJson1_1.de_ListServicesCommand)
17
+ .ser(Aws_restJson1_1.se_GetOngoingConferenceCommand)
18
+ .de(Aws_restJson1_1.de_GetOngoingConferenceCommand)
19
19
  .build() {
20
20
  }
21
- exports.ListServicesCommand = ListServicesCommand;
21
+ exports.GetOngoingConferenceCommand = GetOngoingConferenceCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOngoingConferenceTranscriptionCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetOngoingConferenceTranscriptionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaStream", "GetOngoingConferenceTranscription", {})
15
+ .n("WdaStreamClient", "GetOngoingConferenceTranscriptionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOngoingConferenceTranscriptionCommand)
18
+ .de(Aws_restJson1_1.de_GetOngoingConferenceTranscriptionCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOngoingConferenceTranscriptionCommand = GetOngoingConferenceTranscriptionCommand;
@@ -5,7 +5,9 @@ tslib_1.__exportStar(require("./ConsumeEventCommand"), exports);
5
5
  tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
6
6
  tslib_1.__exportStar(require("./GetConferenceIdCommand"), exports);
7
7
  tslib_1.__exportStar(require("./GetOngoingCallCommand"), exports);
8
- tslib_1.__exportStar(require("./ListServicesCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetOngoingCallTranscriptionCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetOngoingConferenceCommand"), exports);
10
+ tslib_1.__exportStar(require("./GetOngoingConferenceTranscriptionCommand"), exports);
9
11
  tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
10
12
  tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
11
13
  tslib_1.__exportStar(require("./QueryPresencesCommand"), exports);
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./models_0"), exports);
5
- tslib_1.__exportStar(require("./models_1"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChatConsumeEventType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
4
- exports.WebsocketEvent = exports.WebhookEventType = exports.ServiceEventType = exports.ServiceCallEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ServiceCallAction = exports.ServiceConsumeEventType = exports.ServiceAgentType = exports.ServiceAnalyticsEventTrigger = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
4
+ exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
5
5
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
6
6
  class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
7
7
  name = "ForbiddenException";
@@ -276,11 +276,6 @@ exports.LiveEventType = {
276
276
  CONFERENCE_JOIN: "conference_join",
277
277
  CONFERENCE_LEAVE: "conference_leave",
278
278
  CONFERENCE_TRANSCRIPTION: "conference_transcription",
279
- SERVICE: "service",
280
- SERVICE_AGENT: "service_agent",
281
- SERVICE_CALL: "service_call",
282
- SERVICE_CALL_COMPLETE: "service_call_complete",
283
- SERVICE_COMPLETE: "service_complete",
284
279
  };
285
280
  exports.CallAnalyticsLiveProgressEventTrigger = {
286
281
  AGENTS_CANCEL: "call.agents_cancel",
@@ -376,38 +371,6 @@ exports.PresenceConsumeEventType = {
376
371
  PRESENCE: "PRESENCE",
377
372
  PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
378
373
  };
379
- exports.ServiceAnalyticsEventTrigger = {
380
- SERVICE_AGENT_JOIN: "service.agent_join",
381
- SERVICE_AGENT_LEAVE: "service.agent_leave",
382
- SERVICE_AGENT_UPDATE: "service.agent_update",
383
- SERVICE_CALL_END: "service.call_end",
384
- SERVICE_CALL_INIT: "service.call_init",
385
- SERVICE_CALL_UPDATE: "service.call_update",
386
- SERVICE_END: "service.end",
387
- SERVICE_INIT: "service.init",
388
- SERVICE_UPDATE: "service.update",
389
- };
390
- exports.ServiceAgentType = {
391
- DYNAMIC: "DYNAMIC",
392
- STATIC: "STATIC",
393
- };
394
- exports.ServiceConsumeEventType = {
395
- SERVICE_AGENT_JOIN: "SERVICE.AGENT_JOIN",
396
- SERVICE_AGENT_LEAVE: "SERVICE.AGENT_LEAVE",
397
- SERVICE_AGENT_UPDATE: "SERVICE.AGENT_UPDATE",
398
- SERVICE_CALL_END: "SERVICE.CALL_END",
399
- SERVICE_CALL_INIT: "SERVICE.CALL_INIT",
400
- SERVICE_CALL_UPDATE: "SERVICE.CALL_UPDATE",
401
- SERVICE_END: "SERVICE.END",
402
- SERVICE_INIT: "SERVICE.INIT",
403
- SERVICE_UPDATE: "SERVICE.UPDATE",
404
- };
405
- exports.ServiceCallAction = {
406
- ANSWER: "ANSWER",
407
- CANCEL: "CANCEL",
408
- REJECT: "REJECT",
409
- RING: "RING",
410
- };
411
374
  exports.SmsConsumeEventType = {
412
375
  SMS_INBOUND: "SMS.INBOUND",
413
376
  SMS_STATUS: "SMS.STATUS",
@@ -494,24 +457,6 @@ var ConsumeEventInputEvent;
494
457
  return visitor.presence(value.presence);
495
458
  if (value.presenceTelephony !== undefined)
496
459
  return visitor.presenceTelephony(value.presenceTelephony);
497
- if (value.serviceInit !== undefined)
498
- return visitor.serviceInit(value.serviceInit);
499
- if (value.serviceUpdate !== undefined)
500
- return visitor.serviceUpdate(value.serviceUpdate);
501
- if (value.serviceEnd !== undefined)
502
- return visitor.serviceEnd(value.serviceEnd);
503
- if (value.serviceCallInit !== undefined)
504
- return visitor.serviceCallInit(value.serviceCallInit);
505
- if (value.serviceCallUpdate !== undefined)
506
- return visitor.serviceCallUpdate(value.serviceCallUpdate);
507
- if (value.serviceCallEnd !== undefined)
508
- return visitor.serviceCallEnd(value.serviceCallEnd);
509
- if (value.serviceAgentJoin !== undefined)
510
- return visitor.serviceAgentJoin(value.serviceAgentJoin);
511
- if (value.serviceAgentUpdate !== undefined)
512
- return visitor.serviceAgentUpdate(value.serviceAgentUpdate);
513
- if (value.serviceAgentLeave !== undefined)
514
- return visitor.serviceAgentLeave(value.serviceAgentLeave);
515
460
  if (value.usageStt !== undefined)
516
461
  return visitor.usageStt(value.usageStt);
517
462
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -525,7 +470,6 @@ exports.WebsocketAction = {
525
470
  exports.WebsocketTopic = {
526
471
  CONVERSATIONS: "conversations",
527
472
  PRESENCE: "presence",
528
- SERVICES: "services",
529
473
  TRANSCRIPTIONS: "transcriptions",
530
474
  };
531
475
  exports.PresenceAnalyticsEventType = {
@@ -537,14 +481,6 @@ exports.PresenceEventType = {
537
481
  STATUS_EVENT: "PresenceAnalyticsStatusEvent",
538
482
  TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
539
483
  };
540
- exports.ServiceCallEventType = {
541
- LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
542
- LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
543
- };
544
- exports.ServiceEventType = {
545
- LIVE_COMPLETE_EVENT: "ServiceAnalyticsLiveCompleteEvent",
546
- LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
547
- };
548
484
  exports.WebhookEventType = {
549
485
  CALL_COMPLETED: "call:completed",
550
486
  CALL_LIVE_COMPLETED: "call:live:completed",
@@ -585,3 +521,43 @@ exports.WebsocketEvent = {
585
521
  SUBSCRIBED: "subscribed",
586
522
  UNSUBSCRIBE: "unsubscribed",
587
523
  };
524
+ class MatchNotFoundException extends WdaStreamServiceException_1.WdaStreamServiceException {
525
+ name = "MatchNotFoundException";
526
+ $fault = "client";
527
+ constructor(opts) {
528
+ super({
529
+ name: "MatchNotFoundException",
530
+ $fault: "client",
531
+ ...opts
532
+ });
533
+ Object.setPrototypeOf(this, MatchNotFoundException.prototype);
534
+ }
535
+ }
536
+ exports.MatchNotFoundException = MatchNotFoundException;
537
+ exports.PresenceStatus = {
538
+ AWAY: "AWAY",
539
+ DND: "DND",
540
+ OFFLINE: "OFFLINE",
541
+ ONLINE: "ONLINE",
542
+ ONLY_SIP: "ONLY_SIP",
543
+ };
544
+ exports.TelephonyStatus = {
545
+ REGISTERED: "REGISTERED",
546
+ RINGING: "RINGING",
547
+ RT: "RT",
548
+ TALKING: "TALKING",
549
+ UNREGISTERED: "UNREGISTERED",
550
+ };
551
+ class PresenceNotAvailableException extends WdaStreamServiceException_1.WdaStreamServiceException {
552
+ name = "PresenceNotAvailableException";
553
+ $fault = "client";
554
+ constructor(opts) {
555
+ super({
556
+ name: "PresenceNotAvailableException",
557
+ $fault: "client",
558
+ ...opts
559
+ });
560
+ Object.setPrototypeOf(this, PresenceNotAvailableException.prototype);
561
+ }
562
+ }
563
+ exports.PresenceNotAvailableException = PresenceNotAvailableException;
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_ListServicesCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
3
+ exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_GetOngoingConferenceTranscriptionCommand = exports.de_GetOngoingConferenceCommand = exports.de_GetOngoingCallTranscriptionCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_GetOngoingConferenceTranscriptionCommand = exports.se_GetOngoingConferenceCommand = exports.se_GetOngoingCallTranscriptionCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
4
4
  const WdaStreamServiceException_1 = require("../models/WdaStreamServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
- const models_1_1 = require("../models/models_1");
7
6
  const core_1 = require("@aws-sdk/core");
8
7
  const core_2 = require("@smithy/core");
9
8
  const smithy_client_1 = require("@smithy/smithy-client");
@@ -77,26 +76,54 @@ const se_GetOngoingCallCommand = async (input, context) => {
77
76
  return b.build();
78
77
  };
79
78
  exports.se_GetOngoingCallCommand = se_GetOngoingCallCommand;
80
- const se_ListServicesCommand = async (input, context) => {
79
+ const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
81
80
  const b = (0, core_2.requestBuilder)(input, context);
82
- const headers = {
83
- 'content-type': 'application/json',
84
- };
85
- b.bp("/v2/stream/services");
81
+ const headers = {};
82
+ b.bp("/v2/stream/calls/{callId}/transcription");
83
+ b.p('callId', () => input.callId, '{callId}', false);
86
84
  const query = (0, smithy_client_1.map)({
87
85
  [_c]: [, input[_c]],
88
86
  });
89
87
  let body;
90
- body = JSON.stringify((0, smithy_client_1.take)(input, {
91
- 'filter': _ => (0, smithy_client_1._json)(_),
92
- }));
93
- b.m("POST")
88
+ b.m("GET")
89
+ .h(headers)
90
+ .q(query)
91
+ .b(body);
92
+ return b.build();
93
+ };
94
+ exports.se_GetOngoingCallTranscriptionCommand = se_GetOngoingCallTranscriptionCommand;
95
+ const se_GetOngoingConferenceCommand = async (input, context) => {
96
+ const b = (0, core_2.requestBuilder)(input, context);
97
+ const headers = {};
98
+ b.bp("/v2/stream/conferences/{conferenceId}");
99
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
100
+ const query = (0, smithy_client_1.map)({
101
+ [_c]: [, input[_c]],
102
+ });
103
+ let body;
104
+ b.m("GET")
94
105
  .h(headers)
95
106
  .q(query)
96
107
  .b(body);
97
108
  return b.build();
98
109
  };
99
- exports.se_ListServicesCommand = se_ListServicesCommand;
110
+ exports.se_GetOngoingConferenceCommand = se_GetOngoingConferenceCommand;
111
+ const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
112
+ const b = (0, core_2.requestBuilder)(input, context);
113
+ const headers = {};
114
+ b.bp("/v2/stream/conferences/{conferenceId}/transcription");
115
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
116
+ const query = (0, smithy_client_1.map)({
117
+ [_c]: [, input[_c]],
118
+ });
119
+ let body;
120
+ b.m("GET")
121
+ .h(headers)
122
+ .q(query)
123
+ .b(body);
124
+ return b.build();
125
+ };
126
+ exports.se_GetOngoingConferenceTranscriptionCommand = se_GetOngoingConferenceTranscriptionCommand;
100
127
  const se_QueryConversationsCommand = async (input, context) => {
101
128
  const b = (0, core_2.requestBuilder)(input, context);
102
129
  const headers = {
@@ -213,12 +240,6 @@ const de_DescribeEventCommand = async (output, context) => {
213
240
  'PresenceAnalyticsStatusEvent': smithy_client_1._json,
214
241
  'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
215
242
  'PresenceEventType': smithy_client_1.expectString,
216
- 'ServiceAnalyticsLiveCompleteEvent': smithy_client_1._json,
217
- 'ServiceAnalyticsLiveProgressEvent': smithy_client_1._json,
218
- 'ServiceCallAnalyticsLiveCompleteEvent': smithy_client_1._json,
219
- 'ServiceCallAnalyticsLiveProgressEvent': smithy_client_1._json,
220
- 'ServiceCallEventType': smithy_client_1.expectString,
221
- 'ServiceEventType': smithy_client_1.expectString,
222
243
  'WebhookCallCompletedEvent': smithy_client_1._json,
223
244
  'WebhookCallLiveCompletedEvent': smithy_client_1._json,
224
245
  'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
@@ -290,13 +311,12 @@ const de_GetOngoingCallCommand = async (output, context) => {
290
311
  const doc = (0, smithy_client_1.take)(data, {
291
312
  'company': smithy_client_1.expectString,
292
313
  'flows': smithy_client_1._json,
293
- 'transcriptions': smithy_client_1._json,
294
314
  });
295
315
  Object.assign(contents, doc);
296
316
  return contents;
297
317
  };
298
318
  exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
299
- const de_ListServicesCommand = async (output, context) => {
319
+ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
300
320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
301
321
  return de_CommandError(output, context);
302
322
  }
@@ -305,12 +325,45 @@ const de_ListServicesCommand = async (output, context) => {
305
325
  });
306
326
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
307
327
  const doc = (0, smithy_client_1.take)(data, {
308
- 'services': smithy_client_1._json,
328
+ 'company': smithy_client_1.expectString,
329
+ 'flows': smithy_client_1._json,
330
+ 'transcriptions': smithy_client_1._json,
331
+ });
332
+ Object.assign(contents, doc);
333
+ return contents;
334
+ };
335
+ exports.de_GetOngoingCallTranscriptionCommand = de_GetOngoingCallTranscriptionCommand;
336
+ const de_GetOngoingConferenceCommand = async (output, context) => {
337
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
338
+ return de_CommandError(output, context);
339
+ }
340
+ const contents = (0, smithy_client_1.map)({
341
+ $metadata: deserializeMetadata(output),
342
+ });
343
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
344
+ const doc = (0, smithy_client_1.take)(data, {
345
+ 'conference': smithy_client_1._json,
346
+ });
347
+ Object.assign(contents, doc);
348
+ return contents;
349
+ };
350
+ exports.de_GetOngoingConferenceCommand = de_GetOngoingConferenceCommand;
351
+ const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
352
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
353
+ return de_CommandError(output, context);
354
+ }
355
+ const contents = (0, smithy_client_1.map)({
356
+ $metadata: deserializeMetadata(output),
357
+ });
358
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
359
+ const doc = (0, smithy_client_1.take)(data, {
360
+ 'conference': smithy_client_1._json,
361
+ 'transcriptions': smithy_client_1._json,
309
362
  });
310
363
  Object.assign(contents, doc);
311
364
  return contents;
312
365
  };
313
- exports.de_ListServicesCommand = de_ListServicesCommand;
366
+ exports.de_GetOngoingConferenceTranscriptionCommand = de_GetOngoingConferenceTranscriptionCommand;
314
367
  const de_QueryConversationsCommand = async (output, context) => {
315
368
  if (output.statusCode !== 200 && output.statusCode >= 300) {
316
369
  return de_CommandError(output, context);
@@ -431,7 +484,7 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
431
484
  'message': smithy_client_1.expectString,
432
485
  });
433
486
  Object.assign(contents, doc);
434
- const exception = new models_1_1.MatchNotFoundException({
487
+ const exception = new models_0_1.MatchNotFoundException({
435
488
  $metadata: deserializeMetadata(parsedOutput),
436
489
  ...contents
437
490
  });
@@ -444,7 +497,7 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
444
497
  'message': smithy_client_1.expectString,
445
498
  });
446
499
  Object.assign(contents, doc);
447
- const exception = new models_1_1.PresenceNotAvailableException({
500
+ const exception = new models_0_1.PresenceNotAvailableException({
448
501
  $metadata: deserializeMetadata(parsedOutput),
449
502
  ...contents
450
503
  });
@@ -482,15 +535,6 @@ const se_ConsumeEventInputEvent = (input, context) => {
482
535
  conferenceTranscription: value => ({ "conferenceTranscription": (0, smithy_client_1._json)(value) }),
483
536
  presence: value => ({ "presence": (0, smithy_client_1._json)(value) }),
484
537
  presenceTelephony: value => ({ "presenceTelephony": (0, smithy_client_1._json)(value) }),
485
- serviceAgentJoin: value => ({ "serviceAgentJoin": (0, smithy_client_1._json)(value) }),
486
- serviceAgentLeave: value => ({ "serviceAgentLeave": (0, smithy_client_1._json)(value) }),
487
- serviceAgentUpdate: value => ({ "serviceAgentUpdate": (0, smithy_client_1._json)(value) }),
488
- serviceCallEnd: value => ({ "serviceCallEnd": (0, smithy_client_1._json)(value) }),
489
- serviceCallInit: value => ({ "serviceCallInit": (0, smithy_client_1._json)(value) }),
490
- serviceCallUpdate: value => ({ "serviceCallUpdate": (0, smithy_client_1._json)(value) }),
491
- serviceEnd: value => ({ "serviceEnd": (0, smithy_client_1._json)(value) }),
492
- serviceInit: value => ({ "serviceInit": (0, smithy_client_1._json)(value) }),
493
- serviceUpdate: value => ({ "serviceUpdate": (0, smithy_client_1._json)(value) }),
494
538
  smsInbound: value => ({ "smsInbound": (0, smithy_client_1._json)(value) }),
495
539
  smsStatus: value => ({ "smsStatus": (0, smithy_client_1._json)(value) }),
496
540
  usageStt: value => ({ "usageStt": (0, smithy_client_1._json)(value) }),
@@ -3,7 +3,9 @@ import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
3
3
  import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
4
4
  import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
5
5
  import { GetOngoingCallCommand, } from "./commands/GetOngoingCallCommand";
6
- import { ListServicesCommand, } from "./commands/ListServicesCommand";
6
+ import { GetOngoingCallTranscriptionCommand, } from "./commands/GetOngoingCallTranscriptionCommand";
7
+ import { GetOngoingConferenceCommand, } from "./commands/GetOngoingConferenceCommand";
8
+ import { GetOngoingConferenceTranscriptionCommand, } from "./commands/GetOngoingConferenceTranscriptionCommand";
7
9
  import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
8
10
  import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
9
11
  import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
@@ -14,7 +16,9 @@ const commands = {
14
16
  DescribeEventCommand,
15
17
  GetConferenceIdCommand,
16
18
  GetOngoingCallCommand,
17
- ListServicesCommand,
19
+ GetOngoingCallTranscriptionCommand,
20
+ GetOngoingConferenceCommand,
21
+ GetOngoingConferenceTranscriptionCommand,
18
22
  QueryConversationsCommand,
19
23
  QueryPresenceCommand,
20
24
  QueryPresencesCommand,
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingCallTranscriptionCommand, se_GetOngoingCallTranscriptionCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingCallTranscriptionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingCallTranscription", {})
12
+ .n("WdaStreamClient", "GetOngoingCallTranscriptionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingCallTranscriptionCommand)
15
+ .de(de_GetOngoingCallTranscriptionCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingConferenceCommand, se_GetOngoingConferenceCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingConferenceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingConference", {})
12
+ .n("WdaStreamClient", "GetOngoingConferenceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingConferenceCommand)
15
+ .de(de_GetOngoingConferenceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingConferenceTranscriptionCommand, se_GetOngoingConferenceTranscriptionCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingConferenceTranscriptionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingConferenceTranscription", {})
12
+ .n("WdaStreamClient", "GetOngoingConferenceTranscriptionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingConferenceTranscriptionCommand)
15
+ .de(de_GetOngoingConferenceTranscriptionCommand)
16
+ .build() {
17
+ }
@@ -2,7 +2,9 @@ export * from "./ConsumeEventCommand";
2
2
  export * from "./DescribeEventCommand";
3
3
  export * from "./GetConferenceIdCommand";
4
4
  export * from "./GetOngoingCallCommand";
5
- export * from "./ListServicesCommand";
5
+ export * from "./GetOngoingCallTranscriptionCommand";
6
+ export * from "./GetOngoingConferenceCommand";
7
+ export * from "./GetOngoingConferenceTranscriptionCommand";
6
8
  export * from "./QueryConversationsCommand";
7
9
  export * from "./QueryPresenceCommand";
8
10
  export * from "./QueryPresencesCommand";
@@ -1,2 +1 @@
1
1
  export * from "./models_0";
2
- export * from "./models_1";