@wildix/wda-stream-client 1.1.72 → 4.0.1

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 (111) hide show
  1. package/dist-cjs/WdaStream.js +3 -3
  2. package/dist-cjs/WdaStreamClient.js +34 -26
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/ConsumeEventCommand.js +10 -11
  6. package/dist-cjs/commands/DescribeEventCommand.js +10 -11
  7. package/dist-cjs/commands/GetConferenceIdCommand.js +10 -11
  8. package/dist-cjs/commands/GetOngoingCallAnnotationsCommand.js +10 -11
  9. package/dist-cjs/commands/GetOngoingCallCommand.js +10 -11
  10. package/dist-cjs/commands/GetOngoingCallTranscriptionCommand.js +10 -11
  11. package/dist-cjs/commands/GetOngoingChatAnnotationsCommand.js +10 -11
  12. package/dist-cjs/commands/GetOngoingConferenceAnnotationsCommand.js +10 -11
  13. package/dist-cjs/commands/GetOngoingConferenceCommand.js +10 -11
  14. package/dist-cjs/commands/GetOngoingConferenceTranscriptionCommand.js +10 -11
  15. package/dist-cjs/commands/ListServicesCommand.js +10 -11
  16. package/dist-cjs/commands/QueryConversationsCommand.js +10 -11
  17. package/dist-cjs/commands/QueryPresenceCommand.js +10 -11
  18. package/dist-cjs/commands/QueryPresencesCommand.js +10 -11
  19. package/dist-cjs/commands/UpdatePresenceLastSeenCommand.js +10 -11
  20. package/dist-cjs/commands/index.js +2 -2
  21. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  22. package/dist-cjs/endpoint/bdd.js +28 -0
  23. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  24. package/dist-cjs/index.js +5 -1
  25. package/dist-cjs/models/WdaStreamServiceException.js +3 -3
  26. package/dist-cjs/models/enums.js +508 -0
  27. package/dist-cjs/models/errors.js +56 -0
  28. package/dist-cjs/models/models_0.js +0 -668
  29. package/dist-cjs/models/models_1.js +0 -48
  30. package/dist-cjs/runtimeConfig.browser.js +11 -11
  31. package/dist-cjs/runtimeConfig.js +22 -18
  32. package/dist-cjs/runtimeConfig.shared.js +30 -10
  33. package/dist-cjs/runtimeExtensions.js +6 -5
  34. package/dist-cjs/schemas/schemas_0.js +2528 -0
  35. package/dist-es/WdaStream.js +2 -2
  36. package/dist-es/WdaStreamClient.js +30 -22
  37. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  38. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  39. package/dist-es/commands/ConsumeEventCommand.js +9 -10
  40. package/dist-es/commands/DescribeEventCommand.js +9 -10
  41. package/dist-es/commands/GetConferenceIdCommand.js +9 -10
  42. package/dist-es/commands/GetOngoingCallAnnotationsCommand.js +9 -10
  43. package/dist-es/commands/GetOngoingCallCommand.js +9 -10
  44. package/dist-es/commands/GetOngoingCallTranscriptionCommand.js +9 -10
  45. package/dist-es/commands/GetOngoingChatAnnotationsCommand.js +9 -10
  46. package/dist-es/commands/GetOngoingConferenceAnnotationsCommand.js +9 -10
  47. package/dist-es/commands/GetOngoingConferenceCommand.js +9 -10
  48. package/dist-es/commands/GetOngoingConferenceTranscriptionCommand.js +9 -10
  49. package/dist-es/commands/ListServicesCommand.js +9 -10
  50. package/dist-es/commands/QueryConversationsCommand.js +9 -10
  51. package/dist-es/commands/QueryPresenceCommand.js +9 -10
  52. package/dist-es/commands/QueryPresencesCommand.js +9 -10
  53. package/dist-es/commands/UpdatePresenceLastSeenCommand.js +9 -10
  54. package/dist-es/commands/index.js +2 -2
  55. package/dist-es/endpoint/EndpointParameters.js +12 -0
  56. package/dist-es/endpoint/bdd.js +25 -0
  57. package/dist-es/endpoint/endpointResolver.js +12 -0
  58. package/dist-es/index.js +5 -1
  59. package/dist-es/models/WdaStreamServiceException.js +1 -1
  60. package/dist-es/models/enums.js +504 -0
  61. package/dist-es/models/errors.js +49 -0
  62. package/dist-es/models/models_0.js +1 -664
  63. package/dist-es/models/models_1.js +1 -45
  64. package/dist-es/runtimeConfig.browser.js +7 -7
  65. package/dist-es/runtimeConfig.js +17 -13
  66. package/dist-es/runtimeConfig.shared.js +24 -4
  67. package/dist-es/runtimeExtensions.js +6 -5
  68. package/dist-es/schemas/schemas_0.js +2519 -0
  69. package/dist-types/WdaStream.d.ts +16 -16
  70. package/dist-types/WdaStreamClient.d.ts +45 -27
  71. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  72. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  73. package/dist-types/commands/ConsumeEventCommand.d.ts +11 -7
  74. package/dist-types/commands/DescribeEventCommand.d.ts +54 -68
  75. package/dist-types/commands/GetConferenceIdCommand.d.ts +11 -7
  76. package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +11 -7
  77. package/dist-types/commands/GetOngoingCallCommand.d.ts +11 -7
  78. package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +11 -7
  79. package/dist-types/commands/GetOngoingChatAnnotationsCommand.d.ts +11 -7
  80. package/dist-types/commands/GetOngoingConferenceAnnotationsCommand.d.ts +11 -7
  81. package/dist-types/commands/GetOngoingConferenceCommand.d.ts +11 -7
  82. package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +11 -7
  83. package/dist-types/commands/ListServicesCommand.d.ts +11 -7
  84. package/dist-types/commands/QueryConversationsCommand.d.ts +11 -7
  85. package/dist-types/commands/QueryPresenceCommand.d.ts +12 -7
  86. package/dist-types/commands/QueryPresencesCommand.d.ts +11 -7
  87. package/dist-types/commands/UpdatePresenceLastSeenCommand.d.ts +11 -7
  88. package/dist-types/commands/index.d.ts +2 -2
  89. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  90. package/dist-types/endpoint/bdd.d.ts +2 -0
  91. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  92. package/dist-types/extensionConfiguration.d.ts +4 -3
  93. package/dist-types/index.d.ts +6 -1
  94. package/dist-types/models/WdaStreamServiceException.d.ts +1 -1
  95. package/dist-types/models/enums.d.ts +1088 -0
  96. package/dist-types/models/errors.d.ts +46 -0
  97. package/dist-types/models/models_0.d.ts +1109 -1214
  98. package/dist-types/models/models_1.d.ts +3 -995
  99. package/dist-types/runtimeConfig.browser.d.ts +34 -15
  100. package/dist-types/runtimeConfig.d.ts +33 -14
  101. package/dist-types/runtimeConfig.native.d.ts +35 -16
  102. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  103. package/dist-types/runtimeExtensions.d.ts +1 -1
  104. package/dist-types/schemas/schemas_0.d.ts +333 -0
  105. package/package.json +13 -39
  106. package/dist-cjs/models/index.js +0 -5
  107. package/dist-cjs/protocols/Aws_restJson1.js +0 -1341
  108. package/dist-es/models/index.js +0 -2
  109. package/dist-es/protocols/Aws_restJson1.js +0 -1308
  110. package/dist-types/models/index.d.ts +0 -2
  111. package/dist-types/protocols/Aws_restJson1.d.ts +0 -137
