mezon-sdk 2.7.3 → 2.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/session.d.ts DELETED
@@ -1,52 +0,0 @@
1
- /**
2
- * Copyright 2022 The Nakama Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- /** A session authenticated for a user with Mezon server. */
17
- export interface ISession {
18
- /** Claims */
19
- /** The authorization token used to construct this session. */
20
- token: string;
21
- /** The UNIX timestamp when this session was created. */
22
- readonly created_at: number;
23
- /** The UNIX timestamp when this session will expire. */
24
- expires_at?: number;
25
- /** The UNIX timestamp when the refresh token will expire. */
26
- refresh_expires_at?: number;
27
- /** Refresh token that can be used for session token renewal. */
28
- refresh_token: string;
29
- /** The ID of the user who owns this session. */
30
- user_id?: string;
31
- /** Any custom properties associated with this session. */
32
- vars?: object;
33
- /** Validate token */
34
- /** If the session has expired. */
35
- isexpired(currenttime: number): boolean;
36
- /** If the refresh token has expired. */
37
- isrefreshexpired(currenttime: number): boolean;
38
- }
39
- export declare class Session implements ISession {
40
- token: string;
41
- readonly created_at: number;
42
- expires_at?: number;
43
- refresh_expires_at?: number;
44
- refresh_token: string;
45
- user_id?: string;
46
- vars?: object;
47
- constructor(token: string, refresh_token: string);
48
- isexpired(currenttime: number): boolean;
49
- isrefreshexpired(currenttime: number): boolean;
50
- update(token: string, refreshToken: string): void;
51
- static restore(token: string, refreshToken: string): Session;
52
- }
package/dist/socket.d.ts DELETED
@@ -1,594 +0,0 @@
1
- /**
2
- * Copyright 2020 The Mezon Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ChannelMessage } from "./client";
17
- import { Session } from "./session";
18
- import { WebSocketAdapter } from "./web_socket_adapter";
19
- /** An object which represents a connected user in the server. */
20
- export interface Presence {
21
- /** The id of the user. */
22
- user_id: string;
23
- /** The session id of the user. */
24
- session_id: string;
25
- /** The username of the user. */
26
- username: string;
27
- /** The node the user is connected to. */
28
- node: string;
29
- /** The status of the user */
30
- status: string;
31
- }
32
- /** A response from a channel join operation. */
33
- export interface Channel {
34
- /** The server-assigned channel id. */
35
- id: string;
36
- chanel_label: string;
37
- /** The presences visible on the chat channel. */
38
- presences: Presence[];
39
- /** The presence of the current user, i.e. yourself. */
40
- self: Presence;
41
- clan_logo: string;
42
- category_name: string;
43
- }
44
- export interface ClanJoin {
45
- clan_join: {
46
- clan_id: string;
47
- };
48
- }
49
- /** Join a realtime chat channel. */
50
- interface ChannelJoin {
51
- channel_join: {
52
- /** The id of the channel to join. */
53
- channel_id: string;
54
- /** The name of the channel to join. */
55
- channel_label: string;
56
- /** The channel type: 1 = Channel, 2 = Direct Message, 3 = Group. */
57
- type: number;
58
- /** Whether channel messages are persisted in the database. */
59
- persistence: boolean;
60
- /** Whether the user's channel presence is hidden when joining. */
61
- hidden: boolean;
62
- };
63
- }
64
- /** Leave a realtime chat channel. */
65
- interface ChannelLeave {
66
- channel_leave: {
67
- /** The id of the channel to leave. */
68
- channel_id: string;
69
- mode: number;
70
- channel_label: string;
71
- };
72
- }
73
- /** UserChannelAddedEvent */
74
- export interface UserChannelAddedEvent {
75
- channel_id: string;
76
- users: AddUsers[];
77
- status: string;
78
- clan_id: string;
79
- channel_type: number;
80
- }
81
- export interface AddUsers {
82
- user_id: string;
83
- avatar: string;
84
- username: string;
85
- }
86
- export interface UserChannelRemovedEvent {
87
- channel_id: string;
88
- user_ids: string[];
89
- }
90
- export interface UserClanRemovedEvent {
91
- clan_id: string;
92
- user_ids: string[];
93
- }
94
- /** Last seen message by user */
95
- export interface LastPinMessageEvent {
96
- /** The channel this message belongs to. */
97
- channel_id: string;
98
- mode: number;
99
- channel_label: string;
100
- /** The unique ID of this message. */
101
- message_id: string;
102
- /** user id */
103
- user_id: string;
104
- /** operation */
105
- operation: number;
106
- }
107
- /** Last seen message by user */
108
- export interface LastSeenMessageEvent {
109
- /** The channel this message belongs to. */
110
- channel_id: string;
111
- mode: number;
112
- channel_label: string;
113
- /** The unique ID of this message. */
114
- message_id: string;
115
- }
116
- /** User is typing */
117
- export interface MessageTypingEvent {
118
- /** The channel this message belongs to. */
119
- channel_id: string;
120
- mode: number;
121
- channel_label: string;
122
- /** Message sender, usually a user ID. */
123
- sender_id: string;
124
- }
125
- export interface UserProfileUpdatedEvent {
126
- user_id: string;
127
- display_name: string;
128
- avatar: string;
129
- about_me: string;
130
- channel_id: string;
131
- clan_id: string;
132
- }
133
- /** An acknowledgement received in response to sending a message on a chat channel. */
134
- export interface ChannelMessageAck {
135
- /** The server-assigned channel ID. */
136
- channel_id: string;
137
- mode: number;
138
- /** A unique ID for the chat message. */
139
- message_id: string;
140
- /** A user-defined code for the chat message. */
141
- code: number;
142
- /** The username of the sender of the message. */
143
- username: string;
144
- /** The UNIX time when the message was created. */
145
- create_time: string;
146
- /** The UNIX time when the message was updated. */
147
- update_time: string;
148
- /** True if the chat message has been stored in history. */
149
- persistence: boolean;
150
- }
151
- /** Send a message to a realtime chat channel. */
152
- interface ChannelMessageSend {
153
- channel_message_send: {
154
- /** Clan Id */
155
- clan_id: string;
156
- /** The server-assigned channel ID. */
157
- channel_id: string;
158
- mode: number;
159
- channel_label: string;
160
- /** The content payload. */
161
- content: any;
162
- mentions?: Array<ApiMessageMention>;
163
- attachments?: Array<ApiMessageAttachment>;
164
- anonymous_message?: boolean;
165
- mention_everyone?: boolean;
166
- avatar: string;
167
- };
168
- }
169
- /** Update a message previously sent to a realtime chat channel. */
170
- interface ChannelMessageUpdate {
171
- channel_message_update: {
172
- /** The server-assigned channel ID. */
173
- channel_id: string;
174
- /** The server-assigned channel label. */
175
- /** A unique ID for the chat message to be updated. */
176
- message_id: string;
177
- /** The content payload. */
178
- content: any;
179
- /** mentions */
180
- mentions?: Array<ApiMessageMention>;
181
- /** attachments */
182
- attachments?: Array<ApiMessageAttachment>;
183
- /** The mode payload. */
184
- mode: number;
185
- };
186
- }
187
- /** Remove a message previously sent to a realtime chat channel. */
188
- interface ChannelMessageRemove {
189
- channel_message_remove: {
190
- /** The server-assigned channel ID. */
191
- channel_id: string;
192
- mode: number;
193
- channel_label: string;
194
- /** A unique ID for the chat message to be removed. */
195
- message_id: string;
196
- };
197
- }
198
- /** Presence update for a particular realtime chat channel. */
199
- export interface ChannelPresenceEvent {
200
- /** The unique identifier of the chat channel. */
201
- channel_id: string;
202
- channel_label: string;
203
- mode: number;
204
- /** Presences of the users who joined the channel. */
205
- joins: Presence[];
206
- /** Presences of users who left the channel. */
207
- leaves: Presence[];
208
- }
209
- export interface VoiceEndedEvent {
210
- id: string;
211
- clan_id: string;
212
- voice_channel_id: string;
213
- }
214
- export interface VoiceStartedEvent {
215
- id: string;
216
- clan_id: string;
217
- voice_channel_id: string;
218
- }
219
- export interface VoiceLeavedEvent {
220
- id: string;
221
- clan_id: string;
222
- voice_channel_id: string;
223
- voice_user_id: string;
224
- }
225
- export interface VoiceJoinedEvent {
226
- /** The unique identifier of the chat channel. */
227
- clan_id: string;
228
- clan_name: string;
229
- id: string;
230
- participant: string;
231
- user_id: string;
232
- voice_channel_label: string;
233
- voice_channel_id: string;
234
- last_screenshot: string;
235
- }
236
- export interface CustomStatusEvent {
237
- clan_id: string;
238
- user_id: string;
239
- username: string;
240
- status: string;
241
- }
242
- export interface ChannelUpdatedEvent {
243
- clan_id: string;
244
- category_id: string;
245
- creator_id: string;
246
- parrent_id: string;
247
- channel_id: string;
248
- channel_label: string;
249
- channel_type: number;
250
- status: number;
251
- }
252
- export interface ChannelCreatedEvent {
253
- clan_id: string;
254
- category_id: string;
255
- creator_id: string;
256
- parrent_id: string;
257
- channel_id: string;
258
- channel_label: string;
259
- channel_private: number;
260
- channel_type: number;
261
- status: number;
262
- }
263
- export interface ChannelDeletedEvent {
264
- clan_id: string;
265
- category_id: string;
266
- channel_id: string;
267
- deletor: string;
268
- }
269
- export interface ClanUpdatedEvent {
270
- clan_id: string;
271
- clan_name: string;
272
- clan_logo: string;
273
- }
274
- export interface ClanProfileUpdatedEvent {
275
- user_id: string;
276
- clan_nick: string;
277
- clan_avatar: string;
278
- clan_id: string;
279
- }
280
- /** Stream identifier */
281
- export interface StreamId {
282
- /** The type of stream (e.g. chat). */
283
- mode: number;
284
- /** The primary stream subject, usually a user id. */
285
- subject: string;
286
- /** A secondary stream subject, for example for a direct chat. */
287
- descriptor: string;
288
- /** Meta-information (e.g. chat room name). */
289
- label: string;
290
- }
291
- /** Stream data. */
292
- export interface StreamData {
293
- /** The stream identifier. */
294
- stream: StreamId;
295
- /** A reference to the user presence that sent this data, if any. */
296
- sender?: Presence;
297
- /** Arbitrary contents of the data message. */
298
- data: string;
299
- /** True if this data was delivered reliably. */
300
- reliable?: boolean;
301
- }
302
- /** Presence updates. */
303
- export interface StreamPresenceEvent {
304
- /** The stream identifier. */
305
- stream: StreamId;
306
- /** Presences of users who joined the stream. */
307
- joins: Presence[];
308
- /** Presences of users who left the stream. */
309
- leaves: Presence[];
310
- }
311
- /** Execute an Lua function on the server. */
312
- interface Rpc {
313
- rpc: ApiRpc;
314
- }
315
- /** Execute an Lua function on the server. */
316
- export interface ApiRpc {
317
- http_key?: string;
318
- id?: string;
319
- payload?: string;
320
- }
321
- /** Application-level heartbeat ping. */
322
- interface Ping {
323
- }
324
- /** A snapshot of statuses for some set of users. */
325
- export interface Status {
326
- /** The user presences to view statuses of. */
327
- presences: Presence[];
328
- }
329
- /** Start receiving status updates for some set of users. */
330
- interface StatusFollow {
331
- /** The IDs of the users to follow. */
332
- status_follow: {
333
- user_ids: string[];
334
- };
335
- }
336
- /** A batch of status updates for a given user. */
337
- export interface StatusPresenceEvent {
338
- /** This join information is in response to a subscription made to be notified when a user comes online. */
339
- joins: Presence[];
340
- /** This join information is in response to a subscription made to be notified when a user goes offline. */
341
- leaves: Presence[];
342
- }
343
- /** Stop receiving status updates for some set of users. */
344
- interface StatusUnfollow {
345
- /** The IDs of user to unfollow. */
346
- status_unfollow: {
347
- user_ids: string[];
348
- };
349
- }
350
- /** Set the user's own status. */
351
- interface StatusUpdate {
352
- /** Status string to set, if not present the user will appear offline. */
353
- status_update: {
354
- status?: string;
355
- };
356
- }
357
- export interface ClanNameExistedEvent {
358
- clan_name: string;
359
- exist: boolean;
360
- }
361
- /** */
362
- export interface StrickerListedEvent {
363
- clan_id: string;
364
- stickers?: Array<ClanSticker>;
365
- }
366
- /** */
367
- export interface ClanSticker {
368
- category?: string;
369
- clan_id?: string;
370
- create_time?: string;
371
- creator_id?: string;
372
- id?: string;
373
- shortname?: string;
374
- source?: string;
375
- }
376
- /** */
377
- export interface EmojiListedEvent {
378
- clan_id: string;
379
- emoji_list?: Array<ClanEmoji>;
380
- }
381
- /** */
382
- export interface ClanEmoji {
383
- category?: string;
384
- creator_id?: string;
385
- id?: string;
386
- shortname?: string;
387
- src?: string;
388
- }
389
- /** */
390
- export interface ChannelDescListEvent {
391
- channeldesc?: Array<ChannelDescription>;
392
- }
393
- /** */
394
- export interface ChannelDescription {
395
- clan_id?: string;
396
- channel_id?: string;
397
- type?: number;
398
- channel_label?: string;
399
- channel_private?: number;
400
- meeting_code?: string;
401
- clan_name?: string;
402
- parrent_id?: string;
403
- }
404
- export interface HashtagDmListEvent {
405
- user_id?: Array<string>;
406
- limit?: number;
407
- hashtag_dm?: Array<HashtagDm>;
408
- }
409
- export interface HashtagDm {
410
- channel_id?: string;
411
- channel_label?: string;
412
- clan_id?: string;
413
- clan_name?: string;
414
- meeting_code?: string;
415
- type?: number;
416
- channel_private?: number;
417
- parrent_id?: string;
418
- }
419
- export interface NotificationChannelSettingEvent {
420
- channel_id?: string;
421
- notification_user_channel?: NotificationUserChannel;
422
- }
423
- export interface NotificationUserChannel {
424
- active?: number;
425
- id?: string;
426
- notification_setting_type?: number;
427
- time_mute?: string;
428
- }
429
- export interface NotificationCategorySettingEvent {
430
- category_id?: string;
431
- notification_user_channel?: NotificationUserChannel;
432
- }
433
- export interface NotificationClanSettingEvent {
434
- clan_id?: string;
435
- notification_setting?: NotificationSetting;
436
- }
437
- export interface NotificationSetting {
438
- id?: string;
439
- notification_setting_type?: number;
440
- }
441
- export interface NotifiReactMessageEvent {
442
- channel_id?: string;
443
- notifi_react_message?: NotifiReactMessage;
444
- }
445
- export interface NotifiReactMessage {
446
- id?: string;
447
- user_id?: string;
448
- channel_id_req?: string;
449
- }
450
- /** A socket connection to Mezon server. */
451
- export interface Socket {
452
- /** Connection is Open */
453
- isOpen(): boolean;
454
- /** Connect to the server. */
455
- connect(session: Session, createStatus: boolean): Promise<Session>;
456
- /** Disconnect from the server. */
457
- disconnect(fireDisconnectEvent: boolean): void;
458
- /** Join clan chat */
459
- joinClanChat(clan_id: string): Promise<ClanJoin>;
460
- /** Join a chat channel on the server. */
461
- joinChat(clan_id: string, channel_id: string, channel_type: number): Promise<Channel>;
462
- /** Leave a chat channel on the server. */
463
- leaveChat(clan_id: string, channel_id: string, channel_type: number): Promise<void>;
464
- /** Remove a chat message from a chat channel on the server. */
465
- removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
466
- /** Execute an RPC function to the server. */
467
- rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
468
- /** Update a chat message on a chat channel in the server. */
469
- updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>): Promise<ChannelMessageAck>;
470
- /** Update the status for the current user online. */
471
- updateStatus(status?: string): Promise<void>;
472
- /** Send a chat message to a chat channel on the server. */
473
- writeChatMessage(clan_id: string, channel_id: string, mode: number, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string): Promise<ChannelMessageAck>;
474
- /** Send message reaction */
475
- writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction>;
476
- /** Send custom user status */
477
- writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
478
- /** Handle disconnect events received from the socket. */
479
- ondisconnect: (evt: Event) => void;
480
- /** Handle error events received from the socket. */
481
- onerror: (evt: Event) => void;
482
- /**
483
- * An application-level heartbeat timeout that fires after the client does not receive a pong from the server after the heartbeat interval.
484
- * Most browsers maintain an internal heartbeat, in which case its unlikely you'll need to use this callback. However, Chrome does not implement an internal heartbeat.
485
- * We fire this separately from `onclose` because heartbeats fail when there's no connectivity, and many browsers don't fire `onclose` until the closing handshake either succeeds or fails.
486
- * In any case, be aware that `onclose` will still fire if there is a heartbeat timeout in a potentially delayed manner.
487
- */
488
- onheartbeattimeout: () => void;
489
- oncustomstatus: (statusEvent: CustomStatusEvent) => void;
490
- /** Receive channel message. */
491
- onchannelmessage: (channelMessage: ChannelMessage) => void;
492
- /** Receive reaction event */
493
- onmessagereaction: (messageReactionEvent: ApiMessageReaction) => void;
494
- /** Receive channel presence updates. */
495
- onchannelpresence: (channelPresence: ChannelPresenceEvent) => void;
496
- /** Receive added user event */
497
- onuserchanneladded: (user: UserChannelAddedEvent) => void;
498
- /** Receive update user event */
499
- onuserprofileupdate: (user: UserProfileUpdatedEvent) => void;
500
- /** Receive channel removed user event */
501
- onuserchannelremoved: (user: UserChannelRemovedEvent) => void;
502
- /** Receive clan removed user event */
503
- onuserclanremoved: (user: UserClanRemovedEvent) => void;
504
- onchannelcreated: (channelCreated: ChannelCreatedEvent) => void;
505
- onchanneldeleted: (channelDeleted: ChannelDeletedEvent) => void;
506
- onchannelupdated: (channelUpdated: ChannelUpdatedEvent) => void;
507
- onclanprofileupdated: (clanprofile: ClanProfileUpdatedEvent) => void;
508
- onclanupdated: (clan: ClanUpdatedEvent) => void;
509
- }
510
- /** Reports an error received from a socket message. */
511
- export interface SocketError {
512
- /** The error code. */
513
- code: number;
514
- /** A message in English to help developers debug the response. */
515
- message: string;
516
- }
517
- /** A socket connection to Mezon server implemented with the DOM's WebSocket API. */
518
- export declare class DefaultSocket implements Socket {
519
- readonly host: string;
520
- readonly port: string;
521
- readonly useSSL: boolean;
522
- verbose: boolean;
523
- readonly adapter: WebSocketAdapter;
524
- readonly sendTimeoutMs: number;
525
- static readonly DefaultHeartbeatTimeoutMs = 10000;
526
- static readonly DefaultSendTimeoutMs = 10000;
527
- static readonly DefaultConnectTimeoutMs = 30000;
528
- private readonly cIds;
529
- private nextCid;
530
- private _heartbeatTimeoutMs;
531
- constructor(host: string, port: string, useSSL?: boolean, verbose?: boolean, adapter?: WebSocketAdapter, sendTimeoutMs?: number);
532
- generatecid(): string;
533
- isOpen(): boolean;
534
- connect(session: Session, createStatus?: boolean, connectTimeoutMs?: number): Promise<Session>;
535
- disconnect(fireDisconnectEvent?: boolean): void;
536
- setHeartbeatTimeoutMs(ms: number): void;
537
- getHeartbeatTimeoutMs(): number;
538
- ondisconnect(evt: Event): void;
539
- onerror(evt: Event): void;
540
- onmessagetyping(messagetyping: MessageTypingEvent): void;
541
- onmessagereaction(messagereaction: ApiMessageReaction): void;
542
- onchannelmessage(channelMessage: ChannelMessage): void;
543
- onchannelpresence(channelPresence: ChannelPresenceEvent): void;
544
- onuserchanneladded(user: UserChannelAddedEvent): void;
545
- onuserprofileupdate(user: UserProfileUpdatedEvent): void;
546
- onuserchannelremoved(user: UserChannelRemovedEvent): void;
547
- onuserclanremoved(user: UserClanRemovedEvent): void;
548
- onnotification(notification: Notification): void;
549
- onstatuspresence(statusPresence: StatusPresenceEvent): void;
550
- onpinmessage(pin: LastPinMessageEvent): void;
551
- onvoiceended(voice: VoiceEndedEvent): void;
552
- onvoicestarted(voice: VoiceStartedEvent): void;
553
- onvoicejoined(voiceParticipant: VoiceJoinedEvent): void;
554
- onvoiceleaved(voiceParticipant: VoiceLeavedEvent): void;
555
- onchannelcreated(channelCreated: ChannelCreatedEvent): void;
556
- onchanneldeleted(channelDeleted: ChannelDeletedEvent): void;
557
- onchannelupdated(channelUpdated: ChannelUpdatedEvent): void;
558
- onclanprofileupdated(clanprofile: ClanProfileUpdatedEvent): void;
559
- onclanupdated(clan: ClanUpdatedEvent): void;
560
- onstreampresence(streamPresence: StreamPresenceEvent): void;
561
- onstreamdata(streamData: StreamData): void;
562
- onheartbeattimeout(): void;
563
- oncustomstatus(statusEvent: CustomStatusEvent): void;
564
- send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping, sendTimeout?: number): Promise<any>;
565
- joinClanChat(clan_id: string): Promise<ClanJoin>;
566
- joinChat(clan_id: string, channel_id: string, channel_type: number): Promise<Channel>;
567
- leaveChat(clan_id: string, channel_id: string, channel_type: number): Promise<void>;
568
- removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
569
- removePartyMember(party_id: string, member: Presence): Promise<void>;
570
- rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
571
- sendPartyData(party_id: string, op_code: number, data: string | Uint8Array): Promise<void>;
572
- unfollowUsers(user_ids: string[]): Promise<void>;
573
- updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>): Promise<ChannelMessageAck>;
574
- updateStatus(status?: string): Promise<void>;
575
- writeChatMessage(clan_id: string, channel_id: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string): Promise<ChannelMessageAck>;
576
- writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction>;
577
- writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
578
- writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
579
- writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
580
- writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
581
- writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
582
- writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
583
- checkDuplicateClanName(clan_name: string): Promise<ClanNameExistedEvent>;
584
- listClanEmojiByClanId(clan_id: string): Promise<EmojiListedEvent>;
585
- ListChannelByUserId(): Promise<ChannelDescListEvent>;
586
- hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
587
- listClanStickersByClanId(clan_id: string): Promise<StrickerListedEvent>;
588
- getNotificationChannelSetting(channel_id: string): Promise<NotificationChannelSettingEvent>;
589
- getNotificationCategorySetting(category_id: string): Promise<NotificationCategorySettingEvent>;
590
- getNotificationClanSetting(clan_id: string): Promise<NotificationClanSettingEvent>;
591
- getNotificationReactMessage(channel_id: string): Promise<NotifiReactMessageEvent>;
592
- private pingPong;
593
- }
594
- export {};
package/dist/utils.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export declare function buildFetchOptions(method: string, options: any, bodyJson: string): any;
2
- export declare function b64EncodeUnicode(str: string): string;
3
- export declare function b64DecodeUnicode(str: string): string;