@stream-io/video-client 0.6.10 → 0.7.0

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.
@@ -49,44 +49,6 @@ export interface APIError {
49
49
  */
50
50
  more_info: string;
51
51
  }
52
- /**
53
- *
54
- * @export
55
- * @interface APNS
56
- */
57
- export interface APNS {
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof APNS
62
- */
63
- body: string;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof APNS
68
- */
69
- title: string;
70
- }
71
- /**
72
- *
73
- * @export
74
- * @interface APNSRequest
75
- */
76
- export interface APNSRequest {
77
- /**
78
- *
79
- * @type {string}
80
- * @memberof APNSRequest
81
- */
82
- body?: string;
83
- /**
84
- *
85
- * @type {string}
86
- * @memberof APNSRequest
87
- */
88
- title?: string;
89
- }
90
52
  /**
91
53
  *
92
54
  * @export
@@ -436,6 +398,37 @@ export interface CallCreatedEvent {
436
398
  */
437
399
  type: string;
438
400
  }
401
+ /**
402
+ * This event is sent when a call is deleted. Clients receiving this event should leave the call screen
403
+ * @export
404
+ * @interface CallDeletedEvent
405
+ */
406
+ export interface CallDeletedEvent {
407
+ /**
408
+ *
409
+ * @type {CallResponse}
410
+ * @memberof CallDeletedEvent
411
+ */
412
+ call: CallResponse;
413
+ /**
414
+ *
415
+ * @type {string}
416
+ * @memberof CallDeletedEvent
417
+ */
418
+ call_cid: string;
419
+ /**
420
+ *
421
+ * @type {string}
422
+ * @memberof CallDeletedEvent
423
+ */
424
+ created_at: string;
425
+ /**
426
+ * The type of event: "call.deleted" in this case
427
+ * @type {string}
428
+ * @memberof CallDeletedEvent
429
+ */
430
+ type: string;
431
+ }
439
432
  /**
440
433
  * This event is sent when a call is mark as ended for all its participants. Clients receiving this event should leave the call screen
441
434
  * @export
@@ -1075,18 +1068,6 @@ export interface CallRejectedEvent {
1075
1068
  * @interface CallRequest
1076
1069
  */
