@stream-io/video-client 1.44.6-beta.0 → 1.45.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.
package/src/types.ts CHANGED
@@ -23,7 +23,6 @@ import type {
23
23
  import type { Comparator } from './sorting';
24
24
  import type { StreamVideoWriteableStateStore } from './store';
25
25
  import { AxiosError } from 'axios';
26
- import type { Call } from './Call';
27
26
 
28
27
  export type StreamReaction = Pick<
29
28
  ReactionResponse,
@@ -393,68 +392,26 @@ export type StartCallRecordingFnType = {
393
392
  ): Promise<StartRecordingResponse>;
394
393
  };
395
394
 
396
- type StreamRNVideoSDKCallManagerRingingParams = {
397
- isRingingTypeCall: boolean;
398
- };
399
-
400
- type StreamRNVideoSDKCallManagerSetupParams =
401
- StreamRNVideoSDKCallManagerRingingParams & {
402
- defaultDevice: AudioSettingsRequestDefaultDeviceEnum;
403
- };
404
-
405
- type StreamRNVideoSDKEndCallReason =
406
- /** Call ended by the local user (e.g., hanging up). */
407
- | 'local'
408
- /** Call ended by the remote party, or outgoing call was not answered. */
409
- | 'remote'
410
- /** Call was rejected/declined by the user. */
411
- | 'rejected'
412
- /** Remote party was busy. */
413
- | 'busy'
414
- /** Call was answered on another device. */
415
- | 'answeredElsewhere'
416
- /** No response to an incoming call. */
417
- | 'missed'
418
- /** Call failed due to an error (e.g., network issue). */
419
- | 'error'
420
- /** Call was canceled before the remote party could answer. */
421
- | 'canceled'
422
- /** Call restricted (e.g., airplane mode, dialing restrictions). */
423
- | 'restricted'
424
- /** Unknown or unspecified disconnect reason. */
425
- | 'unknown';
426
-
427
- type StreamRNVideoSDKCallingX = {
428
- joinCall: (call: Call, activeCalls: Call[]) => Promise<void>;
429
- endCall: (
430
- call: Call,
431
- reason?: StreamRNVideoSDKEndCallReason,
432
- ) => Promise<void>;
433
- registerOutgoingCall: (call: Call) => Promise<void>;
434
- };
435
-
436
395
  export type StreamRNVideoSDKGlobals = {
437
- callingX: StreamRNVideoSDKCallingX;
438
396
  callManager: {
439
397
  /**
440
398
  * Sets up the in call manager.
441
399
  */
442
400
  setup({
443
401
  defaultDevice,
444
- isRingingTypeCall,
445
- }: StreamRNVideoSDKCallManagerSetupParams): void;
402
+ }: {
403
+ defaultDevice: AudioSettingsRequestDefaultDeviceEnum;
404
+ }): void;
446
405
 
447
406
  /**
448
407
  * Starts the in call manager.
449
408
  */
450
- start({
451
- isRingingTypeCall,
452
- }: StreamRNVideoSDKCallManagerRingingParams): void;
409
+ start(): void;
453
410
 
454
411
  /**
455
412
  * Stops the in call manager.
456
413
  */
457
- stop({ isRingingTypeCall }: StreamRNVideoSDKCallManagerRingingParams): void;
414
+ stop(): void;
458
415
  };
459
416
  permissions: {
460
417
  /**