@wildix/wda-stream-client 1.1.69 → 1.1.71

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.
@@ -1439,6 +1439,62 @@ export interface TranscriptionTextChunk {
1439
1439
  time: string;
1440
1440
  offset: number;
1441
1441
  }
1442
+ /**
1443
+ * @public
1444
+ * @enum
1445
+ */
1446
+ export declare const InsightsStatus: {
1447
+ readonly FAILED: "FAILED";
1448
+ readonly NONE: "NONE";
1449
+ readonly SCHEDULED: "SCHEDULED";
1450
+ readonly STARTED: "STARTED";
1451
+ readonly SUCCEEDED: "SUCCEEDED";
1452
+ readonly UNAVAILABLE: "UNAVAILABLE";
1453
+ };
1454
+ /**
1455
+ * @public
1456
+ */
1457
+ export type InsightsStatus = typeof InsightsStatus[keyof typeof InsightsStatus];
1458
+ /**
1459
+ * @public
1460
+ */
1461
+ export interface ProjectionInsightsField {
1462
+ id: string;
1463
+ name: string;
1464
+ value: __DocumentType;
1465
+ }
1466
+ /**
1467
+ * @public
1468
+ * @enum
1469
+ */
1470
+ export declare const InsightsReason: {
1471
+ readonly CONDITIONS_NOT_MATCH: "CONDITIONS_NOT_MATCH";
1472
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
1473
+ readonly TRANSCRIPTION_TOO_SMALL: "TRANSCRIPTION_TOO_SMALL";
1474
+ };
1475
+ /**
1476
+ * @public
1477
+ */
1478
+ export type InsightsReason = typeof InsightsReason[keyof typeof InsightsReason];
1479
+ /**
1480
+ * @public
1481
+ */
1482
+ export interface ProjectionInsights {
1483
+ id: string;
1484
+ /**
1485
+ * A version of projection that was used to generate the insights.
1486
+ * @public
1487
+ */
1488
+ version: number;
1489
+ name: string;
1490
+ status: InsightsStatus;
1491
+ /**
1492
+ * Additional information to the status field which describes the reason behind the status.
1493
+ * @public
1494
+ */
1495
+ reason?: InsightsReason | undefined;
1496
+ fields: (ProjectionInsightsField)[];
1497
+ }
1442
1498
  /**
1443
1499
  * @public
1444
1500
  */
