mezon-js 2.12.37 → 2.12.38
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 +6 -1
- package/package.json +1 -1
- package/socket.ts +8 -0
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";
|
@@ -834,6 +834,11 @@ export interface ListDataSocket {
|
|
834
834
|
permission_role_req?: any;
|
835
835
|
permission_role_list?: ApiPermissionRoleChannelListEventResponse;
|
836
836
|
emoji_list?: ApiEmojiListedResponse;
|
837
|
+
list_friend_req?: any;
|
838
|
+
friend_list?: ApiFriendList;
|
839
|
+
list_apps_req?: any;
|
840
|
+
channel_apps_list?: ApiListChannelAppsResponse;
|
841
|
+
user_activity_list?: ApiListUserActivity;
|
837
842
|
}
|
838
843
|
/** A socket connection to Mezon server. */
|
839
844
|
export interface Socket {
|
package/package.json
CHANGED
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";
|
@@ -1198,6 +1201,11 @@ export interface ListDataSocket {
|
|
1198
1201
|
permission_role_req?: any;
|
1199
1202
|
permission_role_list?: ApiPermissionRoleChannelListEventResponse;
|
1200
1203
|
emoji_list?: ApiEmojiListedResponse;
|
1204
|
+
list_friend_req?: any;
|
1205
|
+
friend_list?: ApiFriendList;
|
1206
|
+
list_apps_req?: any;
|
1207
|
+
channel_apps_list?: ApiListChannelAppsResponse;
|
1208
|
+
user_activity_list?: ApiListUserActivity;
|
1201
1209
|
}
|
1202
1210
|
|
1203
1211
|
function CreateChannelMessageFromEvent(message: any) {
|