mezon-js 2.13.78 → 2.13.80

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.
Files changed (38) hide show
  1. package/client.ts +3279 -2482
  2. package/dist/client.d.ts +163 -349
  3. package/dist/gateway.api.d.ts +33 -0
  4. package/dist/index.d.ts +2 -4
  5. package/dist/{api.gen.d.ts → mezon-js/api.gen.d.ts} +1 -0
  6. package/dist/mezon-js/client.d.ts +347 -0
  7. package/dist/mezon-js/gateway.api.d.ts +33 -0
  8. package/dist/mezon-js/index.d.ts +23 -0
  9. package/dist/mezon-js/session.d.ts +61 -0
  10. package/dist/mezon-js/socket.d.ts +1212 -0
  11. package/dist/mezon-js/types/index.d.ts +2212 -0
  12. package/dist/mezon-js/utils.d.ts +6 -0
  13. package/dist/mezon-js/web_socket_adapter.d.ts +83 -0
  14. package/dist/mezon-js.cjs.js +9038 -21145
  15. package/dist/mezon-js.esm.mjs +9038 -21145
  16. package/dist/mezon-js.esm.mjs.map +1 -0
  17. package/dist/session.d.ts +11 -11
  18. package/dist/socket.d.ts +385 -386
  19. package/dist/types/index.d.ts +2212 -0
  20. package/dist/utils.d.ts +2 -0
  21. package/dist/webrpc/index.d.ts +3 -0
  22. package/gateway.api.ts +577 -0
  23. package/index.ts +2 -5
  24. package/package.json +3 -2
  25. package/rollup.config.js +64 -30
  26. package/session.ts +22 -22
  27. package/socket.ts +921 -846
  28. package/types/index.ts +3883 -0
  29. package/utils.ts +107 -47
  30. package/api/api.ts +0 -39185
  31. package/api.gen.ts +0 -11777
  32. package/google/protobuf/struct.ts +0 -554
  33. package/google/protobuf/timestamp.ts +0 -223
  34. package/google/protobuf/wrappers.ts +0 -670
  35. /package/dist/{api → mezon-js/api}/api.d.ts +0 -0
  36. /package/dist/{google → mezon-js/google}/protobuf/struct.d.ts +0 -0
  37. /package/dist/{google → mezon-js/google}/protobuf/timestamp.d.ts +0 -0
  38. /package/dist/{google → mezon-js/google}/protobuf/wrappers.d.ts +0 -0
package/dist/socket.d.ts CHANGED
@@ -13,24 +13,23 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiAllUsersAddChannelResponse, ApiChannelAttachmentList, ApiChannelDescList, ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiChannelMessageList, ApiChannelSettingListResponse, ApiChannelUserList, ApiClanDescList, ApiCreateEventRequest, ApiEmojiListedResponse, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiListClanWebhookResponse, ApiListFavoriteChannelResponse, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationChannel, ApiNotificationChannelCategorySettingList, ApiNotificationList, ApiNotificationSetting, ApiNotificationUserChannel, ApiNotifiReactMessage, ApiPermissionList, ApiPermissionRoleChannelListEventResponse, ApiPermissionUpdate, ApiRole, ApiRoleList, ApiRoleListEventResponse, ApiRoleUserList, ApiRpc, ApiStickerListedResponse, ApiTokenSentEvent, ApiUserActivity, ApiUserPermissionInChannelListResponse, ApiVoiceChannelUserList, ApiWebhook, ApiWebhookListResponse, ApiEmojiRecentList, ApiFriendList, ApiListChannelAppsResponse, ApiListUserActivity, ApiListClanUnreadMsgIndicatorResponse } from "./api.gen";
16
+ import { ApiAllUsersAddChannelResponse, ApiChannelAttachmentList, ApiChannelDescList, ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiChannelMessageList, ApiChannelSettingListResponse, ApiChannelUserList, ApiClanDescList, ApiCreateEventRequest, ApiEmojiListedResponse, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiListClanWebhookResponse, ApiListFavoriteChannelResponse, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationChannel, ApiNotificationChannelCategorySettingList, ApiNotificationList, ApiNotificationSetting, ApiNotificationUserChannel, ApiNotifiReactMessage, ApiPermissionList, ApiPermissionRoleChannelListEventResponse, ApiPermissionUpdate, ApiRole, ApiRoleList, ApiRoleListEventResponse, ApiRoleUserList, ApiRpc, ApiStickerListedResponse, ApiTokenSentEvent, ApiUserActivity, ApiUserPermissionInChannelListResponse, ApiVoiceChannelUserList, ApiWebhook, ApiWebhookListResponse, ApiEmojiRecentList, ApiFriendList, ApiListChannelAppsResponse, ApiListUserActivity, ApiListClanUnreadMsgIndicatorResponse, ChannelMessage } from "./types";
17
17
  import { Session } from "./session";
18
- import { ChannelMessage } from "./client";
19
18
  import { WebSocketAdapter } from "./web_socket_adapter";
20
19
  /** An object which represents a connected user in the server. */
21
20
  export interface Presence {
22
21
  /** The id of the user. */
23
- user_id: string;
22
+ userId: string;
24
23
  /** The session id of the user. */
25
- session_id: string;
24
+ sessionId: string;
26
25
  /** The username of the user. */
27
26
  username: string;
28
27
  /** The node the user is connected to. */
29
28
  node: string;
30
29
  /** The status of the user */
31
30
  status: string;
32
- is_mobile: boolean;
33
- user_status: string;
31
+ isMobile: boolean;
32
+ userStatus: string;
34
33
  }
