@stream-io/video-client 1.5.1 → 1.5.2
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/CHANGELOG.md +7 -0
- package/dist/index.browser.es.js +33 -11
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +33 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +33 -11
- package/dist/index.es.js.map +1 -1
- package/dist/src/gen/coordinator/index.d.ts +280 -62
- package/dist/src/store/CallState.d.ts +2 -0
- package/package.json +1 -1
- package/src/gen/coordinator/index.ts +283 -63
- package/src/store/CallState.ts +39 -19
- package/src/store/__tests__/CallState.test.ts +80 -6
|
@@ -189,7 +189,7 @@ export interface BackstageSettingsRequest {
|
|
|
189
189
|
*/
|
|
190
190
|
enabled?: boolean;
|
|
191
191
|
/**
|
|
192
|
-
*
|
|
192
|
+
*
|
|
193
193
|
* @type {number}
|
|
194
194
|
* @memberof BackstageSettingsRequest
|
|
195
195
|
*/
|
|
@@ -207,6 +207,12 @@ export interface BackstageSettingsResponse {
|
|
|
207
207
|
* @memberof BackstageSettingsResponse
|
|
208
208
|
*/
|
|
209
209
|
enabled: boolean;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {number}
|
|
213
|
+
* @memberof BackstageSettingsResponse
|
|
214
|
+
*/
|
|
215
|
+
join_ahead_time_seconds?: number;
|
|
210
216
|
}
|
|
211
217
|
/**
|
|
212
218
|
*
|
|
@@ -256,7 +262,7 @@ export interface BlockUserRequest {
|
|
|
256
262
|
*/
|
|
257
263
|
export interface BlockUserResponse {
|
|
258
264
|
/**
|
|
259
|
-
* Duration of the request in
|
|
265
|
+
* Duration of the request in milliseconds
|
|
260
266
|
* @type {string}
|
|
261
267
|
* @memberof BlockUserResponse
|
|
262
268
|
*/
|
|
@@ -860,6 +866,12 @@ export interface CallMissedEvent {
|
|
|
860
866
|
* @memberof CallMissedEvent
|
|
861
867
|
*/
|
|
862
868
|
members: Array<MemberResponse>;
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @type {boolean}
|
|
872
|
+
* @memberof CallMissedEvent
|
|
873
|
+
*/
|
|
874
|
+
notify_user: boolean;
|
|
863
875
|
/**
|
|
864
876
|
* Call session ID
|
|
865
877
|
* @type {string}
|
|
@@ -1208,6 +1220,12 @@ export interface CallRequest {
|
|
|
1208
1220
|
* @memberof CallRequest
|
|
1209
1221
|
*/
|
|
1210
1222
|
team?: string;
|
|
1223
|
+
/**
|
|
1224
|
+
*
|
|
1225
|
+
* @type {boolean}
|
|
1226
|
+
* @memberof CallRequest
|
|
1227
|
+
*/
|
|
1228
|
+
video?: boolean;
|
|
1211
1229
|
}
|
|
1212
1230
|
/**
|
|
1213
1231
|
* Represents a call
|
|
@@ -1283,6 +1301,12 @@ export interface CallResponse {
|
|
|
1283
1301
|
* @memberof CallResponse
|
|
1284
1302
|
*/
|
|
1285
1303
|
ingress: CallIngressResponse;
|
|
1304
|
+
/**
|
|
1305
|
+
*
|
|
1306
|
+
* @type {number}
|
|
1307
|
+
* @memberof CallResponse
|
|
1308
|
+
*/
|
|
1309
|
+
join_ahead_time_seconds?: number;
|
|
1286
1310
|
/**
|
|
1287
1311
|
*
|
|
1288
1312
|
* @type {boolean}
|
|
@@ -1386,6 +1410,12 @@ export interface CallRingEvent {
|
|
|
1386
1410
|
* @memberof CallRingEvent
|
|
1387
1411
|
*/
|
|
1388
1412
|
user: UserResponse;
|
|
1413
|
+
/**
|
|
1414
|
+
*
|
|
1415
|
+
* @type {boolean}
|
|
1416
|
+
* @memberof CallRingEvent
|
|
1417
|
+
*/
|
|
1418
|
+
video: boolean;
|
|
1389
1419
|
}
|
|
1390
1420
|
/**
|
|
1391
1421
|
* This event is sent when a call session ends
|
|
@@ -1424,6 +1454,51 @@ export interface CallSessionEndedEvent {
|
|
|
1424
1454
|
*/
|
|
1425
1455
|
type: string;
|
|
1426
1456
|
}
|
|
1457
|
+
/**
|
|
1458
|
+
* This event is sent when the participant counts in a call session are updated
|
|
1459
|
+
* @export
|
|
1460
|
+
* @interface CallSessionParticipantCountsUpdatedEvent
|
|
1461
|
+
*/
|
|
1462
|
+
export interface CallSessionParticipantCountsUpdatedEvent {
|
|
1463
|
+
/**
|
|
1464
|
+
*
|
|
1465
|
+
* @type {number}
|
|
1466
|
+
* @memberof CallSessionParticipantCountsUpdatedEvent
|
|
1467
|
+
*/
|
|
1468
|
+
anonymous_participant_count: number;
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @type {string}
|
|
1472
|
+
* @memberof CallSessionParticipantCountsUpdatedEvent
|
|
1473
|
+
*/
|
|
1474
|
+
call_cid: string;
|
|
1475
|
+
/**
|
|
1476
|
+
*
|
|
1477
|
+
* @type {string}
|
|
1478
|
+
* @memberof CallSessionParticipantCountsUpdatedEvent
|
|
1479
|
+
*/
|
|
1480
|
+
created_at: string;
|
|
1481
|
+
/**
|
|
1482
|
+
*
|
|
1483
|
+
* @type {{ [key: string]: number; }}
|
|
1484
|
+
* @memberof CallSessionParticipantCountsUpdatedEvent
|
|
1485
|
+
*/
|
|
1486
|
+
participants_count_by_role: {
|
|
1487
|
+
[key: string]: number;
|
|
1488
|
+
};
|
|
1489
|
+
/**
|
|
1490
|
+
* Call session ID
|
|
1491
|
+
* @type {string}
|
|
1492
|
+
* @memberof CallSessionParticipantCountsUpdatedEvent
|
|
1493
|
+
*/
|
|
1494
|
+
session_id: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* The type of event: "call.session_participant_count_updated" in this case
|
|
1497
|
+
* @type {string}
|
|
1498
|
+
* @memberof CallSessionParticipantCountsUpdatedEvent
|
|
1499
|
+
*/
|
|
1500
|
+
type: string;
|
|
1501
|
+
}
|
|
1427
1502
|
/**
|
|
1428
1503
|
* This event is sent when a participant joins a call session
|
|
1429
1504
|
* @export
|
|
@@ -1512,6 +1587,12 @@ export interface CallSessionResponse {
|
|
|
1512
1587
|
accepted_by: {
|
|
1513
1588
|
[key: string]: string;
|
|
1514
1589
|
};
|
|
1590
|
+
/**
|
|
1591
|
+
*
|
|
1592
|
+
* @type {number}
|
|
1593
|
+
* @memberof CallSessionResponse
|
|
1594
|
+
*/
|
|
1595
|
+
anonymous_participant_count: number;
|
|
1515
1596
|
/**
|
|
1516
1597
|
*
|
|
1517
1598
|
* @type {string}
|
|
@@ -2173,6 +2254,18 @@ export interface ChannelConfigWithInfo {
|
|
|
2173
2254
|
* @memberof ChannelConfigWithInfo
|
|
2174
2255
|
*/
|
|
2175
2256
|
name: string;
|
|
2257
|
+
/**
|
|
2258
|
+
*
|
|
2259
|
+
* @type {number}
|
|
2260
|
+
* @memberof ChannelConfigWithInfo
|
|
2261
|
+
*/
|
|
2262
|
+
partition_size?: number;
|
|
2263
|
+
/**
|
|
2264
|
+
*
|
|
2265
|
+
* @type {number}
|
|
2266
|
+
* @memberof ChannelConfigWithInfo
|
|
2267
|
+
*/
|
|
2268
|
+
partition_ttl?: number;
|
|
2176
2269
|
/**
|
|
2177
2270
|
*
|
|
2178
2271
|
* @type {boolean}
|
|
@@ -2649,7 +2742,7 @@ export interface CollectUserFeedbackRequest {
|
|
|
2649
2742
|
*/
|
|
2650
2743
|
export interface CollectUserFeedbackResponse {
|
|
2651
2744
|
/**
|
|
2652
|
-
* Duration of the request in
|
|
2745
|
+
* Duration of the request in milliseconds
|
|
2653
2746
|
* @type {string}
|
|
2654
2747
|
* @memberof CollectUserFeedbackResponse
|
|
2655
2748
|
*/
|
|
@@ -2843,25 +2936,25 @@ export interface Coordinates {
|
|
|
2843
2936
|
*/
|
|
2844
2937
|
export interface CreateDeviceRequest {
|
|
2845
2938
|
/**
|
|
2846
|
-
*
|
|
2939
|
+
* Device ID
|
|
2847
2940
|
* @type {string}
|
|
2848
2941
|
* @memberof CreateDeviceRequest
|
|
2849
2942
|
*/
|
|
2850
2943
|
id: string;
|
|
2851
2944
|
/**
|
|
2852
|
-
*
|
|
2945
|
+
* Push provider
|
|
2853
2946
|
* @type {string}
|
|
2854
2947
|
* @memberof CreateDeviceRequest
|
|
2855
2948
|
*/
|
|
2856
2949
|
push_provider: CreateDeviceRequestPushProviderEnum;
|
|
2857
2950
|
/**
|
|
2858
|
-
*
|
|
2951
|
+
* Push provider name
|
|
2859
2952
|
* @type {string}
|
|
2860
2953
|
* @memberof CreateDeviceRequest
|
|
2861
2954
|
*/
|
|
2862
2955
|
push_provider_name?: string;
|
|
2863
2956
|
/**
|
|
2864
|
-
*
|
|
2957
|
+
* When true the token is for Apple VoIP push notifications
|
|
2865
2958
|
* @type {boolean}
|
|
2866
2959
|
* @memberof CreateDeviceRequest
|
|
2867
2960
|
*/
|
|
@@ -2903,7 +2996,7 @@ export interface CreateGuestResponse {
|
|
|
2903
2996
|
*/
|
|
2904
2997
|
access_token: string;
|
|
2905
2998
|
/**
|
|
2906
|
-
*
|
|
2999
|
+
* Duration of the request in milliseconds
|
|
2907
3000
|
* @type {string}
|
|
2908
3001
|
* @memberof CreateGuestResponse
|
|
2909
3002
|
*/
|
|
@@ -3030,23 +3123,29 @@ export interface Device {
|
|
|
3030
3123
|
*/
|
|
3031
3124
|
disabled_reason?: string;
|
|
3032
3125
|
/**
|
|
3033
|
-
*
|
|
3126
|
+
* Device ID
|
|
3034
3127
|
* @type {string}
|
|
3035
3128
|
* @memberof Device
|
|
3036
3129
|
*/
|
|
3037
3130
|
id: string;
|
|
3038
3131
|
/**
|
|
3039
|
-
*
|
|
3132
|
+
* Push provider
|
|
3040
3133
|
* @type {string}
|
|
3041
3134
|
* @memberof Device
|
|
3042
3135
|
*/
|
|
3043
3136
|
push_provider: string;
|
|
3044
3137
|
/**
|
|
3045
|
-
*
|
|
3138
|
+
* Push provider name
|
|
3046
3139
|
* @type {string}
|
|
3047
3140
|
* @memberof Device
|
|
3048
3141
|
*/
|
|
3049
3142
|
push_provider_name?: string;
|
|
3143
|
+
/**
|
|
3144
|
+
* User ID
|
|
3145
|
+
* @type {string}
|
|
3146
|
+
* @memberof Device
|
|
3147
|
+
*/
|
|
3148
|
+
user_id: string;
|
|
3050
3149
|
/**
|
|
3051
3150
|
* When true the token is for Apple VoIP push notifications
|
|
3052
3151
|
* @type {boolean}
|
|
@@ -3352,7 +3451,7 @@ export interface GetCallStatsResponse {
|
|
|
3352
3451
|
*/
|
|
3353
3452
|
call_timeline?: CallTimeline;
|
|
3354
3453
|
/**
|
|
3355
|
-
* Duration of the request in
|
|
3454
|
+
* Duration of the request in milliseconds
|
|
3356
3455
|
* @type {string}
|
|
3357
3456
|
* @memberof GetCallStatsResponse
|
|
3358
3457
|
*/
|
|
@@ -3425,7 +3524,7 @@ export interface GetCallStatsResponse {
|
|
|
3425
3524
|
*/
|
|
3426
3525
|
export interface GetEdgesResponse {
|
|
3427
3526
|
/**
|
|
3428
|
-
* Duration of the request in
|
|
3527
|
+
* Duration of the request in milliseconds
|
|
3429
3528
|
* @type {string}
|
|
3430
3529
|
* @memberof GetEdgesResponse
|
|
3431
3530
|
*/
|
|
@@ -3467,6 +3566,12 @@ export interface GetOrCreateCallRequest {
|
|
|
3467
3566
|
* @memberof GetOrCreateCallRequest
|
|
3468
3567
|
*/
|
|
3469
3568
|
ring?: boolean;
|
|
3569
|
+
/**
|
|
3570
|
+
*
|
|
3571
|
+
* @type {boolean}
|
|
3572
|
+
* @memberof GetOrCreateCallRequest
|
|
3573
|
+
*/
|
|
3574
|
+
video?: boolean;
|
|
3470
3575
|
}
|
|
3471
3576
|
/**
|
|
3472
3577
|
*
|
|
@@ -3561,7 +3666,7 @@ export interface GoLiveResponse {
|
|
|
3561
3666
|
*/
|
|
3562
3667
|
call: CallResponse;
|
|
3563
3668
|
/**
|
|
3564
|
-
* Duration of the request in
|
|
3669
|
+
* Duration of the request in milliseconds
|
|
3565
3670
|
* @type {string}
|
|
3566
3671
|
* @memberof GoLiveResponse
|
|
3567
3672
|
*/
|
|
@@ -3727,6 +3832,12 @@ export interface JoinCallRequest {
|
|
|
3727
3832
|
* @memberof JoinCallRequest
|
|
3728
3833
|
*/
|
|
3729
3834
|
ring?: boolean;
|
|
3835
|
+
/**
|
|
3836
|
+
*
|
|
3837
|
+
* @type {boolean}
|
|
3838
|
+
* @memberof JoinCallRequest
|
|
3839
|
+
*/
|
|
3840
|
+
video?: boolean;
|
|
3730
3841
|
}
|
|
3731
3842
|
/**
|
|
3732
3843
|
*
|
|
@@ -4112,7 +4223,7 @@ export interface MuteUsersRequest {
|
|
|
4112
4223
|
*/
|
|
4113
4224
|
export interface MuteUsersResponse {
|
|
4114
4225
|
/**
|
|
4115
|
-
* Duration of the request in
|
|
4226
|
+
* Duration of the request in milliseconds
|
|
4116
4227
|
* @type {string}
|
|
4117
4228
|
* @memberof MuteUsersResponse
|
|
4118
4229
|
*/
|
|
@@ -4223,6 +4334,12 @@ export interface OwnUser {
|
|
|
4223
4334
|
* @memberof OwnUser
|
|
4224
4335
|
*/
|
|
4225
4336
|
banned: boolean;
|
|
4337
|
+
/**
|
|
4338
|
+
*
|
|
4339
|
+
* @type {Array<string>}
|
|
4340
|
+
* @memberof OwnUser
|
|
4341
|
+
*/
|
|
4342
|
+
blocked_user_ids?: Array<string>;
|
|
4226
4343
|
/**
|
|
4227
4344
|
*
|
|
4228
4345
|
* @type {Array<ChannelMute>}
|
|
@@ -4370,6 +4487,12 @@ export interface OwnUserResponse {
|
|
|
4370
4487
|
* @memberof OwnUserResponse
|
|
4371
4488
|
*/
|
|
4372
4489
|
banned: boolean;
|
|
4490
|
+
/**
|
|
4491
|
+
*
|
|
4492
|
+
* @type {Array<string>}
|
|
4493
|
+
* @memberof OwnUserResponse
|
|
4494
|
+
*/
|
|
4495
|
+
blocked_user_ids?: Array<string>;
|
|
4373
4496
|
/**
|
|
4374
4497
|
*
|
|
4375
4498
|
* @type {Array<ChannelMute>}
|
|
@@ -4446,10 +4569,10 @@ export interface OwnUserResponse {
|
|
|
4446
4569
|
latest_hidden_channels?: Array<string>;
|
|
4447
4570
|
/**
|
|
4448
4571
|
*
|
|
4449
|
-
* @type {Array<
|
|
4572
|
+
* @type {Array<UserMuteResponse>}
|
|
4450
4573
|
* @memberof OwnUserResponse
|
|
4451
4574
|
*/
|
|
4452
|
-
mutes: Array<
|
|
4575
|
+
mutes: Array<UserMuteResponse>;
|
|
4453
4576
|
/**
|
|
4454
4577
|
*
|
|
4455
4578
|
* @type {string}
|
|
@@ -4464,16 +4587,16 @@ export interface OwnUserResponse {
|
|
|
4464
4587
|
online: boolean;
|
|
4465
4588
|
/**
|
|
4466
4589
|
*
|
|
4467
|
-
* @type {
|
|
4590
|
+
* @type {PrivacySettingsResponse}
|
|
4468
4591
|
* @memberof OwnUserResponse
|
|
4469
4592
|
*/
|
|
4470
|
-
privacy_settings?:
|
|
4593
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
4471
4594
|
/**
|
|
4472
4595
|
*
|
|
4473
|
-
* @type {
|
|
4596
|
+
* @type {PushNotificationSettingsResponse}
|
|
4474
4597
|
* @memberof OwnUserResponse
|
|
4475
4598
|
*/
|
|
4476
|
-
push_notifications?:
|
|
4599
|
+
push_notifications?: PushNotificationSettingsResponse;
|
|
4477
4600
|
/**
|
|
4478
4601
|
*
|
|
4479
4602
|
* @type {string}
|
|
@@ -4562,13 +4685,13 @@ export interface PermissionRequestEvent {
|
|
|
4562
4685
|
*/
|
|
4563
4686
|
export interface PinRequest {
|
|
4564
4687
|
/**
|
|
4565
|
-
*
|
|
4688
|
+
* the session ID of the user who pinned the message
|
|
4566
4689
|
* @type {string}
|
|
4567
4690
|
* @memberof PinRequest
|
|
4568
4691
|
*/
|
|
4569
4692
|
session_id: string;
|
|
4570
4693
|
/**
|
|
4571
|
-
*
|
|
4694
|
+
* the user ID of the user who pinned the message
|
|
4572
4695
|
* @type {string}
|
|
4573
4696
|
* @memberof PinRequest
|
|
4574
4697
|
*/
|
|
@@ -4581,7 +4704,7 @@ export interface PinRequest {
|
|
|
4581
4704
|
*/
|
|
4582
4705
|
export interface PinResponse {
|
|
4583
4706
|
/**
|
|
4584
|
-
* Duration of the request in
|
|
4707
|
+
* Duration of the request in milliseconds
|
|
4585
4708
|
* @type {string}
|
|
4586
4709
|
* @memberof PinResponse
|
|
4587
4710
|
*/
|
|
@@ -4606,6 +4729,25 @@ export interface PrivacySettings {
|
|
|
4606
4729
|
*/
|
|
4607
4730
|
typing_indicators?: TypingIndicators;
|
|
4608
4731
|
}
|
|
4732
|
+
/**
|
|
4733
|
+
*
|
|
4734
|
+
* @export
|
|
4735
|
+
* @interface PrivacySettingsResponse
|
|
4736
|
+
*/
|
|
4737
|
+
export interface PrivacySettingsResponse {
|
|
4738
|
+
/**
|
|
4739
|
+
*
|
|
4740
|
+
* @type {ReadReceipts}
|
|
4741
|
+
* @memberof PrivacySettingsResponse
|
|
4742
|
+
*/
|
|
4743
|
+
read_receipts?: ReadReceipts;
|
|
4744
|
+
/**
|
|
4745
|
+
*
|
|
4746
|
+
* @type {TypingIndicators}
|
|
4747
|
+
* @memberof PrivacySettingsResponse
|
|
4748
|
+
*/
|
|
4749
|
+
typing_indicators?: TypingIndicators;
|
|
4750
|
+
}
|
|
4609
4751
|
/**
|
|
4610
4752
|
*
|
|
4611
4753
|
* @export
|
|
@@ -4669,6 +4811,25 @@ export interface PushNotificationSettingsInput {
|
|
|
4669
4811
|
*/
|
|
4670
4812
|
disabled_until?: NullTime;
|
|
4671
4813
|
}
|
|
4814
|
+
/**
|
|
4815
|
+
*
|
|
4816
|
+
* @export
|
|
4817
|
+
* @interface PushNotificationSettingsResponse
|
|
4818
|
+
*/
|
|
4819
|
+
export interface PushNotificationSettingsResponse {
|
|
4820
|
+
/**
|
|
4821
|
+
*
|
|
4822
|
+
* @type {boolean}
|
|
4823
|
+
* @memberof PushNotificationSettingsResponse
|
|
4824
|
+
*/
|
|
4825
|
+
disabled?: boolean;
|
|
4826
|
+
/**
|
|
4827
|
+
*
|
|
4828
|
+
* @type {string}
|
|
4829
|
+
* @memberof PushNotificationSettingsResponse
|
|
4830
|
+
*/
|
|
4831
|
+
disabled_until?: string;
|
|
4832
|
+
}
|
|
4672
4833
|
/**
|
|
4673
4834
|
*
|
|
4674
4835
|
* @export
|
|
@@ -4709,10 +4870,10 @@ export interface QueryCallMembersRequest {
|
|
|
4709
4870
|
prev?: string;
|
|
4710
4871
|
/**
|
|
4711
4872
|
*
|
|
4712
|
-
* @type {Array<
|
|
4873
|
+
* @type {Array<SortParamRequest>}
|
|
4713
4874
|
* @memberof QueryCallMembersRequest
|
|
4714
4875
|
*/
|
|
4715
|
-
sort?: Array<
|
|
4876
|
+
sort?: Array<SortParamRequest>;
|
|
4716
4877
|
/**
|
|
4717
4878
|
*
|
|
4718
4879
|
* @type {string}
|
|
@@ -4727,7 +4888,7 @@ export interface QueryCallMembersRequest {
|
|
|
4727
4888
|
*/
|
|
4728
4889
|
export interface QueryCallMembersResponse {
|
|
4729
4890
|
/**
|
|
4730
|
-
* Duration of the request in
|
|
4891
|
+
* Duration of the request in milliseconds
|
|
4731
4892
|
* @type {string}
|
|
4732
4893
|
* @memberof QueryCallMembersResponse
|
|
4733
4894
|
*/
|
|
@@ -4785,10 +4946,10 @@ export interface QueryCallStatsRequest {
|
|
|
4785
4946
|
prev?: string;
|
|
4786
4947
|
/**
|
|
4787
4948
|
*
|
|
4788
|
-
* @type {Array<
|
|
4949
|
+
* @type {Array<SortParamRequest>}
|
|
4789
4950
|
* @memberof QueryCallStatsRequest
|
|
4790
4951
|
*/
|
|
4791
|
-
sort?: Array<
|
|
4952
|
+
sort?: Array<SortParamRequest>;
|
|
4792
4953
|
}
|
|
4793
4954
|
/**
|
|
4794
4955
|
*
|
|
@@ -4797,7 +4958,7 @@ export interface QueryCallStatsRequest {
|
|
|
4797
4958
|
*/
|
|
4798
4959
|
export interface QueryCallStatsResponse {
|
|
4799
4960
|
/**
|
|
4800
|
-
* Duration of the request in
|
|
4961
|
+
* Duration of the request in milliseconds
|
|
4801
4962
|
* @type {string}
|
|
4802
4963
|
* @memberof QueryCallStatsResponse
|
|
4803
4964
|
*/
|
|
@@ -4855,10 +5016,10 @@ export interface QueryCallsRequest {
|
|
|
4855
5016
|
prev?: string;
|
|
4856
5017
|
/**
|
|
4857
5018
|
*
|
|
4858
|
-
* @type {Array<
|
|
5019
|
+
* @type {Array<SortParamRequest>}
|
|
4859
5020
|
* @memberof QueryCallsRequest
|
|
4860
5021
|
*/
|
|
4861
|
-
sort?: Array<
|
|
5022
|
+
sort?: Array<SortParamRequest>;
|
|
4862
5023
|
/**
|
|
4863
5024
|
*
|
|
4864
5025
|
* @type {boolean}
|
|
@@ -4879,7 +5040,7 @@ export interface QueryCallsResponse {
|
|
|
4879
5040
|
*/
|
|
4880
5041
|
calls: Array<CallStateResponseFields>;
|
|
4881
5042
|
/**
|
|
4882
|
-
*
|
|
5043
|
+
* Duration of the request in milliseconds
|
|
4883
5044
|
* @type {string}
|
|
4884
5045
|
* @memberof QueryCallsResponse
|
|
4885
5046
|
*/
|
|
@@ -5090,7 +5251,7 @@ export interface RequestPermissionResponse {
|
|
|
5090
5251
|
*/
|
|
5091
5252
|
export interface Response {
|
|
5092
5253
|
/**
|
|
5093
|
-
* Duration of the request in
|
|
5254
|
+
* Duration of the request in milliseconds
|
|
5094
5255
|
* @type {string}
|
|
5095
5256
|
* @memberof Response
|
|
5096
5257
|
*/
|
|
@@ -5314,7 +5475,7 @@ export interface SendReactionRequest {
|
|
|
5314
5475
|
*/
|
|
5315
5476
|
export interface SendReactionResponse {
|
|
5316
5477
|
/**
|
|
5317
|
-
* Duration of the request in
|
|
5478
|
+
* Duration of the request in milliseconds
|
|
5318
5479
|
* @type {string}
|
|
5319
5480
|
* @memberof SendReactionResponse
|
|
5320
5481
|
*/
|
|
@@ -5329,19 +5490,19 @@ export interface SendReactionResponse {
|
|
|
5329
5490
|
/**
|
|
5330
5491
|
*
|
|
5331
5492
|
* @export
|
|
5332
|
-
* @interface
|
|
5493
|
+
* @interface SortParamRequest
|
|
5333
5494
|
*/
|
|
5334
|
-
export interface
|
|
5495
|
+
export interface SortParamRequest {
|
|
5335
5496
|
/**
|
|
5336
|
-
* Direction of sorting,
|
|
5497
|
+
* Direction of sorting, 1 for Ascending, -1 for Descending, default is 1
|
|
5337
5498
|
* @type {number}
|
|
5338
|
-
* @memberof
|
|
5499
|
+
* @memberof SortParamRequest
|
|
5339
5500
|
*/
|
|
5340
5501
|
direction?: number;
|
|
5341
5502
|
/**
|
|
5342
5503
|
* Name of field to sort by
|
|
5343
5504
|
* @type {string}
|
|
5344
|
-
* @memberof
|
|
5505
|
+
* @memberof SortParamRequest
|
|
5345
5506
|
*/
|
|
5346
5507
|
field?: string;
|
|
5347
5508
|
}
|
|
@@ -5352,7 +5513,7 @@ export interface SortParam {
|
|
|
5352
5513
|
*/
|
|
5353
5514
|
export interface StartHLSBroadcastingResponse {
|
|
5354
5515
|
/**
|
|
5355
|
-
* Duration of the request in
|
|
5516
|
+
* Duration of the request in milliseconds
|
|
5356
5517
|
* @type {string}
|
|
5357
5518
|
* @memberof StartHLSBroadcastingResponse
|
|
5358
5519
|
*/
|
|
@@ -5455,7 +5616,7 @@ export interface StatsOptions {
|
|
|
5455
5616
|
*/
|
|
5456
5617
|
export interface StopHLSBroadcastingResponse {
|
|
5457
5618
|
/**
|
|
5458
|
-
* Duration of the request in
|
|
5619
|
+
* Duration of the request in milliseconds
|
|
5459
5620
|
* @type {string}
|
|
5460
5621
|
* @memberof StopHLSBroadcastingResponse
|
|
5461
5622
|
*/
|
|
@@ -5474,7 +5635,7 @@ export interface StopLiveResponse {
|
|
|
5474
5635
|
*/
|
|
5475
5636
|
call: CallResponse;
|
|
5476
5637
|
/**
|
|
5477
|
-
* Duration of the request in
|
|
5638
|
+
* Duration of the request in milliseconds
|
|
5478
5639
|
* @type {string}
|
|
5479
5640
|
* @memberof StopLiveResponse
|
|
5480
5641
|
*/
|
|
@@ -5487,7 +5648,7 @@ export interface StopLiveResponse {
|
|
|
5487
5648
|
*/
|
|
5488
5649
|
export interface StopRecordingResponse {
|
|
5489
5650
|
/**
|
|
5490
|
-
* Duration of the request in
|
|
5651
|
+
* Duration of the request in milliseconds
|
|
5491
5652
|
* @type {string}
|
|
5492
5653
|
* @memberof StopRecordingResponse
|
|
5493
5654
|
*/
|
|
@@ -5500,7 +5661,7 @@ export interface StopRecordingResponse {
|
|
|
5500
5661
|
*/
|
|
5501
5662
|
export interface StopTranscriptionResponse {
|
|
5502
5663
|
/**
|
|
5503
|
-
* Duration of the request in
|
|
5664
|
+
* Duration of the request in milliseconds
|
|
5504
5665
|
* @type {string}
|
|
5505
5666
|
* @memberof StopTranscriptionResponse
|
|
5506
5667
|
*/
|
|
@@ -5727,7 +5888,7 @@ export interface UnblockUserRequest {
|
|
|
5727
5888
|
*/
|
|
5728
5889
|
export interface UnblockUserResponse {
|
|
5729
5890
|
/**
|
|
5730
|
-
* Duration of the request in
|
|
5891
|
+
* Duration of the request in milliseconds
|
|
5731
5892
|
* @type {string}
|
|
5732
5893
|
* @memberof UnblockUserResponse
|
|
5733
5894
|
*/
|
|
@@ -5772,13 +5933,13 @@ export interface UnblockedUserEvent {
|
|
|
5772
5933
|
*/
|
|
5773
5934
|
export interface UnpinRequest {
|
|
5774
5935
|
/**
|
|
5775
|
-
*
|
|
5936
|
+
* the session ID of the user who pinned the message
|
|
5776
5937
|
* @type {string}
|
|
5777
5938
|
* @memberof UnpinRequest
|
|
5778
5939
|
*/
|
|
5779
5940
|
session_id: string;
|
|
5780
5941
|
/**
|
|
5781
|
-
*
|
|
5942
|
+
* the user ID of the user who pinned the message
|
|
5782
5943
|
* @type {string}
|
|
5783
5944
|
* @memberof UnpinRequest
|
|
5784
5945
|
*/
|
|
@@ -5791,7 +5952,7 @@ export interface UnpinRequest {
|
|
|
5791
5952
|
*/
|
|
5792
5953
|
export interface UnpinResponse {
|
|
5793
5954
|
/**
|
|
5794
|
-
* Duration of the request in
|
|
5955
|
+
* Duration of the request in milliseconds
|
|
5795
5956
|
* @type {string}
|
|
5796
5957
|
* @memberof UnpinResponse
|
|
5797
5958
|
*/
|
|
@@ -5823,7 +5984,7 @@ export interface UpdateCallMembersRequest {
|
|
|
5823
5984
|
*/
|
|
5824
5985
|
export interface UpdateCallMembersResponse {
|
|
5825
5986
|
/**
|
|
5826
|
-
* Duration of the request in
|
|
5987
|
+
* Duration of the request in milliseconds
|
|
5827
5988
|
* @type {string}
|
|
5828
5989
|
* @memberof UpdateCallMembersResponse
|
|
5829
5990
|
*/
|
|
@@ -5931,7 +6092,7 @@ export interface UpdateUserPermissionsRequest {
|
|
|
5931
6092
|
*/
|
|
5932
6093
|
export interface UpdateUserPermissionsResponse {
|
|
5933
6094
|
/**
|
|
5934
|
-
* Duration of the request in
|
|
6095
|
+
* Duration of the request in milliseconds
|
|
5935
6096
|
* @type {string}
|
|
5936
6097
|
* @memberof UpdateUserPermissionsResponse
|
|
5937
6098
|
*/
|
|
@@ -6191,6 +6352,43 @@ export interface UserMute {
|
|
|
6191
6352
|
*/
|
|
6192
6353
|
user?: UserObject;
|
|
6193
6354
|
}
|
|
6355
|
+
/**
|
|
6356
|
+
*
|
|
6357
|
+
* @export
|
|
6358
|
+
* @interface UserMuteResponse
|
|
6359
|
+
*/
|
|
6360
|
+
export interface UserMuteResponse {
|
|
6361
|
+
/**
|
|
6362
|
+
*
|
|
6363
|
+
* @type {string}
|
|
6364
|
+
* @memberof UserMuteResponse
|
|
6365
|
+
*/
|
|
6366
|
+
created_at: string;
|
|
6367
|
+
/**
|
|
6368
|
+
*
|
|
6369
|
+
* @type {string}
|
|
6370
|
+
* @memberof UserMuteResponse
|
|
6371
|
+
*/
|
|
6372
|
+
expires?: string;
|
|
6373
|
+
/**
|
|
6374
|
+
*
|
|
6375
|
+
* @type {UserResponse}
|
|
6376
|
+
* @memberof UserMuteResponse
|
|
6377
|
+
*/
|
|
6378
|
+
target?: UserResponse;
|
|
6379
|
+
/**
|
|
6380
|
+
*
|
|
6381
|
+
* @type {string}
|
|
6382
|
+
* @memberof UserMuteResponse
|
|
6383
|
+
*/
|
|
6384
|
+
updated_at: string;
|
|
6385
|
+
/**
|
|
6386
|
+
*
|
|
6387
|
+
* @type {UserResponse}
|
|
6388
|
+
* @memberof UserMuteResponse
|
|
6389
|
+
*/
|
|
6390
|
+
user?: UserResponse;
|
|
6391
|
+
}
|
|
6194
6392
|
/**
|
|
6195
6393
|
*
|
|
6196
6394
|
* @export
|
|
@@ -6453,11 +6651,17 @@ export interface UserRequest {
|
|
|
6453
6651
|
*/
|
|
6454
6652
|
export interface UserResponse {
|
|
6455
6653
|
/**
|
|
6456
|
-
*
|
|
6654
|
+
* Whether a user is banned or not
|
|
6457
6655
|
* @type {boolean}
|
|
6458
6656
|
* @memberof UserResponse
|
|
6459
6657
|
*/
|
|
6460
6658
|
banned: boolean;
|
|
6659
|
+
/**
|
|
6660
|
+
*
|
|
6661
|
+
* @type {Array<string>}
|
|
6662
|
+
* @memberof UserResponse
|
|
6663
|
+
*/
|
|
6664
|
+
blocked_user_ids: Array<string>;
|
|
6461
6665
|
/**
|
|
6462
6666
|
* Date/time of creation
|
|
6463
6667
|
* @type {string}
|
|
@@ -6465,7 +6669,7 @@ export interface UserResponse {
|
|
|
6465
6669
|
*/
|
|
6466
6670
|
created_at: string;
|
|
6467
6671
|
/**
|
|
6468
|
-
*
|
|
6672
|
+
* Custom data for this object
|
|
6469
6673
|
* @type {{ [key: string]: any; }}
|
|
6470
6674
|
* @memberof UserResponse
|
|
6471
6675
|
*/
|
|
@@ -6473,7 +6677,7 @@ export interface UserResponse {
|
|
|
6473
6677
|
[key: string]: any;
|
|
6474
6678
|
};
|
|
6475
6679
|
/**
|
|
6476
|
-
*
|
|
6680
|
+
* Date of deactivation
|
|
6477
6681
|
* @type {string}
|
|
6478
6682
|
* @memberof UserResponse
|
|
6479
6683
|
*/
|
|
@@ -6485,7 +6689,7 @@ export interface UserResponse {
|
|
|
6485
6689
|
*/
|
|
6486
6690
|
deleted_at?: string;
|
|
6487
6691
|
/**
|
|
6488
|
-
*
|
|
6692
|
+
* Unique user identifier
|
|
6489
6693
|
* @type {string}
|
|
6490
6694
|
* @memberof UserResponse
|
|
6491
6695
|
*/
|
|
@@ -6497,43 +6701,43 @@ export interface UserResponse {
|
|
|
6497
6701
|
*/
|
|
6498
6702
|
image?: string;
|
|
6499
6703
|
/**
|
|
6500
|
-
*
|
|
6704
|
+
* Preferred language of a user
|
|
6501
6705
|
* @type {string}
|
|
6502
6706
|
* @memberof UserResponse
|
|
6503
6707
|
*/
|
|
6504
6708
|
language: string;
|
|
6505
6709
|
/**
|
|
6506
|
-
*
|
|
6710
|
+
* Date of last activity
|
|
6507
6711
|
* @type {string}
|
|
6508
6712
|
* @memberof UserResponse
|
|
6509
6713
|
*/
|
|
6510
6714
|
last_active?: string;
|
|
6511
6715
|
/**
|
|
6512
|
-
*
|
|
6716
|
+
* Optional name of user
|
|
6513
6717
|
* @type {string}
|
|
6514
6718
|
* @memberof UserResponse
|
|
6515
6719
|
*/
|
|
6516
6720
|
name?: string;
|
|
6517
6721
|
/**
|
|
6518
|
-
*
|
|
6722
|
+
* Whether a user online or not
|
|
6519
6723
|
* @type {boolean}
|
|
6520
6724
|
* @memberof UserResponse
|
|
6521
6725
|
*/
|
|
6522
6726
|
online: boolean;
|
|
6523
6727
|
/**
|
|
6524
|
-
*
|
|
6728
|
+
* Revocation date for tokens
|
|
6525
6729
|
* @type {string}
|
|
6526
6730
|
* @memberof UserResponse
|
|
6527
6731
|
*/
|
|
6528
6732
|
revoke_tokens_issued_before?: string;
|
|
6529
6733
|
/**
|
|
6530
|
-
*
|
|
6734
|
+
* Determines the set of user permissions
|
|
6531
6735
|
* @type {string}
|
|
6532
6736
|
* @memberof UserResponse
|
|
6533
6737
|
*/
|
|
6534
6738
|
role: string;
|
|
6535
6739
|
/**
|
|
6536
|
-
*
|
|
6740
|
+
* List of teams user is a part of
|
|
6537
6741
|
* @type {Array<string>}
|
|
6538
6742
|
* @memberof UserResponse
|
|
6539
6743
|
*/
|
|
@@ -6847,6 +7051,12 @@ export interface UserSessionStats {
|
|
|
6847
7051
|
* @memberof UserSessionStats
|
|
6848
7052
|
*/
|
|
6849
7053
|
total_pixels_out: number;
|
|
7054
|
+
/**
|
|
7055
|
+
*
|
|
7056
|
+
* @type {boolean}
|
|
7057
|
+
* @memberof UserSessionStats
|
|
7058
|
+
*/
|
|
7059
|
+
truncated?: boolean;
|
|
6850
7060
|
/**
|
|
6851
7061
|
*
|
|
6852
7062
|
* @type {string}
|
|
@@ -6952,6 +7162,12 @@ export interface UserUpdatedEvent {
|
|
|
6952
7162
|
* @memberof UserUpdatedEvent
|
|
6953
7163
|
*/
|
|
6954
7164
|
created_at: string;
|
|
7165
|
+
/**
|
|
7166
|
+
*
|
|
7167
|
+
* @type {string}
|
|
7168
|
+
* @memberof UserUpdatedEvent
|
|
7169
|
+
*/
|
|
7170
|
+
received_at?: string;
|
|
6955
7171
|
/**
|
|
6956
7172
|
*
|
|
6957
7173
|
* @type {string}
|
|
@@ -7178,6 +7394,8 @@ export type WSEvent = ({
|
|
|
7178
7394
|
} & CallRingEvent) | ({
|
|
7179
7395
|
type: 'call.session_ended';
|
|
7180
7396
|
} & CallSessionEndedEvent) | ({
|
|
7397
|
+
type: 'call.session_participant_count_updated';
|
|
7398
|
+
} & CallSessionParticipantCountsUpdatedEvent) | ({
|
|
7181
7399
|
type: 'call.session_participant_joined';
|
|
7182
7400
|
} & CallSessionParticipantJoinedEvent) | ({
|
|
7183
7401
|
type: 'call.session_participant_left';
|