@wildix/wda-stream-client 1.1.49 → 1.1.55
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.
- package/dist-cjs/models/models_0.js +8 -2
- package/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +8 -5
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -1
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +29 -12
- package/dist-types/models/models_1.d.ts +11 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.WebsocketEvent = exports.WebhookEventType = exports.ServiceEventType = exports.ServiceCallEventType = exports.ServiceAnalyticsEventTrigger = 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.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
|
|
3
|
+
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.TranscriptionSentiment = 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.ServiceAnalyticsEventTrigger = 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.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = exports.ChatConsumeEventType = void 0;
|
|
5
5
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
6
6
|
class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
7
7
|
name = "ForbiddenException";
|
|
@@ -121,6 +121,12 @@ exports.CallTranscriptionSpeaker = {
|
|
|
121
121
|
CALLEE: "callee",
|
|
122
122
|
CALLER: "caller",
|
|
123
123
|
};
|
|
124
|
+
exports.TranscriptionSentiment = {
|
|
125
|
+
MIXED: "MIXED",
|
|
126
|
+
NEGATIVE: "NEGATIVE",
|
|
127
|
+
NEUTRAL: "NEUTRAL",
|
|
128
|
+
POSITIVE: "POSITIVE",
|
|
129
|
+
};
|
|
124
130
|
exports.ChannelAccess = {
|
|
125
131
|
PRIVATE: "private",
|
|
126
132
|
PUBLIC: "public",
|
|
@@ -722,6 +722,7 @@ const de_CallTranscriptionChunk = (output, context) => {
|
|
|
722
722
|
'isFinal': smithy_client_1.expectBoolean,
|
|
723
723
|
'language': smithy_client_1.expectString,
|
|
724
724
|
'sentiment': smithy_client_1.expectString,
|
|
725
|
+
'shouldComputeSentiment': smithy_client_1.expectBoolean,
|
|
725
726
|
'speaker': smithy_client_1.expectString,
|
|
726
727
|
'start': smithy_client_1.expectLong,
|
|
727
728
|
'text': smithy_client_1.expectString,
|
|
@@ -115,6 +115,12 @@ export const CallTranscriptionSpeaker = {
|
|
|
115
115
|
CALLEE: "callee",
|
|
116
116
|
CALLER: "caller",
|
|
117
117
|
};
|
|
118
|
+
export const TranscriptionSentiment = {
|
|
119
|
+
MIXED: "MIXED",
|
|
120
|
+
NEGATIVE: "NEGATIVE",
|
|
121
|
+
NEUTRAL: "NEUTRAL",
|
|
122
|
+
POSITIVE: "POSITIVE",
|
|
123
|
+
};
|
|
118
124
|
export const ChannelAccess = {
|
|
119
125
|
PRIVATE: "private",
|
|
120
126
|
PUBLIC: "public",
|
|
@@ -695,6 +695,7 @@ const de_CallTranscriptionChunk = (output, context) => {
|
|
|
695
695
|
'isFinal': __expectBoolean,
|
|
696
696
|
'language': __expectString,
|
|
697
697
|
'sentiment': __expectString,
|
|
698
|
+
'shouldComputeSentiment': __expectBoolean,
|
|
698
699
|
'speaker': __expectString,
|
|
699
700
|
'start': __expectLong,
|
|
700
701
|
'text': __expectString,
|
|
@@ -355,7 +355,8 @@ declare const DescribeEventCommand_base: {
|
|
|
355
355
|
* // start: Number("long"), // required
|
|
356
356
|
* // end: Number("long"), // required
|
|
357
357
|
* // confidence: Number("double"),
|
|
358
|
-
* // sentiment: "
|
|
358
|
+
* // sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL",
|
|
359
|
+
* // shouldComputeSentiment: true || false,
|
|
359
360
|
* // },
|
|
360
361
|
* // participant: {
|
|
361
362
|
* // type: "REMOTE" || "LOCAL", // required
|
|
@@ -558,7 +559,8 @@ declare const DescribeEventCommand_base: {
|
|
|
558
559
|
* // start: Number("long"), // required
|
|
559
560
|
* // end: Number("long"), // required
|
|
560
561
|
* // confidence: Number("double"),
|
|
561
|
-
* // sentiment: "
|
|
562
|
+
* // sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL",
|
|
563
|
+
* // shouldComputeSentiment: true || false,
|
|
562
564
|
* // },
|
|
563
565
|
* // },
|
|
564
566
|
* // },
|
|
@@ -588,7 +590,8 @@ declare const DescribeEventCommand_base: {
|
|
|
588
590
|
* // start: Number("long"), // required
|
|
589
591
|
* // end: Number("long"), // required
|
|
590
592
|
* // confidence: Number("double"),
|
|
591
|
-
* // sentiment: "
|
|
593
|
+
* // sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL",
|
|
594
|
+
* // shouldComputeSentiment: true || false,
|
|
592
595
|
* // },
|
|
593
596
|
* // },
|
|
594
597
|
* // },
|
|
@@ -1114,7 +1117,7 @@ declare const DescribeEventCommand_base: {
|
|
|
1114
1117
|
* // isFinal: true || false, // required
|
|
1115
1118
|
* // start: Number("long"), // required
|
|
1116
1119
|
* // end: Number("long"), // required
|
|
1117
|
-
* // sentiment: "
|
|
1120
|
+
* // sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL",
|
|
1118
1121
|
* // },
|
|
1119
1122
|
* // participant: {
|
|
1120
1123
|
* // type: "EXTERNAL" || "EXTERNAL_DIAL_IN" || "PBX" || "PBX_SIP" || "XBS", // required
|
|
@@ -1227,7 +1230,7 @@ declare const DescribeEventCommand_base: {
|
|
|
1227
1230
|
* // isFinal: true || false, // required
|
|
1228
1231
|
* // start: Number("long"), // required
|
|
1229
1232
|
* // end: Number("long"), // required
|
|
1230
|
-
* // sentiment: "
|
|
1233
|
+
* // sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL",
|
|
1231
1234
|
* // },
|
|
1232
1235
|
* // },
|
|
1233
1236
|
* // },
|
|
@@ -239,7 +239,8 @@ declare const GetOngoingCallTranscriptionCommand_base: {
|
|
|
239
239
|
* // start: Number("long"), // required
|
|
240
240
|
* // end: Number("long"), // required
|
|
241
241
|
* // confidence: Number("double"),
|
|
242
|
-
* // sentiment: "
|
|
242
|
+
* // sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL",
|
|
243
|
+
* // shouldComputeSentiment: true || false,
|
|
243
244
|
* // },
|
|
244
245
|
* // participant: {
|
|
245
246
|
* // type: "REMOTE" || "LOCAL", // required
|
|
@@ -88,7 +88,7 @@ declare const GetOngoingConferenceTranscriptionCommand_base: {
|
|
|
88
88
|
* // isFinal: true || false, // required
|
|
89
89
|
* // start: Number("long"), // required
|
|
90
90
|
* // end: Number("long"), // required
|
|
91
|
-
* // sentiment: "
|
|
91
|
+
* // sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL",
|
|
92
92
|
* // },
|
|
93
93
|
* // participant: {
|
|
94
94
|
* // type: "EXTERNAL" || "EXTERNAL_DIAL_IN" || "PBX" || "PBX_SIP" || "XBS", // required
|
|
@@ -518,6 +518,20 @@ export declare const CallTranscriptionSpeaker: {
|
|
|
518
518
|
* @public
|
|
519
519
|
*/
|
|
520
520
|
export type CallTranscriptionSpeaker = typeof CallTranscriptionSpeaker[keyof typeof CallTranscriptionSpeaker];
|
|
521
|
+
/**
|
|
522
|
+
* @public
|
|
523
|
+
* @enum
|
|
524
|
+
*/
|
|
525
|
+
export declare const TranscriptionSentiment: {
|
|
526
|
+
readonly MIXED: "MIXED";
|
|
527
|
+
readonly NEGATIVE: "NEGATIVE";
|
|
528
|
+
readonly NEUTRAL: "NEUTRAL";
|
|
529
|
+
readonly POSITIVE: "POSITIVE";
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
*/
|
|
534
|
+
export type TranscriptionSentiment = typeof TranscriptionSentiment[keyof typeof TranscriptionSentiment];
|
|
521
535
|
/**
|
|
522
536
|
* @public
|
|
523
537
|
*/
|
|
@@ -535,7 +549,16 @@ export interface CallTranscriptionChunk {
|
|
|
535
549
|
* @public
|
|
536
550
|
*/
|
|
537
551
|
confidence?: number | undefined;
|
|
538
|
-
|
|
552
|
+
/**
|
|
553
|
+
* Sentiment label for a transcription chunk. Shared between calls and conferences.
|
|
554
|
+
* @public
|
|
555
|
+
*/
|
|
556
|
+
sentiment?: TranscriptionSentiment | undefined;
|
|
557
|
+
/**
|
|
558
|
+
* Tristate gate populated upstream from caller/callee user-level licenses. `true` = at least one participant is on a whitelisted tier (currently `business` or `premium`). `false` = both participants are known and neither is whitelisted. Absent or null means upstream had no license info — downstream should fall through and compute sentiment (fail-open) to preserve the pre-feature behaviour.
|
|
559
|
+
* @public
|
|
560
|
+
*/
|
|
561
|
+
shouldComputeSentiment?: boolean | undefined;
|
|
539
562
|
}
|
|
540
563
|
/**
|
|
541
564
|
* @public
|
|
@@ -1254,7 +1277,11 @@ export interface ConferenceTranscriptionChunk {
|
|
|
1254
1277
|
isFinal: boolean;
|
|
1255
1278
|
start: number;
|
|
1256
1279
|
end: number;
|
|
1257
|
-
|
|
1280
|
+
/**
|
|
1281
|
+
* Sentiment label for a transcription chunk. Shared between calls and conferences.
|
|
1282
|
+
* @public
|
|
1283
|
+
*/
|
|
1284
|
+
sentiment?: TranscriptionSentiment | undefined;
|
|
1258
1285
|
}
|
|
1259
1286
|
/**
|
|
1260
1287
|
* @public
|
|
@@ -6297,13 +6324,3 @@ export interface WebsocketPresenceData {
|
|
|
6297
6324
|
export interface WebsocketPresenceDataList {
|
|
6298
6325
|
member?: WebsocketPresenceData | undefined;
|
|
6299
6326
|
}
|
|
6300
|
-
/**
|
|
6301
|
-
* @public
|
|
6302
|
-
*/
|
|
6303
|
-
export interface WebsocketPresenceBroadcastEvent {
|
|
6304
|
-
event: WebsocketEvent;
|
|
6305
|
-
topic: WebsocketTopic;
|
|
6306
|
-
delta?: WebsocketPresenceData | undefined;
|
|
6307
|
-
data?: WebsocketPresenceDataList | undefined;
|
|
6308
|
-
meta?: __DocumentType | undefined;
|
|
6309
|
-
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
|
|
2
|
-
import { CallAnalyticsCostRecordEvent, CallAnalyticsLiveCompleteEvent, CallAnalyticsLiveInterruptedEvent, CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, CallAnalyticsRecordEvent, CallAnalyticsTranscriptionRecordEvent, CallEventType, ChatAnalyticsLiveCompleteEvent, ChatAnalyticsLiveInterruptedEvent, ChatAnalyticsLiveProgressEvent, ChatAnalyticsLiveTranscriptionEvent, ChatAnalyticsManagerMissedEvent, ChatAnalyticsRecordEvent, ChatAnalyticsTranscriptionRecordEvent, ChatEventType, ConferenceAnalyticsLiveCompleteEvent, ConferenceAnalyticsLiveInterruptedEvent, ConferenceAnalyticsLiveJoinEvent, ConferenceAnalyticsLiveLeaveEvent, ConferenceAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveTranscriptionEvent, ConferenceAnalyticsRecordEvent, ConferenceAnalyticsTranscriptionRecordEvent, ConferenceEventType, PresenceAnalyticsConferenceEvent, PresenceAnalyticsStatusEvent, PresenceAnalyticsTelephonyEvent, PresenceEventType, ServiceAnalyticsLiveCompleteEvent, ServiceAnalyticsLiveProgressEvent, ServiceCallAnalyticsLiveCompleteEvent, ServiceCallAnalyticsLiveProgressEvent, ServiceCallEventType, ServiceEventType, WebhookCallCompletedEvent, WebhookCallLiveCompletedEvent, WebhookCallLiveInterruptedEvent, WebhookCallLiveProgressEvent, WebhookCallLiveRecordPauseEvent, WebhookCallLiveRecordStartEvent, WebhookCallLiveRecordStopEvent, WebhookCallLiveRecordUnpauseEvent, WebhookCallLiveTranscriptionEvent, WebhookCallSummaryCompletedEvent, WebhookCallTranscriptionCompletedEvent, WebhookCallTranscriptionTextCompletedEvent, WebhookChatCompletedEvent, WebhookChatLiveCompletedEvent, WebhookChatLiveInterruptedEvent, WebhookChatLiveProgressEvent, WebhookChatManagerMissedEvent, WebhookChatSummaryCompletedEvent, WebhookConferenceCompletedEvent, WebhookConferenceLiveCompletedEvent, WebhookConferenceLiveInterruptedEvent, WebhookConferenceLiveJoinEvent, WebhookConferenceLiveLeaveEvent, WebhookConferenceLiveProgressEvent, WebhookConferenceLiveTranscriptionEvent, WebhookConferenceSummaryCompletedEvent, WebhookConferenceTranscriptionCompletedEvent, WebhookConferenceTranscriptionTextCompletedEvent, WebhookOutdatedCallEndEvent, WebhookOutdatedCallStartEvent, WebhookOutdatedCallUpdateEvent, WebhookPresenceConferenceEvent, WebhookPresenceTelephonyEvent, WebhookPresenceUserEvent, WebhookSmsStatusEvent, WebsocketAuthorizeBadRequestException, WebsocketAuthorizedEvent, WebsocketConversationsBroadcastEvent, WebsocketEvent,
|
|
2
|
+
import { CallAnalyticsCostRecordEvent, CallAnalyticsLiveCompleteEvent, CallAnalyticsLiveInterruptedEvent, CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, CallAnalyticsRecordEvent, CallAnalyticsTranscriptionRecordEvent, CallEventType, ChatAnalyticsLiveCompleteEvent, ChatAnalyticsLiveInterruptedEvent, ChatAnalyticsLiveProgressEvent, ChatAnalyticsLiveTranscriptionEvent, ChatAnalyticsManagerMissedEvent, ChatAnalyticsRecordEvent, ChatAnalyticsTranscriptionRecordEvent, ChatEventType, ConferenceAnalyticsLiveCompleteEvent, ConferenceAnalyticsLiveInterruptedEvent, ConferenceAnalyticsLiveJoinEvent, ConferenceAnalyticsLiveLeaveEvent, ConferenceAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveTranscriptionEvent, ConferenceAnalyticsRecordEvent, ConferenceAnalyticsTranscriptionRecordEvent, ConferenceEventType, PresenceAnalyticsConferenceEvent, PresenceAnalyticsStatusEvent, PresenceAnalyticsTelephonyEvent, PresenceEventType, ServiceAnalyticsLiveCompleteEvent, ServiceAnalyticsLiveProgressEvent, ServiceCallAnalyticsLiveCompleteEvent, ServiceCallAnalyticsLiveProgressEvent, ServiceCallEventType, ServiceEventType, WebhookCallCompletedEvent, WebhookCallLiveCompletedEvent, WebhookCallLiveInterruptedEvent, WebhookCallLiveProgressEvent, WebhookCallLiveRecordPauseEvent, WebhookCallLiveRecordStartEvent, WebhookCallLiveRecordStopEvent, WebhookCallLiveRecordUnpauseEvent, WebhookCallLiveTranscriptionEvent, WebhookCallSummaryCompletedEvent, WebhookCallTranscriptionCompletedEvent, WebhookCallTranscriptionTextCompletedEvent, WebhookChatCompletedEvent, WebhookChatLiveCompletedEvent, WebhookChatLiveInterruptedEvent, WebhookChatLiveProgressEvent, WebhookChatManagerMissedEvent, WebhookChatSummaryCompletedEvent, WebhookConferenceCompletedEvent, WebhookConferenceLiveCompletedEvent, WebhookConferenceLiveInterruptedEvent, WebhookConferenceLiveJoinEvent, WebhookConferenceLiveLeaveEvent, WebhookConferenceLiveProgressEvent, WebhookConferenceLiveTranscriptionEvent, WebhookConferenceSummaryCompletedEvent, WebhookConferenceTranscriptionCompletedEvent, WebhookConferenceTranscriptionTextCompletedEvent, WebhookOutdatedCallEndEvent, WebhookOutdatedCallStartEvent, WebhookOutdatedCallUpdateEvent, WebhookPresenceConferenceEvent, WebhookPresenceTelephonyEvent, WebhookPresenceUserEvent, WebhookSmsStatusEvent, WebsocketAuthorizeBadRequestException, WebsocketAuthorizedEvent, WebsocketConversationsBroadcastEvent, WebsocketEvent, WebsocketPresenceData, WebsocketPresenceDataList, WebsocketSubscribeAction, WebsocketTopic, WebsocketUnsubscribeAction } from "./models_0";
|
|
3
3
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
4
4
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface WebsocketPresenceBroadcastEvent {
|
|
9
|
+
event: WebsocketEvent;
|
|
10
|
+
topic: WebsocketTopic;
|
|
11
|
+
delta?: WebsocketPresenceData | undefined;
|
|
12
|
+
data?: WebsocketPresenceDataList | undefined;
|
|
13
|
+
meta?: __DocumentType | undefined;
|
|
14
|
+
}
|
|
5
15
|
/**
|
|
6
16
|
* @public
|
|
7
17
|
*/
|
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.1.
|
|
4
|
+
"version": "1.1.55",
|
|
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",
|