@stream-io/video-client 1.27.3 → 1.27.5

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.
@@ -0,0 +1,621 @@
1
+ import { CallCreatedEvent, CallRingEvent } from '../gen/coordinator';
2
+
3
+ export const CallCreatedPayload: CallCreatedEvent = {
4
+ type: 'call.created',
5
+ created_at: '2025-08-14T14:48:39.988853336Z',
6
+ call_cid: 'default:h6c44o00NeFTH6IvsGGgM',
7
+ call: {
8
+ type: 'default',
9
+ id: 'h6c44o00NeFTH6IvsGGgM',
10
+ cid: 'default:h6c44o00NeFTH6IvsGGgM',
11
+ current_session_id: '',
12
+ created_by: {
13
+ id: 'oliver_1',
14
+ name: 'Oliver Lazoroski',
15
+ image:
16
+ 'https://lh3.googleusercontent.com/a/ACg8ocJLHHaOnen-0xmJir7r65nPKpIVnF6TTvpX0QbFSXjGa8WWF9Y=s96-c',
17
+ custom: {
18
+ imageUrl:
19
+ 'https://ca.slack-edge.com/T02RM6X6B-U03HJKTMSQZ-cdf636547793-512',
20
+ },
21
+ language: '',
22
+ role: 'user',
23
+ teams: [],
24
+ created_at: '2024-01-10T14:46:46.567417Z',
25
+ updated_at: '2025-08-14T14:48:32.808624Z',
26
+ // @ts-expect-error outdated types
27
+ banned: false,
28
+ online: false,
29
+ last_active: '2025-08-12T11:50:03.973174Z',
30
+ blocked_user_ids: [],
31
+ },
32
+ custom: {},
33
+ created_at: '2025-08-14T14:48:39.958024Z',
34
+ updated_at: '2025-08-14T14:48:39.958024Z',
35
+ recording: false,
36
+ transcribing: false,
37
+ captioning: false,
38
+ ended_at: null,
39
+ starts_at: null,
40
+ backstage: false,
41
+ settings: {
42
+ audio: {
43
+ access_request_enabled: true,
44
+ opus_dtx_enabled: true,
45
+ redundant_coding_enabled: true,
46
+ mic_default_on: true,
47
+ speaker_default_on: true,
48
+ default_device: 'speaker',
49
+ noise_cancellation: {
50
+ mode: 'auto-on',
51
+ },
52
+ },
53
+ backstage: {
54
+ enabled: false,
55
+ },
56
+ broadcasting: {
57
+ enabled: true,
58
+ hls: {
59
+ auto_on: false,
60
+ enabled: true,
61
+ quality_tracks: ['720p'],
62
+ },
63
+ rtmp: {
64
+ enabled: true,
65
+ quality: '720p',
66
+ },
67
+ },
68
+ geofencing: {
69
+ names: [],
70
+ },
71
+ recording: {
72
+ audio_only: false,
73
+ mode: 'available',
74
+ quality: '1080p',
75
+ },
76
+ frame_recording: {
77
+ mode: 'auto-on',
78
+ quality: '720p',
79
+ capture_interval_in_seconds: 3,
80
+ },
81
+ ring: {
82
+ incoming_call_timeout_ms: 60000,
83
+ auto_cancel_timeout_ms: 60000,
84
+ missed_call_timeout_ms: 5000,
85
+ },
86
+ screensharing: {
87
+ enabled: true,
88
+ access_request_enabled: true,
89
+ target_resolution: null,
90
+ },
91
+ transcription: {
92
+ mode: 'auto-on',
93
+ closed_caption_mode: 'auto-on',
94
+ // languages: [],
95
+ language: 'en',
96
+ },
97
+ video: {
98
+ enabled: true,
99
+ access_request_enabled: true,
100
+ target_resolution: {
101
+ width: 1280,
102
+ height: 720,
103
+ bitrate: 1500000,
104
+ },
105
+ camera_default_on: true,
106
+ camera_facing: 'front',
107
+ },
108
+ thumbnails: {
109
+ enabled: true,
110
+ },
111
+ limits: {
112
+ max_participants: null,
113
+ // @ts-expect-error outdated types
114
+ max_participants_exclude_roles: [],
115
+ max_duration_seconds: null,
116
+ },
117
+ session: {
118
+ inactivity_timeout_seconds: 30,
119
+ },
120
+ ingress: {
121
+ enabled: true,
122
+ audio_encoding_options: {
123
+ channels: 2,
124
+ enable_dtx: false,
125
+ bitrate: 128000,
126
+ },
127
+ video_encoding_options: {
128
+ '1280x720x30': {
129
+ layers: [
130
+ {
131
+ codec: 'h264',
132
+ bitrate: 3000000,
133
+ min_dimension: 720,
134
+ max_dimension: 1280,
135
+ frame_rate_limit: 30,
136
+ },
137
+ {
138
+ codec: 'h264',
139
+ bitrate: 1000000,
140
+ min_dimension: 600,
141
+ max_dimension: 800,
142
+ frame_rate_limit: 30,
143
+ },
144
+ {
145
+ codec: 'h264',
146
+ bitrate: 500000,
147
+ min_dimension: 360,
148
+ max_dimension: 640,
149
+ frame_rate_limit: 30,
150
+ },
151
+ ],
152
+ },
153
+ '1920x1080x30': {
154
+ layers: [
155
+ {
156
+ codec: 'h264',
157
+ bitrate: 4000000,
158
+ min_dimension: 1080,
159
+ max_dimension: 1920,
160
+ frame_rate_limit: 30,
161
+ },
162
+ {
163
+ codec: 'h264',
164
+ bitrate: 3000000,
165
+ min_dimension: 720,
166
+ max_dimension: 1280,
167
+ frame_rate_limit: 30,
168
+ },
169
+ {
170
+ codec: 'h264',
171
+ bitrate: 1000000,
172
+ min_dimension: 600,
173
+ max_dimension: 800,
174
+ frame_rate_limit: 30,
175
+ },
176
+ ],
177
+ },
178
+ '2560x1440x30': {
179
+ layers: [
180
+ {
181
+ codec: 'h264',
182
+ bitrate: 6000000,
183
+ min_dimension: 1440,
184
+ max_dimension: 2560,
185
+ frame_rate_limit: 30,
186
+ },
187
+ {
188
+ codec: 'h264',
189
+ bitrate: 4000000,
190
+ min_dimension: 1080,
191
+ max_dimension: 1920,
192
+ frame_rate_limit: 30,
193
+ },
194
+ {
195
+ codec: 'h264',
196
+ bitrate: 2000000,
197
+ min_dimension: 720,
198
+ max_dimension: 1280,
199
+ frame_rate_limit: 30,
200
+ },
201
+ ],
202
+ },
203
+ '3840x2160x30': {
204
+ layers: [
205
+ {
206
+ codec: 'h264',
207
+ bitrate: 18000000,
208
+ min_dimension: 2160,
209
+ max_dimension: 3840,
210
+ frame_rate_limit: 30,
211
+ },
212
+ {
213
+ codec: 'h264',
214
+ bitrate: 8000000,
215
+ min_dimension: 1080,
216
+ max_dimension: 1920,
217
+ frame_rate_limit: 30,
218
+ },
219
+ {
220
+ codec: 'h264',
221
+ bitrate: 2000000,
222
+ min_dimension: 720,
223
+ max_dimension: 1280,
224
+ frame_rate_limit: 30,
225
+ },
226
+ ],
227
+ },
228
+ },
229
+ },
230
+ },
231
+ blocked_user_ids: [],
232
+ ingress: {
233
+ rtmp: {
234
+ address:
235
+ 'rtmps://ingress.stream-io-video.com:443/par8f5s3gn2j.default.h6c44o00NeFTH6IvsGGgM',
236
+ },
237
+ },
238
+ session: null,
239
+ egress: {
240
+ broadcasting: false,
241
+ hls: null,
242
+ rtmps: [],
243
+ frame_recording: null,
244
+ },
245
+ thumbnails: {
246
+ image_url:
247
+ 'https://us-east.stream-io-cdn.com/1270131/images/default/h6c44o00NeFTH6IvsGGgM/preview/thumbnail.jpg?Key-Pair-Id=APKAIHG36VEWPDULE23Q&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly91cy1lYXN0LnN0cmVhbS1pby1jZG4uY29tLzEyNzAxMzEvaW1hZ2VzL2RlZmF1bHQvaDZjNDRvMDBOZUZUSDZJdnNHR2dNL3ByZXZpZXcvdGh1bWJuYWlsLmpwZyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NTU0NDIxMTl9fX1dfQ__&Signature=ladoiTTWl8bbnSqEDswKUIQ1hbY1kVbDFuHS4mZgHBcv-L1hJ13q1UE5fKBCMbqGvrL~9AzLTYFpX2AwhX85JYRvTESHxfqqQyrSiFf9FLMmZMbi2ro-YBJOeFRE3Iz2~jVcqr~HAw26mHfcM74CMMv3cCQGBToXtYgdfUuN-snPWQidfnRGReDN6slb8mga0gufw4UoJr~WLWLc6nNYPyuYRcGMj4dghRtQiCcyfGXtuOc~Hjlnh8DTZgPY09QZlX7HwqyENfP4~qEHnMsRyZBfzqFk4mT-T~HDd3v26Ruf3clVETjdKTH4xzd2D1fpFF0Q8YjtWrS0NK1qW3pc9w__',
248
+ },
249
+ join_ahead_time_seconds: 0,
250
+ channel_cid: null,
251
+ },
252
+ members: [
253
+ {
254
+ user: {
255
+ id: 'marcelo',
256
+ name: 'marcelo',
257
+ image:
258
+ 'https://getstream.io/static/aaf5fb17dcfd0a3dd885f62bd21b325a/802d2/marcelo-pires.webp',
259
+ custom: {
260
+ imageUrl: 'https://getstream.io/random_png/?id=marcelo&name=marcelo',
261
+ },
262
+ language: '',
263
+ role: 'user',
264
+ teams: [],
265
+ created_at: '2024-01-10T13:26:19.889536Z',
266
+ updated_at: '2025-08-07T07:35:43.81976Z',
267
+ // @ts-expect-error outdated types
268
+ banned: false,
269
+ online: false,
270
+ last_active: '2025-08-07T04:30:50.670932Z',
271
+ blocked_user_ids: [],
272
+ },
273
+ user_id: 'marcelo',
274
+ custom: {},
275
+ created_at: '2025-08-14T14:48:39.9691Z',
276
+ updated_at: '2025-08-14T14:48:39.9691Z',
277
+ },
278
+ {
279
+ user: {
280
+ id: 'oliver',
281
+ name: 'Oliver Lazoroski',
282
+ image:
283
+ 'https://lh3.googleusercontent.com/a/ACg8ocJLHHaOnen-0xmJir7r65nPKpIVnF6TTvpX0QbFSXjGa8WWF9Y=s96-c',
284
+ custom: {
285
+ imageUrl:
286
+ 'https://ca.slack-edge.com/T02RM6X6B-U03HJKTMSQZ-cdf636547793-512',
287
+ },
288
+ language: '',
289
+ role: 'user',
290
+ teams: [],
291
+ created_at: '2024-01-10T14:46:46.567417Z',
292
+ updated_at: '2025-08-14T14:48:32.808624Z',
293
+ // @ts-expect-error outdated types
294
+ banned: false,
295
+ online: false,
296
+ last_active: '2025-08-12T11:50:03.973174Z',
297
+ blocked_user_ids: [],
298
+ },
299
+ user_id: 'oliver',
300
+ custom: {},
301
+ created_at: '2025-08-14T14:48:39.9691Z',
302
+ updated_at: '2025-08-14T14:48:39.9691Z',
303
+ },
304
+ ],
305
+ received_at: '2025-08-14T14:48:39.973Z',
306
+ };
307
+
308
+ export const CallRingPayload: CallRingEvent = {
309
+ type: 'call.ring',
310
+ created_at: '2025-08-14T14:48:40.006646269Z',
311
+ call_cid: 'default:h6c44o00NeFTH6IvsGGgM',
312
+ session_id: 'b8a44039-41f3-4570-a438-187d6df65671',
313
+ call: {
314
+ type: 'default',
315
+ id: 'h6c44o00NeFTH6IvsGGgM',
316
+ cid: 'default:h6c44o00NeFTH6IvsGGgM',
317
+ current_session_id: 'b8a44039-41f3-4570-a438-187d6df65671',
318
+ created_by: {
319
+ id: 'oliver_1',
320
+ name: 'Oliver Lazoroski',
321
+ image:
322
+ 'https://lh3.googleusercontent.com/a/ACg8ocJLHHaOnen-0xmJir7r65nPKpIVnF6TTvpX0QbFSXjGa8WWF9Y=s96-c',
323
+ custom: {
324
+ imageUrl:
325
+ 'https://ca.slack-edge.com/T02RM6X6B-U03HJKTMSQZ-cdf636547793-512',
326
+ },
327
+ language: '',
328
+ role: 'user',
329
+ teams: [],
330
+ created_at: '2024-01-10T14:46:46.567417Z',
331
+ updated_at: '2025-08-14T14:48:32.808624Z',
332
+ // @ts-expect-error outdated types
333
+ banned: false,
334
+ online: false,
335
+ last_active: '2025-08-12T11:50:03.973174Z',
336
+ blocked_user_ids: [],
337
+ },
338
+ custom: {},
339
+ created_at: '2025-08-14T14:48:39.958024Z',
340
+ updated_at: '2025-08-14T14:48:39.958024Z',
341
+ recording: false,
342
+ transcribing: false,
343
+ captioning: false,
344
+ ended_at: null,
345
+ starts_at: null,
346
+ backstage: false,
347
+ settings: {
348
+ audio: {
349
+ access_request_enabled: true,
350
+ opus_dtx_enabled: true,
351
+ redundant_coding_enabled: true,
352
+ mic_default_on: true,
353
+ speaker_default_on: true,
354
+ default_device: 'speaker',
355
+ noise_cancellation: {
356
+ mode: 'auto-on',
357
+ },
358
+ },
359
+ backstage: {
360
+ enabled: false,
361
+ },
362
+ broadcasting: {
363
+ enabled: true,
364
+ hls: {
365
+ auto_on: false,
366
+ enabled: true,
367
+ quality_tracks: ['720p'],
368
+ },
369
+ rtmp: {
370
+ enabled: true,
371
+ quality: '720p',
372
+ },
373
+ },
374
+ geofencing: {
375
+ names: [],
376
+ },
377
+ recording: {
378
+ audio_only: false,
379
+ mode: 'available',
380
+ quality: '1080p',
381
+ },
382
+ frame_recording: {
383
+ mode: 'auto-on',
384
+ quality: '720p',
385
+ capture_interval_in_seconds: 3,
386
+ },
387
+ ring: {
388
+ incoming_call_timeout_ms: 60000,
389
+ auto_cancel_timeout_ms: 60000,
390
+ missed_call_timeout_ms: 5000,
391
+ },
392
+ screensharing: {
393
+ enabled: true,
394
+ access_request_enabled: true,
395
+ target_resolution: null,
396
+ },
397
+ transcription: {
398
+ mode: 'auto-on',
399
+ closed_caption_mode: 'auto-on',
400
+ // @ts-expect-error outdated types
401
+ languages: [],
402
+ language: 'en',
403
+ },
404
+ video: {
405
+ enabled: true,
406
+ access_request_enabled: true,
407
+ target_resolution: {
408
+ width: 1280,
409
+ height: 720,
410
+ bitrate: 1500000,
411
+ },
412
+ camera_default_on: true,
413
+ camera_facing: 'front',
414
+ },
415
+ thumbnails: {
416
+ enabled: true,
417
+ },
418
+ limits: {
419
+ max_participants: null,
420
+ // @ts-expect-error outdated types
421
+ max_participants_exclude_roles: [],
422
+ max_duration_seconds: null,
423
+ },
424
+ session: {
425
+ inactivity_timeout_seconds: 30,
426
+ },
427
+ ingress: {
428
+ enabled: true,
429
+ audio_encoding_options: {
430
+ channels: 2,
431
+ enable_dtx: false,
432
+ bitrate: 128000,
433
+ },
434
+ video_encoding_options: {
435
+ '1280x720x30': {
436
+ layers: [
437
+ {
438
+ codec: 'h264',
439
+ bitrate: 3000000,
440
+ min_dimension: 720,
441
+ max_dimension: 1280,
442
+ frame_rate_limit: 30,
443
+ },
444
+ {
445
+ codec: 'h264',
446
+ bitrate: 1000000,
447
+ min_dimension: 600,
448
+ max_dimension: 800,
449
+ frame_rate_limit: 30,
450
+ },
451
+ {
452
+ codec: 'h264',
453
+ bitrate: 500000,
454
+ min_dimension: 360,
455
+ max_dimension: 640,
456
+ frame_rate_limit: 30,
457
+ },
458
+ ],
459
+ },
460
+ '1920x1080x30': {
461
+ layers: [
462
+ {
463
+ codec: 'h264',
464
+ bitrate: 4000000,
465
+ min_dimension: 1080,
466
+ max_dimension: 1920,
467
+ frame_rate_limit: 30,
468
+ },
469
+ {
470
+ codec: 'h264',
471
+ bitrate: 3000000,
472
+ min_dimension: 720,
473
+ max_dimension: 1280,
474
+ frame_rate_limit: 30,
475
+ },
476
+ {
477
+ codec: 'h264',
478
+ bitrate: 1000000,
479
+ min_dimension: 600,
480
+ max_dimension: 800,
481
+ frame_rate_limit: 30,
482
+ },
483
+ ],
484
+ },
485
+ '2560x1440x30': {
486
+ layers: [
487
+ {
488
+ codec: 'h264',
489
+ bitrate: 6000000,
490
+ min_dimension: 1440,
491
+ max_dimension: 2560,
492
+ frame_rate_limit: 30,
493
+ },
494
+ {
495
+ codec: 'h264',
496
+ bitrate: 4000000,
497
+ min_dimension: 1080,
498
+ max_dimension: 1920,
499
+ frame_rate_limit: 30,
500
+ },
501
+ {
502
+ codec: 'h264',
503
+ bitrate: 2000000,
504
+ min_dimension: 720,
505
+ max_dimension: 1280,
506
+ frame_rate_limit: 30,
507
+ },
508
+ ],
509
+ },
510
+ '3840x2160x30': {
511
+ layers: [
512
+ {
513
+ codec: 'h264',
514
+ bitrate: 18000000,
515
+ min_dimension: 2160,
516
+ max_dimension: 3840,
517
+ frame_rate_limit: 30,
518
+ },
519
+ {
520
+ codec: 'h264',
521
+ bitrate: 8000000,
522
+ min_dimension: 1080,
523
+ max_dimension: 1920,
524
+ frame_rate_limit: 30,
525
+ },
526
+ {
527
+ codec: 'h264',
528
+ bitrate: 2000000,
529
+ min_dimension: 720,
530
+ max_dimension: 1280,
531
+ frame_rate_limit: 30,
532
+ },
533
+ ],
534
+ },
535
+ },
536
+ },
537
+ },
538
+ blocked_user_ids: [],
539
+ ingress: {
540
+ rtmp: {
541
+ address:
542
+ 'rtmps://ingress.stream-io-video.com:443/par8f5s3gn2j.default.h6c44o00NeFTH6IvsGGgM',
543
+ },
544
+ },
545
+ session: {
546
+ id: 'b8a44039-41f3-4570-a438-187d6df65671',
547
+ started_at: null,
548
+ ended_at: null,
549
+ participants: [],
550
+ participants_count_by_role: {},
551
+ anonymous_participant_count: 0,
552
+ rejected_by: {},
553
+ accepted_by: {},
554
+ missed_by: {},
555
+ live_started_at: null,
556
+ live_ended_at: null,
557
+ timer_ends_at: null,
558
+ },
559
+ egress: {
560
+ broadcasting: false,
561
+ hls: null,
562
+ rtmps: [],
563
+ frame_recording: null,
564
+ },
565
+ thumbnails: {
566
+ image_url:
567
+ 'https://us-east.stream-io-cdn.com/1270131/images/default/h6c44o00NeFTH6IvsGGgM/preview/thumbnail.jpg?Key-Pair-Id=APKAIHG36VEWPDULE23Q&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly91cy1lYXN0LnN0cmVhbS1pby1jZG4uY29tLzEyNzAxMzEvaW1hZ2VzL2RlZmF1bHQvaDZjNDRvMDBOZUZUSDZJdnNHR2dNL3ByZXZpZXcvdGh1bWJuYWlsLmpwZyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NTU0NDIxMTl9fX1dfQ__&Signature=ladoiTTWl8bbnSqEDswKUIQ1hbY1kVbDFuHS4mZgHBcv-L1hJ13q1UE5fKBCMbqGvrL~9AzLTYFpX2AwhX85JYRvTESHxfqqQyrSiFf9FLMmZMbi2ro-YBJOeFRE3Iz2~jVcqr~HAw26mHfcM74CMMv3cCQGBToXtYgdfUuN-snPWQidfnRGReDN6slb8mga0gufw4UoJr~WLWLc6nNYPyuYRcGMj4dghRtQiCcyfGXtuOc~Hjlnh8DTZgPY09QZlX7HwqyENfP4~qEHnMsRyZBfzqFk4mT-T~HDd3v26Ruf3clVETjdKTH4xzd2D1fpFF0Q8YjtWrS0NK1qW3pc9w__',
568
+ },
569
+ join_ahead_time_seconds: 0,
570
+ channel_cid: null,
571
+ },
572
+ members: [
573
+ {
574
+ user: {
575
+ id: 'marcelo',
576
+ name: 'marcelo',
577
+ image:
578
+ 'https://getstream.io/static/aaf5fb17dcfd0a3dd885f62bd21b325a/802d2/marcelo-pires.webp',
579
+ custom: {
580
+ imageUrl: 'https://getstream.io/random_png/?id=marcelo&name=marcelo',
581
+ },
582
+ language: '',
583
+ role: 'user',
584
+ teams: [],
585
+ created_at: '2024-01-10T13:26:19.889536Z',
586
+ updated_at: '2025-08-07T07:35:43.81976Z',
587
+ // @ts-expect-error outdated types
588
+ banned: false,
589
+ online: false,
590
+ last_active: '2025-08-07T04:30:50.670932Z',
591
+ blocked_user_ids: [],
592
+ },
593
+ user_id: 'marcelo',
594
+ custom: {},
595
+ created_at: '2025-08-14T14:48:39.9691Z',
596
+ updated_at: '2025-08-14T14:48:39.9691Z',
597
+ },
598
+ ],
599
+ user: {
600
+ id: 'oliver',
601
+ name: 'Oliver Lazoroski',
602
+ image:
603
+ 'https://lh3.googleusercontent.com/a/ACg8ocJLHHaOnen-0xmJir7r65nPKpIVnF6TTvpX0QbFSXjGa8WWF9Y=s96-c',
604
+ custom: {
605
+ imageUrl:
606
+ 'https://ca.slack-edge.com/T02RM6X6B-U03HJKTMSQZ-cdf636547793-512',
607
+ },
608
+ language: '',
609
+ role: 'user',
610
+ teams: [],
611
+ created_at: '2024-01-10T14:46:46.567417Z',
612
+ updated_at: '2025-08-14T14:48:32.808624Z',
613
+ // @ts-expect-error outdated types
614
+ banned: false,
615
+ online: false,
616
+ last_active: '2025-08-12T11:50:03.973174Z',
617
+ blocked_user_ids: [],
618
+ },
619
+ video: false,
620
+ received_at: '2025-08-14T14:48:39.990Z',
621
+ };