@wildix/wda-stream-client 1.1.47 → 1.1.48

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 (33) hide show
  1. package/dist-cjs/WdaStream.js +2 -0
  2. package/dist-cjs/commands/ListServicesCommand.js +21 -0
  3. package/dist-cjs/commands/index.js +1 -0
  4. package/dist-cjs/models/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +65 -41
  6. package/dist-cjs/models/models_1.js +44 -0
  7. package/dist-cjs/protocols/Aws_restJson1.js +54 -3
  8. package/dist-es/WdaStream.js +2 -0
  9. package/dist-es/commands/ListServicesCommand.js +17 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/index.js +1 -0
  12. package/dist-es/models/models_0.js +64 -38
  13. package/dist-es/models/models_1.js +39 -0
  14. package/dist-es/protocols/Aws_restJson1.js +50 -1
  15. package/dist-types/WdaStream.d.ts +8 -0
  16. package/dist-types/WdaStreamClient.d.ts +3 -2
  17. package/dist-types/commands/ConsumeEventCommand.d.ts +170 -1
  18. package/dist-types/commands/DescribeEventCommand.d.ts +120 -44
  19. package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -1
  20. package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -2
  21. package/dist-types/commands/GetOngoingConferenceCommand.d.ts +2 -2
  22. package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +3 -3
  23. package/dist-types/commands/ListServicesCommand.d.ts +87 -0
  24. package/dist-types/commands/QueryConversationsCommand.d.ts +4 -4
  25. package/dist-types/commands/QueryPresenceCommand.d.ts +1 -1
  26. package/dist-types/commands/QueryPresencesCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdatePresenceLastSeenCommand.d.ts +1 -1
  28. package/dist-types/commands/index.d.ts +1 -0
  29. package/dist-types/models/index.d.ts +1 -0
  30. package/dist-types/models/models_0.d.ts +1196 -394
  31. package/dist-types/models/models_1.d.ts +313 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  33. package/package.json +1 -1