1077
1070
  export interface CallRequest {
1078
- /**
1079
- *
1080
- * @type {UserRequest}
1081
- * @memberof CallRequest
1082
- */
1083
- created_by?: UserRequest;
1084
- /**
1085
- *
1086
- * @type {string}
1087
- * @memberof CallRequest
1088
- */
1089
- created_by_id?: string;
1090
1071
  /**
1091
1072
  *
1092
1073
  * @type {{ [key: string]: any; }}
@@ -1679,7 +1660,7 @@ export interface CallStateResponseFields {
1679
1660
  own_capabilities: Array<OwnCapability>;
1680
1661
  }
1681
1662
  /**
1682
- *
1663
+ * CallTranscription represents a transcription of a call.
1683
1664
  * @export
1684
1665
  * @interface CallStatsReportSummaryResponse
1685
1666
  */
@@ -1869,46 +1850,139 @@ export interface CallTranscriptionStoppedEvent {
1869
1850
  *
1870
1851
  * @export
1871
1852
  * @interface CallTypeResponse
1853
+ * @interface CallTranscription
1854
+ */
1855
+ export interface CallTranscription {
1856
+ /**
1857
+ *
1858
+ * @type {string}
1859
+ * @memberof CallTranscription
1860
+ */
1861
+ end_time: string;
1862
+ /**
1863
+ *
1864
+ * @type {string}
1865
+ * @memberof CallTranscription
1866
+ */
1867
+ filename: string;
1868
+ /**
1869
+ *
1870
+ * @type {string}
1871
+ * @memberof CallTranscription
1872
+ */
1873
+ start_time: string;
1874
+ /**
1875
+ *
1876
+ * @type {string}
1877
+ * @memberof CallTranscription
1878
+ */
1879
+ url: string;
1880
+ }
1881
+ /**
1882
+ * This event is sent when call transcription has failed
1883
+ * @export
1884
+ * @interface CallTranscriptionFailedEvent
1872
1885
  */
1873
- export interface CallTypeResponse {
1886
+ export interface CallTranscriptionFailedEvent {
1887
+ /**
1888
+ *
1889
+ * @type {string}
1890
+ * @memberof CallTranscriptionFailedEvent
1891
+ */
1892
+ call_cid: string;
1874
1893
  /**
1875
1894
  *
1876
1895
  * @type {string}
1877
- * @memberof CallTypeResponse
1896
+ * @memberof CallTranscriptionFailedEvent
1878
1897
  */
1879
1898
  created_at: string;
1899
+ /**
1900
+ * The type of event: "call.transcription_failed" in this case
1901
+ * @type {string}
1902
+ * @memberof CallTranscriptionFailedEvent
1903
+ */
1904
+ type: string;
1905
+ }
1906
+ /**
1907
+ * This event is sent when call transcription is ready
1908
+ * @export
1909
+ * @interface CallTranscriptionReadyEvent
1910
+ */
1911
+ export interface CallTranscriptionReadyEvent {
1880
1912
  /**
1881
1913
  *
1882
- * @type {{ [key: string]: Array<string>; }}
1883
- * @memberof CallTypeResponse
1914
+ * @type {string}
1915
+ * @memberof CallTranscriptionReadyEvent
1884
1916
  */
1885
- grants: {
1886
- [key: string]: Array<string>;
1887
- };
1917
+ call_cid: string;
1918
+ /**
1919
+ *
1920
+ * @type {CallTranscription}
1921
+ * @memberof CallTranscriptionReadyEvent
1922
+ */
1923
+ call_transcription: CallTranscription;
1888
1924
  /**
1889
1925
  *
1890
1926
  * @type {string}
1891
- * @memberof CallTypeResponse
1927
+ * @memberof CallTranscriptionReadyEvent
1892
1928
  */
1893
- name: string;
1929
+ created_at: string;
1930
+ /**
1931
+ * The type of event: "call.transcription_ready" in this case
1932
+ * @type {string}
1933
+ * @memberof CallTranscriptionReadyEvent
1934
+ */
1935
+ type: string;
1936
+ }
1937
+ /**
1938
+ * This event is sent when call transcription has started
1939
+ * @export
1940
+ * @interface CallTranscriptionStartedEvent
1941
+ */
1942
+ export interface CallTranscriptionStartedEvent {
1894
1943
  /**
1895
1944
  *
1896
- * @type {NotificationSettings}
1897
- * @memberof CallTypeResponse
1945
+ * @type {string}
1946
+ * @memberof CallTranscriptionStartedEvent
1898
1947
  */
1899
- notification_settings: NotificationSettings;
1948
+ call_cid: string;
1900
1949
  /**
1901
1950
  *
1902
- * @type {CallSettingsResponse}
1903
- * @memberof CallTypeResponse
1951
+ * @type {string}
1952
+ * @memberof CallTranscriptionStartedEvent
1904
1953
  */
1905
- settings: CallSettingsResponse;
1954
+ created_at: string;
1955
+ /**
1956
+ * The type of event: "call.transcription_started" in this case
1957
+ * @type {string}
1958
+ * @memberof CallTranscriptionStartedEvent
1959
+ */
1960
+ type: string;
1961
+ }
1962
+ /**
1963
+ * This event is sent when call transcription has stopped
1964
+ * @export
1965
+ * @interface CallTranscriptionStoppedEvent
1966
+ */
1967
+ export interface CallTranscriptionStoppedEvent {
1906
1968
  /**
1907
1969
  *
1908
1970
  * @type {string}
1909
- * @memberof CallTypeResponse
1971
+ * @memberof CallTranscriptionStoppedEvent
1910
1972
  */
1911
- updated_at: string;
1973
+ call_cid: string;
1974
+ /**
1975
+ *
1976
+ * @type {string}
1977
+ * @memberof CallTranscriptionStoppedEvent
1978
+ */
1979
+ created_at: string;
1980
+ /**
1981
+ * The type of event: "call.transcription_stopped" in this case
1982
+ * @type {string}
1983
+ * @memberof CallTranscriptionStoppedEvent
1984
+ */
1985
+ type: string;
1912
1986
  }
1913
1987
  /**
1914
1988
  * This event is sent when a call is updated, clients should use this update the local state of the call.
@@ -2111,7 +2185,7 @@ export interface ConnectionErrorEvent {
2111
2185
  * @type {APIError}
2112
2186
  * @memberof ConnectionErrorEvent
2113
2187
  */
2114
- error: APIError | null;
2188
+ error: APIError;
2115
2189
  /**
2116
2190
  * The type of event: "connection.ok" in this case
2117
2191
  * @type {string}
@@ -2138,90 +2212,6 @@ export interface Coordinates {
2138
2212
  */
2139
2213
  longitude: number;
2140
2214
  }
2141
- /**
2142
- *
2143
- * @export
2144
- * @interface CreateCallTypeRequest
2145
- */
2146
- export interface CreateCallTypeRequest {
2147
- /**
2148
- *
2149
- * @type {{ [key: string]: Array<string>; }}
2150
- * @memberof CreateCallTypeRequest
2151
- */
2152
- grants?: {
2153
- [key: string]: Array<string>;
2154
- };
2155
- /**
2156
- *
2157
- * @type {string}
2158
- * @memberof CreateCallTypeRequest
2159
- */
2160
- name: string;
2161
- /**
2162
- *
2163
- * @type {NotificationSettingsRequest}
2164
- * @memberof CreateCallTypeRequest
2165
- */
2166
- notification_settings?: NotificationSettingsRequest;
2167
- /**
2168
- *
2169
- * @type {CallSettingsRequest}
2170
- * @memberof CreateCallTypeRequest
2171
- */
2172
- settings?: CallSettingsRequest;
2173
- }
2174
- /**
2175
- *
2176
- * @export
2177
- * @interface CreateCallTypeResponse
2178
- */
2179
- export interface CreateCallTypeResponse {
2180
- /**
2181
- *
2182
- * @type {string}
2183
- * @memberof CreateCallTypeResponse
2184
- */
2185
- created_at: string;
2186
- /**
2187
- *
2188
- * @type {string}
2189
- * @memberof CreateCallTypeResponse
2190
- */
2191
- duration: string;
2192
- /**
2193
- *
2194
- * @type {{ [key: string]: Array<string>; }}
2195
- * @memberof CreateCallTypeResponse
2196
- */
2197
- grants: {
2198
- [key: string]: Array<string>;
2199
- };
2200
- /**
2201
- *
2202
- * @type {string}
2203
- * @memberof CreateCallTypeResponse
2204
- */
2205
- name: string;
2206
- /**
2207
- *
2208
- * @type {NotificationSettings}
2209
- * @memberof CreateCallTypeResponse
2210
- */
2211
- notification_settings: NotificationSettings;
2212
- /**
2213
- *
2214
- * @type {CallSettingsResponse}
2215
- * @memberof CreateCallTypeResponse
2216
- */
2217
- settings: CallSettingsResponse;
2218
- /**
2219
- *
2220
- * @type {string}
2221
- * @memberof CreateCallTypeResponse
2222
- */
2223
- updated_at: string;
2224
- }
2225
2215
  /**
2226
2216
  *
2227
2217
  * @export
@@ -2246,18 +2236,6 @@ export interface CreateDeviceRequest {
2246
2236
  * @memberof CreateDeviceRequest
2247
2237
  */
2248
2238
  push_provider_name?: string;
2249
- /**
2250
- *
2251
- * @type {UserRequest}
2252
- * @memberof CreateDeviceRequest
2253
- */
2254
- user?: UserRequest;
2255
- /**
2256
- *
2257
- * @type {string}
2258
- * @memberof CreateDeviceRequest
2259
- */
2260
- user_id?: string;
2261
2239
  /**
2262
2240
  *
2263
2241
  * @type {boolean}
@@ -2338,11 +2316,6 @@ export interface Credentials {
2338
2316
  */
2339
2317
  token: string;
2340
2318
  }
2341
- /**
2342
- * A custom event, this event is used to send custom events to other participants in the call.
2343
- * @export
2344
- * @interface CustomVideoEvent
2345
- */
2346
2319
  export interface CustomVideoEvent {
2347
2320
  /**
2348
2321
  *
@@ -2572,47 +2545,9 @@ export interface EndCallResponse {
2572
2545
  /**
2573
2546
  *
2574
2547
  * @export
2575
- * @interface EventNotificationSettings
2548
+ * @interface GeofenceSettings
2576
2549
  */
2577
- export interface EventNotificationSettings {
2578
- /**
2579
- *
2580
- * @type {APNS}
2581
- * @memberof EventNotificationSettings
2582
- */
2583
- apns: APNS;
2584
- /**
2585
- *
2586
- * @type {boolean}
2587
- * @memberof EventNotificationSettings
2588
- */
2589
- enabled: boolean;
2590
- }
2591
- /**
2592
- *
2593
- * @export
2594
- * @interface EventNotificationSettingsRequest
2595
- */
2596
- export interface EventNotificationSettingsRequest {
2597
- /**
2598
- *
2599
- * @type {APNSRequest}
2600
- * @memberof EventNotificationSettingsRequest
2601
- */
2602
- apns?: APNSRequest;
2603
- /**
2604
- *
2605
- * @type {boolean}
2606
- * @memberof EventNotificationSettingsRequest
2607
- */
2608
- enabled?: boolean;
2609
- }
2610
- /**
2611
- *
2612
- * @export
2613
- * @interface GeofenceSettings
2614
- */
2615
- export interface GeofenceSettings {
2550
+ export interface GeofenceSettings {
2616
2551
  /**
2617
2552
  *
2618
2553
  * @type {Array<string>}
@@ -2757,57 +2692,6 @@ export interface GetCallStatsResponse {
2757
2692
  */
2758
2693
  total_quality_limitation_duration: number;
2759
2694
  }
2760
- /**
2761
- *
2762
- * @export
2763
- * @interface GetCallTypeResponse
2764
- */
2765
- export interface GetCallTypeResponse {
2766
- /**
2767
- *
2768
- * @type {string}
2769
- * @memberof GetCallTypeResponse
2770
- */
2771
- created_at: string;
2772
- /**
2773
- *
2774
- * @type {string}
2775
- * @memberof GetCallTypeResponse
2776
- */
2777
- duration: string;
2778
- /**
2779
- *
2780
- * @type {{ [key: string]: Array<string>; }}
2781
- * @memberof GetCallTypeResponse
2782
- */
2783
- grants: {
2784
- [key: string]: Array<string>;
2785
- };
2786
- /**
2787
- *
2788
- * @type {string}
2789
- * @memberof GetCallTypeResponse
2790
- */
2791
- name: string;
2792
- /**
2793
- *
2794
- * @type {NotificationSettings}
2795
- * @memberof GetCallTypeResponse
2796
- */
2797
- notification_settings: NotificationSettings;
2798
- /**
2799
- *
2800
- * @type {CallSettingsResponse}
2801
- * @memberof GetCallTypeResponse
2802
- */
2803
- settings: CallSettingsResponse;
2804
- /**
2805
- *
2806
- * @type {string}
2807
- * @memberof GetCallTypeResponse
2808
- */
2809
- updated_at: string;
2810
- }
2811
2695
  /**
2812
2696
  *
2813
2697
  * @export
@@ -2957,6 +2841,31 @@ export interface GoLiveResponse {
2957
2841
  */
2958
2842
  duration: string;
2959
2843
  }
2844
+ /**
2845
+ *
2846
+ * @export
2847
+ * @interface HealthCheckEvent
2848
+ */
2849
+ export interface HealthCheckEvent {
2850
+ /**
2851
+ * The connection_id for this client
2852
+ * @type {string}
2853
+ * @memberof HealthCheckEvent
2854
+ */
2855
+ connection_id: string;
2856
+ /**
2857
+ *
2858
+ * @type {string}
2859
+ * @memberof HealthCheckEvent
2860
+ */
2861
+ created_at: string;
2862
+ /**
2863
+ * The type of event: "health.check" in this case
2864
+ * @type {string}
2865
+ * @memberof HealthCheckEvent
2866
+ */
2867
+ type: string;
2868
+ }
2960
2869
  /**
2961
2870
  *
2962
2871
  * @export
@@ -2975,12 +2884,6 @@ export interface HLSSettingsRequest {
2975
2884
  * @memberof HLSSettingsRequest
2976
2885
  */
2977
2886
  enabled?: boolean;
2978
- /**
2979
- *
2980
- * @type {LayoutSettingsRequest}
2981
- * @memberof HLSSettingsRequest
2982
- */
2983
- layout?: LayoutSettingsRequest;
2984
2887
  /**
2985
2888
  *
2986
2889
  * @type {Array<string>}
@@ -3006,12 +2909,6 @@ export interface HLSSettingsResponse {
3006
2909
  * @memberof HLSSettingsResponse
3007
2910
  */
3008
2911
  enabled: boolean;
3009
- /**
3010
- *
3011
- * @type {LayoutSettings}
3012
- * @memberof HLSSettingsResponse
3013
- */
3014
- layout: LayoutSettings;
3015
2912
  /**
3016
2913
  *
3017
2914
  * @type {Array<string>}
@@ -3019,31 +2916,6 @@ export interface HLSSettingsResponse {
3019
2916
  */
3020
2917
  quality_tracks: Array<string>;
3021
2918
  }
3022
- /**
3023
- *
3024
- * @export
3025
- * @interface HealthCheckEvent
3026
- */
3027
- export interface HealthCheckEvent {
3028
- /**
3029
- * The connection_id for this client
3030
- * @type {string}
3031
- * @memberof HealthCheckEvent
3032
- */
3033
- connection_id: string;
3034
- /**
3035
- *
3036
- * @type {string}
3037
- * @memberof HealthCheckEvent
3038
- */
3039
- created_at: string;
3040
- /**
3041
- * The type of event: "health.check" in this case
3042
- * @type {string}
3043
- * @memberof HealthCheckEvent
3044
- */
3045
- type: string;
3046
- }
3047
2919
  /**
3048
2920
  *
3049
2921
  * @export
@@ -3173,115 +3045,6 @@ export interface JoinCallResponse {
3173
3045
  */
3174
3046
  stats_options: StatsOptions;
3175
3047
  }
