@daily-co/react-native-daily-js 0.83.0 → 0.84.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.
|
|
3
|
+
"version": "0.84.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",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@daily-co/daily-js": "^0.
|
|
33
|
+
"@daily-co/daily-js": "^0.89.0",
|
|
34
34
|
"@types/react-native-background-timer": "^2.0.0",
|
|
35
35
|
"base-64": "^1.0.0",
|
|
36
36
|
"react-native-url-polyfill": "^1.1.2"
|
|
@@ -170,6 +170,11 @@ export interface DailyCallOptions {
|
|
|
170
170
|
userData?: unknown;
|
|
171
171
|
startVideoOff?: boolean;
|
|
172
172
|
startAudioOff?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Optional key-value map of client info to include in call logs (e.g. SDK name and version).
|
|
175
|
+
* Max 10 entries; keys max 64 chars (a-z, 0-9, _, -); values max 256 chars.
|
|
176
|
+
*/
|
|
177
|
+
aboutClient?: Record<string, string>;
|
|
173
178
|
}
|
|
174
179
|
|
|
175
180
|
export interface DailyLoadOptions extends DailyCallOptions {
|
|
@@ -1231,6 +1236,14 @@ export interface DailyEventObjectDialOutWarning extends DailyEventObjectBase {
|
|
|
1231
1236
|
actionTraceId?: string;
|
|
1232
1237
|
}
|
|
1233
1238
|
|
|
1239
|
+
export interface DailyEventObjectDtmfEvent extends DailyEventObjectBase {
|
|
1240
|
+
action: Extract<DailyEvent, 'dtmf-event'>;
|
|
1241
|
+
tone: string;
|
|
1242
|
+
volume: number;
|
|
1243
|
+
method: string;
|
|
1244
|
+
sessionId?: string;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1234
1247
|
export type DailyEventObject<T extends DailyEvent = any> =
|
|
1235
1248
|
T extends DailyEventObjectAppMessage['action']
|
|
1236
1249
|
? DailyEventObjectAppMessage
|
|
@@ -1320,6 +1333,8 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
1320
1333
|
? DailyEventObjectDialOutStopped
|
|
1321
1334
|
: T extends DailyEventObjectDialOutWarning['action']
|
|
1322
1335
|
? DailyEventObjectDialOutWarning
|
|
1336
|
+
: T extends DailyEventObjectDtmfEvent['action']
|
|
1337
|
+
? DailyEventObjectDtmfEvent
|
|
1323
1338
|
: T extends DailyEventObjectLocalAudioLevel['action']
|
|
1324
1339
|
? DailyEventObjectLocalAudioLevel
|
|
1325
1340
|
: T extends DailyEventObjectRemoteParticipantsAudioLevel['action']
|
|
@@ -1598,6 +1613,20 @@ export interface DailySipCallTransferOptions {
|
|
|
1598
1613
|
waitBeforeExtensionDialSec?: number;
|
|
1599
1614
|
}
|
|
1600
1615
|
|
|
1616
|
+
export type DTMF_METHOD_SIP_INFO = 'sip-info';
|
|
1617
|
+
export type DTMF_METHOD_TELEPHONE_EVENT = 'telephone-event';
|
|
1618
|
+
export type DTMF_METHOD_AUTO = 'auto';
|
|
1619
|
+
|
|
1620
|
+
export interface DailySendDtmfOptions {
|
|
1621
|
+
sessionId: string;
|
|
1622
|
+
tones: string;
|
|
1623
|
+
method?:
|
|
1624
|
+
| DTMF_METHOD_SIP_INFO
|
|
1625
|
+
| DTMF_METHOD_TELEPHONE_EVENT
|
|
1626
|
+
| DTMF_METHOD_AUTO;
|
|
1627
|
+
digitDurationMs?: number;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1601
1630
|
export interface DailySipReferOptions {
|
|
1602
1631
|
sessionId: string;
|
|
1603
1632
|
toEndPoint: string;
|
|
@@ -1759,7 +1788,7 @@ export interface DailyCall {
|
|
|
1759
1788
|
options: DailyStartDialoutOptions
|
|
1760
1789
|
): Promise<{ session?: DailyDialOutSession }>;
|
|
1761
1790
|
stopDialOut(options: { sessionId: string }): Promise<void>;
|
|
1762
|
-
sendDTMF(options:
|
|
1791
|
+
sendDTMF(options: DailySendDtmfOptions): Promise<void>;
|
|
1763
1792
|
sipCallTransfer(options: DailySipCallTransferOptions): Promise<void>;
|
|
1764
1793
|
sipRefer(options: DailySipReferOptions): Promise<void>;
|
|
1765
1794
|
}
|