@stream-io/video-client 1.11.15 → 1.12.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.
- package/CHANGELOG.md +14 -0
- package/dist/index.browser.es.js +18 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +18 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +18 -3
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamVideoClient.d.ts +8 -1
- package/dist/src/gen/coordinator/index.d.ts +354 -0
- package/dist/src/gen/shims.d.ts +38 -0
- package/package.json +1 -1
- package/src/Call.ts +5 -1
- package/src/StreamVideoClient.ts +17 -0
- package/src/gen/coordinator/index.ts +350 -1
- package/src/gen/shims.ts +40 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
import type { Bound, DailyAggregateCallStatsResponse } from '../shims';
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
*
|
|
5
8
|
* @export
|
|
@@ -490,6 +493,32 @@ export interface CallDeletedEvent {
|
|
|
490
493
|
*/
|
|
491
494
|
type: string;
|
|
492
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @export
|
|
499
|
+
* @interface CallDurationReportResponse
|
|
500
|
+
*/
|
|
501
|
+
export interface CallDurationReportResponse {
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @type {Array<DailyAggregateCallStatsResponse<CallDurationReport>>}
|
|
505
|
+
* @memberof CallDurationReportResponse
|
|
506
|
+
*/
|
|
507
|
+
daily: Array<DailyAggregateCallStatsResponse<CallDurationReport>>;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
* @export
|
|
512
|
+
* @interface CallDurationReport
|
|
513
|
+
*/
|
|
514
|
+
export interface CallDurationReport {
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @type {Array<ReportByHistogramBucket>}
|
|
518
|
+
* @memberof CallDurationReport
|
|
519
|
+
*/
|
|
520
|
+
histogram: Array<ReportByHistogramBucket>;
|
|
521
|
+
}
|
|
493
522
|
/**
|
|
494
523
|
* This event is sent when a call is mark as ended for all its participants. Clients receiving this event should leave the call screen
|
|
495
524
|
* @export
|
|
@@ -978,6 +1007,32 @@ export interface CallParticipantResponse {
|
|
|
978
1007
|
*/
|
|
979
1008
|
user_session_id: string;
|
|
980
1009
|
}
|
|
1010
|
+
/**
|
|
1011
|
+
*
|
|
1012
|
+
* @export
|
|
1013
|
+
* @interface CallParticipantCountReportResponse
|
|
1014
|
+
*/
|
|
1015
|
+
export interface CallParticipantCountReportResponse {
|
|
1016
|
+
/**
|
|
1017
|
+
*
|
|
1018
|
+
* @type {Array<DailyAggregateCallStatsResponse<CallParticipantCountReport>>}
|
|
1019
|
+
* @memberof CallParticipantCountReportResponse
|
|
1020
|
+
*/
|
|
1021
|
+
daily: Array<DailyAggregateCallStatsResponse<CallParticipantCountReport>>;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @export
|
|
1026
|
+
* @interface CallParticipantCountReport
|
|
1027
|
+
*/
|
|
1028
|
+
export interface CallParticipantCountReport {
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @type {Array<ReportByHistogramBucket>}
|
|
1032
|
+
* @memberof CallParticipantCountReport
|
|
1033
|
+
*/
|
|
1034
|
+
histogram: Array<ReportByHistogramBucket>;
|
|
1035
|
+
}
|
|
981
1036
|
/**
|
|
982
1037
|
* This event is sent when a reaction is sent in a call, clients should use this to show the reaction in the call screen
|
|
983
1038
|
* @export
|
|
@@ -1837,6 +1892,32 @@ export interface CallSettingsResponse {
|
|
|
1837
1892
|
*/
|
|
1838
1893
|
video: VideoSettingsResponse;
|
|
1839
1894
|
}
|
|
1895
|
+
/**
|
|
1896
|
+
*
|
|
1897
|
+
* @export
|
|
1898
|
+
* @interface CallsPerDayReportResponse
|
|
1899
|
+
*/
|
|
1900
|
+
export interface CallsPerDayReportResponse {
|
|
1901
|
+
/**
|
|
1902
|
+
*
|
|
1903
|
+
* @type {Array<DailyAggregateCallStatsResponse<CallsPerDayReport>>}
|
|
1904
|
+
* @memberof CallsPerDayReportResponse
|
|
1905
|
+
*/
|
|
1906
|
+
daily: Array<DailyAggregateCallStatsResponse<CallsPerDayReport>>;
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
*
|
|
1910
|
+
* @export
|
|
1911
|
+
* @interface CallsPerDayReport
|
|
1912
|
+
*/
|
|
1913
|
+
export interface CallsPerDayReport {
|
|
1914
|
+
/**
|
|
1915
|
+
*
|
|
1916
|
+
* @type {number}
|
|
1917
|
+
* @memberof CallsPerDayReport
|
|
1918
|
+
*/
|
|
1919
|
+
count: number;
|
|
1920
|
+
}
|
|
1840
1921
|
/**
|
|
1841
1922
|
*
|
|
1842
1923
|
* @export
|
|
@@ -3424,6 +3505,12 @@ export interface GetCallResponse {
|
|
|
3424
3505
|
* @interface GetCallStatsResponse
|
|
3425
3506
|
*/
|
|
3426
3507
|
export interface GetCallStatsResponse {
|
|
3508
|
+
/**
|
|
3509
|
+
*
|
|
3510
|
+
* @type {number}
|
|
3511
|
+
* @memberof GetCallStatsResponse
|
|
3512
|
+
*/
|
|
3513
|
+
average_connection_time?: number;
|
|
3427
3514
|
/**
|
|
3428
3515
|
*
|
|
3429
3516
|
* @type {number}
|
|
@@ -4217,6 +4304,37 @@ export interface MuteUsersResponse {
|
|
|
4217
4304
|
*/
|
|
4218
4305
|
duration: string;
|
|
4219
4306
|
}
|
|
4307
|
+
/**
|
|
4308
|
+
*
|
|
4309
|
+
* @export
|
|
4310
|
+
* @interface NetworkMetricsReportResponse
|
|
4311
|
+
*/
|
|
4312
|
+
export interface NetworkMetricsReportResponse {
|
|
4313
|
+
/**
|
|
4314
|
+
*
|
|
4315
|
+
* @type {number}
|
|
4316
|
+
* @memberof NetworkMetricsReportResponse
|
|
4317
|
+
*/
|
|
4318
|
+
average_connection_time?: number;
|
|
4319
|
+
/**
|
|
4320
|
+
*
|
|
4321
|
+
* @type {number}
|
|
4322
|
+
* @memberof NetworkMetricsReportResponse
|
|
4323
|
+
*/
|
|
4324
|
+
average_jitter?: number;
|
|
4325
|
+
/**
|
|
4326
|
+
*
|
|
4327
|
+
* @type {number}
|
|
4328
|
+
* @memberof NetworkMetricsReportResponse
|
|
4329
|
+
*/
|
|
4330
|
+
average_latency?: number;
|
|
4331
|
+
/**
|
|
4332
|
+
*
|
|
4333
|
+
* @type {number}
|
|
4334
|
+
* @memberof NetworkMetricsReportResponse
|
|
4335
|
+
*/
|
|
4336
|
+
average_time_to_reconnect?: number;
|
|
4337
|
+
}
|
|
4220
4338
|
/**
|
|
4221
4339
|
*
|
|
4222
4340
|
* @export
|
|
@@ -4667,6 +4785,25 @@ export interface PermissionRequestEvent {
|
|
|
4667
4785
|
*/
|
|
4668
4786
|
user: UserResponse;
|
|
4669
4787
|
}
|
|
4788
|
+
/**
|
|
4789
|
+
*
|
|
4790
|
+
* @export
|
|
4791
|
+
* @interface PerSDKUsageReport
|
|
4792
|
+
*/
|
|
4793
|
+
export interface PerSDKUsageReport {
|
|
4794
|
+
/**
|
|
4795
|
+
*
|
|
4796
|
+
* @type {{ [key: string]: number; }}
|
|
4797
|
+
* @memberof PerSDKUsageReport
|
|
4798
|
+
*/
|
|
4799
|
+
by_version: { [key: string]: number };
|
|
4800
|
+
/**
|
|
4801
|
+
*
|
|
4802
|
+
* @type {number}
|
|
4803
|
+
* @memberof PerSDKUsageReport
|
|
4804
|
+
*/
|
|
4805
|
+
total: number;
|
|
4806
|
+
}
|
|
4670
4807
|
/**
|
|
4671
4808
|
*
|
|
4672
4809
|
* @export
|
|
@@ -4820,7 +4957,112 @@ export interface PushNotificationSettingsResponse {
|
|
|
4820
4957
|
*/
|
|
4821
4958
|
disabled_until?: string;
|
|
4822
4959
|
}
|
|
4823
|
-
|
|
4960
|
+
/**
|
|
4961
|
+
*
|
|
4962
|
+
* @export
|
|
4963
|
+
* @interface QualityScoreReportResponse
|
|
4964
|
+
*/
|
|
4965
|
+
export interface QualityScoreReportResponse {
|
|
4966
|
+
/**
|
|
4967
|
+
*
|
|
4968
|
+
* @type {Array<DailyAggregateCallStatsResponse<QualityScoreReport>>}
|
|
4969
|
+
* @memberof QualityScoreReportResponse
|
|
4970
|
+
*/
|
|
4971
|
+
daily: Array<DailyAggregateCallStatsResponse<QualityScoreReport>>;
|
|
4972
|
+
}
|
|
4973
|
+
/**
|
|
4974
|
+
*
|
|
4975
|
+
* @export
|
|
4976
|
+
* @interface QualityScoreReport
|
|
4977
|
+
*/
|
|
4978
|
+
export interface QualityScoreReport {
|
|
4979
|
+
/**
|
|
4980
|
+
*
|
|
4981
|
+
* @type {Array<ReportByHistogramBucket>}
|
|
4982
|
+
* @memberof QualityScoreReport
|
|
4983
|
+
*/
|
|
4984
|
+
histogram: Array<ReportByHistogramBucket>;
|
|
4985
|
+
}
|
|
4986
|
+
/**
|
|
4987
|
+
*
|
|
4988
|
+
* @export
|
|
4989
|
+
* @interface QueryAggregateCallStatsRequest
|
|
4990
|
+
*/
|
|
4991
|
+
export interface QueryAggregateCallStatsRequest {
|
|
4992
|
+
/**
|
|
4993
|
+
*
|
|
4994
|
+
* @type {string}
|
|
4995
|
+
* @memberof QueryAggregateCallStatsRequest
|
|
4996
|
+
*/
|
|
4997
|
+
from?: string;
|
|
4998
|
+
/**
|
|
4999
|
+
*
|
|
5000
|
+
* @type {Array<string>}
|
|
5001
|
+
* @memberof QueryAggregateCallStatsRequest
|
|
5002
|
+
*/
|
|
5003
|
+
report_types?: Array<string>;
|
|
5004
|
+
/**
|
|
5005
|
+
*
|
|
5006
|
+
* @type {string}
|
|
5007
|
+
* @memberof QueryAggregateCallStatsRequest
|
|
5008
|
+
*/
|
|
5009
|
+
to?: string;
|
|
5010
|
+
}
|
|
5011
|
+
/**
|
|
5012
|
+
* Basic response information
|
|
5013
|
+
* @export
|
|
5014
|
+
* @interface QueryAggregateCallStatsResponse
|
|
5015
|
+
*/
|
|
5016
|
+
export interface QueryAggregateCallStatsResponse {
|
|
5017
|
+
/**
|
|
5018
|
+
*
|
|
5019
|
+
* @type {CallDurationReportResponse}
|
|
5020
|
+
* @memberof QueryAggregateCallStatsResponse
|
|
5021
|
+
*/
|
|
5022
|
+
call_duration_report?: CallDurationReportResponse;
|
|
5023
|
+
/**
|
|
5024
|
+
*
|
|
5025
|
+
* @type {CallParticipantCountReportResponse}
|
|
5026
|
+
* @memberof QueryAggregateCallStatsResponse
|
|
5027
|
+
*/
|
|
5028
|
+
call_participant_count_report?: CallParticipantCountReportResponse;
|
|
5029
|
+
/**
|
|
5030
|
+
*
|
|
5031
|
+
* @type {CallsPerDayReportResponse}
|
|
5032
|
+
* @memberof QueryAggregateCallStatsResponse
|
|
5033
|
+
*/
|
|
5034
|
+
calls_per_day_report?: CallsPerDayReportResponse;
|
|
5035
|
+
/**
|
|
5036
|
+
* Duration of the request in milliseconds
|
|
5037
|
+
* @type {string}
|
|
5038
|
+
* @memberof QueryAggregateCallStatsResponse
|
|
5039
|
+
*/
|
|
5040
|
+
duration: string;
|
|
5041
|
+
/**
|
|
5042
|
+
*
|
|
5043
|
+
* @type {NetworkMetricsReportResponse}
|
|
5044
|
+
* @memberof QueryAggregateCallStatsResponse
|
|
5045
|
+
*/
|
|
5046
|
+
network_metrics_report?: NetworkMetricsReportResponse;
|
|
5047
|
+
/**
|
|
5048
|
+
*
|
|
5049
|
+
* @type {QualityScoreReportResponse}
|
|
5050
|
+
* @memberof QueryAggregateCallStatsResponse
|
|
5051
|
+
*/
|
|
5052
|
+
quality_score_report?: QualityScoreReportResponse;
|
|
5053
|
+
/**
|
|
5054
|
+
*
|
|
5055
|
+
* @type {SDKUsageReportResponse}
|
|
5056
|
+
* @memberof QueryAggregateCallStatsResponse
|
|
5057
|
+
*/
|
|
5058
|
+
sdk_usage_report?: SDKUsageReportResponse;
|
|
5059
|
+
/**
|
|
5060
|
+
*
|
|
5061
|
+
* @type {UserFeedbackReportResponse}
|
|
5062
|
+
* @memberof QueryAggregateCallStatsResponse
|
|
5063
|
+
*/
|
|
5064
|
+
user_feedback_report?: UserFeedbackReportResponse;
|
|
5065
|
+
}
|
|
4824
5066
|
/**
|
|
4825
5067
|
*
|
|
4826
5068
|
* @export
|
|
@@ -5206,6 +5448,49 @@ export interface RejectCallResponse {
|
|
|
5206
5448
|
*/
|
|
5207
5449
|
duration: string;
|
|
5208
5450
|
}
|
|
5451
|
+
/**
|
|
5452
|
+
*
|
|
5453
|
+
* @export
|
|
5454
|
+
* @interface ReportByHistogramBucket
|
|
5455
|
+
*/
|
|
5456
|
+
export interface ReportByHistogramBucket {
|
|
5457
|
+
/**
|
|
5458
|
+
*
|
|
5459
|
+
* @type {string}
|
|
5460
|
+
* @memberof ReportByHistogramBucket
|
|
5461
|
+
*/
|
|
5462
|
+
category: string;
|
|
5463
|
+
/**
|
|
5464
|
+
*
|
|
5465
|
+
* @type {number}
|
|
5466
|
+
* @memberof ReportByHistogramBucket
|
|
5467
|
+
*/
|
|
5468
|
+
count: number;
|
|
5469
|
+
/**
|
|
5470
|
+
*
|
|
5471
|
+
* @type {Bound}
|
|
5472
|
+
* @memberof ReportByHistogramBucket
|
|
5473
|
+
*/
|
|
5474
|
+
lower_bound?: Bound;
|
|
5475
|
+
/**
|
|
5476
|
+
*
|
|
5477
|
+
* @type {number}
|
|
5478
|
+
* @memberof ReportByHistogramBucket
|
|
5479
|
+
*/
|
|
5480
|
+
mean: number;
|
|
5481
|
+
/**
|
|
5482
|
+
*
|
|
5483
|
+
* @type {number}
|
|
5484
|
+
* @memberof ReportByHistogramBucket
|
|
5485
|
+
*/
|
|
5486
|
+
sum: number;
|
|
5487
|
+
/**
|
|
5488
|
+
*
|
|
5489
|
+
* @type {Bound}
|
|
5490
|
+
* @memberof ReportByHistogramBucket
|
|
5491
|
+
*/
|
|
5492
|
+
upper_bound?: Bound;
|
|
5493
|
+
}
|
|
5209
5494
|
/**
|
|
5210
5495
|
*
|
|
5211
5496
|
* @export
|
|
@@ -5401,6 +5686,32 @@ export interface ScreensharingSettingsResponse {
|
|
|
5401
5686
|
*/
|
|
5402
5687
|
target_resolution?: TargetResolution;
|
|
5403
5688
|
}
|
|
5689
|
+
/**
|
|
5690
|
+
*
|
|
5691
|
+
* @export
|
|
5692
|
+
* @interface SDKUsageReportResponse
|
|
5693
|
+
*/
|
|
5694
|
+
export interface SDKUsageReportResponse {
|
|
5695
|
+
/**
|
|
5696
|
+
*
|
|
5697
|
+
* @type {Array<DailyAggregateCallStatsResponse<SDKUsageReport>>}
|
|
5698
|
+
* @memberof SDKUsageReportResponse
|
|
5699
|
+
*/
|
|
5700
|
+
daily: Array<DailyAggregateCallStatsResponse<SDKUsageReport>>;
|
|
5701
|
+
}
|
|
5702
|
+
/**
|
|
5703
|
+
*
|
|
5704
|
+
* @export
|
|
5705
|
+
* @interface SDKUsageReport
|
|
5706
|
+
*/
|
|
5707
|
+
export interface SDKUsageReport {
|
|
5708
|
+
/**
|
|
5709
|
+
*
|
|
5710
|
+
* @type {{ [key: string]: PerSDKUsageReport; }}
|
|
5711
|
+
* @memberof SDKUsageReport
|
|
5712
|
+
*/
|
|
5713
|
+
per_sdk_usage: { [key: string]: PerSDKUsageReport };
|
|
5714
|
+
}
|
|
5404
5715
|
/**
|
|
5405
5716
|
*
|
|
5406
5717
|
* @export
|
|
@@ -6270,6 +6581,38 @@ export interface UserDeletedEvent {
|
|
|
6270
6581
|
*/
|
|
6271
6582
|
user?: UserObject;
|
|
6272
6583
|
}
|
|
6584
|
+
/**
|
|
6585
|
+
*
|
|
6586
|
+
* @export
|
|
6587
|
+
* @interface UserFeedbackReportResponse
|
|
6588
|
+
*/
|
|
6589
|
+
export interface UserFeedbackReportResponse {
|
|
6590
|
+
/**
|
|
6591
|
+
*
|
|
6592
|
+
* @type {Array<DailyAggregateCallStatsResponse<UserFeedbackReport>>}
|
|
6593
|
+
* @memberof UserFeedbackReportResponse
|
|
6594
|
+
*/
|
|
6595
|
+
daily: Array<DailyAggregateCallStatsResponse<UserFeedbackReport>>;
|
|
6596
|
+
}
|
|
6597
|
+
/**
|
|
6598
|
+
*
|
|
6599
|
+
* @export
|
|
6600
|
+
* @interface UserFeedbackReport
|
|
6601
|
+
*/
|
|
6602
|
+
export interface UserFeedbackReport {
|
|
6603
|
+
/**
|
|
6604
|
+
*
|
|
6605
|
+
* @type {{ [key: string]: number; }}
|
|
6606
|
+
* @memberof UserFeedbackReport
|
|
6607
|
+
*/
|
|
6608
|
+
count_by_rating: { [key: string]: number };
|
|
6609
|
+
/**
|
|
6610
|
+
*
|
|
6611
|
+
* @type {number}
|
|
6612
|
+
* @memberof UserFeedbackReport
|
|
6613
|
+
*/
|
|
6614
|
+
unreported_count: number;
|
|
6615
|
+
}
|
|
6273
6616
|
/**
|
|
6274
6617
|
*
|
|
6275
6618
|
* @export
|
|
@@ -6736,6 +7079,12 @@ export interface UserResponse {
|
|
|
6736
7079
|
* @interface UserSessionStats
|
|
6737
7080
|
*/
|
|
6738
7081
|
export interface UserSessionStats {
|
|
7082
|
+
/**
|
|
7083
|
+
*
|
|
7084
|
+
* @type {number}
|
|
7085
|
+
* @memberof UserSessionStats
|
|
7086
|
+
*/
|
|
7087
|
+
average_connection_time?: number;
|
|
6739
7088
|
/**
|
|
6740
7089
|
*
|
|
6741
7090
|
* @type {string}
|
package/src/gen/shims.ts
CHANGED
|
@@ -2,3 +2,43 @@ import type { TargetResolution } from './coordinator';
|
|
|
2
2
|
|
|
3
3
|
export type TargetResolutionRequest = TargetResolution;
|
|
4
4
|
export type TargetResolutionResponse = Required<TargetResolution>;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @interface Bound
|
|
10
|
+
*/
|
|
11
|
+
export interface Bound {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
* @memberof Bound
|
|
16
|
+
*/
|
|
17
|
+
inclusive: boolean;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Bound
|
|
22
|
+
*/
|
|
23
|
+
value: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface DailyAggregateCallStatsResponse
|
|
30
|
+
*/
|
|
31
|
+
export interface DailyAggregateCallStatsResponse<T = any> {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof DailyAggregateCallStatsResponse<T>
|
|
36
|
+
*/
|
|
37
|
+
date: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {T}
|
|
41
|
+
* @memberof DailyAggregateCallStatsResponse<T>
|
|
42
|
+
*/
|
|
43
|
+
report: T;
|
|
44
|
+
}
|