@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
@@ -270,11 +270,6 @@ export const LiveEventType = {
270
270
  CONFERENCE_JOIN: "conference_join",
271
271
  CONFERENCE_LEAVE: "conference_leave",
272
272
  CONFERENCE_TRANSCRIPTION: "conference_transcription",
273
- SERVICE: "service",
274
- SERVICE_AGENT: "service_agent",
275
- SERVICE_CALL: "service_call",
276
- SERVICE_CALL_COMPLETE: "service_call_complete",
277
- SERVICE_COMPLETE: "service_complete",
278
273
  };
279
274
  export const CallAnalyticsLiveProgressEventTrigger = {
280
275
  AGENTS_CANCEL: "call.agents_cancel",
@@ -370,38 +365,6 @@ export const PresenceConsumeEventType = {
370
365
  PRESENCE: "PRESENCE",
371
366
  PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
372
367
  };
373
- export const ServiceAnalyticsEventTrigger = {
374
- SERVICE_AGENT_JOIN: "service.agent_join",
375
- SERVICE_AGENT_LEAVE: "service.agent_leave",
376
- SERVICE_AGENT_UPDATE: "service.agent_update",
377
- SERVICE_CALL_END: "service.call_end",
378
- SERVICE_CALL_INIT: "service.call_init",
379
- SERVICE_CALL_UPDATE: "service.call_update",
380
- SERVICE_END: "service.end",
381
- SERVICE_INIT: "service.init",
382
- SERVICE_UPDATE: "service.update",
383
- };
384
- export const ServiceAgentType = {
385
- DYNAMIC: "DYNAMIC",
386
- STATIC: "STATIC",
387
- };
388
- export const ServiceConsumeEventType = {
389
- SERVICE_AGENT_JOIN: "SERVICE.AGENT_JOIN",
390
- SERVICE_AGENT_LEAVE: "SERVICE.AGENT_LEAVE",
391
- SERVICE_AGENT_UPDATE: "SERVICE.AGENT_UPDATE",
392
- SERVICE_CALL_END: "SERVICE.CALL_END",
393
- SERVICE_CALL_INIT: "SERVICE.CALL_INIT",
394
- SERVICE_CALL_UPDATE: "SERVICE.CALL_UPDATE",
395
- SERVICE_END: "SERVICE.END",
396
- SERVICE_INIT: "SERVICE.INIT",
397
- SERVICE_UPDATE: "SERVICE.UPDATE",
398
- };
399
- export const ServiceCallAction = {
400
- ANSWER: "ANSWER",
401
- CANCEL: "CANCEL",
402
- REJECT: "REJECT",
403
- RING: "RING",
404
- };
405
368
  export const SmsConsumeEventType = {
406
369
  SMS_INBOUND: "SMS.INBOUND",
407
370
  SMS_STATUS: "SMS.STATUS",
@@ -488,24 +451,6 @@ export var ConsumeEventInputEvent;
488
451
  return visitor.presence(value.presence);
489
452
  if (value.presenceTelephony !== undefined)
490
453
  return visitor.presenceTelephony(value.presenceTelephony);
491
- if (value.serviceInit !== undefined)
492
- return visitor.serviceInit(value.serviceInit);
493
- if (value.serviceUpdate !== undefined)
494
- return visitor.serviceUpdate(value.serviceUpdate);
495
- if (value.serviceEnd !== undefined)
496
- return visitor.serviceEnd(value.serviceEnd);
497
- if (value.serviceCallInit !== undefined)
498
- return visitor.serviceCallInit(value.serviceCallInit);
499
- if (value.serviceCallUpdate !== undefined)
500
- return visitor.serviceCallUpdate(value.serviceCallUpdate);
501
- if (value.serviceCallEnd !== undefined)
502
- return visitor.serviceCallEnd(value.serviceCallEnd);
503
- if (value.serviceAgentJoin !== undefined)
504
- return visitor.serviceAgentJoin(value.serviceAgentJoin);
505
- if (value.serviceAgentUpdate !== undefined)
506
- return visitor.serviceAgentUpdate(value.serviceAgentUpdate);
507
- if (value.serviceAgentLeave !== undefined)
508
- return visitor.serviceAgentLeave(value.serviceAgentLeave);
509
454
  if (value.usageStt !== undefined)
510
455
  return visitor.usageStt(value.usageStt);
511
456
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -519,7 +464,6 @@ export const WebsocketAction = {
519
464
  export const WebsocketTopic = {
520
465
  CONVERSATIONS: "conversations",
521
466
  PRESENCE: "presence",
522
- SERVICES: "services",
523
467
  TRANSCRIPTIONS: "transcriptions",
524
468
  };
525
469
  export const PresenceAnalyticsEventType = {
@@ -531,14 +475,6 @@ export const PresenceEventType = {
531
475
  STATUS_EVENT: "PresenceAnalyticsStatusEvent",
532
476
  TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
533
477
  };
534
- export const ServiceCallEventType = {
535
- LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
536
- LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
537
- };
538
- export const ServiceEventType = {
539
- LIVE_COMPLETE_EVENT: "ServiceAnalyticsLiveCompleteEvent",
540
- LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
541
- };
542
478
  export const WebhookEventType = {
543
479
  CALL_COMPLETED: "call:completed",
544
480
  CALL_LIVE_COMPLETED: "call:live:completed",
@@ -579,3 +515,41 @@ export const WebsocketEvent = {
579
515
  SUBSCRIBED: "subscribed",
580
516
  UNSUBSCRIBE: "unsubscribed",
581
517
  };
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
+ }
@@ -1,6 +1,5 @@
1
1
  import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
2
- import { ConsumeEventInputEvent, ForbiddenException, ValidationException, } from "../models/models_0";
3
- import { MatchNotFoundException, PresenceNotAvailableException, } from "../models/models_1";
2
+ import { ConsumeEventInputEvent, ForbiddenException, MatchNotFoundException, PresenceNotAvailableException, ValidationException, } from "../models/models_0";
4
3
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
5
4
  import { requestBuilder as rb } from "@smithy/core";
6
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, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
@@ -70,20 +69,46 @@ export const se_GetOngoingCallCommand = async (input, context) => {
70
69
  .b(body);
71
70
  return b.build();
72
71
  };
73
- export const se_ListServicesCommand = async (input, context) => {
72
+ export const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
74
73
  const b = rb(input, context);
75
- const headers = {
76
- 'content-type': 'application/json',
77
- };
78
- b.bp("/v2/stream/services");
74
+ const headers = {};
75
+ b.bp("/v2/stream/calls/{callId}/transcription");
76
+ b.p('callId', () => input.callId, '{callId}', false);
79
77
  const query = map({
80
78
  [_c]: [, input[_c]],
81
79
  });
82
80
  let body;
83
- body = JSON.stringify(take(input, {
84
- 'filter': _ => _json(_),
85
- }));
86
- b.m("POST")
81
+ b.m("GET")
82
+ .h(headers)
83
+ .q(query)
84
+ .b(body);
85
+ return b.build();
86
+ };
87
+ export const se_GetOngoingConferenceCommand = async (input, context) => {
88
+ const b = rb(input, context);
89
+ const headers = {};
90
+ b.bp("/v2/stream/conferences/{conferenceId}");
91
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
92
+ const query = map({
93
+ [_c]: [, input[_c]],
94
+ });
95
+ let body;
96
+ b.m("GET")
97
+ .h(headers)
98
+ .q(query)
99
+ .b(body);
100
+ return b.build();
101
+ };
102
+ export const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
103
+ const b = rb(input, context);
104
+ const headers = {};
105
+ b.bp("/v2/stream/conferences/{conferenceId}/transcription");
106
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
107
+ const query = map({
108
+ [_c]: [, input[_c]],
109
+ });
110
+ let body;
111
+ b.m("GET")
87
112
  .h(headers)
88
113
  .q(query)
89
114
  .b(body);
@@ -200,12 +225,6 @@ export const de_DescribeEventCommand = async (output, context) => {
200
225
  'PresenceAnalyticsStatusEvent': _json,
201
226
  'PresenceAnalyticsTelephonyEvent': _json,
202
227
  'PresenceEventType': __expectString,
203
- 'ServiceAnalyticsLiveCompleteEvent': _json,
204
- 'ServiceAnalyticsLiveProgressEvent': _json,
205
- 'ServiceCallAnalyticsLiveCompleteEvent': _json,
206
- 'ServiceCallAnalyticsLiveProgressEvent': _json,
207
- 'ServiceCallEventType': __expectString,
208
- 'ServiceEventType': __expectString,
209
228
  'WebhookCallCompletedEvent': _json,
210
229
  'WebhookCallLiveCompletedEvent': _json,
211
230
  'WebhookCallLiveInterruptedEvent': _json,
@@ -265,6 +284,21 @@ export const de_GetConferenceIdCommand = async (output, context) => {
265
284
  return contents;
266
285
  };
267
286
  export const de_GetOngoingCallCommand = 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
+ 'company': __expectString,
296
+ 'flows': _json,
297
+ });
298
+ Object.assign(contents, doc);
299
+ return contents;
300
+ };
301
+ export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
268
302
  if (output.statusCode !== 200 && output.statusCode >= 300) {
269
303
  return de_CommandError(output, context);
270
304
  }
@@ -280,7 +314,7 @@ export const de_GetOngoingCallCommand = async (output, context) => {
280
314
  Object.assign(contents, doc);
281
315
  return contents;
282
316
  };
283
- export const de_ListServicesCommand = async (output, context) => {
317
+ export const de_GetOngoingConferenceCommand = async (output, context) => {
284
318
  if (output.statusCode !== 200 && output.statusCode >= 300) {
285
319
  return de_CommandError(output, context);
286
320
  }
@@ -289,7 +323,22 @@ export const de_ListServicesCommand = async (output, context) => {
289
323
  });
290
324
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
291
325
  const doc = take(data, {
292
- 'services': _json,
326
+ 'conference': _json,
327
+ });
328
+ Object.assign(contents, doc);
329
+ return contents;
330
+ };
331
+ export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
332
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
333
+ return de_CommandError(output, context);
334
+ }
335
+ const contents = map({
336
+ $metadata: deserializeMetadata(output),
337
+ });
338
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
339
+ const doc = take(data, {
340
+ 'conference': _json,
341
+ 'transcriptions': _json,
293
342
  });
294
343
  Object.assign(contents, doc);
295
344
  return contents;
@@ -461,15 +510,6 @@ const se_ConsumeEventInputEvent = (input, context) => {
461
510
  conferenceTranscription: value => ({ "conferenceTranscription": _json(value) }),
462
511
  presence: value => ({ "presence": _json(value) }),
463
512
  presenceTelephony: value => ({ "presenceTelephony": _json(value) }),
464
- serviceAgentJoin: value => ({ "serviceAgentJoin": _json(value) }),
465
- serviceAgentLeave: value => ({ "serviceAgentLeave": _json(value) }),
466
- serviceAgentUpdate: value => ({ "serviceAgentUpdate": _json(value) }),
467
- serviceCallEnd: value => ({ "serviceCallEnd": _json(value) }),
468
- serviceCallInit: value => ({ "serviceCallInit": _json(value) }),
469
- serviceCallUpdate: value => ({ "serviceCallUpdate": _json(value) }),
470
- serviceEnd: value => ({ "serviceEnd": _json(value) }),
471
- serviceInit: value => ({ "serviceInit": _json(value) }),
472
- serviceUpdate: value => ({ "serviceUpdate": _json(value) }),
473
513
  smsInbound: value => ({ "smsInbound": _json(value) }),
474
514
  smsStatus: value => ({ "smsStatus": _json(value) }),
475
515
  usageStt: value => ({ "usageStt": _json(value) }),
@@ -3,7 +3,9 @@ import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/
3
3
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
4
4
  import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
5
5
  import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
6
- import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
6
+ import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
7
+ import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
8
+ import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
7
9
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
8
10
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
9
11
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
@@ -36,12 +38,23 @@ export interface WdaStream {
36
38
  getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
37
39
  getOngoingCall(args: GetOngoingCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
38
40
  /**
39
- * @see {@link ListServicesCommand}
41
+ * @see {@link GetOngoingCallTranscriptionCommand}
40
42
  */
41
- listServices(): Promise<ListServicesCommandOutput>;
42
- listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
43
- listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
44
- listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
43
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallTranscriptionCommandOutput>;
44
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, cb: (err: any, data?: GetOngoingCallTranscriptionCommandOutput) => void): void;
45
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallTranscriptionCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link GetOngoingConferenceCommand}
48
+ */
49
+ getOngoingConference(args: GetOngoingConferenceCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceCommandOutput>;
50
+ getOngoingConference(args: GetOngoingConferenceCommandInput, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
51
+ getOngoingConference(args: GetOngoingConferenceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
52
+ /**
53
+ * @see {@link GetOngoingConferenceTranscriptionCommand}
54
+ */
55
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceTranscriptionCommandOutput>;
56
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
57
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
45
58
  /**
46
59
  * @see {@link QueryConversationsCommand}
47
60
  */
@@ -2,7 +2,9 @@ import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/
2
2
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
3
3
  import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
4
4
  import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
5
- import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
5
+ import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
6
+ import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
7
+ import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
6
8
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
7
9
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
8
10
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
@@ -18,11 +20,11 @@ export { __Client };
18
20
  /**
19
21
  * @public
20
22
  */
21
- export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
23
+ export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
22
24
  /**
23
25
  * @public
24
26
  */
25
- export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
27
+ export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
26
28
  /**
27
29
  * @public
28
30
  */
@@ -359,7 +359,7 @@ declare const ConsumeEventCommand_base: {
359
359
  * flowIndex: Number("int"), // required
360
360
  * flowStartTime: Number("long"), // required
361
361
  * callStartTime: Number("long"), // required
362
- * type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service" || "service_complete" || "service_agent" || "service_call" || "service_call_complete", // required
362
+ * type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
363
363
  * cds: { // CdsTranscriptionPayloadReference
364
364
  * id: "STRING_VALUE", // required
365
365
  * },
@@ -871,183 +871,6 @@ declare const ConsumeEventCommand_base: {
871
871
  * status: "STRING_VALUE",
872
872
  * },
873
873
  * },
874
- * serviceInit: { // ServiceInitConsumeEvent
875
- * id: "STRING_VALUE", // required
876
- * time: Number("long"), // required
877
- * pbx: "STRING_VALUE", // required
878
- * company: "STRING_VALUE", // required
879
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
880
- * data: { // ServiceConsumeEventData
881
- * eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
882
- * name: "STRING_VALUE",
883
- * strategy: "STRING_VALUE",
884
- * maxCalls: "STRING_VALUE",
885
- * weight: "STRING_VALUE",
886
- * agents: [ // ServiceAgentsList
887
- * { // ServiceAgent
888
- * id: "STRING_VALUE", // required
889
- * penalty: "STRING_VALUE",
890
- * type: "STATIC" || "DYNAMIC",
891
- * paused: true || false,
892
- * lastQueueCallEnd: Number("long"),
893
- * userExtension: "STRING_VALUE",
894
- * name: "STRING_VALUE",
895
- * },
896
- * ],
897
- * calls: [ // ServiceCallsList
898
- * "STRING_VALUE",
899
- * ],
900
- * },
901
- * },
902
- * serviceUpdate: { // ServiceUpdateConsumeEvent
903
- * id: "STRING_VALUE", // required
904
- * time: Number("long"), // required
905
- * pbx: "STRING_VALUE", // required
906
- * company: "STRING_VALUE", // required
907
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
908
- * data: {
909
- * eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
910
- * name: "STRING_VALUE",
911
- * strategy: "STRING_VALUE",
912
- * maxCalls: "STRING_VALUE",
913
- * weight: "STRING_VALUE",
914
- * agents: [
915
- * {
916
- * id: "STRING_VALUE", // required
917
- * penalty: "STRING_VALUE",
918
- * type: "STATIC" || "DYNAMIC",
919
- * paused: true || false,
920
- * lastQueueCallEnd: Number("long"),
921
- * userExtension: "STRING_VALUE",
922
- * name: "STRING_VALUE",
923
- * },
924
- * ],
925
- * calls: [
926
- * "STRING_VALUE",
927
- * ],
928
- * },
929
- * },
930
- * serviceEnd: { // ServiceEndConsumeEvent
931
- * id: "STRING_VALUE", // required
932
- * time: Number("long"), // required
933
- * pbx: "STRING_VALUE", // required
934
- * company: "STRING_VALUE", // required
935
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
936
- * },
937
- * serviceCallInit: { // ServiceCallInitConsumeEvent
938
- * id: "STRING_VALUE", // required
939
- * time: Number("long"), // required
940
- * pbx: "STRING_VALUE", // required
941
- * company: "STRING_VALUE", // required
942
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
943
- * data: { // ServiceCallConsumeEventData
944
- * callId: "STRING_VALUE", // required
945
- * startTime: Number("long"),
946
- * direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
947
- * action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
948
- * customer: { // ServiceCustomer
949
- * phone: "STRING_VALUE", // required
950
- * name: "STRING_VALUE",
951
- * },
952
- * relatedAgents: [ // ServiceCallAgentsList
953
- * "STRING_VALUE",
954
- * ],
955
- * eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
956
- * },
957
- * },
958
- * serviceCallUpdate: { // ServiceCallUpdateConsumeEvent
959
- * id: "STRING_VALUE", // required
960
- * time: Number("long"), // required
961
- * pbx: "STRING_VALUE", // required
962
- * company: "STRING_VALUE", // required
963
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
964
- * data: {
965
- * callId: "STRING_VALUE", // required
966
- * startTime: Number("long"),
967
- * direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
968
- * action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
969
- * customer: {
970
- * phone: "STRING_VALUE", // required
971
- * name: "STRING_VALUE",
972
- * },
973
- * relatedAgents: [
974
- * "STRING_VALUE",
975
- * ],
976
- * eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
977
- * },
978
- * },
979
- * serviceCallEnd: { // ServiceCallEndConsumeEvent
980
- * id: "STRING_VALUE", // required
981
- * time: Number("long"), // required
982
- * pbx: "STRING_VALUE", // required
983
- * company: "STRING_VALUE", // required
984
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
985
- * data: {
986
- * callId: "STRING_VALUE", // required
987
- * startTime: Number("long"),
988
- * direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
989
- * action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
990
- * customer: {
991
- * phone: "STRING_VALUE", // required
992
- * name: "STRING_VALUE",
993
- * },
994
- * relatedAgents: [
995
- * "STRING_VALUE",
996
- * ],
997
- * eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
998
- * },
999
- * },
1000
- * serviceAgentJoin: { // ServiceAgentJoinConsumeEvent
1001
- * id: "STRING_VALUE", // required
1002
- * time: Number("long"), // required
1003
- * pbx: "STRING_VALUE", // required
1004
- * company: "STRING_VALUE", // required
1005
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
1006
- * data: { // ServiceAgentConsumeEventData
1007
- * id: "STRING_VALUE", // required
1008
- * penalty: "STRING_VALUE",
1009
- * type: "STATIC" || "DYNAMIC",
1010
- * paused: true || false,
1011
- * lastQueueCallEnd: Number("long"),
1012
- * userExtension: "STRING_VALUE",
1013
- * name: "STRING_VALUE",
1014
- * eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
1015
- * },
1016
- * },
1017
- * serviceAgentUpdate: { // ServiceAgentUpdateConsumeEvent
1018
- * id: "STRING_VALUE", // required
1019
- * time: Number("long"), // required
1020
- * pbx: "STRING_VALUE", // required
1021
- * company: "STRING_VALUE", // required
1022
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
1023
- * data: {
1024
- * id: "STRING_VALUE", // required
1025
- * penalty: "STRING_VALUE",
1026
- * type: "STATIC" || "DYNAMIC",
1027
- * paused: true || false,
1028
- * lastQueueCallEnd: Number("long"),
1029
- * userExtension: "STRING_VALUE",
1030
- * name: "STRING_VALUE",
1031
- * eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
1032
- * },
1033
- * },
1034
- * serviceAgentLeave: { // ServiceAgentLeaveConsumeEvent
1035
- * id: "STRING_VALUE", // required
1036
- * time: Number("long"), // required
1037
- * pbx: "STRING_VALUE", // required
1038
- * company: "STRING_VALUE", // required
1039
- * type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
1040
- * data: {
1041
- * id: "STRING_VALUE", // required
1042
- * penalty: "STRING_VALUE",
1043
- * type: "STATIC" || "DYNAMIC",
1044
- * paused: true || false,
1045
- * lastQueueCallEnd: Number("long"),
1046
- * userExtension: "STRING_VALUE",
1047
- * name: "STRING_VALUE",
1048
- * eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
1049
- * },
1050
- * },
1051
874
  * usageStt: { // TranscriptionUsageEvent
1052
875
  * id: "STRING_VALUE", // required
1053
876
  * time: Number("long"), // required