@@ -0,0 +1,313 @@
1
+ import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
2
+ import { CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, ChatAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveTranscriptionEvent } from "./models_0";
3
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare class MatchNotFoundException extends __BaseException {
8
+ readonly name: "MatchNotFoundException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<MatchNotFoundException, __BaseException>);
14
+ }
15
+ /**
16
+ * @public
17
+ */
18
+ export interface GetOngoingCallInput {
19
+ company?: string | undefined;
20
+ callId: string;
21
+ }
22
+ /**
23
+ * @public
24
+ */
25
+ export interface GetOngoingCallOutput {
26
+ company: string;
27
+ flows: (CallAnalyticsLiveProgressEventFlow)[];
28
+ }
29
+ /**
30
+ * @public
31
+ */
32
+ export interface GetOngoingCallTranscriptionInput {
33
+ company?: string | undefined;
34
+ callId: string;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface GetOngoingCallTranscriptionOutput {
40
+ company: string;
41
+ flows: (CallAnalyticsLiveProgressEventFlow)[];
42
+ transcriptions?: (CallAnalyticsLiveTranscriptionEvent)[] | undefined;
43
+ }
44
+ /**
45
+ * @public
46
+ */
47
+ export interface GetOngoingConferenceInput {
48
+ company?: string | undefined;
49
+ conferenceId: string;
50
+ }
51
+ /**
52
+ * @public
53
+ */
54
+ export interface GetOngoingConferenceOutput {
55
+ conference: ConferenceAnalyticsLiveProgressEvent;
56
+ }
57
+ /**
58
+ * @public
59
+ */
60
+ export interface GetOngoingConferenceTranscriptionInput {
61
+ company?: string | undefined;
62
+ conferenceId: string;
63
+ }
64
+ /**
65
+ * @public
66
+ */
67
+ export interface GetOngoingConferenceTranscriptionOutput {
68
+ conference: ConferenceAnalyticsLiveProgressEvent;
69
+ transcriptions?: (ConferenceAnalyticsLiveTranscriptionEvent)[] | undefined;
70
+ }
71
+ /**
72
+ * @public
73
+ */
74
+ export interface ListServicesFilter {
75
+ pbx?: string | undefined;
76
+ }
77
+ /**
78
+ * @public
79
+ */
80
+ export interface ListServicesInput {
81
+ /**
82
+ * The unique identifier of the company.
83
+ * @public
84
+ */
85
+ company?: string | undefined;
86
+ filter?: (ListServicesFilter)[] | undefined;
87
+ }
88
+ /**
89
+ * Basic information about a service, used in list responses.
90
+ * @public
91
+ */
92
+ export interface ServiceInfo {
93
+ /**
94
+ * The unique identifier of the service.
95
+ * @public
96
+ */
97
+ id: string;
98
+ /**
99
+ * The display name of the service.
100
+ * @public
101
+ */
102
+ name: string;
103
+ /**
104
+ * The PBX identifier of the service.
105
+ * @public
106
+ */
107
+ pbx?: string | undefined;
108
+ }
109
+ /**
110
+ * @public
111
+ */
112
+ export interface ListServicesOutput {
113
+ /**
114
+ * List of active services with basic information.
115
+ * @public
116
+ */
117
+ services: (ServiceInfo)[];
118
+ }
119
+ /**
120
+ * @public
121
+ * @enum
122
+ */
123
+ export declare const PresenceStatus: {
124
+ readonly AWAY: "AWAY";
125
+ readonly DND: "DND";
126
+ readonly OFFLINE: "OFFLINE";
127
+ readonly ONLINE: "ONLINE";
128
+ readonly ONLY_SIP: "ONLY_SIP";
129
+ };
130
+ /**
131
+ * @public
132
+ */
133
+ export type PresenceStatus = typeof PresenceStatus[keyof typeof PresenceStatus];
134
+ /**
135
+ * @public
136
+ * @enum
137
+ */
138
+ export declare const TelephonyStatus: {
139
+ readonly REGISTERED: "REGISTERED";
140
+ readonly RINGING: "RINGING";
141
+ readonly RT: "RT";
142
+ readonly TALKING: "TALKING";
143
+ readonly UNREGISTERED: "UNREGISTERED";
144
+ };
145
+ /**
146
+ * @public
147
+ */
148
+ export type TelephonyStatus = typeof TelephonyStatus[keyof typeof TelephonyStatus];
149
+ /**
150
+ * @public
151
+ */
152
+ export interface Presence {
153
+ /**
154
+ * The unique identifier of the organization user belongs to (example: it_w119845).
155
+ * @public
156
+ */
157
+ company?: string | undefined;
158
+ /**
159
+ * The user's geographic address (example: 1 Kynner Way, Binley, Coventry, CV3 2TU, England).
160
+ * @public
161
+ */
162
+ address?: string | undefined;
163
+ /**
164
+ * The user extension (example: 2001)
165
+ * @public
166
+ */
167
+ extension?: string | undefined;
168
+ /**
169
+ * The unique identifier of the user (example: F2P9tcKrYI9p).
170
+ * @public
171
+ */
172
+ id?: string | undefined;
173
+ /**
174
+ * Longitude is the unit that represent the coordinates at geographic coordinate system (example: 35.5753).
175
+ * @public
176
+ */
177
+ lng?: string | undefined;
178
+ /**
179
+ * Latitude is the unit that represent the coordinates at geographic coordinate system(example: 23.2954).
180
+ * @public
181
+ */
182
+ lat?: string | undefined;
183
+ /**
184
+ * If it is defined, user status switches back to Available after the time (example: 2024-08-08T17:16:00Z).
185
+ * @public
186
+ */
187
+ until?: string | undefined;
188
+ /**
189
+ * User status (example: AWAY)
190
+ * @public
191
+ */
192
+ status?: PresenceStatus | undefined;
193
+ /**
194
+ * User status custom message (example: on vacation).
195
+ * @public
196
+ */
197
+ message?: string | undefined;
198
+ /**
199
+ * User telephony status (example: TALKING)
200
+ * @public
201
+ */
202
+ telephony?: TelephonyStatus | undefined;
203
+ /**
204
+ * The string shows the time the user was last seen. (example: 2024-08-08T17:16:00Z).
205
+ * @public
206
+ */
207
+ seen?: string | undefined;
208
+ }
209
+ /**
210
+ * @public
211
+ */
212
+ export declare class PresenceNotAvailableException extends __BaseException {
213
+ readonly name: "PresenceNotAvailableException";
214
+ readonly $fault: "client";
215
+ /**
216
+ * @internal
217
+ */
218
+ constructor(opts: __ExceptionOptionType<PresenceNotAvailableException, __BaseException>);
219
+ }
220
+ /**
221
+ * @public
222
+ */
223
+ export interface PresenceQueryFilter {
224
+ /**
225
+ * The unique identifier of the user (example: F2P9tcKrYI9p).
226
+ * @public
227
+ */
228
+ id?: string | undefined;
229
+ /**
230
+ * The unique identifier of the organization user belongs to (example: it_w119845).
231
+ * @public
232
+ */
233
+ company?: string | undefined;
234
+ /**
235
+ * The user extension (example: 2001
236
+ * @public
237
+ */
238
+ extension?: string | undefined;
239
+ }
240
+ /**
241
+ * @public
242
+ */
243
+ export interface QueryConversationsInput {
244
+ company?: string | undefined;
245
+ /**
246
+ * List of filters to match the user conversations list.
247
+ * @public
248
+ */
249
+ filter?: (PresenceQueryFilter)[] | undefined;
250
+ }
251
+ /**
252
+ * @public
253
+ */
254
+ export interface QueryConversationsOutput {
255
+ calls: (CallAnalyticsLiveProgressEvent)[];
256
+ conferences: (ConferenceAnalyticsLiveProgressEvent)[];
257
+ chats: (ChatAnalyticsLiveProgressEvent)[];
258
+ }
259
+ /**
260
+ * @public
261
+ */
262
+ export interface QueryPresenceInput {
263
+ /**
264
+ * The filter, to match a presence of certain user
265
+ * @public
266
+ */
267
+ filter: PresenceQueryFilter;
268
+ }
269
+ /**
270
+ * @public
271
+ */
272
+ export interface QueryPresenceOutput {
273
+ /**
274
+ * The presence matched specified query.
275
+ * @public
276
+ */
277
+ presence: Presence;
278
+ }
279
+ /**
280
+ * @public
281
+ */
282
+ export interface QueryPresencesInput {
283
+ /**
284
+ * List of filters to match the user presence list.
285
+ * @public
286
+ */
287
+ filter: (PresenceQueryFilter)[];
288
+ }
289
+ /**
290
+ * @public
291
+ */
292
+ export interface QueryPresencesOutput {
293
+ /**
294
+ * A list of presences matched the filter. If filter does not match any presence the presence would not be added to the list.
295
+ * @public
296
+ */
297
+ presences: (Presence)[];
298
+ }
299
+ /**
300
+ * @public
301
+ */
302
+ export interface UpdatePresenceLastSeenInput {
303
+ /**
304
+ * The unique identifier of the user when a service token is used.
305
+ * @public
306
+ */
307
+ userId?: string | undefined;
308
+ }
309
+ /**
310
+ * @public
311
+ */
312
+ export interface UpdatePresenceLastSeenOutput {
313
+ }
@@ -5,6 +5,7 @@ import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "../comm
5
5
  import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "../commands/GetOngoingCallTranscriptionCommand";
6
6
  import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "../commands/GetOngoingConferenceCommand";
7
7
  import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "../commands/GetOngoingConferenceTranscriptionCommand";
8
+ import { ListServicesCommandInput, ListServicesCommandOutput } from "../commands/ListServicesCommand";
8
9
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "../commands/QueryConversationsCommand";
9
10
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "../commands/QueryPresenceCommand";
10
11
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "../commands/QueryPresencesCommand";
@@ -39,6 +40,10 @@ export declare const se_GetOngoingConferenceCommand: (input: GetOngoingConferenc
39
40
  * serializeAws_restJson1GetOngoingConferenceTranscriptionCommand
40
41
  */
41
42
  export declare const se_GetOngoingConferenceTranscriptionCommand: (input: GetOngoingConferenceTranscriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
+ /**
44
+ * serializeAws_restJson1ListServicesCommand
45
+ */
46
+ export declare const se_ListServicesCommand: (input: ListServicesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
42
47
  /**
43
48
  * serializeAws_restJson1QueryConversationsCommand
44
49
  */
@@ -83,6 +88,10 @@ export declare const de_GetOngoingConferenceCommand: (output: __HttpResponse, co
83
88
  * deserializeAws_restJson1GetOngoingConferenceTranscriptionCommand
84
89
  */
85
90
  export declare const de_GetOngoingConferenceTranscriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingConferenceTranscriptionCommandOutput>;
91
+ /**
92
+ * deserializeAws_restJson1ListServicesCommand
93
+ */
94
+ export declare const de_ListServicesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListServicesCommandOutput>;
86
95
  /**
87
96
  * deserializeAws_restJson1QueryConversationsCommand
88
97
  */
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.47",
4
+ "version": "1.1.48",
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",