3176
- /**
3177
- *
3178
- * @export
3179
- * @interface LayoutSettings
3180
- */
3181
- export interface LayoutSettings {
3182
- /**
3183
- *
3184
- * @type {string}
3185
- * @memberof LayoutSettings
3186
- */
3187
- external_app_url: string;
3188
- /**
3189
- *
3190
- * @type {string}
3191
- * @memberof LayoutSettings
3192
- */
3193
- external_css_url: string;
3194
- /**
3195
- *
3196
- * @type {string}
3197
- * @memberof LayoutSettings
3198
- */
3199
- name: LayoutSettingsNameEnum;
3200
- /**
3201
- *
3202
- * @type {{ [key: string]: any; }}
3203
- * @memberof LayoutSettings
3204
- */
3205
- options?: {
3206
- [key: string]: any;
3207
- };
3208
- }
3209
- /**
3210
- * @export
3211
- */
3212
- export declare const LayoutSettingsNameEnum: {
3213
- readonly SPOTLIGHT: "spotlight";
3214
- readonly GRID: "grid";
3215
- readonly SINGLE_PARTICIPANT: "single-participant";
3216
- readonly MOBILE: "mobile";
3217
- readonly CUSTOM: "custom";
3218
- };
3219
- export type LayoutSettingsNameEnum = (typeof LayoutSettingsNameEnum)[keyof typeof LayoutSettingsNameEnum];
3220
- /**
3221
- *
3222
- * @export
3223
- * @interface LayoutSettingsRequest
3224
- */
3225
- export interface LayoutSettingsRequest {
3226
- /**
3227
- *
3228
- * @type {string}
3229
- * @memberof LayoutSettingsRequest
3230
- */
3231
- external_app_url?: string;
3232
- /**
3233
- *
3234
- * @type {string}
3235
- * @memberof LayoutSettingsRequest
3236
- */
3237
- external_css_url?: string;
3238
- /**
3239
- *
3240
- * @type {string}
3241
- * @memberof LayoutSettingsRequest
3242
- */
3243
- name: LayoutSettingsRequestNameEnum;
3244
- /**
3245
- *
3246
- * @type {{ [key: string]: any; }}
3247
- * @memberof LayoutSettingsRequest
3248
- */
3249
- options?: {
3250
- [key: string]: any;
3251
- };
3252
- }
3253
- /**
3254
- * @export
3255
- */
3256
- export declare const LayoutSettingsRequestNameEnum: {
3257
- readonly SPOTLIGHT: "spotlight";
3258
- readonly GRID: "grid";
3259
- readonly SINGLE_PARTICIPANT: "single-participant";
3260
- readonly MOBILE: "mobile";
3261
- readonly CUSTOM: "custom";
3262
- };
3263
- export type LayoutSettingsRequestNameEnum = (typeof LayoutSettingsRequestNameEnum)[keyof typeof LayoutSettingsRequestNameEnum];
3264
- /**
3265
- *
3266
- * @export
3267
- * @interface ListCallTypeResponse
3268
- */
3269
- export interface ListCallTypeResponse {
3270
- /**
3271
- *
3272
- * @type {{ [key: string]: CallTypeResponse; }}
3273
- * @memberof ListCallTypeResponse
3274
- */
3275
- call_types: {
3276
- [key: string]: CallTypeResponse;
3277
- };
3278
- /**
3279
- *
3280
- * @type {string}
3281
- * @memberof ListCallTypeResponse
3282
- */
3283
- duration: string;
3284
- }
3285
3048
  /**
3286
3049
  *
3287
3050
  * @export
@@ -3498,80 +3261,6 @@ export interface MuteUsersResponse {
3498
3261
  */
