@wildix/wda-stream-client 1.1.59 → 1.1.61
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.
- package/dist-cjs/models/models_0.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/ConsumeEventCommand.d.ts +62 -36
- package/dist-types/commands/DescribeEventCommand.d.ts +157 -74
- package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +2 -1
- package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -0
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -1
- package/dist-types/commands/GetOngoingChatAnnotationsCommand.d.ts +2 -2
- package/dist-types/commands/GetOngoingConferenceAnnotationsCommand.d.ts +2 -2
- package/dist-types/commands/GetOngoingConferenceCommand.d.ts +1 -1
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +2 -2
- package/dist-types/commands/ListServicesCommand.d.ts +1 -0
- package/dist-types/commands/QueryConversationsCommand.d.ts +4 -3
- package/dist-types/models/models_0.d.ts +439 -65
- package/dist-types/models/models_1.d.ts +42 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/package.json +1 -1
|
@@ -582,6 +582,11 @@ export interface CallRecord {
|
|
|
582
582
|
trunkDirection?: string | undefined;
|
|
583
583
|
queueName?: string | undefined;
|
|
584
584
|
queueId?: string | undefined;
|
|
585
|
+
/**
|
|
586
|
+
* Position of the call in the queue (1-based). Updated from consume events and emitted on live progress and record flows.
|
|
587
|
+
* @public
|
|
588
|
+
*/
|
|
589
|
+
queuePosition?: number | undefined;
|
|
585
590
|
tags?: (string)[] | undefined;
|
|
586
591
|
flags?: (string)[] | undefined;
|
|
587
592
|
callerMos?: string | undefined;
|
|
@@ -1590,6 +1595,7 @@ export declare const LiveEventType: {
|
|
|
1590
1595
|
readonly CONFERENCE_TRANSCRIPTION: "conference_transcription";
|
|
1591
1596
|
readonly SERVICE: "service";
|
|
1592
1597
|
readonly SERVICE_AGENT: "service_agent";
|
|
1598
|
+
readonly SERVICE_AGENT_STATUS: "service_agent_status";
|
|
1593
1599
|
readonly SERVICE_CALL: "service_call";
|
|
1594
1600
|
readonly SERVICE_CALL_COMPLETE: "service_call_complete";
|
|
1595
1601
|
readonly SERVICE_COMPLETE: "service_complete";
|
|
@@ -1756,6 +1762,11 @@ export interface CallAnalyticsLiveProgressEventFlow {
|
|
|
1756
1762
|
trunkDirection?: string | undefined;
|
|
1757
1763
|
queueName?: string | undefined;
|
|
1758
1764
|
queueId?: string | undefined;
|
|
1765
|
+
/**
|
|
1766
|
+
* Position of the call in the queue (1-based). Updated from consume events and emitted on live progress and record flows.
|
|
1767
|
+
* @public
|
|
1768
|
+
*/
|
|
1769
|
+
queuePosition?: number | undefined;
|
|
1759
1770
|
tags?: (string)[] | undefined;
|
|
1760
1771
|
flags?: (string)[] | undefined;
|
|
1761
1772
|
callerMos?: string | undefined;
|
|
@@ -1915,6 +1926,11 @@ export interface CallAnalyticsRecordEventFlow {
|
|
|
1915
1926
|
trunkDirection?: string | undefined;
|
|
1916
1927
|
queueName?: string | undefined;
|
|
1917
1928
|
queueId?: string | undefined;
|
|
1929
|
+
/**
|
|
1930
|
+
* Position of the call in the queue (1-based). Updated from consume events and emitted on live progress and record flows.
|
|
1931
|
+
* @public
|
|
1932
|
+
*/
|
|
1933
|
+
queuePosition?: number | undefined;
|
|
1918
1934
|
tags?: (string)[] | undefined;
|
|
1919
1935
|
flags?: (string)[] | undefined;
|
|
1920
1936
|
callerMos?: string | undefined;
|
|
@@ -2285,6 +2301,11 @@ export interface CallSplitConsumeEventData {
|
|
|
2285
2301
|
serviceNumber?: string | undefined;
|
|
2286
2302
|
trunk?: CallFlowConsumeTrunk | undefined;
|
|
2287
2303
|
queue?: CallFlowConsumeQueue | undefined;
|
|
2304
|
+
/**
|
|
2305
|
+
* Position of the call in the queue (1-based).
|
|
2306
|
+
* @public
|
|
2307
|
+
*/
|
|
2308
|
+
queuePosition?: number | undefined;
|
|
2288
2309
|
tags?: (string)[] | undefined;
|
|
2289
2310
|
flags?: (string)[] | undefined;
|
|
2290
2311
|
sipCallId?: string | undefined;
|
|
@@ -2317,6 +2338,11 @@ export interface CallStartConsumeEventData {
|
|
|
2317
2338
|
serviceNumber?: string | undefined;
|
|
2318
2339
|
trunk?: CallFlowConsumeTrunk | undefined;
|
|
2319
2340
|
queue?: CallFlowConsumeQueue | undefined;
|
|
2341
|
+
/**
|
|
2342
|
+
* Position of the call in the queue (1-based).
|
|
2343
|
+
* @public
|
|
2344
|
+
*/
|
|
2345
|
+
queuePosition?: number | undefined;
|
|
2320
2346
|
tags?: (string)[] | undefined;
|
|
2321
2347
|
flags?: (string)[] | undefined;
|
|
2322
2348
|
sipCallId?: string | undefined;
|
|
@@ -2370,6 +2396,11 @@ export interface CallUpdateConsumeEventData {
|
|
|
2370
2396
|
serviceNumber?: string | undefined;
|
|
2371
2397
|
trunk?: CallFlowConsumeTrunk | undefined;
|
|
2372
2398
|
queue?: CallFlowConsumeQueue | undefined;
|
|
2399
|
+
/**
|
|
2400
|
+
* Position of the call in the queue (1-based).
|
|
2401
|
+
* @public
|
|
2402
|
+
*/
|
|
2403
|
+
queuePosition?: number | undefined;
|
|
2373
2404
|
tags?: (string)[] | undefined;
|
|
2374
2405
|
flags?: (string)[] | undefined;
|
|
2375
2406
|
sipCallId?: string | undefined;
|
|
@@ -3206,9 +3237,14 @@ export interface ServiceAgentConsumeEventData {
|
|
|
3206
3237
|
penalty?: string | undefined;
|
|
3207
3238
|
type?: ServiceAgentType | undefined;
|
|
3208
3239
|
paused?: boolean | undefined;
|
|
3240
|
+
status?: string | undefined;
|
|
3241
|
+
reason?: string | undefined;
|
|
3242
|
+
message?: string | undefined;
|
|
3209
3243
|
lastQueueCallEnd?: number | undefined;
|
|
3210
3244
|
userExtension?: string | undefined;
|
|
3245
|
+
department?: string | undefined;
|
|
3211
3246
|
name?: string | undefined;
|
|
3247
|
+
aclGroup?: string | undefined;
|
|
3212
3248
|
}
|
|
3213
3249
|
/**
|
|
3214
3250
|
* @public
|
|
@@ -3233,9 +3269,17 @@ export type ServiceConsumeEventType = typeof ServiceConsumeEventType[keyof typeo
|
|
|
3233
3269
|
* @public
|
|
3234
3270
|
*/
|
|
3235
3271
|
export interface ServiceAgentJoinConsumeEvent {
|
|
3272
|
+
/**
|
|
3273
|
+
* The unique identifier of the service.
|
|
3274
|
+
* @public
|
|
3275
|
+
*/
|
|
3236
3276
|
id: string;
|
|
3237
|
-
|
|
3277
|
+
/**
|
|
3278
|
+
* The PBX identifier of the service.
|
|
3279
|
+
* @public
|
|
3280
|
+
*/
|
|
3238
3281
|
pbx: string;
|
|
3282
|
+
time: number;
|
|
3239
3283
|
company: string;
|
|
3240
3284
|
type: ServiceConsumeEventType;
|
|
3241
3285
|
data: ServiceAgentConsumeEventData;
|
|
@@ -3244,9 +3288,17 @@ export interface ServiceAgentJoinConsumeEvent {
|
|
|
3244
3288
|
* @public
|
|
3245
3289
|
*/
|
|
3246
3290
|
export interface ServiceAgentLeaveConsumeEvent {
|
|
3291
|
+
/**
|
|
3292
|
+
* The unique identifier of the service.
|
|
3293
|
+
* @public
|
|
3294
|
+
*/
|
|
3247
3295
|
id: string;
|
|
3248
|
-
|
|
3296
|
+
/**
|
|
3297
|
+
* The PBX identifier of the service.
|
|
3298
|
+
* @public
|
|
3299
|
+
*/
|
|
3249
3300
|
pbx: string;
|
|
3301
|
+
time: number;
|
|
3250
3302
|
company: string;
|
|
3251
3303
|
type: ServiceConsumeEventType;
|
|
3252
3304
|
data: ServiceAgentConsumeEventData;
|
|
@@ -3255,9 +3307,17 @@ export interface ServiceAgentLeaveConsumeEvent {
|
|
|
3255
3307
|
* @public
|
|
3256
3308
|
*/
|
|
3257
3309
|
export interface ServiceAgentUpdateConsumeEvent {
|
|
3310
|
+
/**
|
|
3311
|
+
* The unique identifier of the service.
|
|
3312
|
+
* @public
|
|
3313
|
+
*/
|
|
3258
3314
|
id: string;
|
|
3259
|
-
|
|
3315
|
+
/**
|
|
3316
|
+
* The PBX identifier of the service.
|
|
3317
|
+
* @public
|
|
3318
|
+
*/
|
|
3260
3319
|
pbx: string;
|
|
3320
|
+
time: number;
|
|
3261
3321
|
company: string;
|
|
3262
3322
|
type: ServiceConsumeEventType;
|
|
3263
3323
|
data: ServiceAgentConsumeEventData;
|
|
@@ -3269,43 +3329,69 @@ export interface ServiceAgentUpdateConsumeEvent {
|
|
|
3269
3329
|
export declare const ServiceCallAction: {
|
|
3270
3330
|
readonly ANSWER: "ANSWER";
|
|
3271
3331
|
readonly CANCEL: "CANCEL";
|
|
3332
|
+
readonly END: "END";
|
|
3333
|
+
readonly INIT: "INIT";
|
|
3272
3334
|
readonly REJECT: "REJECT";
|
|
3273
3335
|
readonly RING: "RING";
|
|
3336
|
+
readonly WAIT: "WAIT";
|
|
3274
3337
|
};
|
|
3275
3338
|
/**
|
|
3276
3339
|
* @public
|
|
3277
3340
|
*/
|
|
3278
3341
|
export type ServiceCallAction = typeof ServiceCallAction[keyof typeof ServiceCallAction];
|
|
3279
3342
|
/**
|
|
3280
|
-
*
|
|
3281
|
-
*/
|
|
3282
|
-
export interface ServiceCustomer {
|
|
3283
|
-
phone: string;
|
|
3284
|
-
name?: string | undefined;
|
|
3285
|
-
}
|
|
3286
|
-
/**
|
|
3287
|
-
* Service call data shared by live events and record representation.
|
|
3343
|
+
* Base service call structure.
|
|
3288
3344
|
* @public
|
|
3289
3345
|
*/
|
|
3290
3346
|
export interface ServiceCallConsumeEventData {
|
|
3347
|
+
/**
|
|
3348
|
+
* Action performed at this step (e.g., INIT, RING, CANCEL, ANSWER, END).
|
|
3349
|
+
* It's optional, can be absent in case some service call fields updated, while action is not changed.
|
|
3350
|
+
* @public
|
|
3351
|
+
*/
|
|
3352
|
+
action?: ServiceCallAction | undefined;
|
|
3353
|
+
/**
|
|
3354
|
+
* Optional human-readable reason (e.g., 'timeout', 'Normal call clearing').
|
|
3355
|
+
* @public
|
|
3356
|
+
*/
|
|
3357
|
+
reason?: string | undefined;
|
|
3358
|
+
/**
|
|
3359
|
+
* Agents related to this action (typically those ringing/answering/cancelling).
|
|
3360
|
+
* @public
|
|
3361
|
+
*/
|
|
3362
|
+
relatedAgents?: (string)[] | undefined;
|
|
3363
|
+
/**
|
|
3364
|
+
* Identifier of the call this record describes.
|
|
3365
|
+
* @public
|
|
3366
|
+
*/
|
|
3291
3367
|
callId: string;
|
|
3368
|
+
/**
|
|
3369
|
+
* Index of a call segment inside one call session. A call can have several flows after CALL.SPLIT (transfer, redirect, etc.)
|
|
3370
|
+
* @public
|
|
3371
|
+
*/
|
|
3372
|
+
flowId?: number | undefined;
|
|
3292
3373
|
startTime?: number | undefined;
|
|
3293
3374
|
direction?: CallDirection | undefined;
|
|
3294
|
-
action?: ServiceCallAction | undefined;
|
|
3295
|
-
customer?: ServiceCustomer | undefined;
|
|
3296
|
-
relatedAgents?: (string)[] | undefined;
|
|
3297
3375
|
}
|
|
3298
3376
|
/**
|
|
3299
3377
|
* @public
|
|
3300
3378
|
*/
|
|
3301
3379
|
export interface ServiceCallEndConsumeEvent {
|
|
3380
|
+
/**
|
|
3381
|
+
* The unique identifier of the service.
|
|
3382
|
+
* @public
|
|
3383
|
+
*/
|
|
3302
3384
|
id: string;
|
|
3303
|
-
|
|
3385
|
+
/**
|
|
3386
|
+
* The PBX identifier of the service.
|
|
3387
|
+
* @public
|
|
3388
|
+
*/
|
|
3304
3389
|
pbx: string;
|
|
3390
|
+
time: number;
|
|
3305
3391
|
company: string;
|
|
3306
3392
|
type: ServiceConsumeEventType;
|
|
3307
3393
|
/**
|
|
3308
|
-
*
|
|
3394
|
+
* Base service call structure.
|
|
3309
3395
|
* @public
|
|
3310
3396
|
*/
|
|
3311
3397
|
data: ServiceCallConsumeEventData;
|
|
@@ -3314,13 +3400,21 @@ export interface ServiceCallEndConsumeEvent {
|
|
|
3314
3400
|
* @public
|
|
3315
3401
|
*/
|
|
3316
3402
|
export interface ServiceCallInitConsumeEvent {
|
|
3403
|
+
/**
|
|
3404
|
+
* The unique identifier of the service.
|
|
3405
|
+
* @public
|
|
3406
|
+
*/
|
|
3317
3407
|
id: string;
|
|
3318
|
-
|
|
3408
|
+
/**
|
|
3409
|
+
* The PBX identifier of the service.
|
|
3410
|
+
* @public
|
|
3411
|
+
*/
|
|
3319
3412
|
pbx: string;
|
|
3413
|
+
time: number;
|
|
3320
3414
|
company: string;
|
|
3321
3415
|
type: ServiceConsumeEventType;
|
|
3322
3416
|
/**
|
|
3323
|
-
*
|
|
3417
|
+
* Base service call structure.
|
|
3324
3418
|
* @public
|
|
3325
3419
|
*/
|
|
3326
3420
|
data: ServiceCallConsumeEventData;
|
|
@@ -3329,13 +3423,21 @@ export interface ServiceCallInitConsumeEvent {
|
|
|
3329
3423
|
* @public
|
|
3330
3424
|
*/
|
|
3331
3425
|
export interface ServiceCallUpdateConsumeEvent {
|
|
3426
|
+
/**
|
|
3427
|
+
* The unique identifier of the service.
|
|
3428
|
+
* @public
|
|
3429
|
+
*/
|
|
3332
3430
|
id: string;
|
|
3333
|
-
|
|
3431
|
+
/**
|
|
3432
|
+
* The PBX identifier of the service.
|
|
3433
|
+
* @public
|
|
3434
|
+
*/
|
|
3334
3435
|
pbx: string;
|
|
3436
|
+
time: number;
|
|
3335
3437
|
company: string;
|
|
3336
3438
|
type: ServiceConsumeEventType;
|
|
3337
3439
|
/**
|
|
3338
|
-
*
|
|
3440
|
+
* Base service call structure.
|
|
3339
3441
|
* @public
|
|
3340
3442
|
*/
|
|
3341
3443
|
data: ServiceCallConsumeEventData;
|
|
@@ -3344,9 +3446,17 @@ export interface ServiceCallUpdateConsumeEvent {
|
|
|
3344
3446
|
* @public
|
|
3345
3447
|
*/
|
|
3346
3448
|
export interface ServiceEndConsumeEvent {
|
|
3449
|
+
/**
|
|
3450
|
+
* The unique identifier of the service.
|
|
3451
|
+
* @public
|
|
3452
|
+
*/
|
|
3347
3453
|
id: string;
|
|
3348
|
-
|
|
3454
|
+
/**
|
|
3455
|
+
* The PBX identifier of the service.
|
|
3456
|
+
* @public
|
|
3457
|
+
*/
|
|
3349
3458
|
pbx: string;
|
|
3459
|
+
time: number;
|
|
3350
3460
|
company: string;
|
|
3351
3461
|
type: ServiceConsumeEventType;
|
|
3352
3462
|
}
|
|
@@ -3358,18 +3468,45 @@ export interface ServiceAgent {
|
|
|
3358
3468
|
penalty?: string | undefined;
|
|
3359
3469
|
type?: ServiceAgentType | undefined;
|
|
3360
3470
|
paused?: boolean | undefined;
|
|
3471
|
+
status?: string | undefined;
|
|
3472
|
+
reason?: string | undefined;
|
|
3473
|
+
message?: string | undefined;
|
|
3361
3474
|
lastQueueCallEnd?: number | undefined;
|
|
3362
3475
|
userExtension?: string | undefined;
|
|
3476
|
+
department?: string | undefined;
|
|
3363
3477
|
name?: string | undefined;
|
|
3478
|
+
aclGroup?: string | undefined;
|
|
3364
3479
|
}
|
|
3365
3480
|
/**
|
|
3366
3481
|
* @public
|
|
3367
3482
|
*/
|
|
3368
3483
|
export interface ServiceConsumeEventData {
|
|
3369
|
-
|
|
3484
|
+
/**
|
|
3485
|
+
* The display name of the service.
|
|
3486
|
+
* @public
|
|
3487
|
+
*/
|
|
3488
|
+
name: string;
|
|
3489
|
+
/**
|
|
3490
|
+
* Call distribution strategy inside the service (e.g., 'ringall', 'linear', 'rrmemory')
|
|
3491
|
+
* @public
|
|
3492
|
+
*/
|
|
3370
3493
|
strategy?: string | undefined;
|
|
3371
3494
|
maxCalls?: string | undefined;
|
|
3495
|
+
/**
|
|
3496
|
+
* Defines the service priority among other services in terms of call distribution to an agent
|
|
3497
|
+
* @public
|
|
3498
|
+
*/
|
|
3372
3499
|
weight?: string | undefined;
|
|
3500
|
+
/**
|
|
3501
|
+
* PBX timeZone (e.g., 'Europe/Kyiv').
|
|
3502
|
+
* @public
|
|
3503
|
+
*/
|
|
3504
|
+
timeZone?: string | undefined;
|
|
3505
|
+
/**
|
|
3506
|
+
* ACL group identifier associated with the service.
|
|
3507
|
+
* @public
|
|
3508
|
+
*/
|
|
3509
|
+
aclGroup?: string | undefined;
|
|
3373
3510
|
agents?: (ServiceAgent)[] | undefined;
|
|
3374
3511
|
calls?: (string)[] | undefined;
|
|
3375
3512
|
}
|
|
@@ -3377,9 +3514,17 @@ export interface ServiceConsumeEventData {
|
|
|
3377
3514
|
* @public
|
|
3378
3515
|
*/
|
|
3379
3516
|
export interface ServiceInitConsumeEvent {
|
|
3517
|
+
/**
|
|
3518
|
+
* The unique identifier of the service.
|
|
3519
|
+
* @public
|
|
3520
|
+
*/
|
|
3380
3521
|
id: string;
|
|
3381
|
-
|
|
3522
|
+
/**
|
|
3523
|
+
* The PBX identifier of the service.
|
|
3524
|
+
* @public
|
|
3525
|
+
*/
|
|
3382
3526
|
pbx: string;
|
|
3527
|
+
time: number;
|
|
3383
3528
|
company: string;
|
|
3384
3529
|
type: ServiceConsumeEventType;
|
|
3385
3530
|
data: ServiceConsumeEventData;
|
|
@@ -3388,9 +3533,17 @@ export interface ServiceInitConsumeEvent {
|
|
|
3388
3533
|
* @public
|
|
3389
3534
|
*/
|
|
3390
3535
|
export interface ServiceUpdateConsumeEvent {
|
|
3536
|
+
/**
|
|
3537
|
+
* The unique identifier of the service.
|
|
3538
|
+
* @public
|
|
3539
|
+
*/
|
|
3391
3540
|
id: string;
|
|
3392
|
-
|
|
3541
|
+
/**
|
|
3542
|
+
* The PBX identifier of the service.
|
|
3543
|
+
* @public
|
|
3544
|
+
*/
|
|
3393
3545
|
pbx: string;
|
|
3546
|
+
time: number;
|
|
3394
3547
|
company: string;
|
|
3395
3548
|
type: ServiceConsumeEventType;
|
|
3396
3549
|
data: ServiceConsumeEventData;
|
|
@@ -6113,15 +6266,76 @@ export declare const PresenceEventType: {
|
|
|
6113
6266
|
* @public
|
|
6114
6267
|
*/
|
|
6115
6268
|
export type PresenceEventType = typeof PresenceEventType[keyof typeof PresenceEventType];
|
|
6269
|
+
/**
|
|
6270
|
+
* Record representation of a service agent status update.
|
|
6271
|
+
* @public
|
|
6272
|
+
*/
|
|
6273
|
+
export interface ServiceAgentsStatusAnalyticsRecordEvent {
|
|
6274
|
+
/**
|
|
6275
|
+
* The unique identifier of the service.
|
|
6276
|
+
* @public
|
|
6277
|
+
*/
|
|
6278
|
+
id: string;
|
|
6279
|
+
/**
|
|
6280
|
+
* The PBX identifier of the service.
|
|
6281
|
+
* @public
|
|
6282
|
+
*/
|
|
6283
|
+
pbx: string;
|
|
6284
|
+
time: number;
|
|
6285
|
+
company: string;
|
|
6286
|
+
/**
|
|
6287
|
+
* The display name of the service.
|
|
6288
|
+
* @public
|
|
6289
|
+
*/
|
|
6290
|
+
name: string;
|
|
6291
|
+
/**
|
|
6292
|
+
* Call distribution strategy inside the service (e.g., 'ringall', 'linear', 'rrmemory')
|
|
6293
|
+
* @public
|
|
6294
|
+
*/
|
|
6295
|
+
strategy?: string | undefined;
|
|
6296
|
+
maxCalls?: string | undefined;
|
|
6297
|
+
/**
|
|
6298
|
+
* Defines the service priority among other services in terms of call distribution to an agent
|
|
6299
|
+
* @public
|
|
6300
|
+
*/
|
|
6301
|
+
weight?: string | undefined;
|
|
6302
|
+
/**
|
|
6303
|
+
* PBX timeZone (e.g., 'Europe/Kyiv').
|
|
6304
|
+
* @public
|
|
6305
|
+
*/
|
|
6306
|
+
timeZone?: string | undefined;
|
|
6307
|
+
/**
|
|
6308
|
+
* ACL group identifier associated with the service.
|
|
6309
|
+
* @public
|
|
6310
|
+
*/
|
|
6311
|
+
aclGroup?: string | undefined;
|
|
6312
|
+
/**
|
|
6313
|
+
* Type discriminator; always 'service_agent_status' for this event.
|
|
6314
|
+
* @public
|
|
6315
|
+
*/
|
|
6316
|
+
type: LiveEventType;
|
|
6317
|
+
/**
|
|
6318
|
+
* List of agent objects for which status was recorded.
|
|
6319
|
+
* @public
|
|
6320
|
+
*/
|
|
6321
|
+
agents: (ServiceAgent)[];
|
|
6322
|
+
}
|
|
6116
6323
|
/**
|
|
6117
6324
|
* @public
|
|
6118
6325
|
*/
|
|
6119
6326
|
export interface ServiceAnalyticsLiveCompleteEvent {
|
|
6327
|
+
/**
|
|
6328
|
+
* The unique identifier of the service.
|
|
6329
|
+
* @public
|
|
6330
|
+
*/
|
|
6120
6331
|
id: string;
|
|
6332
|
+
/**
|
|
6333
|
+
* The PBX identifier of the service.
|
|
6334
|
+
* @public
|
|
6335
|
+
*/
|
|
6121
6336
|
pbx: string;
|
|
6122
6337
|
time: number;
|
|
6123
6338
|
company: string;
|
|
6124
|
-
licenses: (License)[];
|
|
6125
6339
|
event: LiveEventType;
|
|
6126
6340
|
}
|
|
6127
6341
|
/**
|
|
@@ -6147,22 +6361,27 @@ export type ServiceAnalyticsEventTrigger = typeof ServiceAnalyticsEventTrigger[k
|
|
|
6147
6361
|
* @public
|
|
6148
6362
|
*/
|
|
6149
6363
|
export interface ServiceAnalyticsLiveProgressEvent {
|
|
6364
|
+
/**
|
|
6365
|
+
* The unique identifier of the service.
|
|
6366
|
+
* @public
|
|
6367
|
+
*/
|
|
6150
6368
|
id: string;
|
|
6369
|
+
/**
|
|
6370
|
+
* The PBX identifier of the service.
|
|
6371
|
+
* @public
|
|
6372
|
+
*/
|
|
6151
6373
|
pbx: string;
|
|
6152
6374
|
time: number;
|
|
6153
6375
|
company: string;
|
|
6154
|
-
licenses: (License)[];
|
|
6155
|
-
event: LiveEventType;
|
|
6156
6376
|
/**
|
|
6157
|
-
*
|
|
6377
|
+
* The display name of the service.
|
|
6158
6378
|
* @public
|
|
6159
6379
|
*/
|
|
6160
|
-
|
|
6380
|
+
name: string;
|
|
6161
6381
|
/**
|
|
6162
|
-
*
|
|
6382
|
+
* Call distribution strategy inside the service (e.g., 'ringall', 'linear', 'rrmemory')
|
|
6163
6383
|
* @public
|
|
6164
6384
|
*/
|
|
6165
|
-
name?: string | undefined;
|
|
6166
6385
|
strategy?: string | undefined;
|
|
6167
6386
|
maxCalls?: string | undefined;
|
|
6168
6387
|
/**
|
|
@@ -6170,6 +6389,22 @@ export interface ServiceAnalyticsLiveProgressEvent {
|
|
|
6170
6389
|
* @public
|
|
6171
6390
|
*/
|
|
6172
6391
|
weight?: string | undefined;
|
|
6392
|
+
/**
|
|
6393
|
+
* PBX timeZone (e.g., 'Europe/Kyiv').
|
|
6394
|
+
* @public
|
|
6395
|
+
*/
|
|
6396
|
+
timeZone?: string | undefined;
|
|
6397
|
+
/**
|
|
6398
|
+
* ACL group identifier associated with the service.
|
|
6399
|
+
* @public
|
|
6400
|
+
*/
|
|
6401
|
+
aclGroup?: string | undefined;
|
|
6402
|
+
event: LiveEventType;
|
|
6403
|
+
/**
|
|
6404
|
+
* An original event that triggers current one.
|
|
6405
|
+
* @public
|
|
6406
|
+
*/
|
|
6407
|
+
eventTrigger: ServiceAnalyticsEventTrigger;
|
|
6173
6408
|
/**
|
|
6174
6409
|
* List of agents assigned to the service
|
|
6175
6410
|
* @public
|
|
@@ -6182,39 +6417,97 @@ export interface ServiceAnalyticsLiveProgressEvent {
|
|
|
6182
6417
|
calls?: (string)[] | undefined;
|
|
6183
6418
|
}
|
|
6184
6419
|
/**
|
|
6185
|
-
*
|
|
6420
|
+
* Base service call structure.
|
|
6186
6421
|
* @public
|
|
6187
6422
|
*/
|
|
6188
6423
|
export interface ServiceCallAnalyticsLiveCompleteEvent {
|
|
6424
|
+
/**
|
|
6425
|
+
* The unique identifier of the service.
|
|
6426
|
+
* @public
|
|
6427
|
+
*/
|
|
6189
6428
|
id: string;
|
|
6429
|
+
/**
|
|
6430
|
+
* The PBX identifier of the service.
|
|
6431
|
+
* @public
|
|
6432
|
+
*/
|
|
6190
6433
|
pbx: string;
|
|
6191
6434
|
time: number;
|
|
6192
6435
|
company: string;
|
|
6193
|
-
|
|
6436
|
+
/**
|
|
6437
|
+
* Action performed at this step (e.g., INIT, RING, CANCEL, ANSWER, END).
|
|
6438
|
+
* It's optional, can be absent in case some service call fields updated, while action is not changed.
|
|
6439
|
+
* @public
|
|
6440
|
+
*/
|
|
6441
|
+
action?: ServiceCallAction | undefined;
|
|
6442
|
+
/**
|
|
6443
|
+
* Optional human-readable reason (e.g., 'timeout', 'Normal call clearing').
|
|
6444
|
+
* @public
|
|
6445
|
+
*/
|
|
6446
|
+
reason?: string | undefined;
|
|
6447
|
+
/**
|
|
6448
|
+
* Agents related to this action (typically those ringing/answering/cancelling).
|
|
6449
|
+
* @public
|
|
6450
|
+
*/
|
|
6451
|
+
relatedAgents?: (string)[] | undefined;
|
|
6452
|
+
/**
|
|
6453
|
+
* Identifier of the call this record describes.
|
|
6454
|
+
* @public
|
|
6455
|
+
*/
|
|
6194
6456
|
callId: string;
|
|
6457
|
+
/**
|
|
6458
|
+
* Index of a call segment inside one call session. A call can have several flows after CALL.SPLIT (transfer, redirect, etc.)
|
|
6459
|
+
* @public
|
|
6460
|
+
*/
|
|
6461
|
+
flowId?: number | undefined;
|
|
6195
6462
|
startTime?: number | undefined;
|
|
6196
6463
|
direction?: CallDirection | undefined;
|
|
6197
|
-
action?: ServiceCallAction | undefined;
|
|
6198
|
-
customer?: ServiceCustomer | undefined;
|
|
6199
|
-
relatedAgents?: (string)[] | undefined;
|
|
6200
6464
|
event: LiveEventType;
|
|
6201
6465
|
}
|
|
6202
6466
|
/**
|
|
6203
|
-
*
|
|
6467
|
+
* Base service call structure.
|
|
6204
6468
|
* @public
|
|
6205
6469
|
*/
|
|
6206
6470
|
export interface ServiceCallAnalyticsLiveProgressEvent {
|
|
6471
|
+
/**
|
|
6472
|
+
* The unique identifier of the service.
|
|
6473
|
+
* @public
|
|
6474
|
+
*/
|
|
6207
6475
|
id: string;
|
|
6476
|
+
/**
|
|
6477
|
+
* The PBX identifier of the service.
|
|
6478
|
+
* @public
|
|
6479
|
+
*/
|
|
6208
6480
|
pbx: string;
|
|
6209
6481
|
time: number;
|
|
6210
6482
|
company: string;
|
|
6211
|
-
|
|
6483
|
+
/**
|
|
6484
|
+
* Action performed at this step (e.g., INIT, RING, CANCEL, ANSWER, END).
|
|
6485
|
+
* It's optional, can be absent in case some service call fields updated, while action is not changed.
|
|
6486
|
+
* @public
|
|
6487
|
+
*/
|
|
6488
|
+
action?: ServiceCallAction | undefined;
|
|
6489
|
+
/**
|
|
6490
|
+
* Optional human-readable reason (e.g., 'timeout', 'Normal call clearing').
|
|
6491
|
+
* @public
|
|
6492
|
+
*/
|
|
6493
|
+
reason?: string | undefined;
|
|
6494
|
+
/**
|
|
6495
|
+
* Agents related to this action (typically those ringing/answering/cancelling).
|
|
6496
|
+
* @public
|
|
6497
|
+
*/
|
|
6498
|
+
relatedAgents?: (string)[] | undefined;
|
|
6499
|
+
/**
|
|
6500
|
+
* Identifier of the call this record describes.
|
|
6501
|
+
* @public
|
|
6502
|
+
*/
|
|
6212
6503
|
callId: string;
|
|
6504
|
+
/**
|
|
6505
|
+
* Index of a call segment inside one call session. A call can have several flows after CALL.SPLIT (transfer, redirect, etc.)
|
|
6506
|
+
* @public
|
|
6507
|
+
*/
|
|
6508
|
+
flowId?: number | undefined;
|
|
6213
6509
|
startTime?: number | undefined;
|
|
6214
6510
|
direction?: CallDirection | undefined;
|
|
6215
|
-
action?: ServiceCallAction | undefined;
|
|
6216
|
-
customer?: ServiceCustomer | undefined;
|
|
6217
|
-
relatedAgents?: (string)[] | undefined;
|
|
6218
6511
|
event: LiveEventType;
|
|
6219
6512
|
/**
|
|
6220
6513
|
* An original event that triggers current one.
|
|
@@ -6222,6 +6515,109 @@ export interface ServiceCallAnalyticsLiveProgressEvent {
|
|
|
6222
6515
|
*/
|
|
6223
6516
|
eventTrigger: ServiceAnalyticsEventTrigger;
|
|
6224
6517
|
}
|
|
6518
|
+
/**
|
|
6519
|
+
* A single lifecycle entry inside ServiceCallAnalyticsRecordEvent.actions, capturing the original triggering event, the resulting action, and the agents involved at that moment.
|
|
6520
|
+
* @public
|
|
6521
|
+
*/
|
|
6522
|
+
export interface ServiceCallRecord {
|
|
6523
|
+
/**
|
|
6524
|
+
* Action performed at this step (e.g., INIT, RING, CANCEL, ANSWER, END).
|
|
6525
|
+
* It's optional, can be absent in case some service call fields updated, while action is not changed.
|
|
6526
|
+
* @public
|
|
6527
|
+
*/
|
|
6528
|
+
action?: ServiceCallAction | undefined;
|
|
6529
|
+
/**
|
|
6530
|
+
* Optional human-readable reason (e.g., 'timeout', 'Normal call clearing').
|
|
6531
|
+
* @public
|
|
6532
|
+
*/
|
|
6533
|
+
reason?: string | undefined;
|
|
6534
|
+
/**
|
|
6535
|
+
* Agents related to this action (typically those ringing/answering/cancelling).
|
|
6536
|
+
* @public
|
|
6537
|
+
*/
|
|
6538
|
+
relatedAgents?: (string)[] | undefined;
|
|
6539
|
+
/**
|
|
6540
|
+
* Time when the action was emitted (epoch ms).
|
|
6541
|
+
* @public
|
|
6542
|
+
*/
|
|
6543
|
+
time: number;
|
|
6544
|
+
/**
|
|
6545
|
+
* Original event that triggered this action.
|
|
6546
|
+
* @public
|
|
6547
|
+
*/
|
|
6548
|
+
eventTrigger: ServiceAnalyticsEventTrigger;
|
|
6549
|
+
}
|
|
6550
|
+
/**
|
|
6551
|
+
* Finalized record representation of a service call lifecycle, containing the full ordered sequence of lifecycle actions from queue entry to end.
|
|
6552
|
+
* @public
|
|
6553
|
+
*/
|
|
6554
|
+
export interface ServiceCallAnalyticsRecordEvent {
|
|
6555
|
+
/**
|
|
6556
|
+
* The unique identifier of the service.
|
|
6557
|
+
* @public
|
|
6558
|
+
*/
|
|
6559
|
+
id: string;
|
|
6560
|
+
/**
|
|
6561
|
+
* The PBX identifier of the service.
|
|
6562
|
+
* @public
|
|
6563
|
+
*/
|
|
6564
|
+
pbx: string;
|
|
6565
|
+
time: number;
|
|
6566
|
+
company: string;
|
|
6567
|
+
/**
|
|
6568
|
+
* The display name of the service.
|
|
6569
|
+
* @public
|
|
6570
|
+
*/
|
|
6571
|
+
name: string;
|
|
6572
|
+
/**
|
|
6573
|
+
* Call distribution strategy inside the service (e.g., 'ringall', 'linear', 'rrmemory')
|
|
6574
|
+
* @public
|
|
6575
|
+
*/
|
|
6576
|
+
strategy?: string | undefined;
|
|
6577
|
+
maxCalls?: string | undefined;
|
|
6578
|
+
/**
|
|
6579
|
+
* Defines the service priority among other services in terms of call distribution to an agent
|
|
6580
|
+
* @public
|
|
6581
|
+
*/
|
|
6582
|
+
weight?: string | undefined;
|
|
6583
|
+
/**
|
|
6584
|
+
* PBX timeZone (e.g., 'Europe/Kyiv').
|
|
6585
|
+
* @public
|
|
6586
|
+
*/
|
|
6587
|
+
timeZone?: string | undefined;
|
|
6588
|
+
/**
|
|
6589
|
+
* ACL group identifier associated with the service.
|
|
6590
|
+
* @public
|
|
6591
|
+
*/
|
|
6592
|
+
aclGroup?: string | undefined;
|
|
6593
|
+
/**
|
|
6594
|
+
* Identifier of the call this record describes.
|
|
6595
|
+
* @public
|
|
6596
|
+
*/
|
|
6597
|
+
callId: string;
|
|
6598
|
+
/**
|
|
6599
|
+
* Index of a call segment inside one call session. A call can have several flows after CALL.SPLIT (transfer, redirect, etc.)
|
|
6600
|
+
* @public
|
|
6601
|
+
*/
|
|
6602
|
+
flowId?: number | undefined;
|
|
6603
|
+
startTime?: number | undefined;
|
|
6604
|
+
direction?: CallDirection | undefined;
|
|
6605
|
+
/**
|
|
6606
|
+
* Type discriminator; always 'service_call' for this event.
|
|
6607
|
+
* @public
|
|
6608
|
+
*/
|
|
6609
|
+
type: LiveEventType;
|
|
6610
|
+
/**
|
|
6611
|
+
* Agents assigned to the service at record finalization time.
|
|
6612
|
+
* @public
|
|
6613
|
+
*/
|
|
6614
|
+
agents?: (ServiceAgent)[] | undefined;
|
|
6615
|
+
/**
|
|
6616
|
+
* Ordered list of lifecycle actions for the service call.
|
|
6617
|
+
* @public
|
|
6618
|
+
*/
|
|
6619
|
+
actions: (ServiceCallRecord)[];
|
|
6620
|
+
}
|
|
6225
6621
|
/**
|
|
6226
6622
|
* @public
|
|
6227
6623
|
* @enum
|
|
@@ -6229,6 +6625,7 @@ export interface ServiceCallAnalyticsLiveProgressEvent {
|
|
|
6229
6625
|
export declare const ServiceCallEventType: {
|
|
6230
6626
|
readonly LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent";
|
|
6231
6627
|
readonly LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent";
|
|
6628
|
+
readonly RECORD_EVENT: "ServiceCallAnalyticsRecordEvent";
|
|
6232
6629
|
};
|
|
6233
6630
|
/**
|
|
6234
6631
|
* @public
|
|
@@ -6239,6 +6636,7 @@ export type ServiceCallEventType = typeof ServiceCallEventType[keyof typeof Serv
|
|
|
6239
6636
|
* @enum
|
|
6240
6637
|
*/
|
|
6241
6638
|
export declare const ServiceEventType: {
|
|
6639
|
+
readonly AGENTS_STATUS_RECORD_EVENT: "ServiceAgentsStatusAnalyticsRecordEvent";
|
|
6242
6640
|
readonly LIVE_COMPLETE_EVENT: "ServiceAnalyticsLiveCompleteEvent";
|
|
6243
6641
|
readonly LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent";
|
|
6244
6642
|
};
|
|
@@ -6659,27 +7057,3 @@ export interface WebhookConferenceLiveCompletedEvent {
|
|
|
6659
7057
|
integrationId: string;
|
|
6660
7058
|
data: ConferenceAnalyticsLiveCompleteEvent;
|
|
6661
7059
|
}
|
|
6662
|
-
/**
|
|
6663
|
-
* @public
|
|
6664
|
-
*/
|
|
6665
|
-
export interface WebhookConferenceLiveInterruptedEvent {
|
|
6666
|
-
id: string;
|
|
6667
|
-
pbx?: string | undefined;
|
|
6668
|
-
company?: string | undefined;
|
|
6669
|
-
type: WebhookEventType;
|
|
6670
|
-
time: number;
|
|
6671
|
-
integrationId: string;
|
|
6672
|
-
data: ConferenceAnalyticsLiveInterruptedEvent;
|
|
6673
|
-
}
|
|
6674
|
-
/**
|
|
6675
|
-
* @public
|
|
6676
|
-
*/
|
|
6677
|
-
export interface WebhookConferenceLiveJoinEvent {
|
|
6678
|
-
id: string;
|
|
6679
|
-
pbx?: string | undefined;
|
|
6680
|
-
company?: string | undefined;
|
|
6681
|
-
type: WebhookEventType;
|
|
6682
|
-
time: number;
|
|
6683
|
-
integrationId: string;
|
|
6684
|
-
data: ConferenceAnalyticsLiveJoinEvent;
|
|
6685
|
-
}
|