mezon-js 2.12.62 → 2.12.63

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/api.gen.ts CHANGED
@@ -2840,6 +2840,8 @@ export interface ApiWebhook {
2840
2840
  url?: string;
2841
2841
  //
2842
2842
  webhook_name?: string;
2843
+ //
2844
+ clan_id?: string;
2843
2845
  }
2844
2846
 
2845
2847
  /** */
package/dist/api.gen.d.ts CHANGED
@@ -1624,6 +1624,7 @@ export interface ApiWebhook {
1624
1624
  update_time?: string;
1625
1625
  url?: string;
1626
1626
  webhook_name?: string;
1627
+ clan_id?: string;
1627
1628
  }
1628
1629
  /** */
1629
1630
  export interface ApiWebhookCreateRequest {
@@ -7257,6 +7257,8 @@ var _DefaultSocket = class _DefaultSocket {
7257
7257
  );
7258
7258
  } else if (message.block_friend) {
7259
7259
  this.onblockfriend(message.block_friend);
7260
+ } else if (message.un_block_friend) {
7261
+ this.onblockfriend(message.block_friend);
7260
7262
  } else if (message.remove_friend) {
7261
7263
  this.onremovefriend(message.remove_friend);
7262
7264
  } else if (message.user_clan_removed_event) {
@@ -7441,6 +7443,11 @@ var _DefaultSocket = class _DefaultSocket {
7441
7443
  console.log(user);
7442
7444
  }
7443
7445
  }
7446
+ onunblockfriend(user) {
7447
+ if (this.verbose && window && window.console) {
7448
+ console.log(user);
7449
+ }
7450
+ }
7444
7451
  onuserclanremoved(user) {
7445
7452
  if (this.verbose && window && window.console) {
7446
7453
  console.log(user);
@@ -7223,6 +7223,8 @@ var _DefaultSocket = class _DefaultSocket {
7223
7223
  );
7224
7224
  } else if (message.block_friend) {
7225
7225
  this.onblockfriend(message.block_friend);
7226
+ } else if (message.un_block_friend) {
7227
+ this.onblockfriend(message.block_friend);
7226
7228
  } else if (message.remove_friend) {
7227
7229
  this.onremovefriend(message.remove_friend);
7228
7230
  } else if (message.user_clan_removed_event) {
@@ -7407,6 +7409,11 @@ var _DefaultSocket = class _DefaultSocket {
7407
7409
  console.log(user);
7408
7410
  }
7409
7411
  }
7412
+ onunblockfriend(user) {
7413
+ if (this.verbose && window && window.console) {
7414
+ console.log(user);
7415
+ }
7416
+ }
7410
7417
  onuserclanremoved(user) {
7411
7418
  if (this.verbose && window && window.console) {
7412
7419
  console.log(user);
package/dist/socket.d.ts CHANGED
@@ -642,6 +642,9 @@ export interface RemoveFriend {
642
642
  export interface BlockFriend {
643
643
  user_id: string;
644
644
  }
645
+ export interface UnblockFriend {
646
+ user_id: string;
647
+ }
645
648
  export interface AddUserEmojiUsageEvent {
646
649
  emoji_id: string;
647
650
  clan_id: string;
@@ -971,6 +974,7 @@ export interface Socket {
971
974
  onuserchannelremoved: (user: UserChannelRemovedEvent) => void;
972
975
  onremovefriend: (user: RemoveFriend) => void;
973
976
  onblockfriend: (user: BlockFriend) => void;
977
+ onunblockfriend: (user: UnblockFriend) => void;
974
978
  /** Receive clan removed user event */
975
979
  onuserclanremoved: (user: UserClanRemovedEvent) => void;
976
980
  onvoicestarted: (voice: VoiceStartedEvent) => void;
@@ -1057,6 +1061,7 @@ export declare class DefaultSocket implements Socket {
1057
1061
  onuserchannelremoved(user: UserChannelRemovedEvent): void;
1058
1062
  onremovefriend(user: RemoveFriend): void;
1059
1063
  onblockfriend(user: BlockFriend): void;
1064
+ onunblockfriend(user: UnblockFriend): void;
1060
1065
  onuserclanremoved(user: UserClanRemovedEvent): void;
1061
1066
  onnotification(notification: ApiNotification): void;
1062
1067
  onstatuspresence(statusPresence: StatusPresenceEvent): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.62",
3
+ "version": "2.12.63",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -994,6 +994,11 @@ export interface BlockFriend {
994
994
  user_id: string;
995
995
  }
996
996
 
997
+ export interface UnblockFriend {
998
+ //
999
+ user_id: string;
1000
+ }
1001
+
997
1002
  export interface AddUserEmojiUsageEvent {
998
1003
  emoji_id: string;
999
1004
  clan_id: string;
@@ -1654,6 +1659,8 @@ export interface Socket {
1654
1659
 
1655
1660
  onblockfriend: (user: BlockFriend) => void;
1656
1661
 
1662
+ onunblockfriend: (user: UnblockFriend) => void;
1663
+
1657
1664
  /** Receive clan removed user event */
1658
1665
  onuserclanremoved: (user: UserClanRemovedEvent) => void;
1659
1666
 
@@ -1937,6 +1944,8 @@ export class DefaultSocket implements Socket {
1937
1944
  );
1938
1945
  } else if (message.block_friend) {
1939
1946
  this.onblockfriend(<BlockFriend>message.block_friend);
1947
+ } else if (message.un_block_friend) {
1948
+ this.onblockfriend(<BlockFriend>message.block_friend);
1940
1949
  } else if (message.remove_friend) {
1941
1950
  this.onremovefriend(<RemoveFriend>message.remove_friend);
1942
1951
  } else if (message.user_clan_removed_event) {
@@ -2142,6 +2151,12 @@ export class DefaultSocket implements Socket {
2142
2151
  }
2143
2152
  }
2144
2153
 
2154
+ onunblockfriend(user: UnblockFriend) {
2155
+ if (this.verbose && window && window.console) {
2156
+ console.log(user);
2157
+ }
2158
+ }
2159
+
2145
2160
  onuserclanremoved(user: UserClanRemovedEvent) {
2146
2161
  if (this.verbose && window && window.console) {
2147
2162
  console.log(user);