3499
3262
  duration: string;
3500
3263
  }
3501
- /**
3502
- *
3503
- * @export
3504
- * @interface NotificationSettings
3505
- */
3506
- export interface NotificationSettings {
3507
- /**
3508
- *
3509
- * @type {EventNotificationSettings}
3510
- * @memberof NotificationSettings
3511
- */
3512
- call_live_started: EventNotificationSettings;
3513
- /**
3514
- *
3515
- * @type {EventNotificationSettings}
3516
- * @memberof NotificationSettings
3517
- */
3518
- call_notification: EventNotificationSettings;
3519
- /**
3520
- *
3521
- * @type {EventNotificationSettings}
3522
- * @memberof NotificationSettings
3523
- */
3524
- call_ring: EventNotificationSettings;
3525
- /**
3526
- *
3527
- * @type {boolean}
3528
- * @memberof NotificationSettings
3529
- */
3530
- enabled: boolean;
3531
- /**
3532
- *
3533
- * @type {EventNotificationSettings}
3534
- * @memberof NotificationSettings
3535
- */
3536
- session_started: EventNotificationSettings;
3537
- }
3538
- /**
3539
- *
3540
- * @export
3541
- * @interface NotificationSettingsRequest
3542
- */
3543
- export interface NotificationSettingsRequest {
3544
- /**
3545
- *
3546
- * @type {EventNotificationSettingsRequest}
3547
- * @memberof NotificationSettingsRequest
3548
- */
3549
- call_live_started?: EventNotificationSettingsRequest;
3550
- /**
3551
- *
3552
- * @type {EventNotificationSettingsRequest}
3553
- * @memberof NotificationSettingsRequest
3554
- */
3555
- call_notification?: EventNotificationSettingsRequest;
3556
- /**
3557
- *
3558
- * @type {EventNotificationSettingsRequest}
3559
- * @memberof NotificationSettingsRequest
3560
- */
3561
- call_ring?: EventNotificationSettingsRequest;
3562
- /**
3563
- *
3564
- * @type {boolean}
3565
- * @memberof NotificationSettingsRequest
3566
- */
3567
- enabled?: boolean;
3568
- /**
3569
- *
3570
- * @type {EventNotificationSettingsRequest}
3571
- * @memberof NotificationSettingsRequest
3572
- */
3573
- session_started?: EventNotificationSettingsRequest;
3574
- }
3575
3264
  /**
3576
3265
  * All possibility of string to use
3577
3266
  * @export
@@ -3647,6 +3336,12 @@ export interface OwnUserResponse {
3647
3336
  * @memberof OwnUserResponse
3648
3337
  */
