@wildix/wda-history-client 1.2.24 → 1.2.26

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 (32) hide show
  1. package/dist-cjs/WdaHistory.js +6 -0
  2. package/dist-cjs/commands/GetCallAnnotationsCommand.js +21 -0
  3. package/dist-cjs/commands/GetChatAnnotationsCommand.js +21 -0
  4. package/dist-cjs/commands/GetConferenceAnnotationsCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/models/models_0.js +80 -13
  7. package/dist-cjs/protocols/Aws_restJson1.js +222 -2
  8. package/dist-es/WdaHistory.js +6 -0
  9. package/dist-es/commands/GetCallAnnotationsCommand.js +17 -0
  10. package/dist-es/commands/GetChatAnnotationsCommand.js +17 -0
  11. package/dist-es/commands/GetConferenceAnnotationsCommand.js +17 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/models/models_0.js +75 -12
  14. package/dist-es/protocols/Aws_restJson1.js +217 -3
  15. package/dist-types/WdaHistory.d.ts +21 -0
  16. package/dist-types/WdaHistoryClient.d.ts +5 -2
  17. package/dist-types/commands/GetCallAnnotationsCommand.d.ts +115 -0
  18. package/dist-types/commands/GetCallCommand.d.ts +2 -1
  19. package/dist-types/commands/GetCallTranscriptionCommand.d.ts +1 -2
  20. package/dist-types/commands/GetChatAnnotationsCommand.d.ts +108 -0
  21. package/dist-types/commands/GetChatCommand.d.ts +2 -1
  22. package/dist-types/commands/GetChatTranscriptionCommand.d.ts +1 -1
  23. package/dist-types/commands/GetConferenceAnnotationsCommand.d.ts +107 -0
  24. package/dist-types/commands/GetConferenceCommand.d.ts +2 -1
  25. package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +1 -1
  26. package/dist-types/commands/QueryConversationsCommand.d.ts +4 -2
  27. package/dist-types/commands/QueryUserCallsCommand.d.ts +2 -1
  28. package/dist-types/commands/UpdateCallCommand.d.ts +2 -1
  29. package/dist-types/commands/index.d.ts +3 -0
  30. package/dist-types/models/models_0.d.ts +289 -33
  31. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  32. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { WdaHistoryServiceException as __BaseException } from "./WdaHistoryServiceException";
2
2
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
3
+ import { DocumentType as __DocumentType } from "@smithy/types";
3
4
  /**
4
5
  * @public
5
6
  */
@@ -62,6 +63,184 @@ export interface TemplateWithParameters {
62
63
  name: string;
63
64
  parameters?: (TemplateParameter)[] | undefined;
64
65
  }
