@wildix/wda-stream-client 1.0.62 → 1.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = 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.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.BadRequestException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
4
- exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = void 0;
3
+ exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = 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.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.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = 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 = void 0;
5
5
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
6
6
  class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
7
7
  name = "ValidationException";
@@ -39,19 +39,6 @@ class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceExc
39
39
  }
40
40
  }
41
41
  exports.ForbiddenException = ForbiddenException;
42
- class BadRequestException extends WdaStreamServiceException_1.WdaStreamServiceException {
43
- name = "BadRequestException";
44
- $fault = "client";
45
- constructor(opts) {
46
- super({
47
- name: "BadRequestException",
48
- $fault: "client",
49
- ...opts
50
- });
51
- Object.setPrototypeOf(this, BadRequestException.prototype);
52
- }
53
- }
54
- exports.BadRequestException = BadRequestException;
55
42
  exports.WhatsAppEventType = {
56
43
  WHATSAPP_INBOUND: "WHATSAPP.INBOUND",
57
44
  WHATSAPP_STATUS: "WHATSAPP.STATUS",
@@ -321,6 +308,13 @@ exports.SmsStatus = {
321
308
  SENT: "sent",
322
309
  TRYING: "trying",
323
310
  };
311
+ exports.LanguageDetection = {
312
+ AUTO: "auto",
313
+ OFF: "off",
314
+ };
315
+ exports.UsageEventType = {
316
+ USAGE_STT: "USAGE.STT",
317
+ };
324
318
  var ConsumeEventInputEvent;
325
319
  (function (ConsumeEventInputEvent) {
326
320
  ConsumeEventInputEvent.visit = (value, visitor) => {
@@ -382,6 +376,8 @@ var ConsumeEventInputEvent;
382
376
  return visitor.presence(value.presence);
383
377
  if (value.presenceTelephony !== undefined)
384
378
  return visitor.presenceTelephony(value.presenceTelephony);
379
+ if (value.usageStt !== undefined)
380
+ return visitor.usageStt(value.usageStt);
385
381
  return visitor._(value.$unknown[0], value.$unknown[1]);
386
382
  };
387
383
  })(ConsumeEventInputEvent || (exports.ConsumeEventInputEvent = ConsumeEventInputEvent = {}));
@@ -304,9 +304,6 @@ const de_CommandError = async (output, context) => {
304
304
  case "ValidationException":
305
305
  case "smithy.framework#ValidationException":
306
306
  throw await de_ValidationExceptionRes(parsedOutput, context);
307
- case "BadRequestException":
308
- case "smithy.framework#BadRequestException":
309
- throw await de_BadRequestExceptionRes(parsedOutput, context);
310
307
  case "MatchNotFoundException":
311
308
  case "wildix.wda.stream#MatchNotFoundException":
312
309
  throw await de_MatchNotFoundExceptionRes(parsedOutput, context);
@@ -323,19 +320,6 @@ const de_CommandError = async (output, context) => {
323
320
  }
324
321
  };
325
322
  const throwDefaultError = (0, smithy_client_1.withBaseException)(WdaStreamServiceException_1.WdaStreamServiceException);
326
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
327
- const contents = (0, smithy_client_1.map)({});
328
- const data = parsedOutput.body;
329
- const doc = (0, smithy_client_1.take)(data, {
330
- 'message': smithy_client_1.expectString,
331
- });
332
- Object.assign(contents, doc);
333
- const exception = new models_0_1.BadRequestException({
334
- $metadata: deserializeMetadata(parsedOutput),
335
- ...contents
336
- });
337
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
338
- };
339
323
  const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
340
324
  const contents = (0, smithy_client_1.map)({});
341
325
  const data = parsedOutput.body;
@@ -420,6 +404,7 @@ const se_ConsumeEventInputEvent = (input, context) => {
420
404
  presenceTelephony: value => ({ "presenceTelephony": (0, smithy_client_1._json)(value) }),
421
405
  smsInbound: value => ({ "smsInbound": (0, smithy_client_1._json)(value) }),
422
406
  smsStatus: value => ({ "smsStatus": (0, smithy_client_1._json)(value) }),
407
+ usageStt: value => ({ "usageStt": (0, smithy_client_1._json)(value) }),
423
408
  whatsappInbound: value => ({ "whatsappInbound": se_WhatsAppInboundConsumeEvent(value, context) }),
424
409
  whatsappStatus: value => ({ "whatsappStatus": se_WhatsAppStatusConsumeEvent(value, context) }),
425
410
  _: (name, value) => ({ [name]: value })
@@ -33,18 +33,6 @@ export class ForbiddenException extends __BaseException {
33
33
  Object.setPrototypeOf(this, ForbiddenException.prototype);
34
34
  }
35
35
  }