3649
3338
  image?: string;
3339
+ /**
3340
+ *
3341
+ * @type {string}
3342
+ * @memberof OwnUserResponse
3343
+ */
3344
+ language: string;
3650
3345
  /**
3651
3346
  *
3652
3347
  * @type {string}
@@ -4028,12 +3723,6 @@ export interface RecordSettingsRequest {
4028
3723
  * @memberof RecordSettingsRequest
4029
3724
  */
4030
3725
  audio_only?: boolean;
4031
- /**
4032
- *
4033
- * @type {LayoutSettingsRequest}
4034
- * @memberof RecordSettingsRequest
4035
- */
4036
- layout?: LayoutSettingsRequest;
4037
3726
  /**
4038
3727
  *
4039
3728
  * @type {string}
@@ -4079,12 +3768,6 @@ export interface RecordSettingsResponse {
4079
3768
  * @memberof RecordSettingsResponse
4080
3769
  */
4081
3770
  audio_only: boolean;
4082
- /**
4083
- *
4084
- * @type {LayoutSettings}
4085
- * @memberof RecordSettingsResponse
4086
- */
4087
- layout: LayoutSettings;
4088
3771
  /**
4089
3772
  *
4090
3773
  * @type {string}
@@ -4888,91 +4571,13 @@ export interface UpdateCallResponse {
4888
4571
  /**
4889
4572
  *
4890
4573
  * @export
4891
- * @interface UpdateCallTypeRequest
4574
+ * @interface UpdateUserPermissionsRequest
4892
4575
  */
4893
- export interface UpdateCallTypeRequest {
4576
+ export interface UpdateUserPermissionsRequest {
4894
4577
  /**
4895
4578
  *
4896
- * @type {{ [key: string]: Array<string>; }}
4897
- * @memberof UpdateCallTypeRequest
4898
- */
4899
- grants?: {
4900
- [key: string]: Array<string>;
4901
- };
4902
- /**
4903
- *
4904
- * @type {NotificationSettingsRequest}
4905
- * @memberof UpdateCallTypeRequest
4906
- */
4907
- notification_settings?: NotificationSettingsRequest;
4908
- /**
4909
- *
4910
- * @type {CallSettingsRequest}
4911
- * @memberof UpdateCallTypeRequest
4912
- */
4913
- settings?: CallSettingsRequest;
4914
- }
4915
- /**
4916
- *
4917
- * @export
4918
- * @interface UpdateCallTypeResponse
4919
- */
4920
- export interface UpdateCallTypeResponse {
4921
- /**
4922
- *
4923
- * @type {string}
4924
- * @memberof UpdateCallTypeResponse
4925
- */
4926
- created_at: string;
4927
- /**
4928
- *
4929
- * @type {string}
4930
- * @memberof UpdateCallTypeResponse
4931
- */
4932
- duration: string;
4933
- /**
4934
- *
4935
- * @type {{ [key: string]: Array<string>; }}
4936
- * @memberof UpdateCallTypeResponse
4937
- */
4938
- grants: {
4939
- [key: string]: Array<string>;
4940
- };
4941
- /**
4942
- *
4943
- * @type {string}
4944
- * @memberof UpdateCallTypeResponse
4945
- */
4946
- name: string;
4947
- /**
4948
- *
4949
- * @type {NotificationSettings}
4950
- * @memberof UpdateCallTypeResponse
4951
- */
4952
- notification_settings: NotificationSettings;
4953
- /**
4954
- *
4955
- * @type {CallSettingsResponse}
4956
- * @memberof UpdateCallTypeResponse
4957
- */
4958
- settings: CallSettingsResponse;
4959
- /**
4960
- *
4961
- * @type {string}
4962
- * @memberof UpdateCallTypeResponse
4963
- */
4964
- updated_at: string;
4965
- }
4966
- /**
4967
- *
4968
- * @export
4969
- * @interface UpdateUserPermissionsRequest
4970
- */
4971
- export interface UpdateUserPermissionsRequest {
4972
- /**
4973
- *
4974
- * @type {Array<string>}
4975
- * @memberof UpdateUserPermissionsRequest
4579
+ * @type {Array<string>}
4580
+ * @memberof UpdateUserPermissionsRequest
4976
4581
  */
4977
4582
  grant_permissions?: Array<string>;
4978
4583
  /**
@@ -5046,10 +4651,12 @@ export interface UpdatedCallPermissionsEvent {
5046
4651
  export interface UserInfoResponse {
5047
4652
  /**
5048
4653
  *
5049
- * @type {object}
4654
+ * @type {{ [key: string]: any; }}
5050
4655
  * @memberof UserInfoResponse
5051
4656
  */
5052
- custom: object;
4657
+ custom: {
4658
+ [key: string]: any;
4659
+ };
5053
4660
  /**
5054
4661
  *
5055
4662
  * @type {string}
@@ -5095,24 +4702,18 @@ export interface UserRequest {
5095
4702
  * @memberof UserRequest
5096
4703
  */
5097
4704
  image?: string;
5098
- /**
5099
- * Optional name of user
5100
- * @type {string}
5101
- * @memberof UserRequest
5102
- */
5103
- name?: string;
5104
4705
  /**
5105
4706
  *
5106
4707
  * @type {string}
5107
4708
  * @memberof UserRequest
5108
4709
  */
5109
- role?: string;
4710
+ language?: string;
5110
4711
  /**
5111
- *
5112
- * @type {Array<string>}
4712
+ * Optional name of user
4713
+ * @type {string}
5113
4714
  * @memberof UserRequest
5114
4715
  */
5115
- teams?: Array<string>;
4716
+ name?: string;
5116
4717
  }
5117
4718
  /**
5118
4719
  *
@@ -5152,6 +4753,12 @@ export interface UserResponse {
5152
4753
  * @memberof UserResponse
5153
4754
  */
5154
4755
  image?: string;
4756
+ /**
4757
+ *
4758
+ * @type {string}
4759
+ * @memberof UserResponse
4760
+ */
4761
+ language: string;
5155
4762
  /**
5156
4763
  *
5157
4764
  * @type {string}
@@ -5178,7 +4785,6 @@ export interface UserResponse {
5178
4785
  updated_at: string;
5179
4786
  }
5180
4787
  /**
5181
- *
5182
4788
  * @export
5183
4789
  * @interface UserSessionStats
5184
4790
  */
@@ -5265,88 +4871,6 @@ export interface UserStats {
5265
4871
  [key: string]: UserSessionStats;
5266
4872
  };
5267
4873
  }
