@cometchat/chat-sdk-javascript 4.1.7 → 4.1.8

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
@@ -22,7 +22,6 @@ export class CometChat {
22
22
  static AIAssistantToolEndedEvent: typeof AIAssistantToolEndedEvent;
23
23
  static AIAssistantToolArgumentEvent: typeof AIAssistantToolArgumentEvent;
24
24
  static AIAssistantToolResultEvent: typeof AIAssistantToolResultEvent;
25
- static SecureMediaMode: typeof SecureMediaMode;
26
25
  static AI_ASSISTANT_EVENTS: {
27
26
  RUN_STARTED: string;
28
27
  RUN_FINISHED: string;
@@ -2118,17 +2117,6 @@ export class CometChat {
2118
2117
  success: boolean;
2119
2118
  message: string;
2120
2119
  }>;
2121
- /**
2122
- * Returns the decoded File Access Token (FAT) for the currently logged-in user, or null if unavailable.
2123
- * @returns {string | null}
2124
- */
2125
- static getFat(): string | null;
2126
- /**
2127
- * Resolves a presigned URL for the given secure media URL using the FAT header approach. Returns the original URL unchanged if header mode is not enabled or the URL does not require secure access.
2128
- * @param {string} url - The original media URL to resolve.
2129
- * @returns {Promise<string>}
2130
- */
2131
- static fetchPresignedUrl(url: string): Promise<string>;
2132
2120
  }
2133
2121
 
2134
2122
  export class CometChatNotifications {
@@ -3013,10 +3001,6 @@ export enum StorageMode {
3013
3001
  LOCAL = "local",
3014
3002
  SESSION = "session"
3015
3003
  }
3016
- export enum SecureMediaMode {
3017
- EMBEDDED = 0,
3018
- HEADER_BASED = 1
3019
- }
3020
3004
  export const GROUP_MEMBER_SCOPE: {
3021
3005
  ADMIN: string;
3022
3006
  MODERATOR: string;
@@ -4603,7 +4587,7 @@ export class Call extends BaseMessage implements Message {
4603
4587
  ACTION: string;
4604
4588
  CALL: string;
4605
4589
  CUSTOM: string;
4606
- INTERACTIVE: string;
4590
+ INTERACTIVE: string;
4607
4591
  };
4608
4592
  static readonly ACTION_TYPE: {
4609
4593
  TYPE_MEMBER_JOINED: string;
@@ -6495,8 +6479,6 @@ export class AppSettings {
6495
6479
  clientHost: string;
6496
6480
  /** @private */
6497
6481
  storageMode: StorageMode;
6498
- /** @private */
6499
- secureMediaMode: SecureMediaMode;
6500
6482
  /**
6501
6483
  * @private
6502
6484
  * @param {AppSettingsBuilder}
@@ -6542,11 +6524,6 @@ export class AppSettings {
6542
6524
  * @returns {StorageMode}
6543
6525
  */
6544
6526
  getStorageMode(): StorageMode;
6545
- /**
6546
- * Returns the secure media mode (embedded or header-based) set using the `setSecureMediaMode()` of the AppSettingsBuilder.
6547
- * @returns {SecureMediaMode}
6548
- */
6549
- getSecureMediaMode(): SecureMediaMode;
6550
6527
  }
6551
6528
  export class AppSettingsBuilder {
6552
6529
  /** @private */
@@ -6565,8 +6542,6 @@ export class AppSettingsBuilder {
6565
6542
  clientHost: string;
6566
6543
  /** @private */
6567
6544
  storageMode: StorageMode;
6568
- /** @private */
6569
- secureMediaMode: SecureMediaMode;
6570
6545
  /**
6571
6546
  * A method to subscribe presence for all users.
6572
6547
  * @returns
@@ -6620,12 +6595,6 @@ export class AppSettingsBuilder {
6620
6595
  * @returns {this}
6621
6596
  */
6622
6597
  setStorageMode(storageMode: StorageMode): this;
6623
- /**
6624
- * Sets the secure media mode for the app settings.
6625
- * @param {SecureMediaMode} secureMediaMode - The secure media mode to use.
6626
- * @returns {this}
6627
- */
6628
- setSecureMediaMode(secureMediaMode: SecureMediaMode): this;
6629
6598
  /**
6630
6599
  * This method will return an object of the AppSettings class.
6631
6600
  * @returns {AppSettings}
@@ -6654,17 +6623,6 @@ export class CometChatHelper {
6654
6623
  */
6655
6624
  static getConversationFromMessage(message: TextMessage | MediaMessage | CustomMessage | InteractiveMessage | any): Promise<Conversation>;
6656
6625
  static updateMessageWithReactionInfo(baseMessage: BaseMessage, messageReaction: Reaction, action: REACTION_ACTION): BaseMessage | CometChatException;
6657
- /**
6658
- * Returns true if header-based secure media mode is active, a valid FAT exists, and the secure media host is configured.
6659
- * @returns {boolean}
6660
- */
6661
- static isHeaderModeEnabled(): boolean;
6662
- /**
6663
- * Returns true if the given URL points to the configured secure media host and requires authenticated access.
6664
- * @param {string | null} url - The URL to check.
6665
- * @returns {boolean}
6666
- */
6667
- static requiresSecureAccess(url: string | null): boolean;
6668
6626
  }
6669
6627
 
6670
6628
  /**
@@ -8988,4 +8946,3 @@ export class AIAssistantToolResultEvent extends AIAssistantBaseEvent<AssistantTo
8988
8946
  */
8989
8947
  setRole(role: string): void;
8990
8948
  }
8991
-