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.
- package/client.ts +3279 -2482
- package/dist/client.d.ts +163 -349
- package/dist/gateway.api.d.ts +33 -0
- package/dist/index.d.ts +2 -4
- package/dist/{api.gen.d.ts → mezon-js/api.gen.d.ts} +1 -0
- package/dist/mezon-js/client.d.ts +347 -0
- package/dist/mezon-js/gateway.api.d.ts +33 -0
- package/dist/mezon-js/index.d.ts +23 -0
- package/dist/mezon-js/session.d.ts +61 -0
- package/dist/mezon-js/socket.d.ts +1212 -0
- package/dist/mezon-js/types/index.d.ts +2212 -0
- package/dist/mezon-js/utils.d.ts +6 -0
- package/dist/mezon-js/web_socket_adapter.d.ts +83 -0
- package/dist/mezon-js.cjs.js +9038 -21145
- package/dist/mezon-js.esm.mjs +9038 -21145
- package/dist/mezon-js.esm.mjs.map +1 -0
- package/dist/session.d.ts +11 -11
- package/dist/socket.d.ts +385 -386
- package/dist/types/index.d.ts +2212 -0
- package/dist/utils.d.ts +2 -0
- package/dist/webrpc/index.d.ts +3 -0
- package/gateway.api.ts +577 -0
- package/index.ts +2 -5
- package/package.json +3 -2
- package/rollup.config.js +64 -30
- package/session.ts +22 -22
- package/socket.ts +921 -846
- package/types/index.ts +3883 -0
- package/utils.ts +107 -47
- package/api/api.ts +0 -39185
- package/api.gen.ts +0 -11777
- package/google/protobuf/struct.ts +0 -554
- package/google/protobuf/timestamp.ts +0 -223
- package/google/protobuf/wrappers.ts +0 -670
- /package/dist/{api → mezon-js/api}/api.d.ts +0 -0
- /package/dist/{google → mezon-js/google}/protobuf/struct.d.ts +0 -0
- /package/dist/{google → mezon-js/google}/protobuf/timestamp.d.ts +0 -0
- /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 "./
|
|
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
|
-
|
|
22
|
+
userId: string;
|
|
24
23
|
/** The session id of the user. */
|
|
25
|
-
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
46
|
+
senderId?: string;
|
|
48
47
|
/** Subject of the notification. */
|
|
49
48
|
subject?: string;
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
channelId?: string;
|
|
50
|
+
clanId?: string;
|
|
52
51
|
channel?: ApiChannelDescription;
|
|
53
|
-
|
|
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
|
-
|
|
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
|
-
|
|
65
|
-
|
|
63
|
+
clanLogo: string;
|
|
64
|
+
categoryName: string;
|
|
66
65
|
}
|
|
67
66
|
export interface ClanJoin {
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
clanJoin: {
|
|
68
|
+
clanId: string;
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
/** Join a realtime chat channel. */
|
|
73
72
|
interface ChannelJoin {
|
|
74
|
-
|
|
73
|
+
channelJoin: {
|
|
75
74
|
/** The id of the channel to join. */
|
|
76
|
-
|
|
75
|
+
channelId: string;
|
|
77
76
|
/** The name of the channel to join. */
|
|
78
|
-
|
|
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
|
-
|
|
84
|
+
isPublic: boolean;
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
87
|
/** Leave a realtime chat channel. */
|
|
89
88
|
interface ChannelLeave {
|
|
90
|
-
|
|
89
|
+
channelLeave: {
|
|
91
90
|
/** The id of the channel to leave. */
|
|
92
|
-
|
|
91
|
+
channelId: string;
|
|
93
92
|
mode: number;
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
channelLabel: string;
|
|
94
|
+
isPublic: boolean;
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
97
|
export interface AddClanUserEvent {
|
|
99
|
-
|
|
98
|
+
clanId: string;
|
|
100
99
|
user: UserProfileRedis;
|
|
101
100
|
invitor: string;
|
|
102
101
|
}
|
|
103
102
|
export interface BannedUserEvent {
|
|
104
|
-
|
|
103
|
+
userIds: Array<string>;
|
|
105
104
|
action: number;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
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
|
-
|
|
118
|
+
displayName: string;
|
|
120
119
|
/** custom status */
|
|
121
|
-
|
|
120
|
+
customStatus: string;
|
|
122
121
|
/** online */
|
|
123
122
|
online: boolean;
|
|
124
|
-
|
|
123
|
+
createTimeSecond: number;
|
|
125
124
|
/** clans */
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
joinedClans: number[];
|
|
126
|
+
appUrl: string;
|
|
127
|
+
isBot: boolean;
|
|
129
128
|
}
|
|
130
129
|
/** UserChannelAddedEvent */
|
|
131
130
|
export interface UserChannelAddedEvent {
|
|
132
|
-
|
|
131
|
+
channelDesc: ChannelDescription;
|
|
133
132
|
users: UserProfileRedis[];
|
|
134
133
|
status: string;
|
|
135
|
-
|
|
134
|
+
clanId: string;
|
|
136
135
|
caller: UserProfileRedis;
|
|
137
|
-
|
|
136
|
+
createTimeSecond: number;
|
|
138
137
|
active: number;
|
|
139
138
|
}
|
|
140
139
|
export interface UserChannelRemovedEvent {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
channelId: string;
|
|
141
|
+
userIds: string[];
|
|
142
|
+
channelType: number;
|
|
143
|
+
clanId: string;
|
|
144
|
+
badgeCounts: number[];
|
|
146
145
|
}
|
|
147
146
|
export interface UserClanRemovedEvent {
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
|
|
153
|
+
channelId: string;
|
|
155
154
|
mode: number;
|
|
156
|
-
|
|
155
|
+
channelLabel: string;
|
|
157
156
|
/** The unique ID of this message. */
|
|
158
|
-
|
|
157
|
+
messageId: string;
|
|
159
158
|
/** user id */
|
|
160
|
-
|
|
159
|
+
userId: string;
|
|
161
160
|
/** operation */
|
|
162
161
|
operation: number;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
channelId: string;
|
|
173
|
+
categoryId: string;
|
|
174
|
+
clanId: string;
|
|
176
175
|
}
|
|
177
176
|
/** Last seen message by user */
|
|
178
177
|
export interface LastSeenMessageEvent {
|
|
179
|
-
|
|
178
|
+
clanId: string;
|
|
180
179
|
/** The channel this message belongs to. */
|
|
181
|
-
|
|
180
|
+
channelId: string;
|
|
182
181
|
mode: number;
|
|
183
|
-
|
|
182
|
+
channelLabel: string;
|
|
184
183
|
/** The unique ID of this message. */
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
190
|
+
channelId: string;
|
|
192
191
|
mode: number;
|
|
193
|
-
|
|
192
|
+
channelLabel: string;
|
|
194
193
|
/** Message sender, usually a user ID. */
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
senderId: string;
|
|
195
|
+
isPublic: boolean;
|
|
196
|
+
senderUsername: string;
|
|
197
|
+
senderDisplayName: string;
|
|
198
|
+
topicId?: string;
|
|
200
199
|
}
|
|
201
200
|
export interface UserProfileUpdatedEvent {
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
userId: string;
|
|
202
|
+
displayName: string;
|
|
204
203
|
avatar: string;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
-
|
|
212
|
+
channelId: string;
|
|
214
213
|
mode: number;
|
|
215
214
|
/** A unique ID for the chat message. */
|
|
216
|
-
|
|
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
|
-
|
|
221
|
+
createTime: string;
|
|
223
222
|
/** The UNIX time when the message was updated. */
|
|
224
|
-
|
|
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
|
-
|
|
231
|
+
clanId: string;
|
|
233
232
|
/** The server-assigned channel ID. */
|
|
234
|
-
|
|
233
|
+
channelId: string;
|
|
235
234
|
mode: number;
|
|
236
|
-
|
|
235
|
+
channelLabel: string;
|
|
237
236
|
/** The content payload. */
|
|
238
237
|
content: any;
|
|
239
238
|
mentions?: Array<ApiMessageMention>;
|
|
240
239
|
attachments?: Array<ApiMessageAttachment>;
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
anonymousMessage?: boolean;
|
|
241
|
+
mentionEveryone?: boolean;
|
|
243
242
|
avatar: string;
|
|
244
|
-
|
|
243
|
+
isPublic: boolean;
|
|
245
244
|
code: number;
|
|
246
|
-
|
|
245
|
+
topicId?: string;
|
|
247
246
|
};
|
|
248
247
|
}
|
|
249
248
|
interface TransferOwnershipEvent {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
clanId: string;
|
|
250
|
+
prevOwner: string;
|
|
251
|
+
currOwner: string;
|
|
253
252
|
}
|
|
254
253
|
interface QuickMenuEvent {
|
|
255
254
|
quick_menu_event: {
|
|
256
|
-
|
|
255
|
+
menuName: string;
|
|
257
256
|
message: {
|
|
258
257
|
/** Clan Id */
|
|
259
|
-
|
|
258
|
+
clanId: string;
|
|
260
259
|
/** The server-assigned channel ID. */
|
|
261
|
-
|
|
260
|
+
channelId: string;
|
|
262
261
|
mode: number;
|
|
263
|
-
|
|
262
|
+
channelLabel: string;
|
|
264
263
|
/** The content payload. */
|
|
265
264
|
content: any;
|
|
266
265
|
mentions?: Array<ApiMessageMention>;
|
|
267
266
|
attachments?: Array<ApiMessageAttachment>;
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
anonymousMessage?: boolean;
|
|
268
|
+
mentionEveryone?: boolean;
|
|
270
269
|
avatar: string;
|
|
271
|
-
|
|
270
|
+
isPublic: boolean;
|
|
272
271
|
code: number;
|
|
273
|
-
|
|
272
|
+
topicId?: string;
|
|
274
273
|
};
|
|
275
274
|
};
|
|
276
275
|
}
|
|
277
276
|
interface EphemeralMessageSend {
|
|
278
277
|
ephemeral_message_send: {
|
|
279
|
-
|
|
278
|
+
receiverId: string;
|
|
280
279
|
message: {
|
|
281
280
|
/** Clan Id */
|
|
282
|
-
|
|
281
|
+
clanId: string;
|
|
283
282
|
/** The server-assigned channel ID. */
|
|
284
|
-
|
|
283
|
+
channelId: string;
|
|
285
284
|
mode: number;
|
|
286
|
-
|
|
285
|
+
channelLabel: string;
|
|
287
286
|
/** The content payload. */
|
|
288
287
|
content: any;
|
|
289
288
|
mentions?: Array<ApiMessageMention>;
|
|
290
289
|
attachments?: Array<ApiMessageAttachment>;
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
anonymousMessage?: boolean;
|
|
291
|
+
mentionEveryone?: boolean;
|
|
293
292
|
avatar: string;
|
|
294
|
-
|
|
293
|
+
isPublic: boolean;
|
|
295
294
|
code: number;
|
|
296
|
-
|
|
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
|
-
|
|
303
|
+
channelId: string;
|
|
305
304
|
/** A unique ID for the chat message to be updated. */
|
|
306
|
-
|
|
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
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
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
|
-
|
|
324
|
+
clanId: string;
|
|
326
325
|
/** The server-assigned channel ID. */
|
|
327
|
-
|
|
326
|
+
channelId: string;
|
|
328
327
|
mode: number;
|
|
329
|
-
|
|
328
|
+
channelLabel: string;
|
|
330
329
|
/** A unique ID for the chat message to be removed. */
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
messageId: string;
|
|
331
|
+
isPublic: boolean;
|
|
333
332
|
/** attachments */
|
|
334
|
-
|
|
335
|
-
|
|
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
|
-
|
|
344
|
-
|
|
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
|
-
|
|
354
|
-
|
|
352
|
+
clanId: string;
|
|
353
|
+
voiceChannelId: string;
|
|
355
354
|
}
|
|
356
355
|
export interface VoiceStartedEvent {
|
|
357
356
|
id: string;
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
clanId: string;
|
|
358
|
+
voiceChannelId: string;
|
|
360
359
|
}
|
|
361
360
|
export interface VoiceLeavedEvent {
|
|
362
361
|
id: string;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
|
|
370
|
-
|
|
368
|
+
clanId: string;
|
|
369
|
+
clanName: string;
|
|
371
370
|
id: string;
|
|
372
371
|
participant: string;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
372
|
+
userId: string;
|
|
373
|
+
voiceChannelLabel: string;
|
|
374
|
+
voiceChannelId: string;
|
|
375
|
+
lastScreenshot: string;
|
|
377
376
|
}
|
|
378
377
|
export interface CustomStatusEvent {
|
|
379
|
-
|
|
380
|
-
|
|
378
|
+
clanId: string;
|
|
379
|
+
userId: string;
|
|
381
380
|
username: string;
|
|
382
381
|
status: string;
|
|
383
382
|
/** time reset */
|
|
384
|
-
|
|
383
|
+
timeReset: number;
|
|
385
384
|
/** no clear */
|
|
386
|
-
|
|
385
|
+
noClear: boolean;
|
|
387
386
|
}
|
|
388
387
|
export interface UnpinMessageEvent {
|
|
389
388
|
id: string;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
389
|
+
messageId: string;
|
|
390
|
+
channelId: string;
|
|
391
|
+
clanId: string;
|
|
393
392
|
}
|
|
394
393
|
export interface ChannelUpdatedEvent {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
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
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
402
|
+
meetingCode: string;
|
|
403
|
+
channelPrivate: number;
|
|
404
|
+
isError: boolean;
|
|
405
|
+
appId: string;
|
|
407
406
|
e2ee: number;
|
|
408
407
|
topic: string;
|
|
409
|
-
|
|
410
|
-
|
|
408
|
+
ageRestricted: number;
|
|
409
|
+
isActiveThread: boolean;
|
|
411
410
|
active: number;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
411
|
+
countMessUnread: number;
|
|
412
|
+
roleIds?: Array<string>;
|
|
413
|
+
userIds?: Array<string>;
|
|
414
|
+
channelAvatar: string;
|
|
416
415
|
}
|
|
417
416
|
export interface DeleteAccountEvent {
|
|
418
|
-
|
|
417
|
+
userId: string;
|
|
419
418
|
}
|
|
420
419
|
export interface ChannelCreatedEvent {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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
|
-
|
|
431
|
-
|
|
432
|
-
|
|
429
|
+
appId: string;
|
|
430
|
+
clanName: string;
|
|
431
|
+
channelAvatar: string;
|
|
433
432
|
}
|
|
434
433
|
export interface CategoryEvent {
|
|
435
|
-
|
|
434
|
+
clanId: string;
|
|
436
435
|
id: string;
|
|
437
|
-
|
|
438
|
-
|
|
436
|
+
creatorId: string;
|
|
437
|
+
categoryName: string;
|
|
439
438
|
status: number;
|
|
440
439
|
}
|
|
441
440
|
export interface ChannelDeletedEvent {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
441
|
+
clanId: string;
|
|
442
|
+
categoryId: string;
|
|
443
|
+
channelId: string;
|
|
445
444
|
deletor: string;
|
|
446
|
-
|
|
445
|
+
parentId: string;
|
|
447
446
|
}
|
|
448
447
|
export interface StickerCreateEvent {
|
|
449
|
-
|
|
448
|
+
clanId: string;
|
|
450
449
|
source: string;
|
|
451
450
|
shortname: string;
|
|
452
451
|
category: string;
|
|
453
|
-
|
|
452
|
+
creatorId: string;
|
|
454
453
|
sticker_id: string;
|
|
455
454
|
logo: string;
|
|
456
|
-
|
|
455
|
+
clanName: string;
|
|
457
456
|
}
|
|
458
457
|
export interface StickerUpdateEvent {
|
|
459
458
|
shortname: string;
|
|
460
459
|
sticker_id: string;
|
|
461
|
-
|
|
460
|
+
userId: string;
|
|
462
461
|
}
|
|
463
462
|
export interface StickerDeleteEvent {
|
|
464
463
|
sticker_id: string;
|
|
465
|
-
|
|
464
|
+
userId: string;
|
|
466
465
|
}
|
|
467
466
|
export interface ClanDeletedEvent {
|
|
468
|
-
|
|
467
|
+
clanId: string;
|
|
469
468
|
deletor: string;
|
|
470
469
|
}
|
|
471
470
|
export interface ClanUpdatedEvent {
|
|
472
|
-
|
|
473
|
-
|
|
471
|
+
clanId: string;
|
|
472
|
+
clanName: string;
|
|
474
473
|
logo: string;
|
|
475
474
|
banner: string;
|
|
476
475
|
status: number;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
476
|
+
isOnboarding: boolean;
|
|
477
|
+
welcomeChannelId: string;
|
|
478
|
+
onboardingBanner: string;
|
|
480
479
|
about: string;
|
|
481
|
-
|
|
480
|
+
preventAnonymous: boolean;
|
|
482
481
|
}
|
|
483
482
|
export interface ClanProfileUpdatedEvent {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
483
|
+
userId: string;
|
|
484
|
+
clanNick: string;
|
|
485
|
+
clanAvatar: string;
|
|
486
|
+
clanId: string;
|
|
488
487
|
}
|
|
489
488
|
export interface MeetParticipantEvent {
|
|
490
489
|
username: string;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
490
|
+
roomName: string;
|
|
491
|
+
channelId: string;
|
|
492
|
+
clanId: string;
|
|
494
493
|
action: number;
|
|
495
494
|
}
|
|
496
495
|
export interface AllowAnonymousEvent {
|
|
497
|
-
|
|
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
|
-
|
|
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
|
-
|
|
561
|
-
|
|
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
|
-
|
|
571
|
+
clanName: string;
|
|
573
572
|
exist: boolean;
|
|
574
573
|
condition_id: string;
|
|
575
574
|
type: number;
|
|
576
|
-
|
|
575
|
+
clanId: string;
|
|
577
576
|
}
|
|
578
577
|
/** */
|
|
579
578
|
export interface ClanSticker {
|
|
580
579
|
category?: string;
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
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
|
-
|
|
589
|
-
|
|
587
|
+
clanName?: string;
|
|
588
|
+
isForSale?: boolean;
|
|
590
589
|
}
|
|
591
590
|
export interface RoleEvent {
|
|
592
591
|
role: ApiRole;
|
|
593
592
|
status: number;
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
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
|
-
|
|
603
|
-
|
|
601
|
+
clanId: string;
|
|
602
|
+
shortName: string;
|
|
604
603
|
source: string;
|
|
605
604
|
category: string;
|
|
606
605
|
action: number;
|
|
607
|
-
|
|
606
|
+
userId: string;
|
|
608
607
|
logo: string;
|
|
609
|
-
|
|
610
|
-
|
|
608
|
+
clanName: string;
|
|
609
|
+
isForSale: boolean;
|
|
611
610
|
}
|
|
612
611
|
/** */
|
|
613
612
|
export interface ClanEmoji {
|
|
614
613
|
category?: string;
|
|
615
|
-
|
|
614
|
+
creatorId?: string;
|
|
616
615
|
id?: string;
|
|
617
616
|
shortname?: string;
|
|
618
617
|
src?: string;
|
|
619
618
|
logo?: string;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
619
|
+
clanName?: string;
|
|
620
|
+
clanId?: string;
|
|
621
|
+
isForSale?: boolean;
|
|
623
622
|
}
|
|
624
623
|
/** */
|
|
625
624
|
export interface ChannelDescription {
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
clanId?: string;
|
|
626
|
+
channelId?: string;
|
|
628
627
|
type?: number;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
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
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
637
|
+
channelId?: string;
|
|
638
|
+
channelLabel?: string;
|
|
639
|
+
clanId?: string;
|
|
640
|
+
clanName?: string;
|
|
641
|
+
meetingCode?: string;
|
|
643
642
|
type?: number;
|
|
644
|
-
|
|
645
|
-
|
|
643
|
+
channelPrivate?: number;
|
|
644
|
+
parentId?: string;
|
|
646
645
|
}
|
|
647
646
|
export interface NotificationSetting {
|
|
648
647
|
id?: string;
|
|
649
|
-
|
|
648
|
+
notificationSettingType?: number;
|
|
650
649
|
}
|
|
651
650
|
export interface NotificationChannelCategorySetting {
|
|
652
651
|
id: string;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
652
|
+
channelCategoryLabel: string;
|
|
653
|
+
notificationSettingType: number;
|
|
654
|
+
channelCategoryTitle: string;
|
|
656
655
|
action: number;
|
|
657
656
|
}
|
|
658
657
|
export interface UserEmojiUsage {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
658
|
+
userId: string;
|
|
659
|
+
emojiId: string;
|
|
660
|
+
clanId: string;
|
|
661
|
+
createTime: string;
|
|
663
662
|
}
|
|
664
663
|
export interface AddFriend {
|
|
665
|
-
|
|
664
|
+
userId: string;
|
|
666
665
|
username: string;
|
|
667
|
-
|
|
666
|
+
displayName: string;
|
|
668
667
|
avatar: string;
|
|
669
668
|
}
|
|
670
669
|
export interface RemoveFriend {
|
|
671
|
-
|
|
670
|
+
userId: string;
|
|
672
671
|
}
|
|
673
672
|
export interface BlockFriend {
|
|
674
|
-
|
|
673
|
+
userId: string;
|
|
675
674
|
}
|
|
676
675
|
export interface UnblockFriend {
|
|
677
|
-
|
|
676
|
+
userId: string;
|
|
678
677
|
username: string;
|
|
679
678
|
avatar: string;
|
|
680
|
-
|
|
679
|
+
displayName: string;
|
|
681
680
|
status: string;
|
|
682
|
-
|
|
681
|
+
userStatus: string;
|
|
683
682
|
}
|
|
684
683
|
export interface AddUserEmojiUsageEvent {
|
|
685
|
-
|
|
686
|
-
|
|
684
|
+
emojiId: string;
|
|
685
|
+
clanId: string;
|
|
687
686
|
}
|
|
688
687
|
/** Response cho ListUserEmojiUsage */
|
|
689
688
|
export interface GetUserEmojiUsageEvent {
|
|
690
689
|
clanId: string;
|
|
691
|
-
|
|
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
|
-
|
|
697
|
+
roleId: string;
|
|
699
698
|
/** UserIds Assigned */
|
|
700
|
-
|
|
699
|
+
userIdsAssigned: string[];
|
|
701
700
|
/** UserIds Removed */
|
|
702
|
-
|
|
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
|
-
|
|
708
|
+
clanId: string;
|
|
710
709
|
/** streaming channel name */
|
|
711
|
-
|
|
712
|
-
/** streaming
|
|
713
|
-
|
|
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
|
-
|
|
717
|
+
clanId: string;
|
|
719
718
|
/** The channel name */
|
|
720
|
-
|
|
719
|
+
clanName: string;
|
|
721
720
|
/** id streaming */
|
|
722
721
|
id: string;
|
|
723
722
|
/** streaming participant */
|
|
724
723
|
participant: string;
|
|
725
724
|
/** user id */
|
|
726
|
-
|
|
725
|
+
userId: string;
|
|
727
726
|
/** streaming channel label */
|
|
728
|
-
|
|
727
|
+
streamingChannelLabel: string;
|
|
729
728
|
/** streaming channel id */
|
|
730
|
-
|
|
729
|
+
streamingChannelId: string;
|
|
731
730
|
}
|
|
732
731
|
/** Streaming start event */
|
|
733
732
|
export interface StreamingStartedEvent {
|
|
734
733
|
/** clan id */
|
|
735
|
-
|
|
734
|
+
clanId: string;
|
|
736
735
|
/** channel id */
|
|
737
|
-
|
|
736
|
+
channelId: string;
|
|
738
737
|
/** stream url */
|
|
739
|
-
|
|
738
|
+
streamingUrl: string;
|
|
740
739
|
/** status */
|
|
741
|
-
|
|
740
|
+
isStreaming: boolean;
|
|
742
741
|
}
|
|
743
742
|
/** Streaming start event */
|
|
744
743
|
export interface StreamingEndedEvent {
|
|
745
744
|
/** clan id */
|
|
746
|
-
|
|
745
|
+
clanId: string;
|
|
747
746
|
/** channel id */
|
|
748
|
-
|
|
747
|
+
channelId: string;
|
|
749
748
|
}
|
|
750
749
|
export interface ChannelAppEvent {
|
|
751
|
-
|
|
750
|
+
userId: string;
|
|
752
751
|
username: string;
|
|
753
|
-
|
|
754
|
-
|
|
752
|
+
clanId: string;
|
|
753
|
+
channelId: string;
|
|
755
754
|
action: number;
|
|
756
755
|
}
|
|
757
756
|
export interface HandleParticipantMeetStateEvent {
|
|
758
757
|
/** clan id */
|
|
759
|
-
|
|
758
|
+
clanId: string;
|
|
760
759
|
/** channel id */
|
|
761
|
-
|
|
760
|
+
channelId: string;
|
|
762
761
|
/** display name */
|
|
763
|
-
|
|
762
|
+
displayName: string;
|
|
764
763
|
/** state (0: join, 1: leave) */
|
|
765
764
|
state: number;
|
|
766
765
|
/** room name */
|
|
767
|
-
|
|
766
|
+
roomName: string;
|
|
768
767
|
}
|
|
769
768
|
export interface PermissionSet {
|
|
770
769
|
/** Role ID */
|
|
771
|
-
|
|
770
|
+
roleId: string;
|
|
772
771
|
/** User ID */
|
|
773
|
-
|
|
772
|
+
userId: string;
|
|
774
773
|
/** Channel ID */
|
|
775
|
-
|
|
774
|
+
channelId: string;
|
|
776
775
|
/** List permission update */
|
|
777
|
-
|
|
776
|
+
permissionUpdates: ApiPermissionUpdate[];
|
|
778
777
|
/** */
|
|
779
778
|
caller: string;
|
|
780
779
|
}
|
|
781
780
|
export interface PermissionChangedEvent {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
781
|
+
userId: string;
|
|
782
|
+
channelId: string;
|
|
783
|
+
addPermissions: ApiPermissionUpdate[];
|
|
784
|
+
removePermissions: ApiPermissionUpdate[];
|
|
785
|
+
defaultPermissions: ApiPermissionUpdate[];
|
|
787
786
|
}
|
|
788
787
|
export interface DropdownBoxSelected {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
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
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
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
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
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
|
-
|
|
813
|
-
|
|
814
|
-
|
|
811
|
+
channelId: string;
|
|
812
|
+
senderId: string;
|
|
813
|
+
mediaType: number;
|
|
815
814
|
}
|
|
816
815
|
export interface MarkAsRead {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
816
|
+
channelId: string;
|
|
817
|
+
categoryId: string;
|
|
818
|
+
clanId: string;
|
|
820
819
|
}
|
|
821
820
|
export interface WebrtcSignalingFwd {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
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
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
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
|
-
|
|
842
|
-
|
|
840
|
+
userId: string;
|
|
841
|
+
customStatus: string;
|
|
843
842
|
}
|
|
844
843
|
export interface JoinChannelAppData {
|
|
845
|
-
|
|
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
|
-
|
|
853
|
-
|
|
851
|
+
creatorId?: string;
|
|
852
|
+
editorId?: string;
|
|
854
853
|
id?: string;
|
|
855
|
-
|
|
854
|
+
isDefault?: boolean;
|
|
856
855
|
title?: string;
|
|
857
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
902
|
+
permissionList?: ApiPermissionList;
|
|
904
903
|
role_user_req?: any;
|
|
905
|
-
|
|
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
|
-
|
|
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(
|
|
929
|
+
followUsers(userIds: string[]): Promise<Status>;
|
|
931
930
|
/** Join clan chat */
|
|
932
|
-
joinClanChat(
|
|
931
|
+
joinClanChat(clanId: string): Promise<ClanJoin>;
|
|
933
932
|
follower(): Promise<void>;
|
|
934
933
|
/** Join a chat channel on the server. */
|
|
935
|
-
joinChat(
|
|
934
|
+
joinChat(clanId: string, channelId: string, channelType: number, isPublic: boolean): Promise<Channel>;
|
|
936
935
|
/** Leave a chat channel on the server. */
|
|
937
|
-
leaveChat(
|
|
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(
|
|
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(
|
|
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,
|
|
942
|
+
rpc(id?: string, payload?: string, httpKey?: string): Promise<ApiRpc>;
|
|
944
943
|
/** Unfollow one or more users from their status updates. */
|
|
945
|
-
unfollowUsers(
|
|
944
|
+
unfollowUsers(userIds: string[]): Promise<void>;
|
|
946
945
|
/** Update a chat message on a chat channel in the server. */
|
|
947
|
-
updateChatMessage(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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,
|
|
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(
|
|
960
|
+
writeLastSeenMessage(clanId: string, channelId: string, mode: number, messageId: string, timestampSeconds: number, badgeCount: number): Promise<LastSeenMessageEvent>;
|
|
962
961
|
/** Send last pin message */
|
|
963
|
-
writeLastPinMessage(
|
|
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(
|
|
966
|
-
writeActiveArchivedThread(
|
|
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,
|
|
971
|
-
handleMessageButtonClick: (
|
|
972
|
-
handleDropdownBoxSelected: (
|
|
973
|
-
writeVoiceReaction: (emojis: Array<string>,
|
|
974
|
-
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string,
|
|
975
|
-
makeCallPush: (receiverId: string, jsonData: string, channelId: string,
|
|
976
|
-
writeChannelAppEvent: (
|
|
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(
|
|
1180
|
+
joinClanChat(clanId: string): Promise<ClanJoin>;
|
|
1182
1181
|
follower(): Promise<void>;
|
|
1183
|
-
joinChat(
|
|
1184
|
-
handleParticipantMeetState(
|
|
1185
|
-
leaveChat(
|
|
1186
|
-
removeChatMessage(
|
|
1187
|
-
rpc(id?: string, payload?: string,
|
|
1188
|
-
unfollowUsers(
|
|
1189
|
-
updateChatMessage(
|
|
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(
|
|
1192
|
-
writeEphemeralMessage(
|
|
1193
|
-
writeChatMessage(
|
|
1194
|
-
writeMessageReaction(id: string,
|
|
1195
|
-
writeMessageTyping(
|
|
1196
|
-
writeLastSeenMessage(
|
|
1197
|
-
writeLastPinMessage(
|
|
1198
|
-
writeCustomStatus(
|
|
1199
|
-
writeActiveArchivedThread(
|
|
1200
|
-
checkDuplicateName(name: string, condition_id: string, type: number,
|
|
1201
|
-
writeVoiceReaction(emojis: Array<string>,
|
|
1202
|
-
forwardWebrtcSignaling(
|
|
1203
|
-
makeCallPush(
|
|
1204
|
-
handleDropdownBoxSelected(
|
|
1205
|
-
handleMessageButtonClick(
|
|
1206
|
-
writeChannelAppEvent(
|
|
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;
|