@cometchat/chat-sdk-javascript 4.1.8 → 4.1.9

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/CometChat.d.ts CHANGED
@@ -11,6 +11,7 @@
11
11
  export as namespace CometChat;
12
12
  export as namespace CometChatNotifications;
13
13
 
14
+ export const DEFAULT_TIMEOUT = 45;
14
15
  export class CometChat {
15
16
  static AIAssistantBaseEvent: typeof AIAssistantBaseEvent;
16
17
  static AIAssistantRunStartedEvent: typeof AIAssistantRunStartedEvent;
@@ -1736,10 +1737,11 @@ export class CometChat {
1736
1737
  /**
1737
1738
  * Function to initiate a user/group call.
1738
1739
  * @param {Call} call
1740
+ * @param {number} [timeout] - Optional call timeout in seconds. Defaults to {@link DEFAULT_TIMEOUT} seconds.
1739
1741
  * @returns {Promise<Call>}
1740
1742
  * @memberof CometChat
1741
1743
  */
1742
- static initiateCall(call: Call | any): Promise<Call>;
1744
+ static initiateCall(call: Call | any, timeout?: number): Promise<Call>;
1743
1745
  /**
1744
1746
  * Function to accept an incoming user/group call.
1745
1747
  * @param {string} sessionid
@@ -4741,10 +4743,11 @@ export class CallController {
4741
4743
  *
4742
4744
  * @internal
4743
4745
  * @param {Call} call
4744
- * @returns
4746
+ * @param {number} [timeout] - Optional call timeout in seconds. Defaults to {@link DEFAULT_TIMEOUT} seconds.
4747
+ * @returns {Promise<Call>}
4745
4748
  * @memberof CallController
4746
4749
  */
4747
- initiateCall(call: Call): Promise<Call>;
4750
+ initiateCall(call: Call, timeout?: number): Promise<Call>;
4748
4751
  /**
4749
4752
  * @internal
4750
4753
  * Method to clear timer.