@@ -1,996 +1,4 @@
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, WhatsAppStatusEventData } from "./models_0";
3
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
4
- import { DocumentType as __DocumentType } from "@smithy/types";
5
- /**
6
- * @public
7
- */
8
- export interface WebhookChatLiveProgressEvent {
9
- id: string;
10
- pbx?: string | undefined;
11
- company?: string | undefined;
12
- type: WebhookEventType;
13
- time: number;
14
- integrationId: string;
15
- data: ChatAnalyticsLiveProgressEvent;
16
- }
17
- /**
18
- * @public
19
- */
20
- export interface WebhookChatManagerMissedEvent {
21
- id: string;
22
- pbx?: string | undefined;
23
- company?: string | undefined;
24
- type: WebhookEventType;
25
- time: number;
26
- integrationId: string;
27
- data: ChatAnalyticsManagerMissedEvent;
28
- }
29
- /**
30
- * @public
31
- */
32
- export interface WebhookChatSummaryCompletedEventData {
33
- chat: ChatRecord;
34
- summary: TranscriptionSummary;
35
- }
36
- /**
37
- * @public
38
- */
39
- export interface WebhookChatSummaryCompletedEvent {
40
- id: string;
41
- pbx?: string | undefined;
42
- company?: string | undefined;
43
- type: WebhookEventType;
44
- time: number;
45
- integrationId: string;
46
- data: WebhookChatSummaryCompletedEventData;
47
- }
48
- /**
49
- * @public
50
- */
51
- export interface WebhookConferenceAnnotationsCompletedEventData {
52
- conference: ConferenceRecord;
53
- annotations: (Annotation)[];
54
- }
55
- /**
56
- * @public
57
- */
58
- export interface WebhookConferenceAnnotationsCompletedEvent {
59
- id: string;
60
- pbx?: string | undefined;
61
- company?: string | undefined;
62
- type: WebhookEventType;
63
- time: number;
64
- integrationId: string;
65
- data: WebhookConferenceAnnotationsCompletedEventData;
66
- }
67
- /**
68
- * @public
69
- */
70
- export interface WebhookConferenceCompletedEvent {
71
- id: string;
72
- pbx?: string | undefined;
73
- company?: string | undefined;
74
- type: WebhookEventType;
75
- time: number;
76
- integrationId: string;
77
- data: ConferenceAnalyticsRecordEvent;
78
- }
79
- /**
80
- * @public
81
- */
82
- export interface WebhookConferenceLiveAnnotationEvent {
83
- id: string;
84
- pbx?: string | undefined;
85
- company?: string | undefined;
86
- type: WebhookEventType;
87
- time: number;
88
- integrationId: string;
89
- data: ConferenceAnalyticsLiveAnnotationEvent;
90
- }
91
- /**
92
- * @public
93
- */
94
- export interface WebhookConferenceLiveCompletedEvent {
95
- id: string;
96
- pbx?: string | undefined;
97
- company?: string | undefined;
98
- type: WebhookEventType;
99
- time: number;
100
- integrationId: string;
101
- data: ConferenceAnalyticsLiveCompleteEvent;
102
- }
103
- /**
104
- * @public
105
- */
106
- export interface WebhookConferenceLiveInterruptedEvent {
107
- id: string;
108
- pbx?: string | undefined;
109
- company?: string | undefined;
110
- type: WebhookEventType;
111
- time: number;
112
- integrationId: string;
113
- data: ConferenceAnalyticsLiveInterruptedEvent;
114
- }
115
- /**
116
- * @public
117
- */
118
- export interface WebhookConferenceLiveJoinEvent {
119
- id: string;
120
- pbx?: string | undefined;
121
- company?: string | undefined;
122
- type: WebhookEventType;
123
- time: number;
124
- integrationId: string;
125
- data: ConferenceAnalyticsLiveJoinEvent;
126
- }
127
- /**
128
- * @public
129
- */
130
- export interface WebhookConferenceLiveLeaveEvent {
131
- id: string;
132
- pbx?: string | undefined;
133
- company?: string | undefined;
134
- type: WebhookEventType;
135
- time: number;
136
- integrationId: string;
137
- data: ConferenceAnalyticsLiveLeaveEvent;
138
- }
139
- /**
140
- * @public
141
- */
142
- export interface WebhookConferenceLiveProgressEvent {
143
- id: string;
144
- pbx?: string | undefined;
145
- company?: string | undefined;
146
- type: WebhookEventType;
147
- time: number;
148
- integrationId: string;
149
- data: ConferenceAnalyticsLiveProgressEvent;
150
- }
151
- /**
152
- * @public
153
- */
154
- export interface WebhookConferenceLiveTranscriptionEvent {
155
- id: string;
156
- pbx?: string | undefined;
157
- company?: string | undefined;
158
- type: WebhookEventType;
159
- time: number;
160
- integrationId: string;
161
- data: ConferenceAnalyticsLiveTranscriptionEvent;
162
- }
163
- /**
164
- * @public
165
- */
166
- export interface WebhookConferenceSummaryCompletedEventData {
167
- conference: ConferenceRecord;
168
- summary: TranscriptionSummary;
169
- }
170
- /**
171
- * @public
172
- */
173
- export interface WebhookConferenceSummaryCompletedEvent {
174
- id: string;
175
- pbx?: string | undefined;
176
- company?: string | undefined;
177
- type: WebhookEventType;
178
- time: number;
179
- integrationId: string;
180
- data: WebhookConferenceSummaryCompletedEventData;
181
- }
182
- /**
183
- * @public
184
- */
185
- export interface WebhookConferenceTranscriptionCompletedEventData {
186
- conference: ConferenceRecord;
187
- chunks: (TranscriptionTextChunk)[];
188
- }
189
- /**
190
- * @public
191
- */
192
- export interface WebhookConferenceTranscriptionCompletedEvent {
193
- id: string;
194
- pbx?: string | undefined;
195
- company?: string | undefined;
196
- type: WebhookEventType;
197
- time: number;
198
- integrationId: string;
199
- data: WebhookConferenceTranscriptionCompletedEventData;
200
- }
201
- /**
202
- * @public
203
- */
204
- export interface WebhookConferenceTranscriptionTextCompletedEventData {
205
- conference: ConferenceRecord;
206
- transcription: string;
207
- }
208
- /**
209
- * @public
210
- */
211
- export interface WebhookConferenceTranscriptionTextCompletedEvent {
212
- id: string;
213
- pbx?: string | undefined;
214
- company?: string | undefined;
215
- type: WebhookEventType;
216
- time: number;
217
- integrationId: string;
218
- data: WebhookConferenceTranscriptionTextCompletedEventData;
219
- }
220
- /**
221
- * @public
222
- */
223
- export interface WebhookOutdatedCallParticipant {
224
- type: string;
225
- phone?: string | undefined;
226
- name?: string | undefined;
227
- company?: string | undefined;
228
- email?: string | undefined;
229
- userId?: string | undefined;
230
- userExtension?: string | undefined;
231
- userDepartment?: string | undefined;
232
- groupId?: string | undefined;
233
- groupName?: string | undefined;
234
- userAgent?: string | undefined;
235
- userDevice?: CallDevice | undefined;
236
- role: string;
237
- license?: string | undefined;
238
- }
239
- /**
240
- * @public
241
- */
242
- export interface WebhookOutdatedCallEventData {
243
- status?: string | undefined;
244
- caller?: WebhookOutdatedCallParticipant | undefined;
245
- callee?: WebhookOutdatedCallParticipant | undefined;
246
- service?: string | undefined;
247
- destination?: string | undefined;
248
- trunkName?: string | undefined;
249
- queueId?: string | undefined;
250
- queueName?: string | undefined;
251
- tags: (string)[];
252
- flags: (string)[];
253
- endCause?: string | undefined;
254
- endCauseStr?: string | undefined;
255
- endBy?: string | undefined;
256
- }
257
- /**
258
- * @public
259
- */
260
- export interface WebhookOutdatedCallEndEvent {
261
- id: string;
262
- pbx?: string | undefined;
263
- company?: string | undefined;
264
- type: WebhookEventType;
265
- time: number;
266
- integrationId: string;
267
- data: WebhookOutdatedCallEventData;
268
- }
269
- /**
270
- * @public
271
- */
272
- export interface WebhookOutdatedCallStartEvent {
273
- id: string;
274
- pbx?: string | undefined;
275
- company?: string | undefined;
276
- type: WebhookEventType;
277
- time: number;
278
- integrationId: string;
279
- data: WebhookOutdatedCallEventData;
280
- }
281
- /**
282
- * @public
283
- */
284
- export interface WebhookOutdatedCallUpdateEvent {
285
- id: string;
286
- pbx?: string | undefined;
287
- company?: string | undefined;
288
- type: WebhookEventType;
289
- time: number;
290
- integrationId: string;
291
- data: WebhookOutdatedCallEventData;
292
- }
293
- /**
294
- * @public
295
- */
296
- export interface WebhookPresenceConferenceEventData {
297
- extension: string;
298
- isJoined: boolean;
299
- isLeaved: boolean;
300
- participant: ConferenceParticipant;
301
- }
302
- /**
303
- * @public
304
- */
305
- export interface WebhookPresenceConferenceEvent {
306
- id: string;
307
- pbx?: string | undefined;
308
- company?: string | undefined;
309
- type: WebhookEventType;
310
- time: number;
311
- integrationId: string;
312
- data: WebhookPresenceConferenceEventData;
313
- }
314
- /**
315
- * @public
316
- */
317
- export interface WebhookPresenceTelephonyEventData {
318
- extension: string;
319
- email: string;
320
- sourceId: string;
321
- status: string;
322
- }
323
- /**
324
- * @public
325
- */
326
- export interface WebhookPresenceTelephonyEvent {
327
- id: string;
328
- pbx?: string | undefined;
329
- company?: string | undefined;
330
- type: WebhookEventType;
331
- time: number;
332
- integrationId: string;
333
- data: WebhookPresenceTelephonyEventData;
334
- }
335
- /**
336
- * @public
337
- */
338
- export interface WebhookPresenceUserEventLocationData {
339
- address: string;
340
- lat: string;
341
- lng: string;
342
- }
343
- /**
344
- * @public
345
- */
346
- export interface WebhookPresenceUserEventData {
347
- extension: string;
348
- email: string;
349
- sourceId: string;
350
- status: string;
351
- until: string;
352
- message: string;
353
- location: WebhookPresenceUserEventLocationData;
354
- }
355
- /**
356
- * @public
357
- */
358
- export interface WebhookPresenceUserEvent {
359
- id: string;
360
- pbx?: string | undefined;
361
- company?: string | undefined;
362
- type: WebhookEventType;
363
- time: number;
364
- integrationId: string;
365
- data: WebhookPresenceUserEventData;
366
- }
367
- /**
368
- * @public
369
- */
370
- export interface WebhookServiceCallLiveCompletedEvent {
371
- id: string;
372
- pbx?: string | undefined;
373
- company?: string | undefined;
374
- type: WebhookEventType;
375
- time: number;
376
- integrationId: string;
377
- /**
378
- * Base service call structure.
379
- * @public
380
- */
381
- data: ServiceCallAnalyticsLiveCompleteEvent;
382
- }
383
- /**
384
- * @public
385
- */
386
- export interface WebhookServiceCallLiveProgressEvent {
387
- id: string;
388
- pbx?: string | undefined;
389
- company?: string | undefined;
390
- type: WebhookEventType;
391
- time: number;
392
- integrationId: string;
393
- /**
394
- * Base service call structure.
395
- * @public
396
- */
397
- data: ServiceCallAnalyticsLiveProgressEvent;
398
- }
399
- /**
400
- * @public
401
- */
402
- export interface WebhookSmsStatusEvent {
403
- id: string;
404
- pbx?: string | undefined;
405
- company?: string | undefined;
406
- type: WebhookEventType;
407
- time: number;
408
- integrationId: string;
409
- data: SmsStatusConsumeEventData;
410
- }
411
- /**
412
- * @public
413
- */
414
- export interface WebhookWhatsAppStatusEvent {
415
- id: string;
416
- pbx?: string | undefined;
417
- company?: string | undefined;
418
- type: WebhookEventType;
419
- time: number;
420
- integrationId: string;
421
- data: WhatsAppStatusEventData;
422
- }
423
- /**
424
- * @public
425
- */
426
- export interface WebsocketAuthorizeBadRequestException {
427
- event?: string | undefined;
428
- requestId?: string | undefined;
429
- connectionId?: string | undefined;
430
- message?: string | undefined;
431
- code?: number | undefined;
432
- source?: WebsocketAuthorizeAction | undefined;
433
- }
434
- /**
435
- * @public
436
- * @enum
437
- */
438
- export declare const WebsocketEvent: {
439
- readonly AUTHORIZED: "authorized";
440
- readonly BROADCAST: "broadcast";
441
- readonly SUBSCRIBED: "subscribed";
442
- readonly UNSUBSCRIBE: "unsubscribed";
443
- };
444
- /**
445
- * @public
446
- */
447
- export type WebsocketEvent = typeof WebsocketEvent[keyof typeof WebsocketEvent];
448
- /**
449
- * @public
450
- */
451
- export interface WebsocketAuthorizedEvent {
452
- event: WebsocketEvent;
453
- connectionId: string;
454
- requestId: string;
455
- duration?: __DocumentType | undefined;
456
- }
457
- /**
458
- * @public
459
- */
460
- export interface WebsocketConversationsBroadcastEvent {
461
- event: WebsocketEvent;
462
- topic: WebsocketTopic;
463
- data: __DocumentType;
464
- meta?: __DocumentType | undefined;
465
- }
466
- /**
467
- * @public
468
- */
469
- export interface WebsocketPresenceData {
470
- id?: string | undefined;
471
- company?: string | undefined;
472
- extension?: string | undefined;
473
- status?: string | undefined;
474
- telephony?: string | undefined;
475
- conference?: string | undefined;
476
- message?: string | undefined;
477
- until?: string | undefined;
478
- address?: string | undefined;
479
- lng?: string | undefined;
480
- lat?: string | undefined;
481
- seen?: string | undefined;
482
- }
483
- /**
484
- * @public
485
- */
486
- export interface WebsocketPresenceDataList {
487
- member?: WebsocketPresenceData | undefined;
488
- }
489
- /**
490
- * @public
491
- */
492
- export interface WebsocketPresenceBroadcastEvent {
493
- event: WebsocketEvent;
494
- topic: WebsocketTopic;
495
- delta?: WebsocketPresenceData | undefined;
496
- data?: WebsocketPresenceDataList | undefined;
497
- meta?: __DocumentType | undefined;
498
- }
499
- /**
500
- * @public
501
- */
502
- export interface WebsocketSubscribeBadRequestException {
503
- event?: string | undefined;
504
- requestId?: string | undefined;
505
- connectionId?: string | undefined;
506
- message?: string | undefined;
507
- code?: number | undefined;
508
- source?: WebsocketSubscribeAction | undefined;
509
- }
510
- /**
511
- * @public
512
- */
513
- export interface WebsocketSubscribedEvent {
514
- event: WebsocketEvent;
515
- connectionId: string;
516
- requestId: string;
517
- topic: WebsocketTopic;
518
- duration?: __DocumentType | undefined;
519
- }
520
- /**
521
- * @public
522
- */
523
- export interface WebsocketTranscriptionsBroadcastEvent {
524
- event: WebsocketEvent;
525
- topic: WebsocketTopic;
526
- data: __DocumentType;
527
- meta?: __DocumentType | undefined;
528
- }
529
- /**
530
- * @public
531
- */
532
- export interface WebsocketUnsubscribeBadRequestException {
533
- event?: string | undefined;
534
- requestId?: string | undefined;
535
- connectionId?: string | undefined;
536
- message?: string | undefined;
537
- code?: number | undefined;
538
- source?: WebsocketUnsubscribeAction | undefined;
539
- }
540
- /**
541
- * @public
542
- */
543
- export interface WebsocketUnsubscribedEvent {
544
- event: WebsocketEvent;
545
- connectionId: string;
546
- requestId: string;
547
- topic: WebsocketTopic;
548
- duration?: number | undefined;
549
- pending?: number | undefined;
550
- }
551
- /**
552
- * @public
553
- */
554
- export interface DescribeEventOutput {
555
- CallAnalyticsLiveProgressEvent?: CallAnalyticsLiveProgressEvent | undefined;
556
- CallAnalyticsLiveCompleteEvent?: CallAnalyticsLiveCompleteEvent | undefined;
557
- CallAnalyticsLiveInterruptedEvent?: CallAnalyticsLiveInterruptedEvent | undefined;
558
- CallAnalyticsLiveAnnotationEvent?: CallAnalyticsLiveAnnotationEvent | undefined;
559
- CallAnalyticsLiveTranscriptionEvent?: CallAnalyticsLiveTranscriptionEvent | undefined;
560
- CallAnalyticsRecordEvent?: CallAnalyticsRecordEvent | undefined;
561
- CallAnalyticsAnnotationsRecordEvent?: CallAnalyticsAnnotationsRecordEvent | undefined;
562
- CallAnalyticsTranscriptionRecordEvent?: CallAnalyticsTranscriptionRecordEvent | undefined;
563
- CallAnalyticsCostRecordEvent?: CallAnalyticsCostRecordEvent | undefined;
564
- ChatAnalyticsLiveCompleteEvent?: ChatAnalyticsLiveCompleteEvent | undefined;
565
- ChatAnalyticsLiveInterruptedEvent?: ChatAnalyticsLiveInterruptedEvent | undefined;
566
- ChatAnalyticsLiveAnnotationEvent?: ChatAnalyticsLiveAnnotationEvent | undefined;
567
- ChatAnalyticsLiveProgressEvent?: ChatAnalyticsLiveProgressEvent | undefined;
568
- ChatAnalyticsLiveTranscriptionEvent?: ChatAnalyticsLiveTranscriptionEvent | undefined;
569
- ChatAnalyticsManagerMissedEvent?: ChatAnalyticsManagerMissedEvent | undefined;
570
- ChatAnalyticsRecordEvent?: ChatAnalyticsRecordEvent | undefined;
571
- ChatAnalyticsAnnotationsRecordEvent?: ChatAnalyticsAnnotationsRecordEvent | undefined;
572
- ChatAnalyticsTranscriptionRecordEvent?: ChatAnalyticsTranscriptionRecordEvent | undefined;
573
- ConferenceAnalyticsLiveProgressEvent?: ConferenceAnalyticsLiveProgressEvent | undefined;
574
- ConferenceAnalyticsLiveCompleteEvent?: ConferenceAnalyticsLiveCompleteEvent | undefined;
575
- ConferenceAnalyticsLiveInterruptedEvent?: ConferenceAnalyticsLiveInterruptedEvent | undefined;
576
- ConferenceAnalyticsLiveAnnotationEvent?: ConferenceAnalyticsLiveAnnotationEvent | undefined;
577
- ConferenceAnalyticsLiveTranscriptionEvent?: ConferenceAnalyticsLiveTranscriptionEvent | undefined;
578
- ConferenceAnalyticsLiveJoinEvent?: ConferenceAnalyticsLiveJoinEvent | undefined;
579
- ConferenceAnalyticsLiveLeaveEvent?: ConferenceAnalyticsLiveLeaveEvent | undefined;
580
- ConferenceAnalyticsRecordEvent?: ConferenceAnalyticsRecordEvent | undefined;
581
- ConferenceAnalyticsAnnotationsRecordEvent?: ConferenceAnalyticsAnnotationsRecordEvent | undefined;
582
- ConferenceAnalyticsTranscriptionRecordEvent?: ConferenceAnalyticsTranscriptionRecordEvent | undefined;
583
- PresenceAnalyticsStatusEvent?: PresenceAnalyticsStatusEvent | undefined;
584
- PresenceAnalyticsConferenceEvent?: PresenceAnalyticsConferenceEvent | undefined;
585
- PresenceAnalyticsTelephonyEvent?: PresenceAnalyticsTelephonyEvent | undefined;
586
- WebsocketPresenceBroadcastEvent?: WebsocketPresenceBroadcastEvent | undefined;
587
- WebsocketConversationsBroadcastEvent?: WebsocketConversationsBroadcastEvent | undefined;
588
- WebsocketTranscriptionsBroadcastEvent?: WebsocketTranscriptionsBroadcastEvent | undefined;
589
- WebsocketAuthorizedEvent?: WebsocketAuthorizedEvent | undefined;
590
- WebsocketSubscribedEvent?: WebsocketSubscribedEvent | undefined;
591
- WebsocketUnsubscribedEvent?: WebsocketUnsubscribedEvent | undefined;
592
- WebsocketAuthorizeBadRequestException?: WebsocketAuthorizeBadRequestException | undefined;
593
- WebsocketSubscribeBadRequestException?: WebsocketSubscribeBadRequestException | undefined;
594
- WebsocketUnsubscribeBadRequestException?: WebsocketUnsubscribeBadRequestException | undefined;
595
- WebhookPresenceUserEvent?: WebhookPresenceUserEvent | undefined;
596
- WebhookPresenceTelephonyEvent?: WebhookPresenceTelephonyEvent | undefined;
597
- WebhookPresenceConferenceEvent?: WebhookPresenceConferenceEvent | undefined;
598
- WebhookCallLiveProgressEvent?: WebhookCallLiveProgressEvent | undefined;
599
- WebhookCallLiveCompletedEvent?: WebhookCallLiveCompletedEvent | undefined;
600
- WebhookCallLiveInterruptedEvent?: WebhookCallLiveInterruptedEvent | undefined;
601
- WebhookCallLiveAnnotationEvent?: WebhookCallLiveAnnotationEvent | undefined;
602
- WebhookCallLiveTranscriptionEvent?: WebhookCallLiveTranscriptionEvent | undefined;
603
- WebhookCallLiveRecordStartEvent?: WebhookCallLiveRecordStartEvent | undefined;
604
- WebhookCallLiveRecordStopEvent?: WebhookCallLiveRecordStopEvent | undefined;
605
- WebhookCallLiveRecordPauseEvent?: WebhookCallLiveRecordPauseEvent | undefined;
606
- WebhookCallLiveRecordUnpauseEvent?: WebhookCallLiveRecordUnpauseEvent | undefined;
607
- WebhookCallCompletedEvent?: WebhookCallCompletedEvent | undefined;
608
- WebhookCallTranscriptionCompletedEvent?: WebhookCallTranscriptionCompletedEvent | undefined;
609
- WebhookCallTranscriptionTextCompletedEvent?: WebhookCallTranscriptionTextCompletedEvent | undefined;
610
- WebhookCallAnnotationsCompletedEvent?: WebhookCallAnnotationsCompletedEvent | undefined;
611
- WebhookCallSummaryCompletedEvent?: WebhookCallSummaryCompletedEvent | undefined;
612
- WebhookConferenceLiveProgressEvent?: WebhookConferenceLiveProgressEvent | undefined;
613
- WebhookConferenceLiveCompletedEvent?: WebhookConferenceLiveCompletedEvent | undefined;
614
- WebhookConferenceLiveInterruptedEvent?: WebhookConferenceLiveInterruptedEvent | undefined;
615
- WebhookConferenceLiveAnnotationEvent?: WebhookConferenceLiveAnnotationEvent | undefined;
616
- WebhookConferenceLiveJoinEvent?: WebhookConferenceLiveJoinEvent | undefined;
617
- WebhookConferenceLiveLeaveEvent?: WebhookConferenceLiveLeaveEvent | undefined;
618
- WebhookConferenceLiveTranscriptionEvent?: WebhookConferenceLiveTranscriptionEvent | undefined;
619
- WebhookConferenceCompletedEvent?: WebhookConferenceCompletedEvent | undefined;
620
- WebhookConferenceTranscriptionCompletedEvent?: WebhookConferenceTranscriptionCompletedEvent | undefined;
621
- WebhookConferenceTranscriptionTextCompletedEvent?: WebhookConferenceTranscriptionTextCompletedEvent | undefined;
622
- WebhookConferenceAnnotationsCompletedEvent?: WebhookConferenceAnnotationsCompletedEvent | undefined;
623
- WebhookConferenceSummaryCompletedEvent?: WebhookConferenceSummaryCompletedEvent | undefined;
624
- WebhookServiceCallLiveProgressEvent?: WebhookServiceCallLiveProgressEvent | undefined;
625
- WebhookServiceCallLiveCompletedEvent?: WebhookServiceCallLiveCompletedEvent | undefined;
626
- WebhookChatLiveProgressEvent?: WebhookChatLiveProgressEvent | undefined;
627
- WebhookChatLiveCompletedEvent?: WebhookChatLiveCompletedEvent | undefined;
628
- WebhookChatLiveInterruptedEvent?: WebhookChatLiveInterruptedEvent | undefined;
629
- WebhookChatLiveAnnotationEvent?: WebhookChatLiveAnnotationEvent | undefined;
630
- WebhookChatManagerMissedEvent?: WebhookChatManagerMissedEvent | undefined;
631
- WebhookChatCompletedEvent?: WebhookChatCompletedEvent | undefined;
632
- WebhookChatAnnotationsCompletedEvent?: WebhookChatAnnotationsCompletedEvent | undefined;
633
- WebhookChatSummaryCompletedEvent?: WebhookChatSummaryCompletedEvent | undefined;
634
- WebhookOutdatedCallStartEvent?: WebhookOutdatedCallStartEvent | undefined;
635
- WebhookOutdatedCallUpdateEvent?: WebhookOutdatedCallUpdateEvent | undefined;
636
- WebhookOutdatedCallEndEvent?: WebhookOutdatedCallEndEvent | undefined;
637
- WebhookSmsStatusEvent?: WebhookSmsStatusEvent | undefined;
638
- WebhookWhatsAppStatusEvent?: WebhookWhatsAppStatusEvent | undefined;
639
- ServiceAnalyticsLiveProgressEvent?: ServiceAnalyticsLiveProgressEvent | undefined;
640
- ServiceAnalyticsLiveCompleteEvent?: ServiceAnalyticsLiveCompleteEvent | undefined;
641
- /**
642
- * Record representation of a service agent status update.
643
- * @public
644
- */
645
- ServiceAgentsStatusAnalyticsRecordEvent?: ServiceAgentsStatusAnalyticsRecordEvent | undefined;
646
- /**
647
- * Base service call structure.
648
- * @public
649
- */
650
- ServiceCallAnalyticsLiveProgressEvent?: ServiceCallAnalyticsLiveProgressEvent | undefined;
651
- /**
652
- * Base service call structure.
653
- * @public
654
- */
655
- ServiceCallAnalyticsLiveCompleteEvent?: ServiceCallAnalyticsLiveCompleteEvent | undefined;
656
- /**
657
- * Finalized record representation of a service call lifecycle, containing the full ordered sequence of lifecycle actions from queue entry to end.
658
- * @public
659
- */
660
- ServiceCallAnalyticsRecordEvent?: ServiceCallAnalyticsRecordEvent | undefined;
661
- CallEventType?: CallEventType | undefined;
662
- ConferenceEventType?: ConferenceEventType | undefined;
663
- ChatEventType?: ChatEventType | undefined;
664
- PresenceEventType?: PresenceEventType | undefined;
665
- ServiceEventType?: ServiceEventType | undefined;
666
- ServiceCallEventType?: ServiceCallEventType | undefined;
667
- }
668
- /**
669
- * @public
670
- */
671
- export interface GetConferenceIdInput {
672
- company?: string | undefined;
673
- channelId: string;
674
- }
675
- /**
676
- * @public
677
- */
678
- export interface GetConferenceIdOutput {
679
- id: string;
680
- }
681
- /**
682
- * @public
683
- */
684
- export declare class MatchNotFoundException extends __BaseException {
685
- readonly name: "MatchNotFoundException";
686
- readonly $fault: "client";
687
- /**
688
- * @internal
689
- */
690
- constructor(opts: __ExceptionOptionType<MatchNotFoundException, __BaseException>);
691
- }
692
- /**
693
- * @public
694
- */
695
- export interface GetOngoingCallInput {
696
- company?: string | undefined;
697
- callId: string;
698
- }
699
- /**
700
- * @public
701
- */
702
- export interface GetOngoingCallOutput {
703
- company: string;
704
- flows: (CallAnalyticsLiveProgressEventFlow)[];
705
- }
706
- /**
707
- * @public
708
- */
709
- export interface GetOngoingCallAnnotationsInput {
710
- company?: string | undefined;
711
- callId: string;
712
- }
713
- /**
714
- * @public
715
- */
716
- export interface GetOngoingCallAnnotationsOutput {
717
- company: string;
718
- flows: (CallAnalyticsLiveProgressEventFlow)[];
719
- annotations?: (CallAnalyticsLiveAnnotationEvent)[] | undefined;
720
- }
721
- /**
722
- * @public
723
- */
724
- export interface GetOngoingCallTranscriptionInput {
725
- company?: string | undefined;
726
- callId: string;
727
- }
728
- /**
729
- * @public
730
- */
731
- export interface GetOngoingCallTranscriptionOutput {
732
- company: string;
733
- flows: (CallAnalyticsLiveProgressEventFlow)[];
734
- transcriptions?: (CallAnalyticsLiveTranscriptionEvent)[] | undefined;
735
- }
736
- /**
737
- * @public
738
- */
739
- export interface GetOngoingChatAnnotationsInput {
740
- company?: string | undefined;
741
- chatId: string;
742
- }
743
- /**
744
- * @public
745
- */
746
- export interface GetOngoingChatAnnotationsOutput {
747
- chat: ChatAnalyticsLiveProgressEvent;
748
- annotations?: (ChatAnalyticsLiveAnnotationEvent)[] | undefined;
749
- }
750
- /**
751
- * @public
752
- */
753
- export interface GetOngoingConferenceInput {
754
- company?: string | undefined;
755
- conferenceId: string;
756
- }
757
- /**
758
- * @public
759
- */
760
- export interface GetOngoingConferenceOutput {
761
- conference: ConferenceAnalyticsLiveProgressEvent;
762
- }
763
- /**
764
- * @public
765
- */
766
- export interface GetOngoingConferenceAnnotationsInput {
767
- company?: string | undefined;
768
- conferenceId: string;
769
- }
770
- /**
771
- * @public
772
- */
773
- export interface GetOngoingConferenceAnnotationsOutput {
774
- conference: ConferenceAnalyticsLiveProgressEvent;
775
- annotations?: (ConferenceAnalyticsLiveAnnotationEvent)[] | undefined;
776
- }
777
- /**
778
- * @public
779
- */
780
- export interface GetOngoingConferenceTranscriptionInput {
781
- company?: string | undefined;
782
- conferenceId: string;
783
- }
784
- /**
785
- * @public
786
- */
787
- export interface GetOngoingConferenceTranscriptionOutput {
788
- conference: ConferenceAnalyticsLiveProgressEvent;
789
- transcriptions?: (ConferenceAnalyticsLiveTranscriptionEvent)[] | undefined;
790
- }
791
- /**
792
- * @public
793
- */
794
- export interface ListServicesFilter {
795
- pbx?: string | undefined;
796
- }
797
- /**
798
- * @public
799
- */
800
- export interface ListServicesInput {
801
- /**
802
- * The unique identifier of the company.
803
- * @public
804
- */
805
- company?: string | undefined;
806
- filter?: (ListServicesFilter)[] | undefined;
807
- }
808
- /**
809
- * Basic information about a service, used in list responses.
810
- * @public
811
- */
812
- export interface ServiceInfo {
813
- /**
814
- * The unique identifier of the service.
815
- * @public
816
- */
817
- id: string;
818
- /**
819
- * The display name of the service.
820
- * @public
821
- */
822
- name: string;
823
- /**
824
- * The PBX identifier of the service.
825
- * @public
826
- */
827
- pbx?: string | undefined;
828
- /**
829
- * ACL group identifier associated with the service.
830
- * @public
831
- */
832
- aclGroup?: string | undefined;
833
- }
834
- /**
835
- * @public
836
- */
837
- export interface ListServicesOutput {
838
- /**
839
- * List of active services with basic information.
840
- * @public
841
- */
842
- services: (ServiceInfo)[];
843
- }
844
- /**
845
- * @public
846
- * @enum
847
- */
848
- export declare const PresenceStatus: {
849
- readonly AWAY: "AWAY";
850
- readonly DND: "DND";
851
- readonly OFFLINE: "OFFLINE";
852
- readonly ONLINE: "ONLINE";
853
- readonly ONLY_SIP: "ONLY_SIP";
854
- };
855
- /**
856
- * @public
857
- */
858
- export type PresenceStatus = typeof PresenceStatus[keyof typeof PresenceStatus];
859
- /**
860
- * @public
861
- * @enum
862
- */
863
- export declare const TelephonyStatus: {
864
- readonly REGISTERED: "REGISTERED";
865
- readonly RINGING: "RINGING";
866
- readonly RT: "RT";
867
- readonly TALKING: "TALKING";
868
- readonly UNREGISTERED: "UNREGISTERED";
869
- };
870
- /**
871
- * @public
872
- */
873
- export type TelephonyStatus = typeof TelephonyStatus[keyof typeof TelephonyStatus];
874
- /**
875
- * @public
876
- */
877
- export interface Presence {
878
- /**
879
- * The unique identifier of the organization user belongs to (example: it_w119845).
880
- * @public
881
- */
882
- company?: string | undefined;
883
- /**
884
- * The user's geographic address (example: 1 Kynner Way, Binley, Coventry, CV3 2TU, England).
885
- * @public
886
- */
887
- address?: string | undefined;
888
- /**
889
- * The user extension (example: 2001)
890
- * @public
891
- */
892
- extension?: string | undefined;
893
- /**
894
- * The unique identifier of the user (example: F2P9tcKrYI9p).
895
- * @public
896
- */
897
- id?: string | undefined;
898
- /**
899
- * Longitude is the unit that represent the coordinates at geographic coordinate system (example: 35.5753).
900
- * @public
901
- */
902
- lng?: string | undefined;
903
- /**
904
- * Latitude is the unit that represent the coordinates at geographic coordinate system(example: 23.2954).
905
- * @public
906
- */
907
- lat?: string | undefined;
908
- /**
909
- * If it is defined, user status switches back to Available after the time (example: 2024-08-08T17:16:00Z).
910
- * @public
911
- */
912
- until?: string | undefined;
913
- /**
914
- * User status (example: AWAY)
915
- * @public
916
- */
917
- status?: PresenceStatus | undefined;
918
- /**
919
- * User status custom message (example: on vacation).
920
- * @public
921
- */
922
- message?: string | undefined;
923
- /**
924
- * User telephony status (example: TALKING)
925
- * @public
926
- */
927
- telephony?: TelephonyStatus | undefined;
928
- /**
929
- * The string shows the time the user was last seen. (example: 2024-08-08T17:16:00Z).
930
- * @public
931
- */
932
- seen?: string | undefined;
933
- }
934
- /**
935
- * @public
936
- */
937
- export declare class PresenceNotAvailableException extends __BaseException {
938
- readonly name: "PresenceNotAvailableException";
939
- readonly $fault: "client";
940
- /**
941
- * @internal
942
- */
943
- constructor(opts: __ExceptionOptionType<PresenceNotAvailableException, __BaseException>);
944
- }
945
- /**
946
- * @public
947
- */
948
- export interface PresenceQueryFilter {
949
- /**
950
- * The unique identifier of the user (example: F2P9tcKrYI9p).
951
- * @public
952
- */
953
- id?: string | undefined;
954
- /**
955
- * The unique identifier of the organization user belongs to (example: it_w119845).
956
- * @public
957
- */
958
- company?: string | undefined;
959
- /**
960
- * The user extension (example: 2001
961
- * @public
962
- */
963
- extension?: string | undefined;
964
- }
965
- /**
966
- * @public
967
- */
968
- export interface QueryConversationsInput {
969
- company?: string | undefined;
970
- /**
971
- * List of filters to match the user conversations list.
972
- * @public
973
- */
974
- filter?: (PresenceQueryFilter)[] | undefined;
975
- }
976
- /**
977
- * @public
978
- */
979
- export interface QueryConversationsOutput {
980
- calls: (CallAnalyticsLiveProgressEvent)[];
981
- conferences: (ConferenceAnalyticsLiveProgressEvent)[];
982
- chats: (ChatAnalyticsLiveProgressEvent)[];
983
- }
984
- /**
985
- * @public
986
- */
987
- export interface QueryPresenceInput {
988
- /**
989
- * The filter, to match a presence of certain user
990
- * @public
991
- */
992
- filter: PresenceQueryFilter;
993
- }
1
+ import type { Presence, PresenceQueryFilter } from "./models_0";
994
2
  /**
995
3
  * @public
996
4
  */
@@ -1009,7 +17,7 @@ export interface QueryPresencesInput {
1009
17
  * List of filters to match the user presence list.
1010
18
  * @public
1011
19
  */
1012
- filter: (PresenceQueryFilter)[];
20
+ filter: PresenceQueryFilter[];
1013
21
  }
1014
22
  /**
1015
23
  * @public
@@ -1019,7 +27,7 @@ export interface QueryPresencesOutput {
1019
27
  * A list of presences matched the filter. If filter does not match any presence the presence would not be added to the list.
1020
28
  * @public
1021
29
  */
1022
- presences: (Presence)[];
30
+ presences: Presence[];
1023
31
  }
1024
32
  /**
1025
33
  * @public