mezon-js 2.8.70 → 2.8.72
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +6 -0
- package/dist/api.gen.d.ts +3 -0
- package/dist/mezon-js.cjs.js +10 -10
- package/dist/mezon-js.esm.mjs +10 -10
- package/dist/socket.d.ts +18 -11
- package/package.json +1 -1
- package/socket.ts +32 -18
package/api.gen.ts
CHANGED
@@ -496,6 +496,8 @@ export interface ApiChannelDescription {
|
|
496
496
|
user_id?: Array<string>;
|
497
497
|
//
|
498
498
|
usernames?: string;
|
499
|
+
//
|
500
|
+
status?: number;
|
499
501
|
}
|
500
502
|
|
501
503
|
/** A message sent on a channel. */
|
@@ -1061,6 +1063,10 @@ export interface ApiMessageReaction {
|
|
1061
1063
|
channel_label: string;
|
1062
1064
|
/** The message that user react */
|
1063
1065
|
message_id: string;
|
1066
|
+
// The parent id to sent to.
|
1067
|
+
parent_id?: string;
|
1068
|
+
// is parent public
|
1069
|
+
is_parent_public?: boolean;
|
1064
1070
|
}
|
1065
1071
|
|
1066
1072
|
/** */
|
package/dist/api.gen.d.ts
CHANGED
@@ -286,6 +286,7 @@ export interface ApiChannelDescription {
|
|
286
286
|
update_time_seconds?: number;
|
287
287
|
user_id?: Array<string>;
|
288
288
|
usernames?: string;
|
289
|
+
status?: number;
|
289
290
|
}
|
290
291
|
/** A message sent on a channel. */
|
291
292
|
export interface ApiChannelMessage {
|
@@ -614,6 +615,8 @@ export interface ApiMessageReaction {
|
|
614
615
|
channel_label: string;
|
615
616
|
/** The message that user react */
|
616
617
|
message_id: string;
|
618
|
+
parent_id?: string;
|
619
|
+
is_parent_public?: boolean;
|
617
620
|
}
|
618
621
|
/** */
|
619
622
|
export interface ApiMessageRef {
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -5154,30 +5154,30 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5154
5154
|
unfollowUsers(user_ids) {
|
5155
5155
|
return this.send({ status_unfollow: { user_ids } });
|
5156
5156
|
}
|
5157
|
-
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted) {
|
5157
|
+
updateChatMessage(clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, content, mentions, attachments, hideEditted) {
|
5158
5158
|
return __async(this, null, function* () {
|
5159
|
-
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, is_public, hide_editted: hideEditted } });
|
5159
|
+
const response = yield this.send({ channel_message_update: { clan_id, parent_id, channel_id, message_id, content, mentions, attachments, mode, is_public, is_parent_public, hide_editted: hideEditted } });
|
5160
5160
|
return response.channel_message_ack;
|
5161
5161
|
});
|
5162
5162
|
}
|
5163
5163
|
updateStatus(status) {
|
5164
5164
|
return this.send({ status_update: { status } });
|
5165
5165
|
}
|
5166
|
-
writeChatMessage(clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar) {
|
5166
|
+
writeChatMessage(clan_id, parent_id, channel_id, mode, is_public, is_parent_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar) {
|
5167
5167
|
return __async(this, null, function* () {
|
5168
|
-
const response = yield this.send({ channel_message_send: { clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar } });
|
5168
|
+
const response = yield this.send({ channel_message_send: { clan_id, parent_id, channel_id, mode, is_public, is_parent_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar } });
|
5169
5169
|
return response.channel_message_ack;
|
5170
5170
|
});
|
5171
5171
|
}
|
5172
|
-
writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete) {
|
5172
|
+
writeMessageReaction(id, clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete) {
|
5173
5173
|
return __async(this, null, function* () {
|
5174
|
-
const response = yield this.send({ message_reaction_event: { id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action: action_delete } });
|
5174
|
+
const response = yield this.send({ message_reaction_event: { id, clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, emoji_id, emoji, count, message_sender_id, action: action_delete } });
|
5175
5175
|
return response.message_reaction_event;
|
5176
5176
|
});
|
5177
5177
|
}
|
5178
|
-
writeMessageTyping(clan_id, channel_id, mode, is_public) {
|
5178
|
+
writeMessageTyping(clan_id, parent_id, channel_id, mode, is_public, is_parent_public) {
|
5179
5179
|
return __async(this, null, function* () {
|
5180
|
-
const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode, is_public } });
|
5180
|
+
const response = yield this.send({ message_typing_event: { clan_id, parent_id, channel_id, mode, is_public, is_parent_public } });
|
5181
5181
|
return response.message_typing_event;
|
5182
5182
|
});
|
5183
5183
|
}
|
@@ -5187,9 +5187,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5187
5187
|
return response.last_seen_message_event;
|
5188
5188
|
});
|
5189
5189
|
}
|
5190
|
-
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation) {
|
5190
|
+
writeLastPinMessage(clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, timestamp_seconds, operation) {
|
5191
5191
|
return __async(this, null, function* () {
|
5192
|
-
const response = yield this.send({ last_pin_message_event: { clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation } });
|
5192
|
+
const response = yield this.send({ last_pin_message_event: { clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, timestamp_seconds, operation } });
|
5193
5193
|
return response.last_pin_message_event;
|
5194
5194
|
});
|
5195
5195
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -5125,30 +5125,30 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5125
5125
|
unfollowUsers(user_ids) {
|
5126
5126
|
return this.send({ status_unfollow: { user_ids } });
|
5127
5127
|
}
|
5128
|
-
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted) {
|
5128
|
+
updateChatMessage(clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, content, mentions, attachments, hideEditted) {
|
5129
5129
|
return __async(this, null, function* () {
|
5130
|
-
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, is_public, hide_editted: hideEditted } });
|
5130
|
+
const response = yield this.send({ channel_message_update: { clan_id, parent_id, channel_id, message_id, content, mentions, attachments, mode, is_public, is_parent_public, hide_editted: hideEditted } });
|
5131
5131
|
return response.channel_message_ack;
|
5132
5132
|
});
|
5133
5133
|
}
|
5134
5134
|
updateStatus(status) {
|
5135
5135
|
return this.send({ status_update: { status } });
|
5136
5136
|
}
|
5137
|
-
writeChatMessage(clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar) {
|
5137
|
+
writeChatMessage(clan_id, parent_id, channel_id, mode, is_public, is_parent_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar) {
|
5138
5138
|
return __async(this, null, function* () {
|
5139
|
-
const response = yield this.send({ channel_message_send: { clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar } });
|
5139
|
+
const response = yield this.send({ channel_message_send: { clan_id, parent_id, channel_id, mode, is_public, is_parent_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar } });
|
5140
5140
|
return response.channel_message_ack;
|
5141
5141
|
});
|
5142
5142
|
}
|
5143
|
-
writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete) {
|
5143
|
+
writeMessageReaction(id, clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete) {
|
5144
5144
|
return __async(this, null, function* () {
|
5145
|
-
const response = yield this.send({ message_reaction_event: { id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action: action_delete } });
|
5145
|
+
const response = yield this.send({ message_reaction_event: { id, clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, emoji_id, emoji, count, message_sender_id, action: action_delete } });
|
5146
5146
|
return response.message_reaction_event;
|
5147
5147
|
});
|
5148
5148
|
}
|
5149
|
-
writeMessageTyping(clan_id, channel_id, mode, is_public) {
|
5149
|
+
writeMessageTyping(clan_id, parent_id, channel_id, mode, is_public, is_parent_public) {
|
5150
5150
|
return __async(this, null, function* () {
|
5151
|
-
const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode, is_public } });
|
5151
|
+
const response = yield this.send({ message_typing_event: { clan_id, parent_id, channel_id, mode, is_public, is_parent_public } });
|
5152
5152
|
return response.message_typing_event;
|
5153
5153
|
});
|
5154
5154
|
}
|
@@ -5158,9 +5158,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5158
5158
|
return response.last_seen_message_event;
|
5159
5159
|
});
|
5160
5160
|
}
|
5161
|
-
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation) {
|
5161
|
+
writeLastPinMessage(clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, timestamp_seconds, operation) {
|
5162
5162
|
return __async(this, null, function* () {
|
5163
|
-
const response = yield this.send({ last_pin_message_event: { clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation } });
|
5163
|
+
const response = yield this.send({ last_pin_message_event: { clan_id, parent_id, channel_id, mode, is_public, is_parent_public, message_id, timestamp_seconds, operation } });
|
5164
5164
|
return response.last_pin_message_event;
|
5165
5165
|
});
|
5166
5166
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -131,6 +131,8 @@ export interface MessageTypingEvent {
|
|
131
131
|
/** Message sender, usually a user ID. */
|
132
132
|
sender_id: string;
|
133
133
|
is_public: boolean;
|
134
|
+
parent_id?: string;
|
135
|
+
is_parent_public?: string;
|
134
136
|
}
|
135
137
|
export interface UserProfileUpdatedEvent {
|
136
138
|
user_id: string;
|
@@ -175,6 +177,8 @@ interface ChannelMessageSend {
|
|
175
177
|
mention_everyone?: boolean;
|
176
178
|
avatar: string;
|
177
179
|
is_public: boolean;
|
180
|
+
parent_id?: string;
|
181
|
+
is_parent_public?: boolean;
|
178
182
|
};
|
179
183
|
}
|
180
184
|
/** Update a message previously sent to a realtime chat channel. */
|
@@ -182,7 +186,6 @@ interface ChannelMessageUpdate {
|
|
182
186
|
channel_message_update: {
|
183
187
|
/** The server-assigned channel ID. */
|
184
188
|
channel_id: string;
|
185
|
-
/** The server-assigned channel label. */
|
186
189
|
/** A unique ID for the chat message to be updated. */
|
187
190
|
message_id: string;
|
188
191
|
/** The content payload. */
|
@@ -194,6 +197,8 @@ interface ChannelMessageUpdate {
|
|
194
197
|
/** The mode payload. */
|
195
198
|
mode: number;
|
196
199
|
is_public: boolean;
|
200
|
+
parent_id?: string;
|
201
|
+
is_parent_public?: boolean;
|
197
202
|
};
|
198
203
|
}
|
199
204
|
/** Remove a message previously sent to a realtime chat channel. */
|
@@ -206,6 +211,8 @@ interface ChannelMessageRemove {
|
|
206
211
|
/** A unique ID for the chat message to be removed. */
|
207
212
|
message_id: string;
|
208
213
|
is_public: boolean;
|
214
|
+
parent_id?: string;
|
215
|
+
is_parent_public?: boolean;
|
209
216
|
};
|
210
217
|
}
|
211
218
|
/** Presence update for a particular realtime chat channel. */
|
@@ -515,19 +522,19 @@ export interface Socket {
|
|
515
522
|
/** Unfollow one or more users from their status updates. */
|
516
523
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
517
524
|
/** Update a chat message on a chat channel in the server. */
|
518
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck>;
|
525
|
+
updateChatMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck>;
|
519
526
|
/** Update the status for the current user online. */
|
520
527
|
updateStatus(status?: string): Promise<void>;
|
521
528
|
/** Send a chat message to a chat channel on the server. */
|
522
|
-
writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string): Promise<ChannelMessageAck>;
|
529
|
+
writeChatMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string): Promise<ChannelMessageAck>;
|
523
530
|
/** Send message typing */
|
524
|
-
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
|
531
|
+
writeMessageTyping(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean): Promise<MessageTypingEvent>;
|
525
532
|
/** Send message reaction */
|
526
|
-
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>;
|
533
|
+
writeMessageReaction(id: string, clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction>;
|
527
534
|
/** Send last seen message */
|
528
535
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
|
529
536
|
/** Send last pin message */
|
530
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
537
|
+
writeLastPinMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
531
538
|
/** Send custom user status */
|
532
539
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
533
540
|
/** send voice joined */
|
@@ -667,13 +674,13 @@ export declare class DefaultSocket implements Socket {
|
|
667
674
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
668
675
|
sendPartyData(party_id: string, op_code: number, data: string | Uint8Array): Promise<void>;
|
669
676
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
670
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck>;
|
677
|
+
updateChatMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck>;
|
671
678
|
updateStatus(status?: string): Promise<void>;
|
672
|
-
writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string): Promise<ChannelMessageAck>;
|
673
|
-
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>;
|
674
|
-
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
|
679
|
+
writeChatMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string): Promise<ChannelMessageAck>;
|
680
|
+
writeMessageReaction(id: string, clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction>;
|
681
|
+
writeMessageTyping(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean): Promise<MessageTypingEvent>;
|
675
682
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
|
676
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
683
|
+
writeLastPinMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
677
684
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
678
685
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
679
686
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -180,6 +180,10 @@ export interface MessageTypingEvent {
|
|
180
180
|
sender_id: string;
|
181
181
|
// Is public
|
182
182
|
is_public: boolean;
|
183
|
+
// The parent id to sent to.
|
184
|
+
parent_id?: string;
|
185
|
+
// is parent public
|
186
|
+
is_parent_public?: string;
|
183
187
|
}
|
184
188
|
|
185
189
|
// user profile updated event
|
@@ -243,6 +247,10 @@ interface ChannelMessageSend {
|
|
243
247
|
avatar: string;
|
244
248
|
// Is public
|
245
249
|
is_public: boolean;
|
250
|
+
// The parent id to sent to.
|
251
|
+
parent_id?: string;
|
252
|
+
// is parent public
|
253
|
+
is_parent_public?: boolean;
|
246
254
|
};
|
247
255
|
}
|
248
256
|
|
@@ -251,8 +259,6 @@ interface ChannelMessageUpdate {
|
|
251
259
|
channel_message_update: {
|
252
260
|
/** The server-assigned channel ID. */
|
253
261
|
channel_id: string,
|
254
|
-
/** The server-assigned channel label. */
|
255
|
-
|
256
262
|
/** A unique ID for the chat message to be updated. */
|
257
263
|
message_id: string,
|
258
264
|
/** The content payload. */
|
@@ -265,6 +271,10 @@ interface ChannelMessageUpdate {
|
|
265
271
|
mode: number;
|
266
272
|
// Is public
|
267
273
|
is_public: boolean;
|
274
|
+
// The parent id to sent to.
|
275
|
+
parent_id?: string;
|
276
|
+
// is parent public
|
277
|
+
is_parent_public?: boolean;
|
268
278
|
};
|
269
279
|
}
|
270
280
|
|
@@ -281,6 +291,10 @@ interface ChannelMessageRemove {
|
|
281
291
|
message_id: string;
|
282
292
|
// Is public
|
283
293
|
is_public: boolean;
|
294
|
+
// The parent id to sent to.
|
295
|
+
parent_id?: string;
|
296
|
+
// is parent public
|
297
|
+
is_parent_public?: boolean;
|
284
298
|
};
|
285
299
|
}
|
286
300
|
|
@@ -770,25 +784,25 @@ export interface Socket {
|
|
770
784
|
unfollowUsers(user_ids : string[]) : Promise<void>;
|
771
785
|
|
772
786
|
/** Update a chat message on a chat channel in the server. */
|
773
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean) : Promise<ChannelMessageAck>;
|
787
|
+
updateChatMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean) : Promise<ChannelMessageAck>;
|
774
788
|
|
775
789
|
/** Update the status for the current user online. */
|
776
|
-
updateStatus(status
|
790
|
+
updateStatus(status?: string) : Promise<void>;
|
777
791
|
|
778
792
|
/** Send a chat message to a chat channel on the server. */
|
779
|
-
writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:boolean, avatar?: string) : Promise<ChannelMessageAck>;
|
793
|
+
writeChatMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:boolean, avatar?: string) : Promise<ChannelMessageAck>;
|
780
794
|
|
781
795
|
/** Send message typing */
|
782
|
-
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean) : Promise<MessageTypingEvent>;
|
796
|
+
writeMessageTyping(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean) : Promise<MessageTypingEvent>;
|
783
797
|
|
784
798
|
/** Send message reaction */
|
785
|
-
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>;
|
799
|
+
writeMessageReaction(id: string, clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean) : Promise<ApiMessageReaction>;
|
786
800
|
|
787
801
|
/** Send last seen message */
|
788
802
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number) : Promise<LastSeenMessageEvent>;
|
789
803
|
|
790
804
|
/** Send last pin message */
|
791
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number) : Promise<LastPinMessageEvent>;
|
805
|
+
writeLastPinMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, timestamp_seconds: number, operation: number) : Promise<LastPinMessageEvent>;
|
792
806
|
|
793
807
|
/** Send custom user status */
|
794
808
|
writeCustomStatus(clan_id: string, status: string) : Promise<CustomStatusEvent>;
|
@@ -1426,8 +1440,8 @@ export class DefaultSocket implements Socket {
|
|
1426
1440
|
return this.send({status_unfollow: {user_ids: user_ids}});
|
1427
1441
|
}
|
1428
1442
|
|
1429
|
-
async updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id
|
1430
|
-
const response = await this.send({channel_message_update: {clan_id: clan_id, channel_id: channel_id, message_id: message_id, content: content, mentions: mentions, attachments: attachments, mode: mode, is_public: is_public, hide_editted: hideEditted}});
|
1443
|
+
async updateChatMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck> {
|
1444
|
+
const response = await this.send({channel_message_update: {clan_id: clan_id, parent_id: parent_id, channel_id: channel_id, message_id: message_id, content: content, mentions: mentions, attachments: attachments, mode: mode, is_public: is_public, is_parent_public: is_parent_public, hide_editted: hideEditted}});
|
1431
1445
|
return response.channel_message_ack;
|
1432
1446
|
}
|
1433
1447
|
|
@@ -1435,18 +1449,18 @@ export class DefaultSocket implements Socket {
|
|
1435
1449
|
return this.send({status_update: {status: status}});
|
1436
1450
|
}
|
1437
1451
|
|
1438
|
-
async writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:Boolean, avatar?: string ): Promise<ChannelMessageAck> {
|
1439
|
-
const response = await this.send({channel_message_send: {clan_id: clan_id, channel_id: channel_id, mode: mode, is_public: is_public, content: content, mentions: mentions, attachments: attachments, references: references, anonymous_message: anonymous_message, mention_everyone: mention_everyone, avatar: avatar}});
|
1452
|
+
async writeChatMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:Boolean, avatar?: string ): Promise<ChannelMessageAck> {
|
1453
|
+
const response = await this.send({channel_message_send: {clan_id: clan_id, parent_id: parent_id, channel_id: channel_id, mode: mode, is_public: is_public, is_parent_public: is_parent_public, content: content, mentions: mentions, attachments: attachments, references: references, anonymous_message: anonymous_message, mention_everyone: mention_everyone, avatar: avatar}});
|
1440
1454
|
return response.channel_message_ack;
|
1441
1455
|
}
|
1442
1456
|
|
1443
|
-
async 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> {
|
1444
|
-
const response = await this.send({message_reaction_event: {id: id, clan_id: clan_id, channel_id: channel_id, mode: mode, is_public: is_public, message_id: message_id, emoji_id: emoji_id, emoji: emoji, count: count, message_sender_id: message_sender_id, action: action_delete}});
|
1457
|
+
async writeMessageReaction(id: string, clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction> {
|
1458
|
+
const response = await this.send({message_reaction_event: {id: id, clan_id: clan_id, parent_id: parent_id, channel_id: channel_id, mode: mode, is_public: is_public, is_parent_public: is_parent_public, message_id: message_id, emoji_id: emoji_id, emoji: emoji, count: count, message_sender_id: message_sender_id, action: action_delete}});
|
1445
1459
|
return response.message_reaction_event
|
1446
1460
|
}
|
1447
1461
|
|
1448
|
-
async writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent> {
|
1449
|
-
const response = await this.send({message_typing_event: {clan_id: clan_id, channel_id: channel_id, mode:mode, is_public: is_public}});
|
1462
|
+
async writeMessageTyping(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean): Promise<MessageTypingEvent> {
|
1463
|
+
const response = await this.send({message_typing_event: {clan_id: clan_id, parent_id: parent_id, channel_id: channel_id, mode:mode, is_public: is_public, is_parent_public: is_parent_public}});
|
1450
1464
|
return response.message_typing_event
|
1451
1465
|
}
|
1452
1466
|
|
@@ -1455,8 +1469,8 @@ export class DefaultSocket implements Socket {
|
|
1455
1469
|
return response.last_seen_message_event
|
1456
1470
|
}
|
1457
1471
|
|
1458
|
-
async writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent> {
|
1459
|
-
const response = await this.send({last_pin_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, is_public: is_public, message_id: message_id, timestamp_seconds: timestamp_seconds, operation: operation}});
|
1472
|
+
async writeLastPinMessage(clan_id: string, parent_id: string, channel_id: string, mode: number, is_public: boolean, is_parent_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent> {
|
1473
|
+
const response = await this.send({last_pin_message_event: {clan_id: clan_id, parent_id: parent_id, channel_id: channel_id, mode: mode, is_public: is_public, is_parent_public: is_parent_public, message_id: message_id, timestamp_seconds: timestamp_seconds, operation: operation}});
|
1460
1474
|
return response.last_pin_message_event
|
1461
1475
|
}
|
1462
1476
|
|