5268
- /**
5269
- * @type VideoEvent
5270
- * The discriminator object for all websocket events, you should use this to map event payloads to their own type
5271
- * @export
5272
- */
5273
- export type VideoEvent = ({
5274
- type: 'call.accepted';
5275
- } & CallAcceptedEvent) | ({
5276
- type: 'call.blocked_user';
5277
- } & BlockedUserEvent) | ({
5278
- type: 'call.closed_caption';
5279
- } & ClosedCaptionEvent) | ({
5280
- type: 'call.created';
5281
- } & CallCreatedEvent) | ({
5282
- type: 'call.ended';
5283
- } & CallEndedEvent) | ({
5284
- type: 'call.hls_broadcasting_failed';
5285
- } & CallHLSBroadcastingFailedEvent) | ({
5286
- type: 'call.hls_broadcasting_started';
5287
- } & CallHLSBroadcastingStartedEvent) | ({
5288
- type: 'call.hls_broadcasting_stopped';
5289
- } & CallHLSBroadcastingStoppedEvent) | ({
5290
- type: 'call.live_started';
5291
- } & CallLiveStartedEvent) | ({
5292
- type: 'call.member_added';
5293
- } & CallMemberAddedEvent) | ({
5294
- type: 'call.member_removed';
5295
- } & CallMemberRemovedEvent) | ({
5296
- type: 'call.member_updated';
5297
- } & CallMemberUpdatedEvent) | ({
5298
- type: 'call.member_updated_permission';
5299
- } & CallMemberUpdatedPermissionEvent) | ({
5300
- type: 'call.notification';
5301
- } & CallNotificationEvent) | ({
5302
- type: 'call.permission_request';
5303
- } & PermissionRequestEvent) | ({
5304
- type: 'call.permissions_updated';
5305
- } & UpdatedCallPermissionsEvent) | ({
5306
- type: 'call.reaction_new';
5307
- } & CallReactionEvent) | ({
5308
- type: 'call.recording_failed';
5309
- } & CallRecordingFailedEvent) | ({
5310
- type: 'call.recording_ready';
5311
- } & CallRecordingReadyEvent) | ({
5312
- type: 'call.recording_started';
5313
- } & CallRecordingStartedEvent) | ({
5314
- type: 'call.recording_stopped';
5315
- } & CallRecordingStoppedEvent) | ({
5316
- type: 'call.rejected';
5317
- } & CallRejectedEvent) | ({
5318
- type: 'call.ring';
5319
- } & CallRingEvent) | ({
5320
- type: 'call.session_ended';
5321
- } & CallSessionEndedEvent) | ({
5322
- type: 'call.session_participant_joined';
5323
- } & CallSessionParticipantJoinedEvent) | ({
5324
- type: 'call.session_participant_left';
5325
- } & CallSessionParticipantLeftEvent) | ({
5326
- type: 'call.session_started';
5327
- } & CallSessionStartedEvent) | ({
5328
- type: 'call.transcription_failed';
5329
- } & CallTranscriptionFailedEvent) | ({
5330
- type: 'call.transcription_ready';
5331
- } & CallTranscriptionReadyEvent) | ({
5332
- type: 'call.transcription_started';
5333
- } & CallTranscriptionStartedEvent) | ({
5334
- type: 'call.transcription_stopped';
5335
- } & CallTranscriptionStoppedEvent) | ({
5336
- type: 'call.unblocked_user';
5337
- } & UnblockedUserEvent) | ({
5338
- type: 'call.updated';
5339
- } & CallUpdatedEvent) | ({
5340
- type: 'call.user_muted';
5341
- } & CallUserMuted) | ({
5342
- type: 'connection.error';
5343
- } & ConnectionErrorEvent) | ({
5344
- type: 'connection.ok';
5345
- } & ConnectedEvent) | ({
5346
- type: 'custom';
5347
- } & CustomVideoEvent) | ({
5348
- type: 'health.check';
5349
- } & HealthCheckEvent);
5350
4874
  /**
5351
4875
  *
5352
4876
  * @export
@@ -5459,304 +4983,86 @@ export interface WSAuthMessageRequest {
5459
4983
  user_details: ConnectUserDetailsRequest;
5460
4984
  }
5461
4985
  /**
5462
- * This is just a placeholder for all client events
4986
+ * @type WSEvent
4987
+ * The discriminator object for all websocket events, it maps events' payload to the final type
5463
4988
  * @export
5464
- * @interface WSCallEvent
5465
4989
  */