66
+ /**
67
+ * @public
68
+ */
69
+ export declare class CallAnnotationsNotFoundException extends __BaseException {
70
+ readonly name: "CallAnnotationsNotFoundException";
71
+ readonly $fault: "client";
72
+ /**
73
+ * @internal
74
+ */
75
+ constructor(opts: __ExceptionOptionType<CallAnnotationsNotFoundException, __BaseException>);
76
+ }
77
+ /**
78
+ * Tool result captured for an annotation. Runtime services enforce serialized payload size limits.
79
+ * @public
80
+ */
81
+ export interface AnnotationResultValue {
82
+ value: __DocumentType;
83
+ }
84
+ /**
85
+ * Capability variable values captured for an annotation. Runtime services enforce serialized payload size limits.
86
+ * @public
87
+ */
88
+ export interface AnnotationVariablesValue {
89
+ value: __DocumentType;
90
+ }
91
+ /**
92
+ * @public
93
+ */
94
+ export type AnnotationPayload = AnnotationPayload.ResultMember | AnnotationPayload.TagMember | AnnotationPayload.TextMember | AnnotationPayload.VariablesMember | AnnotationPayload.$UnknownMember;
95
+ /**
96
+ * @public
97
+ */
98
+ export declare namespace AnnotationPayload {
99
+ interface TagMember {
100
+ tag: string;
101
+ text?: never;
102
+ variables?: never;
103
+ result?: never;
104
+ $unknown?: never;
105
+ }
106
+ interface TextMember {
107
+ tag?: never;
108
+ text: string;
109
+ variables?: never;
110
+ result?: never;
111
+ $unknown?: never;
112
+ }
113
+ /**
114
+ * Capability variable values captured for an annotation. Runtime services enforce serialized payload size limits.
115
+ * @public
116
+ */
117
+ interface VariablesMember {
118
+ tag?: never;
119
+ text?: never;
120
+ variables: AnnotationVariablesValue;
121
+ result?: never;
122
+ $unknown?: never;
123
+ }
124
+ /**
125
+ * Tool result captured for an annotation. Runtime services enforce serialized payload size limits.
126
+ * @public
127
+ */
128
+ interface ResultMember {
129
+ tag?: never;
130
+ text?: never;
131
+ variables?: never;
132
+ result: AnnotationResultValue;
133
+ $unknown?: never;
134
+ }
135
+ /**
136
+ * @public
137
+ */
138
+ interface $UnknownMember {
139
+ tag?: never;
140
+ text?: never;
141
+ variables?: never;
142
+ result?: never;
143
+ $unknown: [string, any];
144
+ }
145
+ interface Visitor<T> {
146
+ tag: (value: string) => T;
147
+ text: (value: string) => T;
148
+ variables: (value: AnnotationVariablesValue) => T;
149
+ result: (value: AnnotationResultValue) => T;
150
+ _: (name: string, value: any) => T;
151
+ }
152
+ const visit: <T>(value: AnnotationPayload, visitor: Visitor<T>) => T;
153
+ }
154
+ /**
155
+ * @public
156
+ * @enum
157
+ */
158
+ export declare const AnnotationSourceType: {
159
+ readonly CHATBOT: "chatbot";
160
+ readonly SYSTEM: "system";
161
+ readonly USER: "user";
162
+ readonly VOICEBOT: "voicebot";
163
+ };
164
+ /**
165
+ * @public
166
+ */
167
+ export type AnnotationSourceType = typeof AnnotationSourceType[keyof typeof AnnotationSourceType];
168
+ /**
169
+ * Producer of an annotation. Generic identifiers allow callers to attach context such as tool id/name, user id/name, etc., without constraining the source type to a fixed shape.
170
+ * @public
171
+ */
172
+ export interface AnnotationSource {
173
+ type: AnnotationSourceType;
174
+ /**
175
+ * Stable identifier of the producer (e.g. tool id, user id).
176
+ * @public
177
+ */
178
+ id?: string | undefined;
179
+ /**
180
+ * Human-readable name of the producer (e.g. tool name, user display name).
181
+ * @public
182
+ */
183
+ name?: string | undefined;
184
+ }
185
+ /**
186
+ * @public
187
+ */
188
+ export interface Annotation {
189
+ id: string;
190
+ time: number;
191
+ payload: AnnotationPayload;
192
+ /**
193
+ * Producer of an annotation. Generic identifiers allow callers to attach context such as tool id/name, user id/name, etc., without constraining the source type to a fixed shape.
194
+ * @public
195
+ */
196
+ source: AnnotationSource;
197
+ }
198
+ /**
199
+ * @public
200
+ * @enum
201
+ */
202
+ export declare const License: {
203
+ readonly UC: "uc";
204
+ readonly XBEES: "x-bees";
205
+ };
206
+ /**
207
+ * @public
208
+ */
209
+ export type License = typeof License[keyof typeof License];
210
+ /**
211
+ * @public
212
+ * @enum
213
+ */
214
+ export declare const RecordType: {
215
+ readonly CALL: "call";
216
+ readonly CALL_ANNOTATIONS: "call_annotations";
217
+ readonly CALL_TRANSCRIPTION: "call_transcription";
218
+ readonly CHAT: "chat";
219
+ readonly CHAT_ANNOTATIONS: "chat_annotations";
220
+ readonly CHAT_TRANSCRIPTION: "chat_transcription";
221
+ readonly CONFERENCE: "conference";
222
+ readonly CONFERENCE_ANNOTATIONS: "conference_annotations";
223
+ readonly CONFERENCE_TRANSCRIPTION: "conference_transcription";
224
+ };
225
+ /**
226
+ * @public
227
+ */
228
+ export type RecordType = typeof RecordType[keyof typeof RecordType];
229
+ /**
230
+ * @public
231
+ */
232
+ export interface CallAnnotationsRecord {
233
+ id: string;
234
+ pbx: string;
235
+ time: number;
236
+ company: string;
237
+ licenses: (License)[];
238
+ type: RecordType;
239
+ flowIndex: number;
240
+ flowStartTime: number;
241
+ callStartTime: number;
242
+ annotations: (Annotation)[];
243
+ }
65
244
  /**
66
245
  * @public
67
246
  */
