@daily-co/react-native-daily-js 0.53.1 → 0.54.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daily-co/react-native-daily-js",
3
- "version": "0.53.1",
3
+ "version": "0.54.0",
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",
@@ -26,7 +26,7 @@
26
26
  "baseUrl": "https://github.com/daily-co/react-native-daily-js"
27
27
  },
28
28
  "dependencies": {
29
- "@daily-co/daily-js": "^0.55.1",
29
+ "@daily-co/daily-js": "^0.56.0",
30
30
  "@types/react-native-background-timer": "^2.0.0",
31
31
  "base-64": "^1.0.0",
32
32
  "react-native-url-polyfill": "^1.1.2"
@@ -62,6 +62,7 @@ export type DailyEvent =
62
62
  | 'transcription-stopped'
63
63
  | 'transcription-error'
64
64
  | 'app-message'
65
+ | 'transcription-message'
65
66
  | 'local-screen-share-started'
66
67
  | 'local-screen-share-stopped'
67
68
  | 'active-speaker-change'
@@ -858,6 +859,13 @@ export interface DailyEventObjectAppMessage {
858
859
  fromId: string;
859
860
  }
860
861
 
862
+ export interface DailyEventObjectTranscriptionMessage {
863
+ action: Extract<DailyEvent, 'transcription-message'>;
864
+ participantId: string;
865
+ text: string;
866
+ timestamp: Date;
867
+ }
868
+
861
869
  export interface DailyEventObjectReceiveSettingsUpdated {
862
870
  action: Extract<DailyEvent, 'receive-settings-updated'>;
863
871
  receiveSettings: DailyReceiveSettings;
@@ -896,9 +904,11 @@ export interface DailyEventObjectTranscriptionStarted {
896
904
  language: string;
897
905
  model: string;
898
906
  tier?: string;
899
- detect_language?: boolean;
900
907
  profanity_filter?: boolean;
901
908
  redact?: Array<string> | Array<boolean> | boolean;
909
+ endpointing?: number | boolean;
910
+ punctuate?: boolean;
911
+ extra?: Record<string, any>;
902
912
  startedBy: string;
903
913
  }
904
914
 
@@ -927,6 +937,8 @@ export interface DailyEventObjectRemoteMediaPlayerStopped {
927
937
  export type DailyEventObject<T extends DailyEvent = any> =
928
938
  T extends DailyEventObjectAppMessage['action']
929
939
  ? DailyEventObjectAppMessage
940
+ : T extends DailyEventObjectTranscriptionMessage['action']
941
+ ? DailyEventObjectTranscriptionMessage
930
942
  : T extends DailyEventObjectNoPayload['action']
931
943
  ? DailyEventObjectNoPayload
932
944
  : T extends DailyEventObjectCameraError['action']
@@ -1175,6 +1187,9 @@ export interface DailyTranscriptionDeepgramOptions {
1175
1187
  tier?: string;
1176
1188
  profanity_filter?: boolean;
1177
1189
  redact?: Array<string> | Array<boolean> | boolean;
1190
+ endpointing?: number | boolean;
1191
+ punctuate?: boolean;
1192
+ extra?: Record<string, any>;
1178
1193
  }
1179
1194
 
1180
1195
  export interface DailyCall {