@wildix/wda-history-client 1.2.24 → 1.2.25

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 -1
  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 -2
  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 -1
  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 -28
  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
  *
@@ -622,6 +786,36 @@ export interface CallTranscriptionRecord {
622
786
  callStartTime: number;
623
787
  chunks: (CallTranscriptionChunk)[];
624
788
  }
789
+ /**
790
+ * @public
791
+ */
792
+ export declare class ChatAnnotationsNotFoundException extends __BaseException {
793
+ readonly name: "ChatAnnotationsNotFoundException";
794
+ readonly $fault: "client";
795
+ /**
796
+ * @internal
797
+ */
798
+ constructor(opts: __ExceptionOptionType<ChatAnnotationsNotFoundException, __BaseException>);
799
+ }
800
+ /**
801
+ * @public
802
+ */
803
+ export interface ChatAnnotationsRecord {
804
+ /**
805
+ * A unique chat channel identifier, distinguish each chat channel across different types.
806
+ * @public
807
+ */
808
+ id?: string | undefined;
809
+ /**
810
+ * A unique identifier that distinguishes each chat session within a channel.
811
+ * @public
812
+ */
813
+ chatId?: string | undefined;
814
+ time: number;
815
+ company: string;
816
+ type: RecordType;
817
+ annotations: (Annotation)[];
818
+ }
625
819
  /**
626
820
  * @public
627
821
  */
@@ -924,6 +1118,7 @@ export interface ChatRecord {
924
1118
  channel: Channel;
925
1119
  status?: ChatStatus | undefined;
926
1120
  participants: (ChatParticipant)[];
1121
+ annotationsStatus?: AnnotationsStatus | undefined;
927
1122
  type: RecordType;
928
1123
  }
929
1124
  /**
@@ -1237,6 +1432,27 @@ export interface ChatTranscriptionRecord {
1237
1432
  type: RecordType;
1238
1433
  messages: (Message)[];
1239
1434
  }
1435
+ /**
1436
+ * @public
1437
+ */
1438
+ export declare class ConferenceAnnotationsNotFoundException extends __BaseException {
1439
+ readonly name: "ConferenceAnnotationsNotFoundException";
1440
+ readonly $fault: "client";
1441
+ /**
1442
+ * @internal
1443
+ */
1444
+ constructor(opts: __ExceptionOptionType<ConferenceAnnotationsNotFoundException, __BaseException>);
1445
+ }
1446
+ /**
1447
+ * @public
1448
+ */
1449
+ export interface ConferenceAnnotationsRecord {
1450
+ id: string;
1451
+ time: number;
1452
+ company: string;
1453
+ type: RecordType;
1454
+ annotations: (Annotation)[];
1455
+ }
1240
1456
  /**
1241
1457
  * @public
1242
1458
  */
@@ -1377,6 +1593,7 @@ export interface ConferenceRecord {
1377
1593
  transcriptionStatus: ConferenceTranscriptionStatus;
1378
1594
  transcriptionLanguage?: string | undefined;
1379
1595
  transcriptionSeconds?: number | undefined;
1596
+ annotationsStatus?: AnnotationsStatus | undefined;
1380
1597
  type: RecordType;
1381
1598
  }
1382
1599
  /**
@@ -1553,6 +1770,20 @@ export interface GetCallInput {
1553
1770
  export interface GetCallOutput {
1554
1771
  call: CallRecord;
1555
1772
  }
1773
+ /**
1774
+ * @public
1775
+ */
1776
+ export interface GetCallAnnotationsInput {
1777
+ company?: string | undefined;
1778
+ callId: string;
1779
+ flowIndex: number;
1780
+ }
1781
+ /**
1782
+ * @public
1783
+ */
1784
+ export interface GetCallAnnotationsOutput {
1785
+ annotations: CallAnnotationsRecord;
1786
+ }
1556
1787
  /**
1557
1788
  * @public
1558
1789
  */
@@ -1615,6 +1846,23 @@ export interface GetChatInput {
1615
1846
  export interface GetChatOutput {
1616
1847
  chat: ChatRecord;
1617
1848
  }
1849
+ /**
1850
+ * @public
1851
+ */
1852
+ export interface GetChatAnnotationsInput {
1853
+ company?: string | undefined;
1854
+ /**
1855
+ * A unique identifier that distinguishes each chat session within a channel.
1856
+ * @public
1857
+ */
1858
+ chatId: string;
1859
+ }
1860
+ /**
1861
+ * @public
1862
+ */
1863
+ export interface GetChatAnnotationsOutput {
1864
+ annotations: ChatAnnotationsRecord;
1865
+ }
1618
1866
  /**
1619
1867
  * @public
1620
1868
  */
@@ -1664,6 +1912,19 @@ export interface GetConferenceInput {
1664
1912
  export interface GetConferenceOutput {
1665
1913
  conference: ConferenceRecord;
1666
1914
  }
1915
+ /**
1916
+ * @public
1917
+ */
1918
+ export interface GetConferenceAnnotationsInput {
1919
+ company?: string | undefined;
1920
+ conferenceId: string;
1921
+ }
1922
+ /**
1923
+ * @public
1924
+ */
1925
+ export interface GetConferenceAnnotationsOutput {
1926
+ annotations: ConferenceAnnotationsRecord;
1927
+ }
1667
1928
  /**
1668
1929
  * @public
1669
1930
  */
@@ -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.25",
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",