@daily-co/react-native-daily-js 0.71.0 → 0.72.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daily-co/react-native-daily-js",
3
- "version": "0.71.0",
3
+ "version": "0.72.1",
4
4
  "description": "React Native library for making video calls using Daily",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "baseUrl": "https://github.com/daily-co/react-native-daily-js"
29
29
  },
30
30
  "dependencies": {
31
- "@daily-co/daily-js": "^0.74.0",
31
+ "@daily-co/daily-js": "^0.75.2",
32
32
  "@types/react-native-background-timer": "^2.0.0",
33
33
  "base-64": "^1.0.0",
34
34
  "react-native-url-polyfill": "^1.1.2"
@@ -276,6 +276,14 @@ export type DailyParticipantPermissionsCanAdminValues =
276
276
  | 'streaming'
277
277
  | 'transcription';
278
278
 
279
+ export type DailyParticipantTypeValues =
280
+ | 'remote-media-player'
281
+ | 'sip-dial-in'
282
+ | 'sip-dial-out'
283
+ | 'pstn-dial-in'
284
+ | 'pstn-dial-out'
285
+ | 'unknown';
286
+
279
287
  export interface DailyParticipantPermissions {
280
288
  hasPresence: boolean;
281
289
  canSend: Set<DailyParticipantPermissionsCanSendValues> | boolean;
@@ -348,6 +356,7 @@ export interface DailyParticipant {
348
356
  owner: boolean;
349
357
  permissions: DailyParticipantPermissions;
350
358
  record: boolean;
359
+ participantType?: DailyParticipantTypeValues;
351
360
 
352
361
  // video element info (iframe-based calls using standard UI only)
353
362
  /**
@@ -415,6 +424,12 @@ export interface DailyVideoElementInfo {
415
424
  video_height: number;
416
425
  }
417
426
 
427
+ /**
428
+ * DailyDeviceInfos reports the device information for the camera, mic, and
429
+ * speaker currently in use or expected. If the given device has not been
430
+ * specified and has not yet been acquired, the object will be empty ({}).
431
+ * The object will also be empty if a custom track has been provided.
432
+ */
418
433
  export interface DailyDeviceInfos {
419
434
  camera: {} | MediaDeviceInfo;
420
435
  mic: {} | MediaDeviceInfo;
@@ -704,6 +719,23 @@ export interface DailyReceiveSettingsUpdates {
704
719
  | 'inherit';
705
720
  }
706
721
 
722
+ export interface DailyInputSettings {
723
+ audio?: DailyInputAudioSettings;
724
+ video?: DailyInputVideoSettings;
725
+ }
726
+
727
+ export interface DailyCustomTrackSettings {
728
+ customTrack: MediaStreamTrack;
729
+ }
730
+
731
+ export interface DailyInputAudioSettings {
732
+ settings?: MediaTrackConstraints | DailyCustomTrackSettings;
733
+ }
734
+
735
+ export interface DailyInputVideoSettings {
736
+ settings?: MediaTrackConstraints | DailyCustomTrackSettings;
737
+ }
738
+
707
739
  export type DailyEventObjectBase = {
708
740
  action: DailyEvent;
709
741
  callClientId: string;
@@ -739,6 +771,7 @@ export interface DailyCamDeviceNotFoundError extends DailyCameraError {
739
771
  export interface DailyCamConstraintsError extends DailyCameraError {
740
772
  type: Extract<DailyCameraErrorType, 'constraints'>;
741
773
  reason: 'invalid' | 'none-specified';
774
+ failedMedia: Array<'video' | 'audio'>;
742
775
  }
743
776
 
744
777
  export interface DailyCamInUseError extends DailyCameraError {
@@ -1531,6 +1564,9 @@ export interface DailyCall {
1531
1564
  updateReceiveSettings(
1532
1565
  receiveSettings: DailyReceiveSettingsUpdates
1533
1566
  ): Promise<DailyReceiveSettings>;
1567
+ updateInputSettings(
1568
+ inputSettings: DailyInputSettings
1569
+ ): Promise<{ inputSettings: DailyInputSettings }>;
1534
1570
  startCamera(properties?: DailyCallOptions): Promise<void>;
1535
1571
  startLocalAudioLevelObserver(interval?: number): Promise<void>;
1536
1572
  isLocalAudioLevelObserverRunning(): boolean;