5466
- export interface WSCallEvent {
5467
- /**
5468
- *
5469
- * @type {string}
5470
- * @memberof WSCallEvent
5471
- */
5472
- call_cid?: string;
5473
- }
5474
- /**
5475
- * This is just a placeholder for all client events
5476
- * @export
5477
- * @interface WSClientEvent
5478
- */
5479
- export interface WSClientEvent {
5480
- /**
5481
- *
5482
- * @type {string}
5483
- * @memberof WSClientEvent
5484
- */
5485
- connection_id?: string;
5486
- }
5487
- /**
5488
- *
5489
- * @export
5490
- * @interface AzureRequest
5491
- */
5492
- export interface AzureRequest {
5493
- /**
5494
- *
5495
- * @type {string}
5496
- * @memberof AzureRequest
5497
- */
5498
- abs_account_name: string;
5499
- /**
5500
- *
5501
- * @type {string}
5502
- * @memberof AzureRequest
5503
- */
5504
- abs_client_id: string;
5505
- /**
5506
- *
5507
- * @type {string}
5508
- * @memberof AzureRequest
5509
- */
5510
- abs_client_secret: string;
5511
- /**
5512
- *
5513
- * @type {string}
5514
- * @memberof AzureRequest
5515
- */
5516
- abs_tenant_id: string;
5517
- }
5518
- /**
5519
- *
5520
- * @export
5521
- * @interface CheckExternalStorageResponse
5522
- */
5523
- export interface CheckExternalStorageResponse {
5524
- /**
5525
- * Duration of the request in human-readable format
5526
- * @type {string}
5527
- * @memberof CheckExternalStorageResponse
5528
- */
5529
- duration: string;
5530
- }
5531
- /**
5532
- *
5533
- * @export
5534
- * @interface CreateExternalStorageRequest
5535
- */
5536
- export interface CreateExternalStorageRequest {
5537
- /**
5538
- *
5539
- * @type {S3Request}
5540
- * @memberof CreateExternalStorageRequest
5541
- */
5542
- aws_s3?: S3Request;
5543
- /**
5544
- *
5545
- * @type {AzureRequest}
5546
- * @memberof CreateExternalStorageRequest
5547
- */
5548
- azure_blob?: AzureRequest;
5549
- /**
5550
- *
5551
- * @type {string}
5552
- * @memberof CreateExternalStorageRequest
5553
- */
5554
- bucket: string;
5555
- /**
5556
- *
5557
- * @type {string}
5558
- * @memberof CreateExternalStorageRequest
5559
- */
5560
- gcs_credentials?: string;
5561
- /**
5562
- *
5563
- * @type {string}
5564
- * @memberof CreateExternalStorageRequest
5565
- */
5566
- name: string;
5567
- /**
5568
- *
5569
- * @type {string}
5570
- * @memberof CreateExternalStorageRequest
5571
- */
5572
- path?: string;
5573
- /**
5574
- *
5575
- * @type {string}
5576
- * @memberof CreateExternalStorageRequest
5577
- */
5578
- storage_type: string;
5579
- }
5580
- /**
5581
- *
5582
- * @export
5583
- * @interface CreateExternalStorageResponse
5584
- */
5585
- export interface CreateExternalStorageResponse {
5586
- /**
5587
- * Duration of the request in human-readable format
5588
- * @type {string}
5589
- * @memberof CreateExternalStorageResponse
5590
- */
5591
- duration: string;
5592
- }
5593
- /**
5594
- *
5595
- * @export
5596
- * @interface DeleteExternalStorageResponse
5597
- */
5598
- export interface DeleteExternalStorageResponse {
5599
- /**
5600
- * Duration of the request in human-readable format
5601
- * @type {string}
5602
- * @memberof DeleteExternalStorageResponse
5603
- */
5604
- duration: string;
5605
- }
5606
- /**
5607
- *
5608
- * @export
5609
- * @interface ExternalStorageResponse
5610
- */
5611
- export interface ExternalStorageResponse {
5612
- /**
5613
- *
5614
- * @type {string}
5615
- * @memberof ExternalStorageResponse
5616
- */
5617
- bucket: string;
5618
- /**
5619
- *
5620
- * @type {string}
5621
- * @memberof ExternalStorageResponse
5622
- */
5623
- name: string;
5624
- /**
5625
- *
5626
- * @type {string}
5627
- * @memberof ExternalStorageResponse
5628
- */
5629
- path: string;
5630
- /**
5631
- *
5632
- * @type {string}
5633
- * @memberof ExternalStorageResponse
5634
- */
5635
- type: string;
5636
- }
5637
- /**
5638
- *
5639
- * @export
5640
- * @interface ListExternalStorageResponse
5641
- */
5642
- export interface ListExternalStorageResponse {
5643
- /**
5644
- * Duration of the request in human-readable format
5645
- * @type {string}
5646
- * @memberof ListExternalStorageResponse
5647
- */
5648
- duration: string;
5649
- /**
5650
- *
5651
- * @type {{ [key: string]: ExternalStorageResponse; }}
5652
- * @memberof ListExternalStorageResponse
5653
- */
5654
- external_storages: {
5655
- [key: string]: ExternalStorageResponse;
5656
- };
5657
- }
5658
- /**
5659
- *
5660
- * @export
5661
- * @interface S3Request
5662
- */
5663
- export interface S3Request {
5664
- /**
5665
- *
5666
- * @type {string}
5667
- * @memberof S3Request
5668
- */
5669
- s3_api_key?: string;
5670
- /**
5671
- *
5672
- * @type {string}
5673
- * @memberof S3Request
5674
- */
5675
- s3_region: string;
5676
- /**
5677
- *
5678
- * @type {string}
5679
- * @memberof S3Request
5680
- */
5681
- s3_secret?: string;
5682
- }
5683
- /**
5684
- *
5685
- * @export
5686
- * @interface UpdateExternalStorageResponse
5687
- */
5688
- export interface UpdateExternalStorageResponse {
5689
- /**
5690
- *
5691
- * @type {string}
5692
- * @memberof UpdateExternalStorageResponse
5693
- */
5694
- bucket: string;
5695
- /**
5696
- * Duration of the request in human-readable format
5697
- * @type {string}
5698
- * @memberof UpdateExternalStorageResponse
5699
- */
5700
- duration: string;
5701
- /**
5702
- *
5703
- * @type {string}
5704
- * @memberof UpdateExternalStorageResponse
5705
- */
5706
- name: string;
5707
- /**
5708
- *
5709
- * @type {string}
5710
- * @memberof UpdateExternalStorageResponse
5711
- */
5712
- path: string;
5713
- /**
5714
- *
5715
- * @type {string}
5716
- * @memberof UpdateExternalStorageResponse
5717
- */
5718
- type: string;
5719
- }
5720
- /**
5721
- *
5722
- * @export
5723
- * @interface UpdateExternalStorageRequest
5724
- */
5725
- export interface UpdateExternalStorageRequest {
5726
- /**
5727
- *
5728
- * @type {S3Request}
5729
- * @memberof UpdateExternalStorageRequest
5730
- */
5731
- aws_s3?: S3Request;
5732
- /**
5733
- *
5734
- * @type {AzureRequest}
5735
- * @memberof UpdateExternalStorageRequest
5736
- */
5737
- azure_blob?: AzureRequest;
5738
- /**
5739
- *
5740
- * @type {string}
5741
- * @memberof UpdateExternalStorageRequest
5742
- */
5743
- bucket: string;
5744
- /**
5745
- *
5746
- * @type {string}
5747
- * @memberof UpdateExternalStorageRequest
5748
- */
5749
- gcs_credentials?: string;
5750
- /**
5751
- *
5752
- * @type {string}
5753
- * @memberof UpdateExternalStorageRequest
5754
- */
5755
- path?: string;
5756
- /**
5757
- *
5758
- * @type {string}
5759
- * @memberof UpdateExternalStorageRequest
5760
- */
5761
- storage_type: string;
5762
- }
4990
+ export type WSEvent = ({
4991
+ type: 'call.accepted';
4992
+ } & CallAcceptedEvent) | ({
4993
+ type: 'call.blocked_user';
4994
+ } & BlockedUserEvent) | ({
4995
+ type: 'call.closed_caption';
4996
+ } & ClosedCaptionEvent) | ({
4997
+ type: 'call.created';
4998
+ } & CallCreatedEvent) | ({
4999
+ type: 'call.deleted';
5000
+ } & CallDeletedEvent) | ({
5001
+ type: 'call.ended';
5002
+ } & CallEndedEvent) | ({
5003
+ type: 'call.hls_broadcasting_failed';
5004
+ } & CallHLSBroadcastingFailedEvent) | ({
5005
+ type: 'call.hls_broadcasting_started';
5006
+ } & CallHLSBroadcastingStartedEvent) | ({
5007
+ type: 'call.hls_broadcasting_stopped';
5008
+ } & CallHLSBroadcastingStoppedEvent) | ({
5009
+ type: 'call.live_started';
5010
+ } & CallLiveStartedEvent) | ({
5011
+ type: 'call.member_added';
5012
+ } & CallMemberAddedEvent) | ({
5013
+ type: 'call.member_removed';
5014
+ } & CallMemberRemovedEvent) | ({
5015
+ type: 'call.member_updated';
5016
+ } & CallMemberUpdatedEvent) | ({
5017
+ type: 'call.member_updated_permission';
5018
+ } & CallMemberUpdatedPermissionEvent) | ({
5019
+ type: 'call.notification';
5020
+ } & CallNotificationEvent) | ({
5021
+ type: 'call.permission_request';
5022
+ } & PermissionRequestEvent) | ({
5023
+ type: 'call.permissions_updated';
5024
+ } & UpdatedCallPermissionsEvent) | ({
5025
+ type: 'call.reaction_new';
5026
+ } & CallReactionEvent) | ({
5027
+ type: 'call.recording_failed';
5028
+ } & CallRecordingFailedEvent) | ({
5029
+ type: 'call.recording_ready';
5030
+ } & CallRecordingReadyEvent) | ({
5031
+ type: 'call.recording_started';
5032
+ } & CallRecordingStartedEvent) | ({
5033
+ type: 'call.recording_stopped';
5034
+ } & CallRecordingStoppedEvent) | ({
5035
+ type: 'call.rejected';
5036
+ } & CallRejectedEvent) | ({
5037
+ type: 'call.ring';
5038
+ } & CallRingEvent) | ({
5039
+ type: 'call.session_ended';
5040
+ } & CallSessionEndedEvent) | ({
5041
+ type: 'call.session_participant_joined';
5042
+ } & CallSessionParticipantJoinedEvent) | ({
5043
+ type: 'call.session_participant_left';
5044
+ } & CallSessionParticipantLeftEvent) | ({
5045
+ type: 'call.session_started';
5046
+ } & CallSessionStartedEvent) | ({
5047
+ type: 'call.transcription_failed';
5048
+ } & CallTranscriptionFailedEvent) | ({
5049
+ type: 'call.transcription_ready';
5050
+ } & CallTranscriptionReadyEvent) | ({
5051
+ type: 'call.transcription_started';
5052
+ } & CallTranscriptionStartedEvent) | ({
5053
+ type: 'call.transcription_stopped';
5054
+ } & CallTranscriptionStoppedEvent) | ({
5055
+ type: 'call.unblocked_user';
5056
+ } & UnblockedUserEvent) | ({
5057
+ type: 'call.updated';
5058
+ } & CallUpdatedEvent) | ({
5059
+ type: 'call.user_muted';
5060
+ } & CallUserMuted) | ({
5061
+ type: 'connection.error';
5062
+ } & ConnectionErrorEvent) | ({
5063
+ type: 'connection.ok';
5064
+ } & ConnectedEvent) | ({
5065
+ type: 'health.check';
5066
+ } & HealthCheckEvent) | ({
5067
+ type: 'custom';
5068
+ } & CustomVideoEvent);