36
- export class BadRequestException extends __BaseException {
37
- name = "BadRequestException";
38
- $fault = "client";
39
- constructor(opts) {
40
- super({
41
- name: "BadRequestException",
42
- $fault: "client",
43
- ...opts
44
- });
45
- Object.setPrototypeOf(this, BadRequestException.prototype);
46
- }
47
- }
48
36
  export const WhatsAppEventType = {
49
37
  WHATSAPP_INBOUND: "WHATSAPP.INBOUND",
50
38
  WHATSAPP_STATUS: "WHATSAPP.STATUS",
@@ -314,6 +302,13 @@ export const SmsStatus = {
314
302
  SENT: "sent",
315
303
  TRYING: "trying",
316
304
  };
305
+ export const LanguageDetection = {
306
+ AUTO: "auto",
307
+ OFF: "off",
308
+ };
309
+ export const UsageEventType = {
310
+ USAGE_STT: "USAGE.STT",
311
+ };
317
312
  export var ConsumeEventInputEvent;
318
313
  (function (ConsumeEventInputEvent) {
319
314
  ConsumeEventInputEvent.visit = (value, visitor) => {
@@ -375,6 +370,8 @@ export var ConsumeEventInputEvent;
375
370
  return visitor.presence(value.presence);
376
371
  if (value.presenceTelephony !== undefined)
377
372
  return visitor.presenceTelephony(value.presenceTelephony);
373
+ if (value.usageStt !== undefined)
374
+ return visitor.usageStt(value.usageStt);
378
375
  return visitor._(value.$unknown[0], value.$unknown[1]);
379
376
  };
380
377
  })(ConsumeEventInputEvent || (ConsumeEventInputEvent = {}));
@@ -1,5 +1,5 @@
1
1
  import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
2
- import { BadRequestException, ConsumeEventInputEvent, ForbiddenException, MatchNotFoundException, PresenceNotAvailableException, ValidationException, } from "../models/models_0";
2
+ import { ConsumeEventInputEvent, ForbiddenException, MatchNotFoundException, PresenceNotAvailableException, ValidationException, } from "../models/models_0";
3
3
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
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";
@@ -287,9 +287,6 @@ const de_CommandError = async (output, context) => {
287
287
  case "ValidationException":
288
288
  case "smithy.framework#ValidationException":
289
289
  throw await de_ValidationExceptionRes(parsedOutput, context);
290
- case "BadRequestException":
291
- case "smithy.framework#BadRequestException":
292
- throw await de_BadRequestExceptionRes(parsedOutput, context);
293
290
  case "MatchNotFoundException":
294
291
  case "wildix.wda.stream#MatchNotFoundException":
295
292
  throw await de_MatchNotFoundExceptionRes(parsedOutput, context);
@@ -306,19 +303,6 @@ const de_CommandError = async (output, context) => {
306
303
  }
307
304
  };
308
305
  const throwDefaultError = withBaseException(__BaseException);
309
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
310
- const contents = map({});
311
- const data = parsedOutput.body;
312
- const doc = take(data, {
313
- 'message': __expectString,
314
- });
315
- Object.assign(contents, doc);
316
- const exception = new BadRequestException({
317
- $metadata: deserializeMetadata(parsedOutput),
318
- ...contents
319
- });
320
- return __decorateServiceException(exception, parsedOutput.body);
321
- };
322
306
  const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
323
307
  const contents = map({});
324
308
  const data = parsedOutput.body;
@@ -403,6 +387,7 @@ const se_ConsumeEventInputEvent = (input, context) => {
403
387
  presenceTelephony: value => ({ "presenceTelephony": _json(value) }),
404
388
  smsInbound: value => ({ "smsInbound": _json(value) }),
405
389
  smsStatus: value => ({ "smsStatus": _json(value) }),
390
+ usageStt: value => ({ "usageStt": _json(value) }),
406
391
  whatsappInbound: value => ({ "whatsappInbound": se_WhatsAppInboundConsumeEvent(value, context) }),
407
392
  whatsappStatus: value => ({ "whatsappStatus": se_WhatsAppStatusConsumeEvent(value, context) }),
408
393
  _: (name, value) => ({ [name]: value })
@@ -27,8 +27,7 @@ declare const ConsumeEventCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Consumes and processes stream events for calls, conferences, chats, SMS, WhatsApp, and presence updates.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -685,6 +684,23 @@ declare const ConsumeEventCommand_base: {
685
684
  * status: "STRING_VALUE",
686
685
  * },
687
686
  * },
