mezon-js 2.8.58 → 2.8.60
Sign up to get free protection for your applications and to get access to all the features.
- package/api/api.ts +20099 -19515
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +3 -2
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +220 -220
- package/google/protobuf/wrappers.ts +626 -626
- package/package.json +1 -1
- package/rtapi/realtime.ts +7751 -6670
- package/socket.ts +5 -3
package/socket.ts
CHANGED
@@ -109,6 +109,8 @@ export interface UserChannelAddedEvent {
|
|
109
109
|
clan_id: string;
|
110
110
|
// the channel type
|
111
111
|
channel_type: number;
|
112
|
+
// is public
|
113
|
+
is_public: boolean;
|
112
114
|
}
|
113
115
|
|
114
116
|
export interface AddUsers {
|
@@ -781,7 +783,7 @@ export interface Socket {
|
|
781
783
|
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean) : Promise<ApiMessageReaction>;
|
782
784
|
|
783
785
|
/** Send last seen message */
|
784
|
-
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number,
|
786
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number) : Promise<LastSeenMessageEvent>;
|
785
787
|
|
786
788
|
/** Send last pin message */
|
787
789
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number) : Promise<LastPinMessageEvent>;
|
@@ -1445,8 +1447,8 @@ export class DefaultSocket implements Socket {
|
|
1445
1447
|
return response.message_typing_event
|
1446
1448
|
}
|
1447
1449
|
|
1448
|
-
async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number,
|
1449
|
-
const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode,
|
1450
|
+
async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent> {
|
1451
|
+
const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id, timestamp_seconds: timestamp_seconds}});
|
1450
1452
|
return response.last_seen_message_event
|
1451
1453
|
}
|
1452
1454
|
|