@@ -73,6 +252,18 @@ export declare class CallNotFoundException extends __BaseException {
73
252
  */
74
253
  constructor(opts: __ExceptionOptionType<CallNotFoundException, __BaseException>);
75
254
  }
255
+ /**
256
+ * @public
257
+ * @enum
258
+ */
259
+ export declare const AnnotationsStatus: {
260
+ readonly AVAILABLE: "AVAILABLE";
261
+ readonly UNAVAILABLE: "UNAVAILABLE";
262
+ };
263
+ /**
264
+ * @public
265
+ */
266
+ export type AnnotationsStatus = typeof AnnotationsStatus[keyof typeof AnnotationsStatus];
76
267
  /**
77
268
  * @public
78
269
  */
@@ -306,18 +497,6 @@ export interface CallParticipant {
306
497
  */
307
498
  location?: string | undefined;
308
499
  }
309
- /**
310
- * @public
311
- * @enum
312
- */
313
- export declare const License: {
314
- readonly UC: "uc";
315
- readonly XBEES: "x-bees";
316
- };
317
- /**
318
- * @public
319
- */
320
- export type License = typeof License[keyof typeof License];
321
500
  /**
322
501
  * @public
323
502
  */
@@ -338,22 +517,6 @@ export declare const CallFlowTranscriptionStatus: {
338
517
  * @public
339
518
  */
340
519
  export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
341
- /**
342
- * @public
343
- * @enum
344
- */
345
- export declare const RecordType: {
346
- readonly CALL: "call";
347
- readonly CALL_TRANSCRIPTION: "call_transcription";
348
- readonly CHAT: "chat";
349
- readonly CHAT_TRANSCRIPTION: "chat_transcription";
350
- readonly CONFERENCE: "conference";
351
- readonly CONFERENCE_TRANSCRIPTION: "conference_transcription";
352
- };
353
- /**
354
- * @public
355
- */
356
- export type RecordType = typeof RecordType[keyof typeof RecordType];
357
520
  /**
358
521
  * @public
359
522
  */
@@ -436,6 +599,7 @@ export interface CallRecord {
436
599
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
437
600
  transcriptionLanguage?: string | undefined;
438
601
  transcriptionSeconds?: number | undefined;
602
+ annotationsStatus?: AnnotationsStatus | undefined;
439
603
  /**
440
604
  * Consider to use `attachments` instead.
441
605
  *
@@ -601,11 +765,6 @@ export interface CallTranscriptionChunk {
601
765
  * @public
602
766
  */
603
767
  sentiment?: TranscriptionSentiment | undefined;
604
- /**
605
- * 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.
606
- * @public
607
- */
608
- shouldComputeSentiment?: boolean | undefined;
609
768
  }
610
769
  /**
611
770
  * @public
@@ -622,6 +781,36 @@ export interface CallTranscriptionRecord {
622
781
  callStartTime: number;
623
782
  chunks: (CallTranscriptionChunk)[];
624
783
  }
784
+ /**
785
+ * @public
786
+ */
787
+ export declare class ChatAnnotationsNotFoundException extends __BaseException {
788
+ readonly name: "ChatAnnotationsNotFoundException";
789
+ readonly $fault: "client";
790
+ /**
791
+ * @internal
792
+ */
793
+ constructor(opts: __ExceptionOptionType<ChatAnnotationsNotFoundException, __BaseException>);
794
+ }
795
+ /**
796
+ * @public
797
+ */
798
+ export interface ChatAnnotationsRecord {
799
+ /**
800
+ * A unique chat channel identifier, distinguish each chat channel across different types.
801
+ * @public
802
+ */
803
+ id?: string | undefined;
804
+ /**
805
+ * A unique identifier that distinguishes each chat session within a channel.
806
+ * @public
807
+ */
808
+ chatId?: string | undefined;
809
+ time: number;
810
+ company: string;
811
+ type: RecordType;
812
+ annotations: (Annotation)[];
813
+ }
625
814
  /**
626
815
  * @public
627
816
  */
@@ -924,6 +1113,7 @@ export interface ChatRecord {
924
1113
  channel: Channel;
925
1114
  status?: ChatStatus | undefined;
926
1115
  participants: (ChatParticipant)[];
1116
+ annotationsStatus?: AnnotationsStatus | undefined;
927
1117
  type: RecordType;
928
1118
  }
929
1119
  /**
@@ -1237,6 +1427,27 @@ export interface ChatTranscriptionRecord {
1237
1427
  type: RecordType;
1238
1428
  messages: (Message)[];
1239
1429
  }
1430
+ /**
1431
+ * @public
1432
+ */
1433
+ export declare class ConferenceAnnotationsNotFoundException extends __BaseException {
1434
+ readonly name: "ConferenceAnnotationsNotFoundException";
1435
+ readonly $fault: "client";
1436
+ /**
1437
+ * @internal
1438
+ */
1439
+ constructor(opts: __ExceptionOptionType<ConferenceAnnotationsNotFoundException, __BaseException>);
1440
+ }
1441
+ /**
1442
+ * @public
1443
+ */
1444
+ export interface ConferenceAnnotationsRecord {
1445
+ id: string;
1446
+ time: number;
1447
+ company: string;
1448
+ type: RecordType;
1449
+ annotations: (Annotation)[];
1450
+ }
1240
1451
  /**
1241
1452
  * @public
1242
1453
  */
@@ -1377,6 +1588,7 @@ export interface ConferenceRecord {
1377
1588
  transcriptionStatus: ConferenceTranscriptionStatus;
1378
1589
  transcriptionLanguage?: string | undefined;
1379
1590
  transcriptionSeconds?: number | undefined;
1591
+ annotationsStatus?: AnnotationsStatus | undefined;
1380
1592
  type: RecordType;
1381
1593
  }
1382
1594
  /**
@@ -1553,6 +1765,20 @@ export interface GetCallInput {
1553
1765
  export interface GetCallOutput {
1554
1766
  call: CallRecord;
1555
1767
  }
1768
+ /**
1769
+ * @public
1770
+ */
1771
+ export interface GetCallAnnotationsInput {
1772
+ company?: string | undefined;
1773
+ callId: string;
1774
+ flowIndex: number;
1775
+ }
1776
+ /**
1777
+ * @public
1778
+ */
1779
+ export interface GetCallAnnotationsOutput {
1780
+ annotations: CallAnnotationsRecord;
1781
+ }
1556
1782
  /**
1557
1783
  * @public
1558
1784
  */
@@ -1615,6 +1841,23 @@ export interface GetChatInput {
1615
1841
  export interface GetChatOutput {
1616
1842
  chat: ChatRecord;
1617
1843
  }
1844
+ /**
1845
+ * @public
1846
+ */
1847
+ export interface GetChatAnnotationsInput {
1848
+ company?: string | undefined;
1849
+ /**
1850
+ * A unique identifier that distinguishes each chat session within a channel.
1851
+ * @public
1852
+ */
1853
+ chatId: string;
1854
+ }
1855
+ /**
1856
+ * @public
1857
+ */
1858
+ export interface GetChatAnnotationsOutput {
1859
+ annotations: ChatAnnotationsRecord;
1860
+ }
1618
1861
  /**
1619
1862
  * @public
1620
1863
  */
@@ -1664,6 +1907,19 @@ export interface GetConferenceInput {
1664
1907
  export interface GetConferenceOutput {
1665
1908
  conference: ConferenceRecord;
1666
1909
  }
1910
+ /**
1911
+ * @public
1912
+ */
1913
+ export interface GetConferenceAnnotationsInput {
1914
+ company?: string | undefined;
1915
+ conferenceId: string;
1916
+ }
1917
+ /**
1918
+ * @public
1919
+ */
1920
+ export interface GetConferenceAnnotationsOutput {
1921
+ annotations: ConferenceAnnotationsRecord;
1922
+ }
1667
1923
  /**
1668
1924
  * @public
1669
1925
  */
@@ -1,9 +1,12 @@
1
+ import { GetCallAnnotationsCommandInput, GetCallAnnotationsCommandOutput } from "../commands/GetCallAnnotationsCommand";
1
2
  import { GetCallCommandInput, GetCallCommandOutput } from "../commands/GetCallCommand";
2
3
  import { GetCallTranscriptionCommandInput, GetCallTranscriptionCommandOutput } from "../commands/GetCallTranscriptionCommand";
3
4
  import { GetCallTranscriptionTextCommandInput, GetCallTranscriptionTextCommandOutput } from "../commands/GetCallTranscriptionTextCommand";
5
+ import { GetChatAnnotationsCommandInput, GetChatAnnotationsCommandOutput } from "../commands/GetChatAnnotationsCommand";
4
6
  import { GetChatCommandInput, GetChatCommandOutput } from "../commands/GetChatCommand";
5
7
  import { GetChatTranscriptionCommandInput, GetChatTranscriptionCommandOutput } from "../commands/GetChatTranscriptionCommand";
6
8
  import { GetChatTranscriptionTextCommandInput, GetChatTranscriptionTextCommandOutput } from "../commands/GetChatTranscriptionTextCommand";
9
+ import { GetConferenceAnnotationsCommandInput, GetConferenceAnnotationsCommandOutput } from "../commands/GetConferenceAnnotationsCommand";
7
10
  import { GetConferenceCommandInput, GetConferenceCommandOutput } from "../commands/GetConferenceCommand";
8
11
  import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionCommandOutput } from "../commands/GetConferenceTranscriptionCommand";
9
12
  import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "../commands/GetConferenceTranscriptionTextCommand";
@@ -16,6 +19,10 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
16
19
  * serializeAws_restJson1GetCallCommand
17
20
  */
18
21
  export declare const se_GetCallCommand: (input: GetCallCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
+ /**
23
+ * serializeAws_restJson1GetCallAnnotationsCommand
24
+ */
25
+ export declare const se_GetCallAnnotationsCommand: (input: GetCallAnnotationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
26
  /**
20
27
  * serializeAws_restJson1GetCallTranscriptionCommand
21
28
  */
@@ -28,6 +35,10 @@ export declare const se_GetCallTranscriptionTextCommand: (input: GetCallTranscri
28
35
  * serializeAws_restJson1GetChatCommand
29
36
  */
30
37
  export declare const se_GetChatCommand: (input: GetChatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
+ /**
39
+ * serializeAws_restJson1GetChatAnnotationsCommand
40
+ */
41
+ export declare const se_GetChatAnnotationsCommand: (input: GetChatAnnotationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
31
42
  /**
32
43
  * serializeAws_restJson1GetChatTranscriptionCommand
33
44
  */
@@ -40,6 +51,10 @@ export declare const se_GetChatTranscriptionTextCommand: (input: GetChatTranscri
40
51
  * serializeAws_restJson1GetConferenceCommand
41
52
  */
42
53
  export declare const se_GetConferenceCommand: (input: GetConferenceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
54
+ /**
55
+ * serializeAws_restJson1GetConferenceAnnotationsCommand
56
+ */
57
+ export declare const se_GetConferenceAnnotationsCommand: (input: GetConferenceAnnotationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
58
  /**
44
59
  * serializeAws_restJson1GetConferenceTranscriptionCommand
45
60
  */
@@ -64,6 +79,10 @@ export declare const se_UpdateCallCommand: (input: UpdateCallCommandInput, conte
64
79
  * deserializeAws_restJson1GetCallCommand
65
80
  */
66
81
  export declare const de_GetCallCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCallCommandOutput>;
82
+ /**
83
+ * deserializeAws_restJson1GetCallAnnotationsCommand
84
+ */
85
+ export declare const de_GetCallAnnotationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCallAnnotationsCommandOutput>;
67
86
  /**
68
87
  * deserializeAws_restJson1GetCallTranscriptionCommand
69
88
  */
@@ -76,6 +95,10 @@ export declare const de_GetCallTranscriptionTextCommand: (output: __HttpResponse
76
95
  * deserializeAws_restJson1GetChatCommand
77
96
  */
78
97
  export declare const de_GetChatCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetChatCommandOutput>;
98
+ /**
99
+ * deserializeAws_restJson1GetChatAnnotationsCommand
100
+ */
101
+ export declare const de_GetChatAnnotationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetChatAnnotationsCommandOutput>;
79
102
  /**
80
103
  * deserializeAws_restJson1GetChatTranscriptionCommand
81
104
  */
@@ -88,6 +111,10 @@ export declare const de_GetChatTranscriptionTextCommand: (output: __HttpResponse
88
111
  * deserializeAws_restJson1GetConferenceCommand
89
112
  */
90
113
  export declare const de_GetConferenceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConferenceCommandOutput>;
114
+ /**
115
+ * deserializeAws_restJson1GetConferenceAnnotationsCommand
116
+ */
117
+ export declare const de_GetConferenceAnnotationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConferenceAnnotationsCommandOutput>;
91
118
  /**
92
119
  * deserializeAws_restJson1GetConferenceTranscriptionCommand
93
120
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-history-client",
3
3
  "description": "@wildix/wda-history-client client",
4
- "version": "1.2.24",
4
+ "version": "1.2.26",
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",