mezon-js 2.12.37 → 2.12.39

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/dist/socket.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiAllUsersAddChannelResponse, ApiChannelAttachmentList, ApiChannelDescList, ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiChannelMessageList, ApiChannelSettingListResponse, ApiChannelUserList, ApiClanDescList, ApiCreateEventRequest, ApiEmojiListedResponse, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiListClanWebhookResponse, ApiListFavoriteChannelResponse, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationChannel, ApiNotificationChannelCategorySettingList, ApiNotificationList, ApiNotificationSetting, ApiNotificationUserChannel, ApiNotifiReactMessage, ApiPermissionList, ApiPermissionRoleChannelListEventResponse, ApiPermissionUpdate, ApiRole, ApiRoleList, ApiRoleListEventResponse, ApiRoleUserList, ApiRpc, ApiStickerListedResponse, ApiTokenSentEvent, ApiUserActivity, ApiUserPermissionInChannelListResponse, ApiVoiceChannelUserList, ApiWebhook, ApiWebhookListResponse, ApiEmojiRecentList } from "./api.gen";
16
+ import { ApiAllUsersAddChannelResponse, ApiChannelAttachmentList, ApiChannelDescList, ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiChannelMessageList, ApiChannelSettingListResponse, ApiChannelUserList, ApiClanDescList, ApiCreateEventRequest, ApiEmojiListedResponse, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiListClanWebhookResponse, ApiListFavoriteChannelResponse, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationChannel, ApiNotificationChannelCategorySettingList, ApiNotificationList, ApiNotificationSetting, ApiNotificationUserChannel, ApiNotifiReactMessage, ApiPermissionList, ApiPermissionRoleChannelListEventResponse, ApiPermissionUpdate, ApiRole, ApiRoleList, ApiRoleListEventResponse, ApiRoleUserList, ApiRpc, ApiStickerListedResponse, ApiTokenSentEvent, ApiUserActivity, ApiUserPermissionInChannelListResponse, ApiVoiceChannelUserList, ApiWebhook, ApiWebhookListResponse, ApiEmojiRecentList, ApiFriendList, ApiListChannelAppsResponse, ApiListUserActivity } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { ChannelMessage } from "./client";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -548,6 +548,7 @@ export interface EventEmoji {
548
548
  user_id: string;
549
549
  logo: string;
550
550
  clan_name: string;
551
+ is_for_sale: boolean;
551
552
  }
552
553
  /** */
553
554
  export interface ClanEmoji {
@@ -834,6 +835,11 @@ export interface ListDataSocket {
834
835
  permission_role_req?: any;
835
836
  permission_role_list?: ApiPermissionRoleChannelListEventResponse;
836
837
  emoji_list?: ApiEmojiListedResponse;
838
+ list_friend_req?: any;
839
+ friend_list?: ApiFriendList;
840
+ list_apps_req?: any;
841
+ channel_apps_list?: ApiListChannelAppsResponse;
842
+ user_activity_list?: ApiListUserActivity;
837
843
  }
838
844
  /** A socket connection to Mezon server. */
839
845
  export interface Socket {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.37",
3
+ "version": "2.12.39",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -58,6 +58,9 @@ import {
58
58
  ApiWebhook,
59
59
  ApiWebhookListResponse,
60
60
  ApiEmojiRecentList,
61
+ ApiFriendList,
62
+ ApiListChannelAppsResponse,
63
+ ApiListUserActivity,
61
64
  } from "./api.gen";
62
65
  import { Session } from "./session";
63
66
  import { ChannelMessage } from "./client";
@@ -830,6 +833,7 @@ export interface EventEmoji {
830
833
  user_id: string;
831
834
  logo: string;
832
835
  clan_name: string;
836
+ is_for_sale: boolean;
833
837
  }
834
838
 
835
839
  /** */
@@ -1198,6 +1202,11 @@ export interface ListDataSocket {
1198
1202
  permission_role_req?: any;
1199
1203
  permission_role_list?: ApiPermissionRoleChannelListEventResponse;
1200
1204
  emoji_list?: ApiEmojiListedResponse;
1205
+ list_friend_req?: any;
1206
+ friend_list?: ApiFriendList;
1207
+ list_apps_req?: any;
1208
+ channel_apps_list?: ApiListChannelAppsResponse;
1209
+ user_activity_list?: ApiListUserActivity;
1201
1210
  }
1202
1211
 
1203
1212
  function CreateChannelMessageFromEvent(message: any) {