687
+ * usageStt: { // TranscriptionUsageEvent
688
+ * id: "STRING_VALUE", // required
689
+ * time: Number("long"), // required
690
+ * pbx: "STRING_VALUE", // required
691
+ * company: "STRING_VALUE", // required
692
+ * type: "USAGE.STT", // required
693
+ * data: { // SttUsageEventData
694
+ * service: "STRING_VALUE",
695
+ * category: "STRING_VALUE", // required
696
+ * owner: "STRING_VALUE", // required
697
+ * flowId: Number("int"),
698
+ * start: Number("long"), // required
699
+ * end: Number("long"), // required
700
+ * language: "STRING_VALUE",
701
+ * languageDetection: "auto" || "off",
702
+ * },
703
+ * },
688
704
  * },
689
705
  * };
690
706
  * const command = new ConsumeEventCommand(input);
@@ -707,6 +723,7 @@ declare const ConsumeEventCommand_base: {
707
723
  * <p>Base exception class for all service exceptions from WdaStream service.</p>
708
724
  *
709
725
  *
726
+ * @public
710
727
  */
711
728
  export declare class ConsumeEventCommand extends ConsumeEventCommand_base {
712
729
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const DescribeEventCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Describes event structures and schemas for various stream event types.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -293,6 +292,9 @@ declare const DescribeEventCommand_base: {
293
292
  * // statusChangeDate: "STRING_VALUE", // required
294
293
  * // },
295
294
  * // ],
295
+ * // participantsGroupIds: [ // ConversationParticipantsGroupList
296
+ * // "STRING_VALUE",
297
+ * // ],
296
298
  * // },
297
299
  * // CallAnalyticsLiveCompleteEvent: { // CallAnalyticsLiveCompleteEvent
298
300
  * // id: "STRING_VALUE", // required
@@ -749,6 +751,9 @@ declare const DescribeEventCommand_base: {
749
751
  * // ],
750
752
  * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
751
753
  * // transcriptionLanguage: "STRING_VALUE",
754
+ * // participantsGroupIds: [
755
+ * // "STRING_VALUE",
756
+ * // ],
752
757
  * // },
753
758
  * // ConferenceAnalyticsLiveCompleteEvent: { // ConferenceAnalyticsLiveCompleteEvent
754
759
  * // id: "STRING_VALUE", // required
@@ -1203,6 +1208,9 @@ declare const DescribeEventCommand_base: {
1203
1208
  * // statusChangeDate: "STRING_VALUE", // required
1204
1209
  * // },
1205
1210
  * // ],
1211
+ * // participantsGroupIds: [
1212
+ * // "STRING_VALUE",
1213
+ * // ],
1206
1214
  * // },
1207
1215
  * // },
1208
1216
  * // WebhookCallLiveCompletedEvent: { // WebhookCallLiveCompletedEvent
@@ -1621,6 +1629,9 @@ declare const DescribeEventCommand_base: {
1621
1629
  * // ],
1622
1630
  * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
1623
1631
  * // transcriptionLanguage: "STRING_VALUE",
1632
+ * // participantsGroupIds: [
1633
+ * // "STRING_VALUE",
1634
+ * // ],
1624
1635
  * // },
1625
1636
  * // },
1626
1637
  * // WebhookConferenceLiveCompletedEvent: { // WebhookConferenceLiveCompletedEvent
@@ -2206,14 +2217,13 @@ declare const DescribeEventCommand_base: {
2206
2217
  * @see {@link DescribeEventCommandOutput} for command's `response` shape.
2207
2218
  * @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
2208
2219
  *
2209
- * @throws {@link BadRequestException} (client fault)
2210
- *
2211
2220
  * @throws {@link ValidationException} (client fault)
2212
2221
  *
2213
2222
  * @throws {@link WdaStreamServiceException}
2214
2223
  * <p>Base exception class for all service exceptions from WdaStream service.</p>
2215
2224
  *
2216
2225
  *
2226
+ * @public
2217
2227
  */
2218
2228
  export declare class DescribeEventCommand extends DescribeEventCommand_base {
2219
2229
  /** @internal type navigation helper, not in runtime. */
@@ -52,12 +52,10 @@ declare const GetConferenceIdCommand_base: {
52
52
  * @see {@link GetConferenceIdCommandOutput} for command's `response` shape.
53
53
  * @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
54
54
  *
55
- * @throws {@link ForbiddenException} (client fault)
55
+ * @throws {@link ValidationException} (client fault)
56
56
  *
57
57
  * @throws {@link MatchNotFoundException} (client fault)
58
58
  *
59
- * @throws {@link ValidationException} (client fault)
60
- *
61
59
  * @throws {@link WdaStreamServiceException}
62
60
  * <p>Base exception class for all service exceptions from WdaStream service.</p>
63
61
  *
@@ -27,10 +27,7 @@ declare const QueryConversationsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- *
31
- * <p>Retrieves ongoing conversations.</p>
32
- * <p>Once the conversation ends the item would be dissapeared from the list.</p>
33
- *
30
+ * Retrieves ongoing conversations. Once the conversation ends the item would be dissapeared from the list.
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -224,6 +221,9 @@ declare const QueryConversationsCommand_base: {
224
221
  * // statusChangeDate: "STRING_VALUE", // required
225
222
  * // },
226
223
  * // ],
224
+ * // participantsGroupIds: [ // ConversationParticipantsGroupList
225
+ * // "STRING_VALUE",
226
+ * // ],
227
227
  * // },
228
228
  * // ],
229
229
  * // conferences: [ // QueryConversationsConferencesList // required
@@ -253,6 +253,9 @@ declare const QueryConversationsCommand_base: {
253
253
  * // ],
254
254
  * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
255
255
  * // transcriptionLanguage: "STRING_VALUE",
256
+ * // participantsGroupIds: [
257
+ * // "STRING_VALUE",
258
+ * // ],
256
259
  * // },
257
260
  * // ],
258
261
  * // chats: [ // QueryConversationsChatsList // required
@@ -67,8 +67,6 @@ declare const QueryPresenceCommand_base: {
67
67
  * @see {@link QueryPresenceCommandOutput} for command's `response` shape.
68
68
  * @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
69
69
  *
70
- * @throws {@link ForbiddenException} (client fault)
71
- *
72
70
  * @throws {@link PresenceNotAvailableException} (client fault)
73
71
  *
74
72
  * @throws {@link ValidationException} (client fault)
@@ -71,8 +71,6 @@ declare const QueryPresencesCommand_base: {
71
71
  * @see {@link QueryPresencesCommandOutput} for command's `response` shape.
72
72
  * @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
73
73
  *
74
- * @throws {@link ForbiddenException} (client fault)
75
- *
76
74
  * @throws {@link ValidationException} (client fault)
77
75
  *
78
76
  * @throws {@link WdaStreamServiceException}
@@ -49,17 +49,6 @@ export declare class ForbiddenException extends __BaseException {
49
49
  */
50
50
  constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
51
51
  }
52
- /**
53
- * @public
54
- */
55
- export declare class BadRequestException extends __BaseException {
56
- readonly name: "BadRequestException";
57
- readonly $fault: "client";
58
- /**
59
- * @internal
60
- */
61
- constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
62
- }
63
52
  /**
64
53
  * @public
65
54
  * @enum
@@ -1008,6 +997,11 @@ export interface CallAnalyticsLiveProgressEvent {
1008
997
  eventTrigger: CallAnalyticsLiveProgressEventTrigger;
1009
998
  start: string;
1010
999
  flows: (CallAnalyticsLiveProgressEventFlow)[];
1000
+ /**
1001
+ * List of unique group IDs from all participants involved in the conversation
1002
+ * @public
1003
+ */
1004
+ participantsGroupIds?: (string)[] | undefined;
1011
1005
  }
1012
1006
  /**
1013
1007
  * @public
@@ -1783,6 +1777,11 @@ export interface ConferenceAnalyticsLiveProgressEvent {
1783
1777
  participants: (ConferenceParticipant)[];
1784
1778
  transcriptionStatus?: ConferenceTranscriptionStatus | undefined;
1785
1779
  transcriptionLanguage?: string | undefined;
1780
+ /**
1781
+ * List of unique group IDs from all participants involved in the conversation
1782
+ * @public
1783
+ */
1784
+ participantsGroupIds?: (string)[] | undefined;
1786
1785
  }
1787
1786
  /**
1788
1787
  * @public
@@ -2222,6 +2221,57 @@ export interface SmsStatusConsumeEvent {
2222
2221
  type: SmsConsumeEventType;
2223
2222
  data: SmsStatusConsumeEventData;
2224
2223
  }
2224
+ /**
2225
+ * @public
2226
+ * @enum
2227
+ */
2228
+ export declare const LanguageDetection: {
2229
+ readonly AUTO: "auto";
2230
+ readonly OFF: "off";
2231
+ };
2232
+ /**
2233
+ * @public
2234
+ */
2235
+ export type LanguageDetection = typeof LanguageDetection[keyof typeof LanguageDetection];
2236
+ /**
2237
+ * @public
2238
+ */
2239
+ export interface SttUsageEventData {
2240
+ service?: string | undefined;
2241
+ category: string;
2242
+ owner: string;
2243
+ flowId?: number | undefined;
2244
+ start: number;
2245
+ end: number;
2246
+ language?: string | undefined;
2247
+ /**
2248
+ * Specifies whether language detection is automatically performed or disabled
2249
+ * @public
2250
+ */
2251
+ languageDetection?: LanguageDetection | undefined;
2252
+ }
2253
+ /**
2254
+ * @public
2255
+ * @enum
2256
+ */
2257
+ export declare const UsageEventType: {
2258
+ readonly USAGE_STT: "USAGE.STT";
2259
+ };
2260
+ /**
2261
+ * @public
2262
+ */
2263
+ export type UsageEventType = typeof UsageEventType[keyof typeof UsageEventType];
2264
+ /**
2265
+ * @public
2266
+ */
2267
+ export interface TranscriptionUsageEvent {
2268
+ id: string;
2269
+ time: number;
2270
+ pbx: string;
2271
+ company: string;
2272
+ type: UsageEventType;
2273
+ data: SttUsageEventData;
2274
+ }
2225
2275
  /**
2226
2276
  * @public
2227
2277
  */
@@ -2245,7 +2295,7 @@ export interface WhatsAppStatusConsumeEvent {
2245
2295
  /**
2246
2296
  * @public
2247
2297
  */
2248
- export type ConsumeEventInputEvent = ConsumeEventInputEvent.CallAgentsCancelMember | ConsumeEventInputEvent.CallAgentsStartMember | ConsumeEventInputEvent.CallAttachmentMember | ConsumeEventInputEvent.CallEndMember | ConsumeEventInputEvent.CallLiveMember | ConsumeEventInputEvent.CallRecordStartMember | ConsumeEventInputEvent.CallRecordStopMember | ConsumeEventInputEvent.CallSplitMember | ConsumeEventInputEvent.CallStartMember | ConsumeEventInputEvent.CallTranscriptionMember | ConsumeEventInputEvent.CallUpdateMember | ConsumeEventInputEvent.ChatNewMember | ConsumeEventInputEvent.ChatUpdateMember | ConsumeEventInputEvent.ConferenceEndMember | ConsumeEventInputEvent.ConferenceJoinMember | ConsumeEventInputEvent.ConferenceKeepAliveMember | ConsumeEventInputEvent.ConferenceLeaveMember | ConsumeEventInputEvent.ConferenceRecordStartMember | ConsumeEventInputEvent.ConferenceRecordStopMember | ConsumeEventInputEvent.ConferenceStartMember | ConsumeEventInputEvent.ConferenceStatsMember | ConsumeEventInputEvent.ConferenceTimeFramesMember | ConsumeEventInputEvent.ConferenceTranscriptionMember | ConsumeEventInputEvent.PresenceMember | ConsumeEventInputEvent.PresenceTelephonyMember | ConsumeEventInputEvent.SmsInboundMember | ConsumeEventInputEvent.SmsStatusMember | ConsumeEventInputEvent.WhatsappInboundMember | ConsumeEventInputEvent.WhatsappStatusMember | ConsumeEventInputEvent.$UnknownMember;
2298
+ export type ConsumeEventInputEvent = ConsumeEventInputEvent.CallAgentsCancelMember | ConsumeEventInputEvent.CallAgentsStartMember | ConsumeEventInputEvent.CallAttachmentMember | ConsumeEventInputEvent.CallEndMember | ConsumeEventInputEvent.CallLiveMember | ConsumeEventInputEvent.CallRecordStartMember | ConsumeEventInputEvent.CallRecordStopMember | ConsumeEventInputEvent.CallSplitMember | ConsumeEventInputEvent.CallStartMember | ConsumeEventInputEvent.CallTranscriptionMember | ConsumeEventInputEvent.CallUpdateMember | ConsumeEventInputEvent.ChatNewMember | ConsumeEventInputEvent.ChatUpdateMember | ConsumeEventInputEvent.ConferenceEndMember | ConsumeEventInputEvent.ConferenceJoinMember | ConsumeEventInputEvent.ConferenceKeepAliveMember | ConsumeEventInputEvent.ConferenceLeaveMember | ConsumeEventInputEvent.ConferenceRecordStartMember | ConsumeEventInputEvent.ConferenceRecordStopMember | ConsumeEventInputEvent.ConferenceStartMember | ConsumeEventInputEvent.ConferenceStatsMember | ConsumeEventInputEvent.ConferenceTimeFramesMember | ConsumeEventInputEvent.ConferenceTranscriptionMember | ConsumeEventInputEvent.PresenceMember | ConsumeEventInputEvent.PresenceTelephonyMember | ConsumeEventInputEvent.SmsInboundMember | ConsumeEventInputEvent.SmsStatusMember | ConsumeEventInputEvent.UsageSttMember | ConsumeEventInputEvent.WhatsappInboundMember | ConsumeEventInputEvent.WhatsappStatusMember | ConsumeEventInputEvent.$UnknownMember;
2249
2299
  /**
2250
2300
  * @public
2251
2301
  */
@@ -2280,6 +2330,7 @@ export declare namespace ConsumeEventInputEvent {
2280
2330
  whatsappStatus?: never;
2281
2331
  presence?: never;
2282
2332
  presenceTelephony?: never;
2333
+ usageStt?: never;
2283
2334
  $unknown?: never;
2284
2335
  }
2285
2336
  interface CallUpdateMember {
@@ -2312,6 +2363,7 @@ export declare namespace ConsumeEventInputEvent {
2312
2363
  whatsappStatus?: never;
2313
2364
  presence?: never;
2314
2365
  presenceTelephony?: never;
2366
+ usageStt?: never;
2315
2367
  $unknown?: never;
2316
2368
  }
2317
2369
  interface CallSplitMember {
@@ -2344,6 +2396,7 @@ export declare namespace ConsumeEventInputEvent {
2344
2396
  whatsappStatus?: never;
2345
2397
  presence?: never;
2346
2398
  presenceTelephony?: never;
2399
+ usageStt?: never;
2347
2400
  $unknown?: never;
2348
2401
  }
2349
2402
  interface CallLiveMember {
@@ -2376,6 +2429,7 @@ export declare namespace ConsumeEventInputEvent {
2376
2429
  whatsappStatus?: never;
2377
2430
  presence?: never;
2378
2431
  presenceTelephony?: never;
2432
+ usageStt?: never;
2379
2433
  $unknown?: never;
2380
2434
  }
2381
2435
  interface CallAgentsStartMember {
@@ -2408,6 +2462,7 @@ export declare namespace ConsumeEventInputEvent {
2408
2462
  whatsappStatus?: never;
2409
2463
  presence?: never;
2410
2464
  presenceTelephony?: never;
2465
+ usageStt?: never;
2411
2466
  $unknown?: never;
2412
2467
  }
2413
2468
  interface CallAgentsCancelMember {
@@ -2440,6 +2495,7 @@ export declare namespace ConsumeEventInputEvent {
2440
2495
  whatsappStatus?: never;
2441
2496
  presence?: never;
2442
2497
  presenceTelephony?: never;
2498
+ usageStt?: never;
2443
2499
  $unknown?: never;
2444
2500
  }
2445
2501
  interface CallEndMember {
@@ -2472,6 +2528,7 @@ export declare namespace ConsumeEventInputEvent {
2472
2528
  whatsappStatus?: never;
2473
2529
  presence?: never;
2474
2530
  presenceTelephony?: never;
2531
+ usageStt?: never;
2475
2532
  $unknown?: never;
2476
2533
  }
2477
2534
  interface CallRecordStartMember {
@@ -2504,6 +2561,7 @@ export declare namespace ConsumeEventInputEvent {
2504
2561
  whatsappStatus?: never;
2505
2562
  presence?: never;
2506
2563
  presenceTelephony?: never;
2564
+ usageStt?: never;
2507
2565
  $unknown?: never;
2508
2566
  }
2509
2567
  interface CallRecordStopMember {
@@ -2536,6 +2594,7 @@ export declare namespace ConsumeEventInputEvent {
2536
2594
  whatsappStatus?: never;
2537
2595
  presence?: never;
2538
2596
  presenceTelephony?: never;
2597
+ usageStt?: never;
2539
2598
  $unknown?: never;
2540
2599
  }
2541
2600
  interface CallAttachmentMember {
@@ -2568,6 +2627,7 @@ export declare namespace ConsumeEventInputEvent {
2568
2627
  whatsappStatus?: never;
2569
2628
  presence?: never;
2570
2629
  presenceTelephony?: never;
2630
+ usageStt?: never;
2571
2631
  $unknown?: never;
2572
2632
  }
2573
2633
  interface CallTranscriptionMember {
@@ -2600,6 +2660,7 @@ export declare namespace ConsumeEventInputEvent {
2600
2660
  whatsappStatus?: never;
2601
2661
  presence?: never;
2602
2662
  presenceTelephony?: never;
2663
+ usageStt?: never;
2603
2664
  $unknown?: never;
2604
2665
  }
2605
2666
  interface ConferenceTimeFramesMember {
@@ -2632,6 +2693,7 @@ export declare namespace ConsumeEventInputEvent {
2632
2693
  whatsappStatus?: never;
2633
2694
  presence?: never;
2634
2695
  presenceTelephony?: never;
2696
+ usageStt?: never;
2635
2697
  $unknown?: never;
2636
2698
  }
2637
2699
  interface ConferenceStartMember {
@@ -2664,6 +2726,7 @@ export declare namespace ConsumeEventInputEvent {
2664
2726
  whatsappStatus?: never;
2665
2727
  presence?: never;
2666
2728
  presenceTelephony?: never;
2729
+ usageStt?: never;
2667
2730
  $unknown?: never;
2668
2731
  }
2669
2732
  interface ConferenceJoinMember {
@@ -2696,6 +2759,7 @@ export declare namespace ConsumeEventInputEvent {
2696
2759
  whatsappStatus?: never;
2697
2760
  presence?: never;
2698
2761
  presenceTelephony?: never;
2762
+ usageStt?: never;
2699
2763
  $unknown?: never;
2700
2764
  }
2701
2765
  interface ConferenceRecordStartMember {
@@ -2728,6 +2792,7 @@ export declare namespace ConsumeEventInputEvent {
2728
2792
  whatsappStatus?: never;
2729
2793
  presence?: never;
2730
2794
  presenceTelephony?: never;
2795
+ usageStt?: never;
2731
2796
  $unknown?: never;
2732
2797
  }
2733
2798
  interface ConferenceTranscriptionMember {
@@ -2760,6 +2825,7 @@ export declare namespace ConsumeEventInputEvent {
2760
2825
  whatsappStatus?: never;
2761
2826
  presence?: never;
2762
2827
  presenceTelephony?: never;
2828
+ usageStt?: never;
2763
2829
  $unknown?: never;
2764
2830
  }
2765
2831
  interface ConferenceLeaveMember {
@@ -2792,6 +2858,7 @@ export declare namespace ConsumeEventInputEvent {
2792
2858
  whatsappStatus?: never;
2793
2859
  presence?: never;
2794
2860
  presenceTelephony?: never;
2861
+ usageStt?: never;
2795
2862
  $unknown?: never;
2796
2863
  }
2797
2864
  interface ConferenceRecordStopMember {
@@ -2824,6 +2891,7 @@ export declare namespace ConsumeEventInputEvent {
2824
2891
  whatsappStatus?: never;
2825
2892
  presence?: never;
2826
2893
  presenceTelephony?: never;
2894
+ usageStt?: never;
2827
2895
  $unknown?: never;
2828
2896
  }
2829
2897
  interface ConferenceKeepAliveMember {
@@ -2856,6 +2924,7 @@ export declare namespace ConsumeEventInputEvent {
2856
2924
  whatsappStatus?: never;
2857
2925
  presence?: never;
2858
2926
  presenceTelephony?: never;
2927
+ usageStt?: never;
2859
2928
  $unknown?: never;
2860
2929
  }
2861
2930
  interface ConferenceEndMember {
@@ -2888,6 +2957,7 @@ export declare namespace ConsumeEventInputEvent {
2888
2957
  whatsappStatus?: never;
2889
2958
  presence?: never;
2890
2959
  presenceTelephony?: never;
2960
+ usageStt?: never;
2891
2961
  $unknown?: never;
2892
2962
  }
2893
2963
  interface ConferenceStatsMember {
@@ -2920,6 +2990,7 @@ export declare namespace ConsumeEventInputEvent {
2920
2990
  whatsappStatus?: never;
2921
2991
  presence?: never;
2922
2992
  presenceTelephony?: never;
2993
+ usageStt?: never;
2923
2994
  $unknown?: never;
2924
2995
  }
2925
2996
  interface ChatNewMember {
@@ -2952,6 +3023,7 @@ export declare namespace ConsumeEventInputEvent {
2952
3023
  whatsappStatus?: never;
2953
3024
  presence?: never;
2954
3025
  presenceTelephony?: never;
3026
+ usageStt?: never;
2955
3027
  $unknown?: never;
2956
3028
  }
2957
3029
  interface ChatUpdateMember {
@@ -2984,6 +3056,7 @@ export declare namespace ConsumeEventInputEvent {
2984
3056
  whatsappStatus?: never;
2985
3057
  presence?: never;
2986
3058
  presenceTelephony?: never;
3059
+ usageStt?: never;
2987
3060
  $unknown?: never;
2988
3061
  }
2989
3062
  interface SmsInboundMember {
@@ -3016,6 +3089,7 @@ export declare namespace ConsumeEventInputEvent {
3016
3089
  whatsappStatus?: never;
3017
3090
  presence?: never;
3018
3091
  presenceTelephony?: never;
3092
+ usageStt?: never;
3019
3093
  $unknown?: never;
3020
3094
  }
3021
3095
  interface SmsStatusMember {
@@ -3048,6 +3122,7 @@ export declare namespace ConsumeEventInputEvent {
3048
3122
  whatsappStatus?: never;
3049
3123
  presence?: never;
3050
3124
  presenceTelephony?: never;
3125
+ usageStt?: never;
3051
3126
  $unknown?: never;
3052
3127
  }
3053
3128
  interface WhatsappInboundMember {
@@ -3080,6 +3155,7 @@ export declare namespace ConsumeEventInputEvent {
3080
3155
  whatsappStatus?: never;
3081
3156
  presence?: never;
3082
3157
  presenceTelephony?: never;
3158
+ usageStt?: never;
3083
3159
  $unknown?: never;
3084
3160
  }
3085
3161
  interface WhatsappStatusMember {
@@ -3112,6 +3188,7 @@ export declare namespace ConsumeEventInputEvent {
3112
3188
  whatsappStatus: WhatsAppStatusConsumeEvent;
3113
3189
  presence?: never;
3114
3190
  presenceTelephony?: never;
3191
+ usageStt?: never;
3115
3192
  $unknown?: never;
3116
3193
  }
3117
3194
  interface PresenceMember {
@@ -3144,6 +3221,7 @@ export declare namespace ConsumeEventInputEvent {
3144
3221
  whatsappStatus?: never;
3145
3222
  presence: PresenceConsumeEvent;
3146
3223
  presenceTelephony?: never;
3224
+ usageStt?: never;
3147
3225
  $unknown?: never;
3148
3226
  }
3149
3227
  interface PresenceTelephonyMember {
@@ -3176,6 +3254,40 @@ export declare namespace ConsumeEventInputEvent {
3176
3254
  whatsappStatus?: never;
3177
3255
  presence?: never;
3178
3256
  presenceTelephony: PresenceTelephonyConsumeEvent;
3257
+ usageStt?: never;
3258
+ $unknown?: never;
3259
+ }
3260
+ interface UsageSttMember {
3261
+ callStart?: never;
3262
+ callUpdate?: never;
3263
+ callSplit?: never;
3264
+ callLive?: never;
3265
+ callAgentsStart?: never;
3266
+ callAgentsCancel?: never;
3267
+ callEnd?: never;
3268
+ callRecordStart?: never;
3269
+ callRecordStop?: never;
3270
+ callAttachment?: never;
3271
+ callTranscription?: never;
3272
+ conferenceTimeFrames?: never;
3273
+ conferenceStart?: never;
3274
+ conferenceJoin?: never;
3275
+ conferenceRecordStart?: never;
3276
+ conferenceTranscription?: never;
3277
+ conferenceLeave?: never;
3278
+ conferenceRecordStop?: never;
3279
+ conferenceKeepAlive?: never;
3280
+ conferenceEnd?: never;
3281
+ conferenceStats?: never;
3282
+ chatNew?: never;
3283
+ chatUpdate?: never;
3284
+ smsInbound?: never;
3285
+ smsStatus?: never;
3286
+ whatsappInbound?: never;
3287
+ whatsappStatus?: never;
3288
+ presence?: never;
3289
+ presenceTelephony?: never;
3290
+ usageStt: TranscriptionUsageEvent;
3179
3291
  $unknown?: never;
3180
3292
  }
3181
3293
  /**
@@ -3211,6 +3323,7 @@ export declare namespace ConsumeEventInputEvent {
3211
3323
  whatsappStatus?: never;
3212
3324
  presence?: never;
3213
3325
  presenceTelephony?: never;
3326
+ usageStt?: never;
3214
3327
  $unknown: [string, any];
3215
3328
  }
3216
3329
  interface Visitor<T> {
@@ -3243,6 +3356,7 @@ export declare namespace ConsumeEventInputEvent {
3243
3356
  whatsappStatus: (value: WhatsAppStatusConsumeEvent) => T;
3244
3357
  presence: (value: PresenceConsumeEvent) => T;
3245
3358
  presenceTelephony: (value: PresenceTelephonyConsumeEvent) => T;
3359
+ usageStt: (value: TranscriptionUsageEvent) => T;
3246
3360
  _: (name: string, value: any) => T;
3247
3361
  }
3248
3362
  const visit: <T>(value: ConsumeEventInputEvent, visitor: Visitor<T>) => T;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-stream-client",
3
3
  "description": "@wildix/wda-stream-client client",
4
- "version": "1.0.62",
4
+ "version": "1.0.64",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",