35
34
  export interface NotificationInfo {
36
35
  /** Category code for this notification. */
@@ -38,190 +37,190 @@ export interface NotificationInfo {
38
37
  /** Content of the notification in JSON. */
39
38
  content?: {};
40
39
  /** The UNIX time when the notification was created. */
41
- create_time?: string;
40
+ createTime?: string;
42
41
  /** ID of the Notification. */
43
42
  id?: string;
44
43
  /** True if this notification was persisted to the database. */
45
44
  persistent?: boolean;
46
45
  /** ID of the sender, if a user. Otherwise 'null'. */
47
- sender_id?: string;
46
+ senderId?: string;
48
47
  /** Subject of the notification. */
49
48
  subject?: string;
50
- channel_id?: string;
51
- clan_id?: string;
49
+ channelId?: string;
50
+ clanId?: string;
52
51
  channel?: ApiChannelDescription;
53
- topic_id?: string;
52
+ topicId?: string;
54
53
  }
55
54
  /** A response from a channel join operation. */
56
55
  export interface Channel {
57
56
  /** The server-assigned channel id. */
58
57
  id: string;
59
- chanel_label: string;
58
+ channelLabel: string;
60
59
  /** The presences visible on the chat channel. */
61
60
  presences: Presence[];
62
61
  /** The presence of the current user, i.e. yourself. */
63
62
  self: Presence;
64
- clan_logo: string;
65
- category_name: string;
63
+ clanLogo: string;
64
+ categoryName: string;
66
65
  }
67
66
  export interface ClanJoin {
68
- clan_join: {
69
- clan_id: string;
67
+ clanJoin: {
68
+ clanId: string;
70
69
  };
71
70
  }
72
71
  /** Join a realtime chat channel. */
73
72
  interface ChannelJoin {
74
- channel_join: {
73
+ channelJoin: {
75
74
  /** The id of the channel to join. */
76
- channel_id: string;
75
+ channelId: string;
77
76
  /** The name of the channel to join. */
78
- channel_label: string;
77
+ channelLabel: string;
79
78
  /** The channel type: 1 = Channel, 2 = Direct Message, 3 = Group. */
80
79
  type: number;
81
80
  /** Whether channel messages are persisted in the database. */
82
81
  persistence: boolean;
83
82
  /** Whether the user's channel presence is hidden when joining. */
84
83
  hidden: boolean;
85
- is_public: boolean;
84
+ isPublic: boolean;
86
85
  };
87
86
  }
88
87
  /** Leave a realtime chat channel. */
89
88
  interface ChannelLeave {
90
- channel_leave: {
89
+ channelLeave: {
91
90
  /** The id of the channel to leave. */
92
- channel_id: string;
91
+ channelId: string;
93
92
  mode: number;
94
- channel_label: string;
95
- is_public: boolean;
93
+ channelLabel: string;
94
+ isPublic: boolean;
96
95
  };
97
96
  }
98
97
  export interface AddClanUserEvent {
99
- clan_id: string;
98
+ clanId: string;
100
99
  user: UserProfileRedis;
101
100
  invitor: string;
102
101
  }
103
102
  export interface BannedUserEvent {
104
- user_ids: Array<string>;
103
+ userIds: Array<string>;
105
104
  action: number;
106
- banner_id: string;
107
- channel_id: string;
108
- clan_id: string;
109
- ban_time: number;
105
+ bannerId: string;
106
+ channelId: string;
107
+ clanId: string;
108
+ banTime: number;
110
109
  }
111
110
  export interface UserProfileRedis {
112
111
  /** User IDs to follow. */
113
- user_id: string;
112
+ userId: string;
114
113
  /** Username to follow. */
115
114
  username: string;
116
115
  /** Avatar to follow. */
117
116
  avatar: string;
118
117
  /** Display name */
119
- display_name: string;
118
+ displayName: string;
120
119
  /** custom status */
121
- custom_status: string;
120
+ customStatus: string;
122
121
  /** online */
123
122
  online: boolean;
124
- create_time_second: number;
123
+ createTimeSecond: number;
125
124
  /** clans */
126
- joined_clans: number[];
127
- app_url: string;
128
- is_bot: boolean;
125
+ joinedClans: number[];
126
+ appUrl: string;
127
+ isBot: boolean;
129
128
  }
130
129
  /** UserChannelAddedEvent */
131
130
  export interface UserChannelAddedEvent {
132
- channel_desc: ChannelDescription;
131
+ channelDesc: ChannelDescription;
133
132
  users: UserProfileRedis[];
134
133
  status: string;
135
- clan_id: string;
134
+ clanId: string;
136
135
  caller: UserProfileRedis;
137
- create_time_second: number;
136
+ createTimeSecond: number;
138
137
  active: number;
139
138
  }
140
139
  export interface UserChannelRemovedEvent {
141
- channel_id: string;
142
- user_ids: string[];
143
- channel_type: number;
144
- clan_id: string;
145
- badge_counts: number[];
140
+ channelId: string;
141
+ userIds: string[];
142
+ channelType: number;
143
+ clanId: string;
144
+ badgeCounts: number[];
146
145
  }
147
146
  export interface UserClanRemovedEvent {
148
- clan_id: string;
149
- user_ids: string[];
147
+ clanId: string;
148
+ userIds: string[];
150
149
  }
151
150
  /** Last seen message by user */
152
151
  export interface LastPinMessageEvent {
153
152
  /** The channel this message belongs to. */
154
- channel_id: string;
153
+ channelId: string;
155
154
  mode: number;
156
- channel_label: string;
155
+ channelLabel: string;
157
156
  /** The unique ID of this message. */
158
- message_id: string;
157
+ messageId: string;
159
158
  /** user id */
160
- user_id: string;
159
+ userId: string;
161
160
  /** operation */
162
161
  operation: number;
163
- is_public: boolean;
164
- clan_id: string;
165
- message_sender_avatar: string;
166
- message_sender_id: string;
167
- message_sender_username: string;
168
- message_content: string;
169
- message_attachment: string;
170
- message_created_time: string;
162
+ isPublic: boolean;
163
+ clanId: string;
164
+ messageSenderAvatar: string;
165
+ messageSenderId: string;
166
+ messageSenderUsername: string;
167
+ messageContent: string;
168
+ messageAttachment: string;
169
+ messageCreatedTime: string;
171
170
  }
172
171
  export interface UnmuteEvent {
173
- channel_id: string;
174
- category_id: string;
175
- clan_id: string;
172
+ channelId: string;
173
+ categoryId: string;
174
+ clanId: string;
176
175
  }
177
176
  /** Last seen message by user */
178
177
  export interface LastSeenMessageEvent {
179
- clan_id: string;
178
+ clanId: string;
180
179
  /** The channel this message belongs to. */
181
- channel_id: string;
180
+ channelId: string;
182
181
  mode: number;
183
- channel_label: string;
182
+ channelLabel: string;
184
183
  /** The unique ID of this message. */
185
- message_id: string;
186
- badge_count: number;
184
+ messageId: string;
185
+ badgeCount: number;
187
186
  }
188
187
  /** User is typing */
189
188
  export interface MessageTypingEvent {
190
189
  /** The channel this message belongs to. */
191
- channel_id: string;
190
+ channelId: string;
192
191
  mode: number;
193
- channel_label: string;
192
+ channelLabel: string;
194
193
  /** Message sender, usually a user ID. */
195
- sender_id: string;
196
- is_public: boolean;
197
- sender_username: string;
198
- sender_display_name: string;
199
- topic_id?: string;
194
+ senderId: string;
195
+ isPublic: boolean;
196
+ senderUsername: string;
197
+ senderDisplayName: string;
198
+ topicId?: string;
200
199
  }
201
200
  export interface UserProfileUpdatedEvent {
202
- user_id: string;
203
- display_name: string;
201
+ userId: string;
202
+ displayName: string;
204
203
  avatar: string;
205
- about_me: string;
206
- channel_id: string;
207
- clan_id: string;
208
- encrypt_private_key: string;
204
+ aboutMe: string;
205
+ channelId: string;
206
+ clanId: string;
207
+ encryptPrivateKey: string;
209
208
  }
210
209
  /** An acknowledgement received in response to sending a message on a chat channel. */
211
210
  export interface ChannelMessageAck {
212
211
  /** The server-assigned channel ID. */
213
- channel_id: string;
212
+ channelId: string;
214
213
  mode: number;
215
214
  /** A unique ID for the chat message. */
216
- message_id: string;
215
+ messageId: string;
217
216
  /** A user-defined code for the chat message. */
218
217
  code: number;
219
218
  /** The username of the sender of the message. */
220
219
  username: string;
221
220
  /** The UNIX time when the message was created. */
222
- create_time: string;
221
+ createTime: string;
223
222
  /** The UNIX time when the message was updated. */
224
- update_time: string;
223
+ updateTime: string;
225
224
  /** True if the chat message has been stored in history. */
226
225
  persistence: boolean;
227
226
  }
@@ -229,71 +228,71 @@ export interface ChannelMessageAck {
229
228
  interface ChannelMessageSend {
230
229
  channel_message_send: {
231
230
  /** Clan Id */
232
- clan_id: string;
231
+ clanId: string;
233
232
  /** The server-assigned channel ID. */
234
- channel_id: string;
233
+ channelId: string;
235
234
  mode: number;
236
- channel_label: string;
235
+ channelLabel: string;
237
236
  /** The content payload. */
238
237
  content: any;
239
238
  mentions?: Array<ApiMessageMention>;
240
239
  attachments?: Array<ApiMessageAttachment>;
241
- anonymous_message?: boolean;
242
- mention_everyone?: boolean;
240
+ anonymousMessage?: boolean;
241
+ mentionEveryone?: boolean;
243
242
  avatar: string;
244
- is_public: boolean;
243
+ isPublic: boolean;
245
244
  code: number;
246
- topic_id?: string;
245
+ topicId?: string;
247
246
  };
248
247
  }
249
248
  interface TransferOwnershipEvent {
250
- clan_id: string;
251
- prev_owner: string;
252
- curr_owner: string;
249
+ clanId: string;
250
+ prevOwner: string;
251
+ currOwner: string;
253
252
  }
254
253
  interface QuickMenuEvent {
255
254
  quick_menu_event: {
256
- menu_name: string;
255
+ menuName: string;
257
256
  message: {
258
257
  /** Clan Id */
259
- clan_id: string;
258
+ clanId: string;
260
259
  /** The server-assigned channel ID. */
261
- channel_id: string;
260
+ channelId: string;
262
261
  mode: number;
263
- channel_label: string;
262
+ channelLabel: string;
264
263
  /** The content payload. */
265
264
  content: any;
266
265
  mentions?: Array<ApiMessageMention>;
267
266
  attachments?: Array<ApiMessageAttachment>;
268
- anonymous_message?: boolean;
269
- mention_everyone?: boolean;
267
+ anonymousMessage?: boolean;
268
+ mentionEveryone?: boolean;
270
269
  avatar: string;
271
- is_public: boolean;
270
+ isPublic: boolean;
272
271
  code: number;
273
- topic_id?: string;
272
+ topicId?: string;
274
273
  };
275
274
  };
276
275
  }
277
276
  interface EphemeralMessageSend {
278
277
  ephemeral_message_send: {
279
- receiver_id: string;
278
+ receiverId: string;
280
279
  message: {
281
280
  /** Clan Id */
282
- clan_id: string;
281
+ clanId: string;
283
282
  /** The server-assigned channel ID. */
284
- channel_id: string;
283
+ channelId: string;
285
284
  mode: number;
286
- channel_label: string;
285
+ channelLabel: string;
287
286
  /** The content payload. */
288
287
  content: any;
289
288
  mentions?: Array<ApiMessageMention>;
290
289
  attachments?: Array<ApiMessageAttachment>;
291
- anonymous_message?: boolean;
292
- mention_everyone?: boolean;
290
+ anonymousMessage?: boolean;
291
+ mentionEveryone?: boolean;
293
292
  avatar: string;
294
- is_public: boolean;
293
+ isPublic: boolean;
295
294
  code: number;
296
- topic_id?: string;
295
+ topicId?: string;
297
296
  };
298
297
  };
299
298
  }
@@ -301,9 +300,9 @@ interface EphemeralMessageSend {
301
300
  interface ChannelMessageUpdate {
302
301
  channel_message_update: {
303
302
  /** The server-assigned channel ID. */
304
- channel_id: string;
303
+ channelId: string;
305
304
  /** A unique ID for the chat message to be updated. */
306
- message_id: string;
305
+ messageId: string;
307
306
  /** The content payload. */
308
307
  content: any;
309
308
  /** mentions */
@@ -312,27 +311,27 @@ interface ChannelMessageUpdate {
312
311
  attachments?: Array<ApiMessageAttachment>;
313
312
  /** The mode payload. */
314
313
  mode: number;
315
- is_public: boolean;
316
- topic_id?: string;
317
- is_update_msg_topic?: boolean;
318
- old_mentions?: string;
314
+ isPublic: boolean;
315
+ topicId?: string;
316
+ isUpdateMsgTopic?: boolean;
317
+ oldMentions?: string;
319
318
  };
320
319
  }
321
320
  /** Remove a message previously sent to a realtime chat channel. */
322
321
  interface ChannelMessageRemove {
323
322
  channel_message_remove: {
324
323
  /** The clan id */
325
- clan_id: string;
324
+ clanId: string;
326
325
  /** The server-assigned channel ID. */
327
- channel_id: string;
326
+ channelId: string;
328
327
  mode: number;
329
- channel_label: string;
328
+ channelLabel: string;
330
329
  /** A unique ID for the chat message to be removed. */
331
- message_id: string;
332
- is_public: boolean;
330
+ messageId: string;
331
+ isPublic: boolean;
333
332
  /** attachments */
334
- has_attachment?: boolean;
335
- topic_id?: string;
333
+ hasAttachment?: boolean;
334
+ topicId?: string;
336
335
  mentions: string;
337
336
  references: string;
338
337
  };
@@ -340,8 +339,8 @@ interface ChannelMessageRemove {
340
339
  /** Presence update for a particular realtime chat channel. */
341
340
  export interface ChannelPresenceEvent {
342
341
  /** The unique identifier of the chat channel. */
343
- channel_id: string;
344
- channel_label: string;
342
+ channelId: string;
343
+ channelLabel: string;
345
344
  mode: number;
346
345
  /** Presences of the users who joined the channel. */
347
346
  joins: Presence[];
@@ -350,151 +349,151 @@ export interface ChannelPresenceEvent {
350
349
  }
351
350
  export interface VoiceEndedEvent {
352
351
  id: string;
353
- clan_id: string;
354
- voice_channel_id: string;
352
+ clanId: string;
353
+ voiceChannelId: string;
355
354
  }
356
355
  export interface VoiceStartedEvent {
357
356
  id: string;
358
- clan_id: string;
359
- voice_channel_id: string;
357
+ clanId: string;
358
+ voiceChannelId: string;
360
359
  }
361
360
  export interface VoiceLeavedEvent {
362
361
  id: string;
363
- clan_id: string;
364
- voice_channel_id: string;
365
- voice_user_id: string;
362
+ clanId: string;
363
+ voiceChannelId: string;
364
+ voiceUserId: string;
366
365
  }
367
366
  export interface VoiceJoinedEvent {
368
367
  /** The unique identifier of the chat channel. */
369
- clan_id: string;
370
- clan_name: string;
368
+ clanId: string;
369
+ clanName: string;
371
370
  id: string;
372
371
  participant: string;
373
- user_id: string;
374
- voice_channel_label: string;
375
- voice_channel_id: string;
376
- last_screenshot: string;
372
+ userId: string;
373
+ voiceChannelLabel: string;
374
+ voiceChannelId: string;
375
+ lastScreenshot: string;
377
376
  }
378
377
  export interface CustomStatusEvent {
379
- clan_id: string;
380
- user_id: string;
378
+ clanId: string;
379
+ userId: string;
381
380
  username: string;
382
381
  status: string;
383
382
  /** time reset */
384
- time_reset: number;
383
+ timeReset: number;
385
384
  /** no clear */
386
- no_clear: boolean;
385
+ noClear: boolean;
387
386
  }
388
387
  export interface UnpinMessageEvent {
389
388
  id: string;
390
- message_id: string;
391
- channel_id: string;
392
- clan_id: string;
389
+ messageId: string;
390
+ channelId: string;
391
+ clanId: string;
393
392
  }
394
393
  export interface ChannelUpdatedEvent {
395
- clan_id: string;
396
- category_id: string;
397
- creator_id: string;
398
- parent_id: string;
399
- channel_id: string;
400
- channel_label: string;
401
- channel_type: number;
394
+ clanId: string;
395
+ categoryId: string;
396
+ creatorId: string;
397
+ parentId: string;
398
+ channelId: string;
399
+ channelLabel: string;
400
+ channelType: number;
402
401
  status: number;
403
- meeting_code: string;
404
- channel_private: number;
405
- is_error: boolean;
406
- app_id: string;
402
+ meetingCode: string;
403
+ channelPrivate: number;
404
+ isError: boolean;
405
+ appId: string;
407
406
  e2ee: number;
408
407
  topic: string;
409
- age_restricted: number;
410
- is_active_thread: boolean;
408
+ ageRestricted: number;
409
+ isActiveThread: boolean;
411
410
  active: number;
412
- count_mess_unread: number;
413
- role_ids?: Array<string>;
414
- user_ids?: Array<string>;
415
- channel_avatar: string;
411
+ countMessUnread: number;
412
+ roleIds?: Array<string>;
413
+ userIds?: Array<string>;
414
+ channelAvatar: string;
416
415
  }
417
416
  export interface DeleteAccountEvent {
418
- user_id: string;
417
+ userId: string;
419
418
  }
420
419
  export interface ChannelCreatedEvent {
421
- clan_id: string;
422
- category_id: string;
423
- creator_id: string;
424
- parent_id: string;
425
- channel_id: string;
426
- channel_label: string;
427
- channel_private: number;
428
- channel_type: number;
420
+ clanId: string;
421
+ categoryId: string;
422
+ creatorId: string;
423
+ parentId: string;
424
+ channelId: string;
425
+ channelLabel: string;
426
+ channelPrivate: number;
427
+ channelType: number;
429
428
  status: number;
430
- app_id: string;
431
- clan_name: string;
432
- channel_avatar: string;
429
+ appId: string;
430
+ clanName: string;
431
+ channelAvatar: string;
433
432
  }
434
433
  export interface CategoryEvent {
435
- clan_id: string;
434
+ clanId: string;
436
435
  id: string;
437
- creator_id: string;
438
- category_name: string;
436
+ creatorId: string;
437
+ categoryName: string;
439
438
  status: number;
440
439
  }
441
440
  export interface ChannelDeletedEvent {
442
- clan_id: string;
443
- category_id: string;
444
- channel_id: string;
441
+ clanId: string;
442
+ categoryId: string;
443
+ channelId: string;
445
444
  deletor: string;
446
- parent_id: string;
445
+ parentId: string;
447
446
  }
448
447
  export interface StickerCreateEvent {
449
- clan_id: string;
448
+ clanId: string;
450
449
  source: string;
451
450
  shortname: string;
452
451
  category: string;
453
- creator_id: string;
452
+ creatorId: string;
454
453
  sticker_id: string;
455
454
  logo: string;
456
- clan_name: string;
455
+ clanName: string;
457
456
  }
458
457
  export interface StickerUpdateEvent {
459
458
  shortname: string;
460
459
  sticker_id: string;
461
- user_id: string;
460
+ userId: string;
462
461
  }
463
462
  export interface StickerDeleteEvent {
464
463
  sticker_id: string;
465
- user_id: string;
464
+ userId: string;
466
465
  }
467
466
  export interface ClanDeletedEvent {
468
- clan_id: string;
467
+ clanId: string;
469
468
  deletor: string;
470
469
  }
471
470
  export interface ClanUpdatedEvent {
472
- clan_id: string;
473
- clan_name: string;
471
+ clanId: string;
472
+ clanName: string;
474
473
  logo: string;
475
474
  banner: string;
476
475
  status: number;
477
- is_onboarding: boolean;
478
- welcome_channel_id: string;
479
- onboarding_banner: string;
476
+ isOnboarding: boolean;
477
+ welcomeChannelId: string;
478
+ onboardingBanner: string;
480
479
  about: string;
481
- prevent_anonymous: boolean;
480
+ preventAnonymous: boolean;
482
481
  }
483
482
  export interface ClanProfileUpdatedEvent {
484
- user_id: string;
485
- clan_nick: string;
486
- clan_avatar: string;
487
- clan_id: string;
483
+ userId: string;
484
+ clanNick: string;
485
+ clanAvatar: string;
486
+ clanId: string;
488
487
  }
489
488
  export interface MeetParticipantEvent {
490
489
  username: string;
491
- room_name: string;
492
- channel_id: string;
493
- clan_id: string;
490
+ roomName: string;
491
+ channelId: string;
492
+ clanId: string;
494
493
  action: number;
495
494
  }
496
495
  export interface AllowAnonymousEvent {
497
- clan_id: string;
496
+ clanId: string;
498
497
  allow: boolean;
499
498
  }
500
499
  /** Stream identifier */
@@ -544,7 +543,7 @@ export interface Status {
544
543
  interface StatusFollow {
545
544
  /** The IDs of the users to follow. */
546
545
  status_follow: {
547
- user_ids: string[];
546
+ userIds: string[];
548
547
  };
549
548
  }
550
549
  /** A batch of status updates for a given user. */
@@ -557,8 +556,8 @@ export interface StatusPresenceEvent {
557
556
  /** Stop receiving status updates for some set of users. */
558
557
  interface StatusUnfollow {
559
558
  /** The IDs of user to unfollow. */
560
- status_unfollow: {
561
- user_ids: string[];
559
+ statusUnfollow: {
560
+ userIds: string[];
562
561
  };
563
562
  }
564
563
  /** Set the user's own status. */
@@ -569,292 +568,292 @@ interface StatusUpdate {
569
568
  };
570
569
  }
571
570
  export interface CheckNameExistedEvent {
572
- clan_name: string;
571
+ clanName: string;
573
572
  exist: boolean;
574
573
  condition_id: string;
575
574
  type: number;
576
- clan_id: string;
575
+ clanId: string;
577
576
  }
578
577
  /** */
579
578
  export interface ClanSticker {
580
579
  category?: string;
581
- clan_id?: string;
582
- create_time?: string;
583
- creator_id?: string;
580
+ clanId?: string;
581
+ createTime?: string;
582
+ creatorId?: string;
584
583
  id?: string;
585
584
  shortname?: string;
586
585
  source?: string;
587
586
  logo?: string;
588
- clan_name?: string;
589
- is_for_sale?: boolean;
587
+ clanName?: string;
588
+ isForSale?: boolean;
590
589
  }
591
590
  export interface RoleEvent {
592
591
  role: ApiRole;
593
592
  status: number;
594
- user_id: string;
595
- user_add_ids: Array<string>;
596
- user_remove_ids: Array<string>;
597
- active_permission_ids: Array<string>;
598
- remove_permission_ids: Array<string>;
593
+ userId: string;
594
+ userAddIds: Array<string>;
595
+ userRemoveIds: Array<string>;
596
+ activePermissionIds: Array<string>;
597
+ removePermissionIds: Array<string>;
599
598
  }
600
599
  export interface EventEmoji {
601
600
  id: string;
602
- clan_id: string;
603
- short_name: string;
601
+ clanId: string;
602
+ shortName: string;
604
603
  source: string;
605
604
  category: string;
606
605
  action: number;
607
- user_id: string;
606
+ userId: string;
608
607
  logo: string;
609
- clan_name: string;
610
- is_for_sale: boolean;
608
+ clanName: string;
609
+ isForSale: boolean;
611
610
  }
612
611
  /** */
613
612
  export interface ClanEmoji {
614
613
  category?: string;
615
- creator_id?: string;
614
+ creatorId?: string;
616
615
  id?: string;
617
616
  shortname?: string;
618
617
  src?: string;
619
618
  logo?: string;
620
- clan_name?: string;
621
- clan_id?: string;
622
- is_for_sale?: boolean;
619
+ clanName?: string;
620
+ clanId?: string;
621
+ isForSale?: boolean;
623
622
  }
624
623
  /** */
625
624
  export interface ChannelDescription {
626
- clan_id?: string;
627
- channel_id?: string;
625
+ clanId?: string;
626
+ channelId?: string;
628
627
  type?: number;
629
- channel_label?: string;
630
- app_url?: string;
631
- channel_private?: number;
632
- meeting_code?: string;
633
- clan_name?: string;
634
- parent_id?: string;
635
- last_sent_message?: ApiChannelMessageHeader;
628
+ channelLabel?: string;
629
+ appUrl?: string;
630
+ channelPrivate?: number;
631
+ meetingCode?: string;
632
+ clanName?: string;
633
+ parentId?: string;
634
+ lastSentMessage?: ApiChannelMessageHeader;
636
635
  }
637
636
  export interface HashtagDm {
638
- channel_id?: string;
639
- channel_label?: string;
640
- clan_id?: string;
641
- clan_name?: string;
642
- meeting_code?: string;
637
+ channelId?: string;
638
+ channelLabel?: string;
639
+ clanId?: string;
640
+ clanName?: string;
641
+ meetingCode?: string;
643
642
  type?: number;
644
- channel_private?: number;
645
- parent_id?: string;
643
+ channelPrivate?: number;
644
+ parentId?: string;
646
645
  }
647
646
  export interface NotificationSetting {
648
647
  id?: string;
649
- notification_setting_type?: number;
648
+ notificationSettingType?: number;
650
649
  }
651
650
  export interface NotificationChannelCategorySetting {
652
651
  id: string;
653
- channel_category_label: string;
654
- notification_setting_type: number;
655
- channel_category_title: string;
652
+ channelCategoryLabel: string;
653
+ notificationSettingType: number;
654
+ channelCategoryTitle: string;
656
655
  action: number;
657
656
  }
658
657
  export interface UserEmojiUsage {
659
- user_id: string;
660
- emoji_id: string;
661
- clan_id: string;
662
- create_time: string;
658
+ userId: string;
659
+ emojiId: string;
660
+ clanId: string;
661
+ createTime: string;
663
662
  }
664
663
  export interface AddFriend {
665
- user_id: string;
664
+ userId: string;
666
665
  username: string;
667
- display_name: string;
666
+ displayName: string;
668
667
  avatar: string;
669
668
  }
670
669
  export interface RemoveFriend {
671
- user_id: string;
670
+ userId: string;
672
671
  }
673
672
  export interface BlockFriend {
674
- user_id: string;
673
+ userId: string;
675
674
  }
676
675
  export interface UnblockFriend {
677
- user_id: string;
676
+ userId: string;
678
677
  username: string;
679
678
  avatar: string;
680
- display_name: string;
679
+ displayName: string;
681
680
  status: string;
682
- user_status: string;
681
+ userStatus: string;
683
682
  }
684
683
  export interface AddUserEmojiUsageEvent {
685
- emoji_id: string;
686
- clan_id: string;
684
+ emojiId: string;
685
+ clanId: string;
687
686
  }
688
687
  /** Response cho ListUserEmojiUsage */
689
688
  export interface GetUserEmojiUsageEvent {
690
689
  clanId: string;
691
- user_emoji_usage: Array<UserEmojiUsage>;
690
+ userEmojiUsage: Array<UserEmojiUsage>;
692
691
  }
693
692
  /** On role assign */
694
693
  export interface RoleAssignedEvent {
695
694
  /** The clan of this role */
696
695
  ClanId: string;
697
696
  /** Role ID */
698
- role_id: string;
697
+ roleId: string;
699
698
  /** UserIds Assigned */
700
- user_ids_assigned: string[];
699
+ userIdsAssigned: string[];
701
700
  /** UserIds Removed */
702
- user_ids_removed: string[];
701
+ userIdsRemoved: string[];
703
702
  }
704
703
  /** Streaming Joined event */
705
704
  export interface StreamingLeavedEvent {
706
705
  /** id */
707
706
  id: string;
708
707
  /** The unique identifier of the chat clan. */
709
- clan_id: string;
708
+ clanId: string;
710
709
  /** streaming channel name */
711
- streaming_channel_id: string;
712
- /** streaming user_id */
713
- streaming_user_id: string;
710
+ streamingChannelId: string;
711
+ /** streaming userId */
712
+ streamingUserId: string;
714
713
  }
715
714
  /** Streaming Joined event */
716
715
  export interface StreamingJoinedEvent {
717
716
  /** The unique identifier of the chat clan. */
718
- clan_id: string;
717
+ clanId: string;
719
718
  /** The channel name */
720
- clan_name: string;
719
+ clanName: string;
721
720
  /** id streaming */
722
721
  id: string;
723
722
  /** streaming participant */
724
723
  participant: string;
725
724
  /** user id */
726
- user_id: string;
725
+ userId: string;
727
726
  /** streaming channel label */
728
- streaming_channel_label: string;
727
+ streamingChannelLabel: string;
729
728
  /** streaming channel id */
730
- streaming_channel_id: string;
729
+ streamingChannelId: string;
731
730
  }
732
731
  /** Streaming start event */
733
732
  export interface StreamingStartedEvent {
734
733
  /** clan id */
735
- clan_id: string;
734
+ clanId: string;
736
735
  /** channel id */
737
- channel_id: string;
736
+ channelId: string;
738
737
  /** stream url */
739
- streaming_url: string;
738
+ streamingUrl: string;
740
739
  /** status */
741
- is_streaming: boolean;
740
+ isStreaming: boolean;
742
741
  }
743
742
  /** Streaming start event */
744
743
  export interface StreamingEndedEvent {
745
744
  /** clan id */
746
- clan_id: string;
745
+ clanId: string;
747
746
  /** channel id */
748
- channel_id: string;
747
+ channelId: string;
749
748
  }
750
749
  export interface ChannelAppEvent {
751
- user_id: string;
750
+ userId: string;
752
751
  username: string;
753
- clan_id: string;
754
- channel_id: string;
752
+ clanId: string;
753
+ channelId: string;
755
754
  action: number;
756
755
  }
757
756
  export interface HandleParticipantMeetStateEvent {
758
757
  /** clan id */
759
- clan_id: string;
758
+ clanId: string;
760
759
  /** channel id */
761
- channel_id: string;
760
+ channelId: string;
762
761
  /** display name */
763
- display_name: string;
762
+ displayName: string;
764
763
  /** state (0: join, 1: leave) */
765
764
  state: number;
766
765
  /** room name */
767
- room_name: string;
766
+ roomName: string;
768
767
  }
769
768
  export interface PermissionSet {
770
769
  /** Role ID */
771
- role_id: string;
770
+ roleId: string;
772
771
  /** User ID */
773
- user_id: string;
772
+ userId: string;
774
773
  /** Channel ID */
775
- channel_id: string;
774
+ channelId: string;
776
775
  /** List permission update */
777
- permission_updates: ApiPermissionUpdate[];
776
+ permissionUpdates: ApiPermissionUpdate[];
778
777
  /** */
779
778
  caller: string;
780
779
  }
781
780
  export interface PermissionChangedEvent {
782
- user_id: string;
783
- channel_id: string;
784
- add_permissions: ApiPermissionUpdate[];
785
- remove_permissions: ApiPermissionUpdate[];
786
- default_permissions: ApiPermissionUpdate[];
781
+ userId: string;
782
+ channelId: string;
783
+ addPermissions: ApiPermissionUpdate[];
784
+ removePermissions: ApiPermissionUpdate[];
785
+ defaultPermissions: ApiPermissionUpdate[];
787
786
  }
788
787
  export interface DropdownBoxSelected {
789
- message_id: string;
790
- channel_id: string;
791
- selectbox_id: string;
792
- sender_id: string;
793
- user_id: string;
788
+ messageId: string;
789
+ channelId: string;
790
+ selectboxId: string;
791
+ senderId: string;
792
+ userId: string;
794
793
  value: Array<string>;
795
794
  }
796
795
  export interface MessageButtonClicked {
797
- message_id: string;
798
- channel_id: string;
799
- button_id: string;
800
- sender_id: string;
801
- user_id: string;
802
- extra_data: string;
796
+ messageId: string;
797
+ channelId: string;
798
+ buttonId: string;
799
+ senderId: string;
800
+ userId: string;
801
+ extraData: string;
803
802
  }
804
803
  export interface IncomingCallPush {
805
- receiver_id: string;
806
- json_data: string;
807
- channel_id: string;
808
- caller_id: string;
804
+ receiverId: string;
805
+ jsonData: string;
806
+ channelId: string;
807
+ callerId: string;
809
808
  }
810
809
  export interface VoiceReactionSend {
811
810
  emojis: Array<string>;
812
- channel_id: string;
813
- sender_id: string;
814
- media_type: number;
811
+ channelId: string;
812
+ senderId: string;
813
+ mediaType: number;
815
814
  }
816
815
  export interface MarkAsRead {
817
- channel_id: string;
818
- category_id: string;
819
- clan_id: string;
816
+ channelId: string;
817
+ categoryId: string;
818
+ clanId: string;
820
819
  }
821
820
  export interface WebrtcSignalingFwd {
822
- receiver_id: string;
823
- data_type: number;
824
- json_data: string;
825
- channel_id: string;
826
- caller_id: string;
821
+ receiverId: string;
822
+ dataType: number;
823
+ jsonData: string;
824
+ channelId: string;
825
+ callerId: string;
827
826
  }
828
827
  export interface ListActivity {
829
828
  acts: ApiUserActivity[];
830
829
  }
831
830
  export interface SdTopicEvent {
832
831
  id: string;
833
- clan_id: string;
834
- channel_id: string;
835
- message_id: string;
836
- user_id: string;
837
- last_sent_message?: ApiChannelMessageHeader;
832
+ clanId: string;
833
+ channelId: string;
834
+ messageId: string;
835
+ userId: string;
836
+ lastSentMessage?: ApiChannelMessageHeader;
838
837
  message?: ApiChannelMessage;
839
838
  }
840
839
  export interface UserStatusEvent {
841
- user_id: string;
842
- custom_status: string;
840
+ userId: string;
841
+ customStatus: string;
843
842
  }
844
843
  export interface JoinChannelAppData {
845
- user_id: string;
844
+ userId: string;
846
845
  username: string;
847
846
  hash: string;
848
847
  }
849
848
  /** */
850
849
  export interface ChannelCanvas {
851
850
  content?: string;
852
- creator_id?: string;
853
- editor_id?: string;
851
+ creatorId?: string;
852
+ editorId?: string;
854
853
  id?: string;
855
- is_default?: boolean;
854
+ isDefault?: boolean;
856
855
  title?: string;
857
- channel_id?: string;
856
+ channelId?: string;
858
857
  status?: number;
859
858
  }
860
859
  export interface ListDataSocket {
@@ -868,7 +867,7 @@ export interface ListDataSocket {
868
867
  list_channel_users_uc_req?: any;
869
868
  channel_users_uc_list?: ApiAllUsersAddChannelResponse;
870
869
  list_channel_detail_req?: any;
871
- channel_desc?: ApiChannelDescription;
870
+ channelDesc?: ApiChannelDescription;
872
871
  list_channel_req?: any;
873
872
  list_channel_message_req?: any;
874
873
  channel_message_list?: ApiChannelMessageList;
@@ -880,7 +879,7 @@ export interface ListDataSocket {
880
879
  hashtag_dm_req?: any;
881
880
  hashtag_dm_list?: ApiHashtagDmList;
882
881
  channel_setting_req?: any;
883
- channel_setting_list?: ApiChannelSettingListResponse;
882
+ channelSettingList?: ApiChannelSettingListResponse;
884
883
  favorite_channel_req?: any;
885
884
  favorite_channel_list?: ApiListFavoriteChannelResponse;
886
885
  search_thread_req?: any;
@@ -900,9 +899,9 @@ export interface ListDataSocket {
900
899
  webhook_list_req?: any;
901
900
  webhook_list?: ApiWebhookListResponse;
902
901
  permission_list_req?: any;
903
- permission_list?: ApiPermissionList;
902
+ permissionList?: ApiPermissionList;
904
903
  role_user_req?: any;
905
- role_user_list?: ApiRoleUserList;
904
+ roleUserList?: ApiRoleUserList;
906
905
  permission_user_req?: any;
907
906
  role_list?: ApiRoleList;
908
907
  role_list_event_req?: any;
@@ -911,7 +910,7 @@ export interface ListDataSocket {
911
910
  user_permission_list?: ApiUserPermissionInChannelListResponse;
912
911
  permission_role_req?: any;
913
912
  permission_role_list?: ApiPermissionRoleChannelListEventResponse;
914
- emoji_list?: ApiEmojiListedResponse;
913
+ emojiList?: ApiEmojiListedResponse;
915
914
  list_friend_req?: any;
916
915
  friend_list?: ApiFriendList;
917
916
  list_apps_req?: any;
@@ -927,53 +926,53 @@ export interface Socket {
927
926
  /** Disconnect from the server. */
928
927
  disconnect(fireDisconnectEvent: boolean): void;
929
928
  /** Subscribe to one or more users for their status updates. */
930
- followUsers(user_ids: string[]): Promise<Status>;
929
+ followUsers(userIds: string[]): Promise<Status>;
931
930
  /** Join clan chat */
932
- joinClanChat(clan_id: string): Promise<ClanJoin>;
931
+ joinClanChat(clanId: string): Promise<ClanJoin>;
933
932
  follower(): Promise<void>;
934
933
  /** Join a chat channel on the server. */
935
- joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
934
+ joinChat(clanId: string, channelId: string, channelType: number, isPublic: boolean): Promise<Channel>;
936
935
  /** Leave a chat channel on the server. */
937
- leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
936
+ leaveChat(clanId: string, channelId: string, channelType: number, isPublic: boolean): Promise<void>;
938
937
  /** handle user join/leave channel voice on the server. */
939
- handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number, room_name: string): Promise<void>;
938
+ handleParticipantMeetState(clanId: string, channelId: string, displayName: string, state: number, roomName: string): Promise<void>;
940
939
  /** Remove a chat message from a chat channel on the server. */
941
- removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
940
+ removeChatMessage(clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, hasAttachment?: boolean, topicId?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
942
941
  /** Execute an RPC function to the server. */
943
- rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
942
+ rpc(id?: string, payload?: string, httpKey?: string): Promise<ApiRpc>;
944
943
  /** Unfollow one or more users from their status updates. */
945
- unfollowUsers(user_ids: string[]): Promise<void>;
944
+ unfollowUsers(userIds: string[]): Promise<void>;
946
945
  /** Update a chat message on a chat channel in the server. */
947
- 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, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
946
+ updateChatMessage(clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topicId?: string, isUpdateMsgTopic?: boolean, oldMentions?: string): Promise<ChannelMessageAck>;
948
947
  /** Update the status for the current user online. */
949
948
  updateStatus(status?: string): Promise<void>;
950
949
  /** Send a chat message to a chat channel on the server. */
951
- 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>;
950
+ writeChatMessage(clanId: string, channelId: string, mode: number, isPublic: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: boolean, avatar?: string, code?: number, topicId?: string, id?: string): Promise<ChannelMessageAck>;
952
951
  /** Send a chat message to a chat channel on the server. */
953
- 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>;
952
+ writeEphemeralMessage(receiverId: string, clanId: string, channelId: string, mode: number, isPublic: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: boolean, avatar?: string, code?: number, topicId?: string): Promise<ChannelMessageAck>;
954
953
  /** Send a quick menu event to a chat channel on the server. */
955
- 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>;
954
+ writeQuickMenuEvent(menuName: string, clanId: string, channelId: string, mode: number, isPublic: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: boolean, avatar?: string, code?: number, topicId?: string, id?: string): Promise<QuickMenuEvent>;
956
955
  /** Send message typing */
957
- writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
956
+ writeMessageTyping(clanId: string, channelId: string, mode: number, isPublic: boolean, senderDisplayName: string, topicId?: string): Promise<MessageTypingEvent>;
958
957
  /** Send message reaction */
959
- 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>;
958
+ writeMessageReaction(id: string, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, emojiId: string, emoji: string, count: number, messageSenderId: string, action_delete: boolean, topicId?: string, emojiRecentId?: string, senderName?: string): Promise<ApiMessageReaction>;
960
959
  /** Send last seen message */
961
- writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
960
+ writeLastSeenMessage(clanId: string, channelId: string, mode: number, messageId: string, timestampSeconds: number, badgeCount: number): Promise<LastSeenMessageEvent>;
962
961
  /** Send last pin message */
963
- 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>;
962
+ writeLastPinMessage(clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, timestampSeconds: number, operation: number, messageSenderAvatar: string, messageSenderId: string, messageSenderUsername: string, messageContent: string, messageAttachment: string, messageCreatedTime: string): Promise<LastPinMessageEvent>;
964
963
  /** Send custom user status */
965
- writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
966
- writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
964
+ writeCustomStatus(clanId: string, status: string, timeReset: number, noClear: boolean): Promise<CustomStatusEvent>;
965
+ writeActiveArchivedThread(clanId: string, channelId: string): Promise<void>;
967
966
  setHeartbeatTimeoutMs(ms: number): void;
968
967
  getHeartbeatTimeoutMs(): number;
969
968
  onreconnect: (evt: Event) => void;
970
- checkDuplicateName(name: string, condition_id: string, type: number, clan_id: string): Promise<CheckNameExistedEvent>;
971
- handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string) => Promise<MessageButtonClicked>;
972
- handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
973
- writeVoiceReaction: (emojis: Array<string>, channel_id: string) => Promise<VoiceReactionSend>;
974
- forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
975
- makeCallPush: (receiverId: string, jsonData: string, channelId: string, caller_id: string) => Promise<IncomingCallPush>;
976
- writeChannelAppEvent: (clan_id: string, channel_id: string, action: number) => Promise<ChannelAppEvent>;
969
+ checkDuplicateName(name: string, condition_id: string, type: number, clanId: string): Promise<CheckNameExistedEvent>;
970
+ handleMessageButtonClick: (messageId: string, channelId: string, buttonId: string, senderId: string, userId: string, extraData: string) => Promise<MessageButtonClicked>;
971
+ handleDropdownBoxSelected: (messageId: string, channelId: string, selectboxId: string, senderId: string, userId: string, value: Array<string>) => Promise<DropdownBoxSelected>;
972
+ writeVoiceReaction: (emojis: Array<string>, channelId: string) => Promise<VoiceReactionSend>;
973
+ forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, callerId: string) => Promise<WebrtcSignalingFwd>;
974
+ makeCallPush: (receiverId: string, jsonData: string, channelId: string, callerId: string) => Promise<IncomingCallPush>;
975
+ writeChannelAppEvent: (clanId: string, channelId: string, action: number) => Promise<ChannelAppEvent>;
977
976
  listDataSocket(request: ListDataSocket): Promise<any>;
978
977
  /** Handle disconnect events received from the socket. */
979
978
  ondisconnect: (evt: Event) => void;
@@ -1080,7 +1079,7 @@ export declare const ConnectionState: {
1080
1079
  readonly CONNECTING: "connecting";
1081
1080
  readonly CONNECTED: "connected";
1082
1081
  };
1083
- export type ConnectionStateType = typeof ConnectionState[keyof typeof ConnectionState];
1082
+ export type ConnectionStateType = (typeof ConnectionState)[keyof typeof ConnectionState];
1084
1083
  export declare class DefaultSocket implements Socket {
1085
1084
  readonly host: string;
1086
1085
  readonly port: string;
@@ -1178,32 +1177,32 @@ export declare class DefaultSocket implements Socket {
1178
1177
  onallowanonymousevent(event: AllowAnonymousEvent): void;
1179
1178
  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>;
1180
1179
  followUsers(userIds: string[]): Promise<Status>;
1181
- joinClanChat(clan_id: string): Promise<ClanJoin>;
1180
+ joinClanChat(clanId: string): Promise<ClanJoin>;
1182
1181
  follower(): Promise<void>;
1183
- joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
1184
- handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number, room_name: string): Promise<void>;
1185
- leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
1186
- removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
1187
- rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
1188
- unfollowUsers(user_ids: string[]): Promise<void>;
1189
- 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, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
1182
+ joinChat(clanId: string, channelId: string, channelType: number, isPublic: boolean): Promise<Channel>;
1183
+ handleParticipantMeetState(clanId: string, channelId: string, displayName: string, state: number, roomName: string): Promise<void>;
1184
+ leaveChat(clanId: string, channelId: string, channelType: number, isPublic: boolean): Promise<void>;
1185
+ removeChatMessage(clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, hasAttachment?: boolean, topicId?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
1186
+ rpc(id?: string, payload?: string, httpKey?: string): Promise<ApiRpc>;
1187
+ unfollowUsers(userIds: string[]): Promise<void>;
1188
+ updateChatMessage(clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topicId?: string, isUpdateMsgTopic?: boolean, oldMentions?: string): Promise<ChannelMessageAck>;
1190
1189
  updateStatus(status?: string): Promise<void>;
1191
- 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>;
1192
- 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>;
1193
- 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>;
1194
- 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>;
1195
- writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
1196
- writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
1197
- 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>;
1198
- writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
1199
- writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
1200
- checkDuplicateName(name: string, condition_id: string, type: number, clan_id: string): Promise<CheckNameExistedEvent>;
1201
- writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
1202
- forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
1203
- makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
1204
- handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
1205
- handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
1206
- writeChannelAppEvent(clan_id: string, channel_id: string, action: number): Promise<ChannelAppEvent>;
1190
+ writeQuickMenuEvent(menuName: string, clanId: string, channelId: string, mode: number, isPublic: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: Boolean, avatar?: string, code?: number, topicId?: string): Promise<QuickMenuEvent>;
1191
+ writeEphemeralMessage(receiverId: string, clanId: string, channelId: string, mode: number, isPublic: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: Boolean, avatar?: string, code?: number, topicId?: string, id?: string): Promise<ChannelMessageAck>;
1192
+ writeChatMessage(clanId: string, channelId: string, mode: number, isPublic: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: Boolean, avatar?: string, code?: number, topicId?: string): Promise<ChannelMessageAck>;
1193
+ writeMessageReaction(id: string, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, emojiId: string, emoji: string, count: number, messageSenderId: string, action_delete: boolean, topicId?: string, emojiRecentId?: string, senderName?: string): Promise<ApiMessageReaction>;
1194
+ writeMessageTyping(clanId: string, channelId: string, mode: number, isPublic: boolean, senderDisplayName: string, topicId?: string): Promise<MessageTypingEvent>;
1195
+ writeLastSeenMessage(clanId: string, channelId: string, mode: number, messageId: string, timestampSeconds: number, badgeCount: number): Promise<LastSeenMessageEvent>;
1196
+ writeLastPinMessage(clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, timestampSeconds: number, operation: number, messageSenderAvatar: string, messageSenderId: string, messageSenderUsername: string, messageContent: string, messageAttachment: string, messageCreatedTime: string): Promise<LastPinMessageEvent>;
1197
+ writeCustomStatus(clanId: string, status: string, timeReset: number, noClear: boolean): Promise<CustomStatusEvent>;
1198
+ writeActiveArchivedThread(clanId: string, channelId: string): Promise<void>;
1199
+ checkDuplicateName(name: string, condition_id: string, type: number, clanId: string): Promise<CheckNameExistedEvent>;
1200
+ writeVoiceReaction(emojis: Array<string>, channelId: string): Promise<VoiceReactionSend>;
1201
+ forwardWebrtcSignaling(receiverId: string, dataType: number, jsonData: string, channelId: string, callerId: string): Promise<WebrtcSignalingFwd>;
1202
+ makeCallPush(receiverId: string, jsonData: string, channelId: string, callerId: string): Promise<IncomingCallPush>;
1203
+ handleDropdownBoxSelected(messageId: string, channelId: string, selectboxId: string, senderId: string, userId: string, value: Array<string>): Promise<DropdownBoxSelected>;
1204
+ handleMessageButtonClick(messageId: string, channelId: string, buttonId: string, senderId: string, userId: string, extraData: string): Promise<MessageButtonClicked>;
1205
+ writeChannelAppEvent(clanId: string, channelId: string, action: number): Promise<ChannelAppEvent>;
1207
1206
  listDataSocket(request: ListDataSocket): Promise<any>;
1208
1207
  private pingPong;
1209
1208
  private startHeartbeatLoop;