@@ -6838,6 +6894,7 @@ export interface WebhookCallAnnotationsCompletedEventData {
6838
6894
  export declare const WebhookEventType: {
6839
6895
  readonly CALL_ANNOTATIONS_COMPLETED: "call:annotations:completed";
6840
6896
  readonly CALL_COMPLETED: "call:completed";
6897
+ readonly CALL_INSIGHTS_COMPLETED: "call:insights:completed";
6841
6898
  readonly CALL_LIVE_ANNOTATION: "call:live:annotation";
6842
6899
  readonly CALL_LIVE_COMPLETED: "call:live:completed";
6843
6900
  readonly CALL_LIVE_INTERRUPTED: "call:live:interrupted";
@@ -6852,6 +6909,7 @@ export declare const WebhookEventType: {
6852
6909
  readonly CALL_TRANSCRIPTION_TEXT_COMPLETED: "call:transcription:text:completed";
6853
6910
  readonly CHAT_ANNOTATIONS_COMPLETED: "chat:annotations:completed";
6854
6911
  readonly CHAT_COMPLETED: "chat:completed";
6912
+ readonly CHAT_INSIGHTS_COMPLETED: "chat:insights:completed";
6855
6913
  readonly CHAT_LIVE_ANNOTATION: "chat:live:annotation";
6856
6914
  readonly CHAT_LIVE_COMPLETED: "chat:live:completed";
6857
6915
  readonly CHAT_LIVE_INTERRUPTED: "chat:live:interrupted";
@@ -6861,6 +6919,7 @@ export declare const WebhookEventType: {
6861
6919
  readonly CHAT_SUMMARY_COMPLETED: "chat:summary:completed";
6862
6920
  readonly CONFERENCE_ANNOTATIONS_COMPLETED: "conference:annotations:completed";
6863
6921
  readonly CONFERENCE_COMPLETED: "conference:completed";
6922
+ readonly CONFERENCE_INSIGHTS_COMPLETED: "conference:insights:completed";
6864
6923
  readonly CONFERENCE_LIVE_ANNOTATION: "conference:live:annotation";
6865
6924
  readonly CONFERENCE_LIVE_COMPLETED: "conference:live:completed";
6866
6925
  readonly CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted";
@@ -6909,6 +6968,25 @@ export interface WebhookCallCompletedEvent {
6909
6968
  integrationId: string;
6910
6969
  data: CallAnalyticsRecordEvent;
6911
6970
  }
6971
+ /**
6972
+ * @public
6973
+ */
6974
+ export interface WebhookCallInsightsCompletedEventData {
6975
+ call: CallRecord;
6976
+ insights: (ProjectionInsights)[];
6977
+ }
6978
+ /**
6979
+ * @public
6980
+ */
6981
+ export interface WebhookCallInsightsCompletedEvent {
6982
+ id: string;
6983
+ pbx?: string | undefined;
6984
+ company?: string | undefined;
6985
+ type: WebhookEventType;
6986
+ time: number;
6987
+ integrationId: string;
6988
+ data: WebhookCallInsightsCompletedEventData;
6989
+ }
6912
6990
  /**
6913
6991
  * @public
6914
6992
  */
@@ -7074,70 +7152,3 @@ export interface WebhookCallTranscriptionTextCompletedEvent {
7074
7152
  integrationId: string;
7075
7153
  data: WebhookCallTranscriptionTextCompletedEventData;
7076
7154
  }
7077
- /**
7078
- * @public
7079
- */
7080
- export interface WebhookChatAnnotationsCompletedEventData {
7081
- chat: ChatRecord;
7082
- annotations: (Annotation)[];
7083
- }
7084
- /**
7085
- * @public
7086
- */
7087
- export interface WebhookChatAnnotationsCompletedEvent {
7088
- id: string;
7089
- pbx?: string | undefined;
7090
- company?: string | undefined;
7091
- type: WebhookEventType;
7092
- time: number;
7093
- integrationId: string;
7094
- data: WebhookChatAnnotationsCompletedEventData;
7095
- }
7096
- /**
7097
- * @public
7098
- */
7099
- export interface WebhookChatCompletedEvent {
7100
- id: string;
7101
- pbx?: string | undefined;
7102
- company?: string | undefined;
7103
- type: WebhookEventType;
7104
- time: number;
7105
- integrationId: string;
7106
- data: ChatAnalyticsRecordEvent;
7107
- }
7108
- /**
7109
- * @public
7110
- */
7111
- export interface WebhookChatLiveAnnotationEvent {
7112
- id: string;
7113
- pbx?: string | undefined;
7114
- company?: string | undefined;
7115
- type: WebhookEventType;
7116
- time: number;
7117
- integrationId: string;
7118
- data: ChatAnalyticsLiveAnnotationEvent;
7119
- }
7120
- /**
7121
- * @public
7122
- */
7123
- export interface WebhookChatLiveCompletedEvent {
7124
- id: string;
7125
- pbx?: string | undefined;
7126
- company?: string | undefined;
7127
- type: WebhookEventType;
7128
- time: number;
7129
- integrationId: string;
7130
- data: ChatAnalyticsLiveCompleteEvent;
7131
- }
7132
- /**
7133
- * @public
7134
- */
7135
- export interface WebhookChatLiveInterruptedEvent {
7136
- id: string;
7137
- pbx?: string | undefined;
7138
- company?: string | undefined;
7139
- type: WebhookEventType;
7140
- time: number;
7141
- integrationId: string;
7142
- data: ChatAnalyticsLiveInterruptedEvent;
7143
- }
@@ -1,7 +1,93 @@
1
1
  import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
2
- import { Annotation, CallAnalyticsAnnotationsRecordEvent, CallAnalyticsCostRecordEvent, CallAnalyticsLiveAnnotationEvent, CallAnalyticsLiveCompleteEvent, CallAnalyticsLiveInterruptedEvent, CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, CallAnalyticsRecordEvent, CallAnalyticsTranscriptionRecordEvent, CallDevice, CallEventType, ChatAnalyticsAnnotationsRecordEvent, ChatAnalyticsLiveAnnotationEvent, ChatAnalyticsLiveCompleteEvent, ChatAnalyticsLiveInterruptedEvent, ChatAnalyticsLiveProgressEvent, ChatAnalyticsLiveTranscriptionEvent, ChatAnalyticsManagerMissedEvent, ChatAnalyticsRecordEvent, ChatAnalyticsTranscriptionRecordEvent, ChatEventType, ChatRecord, ConferenceAnalyticsAnnotationsRecordEvent, ConferenceAnalyticsLiveAnnotationEvent, ConferenceAnalyticsLiveCompleteEvent, ConferenceAnalyticsLiveInterruptedEvent, ConferenceAnalyticsLiveJoinEvent, ConferenceAnalyticsLiveLeaveEvent, ConferenceAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveTranscriptionEvent, ConferenceAnalyticsRecordEvent, ConferenceAnalyticsTranscriptionRecordEvent, ConferenceEventType, ConferenceParticipant, ConferenceRecord, PresenceAnalyticsConferenceEvent, PresenceAnalyticsStatusEvent, PresenceAnalyticsTelephonyEvent, PresenceEventType, ServiceAgentsStatusAnalyticsRecordEvent, ServiceAnalyticsLiveCompleteEvent, ServiceAnalyticsLiveProgressEvent, ServiceCallAnalyticsLiveCompleteEvent, ServiceCallAnalyticsLiveProgressEvent, ServiceCallAnalyticsRecordEvent, ServiceCallEventType, ServiceEventType, SmsStatusConsumeEventData, TranscriptionSummary, TranscriptionTextChunk, WebhookCallAnnotationsCompletedEvent, WebhookCallCompletedEvent, WebhookCallLiveAnnotationEvent, WebhookCallLiveCompletedEvent, WebhookCallLiveInterruptedEvent, WebhookCallLiveProgressEvent, WebhookCallLiveRecordPauseEvent, WebhookCallLiveRecordStartEvent, WebhookCallLiveRecordStopEvent, WebhookCallLiveRecordUnpauseEvent, WebhookCallLiveTranscriptionEvent, WebhookCallSummaryCompletedEvent, WebhookCallTranscriptionCompletedEvent, WebhookCallTranscriptionTextCompletedEvent, WebhookChatAnnotationsCompletedEvent, WebhookChatCompletedEvent, WebhookChatLiveAnnotationEvent, WebhookChatLiveCompletedEvent, WebhookChatLiveInterruptedEvent, WebhookEventType, WebsocketAuthorizeAction, WebsocketSubscribeAction, WebsocketTopic, WebsocketUnsubscribeAction } from "./models_0";
2
+ import { Annotation, CallAnalyticsAnnotationsRecordEvent, CallAnalyticsCostRecordEvent, CallAnalyticsLiveAnnotationEvent, CallAnalyticsLiveCompleteEvent, CallAnalyticsLiveInterruptedEvent, CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, CallAnalyticsRecordEvent, CallAnalyticsTranscriptionRecordEvent, CallDevice, CallEventType, ChatAnalyticsAnnotationsRecordEvent, ChatAnalyticsLiveAnnotationEvent, ChatAnalyticsLiveCompleteEvent, ChatAnalyticsLiveInterruptedEvent, ChatAnalyticsLiveProgressEvent, ChatAnalyticsLiveTranscriptionEvent, ChatAnalyticsManagerMissedEvent, ChatAnalyticsRecordEvent, ChatAnalyticsTranscriptionRecordEvent, ChatEventType, ChatRecord, ConferenceAnalyticsAnnotationsRecordEvent, ConferenceAnalyticsLiveAnnotationEvent, ConferenceAnalyticsLiveCompleteEvent, ConferenceAnalyticsLiveInterruptedEvent, ConferenceAnalyticsLiveJoinEvent, ConferenceAnalyticsLiveLeaveEvent, ConferenceAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveTranscriptionEvent, ConferenceAnalyticsRecordEvent, ConferenceAnalyticsTranscriptionRecordEvent, ConferenceEventType, ConferenceParticipant, ConferenceRecord, PresenceAnalyticsConferenceEvent, PresenceAnalyticsStatusEvent, PresenceAnalyticsTelephonyEvent, PresenceEventType, ProjectionInsights, ServiceAgentsStatusAnalyticsRecordEvent, ServiceAnalyticsLiveCompleteEvent, ServiceAnalyticsLiveProgressEvent, ServiceCallAnalyticsLiveCompleteEvent, ServiceCallAnalyticsLiveProgressEvent, ServiceCallAnalyticsRecordEvent, ServiceCallEventType, ServiceEventType, SmsStatusConsumeEventData, TranscriptionSummary, TranscriptionTextChunk, WebhookCallAnnotationsCompletedEvent, WebhookCallCompletedEvent, WebhookCallInsightsCompletedEvent, WebhookCallLiveAnnotationEvent, WebhookCallLiveCompletedEvent, WebhookCallLiveInterruptedEvent, WebhookCallLiveProgressEvent, WebhookCallLiveRecordPauseEvent, WebhookCallLiveRecordStartEvent, WebhookCallLiveRecordStopEvent, WebhookCallLiveRecordUnpauseEvent, WebhookCallLiveTranscriptionEvent, WebhookCallSummaryCompletedEvent, WebhookCallTranscriptionCompletedEvent, WebhookCallTranscriptionTextCompletedEvent, WebhookEventType, WebsocketAuthorizeAction, 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 WebhookChatAnnotationsCompletedEventData {
9
+ chat: ChatRecord;
10
+ annotations: (Annotation)[];
11
+ }
12
+ /**
13
+ * @public
14
+ */
15
+ export interface WebhookChatAnnotationsCompletedEvent {
16
+ id: string;
17
+ pbx?: string | undefined;
18
+ company?: string | undefined;
19
+ type: WebhookEventType;
20
+ time: number;
21
+ integrationId: string;
22
+ data: WebhookChatAnnotationsCompletedEventData;
23
+ }
24
+ /**
25
+ * @public
26
+ */
27
+ export interface WebhookChatCompletedEvent {
28
+ id: string;
29
+ pbx?: string | undefined;
30
+ company?: string | undefined;
31
+ type: WebhookEventType;
32
+ time: number;
33
+ integrationId: string;
34
+ data: ChatAnalyticsRecordEvent;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface WebhookChatInsightsCompletedEventData {
40
+ chat: ChatRecord;
41
+ insights: (ProjectionInsights)[];
42
+ }
43
+ /**
44
+ * @public
45
+ */
46
+ export interface WebhookChatInsightsCompletedEvent {
47
+ id: string;
48
+ pbx?: string | undefined;
49
+ company?: string | undefined;
50
+ type: WebhookEventType;
51
+ time: number;
52
+ integrationId: string;
53
+ data: WebhookChatInsightsCompletedEventData;
54
+ }
55
+ /**
56
+ * @public
57
+ */
58
+ export interface WebhookChatLiveAnnotationEvent {
59
+ id: string;
60
+ pbx?: string | undefined;
61
+ company?: string | undefined;
62
+ type: WebhookEventType;
63
+ time: number;
64
+ integrationId: string;
65
+ data: ChatAnalyticsLiveAnnotationEvent;
66
+ }
67
+ /**
68
+ * @public
69
+ */
70
+ export interface WebhookChatLiveCompletedEvent {
71
+ id: string;
72
+ pbx?: string | undefined;
73
+ company?: string | undefined;
74
+ type: WebhookEventType;
75
+ time: number;
76
+ integrationId: string;
77
+ data: ChatAnalyticsLiveCompleteEvent;
78
+ }
79
+ /**
80
+ * @public
81
+ */
82
+ export interface WebhookChatLiveInterruptedEvent {
83
+ id: string;
84
+ pbx?: string | undefined;
85
+ company?: string | undefined;
86
+ type: WebhookEventType;
87
+ time: number;
88
+ integrationId: string;
89
+ data: ChatAnalyticsLiveInterruptedEvent;
90
+ }
5
91
  /**
6
92
  * @public
7
93
  */
@@ -76,6 +162,25 @@ export interface WebhookConferenceCompletedEvent {
76
162
  integrationId: string;
77
163
  data: ConferenceAnalyticsRecordEvent;
78
164
  }
165
+ /**
166
+ * @public
167
+ */
168
+ export interface WebhookConferenceInsightsCompletedEventData {
169
+ conference: ConferenceRecord;
170
+ insights: (ProjectionInsights)[];
171
+ }
172
+ /**
173
+ * @public
174
+ */
175
+ export interface WebhookConferenceInsightsCompletedEvent {
176
+ id: string;
177
+ pbx?: string | undefined;
178
+ company?: string | undefined;
179
+ type: WebhookEventType;
180
+ time: number;
181
+ integrationId: string;
182
+ data: WebhookConferenceInsightsCompletedEventData;
183
+ }
79
184
  /**
80
185
  * @public
81
186
  */
@@ -596,6 +701,7 @@ export interface DescribeEventOutput {
596
701
  WebhookCallTranscriptionCompletedEvent?: WebhookCallTranscriptionCompletedEvent | undefined;
597
702
  WebhookCallTranscriptionTextCompletedEvent?: WebhookCallTranscriptionTextCompletedEvent | undefined;
598
703
  WebhookCallAnnotationsCompletedEvent?: WebhookCallAnnotationsCompletedEvent | undefined;
704
+ WebhookCallInsightsCompletedEvent?: WebhookCallInsightsCompletedEvent | undefined;
599
705
  WebhookCallSummaryCompletedEvent?: WebhookCallSummaryCompletedEvent | undefined;
600
706
  WebhookConferenceLiveProgressEvent?: WebhookConferenceLiveProgressEvent | undefined;
601
707
  WebhookConferenceLiveCompletedEvent?: WebhookConferenceLiveCompletedEvent | undefined;
@@ -608,6 +714,7 @@ export interface DescribeEventOutput {
608
714
  WebhookConferenceTranscriptionCompletedEvent?: WebhookConferenceTranscriptionCompletedEvent | undefined;
609
715
  WebhookConferenceTranscriptionTextCompletedEvent?: WebhookConferenceTranscriptionTextCompletedEvent | undefined;
610
716
  WebhookConferenceAnnotationsCompletedEvent?: WebhookConferenceAnnotationsCompletedEvent | undefined;
717
+ WebhookConferenceInsightsCompletedEvent?: WebhookConferenceInsightsCompletedEvent | undefined;
611
718
  WebhookConferenceSummaryCompletedEvent?: WebhookConferenceSummaryCompletedEvent | undefined;
612
719
  WebhookServiceCallLiveProgressEvent?: WebhookServiceCallLiveProgressEvent | undefined;
613
720
  WebhookServiceCallLiveCompletedEvent?: WebhookServiceCallLiveCompletedEvent | undefined;
@@ -618,6 +725,7 @@ export interface DescribeEventOutput {
618
725
  WebhookChatManagerMissedEvent?: WebhookChatManagerMissedEvent | undefined;
619
726
  WebhookChatCompletedEvent?: WebhookChatCompletedEvent | undefined;
620
727
  WebhookChatAnnotationsCompletedEvent?: WebhookChatAnnotationsCompletedEvent | undefined;
728
+ WebhookChatInsightsCompletedEvent?: WebhookChatInsightsCompletedEvent | undefined;
621
729
  WebhookChatSummaryCompletedEvent?: WebhookChatSummaryCompletedEvent | undefined;
622
730
  WebhookOutdatedCallStartEvent?: WebhookOutdatedCallStartEvent | undefined;
623
731
  WebhookOutdatedCallUpdateEvent?: WebhookOutdatedCallUpdateEvent | undefined;
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: WdaStreamClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
- requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
12
+ requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
13
13
  retryMode: string | import("@smithy/types").Provider<string>;
14
14
  sha256: import("@smithy/types").HashConstructor;
15
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: WdaStreamClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
- requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
12
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
13
13
  retryMode: string | import("@smithy/types").Provider<string>;
14
14
  sha256: import("@smithy/types").HashConstructor;
15
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: WdaStreamClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  env?: "stage" | "stable" | "prod" | undefined;
9
9
  token: import("@wildix/smithy-utils").TokenProvider;
10
- requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  cacheMiddleware?: boolean | undefined;
12
12
  protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
13
13
  protocolSettings?: {
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.69",
4
+ "version": "1.1.71",
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",
@@ -80,4 +80,4 @@
80
80
  "react-native": {
81
81
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
82
82
  }
83
- }
83
+ }