mezon-js 2.14.2 → 2.14.4
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/mezon-js/socket.d.ts +927 -450
- package/dist/mezon-js/types/index.d.ts +0 -62
- package/dist/mezon-js.cjs.js +233 -190
- package/dist/mezon-js.esm.mjs +233 -190
- package/dist/mezon-js.esm.mjs.map +1 -1
- package/dist/socket.d.ts +927 -450
- package/dist/types/index.d.ts +0 -62
- package/package.json +1 -1
- package/socket.ts +1793 -882
- package/types/index.ts +0 -117
|
@@ -13,214 +13,194 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef } from "./types";
|
|
17
17
|
import { Session } from "./session";
|
|
18
18
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
|
19
19
|
/** An object which represents a connected user in the server. */
|
|
20
20
|
export interface Presence {
|
|
21
21
|
/** The id of the user. */
|
|
22
|
-
|
|
22
|
+
user_id: string;
|
|
23
23
|
/** The session id of the user. */
|
|
24
|
-
|
|
24
|
+
session_id: string;
|
|
25
25
|
/** The username of the user. */
|
|
26
26
|
username: string;
|
|
27
27
|
/** The node the user is connected to. */
|
|
28
28
|
node: string;
|
|
29
29
|
/** The status of the user */
|
|
30
30
|
status: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
export interface NotificationInfo {
|
|
35
|
-
/** Category code for this notification. */
|
|
36
|
-
code?: number;
|
|
37
|
-
/** Content of the notification in JSON. */
|
|
38
|
-
content?: {};
|
|
39
|
-
/** The UNIX time when the notification was created. */
|
|
40
|
-
createTime?: string;
|
|
41
|
-
/** ID of the Notification. */
|
|
42
|
-
id?: string;
|
|
43
|
-
/** True if this notification was persisted to the database. */
|
|
44
|
-
persistent?: boolean;
|
|
45
|
-
/** ID of the sender, if a user. Otherwise 'null'. */
|
|
46
|
-
senderId?: string;
|
|
47
|
-
/** Subject of the notification. */
|
|
48
|
-
subject?: string;
|
|
49
|
-
channelId?: string;
|
|
50
|
-
clanId?: string;
|
|
51
|
-
channel?: ApiChannelDescription;
|
|
52
|
-
topicId?: string;
|
|
31
|
+
is_mobile: boolean;
|
|
32
|
+
user_status: string;
|
|
53
33
|
}
|
|
54
34
|
/** A response from a channel join operation. */
|
|
55
35
|
export interface Channel {
|
|
56
36
|
/** The server-assigned channel id. */
|
|
57
37
|
id: string;
|
|
58
|
-
|
|
38
|
+
chanel_label: string;
|
|
59
39
|
/** The presences visible on the chat channel. */
|
|
60
40
|
presences: Presence[];
|
|
61
41
|
/** The presence of the current user, i.e. yourself. */
|
|
62
42
|
self: Presence;
|
|
63
|
-
|
|
64
|
-
|
|
43
|
+
clan_logo: string;
|
|
44
|
+
category_name: string;
|
|
65
45
|
}
|
|
66
46
|
export interface ClanJoin {
|
|
67
|
-
|
|
68
|
-
|
|
47
|
+
clan_join: {
|
|
48
|
+
clan_id: string;
|
|
69
49
|
};
|
|
70
50
|
}
|
|
71
51
|
/** Join a realtime chat channel. */
|
|
72
52
|
interface ChannelJoin {
|
|
73
|
-
|
|
53
|
+
channel_join: {
|
|
74
54
|
/** The id of the channel to join. */
|
|
75
|
-
|
|
55
|
+
channel_id: string;
|
|
76
56
|
/** The name of the channel to join. */
|
|
77
|
-
|
|
57
|
+
channel_label: string;
|
|
78
58
|
/** The channel type: 1 = Channel, 2 = Direct Message, 3 = Group. */
|
|
79
59
|
type: number;
|
|
80
60
|
/** Whether channel messages are persisted in the database. */
|
|
81
61
|
persistence: boolean;
|
|
82
62
|
/** Whether the user's channel presence is hidden when joining. */
|
|
83
63
|
hidden: boolean;
|
|
84
|
-
|
|
64
|
+
is_public: boolean;
|
|
85
65
|
};
|
|
86
66
|
}
|
|
87
67
|
/** Leave a realtime chat channel. */
|
|
88
68
|
interface ChannelLeave {
|
|
89
|
-
|
|
69
|
+
channel_leave: {
|
|
90
70
|
/** The id of the channel to leave. */
|
|
91
|
-
|
|
71
|
+
channel_id: string;
|
|
92
72
|
mode: number;
|
|
93
|
-
|
|
94
|
-
|
|
73
|
+
channel_label: string;
|
|
74
|
+
is_public: boolean;
|
|
95
75
|
};
|
|
96
76
|
}
|
|
97
77
|
export interface AddClanUserEvent {
|
|
98
|
-
|
|
78
|
+
clan_id: string;
|
|
99
79
|
user: UserProfileRedis;
|
|
100
80
|
invitor: string;
|
|
101
81
|
}
|
|
102
82
|
export interface BannedUserEvent {
|
|
103
|
-
|
|
83
|
+
user_ids: Array<string>;
|
|
104
84
|
action: number;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
85
|
+
banner_id: string;
|
|
86
|
+
channel_id: string;
|
|
87
|
+
clan_id: string;
|
|
88
|
+
ban_time: number;
|
|
109
89
|
}
|
|
110
90
|
export interface UserProfileRedis {
|
|
111
91
|
/** User IDs to follow. */
|
|
112
|
-
|
|
92
|
+
user_id: string;
|
|
113
93
|
/** Username to follow. */
|
|
114
94
|
username: string;
|
|
115
95
|
/** Avatar to follow. */
|
|
116
96
|
avatar: string;
|
|
117
97
|
/** Display name */
|
|
118
|
-
|
|
98
|
+
display_name: string;
|
|
119
99
|
/** custom status */
|
|
120
|
-
|
|
100
|
+
custom_status: string;
|
|
121
101
|
/** online */
|
|
122
102
|
online: boolean;
|
|
123
|
-
|
|
103
|
+
create_time_second: number;
|
|
124
104
|
/** clans */
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
105
|
+
joined_clans: number[];
|
|
106
|
+
app_url: string;
|
|
107
|
+
is_bot: boolean;
|
|
128
108
|
}
|
|
129
109
|
/** UserChannelAddedEvent */
|
|
130
110
|
export interface UserChannelAddedEvent {
|
|
131
|
-
|
|
111
|
+
channel_desc: SocketChannelDescription;
|
|
132
112
|
users: UserProfileRedis[];
|
|
133
113
|
status: string;
|
|
134
|
-
|
|
114
|
+
clan_id: string;
|
|
135
115
|
caller: UserProfileRedis;
|
|
136
|
-
|
|
116
|
+
create_time_second: number;
|
|
137
117
|
active: number;
|
|
138
118
|
}
|
|
139
119
|
export interface UserChannelRemovedEvent {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
120
|
+
channel_id: string;
|
|
121
|
+
user_ids: string[];
|
|
122
|
+
channel_type: number;
|
|
123
|
+
clan_id: string;
|
|
124
|
+
badge_counts: number[];
|
|
145
125
|
}
|
|
146
126
|
export interface UserClanRemovedEvent {
|
|
147
|
-
|
|
148
|
-
|
|
127
|
+
clan_id: string;
|
|
128
|
+
user_ids: string[];
|
|
149
129
|
}
|
|
150
130
|
/** Last seen message by user */
|
|
151
131
|
export interface LastPinMessageEvent {
|
|
152
132
|
/** The channel this message belongs to. */
|
|
153
|
-
|
|
133
|
+
channel_id: string;
|
|
154
134
|
mode: number;
|
|
155
|
-
|
|
135
|
+
channel_label: string;
|
|
156
136
|
/** The unique ID of this message. */
|
|
157
|
-
|
|
137
|
+
message_id: string;
|
|
158
138
|
/** user id */
|
|
159
|
-
|
|
139
|
+
user_id: string;
|
|
160
140
|
/** operation */
|
|
161
141
|
operation: number;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
142
|
+
is_public: boolean;
|
|
143
|
+
clan_id: string;
|
|
144
|
+
message_sender_avatar: string;
|
|
145
|
+
message_sender_id: string;
|
|
146
|
+
message_sender_username: string;
|
|
147
|
+
message_content: string;
|
|
148
|
+
message_attachment: string;
|
|
149
|
+
message_created_time: string;
|
|
170
150
|
}
|
|
171
151
|
export interface UnmuteEvent {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
152
|
+
channel_id: string;
|
|
153
|
+
category_id: string;
|
|
154
|
+
clan_id: string;
|
|
175
155
|
}
|
|
176
156
|
/** Last seen message by user */
|
|
177
157
|
export interface LastSeenMessageEvent {
|
|
178
|
-
|
|
158
|
+
clan_id: string;
|
|
179
159
|
/** The channel this message belongs to. */
|
|
180
|
-
|
|
160
|
+
channel_id: string;
|
|
181
161
|
mode: number;
|
|
182
|
-
|
|
162
|
+
channel_label: string;
|
|
183
163
|
/** The unique ID of this message. */
|
|
184
|
-
|
|
185
|
-
|
|
164
|
+
message_id: string;
|
|
165
|
+
badge_count: number;
|
|
186
166
|
}
|
|
187
167
|
/** User is typing */
|
|
188
168
|
export interface MessageTypingEvent {
|
|
189
169
|
/** The channel this message belongs to. */
|
|
190
|
-
|
|
170
|
+
channel_id: string;
|
|
191
171
|
mode: number;
|
|
192
|
-
|
|
172
|
+
channel_label: string;
|
|
193
173
|
/** Message sender, usually a user ID. */
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
174
|
+
sender_id: string;
|
|
175
|
+
is_public: boolean;
|
|
176
|
+
sender_username: string;
|
|
177
|
+
sender_display_name: string;
|
|
178
|
+
topic_id?: string;
|
|
199
179
|
}
|
|
200
180
|
export interface UserProfileUpdatedEvent {
|
|
201
|
-
|
|
202
|
-
|
|
181
|
+
user_id: string;
|
|
182
|
+
display_name: string;
|
|
203
183
|
avatar: string;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
184
|
+
about_me: string;
|
|
185
|
+
channel_id: string;
|
|
186
|
+
clan_id: string;
|
|
187
|
+
encrypt_private_key: string;
|
|
208
188
|
}
|
|
209
189
|
/** An acknowledgement received in response to sending a message on a chat channel. */
|
|
210
190
|
export interface ChannelMessageAck {
|
|
211
191
|
/** The server-assigned channel ID. */
|
|
212
|
-
|
|
192
|
+
channel_id: string;
|
|
213
193
|
mode: number;
|
|
214
194
|
/** A unique ID for the chat message. */
|
|
215
|
-
|
|
195
|
+
message_id: string;
|
|
216
196
|
/** A user-defined code for the chat message. */
|
|
217
197
|
code: number;
|
|
218
198
|
/** The username of the sender of the message. */
|
|
219
199
|
username: string;
|
|
220
200
|
/** The UNIX time when the message was created. */
|
|
221
|
-
|
|
201
|
+
create_time: string;
|
|
222
202
|
/** The UNIX time when the message was updated. */
|
|
223
|
-
|
|
203
|
+
update_time: string;
|
|
224
204
|
/** True if the chat message has been stored in history. */
|
|
225
205
|
persistence: boolean;
|
|
226
206
|
}
|
|
@@ -228,71 +208,71 @@ export interface ChannelMessageAck {
|
|
|
228
208
|
interface ChannelMessageSend {
|
|
229
209
|
channel_message_send: {
|
|
230
210
|
/** Clan Id */
|
|
231
|
-
|
|
211
|
+
clan_id: string;
|
|
232
212
|
/** The server-assigned channel ID. */
|
|
233
|
-
|
|
213
|
+
channel_id: string;
|
|
234
214
|
mode: number;
|
|
235
|
-
|
|
215
|
+
channel_label: string;
|
|
236
216
|
/** The content payload. */
|
|
237
217
|
content: any;
|
|
238
218
|
mentions?: Array<ApiMessageMention>;
|
|
239
219
|
attachments?: Array<ApiMessageAttachment>;
|
|
240
|
-
|
|
241
|
-
|
|
220
|
+
anonymous_message?: boolean;
|
|
221
|
+
mention_everyone?: boolean;
|
|
242
222
|
avatar: string;
|
|
243
|
-
|
|
223
|
+
is_public: boolean;
|
|
244
224
|
code: number;
|
|
245
|
-
|
|
225
|
+
topic_id?: string;
|
|
246
226
|
};
|
|
247
227
|
}
|
|
248
228
|
interface TransferOwnershipEvent {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
229
|
+
clan_id: string;
|
|
230
|
+
prev_owner: string;
|
|
231
|
+
curr_owner: string;
|
|
252
232
|
}
|
|
253
233
|
interface QuickMenuEvent {
|
|
254
234
|
quick_menu_event: {
|
|
255
|
-
|
|
235
|
+
menu_name: string;
|
|
256
236
|
message: {
|
|
257
237
|
/** Clan Id */
|
|
258
|
-
|
|
238
|
+
clan_id: string;
|
|
259
239
|
/** The server-assigned channel ID. */
|
|
260
|
-
|
|
240
|
+
channel_id: string;
|
|
261
241
|
mode: number;
|
|
262
|
-
|
|
242
|
+
channel_label: string;
|
|
263
243
|
/** The content payload. */
|
|
264
244
|
content: any;
|
|
265
245
|
mentions?: Array<ApiMessageMention>;
|
|
266
246
|
attachments?: Array<ApiMessageAttachment>;
|
|
267
|
-
|
|
268
|
-
|
|
247
|
+
anonymous_message?: boolean;
|
|
248
|
+
mention_everyone?: boolean;
|
|
269
249
|
avatar: string;
|
|
270
|
-
|
|
250
|
+
is_public: boolean;
|
|
271
251
|
code: number;
|
|
272
|
-
|
|
252
|
+
topic_id?: string;
|
|
273
253
|
};
|
|
274
254
|
};
|
|
275
255
|
}
|
|
276
256
|
interface EphemeralMessageSend {
|
|
277
257
|
ephemeral_message_send: {
|
|
278
|
-
|
|
258
|
+
receiver_id: string;
|
|
279
259
|
message: {
|
|
280
260
|
/** Clan Id */
|
|
281
|
-
|
|
261
|
+
clan_id: string;
|
|
282
262
|
/** The server-assigned channel ID. */
|
|
283
|
-
|
|
263
|
+
channel_id: string;
|
|
284
264
|
mode: number;
|
|
285
|
-
|
|
265
|
+
channel_label: string;
|
|
286
266
|
/** The content payload. */
|
|
287
267
|
content: any;
|
|
288
268
|
mentions?: Array<ApiMessageMention>;
|
|
289
269
|
attachments?: Array<ApiMessageAttachment>;
|
|
290
|
-
|
|
291
|
-
|
|
270
|
+
anonymous_message?: boolean;
|
|
271
|
+
mention_everyone?: boolean;
|
|
292
272
|
avatar: string;
|
|
293
|
-
|
|
273
|
+
is_public: boolean;
|
|
294
274
|
code: number;
|
|
295
|
-
|
|
275
|
+
topic_id?: string;
|
|
296
276
|
};
|
|
297
277
|
};
|
|
298
278
|
}
|
|
@@ -300,9 +280,9 @@ interface EphemeralMessageSend {
|
|
|
300
280
|
interface ChannelMessageUpdate {
|
|
301
281
|
channel_message_update: {
|
|
302
282
|
/** The server-assigned channel ID. */
|
|
303
|
-
|
|
283
|
+
channel_id: string;
|
|
304
284
|
/** A unique ID for the chat message to be updated. */
|
|
305
|
-
|
|
285
|
+
message_id: string;
|
|
306
286
|
/** The content payload. */
|
|
307
287
|
content: any;
|
|
308
288
|
/** mentions */
|
|
@@ -311,27 +291,27 @@ interface ChannelMessageUpdate {
|
|
|
311
291
|
attachments?: Array<ApiMessageAttachment>;
|
|
312
292
|
/** The mode payload. */
|
|
313
293
|
mode: number;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
294
|
+
is_public: boolean;
|
|
295
|
+
topic_id?: string;
|
|
296
|
+
is_update_msg_topic?: boolean;
|
|
297
|
+
old_mentions?: string;
|
|
318
298
|
};
|
|
319
299
|
}
|
|
320
300
|
/** Remove a message previously sent to a realtime chat channel. */
|
|
321
301
|
interface ChannelMessageRemove {
|
|
322
302
|
channel_message_remove: {
|
|
323
303
|
/** The clan id */
|
|
324
|
-
|
|
304
|
+
clan_id: string;
|
|
325
305
|
/** The server-assigned channel ID. */
|
|
326
|
-
|
|
306
|
+
channel_id: string;
|
|
327
307
|
mode: number;
|
|
328
|
-
|
|
308
|
+
channel_label: string;
|
|
329
309
|
/** A unique ID for the chat message to be removed. */
|
|
330
|
-
|
|
331
|
-
|
|
310
|
+
message_id: string;
|
|
311
|
+
is_public: boolean;
|
|
332
312
|
/** attachments */
|
|
333
|
-
|
|
334
|
-
|
|
313
|
+
has_attachment?: boolean;
|
|
314
|
+
topic_id?: string;
|
|
335
315
|
mentions: string;
|
|
336
316
|
references: string;
|
|
337
317
|
};
|
|
@@ -339,8 +319,8 @@ interface ChannelMessageRemove {
|
|
|
339
319
|
/** Presence update for a particular realtime chat channel. */
|
|
340
320
|
export interface ChannelPresenceEvent {
|
|
341
321
|
/** The unique identifier of the chat channel. */
|
|
342
|
-
|
|
343
|
-
|
|
322
|
+
channel_id: string;
|
|
323
|
+
channel_label: string;
|
|
344
324
|
mode: number;
|
|
345
325
|
/** Presences of the users who joined the channel. */
|
|
346
326
|
joins: Presence[];
|
|
@@ -349,151 +329,151 @@ export interface ChannelPresenceEvent {
|
|
|
349
329
|
}
|
|
350
330
|
export interface VoiceEndedEvent {
|
|
351
331
|
id: string;
|
|
352
|
-
|
|
353
|
-
|
|
332
|
+
clan_id: string;
|
|
333
|
+
voice_channel_id: string;
|
|
354
334
|
}
|
|
355
335
|
export interface VoiceStartedEvent {
|
|
356
336
|
id: string;
|
|
357
|
-
|
|
358
|
-
|
|
337
|
+
clan_id: string;
|
|
338
|
+
voice_channel_id: string;
|
|
359
339
|
}
|
|
360
340
|
export interface VoiceLeavedEvent {
|
|
361
341
|
id: string;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
342
|
+
clan_id: string;
|
|
343
|
+
voice_channel_id: string;
|
|
344
|
+
voice_user_id: string;
|
|
365
345
|
}
|
|
366
346
|
export interface VoiceJoinedEvent {
|
|
367
347
|
/** The unique identifier of the chat channel. */
|
|
368
|
-
|
|
369
|
-
|
|
348
|
+
clan_id: string;
|
|
349
|
+
clan_name: string;
|
|
370
350
|
id: string;
|
|
371
351
|
participant: string;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
352
|
+
user_id: string;
|
|
353
|
+
voice_channel_label: string;
|
|
354
|
+
voice_channel_id: string;
|
|
355
|
+
last_screenshot: string;
|
|
376
356
|
}
|
|
377
357
|
export interface CustomStatusEvent {
|
|
378
|
-
|
|
379
|
-
|
|
358
|
+
clan_id: string;
|
|
359
|
+
user_id: string;
|
|
380
360
|
username: string;
|
|
381
361
|
status: string;
|
|
382
362
|
/** time reset */
|
|
383
|
-
|
|
363
|
+
time_reset: number;
|
|
384
364
|
/** no clear */
|
|
385
|
-
|
|
365
|
+
no_clear: boolean;
|
|
386
366
|
}
|
|
387
367
|
export interface UnpinMessageEvent {
|
|
388
368
|
id: string;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
369
|
+
message_id: string;
|
|
370
|
+
channel_id: string;
|
|
371
|
+
clan_id: string;
|
|
392
372
|
}
|
|
393
373
|
export interface ChannelUpdatedEvent {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
374
|
+
clan_id: string;
|
|
375
|
+
category_id: string;
|
|
376
|
+
creator_id: string;
|
|
377
|
+
parent_id: string;
|
|
378
|
+
channel_id: string;
|
|
379
|
+
channel_label: string;
|
|
380
|
+
channel_type: number;
|
|
401
381
|
status: number;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
382
|
+
meeting_code: string;
|
|
383
|
+
channel_private: number;
|
|
384
|
+
is_error: boolean;
|
|
385
|
+
app_id: string;
|
|
406
386
|
e2ee: number;
|
|
407
387
|
topic: string;
|
|
408
|
-
|
|
409
|
-
|
|
388
|
+
age_restricted: number;
|
|
389
|
+
is_active_thread: boolean;
|
|
410
390
|
active: number;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
391
|
+
count_mess_unread: number;
|
|
392
|
+
role_ids?: Array<string>;
|
|
393
|
+
user_ids?: Array<string>;
|
|
394
|
+
channel_avatar: string;
|
|
415
395
|
}
|
|
416
396
|
export interface DeleteAccountEvent {
|
|
417
|
-
|
|
397
|
+
user_id: string;
|
|
418
398
|
}
|
|
419
399
|
export interface ChannelCreatedEvent {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
400
|
+
clan_id: string;
|
|
401
|
+
category_id: string;
|
|
402
|
+
creator_id: string;
|
|
403
|
+
parent_id: string;
|
|
404
|
+
channel_id: string;
|
|
405
|
+
channel_label: string;
|
|
406
|
+
channel_private: number;
|
|
407
|
+
channel_type: number;
|
|
428
408
|
status: number;
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
409
|
+
app_id: string;
|
|
410
|
+
clan_name: string;
|
|
411
|
+
channel_avatar: string;
|
|
432
412
|
}
|
|
433
413
|
export interface CategoryEvent {
|
|
434
|
-
|
|
414
|
+
clan_id: string;
|
|
435
415
|
id: string;
|
|
436
|
-
|
|
437
|
-
|
|
416
|
+
creator_id: string;
|
|
417
|
+
category_name: string;
|
|
438
418
|
status: number;
|
|
439
419
|
}
|
|
440
420
|
export interface ChannelDeletedEvent {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
421
|
+
clan_id: string;
|
|
422
|
+
category_id: string;
|
|
423
|
+
channel_id: string;
|
|
444
424
|
deletor: string;
|
|
445
|
-
|
|
425
|
+
parent_id: string;
|
|
446
426
|
}
|
|
447
427
|
export interface StickerCreateEvent {
|
|
448
|
-
|
|
428
|
+
clan_id: string;
|
|
449
429
|
source: string;
|
|
450
430
|
shortname: string;
|
|
451
431
|
category: string;
|
|
452
|
-
|
|
432
|
+
creator_id: string;
|
|
453
433
|
sticker_id: string;
|
|
454
434
|
logo: string;
|
|
455
|
-
|
|
435
|
+
clan_name: string;
|
|
456
436
|
}
|
|
457
437
|
export interface StickerUpdateEvent {
|
|
458
438
|
shortname: string;
|
|
459
439
|
sticker_id: string;
|
|
460
|
-
|
|
440
|
+
user_id: string;
|
|
461
441
|
}
|
|
462
442
|
export interface StickerDeleteEvent {
|
|
463
443
|
sticker_id: string;
|
|
464
|
-
|
|
444
|
+
user_id: string;
|
|
465
445
|
}
|
|
466
446
|
export interface ClanDeletedEvent {
|
|
467
|
-
|
|
447
|
+
clan_id: string;
|
|
468
448
|
deletor: string;
|
|
469
449
|
}
|
|
470
450
|
export interface ClanUpdatedEvent {
|
|
471
|
-
|
|
472
|
-
|
|
451
|
+
clan_id: string;
|
|
452
|
+
clan_name: string;
|
|
473
453
|
logo: string;
|
|
474
454
|
banner: string;
|
|
475
455
|
status: number;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
456
|
+
is_onboarding: boolean;
|
|
457
|
+
welcome_channel_id: string;
|
|
458
|
+
onboarding_banner: string;
|
|
479
459
|
about: string;
|
|
480
|
-
|
|
460
|
+
prevent_anonymous: boolean;
|
|
481
461
|
}
|
|
482
462
|
export interface ClanProfileUpdatedEvent {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
463
|
+
user_id: string;
|
|
464
|
+
clan_nick: string;
|
|
465
|
+
clan_avatar: string;
|
|
466
|
+
clan_id: string;
|
|
487
467
|
}
|
|
488
468
|
export interface MeetParticipantEvent {
|
|
489
469
|
username: string;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
470
|
+
room_name: string;
|
|
471
|
+
channel_id: string;
|
|
472
|
+
clan_id: string;
|
|
493
473
|
action: number;
|
|
494
474
|
}
|
|
495
475
|
export interface AllowAnonymousEvent {
|
|
496
|
-
|
|
476
|
+
clan_id: string;
|
|
497
477
|
allow: boolean;
|
|
498
478
|
}
|
|
499
479
|
/** Stream identifier */
|
|
@@ -527,9 +507,14 @@ export interface StreamPresenceEvent {
|
|
|
527
507
|
/** Presences of users who left the stream. */
|
|
528
508
|
leaves: Presence[];
|
|
529
509
|
}
|
|
510
|
+
export interface SocketRpc {
|
|
511
|
+
http_key?: string;
|
|
512
|
+
id?: string;
|
|
513
|
+
payload?: string;
|
|
514
|
+
}
|
|
530
515
|
/** Execute an Lua function on the server. */
|
|
531
516
|
interface Rpc {
|
|
532
|
-
rpc:
|
|
517
|
+
rpc: SocketRpc;
|
|
533
518
|
}
|
|
534
519
|
/** Application-level heartbeat ping. */
|
|
535
520
|
interface Ping {
|
|
@@ -543,7 +528,7 @@ export interface Status {
|
|
|
543
528
|
interface StatusFollow {
|
|
544
529
|
/** The IDs of the users to follow. */
|
|
545
530
|
status_follow: {
|
|
546
|
-
|
|
531
|
+
user_ids: string[];
|
|
547
532
|
};
|
|
548
533
|
}
|
|
549
534
|
/** A batch of status updates for a given user. */
|
|
@@ -556,8 +541,8 @@ export interface StatusPresenceEvent {
|
|
|
556
541
|
/** Stop receiving status updates for some set of users. */
|
|
557
542
|
interface StatusUnfollow {
|
|
558
543
|
/** The IDs of user to unfollow. */
|
|
559
|
-
|
|
560
|
-
|
|
544
|
+
status_unfollow: {
|
|
545
|
+
user_ids: string[];
|
|
561
546
|
};
|
|
562
547
|
}
|
|
563
548
|
/** Set the user's own status. */
|
|
@@ -568,354 +553,846 @@ interface StatusUpdate {
|
|
|
568
553
|
};
|
|
569
554
|
}
|
|
570
555
|
export interface CheckNameExistedEvent {
|
|
571
|
-
|
|
556
|
+
clan_name: string;
|
|
572
557
|
exist: boolean;
|
|
573
558
|
condition_id: string;
|
|
574
559
|
type: number;
|
|
575
|
-
|
|
560
|
+
clan_id: string;
|
|
576
561
|
}
|
|
577
562
|
/** */
|
|
578
563
|
export interface ClanSticker {
|
|
579
564
|
category?: string;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
565
|
+
clan_id?: string;
|
|
566
|
+
create_time?: string;
|
|
567
|
+
creator_id?: string;
|
|
583
568
|
id?: string;
|
|
584
569
|
shortname?: string;
|
|
585
570
|
source?: string;
|
|
586
571
|
logo?: string;
|
|
587
|
-
|
|
588
|
-
|
|
572
|
+
clan_name?: string;
|
|
573
|
+
is_for_sale?: boolean;
|
|
589
574
|
}
|
|
590
575
|
export interface RoleEvent {
|
|
591
|
-
role:
|
|
576
|
+
role: SocketRole;
|
|
592
577
|
status: number;
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
578
|
+
user_id: string;
|
|
579
|
+
user_add_ids: Array<string>;
|
|
580
|
+
user_remove_ids: Array<string>;
|
|
581
|
+
active_permission_ids: Array<string>;
|
|
582
|
+
remove_permission_ids: Array<string>;
|
|
598
583
|
}
|
|
599
584
|
export interface EventEmoji {
|
|
600
585
|
id: string;
|
|
601
|
-
|
|
602
|
-
|
|
586
|
+
clan_id: string;
|
|
587
|
+
short_name: string;
|
|
603
588
|
source: string;
|
|
604
589
|
category: string;
|
|
605
590
|
action: number;
|
|
606
|
-
|
|
591
|
+
user_id: string;
|
|
607
592
|
logo: string;
|
|
608
|
-
|
|
609
|
-
|
|
593
|
+
clan_name: string;
|
|
594
|
+
is_for_sale: boolean;
|
|
610
595
|
}
|
|
611
596
|
/** */
|
|
612
597
|
export interface ClanEmoji {
|
|
613
598
|
category?: string;
|
|
614
|
-
|
|
599
|
+
creator_id?: string;
|
|
615
600
|
id?: string;
|
|
616
601
|
shortname?: string;
|
|
617
602
|
src?: string;
|
|
618
603
|
logo?: string;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}
|
|
623
|
-
/** */
|
|
624
|
-
export interface ChannelDescription {
|
|
625
|
-
clanId?: string;
|
|
626
|
-
channelId?: string;
|
|
627
|
-
type?: number;
|
|
628
|
-
channelLabel?: string;
|
|
629
|
-
appUrl?: string;
|
|
630
|
-
channelPrivate?: number;
|
|
631
|
-
meetingCode?: string;
|
|
632
|
-
clanName?: string;
|
|
633
|
-
parentId?: string;
|
|
634
|
-
lastSentMessage?: ApiChannelMessageHeader;
|
|
604
|
+
clan_name?: string;
|
|
605
|
+
clan_id?: string;
|
|
606
|
+
is_for_sale?: boolean;
|
|
635
607
|
}
|
|
636
608
|
export interface HashtagDm {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
609
|
+
channel_id?: string;
|
|
610
|
+
channel_label?: string;
|
|
611
|
+
clan_id?: string;
|
|
612
|
+
clan_name?: string;
|
|
613
|
+
meeting_code?: string;
|
|
642
614
|
type?: number;
|
|
643
|
-
|
|
644
|
-
|
|
615
|
+
channel_private?: number;
|
|
616
|
+
parent_id?: string;
|
|
645
617
|
}
|
|
646
618
|
export interface NotificationSetting {
|
|
647
619
|
id?: string;
|
|
648
|
-
|
|
620
|
+
notification_setting_type?: number;
|
|
649
621
|
}
|
|
650
622
|
export interface NotificationChannelCategorySetting {
|
|
651
623
|
id: string;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
624
|
+
channel_category_label: string;
|
|
625
|
+
notification_setting_type: number;
|
|
626
|
+
channel_category_title: string;
|
|
655
627
|
action: number;
|
|
656
628
|
}
|
|
657
629
|
export interface UserEmojiUsage {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
630
|
+
user_id: string;
|
|
631
|
+
emoji_id: string;
|
|
632
|
+
clan_id: string;
|
|
633
|
+
create_time: string;
|
|
662
634
|
}
|
|
663
635
|
export interface AddFriend {
|
|
664
|
-
|
|
636
|
+
user_id: string;
|
|
665
637
|
username: string;
|
|
666
|
-
|
|
638
|
+
display_name: string;
|
|
667
639
|
avatar: string;
|
|
668
640
|
}
|
|
669
641
|
export interface RemoveFriend {
|
|
670
|
-
|
|
642
|
+
user_id: string;
|
|
671
643
|
}
|
|
672
644
|
export interface BlockFriend {
|
|
673
|
-
|
|
645
|
+
user_id: string;
|
|
674
646
|
}
|
|
675
647
|
export interface UnblockFriend {
|
|
676
|
-
|
|
648
|
+
user_id: string;
|
|
677
649
|
username: string;
|
|
678
650
|
avatar: string;
|
|
679
|
-
|
|
651
|
+
display_name: string;
|
|
680
652
|
status: string;
|
|
681
|
-
|
|
653
|
+
user_status: string;
|
|
682
654
|
}
|
|
683
655
|
export interface AddUserEmojiUsageEvent {
|
|
684
|
-
|
|
685
|
-
|
|
656
|
+
emoji_id: string;
|
|
657
|
+
clan_id: string;
|
|
686
658
|
}
|
|
687
659
|
/** Response cho ListUserEmojiUsage */
|
|
688
660
|
export interface GetUserEmojiUsageEvent {
|
|
689
|
-
|
|
690
|
-
|
|
661
|
+
clan_id: string;
|
|
662
|
+
user_emoji_usage: Array<UserEmojiUsage>;
|
|
691
663
|
}
|
|
692
664
|
/** On role assign */
|
|
693
665
|
export interface RoleAssignedEvent {
|
|
694
666
|
/** The clan of this role */
|
|
695
|
-
|
|
667
|
+
clan_id: string;
|
|
696
668
|
/** Role ID */
|
|
697
|
-
|
|
669
|
+
role_id: string;
|
|
698
670
|
/** UserIds Assigned */
|
|
699
|
-
|
|
671
|
+
user_ids_assigned: string[];
|
|
700
672
|
/** UserIds Removed */
|
|
701
|
-
|
|
673
|
+
user_ids_removed: string[];
|
|
702
674
|
}
|
|
703
675
|
/** Streaming Joined event */
|
|
704
676
|
export interface StreamingLeavedEvent {
|
|
705
677
|
/** id */
|
|
706
678
|
id: string;
|
|
707
679
|
/** The unique identifier of the chat clan. */
|
|
708
|
-
|
|
680
|
+
clan_id: string;
|
|
709
681
|
/** streaming channel name */
|
|
710
|
-
|
|
711
|
-
/** streaming
|
|
712
|
-
|
|
682
|
+
streaming_channel_id: string;
|
|
683
|
+
/** streaming user_id */
|
|
684
|
+
streaming_user_id: string;
|
|
713
685
|
}
|
|
714
686
|
/** Streaming Joined event */
|
|
715
687
|
export interface StreamingJoinedEvent {
|
|
716
688
|
/** The unique identifier of the chat clan. */
|
|
717
|
-
|
|
689
|
+
clan_id: string;
|
|
718
690
|
/** The channel name */
|
|
719
|
-
|
|
691
|
+
clan_name: string;
|
|
720
692
|
/** id streaming */
|
|
721
693
|
id: string;
|
|
722
694
|
/** streaming participant */
|
|
723
695
|
participant: string;
|
|
724
696
|
/** user id */
|
|
725
|
-
|
|
697
|
+
user_id: string;
|
|
726
698
|
/** streaming channel label */
|
|
727
|
-
|
|
699
|
+
streaming_channel_label: string;
|
|
728
700
|
/** streaming channel id */
|
|
729
|
-
|
|
701
|
+
streaming_channel_id: string;
|
|
730
702
|
}
|
|
731
703
|
/** Streaming start event */
|
|
732
704
|
export interface StreamingStartedEvent {
|
|
733
705
|
/** clan id */
|
|
734
|
-
|
|
706
|
+
clan_id: string;
|
|
735
707
|
/** channel id */
|
|
736
|
-
|
|
708
|
+
channel_id: string;
|
|
737
709
|
/** stream url */
|
|
738
|
-
|
|
710
|
+
streaming_url: string;
|
|
739
711
|
/** status */
|
|
740
|
-
|
|
712
|
+
is_streaming: boolean;
|
|
741
713
|
}
|
|
742
714
|
/** Streaming start event */
|
|
743
715
|
export interface StreamingEndedEvent {
|
|
744
716
|
/** clan id */
|
|
745
|
-
|
|
717
|
+
clan_id: string;
|
|
746
718
|
/** channel id */
|
|
747
|
-
|
|
719
|
+
channel_id: string;
|
|
748
720
|
}
|
|
749
721
|
export interface ChannelAppEvent {
|
|
750
|
-
|
|
722
|
+
user_id: string;
|
|
751
723
|
username: string;
|
|
752
|
-
|
|
753
|
-
|
|
724
|
+
clan_id: string;
|
|
725
|
+
channel_id: string;
|
|
754
726
|
action: number;
|
|
755
727
|
}
|
|
756
728
|
export interface HandleParticipantMeetStateEvent {
|
|
757
729
|
/** clan id */
|
|
758
|
-
|
|
730
|
+
clan_id: string;
|
|
759
731
|
/** channel id */
|
|
760
|
-
|
|
732
|
+
channel_id: string;
|
|
761
733
|
/** display name */
|
|
762
|
-
|
|
734
|
+
display_name: string;
|
|
763
735
|
/** state (0: join, 1: leave) */
|
|
764
736
|
state: number;
|
|
765
737
|
/** room name */
|
|
766
|
-
|
|
738
|
+
room_name: string;
|
|
739
|
+
}
|
|
740
|
+
export interface SocketPermissionUpdate {
|
|
741
|
+
permission_id?: string;
|
|
742
|
+
slug?: string;
|
|
743
|
+
type?: number;
|
|
767
744
|
}
|
|
768
745
|
export interface PermissionSet {
|
|
769
746
|
/** Role ID */
|
|
770
|
-
|
|
747
|
+
role_id: string;
|
|
771
748
|
/** User ID */
|
|
772
|
-
|
|
749
|
+
user_id: string;
|
|
773
750
|
/** Channel ID */
|
|
774
|
-
|
|
751
|
+
channel_id: string;
|
|
775
752
|
/** List permission update */
|
|
776
|
-
|
|
753
|
+
permission_updates: SocketPermissionUpdate[];
|
|
777
754
|
/** */
|
|
778
755
|
caller: string;
|
|
779
756
|
}
|
|
780
757
|
export interface PermissionChangedEvent {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
758
|
+
user_id: string;
|
|
759
|
+
channel_id: string;
|
|
760
|
+
add_permissions: SocketPermissionUpdate[];
|
|
761
|
+
remove_permissions: SocketPermissionUpdate[];
|
|
762
|
+
default_permissions: SocketPermissionUpdate[];
|
|
786
763
|
}
|
|
787
764
|
export interface DropdownBoxSelected {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
765
|
+
message_id: string;
|
|
766
|
+
channel_id: string;
|
|
767
|
+
selectbox_id: string;
|
|
768
|
+
sender_id: string;
|
|
769
|
+
user_id: string;
|
|
793
770
|
value: Array<string>;
|
|
794
771
|
}
|
|
795
772
|
export interface MessageButtonClicked {
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
773
|
+
message_id: string;
|
|
774
|
+
channel_id: string;
|
|
775
|
+
button_id: string;
|
|
776
|
+
sender_id: string;
|
|
777
|
+
user_id: string;
|
|
778
|
+
extra_data: string;
|
|
802
779
|
}
|
|
803
780
|
export interface IncomingCallPush {
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
781
|
+
receiver_id: string;
|
|
782
|
+
json_data: string;
|
|
783
|
+
channel_id: string;
|
|
784
|
+
caller_id: string;
|
|
808
785
|
}
|
|
809
786
|
export interface VoiceReactionSend {
|
|
810
787
|
emojis: Array<string>;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
788
|
+
channel_id: string;
|
|
789
|
+
sender_id: string;
|
|
790
|
+
media_type: number;
|
|
814
791
|
}
|
|
815
792
|
export interface MarkAsRead {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
793
|
+
channel_id: string;
|
|
794
|
+
category_id: string;
|
|
795
|
+
clan_id: string;
|
|
819
796
|
}
|
|
820
797
|
export interface WebrtcSignalingFwd {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
798
|
+
receiver_id: string;
|
|
799
|
+
data_type: number;
|
|
800
|
+
json_data: string;
|
|
801
|
+
channel_id: string;
|
|
802
|
+
caller_id: string;
|
|
826
803
|
}
|
|
827
804
|
export interface ListActivity {
|
|
828
|
-
acts:
|
|
805
|
+
acts: SocketUserActivity[];
|
|
829
806
|
}
|
|
830
807
|
export interface SdTopicEvent {
|
|
831
808
|
id: string;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
message?:
|
|
809
|
+
clan_id: string;
|
|
810
|
+
channel_id: string;
|
|
811
|
+
message_id: string;
|
|
812
|
+
user_id: string;
|
|
813
|
+
last_sent_message?: SocketChannelMessageHeader;
|
|
814
|
+
message?: SocketChannelMessage;
|
|
838
815
|
}
|
|
839
816
|
export interface UserStatusEvent {
|
|
840
|
-
|
|
841
|
-
|
|
817
|
+
user_id: string;
|
|
818
|
+
custom_status: string;
|
|
842
819
|
}
|
|
843
820
|
export interface JoinChannelAppData {
|
|
844
|
-
|
|
821
|
+
user_id: string;
|
|
845
822
|
username: string;
|
|
846
823
|
hash: string;
|
|
847
824
|
}
|
|
848
825
|
/** */
|
|
849
826
|
export interface ChannelCanvas {
|
|
850
827
|
content?: string;
|
|
851
|
-
|
|
852
|
-
|
|
828
|
+
creator_id?: string;
|
|
829
|
+
editor_id?: string;
|
|
853
830
|
id?: string;
|
|
854
|
-
|
|
831
|
+
is_default?: boolean;
|
|
855
832
|
title?: string;
|
|
856
|
-
|
|
833
|
+
channel_id?: string;
|
|
834
|
+
status?: number;
|
|
835
|
+
}
|
|
836
|
+
export interface SocketListClanUnreadMsgIndicatorResponse {
|
|
837
|
+
has_unread_message?: boolean;
|
|
838
|
+
}
|
|
839
|
+
export interface SocketClanDescList {
|
|
840
|
+
clandesc?: Array<SocketClanDesc>;
|
|
841
|
+
}
|
|
842
|
+
export interface SocketClanDesc {
|
|
843
|
+
banner?: string;
|
|
844
|
+
clan_id?: string;
|
|
845
|
+
clan_name?: string;
|
|
846
|
+
creator_id?: string;
|
|
847
|
+
logo?: string;
|
|
857
848
|
status?: number;
|
|
849
|
+
badge_count?: number;
|
|
850
|
+
is_onboarding?: boolean;
|
|
851
|
+
welcome_channel_id?: string;
|
|
852
|
+
onboarding_banner?: string;
|
|
853
|
+
is_community?: boolean;
|
|
854
|
+
community_banner?: string;
|
|
855
|
+
description?: string;
|
|
856
|
+
about?: string;
|
|
857
|
+
short_url?: string;
|
|
858
|
+
prevent_anonymous?: boolean;
|
|
859
|
+
has_unread_message?: boolean;
|
|
860
|
+
}
|
|
861
|
+
export interface SocketChannelDescList {
|
|
862
|
+
cacheable_cursor?: string;
|
|
863
|
+
channeldesc?: Array<SocketChannelDescription>;
|
|
864
|
+
next_cursor?: string;
|
|
865
|
+
page?: number;
|
|
866
|
+
prev_cursor?: string;
|
|
867
|
+
}
|
|
868
|
+
export interface SocketAllUsersAddChannelResponse {
|
|
869
|
+
channel_id?: string;
|
|
870
|
+
limit?: number;
|
|
871
|
+
user_ids?: Array<string>;
|
|
872
|
+
usernames?: Array<string>;
|
|
873
|
+
display_names?: Array<string>;
|
|
874
|
+
avatars?: Array<string>;
|
|
875
|
+
onlines?: Array<boolean>;
|
|
876
|
+
}
|
|
877
|
+
export interface SocketChannelDescription {
|
|
878
|
+
active?: number;
|
|
879
|
+
age_restricted?: number;
|
|
880
|
+
category_id?: string;
|
|
881
|
+
category_name?: string;
|
|
882
|
+
channel_id?: string;
|
|
883
|
+
channel_label?: string;
|
|
884
|
+
channel_private?: number;
|
|
885
|
+
clan_id?: string;
|
|
886
|
+
clan_name?: string;
|
|
887
|
+
count_mess_unread?: number;
|
|
888
|
+
create_time_seconds?: number;
|
|
889
|
+
creator_id?: string;
|
|
890
|
+
creator_name?: string;
|
|
891
|
+
e2ee?: number;
|
|
892
|
+
is_mute?: boolean;
|
|
893
|
+
last_pin_message?: string;
|
|
894
|
+
last_seen_message?: SocketChannelMessageHeader;
|
|
895
|
+
last_sent_message?: SocketChannelMessageHeader;
|
|
896
|
+
meeting_code?: string;
|
|
897
|
+
channel_avatar?: string;
|
|
898
|
+
parent_id?: string;
|
|
899
|
+
type?: number;
|
|
900
|
+
update_time_seconds?: number;
|
|
901
|
+
app_id?: string;
|
|
902
|
+
topic?: string;
|
|
903
|
+
user_ids?: Array<string>;
|
|
904
|
+
usernames?: Array<string>;
|
|
905
|
+
display_names?: Array<string>;
|
|
906
|
+
onlines?: Array<boolean>;
|
|
907
|
+
avatars?: Array<string>;
|
|
908
|
+
member_count?: number;
|
|
909
|
+
}
|
|
910
|
+
export interface SocketChannelMessageList {
|
|
911
|
+
last_seen_message?: SocketChannelMessageHeader;
|
|
912
|
+
last_sent_message?: SocketChannelMessageHeader;
|
|
913
|
+
messages?: Array<SocketChannelMessage>;
|
|
914
|
+
}
|
|
915
|
+
export interface SocketChannelMessageHeader {
|
|
916
|
+
attachment?: string;
|
|
917
|
+
content?: string;
|
|
918
|
+
id?: string;
|
|
919
|
+
mention?: string;
|
|
920
|
+
reaction?: string;
|
|
921
|
+
reference?: string;
|
|
922
|
+
repliers?: Array<string>;
|
|
923
|
+
sender_id?: string;
|
|
924
|
+
timestamp_seconds?: number;
|
|
925
|
+
}
|
|
926
|
+
export interface SocketVoiceChannelUserList {
|
|
927
|
+
voice_channel_users?: Array<SocketVoiceChannelUser>;
|
|
928
|
+
}
|
|
929
|
+
export interface SocketVoiceChannelUser {
|
|
930
|
+
id?: string;
|
|
931
|
+
channel_id?: string;
|
|
932
|
+
participant?: string;
|
|
933
|
+
user_id?: string;
|
|
934
|
+
}
|
|
935
|
+
export interface SocketChannelUserList {
|
|
936
|
+
channel_id?: string;
|
|
937
|
+
channel_users?: Array<SocketChannelUserListChannelUser>;
|
|
938
|
+
cursor?: string;
|
|
939
|
+
}
|
|
940
|
+
export interface SocketChannelUserListChannelUser {
|
|
941
|
+
clan_avatar?: string;
|
|
942
|
+
clan_id?: string;
|
|
943
|
+
clan_nick?: string;
|
|
944
|
+
id?: string;
|
|
945
|
+
role_id?: Array<string>;
|
|
946
|
+
thread_id?: string;
|
|
947
|
+
user_id?: string;
|
|
948
|
+
added_by?: string;
|
|
949
|
+
is_banned?: boolean;
|
|
950
|
+
expired_ban_time?: number;
|
|
951
|
+
}
|
|
952
|
+
export interface SocketChannelAttachmentList {
|
|
953
|
+
attachments?: Array<SocketChannelAttachment>;
|
|
954
|
+
}
|
|
955
|
+
export interface SocketChannelAttachment {
|
|
956
|
+
create_time?: string;
|
|
957
|
+
filename?: string;
|
|
958
|
+
filesize?: string;
|
|
959
|
+
filetype?: string;
|
|
960
|
+
id?: string;
|
|
961
|
+
uploader?: string;
|
|
962
|
+
url?: string;
|
|
963
|
+
message_id?: string;
|
|
964
|
+
width?: number;
|
|
965
|
+
height?: number;
|
|
966
|
+
}
|
|
967
|
+
export interface SocketHashtagDmList {
|
|
968
|
+
hashtagDm?: Array<SocketHashtagDm>;
|
|
969
|
+
}
|
|
970
|
+
export interface SocketHashtagDm {
|
|
971
|
+
channel_id?: string;
|
|
972
|
+
channel_label?: string;
|
|
973
|
+
channel_private?: number;
|
|
974
|
+
clan_id?: string;
|
|
975
|
+
clan_name?: string;
|
|
976
|
+
meeting_code?: string;
|
|
977
|
+
parent_id?: string;
|
|
978
|
+
type?: number;
|
|
979
|
+
}
|
|
980
|
+
export interface SocketChannelSettingListResponse {
|
|
981
|
+
channel_count?: number;
|
|
982
|
+
channel_setting_list?: Array<SocketChannelSettingItem>;
|
|
983
|
+
clan_id?: string;
|
|
984
|
+
thread_count?: number;
|
|
985
|
+
}
|
|
986
|
+
export interface SocketChannelSettingItem {
|
|
987
|
+
active?: number;
|
|
988
|
+
category_id?: string;
|
|
989
|
+
channel_label?: string;
|
|
990
|
+
channel_private?: number;
|
|
991
|
+
channel_type?: number;
|
|
992
|
+
creator_id?: string;
|
|
993
|
+
id?: string;
|
|
994
|
+
last_sent_message?: SocketChannelMessageHeader;
|
|
995
|
+
meeting_code?: string;
|
|
996
|
+
message_count?: string;
|
|
997
|
+
parent_id?: string;
|
|
998
|
+
user_ids?: Array<string>;
|
|
999
|
+
}
|
|
1000
|
+
export interface SocketListFavoriteChannelResponse {
|
|
1001
|
+
channel_ids?: Array<string>;
|
|
1002
|
+
}
|
|
1003
|
+
export interface SocketNotificationChannel {
|
|
1004
|
+
channel_id?: string;
|
|
1005
|
+
}
|
|
1006
|
+
export interface SocketNotificationUserChannel {
|
|
1007
|
+
active?: number;
|
|
1008
|
+
id?: string;
|
|
1009
|
+
notification_setting_type?: number;
|
|
1010
|
+
time_mute?: string;
|
|
1011
|
+
channel_id?: string;
|
|
1012
|
+
}
|
|
1013
|
+
export interface SocketNotificationSetting {
|
|
1014
|
+
id?: string;
|
|
1015
|
+
notification_setting_type?: number;
|
|
1016
|
+
}
|
|
1017
|
+
export interface SocketNotifiReactMessage {
|
|
1018
|
+
channel_id?: string;
|
|
1019
|
+
id?: string;
|
|
1020
|
+
user_id?: string;
|
|
1021
|
+
}
|
|
1022
|
+
export interface SocketNotificationChannelCategorySettingList {
|
|
1023
|
+
notification_channel_category_settings_list?: Array<SocketNotificationChannelCategorySetting>;
|
|
1024
|
+
}
|
|
1025
|
+
export interface SocketNotificationChannelCategorySetting {
|
|
1026
|
+
action?: number;
|
|
1027
|
+
channel_category_label?: string;
|
|
1028
|
+
channel_category_title?: string;
|
|
1029
|
+
id?: string;
|
|
1030
|
+
notification_setting_type?: number;
|
|
1031
|
+
}
|
|
1032
|
+
export interface SocketNotificationList {
|
|
1033
|
+
cacheable_cursor?: string;
|
|
1034
|
+
notifications?: Array<SocketNotification>;
|
|
1035
|
+
}
|
|
1036
|
+
export interface SocketNotification {
|
|
1037
|
+
avatar_url?: string;
|
|
1038
|
+
channel_id?: string;
|
|
1039
|
+
channel_type?: number;
|
|
1040
|
+
clan_id?: string;
|
|
1041
|
+
code?: number;
|
|
1042
|
+
content?: string;
|
|
1043
|
+
create_time_seconds?: number;
|
|
1044
|
+
id?: string;
|
|
1045
|
+
persistent?: boolean;
|
|
1046
|
+
sender_id?: string;
|
|
1047
|
+
subject?: string;
|
|
1048
|
+
category?: number;
|
|
1049
|
+
topic_id?: string;
|
|
1050
|
+
channel?: SocketChannelDescription;
|
|
1051
|
+
}
|
|
1052
|
+
export interface SocketStickerListedResponse {
|
|
1053
|
+
stickers?: Array<SocketClanSticker>;
|
|
1054
|
+
}
|
|
1055
|
+
export interface SocketClanSticker {
|
|
1056
|
+
category?: string;
|
|
1057
|
+
clan_id?: string;
|
|
1058
|
+
clan_name?: string;
|
|
1059
|
+
create_time?: string;
|
|
1060
|
+
creator_id?: string;
|
|
1061
|
+
id?: string;
|
|
1062
|
+
logo?: string;
|
|
1063
|
+
shortname?: string;
|
|
1064
|
+
source?: string;
|
|
1065
|
+
media_type?: number;
|
|
1066
|
+
is_for_sale?: boolean;
|
|
1067
|
+
}
|
|
1068
|
+
export interface SocketEmojiRecentList {
|
|
1069
|
+
emoji_recents?: Array<SocketEmojiRecent>;
|
|
1070
|
+
}
|
|
1071
|
+
export interface SocketEmojiRecent {
|
|
1072
|
+
emoji_recents_id?: string;
|
|
1073
|
+
emoji_id?: string;
|
|
1074
|
+
update_time?: string;
|
|
1075
|
+
}
|
|
1076
|
+
export interface SocketListClanWebhookResponse {
|
|
1077
|
+
list_clan_webhooks?: Array<SocketClanWebhook>;
|
|
1078
|
+
}
|
|
1079
|
+
export interface SocketClanWebhook {
|
|
1080
|
+
active?: number;
|
|
1081
|
+
avatar?: string;
|
|
1082
|
+
clan_id?: string;
|
|
1083
|
+
create_time?: string;
|
|
1084
|
+
creator_id?: string;
|
|
1085
|
+
id?: string;
|
|
1086
|
+
update_time?: string;
|
|
1087
|
+
url?: string;
|
|
1088
|
+
webhook_name?: string;
|
|
1089
|
+
}
|
|
1090
|
+
export interface SocketWebhookListResponse {
|
|
1091
|
+
webhooks?: Array<SocketWebhook>;
|
|
1092
|
+
}
|
|
1093
|
+
export interface SocketWebhook {
|
|
1094
|
+
active?: number;
|
|
1095
|
+
avatar?: string;
|
|
1096
|
+
channel_id?: string;
|
|
1097
|
+
create_time?: string;
|
|
1098
|
+
creator_id?: string;
|
|
1099
|
+
id?: string;
|
|
1100
|
+
status?: number;
|
|
1101
|
+
update_time?: string;
|
|
1102
|
+
url?: string;
|
|
1103
|
+
webhook_name?: string;
|
|
1104
|
+
clan_id?: string;
|
|
1105
|
+
}
|
|
1106
|
+
export interface SocketPermissionList {
|
|
1107
|
+
max_level_permission?: number;
|
|
1108
|
+
permissions?: Array<SocketPermission>;
|
|
1109
|
+
}
|
|
1110
|
+
export interface SocketPermission {
|
|
1111
|
+
active?: number;
|
|
1112
|
+
description?: string;
|
|
1113
|
+
id?: string;
|
|
1114
|
+
level?: number;
|
|
1115
|
+
scope?: number;
|
|
1116
|
+
slug?: string;
|
|
1117
|
+
title?: string;
|
|
1118
|
+
}
|
|
1119
|
+
export interface SocketRoleUserList {
|
|
1120
|
+
cursor?: string;
|
|
1121
|
+
role_users?: Array<SocketRoleUserListRoleUser>;
|
|
1122
|
+
}
|
|
1123
|
+
export interface SocketRoleUserListRoleUser {
|
|
1124
|
+
avatar_url?: string;
|
|
1125
|
+
display_name?: string;
|
|
1126
|
+
id?: string;
|
|
1127
|
+
lang_tag?: string;
|
|
1128
|
+
location?: string;
|
|
1129
|
+
online?: boolean;
|
|
1130
|
+
username?: string;
|
|
1131
|
+
}
|
|
1132
|
+
export interface SocketRoleList {
|
|
1133
|
+
max_level_permission?: number;
|
|
1134
|
+
roles?: Array<SocketRole>;
|
|
1135
|
+
}
|
|
1136
|
+
export interface SocketRole {
|
|
1137
|
+
active?: number;
|
|
1138
|
+
allow_mention?: number;
|
|
1139
|
+
channel_ids?: Array<string>;
|
|
1140
|
+
clan_id?: string;
|
|
1141
|
+
color?: string;
|
|
1142
|
+
creator_id?: string;
|
|
1143
|
+
description?: string;
|
|
1144
|
+
display_online?: number;
|
|
1145
|
+
id?: string;
|
|
1146
|
+
max_level_permission?: number;
|
|
1147
|
+
permission_list?: SocketPermissionList;
|
|
1148
|
+
role_channel_active?: number;
|
|
1149
|
+
role_icon?: string;
|
|
1150
|
+
role_user_list?: SocketRoleUserList;
|
|
1151
|
+
slug?: string;
|
|
1152
|
+
title?: string;
|
|
1153
|
+
order_role?: number;
|
|
1154
|
+
}
|
|
1155
|
+
export interface SocketRoleListEventResponse {
|
|
1156
|
+
clan_id?: string;
|
|
1157
|
+
cursor?: string;
|
|
1158
|
+
limit?: number;
|
|
1159
|
+
roles?: SocketRoleList;
|
|
1160
|
+
state?: string;
|
|
1161
|
+
}
|
|
1162
|
+
export interface SocketUserPermissionInChannelListResponse {
|
|
1163
|
+
channel_id?: string;
|
|
1164
|
+
clan_id?: string;
|
|
1165
|
+
permissions?: SocketPermissionList;
|
|
1166
|
+
}
|
|
1167
|
+
export interface SocketPermissionRoleChannelListEventResponse {
|
|
1168
|
+
channel_id?: string;
|
|
1169
|
+
permission_role_channel?: Array<SocketPermissionRoleChannel>;
|
|
1170
|
+
role_id?: string;
|
|
1171
|
+
user_id?: string;
|
|
1172
|
+
}
|
|
1173
|
+
export interface SocketPermissionRoleChannel {
|
|
1174
|
+
active?: boolean;
|
|
1175
|
+
permission_id?: string;
|
|
1176
|
+
}
|
|
1177
|
+
export interface SocketEmojiListedResponse {
|
|
1178
|
+
emoji_list?: Array<SocketClanEmoji>;
|
|
1179
|
+
}
|
|
1180
|
+
export interface SocketClanEmoji {
|
|
1181
|
+
category?: string;
|
|
1182
|
+
clan_id?: string;
|
|
1183
|
+
clan_name?: string;
|
|
1184
|
+
creator_id?: string;
|
|
1185
|
+
id?: string;
|
|
1186
|
+
logo?: string;
|
|
1187
|
+
shortname?: string;
|
|
1188
|
+
src?: string;
|
|
1189
|
+
is_for_sale?: boolean;
|
|
1190
|
+
}
|
|
1191
|
+
export interface SocketFriendList {
|
|
1192
|
+
cursor?: string;
|
|
1193
|
+
friends?: Array<SocketFriend>;
|
|
1194
|
+
}
|
|
1195
|
+
export interface SocketFriend {
|
|
1196
|
+
state?: number;
|
|
1197
|
+
update_time?: string;
|
|
1198
|
+
user?: SocketUser;
|
|
1199
|
+
source_id?: string;
|
|
1200
|
+
}
|
|
1201
|
+
export interface SocketUser {
|
|
1202
|
+
about_me?: string;
|
|
1203
|
+
avatar_url?: string;
|
|
1204
|
+
dob?: string;
|
|
1205
|
+
create_time?: string;
|
|
1206
|
+
display_name?: string;
|
|
1207
|
+
edge_count?: number;
|
|
1208
|
+
id?: string;
|
|
1209
|
+
is_mobile?: boolean;
|
|
1210
|
+
join_time?: string;
|
|
1211
|
+
lang_tag?: string;
|
|
1212
|
+
location?: string;
|
|
1213
|
+
user_status?: string;
|
|
1214
|
+
status?: string;
|
|
1215
|
+
online?: boolean;
|
|
1216
|
+
timezone?: string;
|
|
1217
|
+
updateTime?: string;
|
|
1218
|
+
username?: string;
|
|
1219
|
+
mezonId?: string;
|
|
1220
|
+
list_nick_names?: Array<string>;
|
|
1221
|
+
phone_number?: string;
|
|
1222
|
+
}
|
|
1223
|
+
export interface SocketListChannelAppsResponse {
|
|
1224
|
+
channel_apps?: Array<SocketChannelAppResponse>;
|
|
1225
|
+
}
|
|
1226
|
+
export interface SocketChannelAppResponse {
|
|
1227
|
+
app_id?: string;
|
|
1228
|
+
channel_id?: string;
|
|
1229
|
+
clan_id?: string;
|
|
1230
|
+
id?: string;
|
|
1231
|
+
app_url?: string;
|
|
1232
|
+
app_name?: string;
|
|
1233
|
+
app_logo?: string;
|
|
1234
|
+
}
|
|
1235
|
+
export interface SocketListUserActivity {
|
|
1236
|
+
activities?: Array<SocketUserActivity>;
|
|
1237
|
+
}
|
|
1238
|
+
export interface SocketUserActivity {
|
|
1239
|
+
activity_description?: string;
|
|
1240
|
+
activity_name?: string;
|
|
1241
|
+
activity_type?: number;
|
|
1242
|
+
application_id?: string;
|
|
1243
|
+
end_time?: string;
|
|
1244
|
+
start_time?: string;
|
|
1245
|
+
status?: number;
|
|
1246
|
+
user_id?: string;
|
|
1247
|
+
}
|
|
1248
|
+
/** A message sent on a channel. */
|
|
1249
|
+
export interface SocketChannelMessage {
|
|
1250
|
+
id: string;
|
|
1251
|
+
avatar?: string;
|
|
1252
|
+
channel_id: string;
|
|
1253
|
+
channel_label: string;
|
|
1254
|
+
clan_id?: string;
|
|
1255
|
+
code: number;
|
|
1256
|
+
content: string;
|
|
1257
|
+
reactions?: Array<ApiMessageReaction>;
|
|
1258
|
+
mentions?: Array<ApiMessageMention>;
|
|
1259
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
1260
|
+
references?: Array<ApiMessageRef>;
|
|
1261
|
+
referenced_message?: string[];
|
|
1262
|
+
persistent?: boolean;
|
|
1263
|
+
sender_id: string;
|
|
1264
|
+
clan_logo?: string;
|
|
1265
|
+
category_name?: string;
|
|
1266
|
+
username?: string;
|
|
1267
|
+
clan_nick?: string;
|
|
1268
|
+
clan_avatar?: string;
|
|
1269
|
+
display_name?: string;
|
|
1270
|
+
create_time_seconds?: number;
|
|
1271
|
+
update_time_seconds?: number;
|
|
1272
|
+
mode?: number;
|
|
1273
|
+
message_id?: string;
|
|
1274
|
+
hide_editted?: boolean;
|
|
1275
|
+
is_public?: boolean;
|
|
1276
|
+
topic_id?: string;
|
|
1277
|
+
}
|
|
1278
|
+
export interface SocketNotification {
|
|
1279
|
+
avatar_url?: string;
|
|
1280
|
+
channel_id?: string;
|
|
1281
|
+
channel_type?: number;
|
|
1282
|
+
clan_id?: string;
|
|
1283
|
+
code?: number;
|
|
1284
|
+
content?: string;
|
|
1285
|
+
create_time_seconds?: number;
|
|
1286
|
+
id?: string;
|
|
1287
|
+
persistent?: boolean;
|
|
1288
|
+
sender_id?: string;
|
|
1289
|
+
subject?: string;
|
|
1290
|
+
category?: number;
|
|
1291
|
+
topic_id?: string;
|
|
1292
|
+
channel?: SocketChannelDescription;
|
|
1293
|
+
}
|
|
1294
|
+
export interface SocketCreateEventRequest {
|
|
1295
|
+
address?: string;
|
|
1296
|
+
channel_voice_id?: string;
|
|
1297
|
+
clan_id?: string;
|
|
1298
|
+
description?: string;
|
|
1299
|
+
end_time?: string;
|
|
1300
|
+
logo?: string;
|
|
1301
|
+
start_time?: string;
|
|
1302
|
+
title?: string;
|
|
1303
|
+
channel_id?: string;
|
|
1304
|
+
action?: number;
|
|
1305
|
+
event_status?: number;
|
|
1306
|
+
repeat_type?: number;
|
|
1307
|
+
creator_id?: number;
|
|
1308
|
+
user_id?: string;
|
|
1309
|
+
is_private?: boolean;
|
|
1310
|
+
meet_room?: SocketGenerateMezonMeetResponse;
|
|
1311
|
+
}
|
|
1312
|
+
export interface SocketGenerateMezonMeetResponse {
|
|
1313
|
+
meet_id?: string;
|
|
1314
|
+
room_name?: string;
|
|
1315
|
+
external_link?: string;
|
|
1316
|
+
creator_id?: string;
|
|
1317
|
+
event_id?: string;
|
|
1318
|
+
}
|
|
1319
|
+
export interface SocketGiveCoffeeEvent {
|
|
1320
|
+
channel_id?: string;
|
|
1321
|
+
clan_id?: string;
|
|
1322
|
+
message_ref_id?: string;
|
|
1323
|
+
receiver_id?: string;
|
|
1324
|
+
sender_id?: string;
|
|
1325
|
+
token_count?: number;
|
|
1326
|
+
}
|
|
1327
|
+
export interface SocketTokenSentEvent {
|
|
1328
|
+
amount?: number;
|
|
1329
|
+
note?: string;
|
|
1330
|
+
receiver_id?: string;
|
|
1331
|
+
sender_id?: string;
|
|
1332
|
+
sender_name?: string;
|
|
1333
|
+
extra_attribute?: string;
|
|
1334
|
+
transaction_id?: string;
|
|
858
1335
|
}
|
|
859
1336
|
export interface ListDataSocket {
|
|
860
1337
|
api_name?: string;
|
|
861
1338
|
list_unread_msg_indicator_req?: any;
|
|
862
|
-
unread_msg_indicator?:
|
|
1339
|
+
unread_msg_indicator?: SocketListClanUnreadMsgIndicatorResponse;
|
|
863
1340
|
list_clan_req?: any;
|
|
864
|
-
clan_desc_list?:
|
|
1341
|
+
clan_desc_list?: SocketClanDescList;
|
|
865
1342
|
list_thread_req?: any;
|
|
866
|
-
channel_desc_list?:
|
|
1343
|
+
channel_desc_list?: SocketChannelDescList;
|
|
867
1344
|
list_channel_users_uc_req?: any;
|
|
868
|
-
channel_users_uc_list?:
|
|
1345
|
+
channel_users_uc_list?: SocketAllUsersAddChannelResponse;
|
|
869
1346
|
list_channel_detail_req?: any;
|
|
870
|
-
|
|
1347
|
+
channel_desc?: SocketChannelDescription;
|
|
871
1348
|
list_channel_req?: any;
|
|
872
1349
|
list_channel_message_req?: any;
|
|
873
|
-
channel_message_list?:
|
|
1350
|
+
channel_message_list?: SocketChannelMessageList;
|
|
874
1351
|
list_channel_users_req?: any;
|
|
875
|
-
voice_user_list?:
|
|
876
|
-
channel_user_list?:
|
|
1352
|
+
voice_user_list?: SocketVoiceChannelUserList;
|
|
1353
|
+
channel_user_list?: SocketChannelUserList;
|
|
877
1354
|
list_channel_attachment_req?: any;
|
|
878
|
-
channel_attachment_list?:
|
|
1355
|
+
channel_attachment_list?: SocketChannelAttachmentList;
|
|
879
1356
|
hashtag_dm_req?: any;
|
|
880
|
-
hashtag_dm_list?:
|
|
1357
|
+
hashtag_dm_list?: SocketHashtagDmList;
|
|
881
1358
|
channel_setting_req?: any;
|
|
882
|
-
|
|
1359
|
+
channel_setting_list?: SocketChannelSettingListResponse;
|
|
883
1360
|
favorite_channel_req?: any;
|
|
884
|
-
favorite_channel_list?:
|
|
1361
|
+
favorite_channel_list?: SocketListFavoriteChannelResponse;
|
|
885
1362
|
search_thread_req?: any;
|
|
886
|
-
notification_channel?:
|
|
887
|
-
notificaion_user_channel?:
|
|
1363
|
+
notification_channel?: SocketNotificationChannel;
|
|
1364
|
+
notificaion_user_channel?: SocketNotificationUserChannel;
|
|
888
1365
|
notification_category?: any;
|
|
889
1366
|
notification_clan?: any;
|
|
890
|
-
notification_setting?:
|
|
891
|
-
notification_message?:
|
|
892
|
-
noti_channel_cat_setting_list?:
|
|
1367
|
+
notification_setting?: SocketNotificationSetting;
|
|
1368
|
+
notification_message?: SocketNotifiReactMessage;
|
|
1369
|
+
noti_channel_cat_setting_list?: SocketNotificationChannelCategorySettingList;
|
|
893
1370
|
list_notification_req?: any;
|
|
894
|
-
notification_list?:
|
|
895
|
-
sticker_list?:
|
|
896
|
-
emoji_recent_list?:
|
|
1371
|
+
notification_list?: SocketNotificationList;
|
|
1372
|
+
sticker_list?: SocketStickerListedResponse;
|
|
1373
|
+
emoji_recent_list?: SocketEmojiRecentList;
|
|
897
1374
|
clan_webhook_req?: any;
|
|
898
|
-
clan_webhook_list?:
|
|
1375
|
+
clan_webhook_list?: SocketListClanWebhookResponse;
|
|
899
1376
|
webhook_list_req?: any;
|
|
900
|
-
webhook_list?:
|
|
1377
|
+
webhook_list?: SocketWebhookListResponse;
|
|
901
1378
|
permission_list_req?: any;
|
|
902
|
-
|
|
1379
|
+
permission_list?: SocketPermissionList;
|
|
903
1380
|
role_user_req?: any;
|
|
904
|
-
|
|
1381
|
+
role_user_list?: SocketRoleUserList;
|
|
905
1382
|
permission_user_req?: any;
|
|
906
|
-
role_list?:
|
|
1383
|
+
role_list?: SocketRoleList;
|
|
907
1384
|
role_list_event_req?: any;
|
|
908
|
-
role_event_list?:
|
|
1385
|
+
role_event_list?: SocketRoleListEventResponse;
|
|
909
1386
|
user_permission_req?: any;
|
|
910
|
-
user_permission_list?:
|
|
1387
|
+
user_permission_list?: SocketUserPermissionInChannelListResponse;
|
|
911
1388
|
permission_role_req?: any;
|
|
912
|
-
permission_role_list?:
|
|
913
|
-
|
|
1389
|
+
permission_role_list?: SocketPermissionRoleChannelListEventResponse;
|
|
1390
|
+
emoji_list?: SocketEmojiListedResponse;
|
|
914
1391
|
list_friend_req?: any;
|
|
915
|
-
friend_list?:
|
|
1392
|
+
friend_list?: SocketFriendList;
|
|
916
1393
|
list_apps_req?: any;
|
|
917
|
-
channel_apps_list?:
|
|
918
|
-
user_activity_list?:
|
|
1394
|
+
channel_apps_list?: SocketListChannelAppsResponse;
|
|
1395
|
+
user_activity_list?: SocketListUserActivity;
|
|
919
1396
|
}
|
|
920
1397
|
/** A socket connection to Mezon server. */
|
|
921
1398
|
export interface Socket {
|
|
@@ -926,60 +1403,60 @@ export interface Socket {
|
|
|
926
1403
|
/** Disconnect from the server. */
|
|
927
1404
|
disconnect(fireDisconnectEvent: boolean): void;
|
|
928
1405
|
/** Subscribe to one or more users for their status updates. */
|
|
929
|
-
followUsers(
|
|
1406
|
+
followUsers(user_ids: string[]): Promise<Status>;
|
|
930
1407
|
/** Join clan chat */
|
|
931
|
-
joinClanChat(
|
|
1408
|
+
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
|
932
1409
|
follower(): Promise<void>;
|
|
933
1410
|
/** Join a chat channel on the server. */
|
|
934
|
-
joinChat(
|
|
1411
|
+
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
|
935
1412
|
/** Leave a chat channel on the server. */
|
|
936
|
-
leaveChat(
|
|
1413
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
|
|
937
1414
|
/** handle user join/leave channel voice on the server. */
|
|
938
|
-
handleParticipantMeetState(
|
|
1415
|
+
handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number, room_name: string): Promise<void>;
|
|
939
1416
|
/** Remove a chat message from a chat channel on the server. */
|
|
940
|
-
removeChatMessage(
|
|
1417
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: Uint8Array, references?: Uint8Array): Promise<ChannelMessageAck>;
|
|
941
1418
|
/** Execute an RPC function to the server. */
|
|
942
|
-
rpc(id?: string, payload?: string,
|
|
1419
|
+
rpc(id?: string, payload?: string, http_key?: string): Promise<SocketRpc>;
|
|
943
1420
|
/** Unfollow one or more users from their status updates. */
|
|
944
|
-
unfollowUsers(
|
|
1421
|
+
unfollowUsers(user_ids: string[]): Promise<void>;
|
|
945
1422
|
/** Update a chat message on a chat channel in the server. */
|
|
946
|
-
updateChatMessage(
|
|
1423
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hide_editted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
|
|
947
1424
|
/** Update the status for the current user online. */
|
|
948
1425
|
updateStatus(status?: string): Promise<void>;
|
|
949
1426
|
/** Send a chat message to a chat channel on the server. */
|
|
950
|
-
writeChatMessage(
|
|
1427
|
+
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, code?: number, topic_id?: string, id?: string): Promise<ChannelMessageAck>;
|
|
951
1428
|
/** Send a chat message to a chat channel on the server. */
|
|
952
|
-
writeEphemeralMessage(
|
|
1429
|
+
writeEphemeralMessage(receiver_id: string, 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, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
|
|
953
1430
|
/** Send a quick menu event to a chat channel on the server. */
|
|
954
|
-
writeQuickMenuEvent(
|
|
1431
|
+
writeQuickMenuEvent(menu_name: string, 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, code?: number, topic_id?: string, id?: string): Promise<QuickMenuEvent>;
|
|
955
1432
|
/** Send message typing */
|
|
956
|
-
writeMessageTyping(
|
|
1433
|
+
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
|
|
957
1434
|
/** Send message reaction */
|
|
958
|
-
writeMessageReaction(id: string,
|
|
1435
|
+
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, topic_id?: string, emoji_recent_id?: string, sender_name?: string): Promise<ApiMessageReaction>;
|
|
959
1436
|
/** Send last seen message */
|
|
960
|
-
writeLastSeenMessage(
|
|
1437
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
|
961
1438
|
/** Send last pin message */
|
|
962
|
-
writeLastPinMessage(
|
|
1439
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
|
|
963
1440
|
/** Send custom user status */
|
|
964
|
-
writeCustomStatus(
|
|
965
|
-
writeActiveArchivedThread(
|
|
1441
|
+
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
1442
|
+
writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
|
|
966
1443
|
setHeartbeatTimeoutMs(ms: number): void;
|
|
967
1444
|
getHeartbeatTimeoutMs(): number;
|
|
968
1445
|
onreconnect: (evt: Event) => void;
|
|
969
|
-
checkDuplicateName(name: string, condition_id: string, type: number,
|
|
970
|
-
handleMessageButtonClick: (
|
|
971
|
-
handleDropdownBoxSelected: (
|
|
972
|
-
writeVoiceReaction: (emojis: Array<string>,
|
|
973
|
-
forwardWebrtcSignaling: (
|
|
974
|
-
makeCallPush: (
|
|
975
|
-
writeChannelAppEvent: (
|
|
1446
|
+
checkDuplicateName(name: string, condition_id: string, type: number, clan_id: string): Promise<CheckNameExistedEvent>;
|
|
1447
|
+
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string) => Promise<MessageButtonClicked>;
|
|
1448
|
+
handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
|
|
1449
|
+
writeVoiceReaction: (emojis: Array<string>, channel_id: string) => Promise<VoiceReactionSend>;
|
|
1450
|
+
forwardWebrtcSignaling: (receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
|
1451
|
+
makeCallPush: (receiver_id: string, json_data: string, channel_id: string, caller_id: string) => Promise<IncomingCallPush>;
|
|
1452
|
+
writeChannelAppEvent: (clan_id: string, channel_id: string, action: number) => Promise<ChannelAppEvent>;
|
|
976
1453
|
listDataSocket(request: ListDataSocket): Promise<any>;
|
|
977
1454
|
/** Handle disconnect events received from the socket. */
|
|
978
1455
|
ondisconnect: (evt: Event) => void;
|
|
979
1456
|
/** Handle error events received from the socket. */
|
|
980
1457
|
onerror: (evt: Event) => void;
|
|
981
1458
|
/** Receive notifications from the socket. */
|
|
982
|
-
onnotification: (notification:
|
|
1459
|
+
onnotification: (notification: SocketNotification) => void;
|
|
983
1460
|
/** Receive status presence updates. */
|
|
984
1461
|
onstatuspresence: (statusPresence: StatusPresenceEvent) => void;
|
|
985
1462
|
/** Receive stream presence updates. */
|
|
@@ -996,7 +1473,7 @@ export interface Socket {
|
|
|
996
1473
|
oncustomstatus: (statusEvent: CustomStatusEvent) => void;
|
|
997
1474
|
oncanvasevent: (canvasEvent: ChannelCanvas) => void;
|
|
998
1475
|
/** Receive channel message. */
|
|
999
|
-
onchannelmessage: (channelMessage:
|
|
1476
|
+
onchannelmessage: (channelMessage: SocketChannelMessage) => void;
|
|
1000
1477
|
/** Receive typing event */
|
|
1001
1478
|
onmessagetyping: (messageTypingEvent: MessageTypingEvent) => void;
|
|
1002
1479
|
/** Receive reaction event */
|
|
@@ -1040,11 +1517,11 @@ export interface Socket {
|
|
|
1040
1517
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
|
1041
1518
|
onvoicereactionmessage: (event: VoiceReactionSend) => void;
|
|
1042
1519
|
onmarkasread: (event: MarkAsRead) => void;
|
|
1043
|
-
oneventcreated: (clan_event_created:
|
|
1044
|
-
oncoffeegiven: (give_coffee_event:
|
|
1520
|
+
oneventcreated: (clan_event_created: SocketCreateEventRequest) => void;
|
|
1521
|
+
oncoffeegiven: (give_coffee_event: SocketGiveCoffeeEvent) => void;
|
|
1045
1522
|
oneventemoji: (event_emoji: EventEmoji) => void;
|
|
1046
|
-
oneventnotiuserchannel: (noti_user_channel:
|
|
1047
|
-
oneventwebhook: (webhook_event:
|
|
1523
|
+
oneventnotiuserchannel: (noti_user_channel: SocketNotificationUserChannel) => void;
|
|
1524
|
+
oneventwebhook: (webhook_event: SocketWebhook) => void;
|
|
1048
1525
|
onroleassign: (role_assign_event: RoleAssignedEvent) => void;
|
|
1049
1526
|
ondeleteaccount: (delete_account_event: DeleteAccountEvent) => void;
|
|
1050
1527
|
onmeetparticipantevent: (event: MeetParticipantEvent) => void;
|
|
@@ -1056,7 +1533,7 @@ export interface Socket {
|
|
|
1056
1533
|
onpermissionset: (permission_set_event: PermissionSet) => void;
|
|
1057
1534
|
onpermissionchanged: (permission_changed_event: PermissionChangedEvent) => void;
|
|
1058
1535
|
onunmuteevent: (unmute_event: UnmuteEvent) => void;
|
|
1059
|
-
ontokensent: (token:
|
|
1536
|
+
ontokensent: (token: SocketTokenSentEvent) => void;
|
|
1060
1537
|
onactivityupdated: (list_activity: ListActivity) => void;
|
|
1061
1538
|
onsdtopicevent: (sd_topic_event: SdTopicEvent) => void;
|
|
1062
1539
|
onchannelappevent: (event: ChannelAppEvent) => void;
|
|
@@ -1109,7 +1586,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
1109
1586
|
onerror(evt: Event): void;
|
|
1110
1587
|
onmessagetyping(messagetyping: MessageTypingEvent): void;
|
|
1111
1588
|
onmessagereaction(messagereaction: ApiMessageReaction): void;
|
|
1112
|
-
onchannelmessage(channelMessage:
|
|
1589
|
+
onchannelmessage(channelMessage: SocketChannelMessage): void;
|
|
1113
1590
|
onchannelpresence(channelPresence: ChannelPresenceEvent): void;
|
|
1114
1591
|
onuserchanneladded(user: UserChannelAddedEvent): void;
|
|
1115
1592
|
onuserclanadded(user: AddClanUserEvent): void;
|
|
@@ -1120,7 +1597,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
1120
1597
|
onblockfriend(user: BlockFriend): void;
|
|
1121
1598
|
onunblockfriend(user: UnblockFriend): void;
|
|
1122
1599
|
onuserclanremoved(user: UserClanRemovedEvent): void;
|
|
1123
|
-
onnotification(notification:
|
|
1600
|
+
onnotification(notification: SocketNotification): void;
|
|
1124
1601
|
onstatuspresence(statusPresence: StatusPresenceEvent): void;
|
|
1125
1602
|
onpinmessage(pin: LastPinMessageEvent): void;
|
|
1126
1603
|
onvoiceended(voice: VoiceEndedEvent): void;
|
|
@@ -1131,8 +1608,8 @@ export declare class DefaultSocket implements Socket {
|
|
|
1131
1608
|
oncategoryevent(categoryEvent: CategoryEvent): void;
|
|
1132
1609
|
onroleevent(roleEvent: RoleEvent): void;
|
|
1133
1610
|
oneventemoji(eventEmoji: EventEmoji): void;
|
|
1134
|
-
oneventnotiuserchannel(notiUserChannel:
|
|
1135
|
-
oneventwebhook(webhook_event:
|
|
1611
|
+
oneventnotiuserchannel(notiUserChannel: SocketNotificationUserChannel): void;
|
|
1612
|
+
oneventwebhook(webhook_event: SocketWebhook): void;
|
|
1136
1613
|
onchanneldeleted(channelDeleted: ChannelDeletedEvent): void;
|
|
1137
1614
|
onclandeleted(clanDeleted: ClanDeletedEvent): void;
|
|
1138
1615
|
onstickercreated(stickerCreated: StickerCreateEvent): void;
|
|
@@ -1148,8 +1625,8 @@ export declare class DefaultSocket implements Socket {
|
|
|
1148
1625
|
onheartbeattimeout(): void;
|
|
1149
1626
|
oncustomstatus(statusEvent: CustomStatusEvent): void;
|
|
1150
1627
|
oncanvasevent(canvasEvent: ChannelCanvas): void;
|
|
1151
|
-
oneventcreated(clan_event_created:
|
|
1152
|
-
oncoffeegiven(give_coffee_event:
|
|
1628
|
+
oneventcreated(clan_event_created: SocketCreateEventRequest): void;
|
|
1629
|
+
oncoffeegiven(give_coffee_event: SocketGiveCoffeeEvent): void;
|
|
1153
1630
|
onroleassign(role_assign_event: RoleAssignedEvent): void;
|
|
1154
1631
|
onstreamingchannelstarted(streaming_started_event: StreamingStartedEvent): void;
|
|
1155
1632
|
onstreamingchannelended(streaming_ended_event: StreamingEndedEvent): void;
|
|
@@ -1158,7 +1635,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
1158
1635
|
onpermissionset(permission_set_event: PermissionSet): void;
|
|
1159
1636
|
onpermissionchanged(permission_changed_event: PermissionChangedEvent): void;
|
|
1160
1637
|
onunmuteevent(unmute_event: UnmuteEvent): void;
|
|
1161
|
-
ontokensent(tokenSentEvent:
|
|
1638
|
+
ontokensent(tokenSentEvent: SocketTokenSentEvent): void;
|
|
1162
1639
|
onmessagebuttonclicked(messageButtonClicked: MessageButtonClicked): void;
|
|
1163
1640
|
onmessagedropdownboxselected(msg: DropdownBoxSelected): void;
|
|
1164
1641
|
onmarkasread(event: MarkAsRead): void;
|
|
@@ -1177,32 +1654,32 @@ export declare class DefaultSocket implements Socket {
|
|
|
1177
1654
|
onallowanonymousevent(event: AllowAnonymousEvent): void;
|
|
1178
1655
|
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | IncomingCallPush | MessageButtonClicked | DropdownBoxSelected | ChannelAppEvent | EphemeralMessageSend | VoiceReactionSend | ListDataSocket | QuickMenuEvent, sendTimeout?: number): Promise<any>;
|
|
1179
1656
|
followUsers(userIds: string[]): Promise<Status>;
|
|
1180
|
-
joinClanChat(
|
|
1657
|
+
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
|
1181
1658
|
follower(): Promise<void>;
|
|
1182
|
-
joinChat(
|
|
1183
|
-
handleParticipantMeetState(
|
|
1184
|
-
leaveChat(
|
|
1185
|
-
removeChatMessage(
|
|
1186
|
-
rpc(id?: string, payload?: string,
|
|
1187
|
-
unfollowUsers(
|
|
1188
|
-
updateChatMessage(
|
|
1659
|
+
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
|
1660
|
+
handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number, room_name: string): Promise<void>;
|
|
1661
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
|
|
1662
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: Uint8Array, references?: Uint8Array): Promise<ChannelMessageAck>;
|
|
1663
|
+
rpc(id?: string, payload?: string, http_key?: string): Promise<SocketRpc>;
|
|
1664
|
+
unfollowUsers(user_ids: string[]): Promise<void>;
|
|
1665
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hide_editted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
|
|
1189
1666
|
updateStatus(status?: string): Promise<void>;
|
|
1190
|
-
writeQuickMenuEvent(
|
|
1191
|
-
writeEphemeralMessage(
|
|
1192
|
-
writeChatMessage(
|
|
1193
|
-
writeMessageReaction(id: string,
|
|
1194
|
-
writeMessageTyping(
|
|
1195
|
-
writeLastSeenMessage(
|
|
1196
|
-
writeLastPinMessage(
|
|
1197
|
-
writeCustomStatus(
|
|
1198
|
-
writeActiveArchivedThread(
|
|
1199
|
-
checkDuplicateName(name: string, condition_id: string, type: number,
|
|
1200
|
-
writeVoiceReaction(emojis: Array<string>,
|
|
1201
|
-
forwardWebrtcSignaling(
|
|
1202
|
-
makeCallPush(
|
|
1203
|
-
handleDropdownBoxSelected(
|
|
1204
|
-
handleMessageButtonClick(
|
|
1205
|
-
writeChannelAppEvent(
|
|
1667
|
+
writeQuickMenuEvent(menu_name: string, 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, code?: number, topic_id?: string): Promise<QuickMenuEvent>;
|
|
1668
|
+
writeEphemeralMessage(receiver_id: string, 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, code?: number, topic_id?: string, id?: string): Promise<ChannelMessageAck>;
|
|
1669
|
+
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, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
|
|
1670
|
+
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, topic_id?: string, emoji_recent_id?: string, sender_name?: string): Promise<ApiMessageReaction>;
|
|
1671
|
+
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
|
|
1672
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
|
1673
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
|
|
1674
|
+
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
1675
|
+
writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
|
|
1676
|
+
checkDuplicateName(name: string, condition_id: string, type: number, clan_id: string): Promise<CheckNameExistedEvent>;
|
|
1677
|
+
writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
|
|
1678
|
+
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
|
1679
|
+
makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
|
|
1680
|
+
handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
|
|
1681
|
+
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
|
|
1682
|
+
writeChannelAppEvent(clan_id: string, channel_id: string, action: number): Promise<ChannelAppEvent>;
|
|
1206
1683
|
listDataSocket(request: ListDataSocket): Promise<any>;
|
|
1207
1684
|
private pingPong;
|
|
1208
1685
|
private startHeartbeatLoop;
|