mezon-js 2.14.8 → 2.14.10

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/api.gen.ts CHANGED
@@ -5,7 +5,6 @@ import { buildFetchOptions } from "./utils";
5
5
  import { encode } from "js-base64";
6
6
  import * as tsproto from "./api/api";
7
7
  import { ApiUpdateChannelDescRequest } from "./client";
8
- import { ChannelMessage } from "./api/api";
9
8
 
10
9
  /** A single user-role pair. */
11
10
  export interface ChannelUserListChannelUser {
@@ -31,6 +30,67 @@ export interface ChannelUserListChannelUser {
31
30
  expired_ban_time?: number;
32
31
  }
33
32
 
33
+
34
+ /** A message sent on a channel. */
35
+ export interface ChannelMessage {
36
+ //The unique ID of this message.
37
+ id: string;
38
+ //
39
+ avatar?: string;
40
+ //The channel this message belongs to.
41
+ channel_id: string;
42
+ //The name of the chat room, or an empty string if this message was not sent through a chat room.
43
+ channel_label: string;
44
+ //The clan this message belong to.
45
+ clan_id?: string;
46
+ //The code representing a message type or category.
47
+ code: number;
48
+ //The content payload.
49
+ content: string;
50
+ //
51
+ reactions?: Array<ApiMessageReaction>;
52
+ //
53
+ mentions?: Array<ApiMessageMention>;
54
+ //
55
+ attachments?: Array<ApiMessageAttachment>;
56
+ //
57
+ references?: Array<ApiMessageRef>;
58
+ //
59
+ referenced_message?: string[];
60
+ //True if the message was persisted to the channel's history, false otherwise.
61
+ persistent?: boolean;
62
+ //Message sender, usually a user ID.
63
+ sender_id: string;
64
+ //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
65
+ update_time?: string;
66
+ //The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
67
+ clan_logo?: string;
68
+ //The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
69
+ category_name?: string;
70
+ //The username of the message sender, if any.
71
+ username?: string;
72
+ // The clan nick name
73
+ clan_nick?: string;
74
+ // The clan avatar
75
+ clan_avatar?: string;
76
+ //
77
+ display_name?: string;
78
+ //
79
+ create_time_seconds?: number;
80
+ //
81
+ update_time_seconds?: number;
82
+ //
83
+ mode?: number;
84
+ //
85
+ message_id?: string;
86
+ //
87
+ hide_editted?: boolean;
88
+ //
89
+ is_public?: boolean;
90
+ //
91
+ topic_id?: string;
92
+ }
93
+
34
94
  /** */
35
95
  export interface ApiBannedUser {
36
96
  //
@@ -3703,7 +3763,7 @@ export class MezonApi {
3703
3763
  return response;
3704
3764
  } else if (response.status >= 200 && response.status < 300) {
3705
3765
  const buffer = await response.arrayBuffer();
3706
- return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiLinkAccountConfirmRequest;
3766
+ return tsproto.LinkAccountConfirmRequest.decode(new Uint8Array(buffer)) as unknown as ApiLinkAccountConfirmRequest;
3707
3767
  } else {
3708
3768
  throw response;
3709
3769
  }
@@ -3744,7 +3804,7 @@ export class MezonApi {
3744
3804
  return response;
3745
3805
  } else if (response.status >= 200 && response.status < 300) {
3746
3806
  const buffer = await response.arrayBuffer();
3747
- return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiLinkAccountConfirmRequest;
3807
+ return tsproto.LinkAccountConfirmRequest.decode(new Uint8Array(buffer)) as unknown as ApiLinkAccountConfirmRequest;
3748
3808
  } else {
3749
3809
  throw response;
3750
3810
  }
package/client.ts CHANGED
@@ -49,10 +49,6 @@ import {
49
49
  ApiInviteUserRes,
50
50
  ApiUploadAttachmentRequest,
51
51
  ApiUploadAttachment,
52
- ApiMessageReaction,
53
- ApiMessageMention,
54
- ApiMessageAttachment,
55
- ApiMessageRef,
56
52
  ApiChannelMessageHeader,
57
53
  ApiVoiceChannelUserList,
58
54
  ApiChannelAttachmentList,
@@ -174,6 +170,7 @@ import {
174
170
  ApiBannedUserList,
175
171
  ApiIsBannedResponse,
176
172
  ApiLogedDeviceList,
173
+ ChannelMessage,
177
174
  } from "./api.gen";
178
175
 
179
176
  import { Session } from "./session";
@@ -231,66 +228,6 @@ export interface RpcResponse {
231
228
  payload?: object;
232
229
  }
233
230
 
234
- /** A message sent on a channel. */
235
- export interface ChannelMessage {
236
- //The unique ID of this message.
237
- id: string;
238
- //
239
- avatar?: string;
240
- //The channel this message belongs to.
241
- channel_id: string;
242
- //The name of the chat room, or an empty string if this message was not sent through a chat room.
243
- channel_label: string;
244
- //The clan this message belong to.
245
- clan_id?: string;
246
- //The code representing a message type or category.
247
- code: number;
248
- //The content payload.
249
- content: string;
250
- //
251
- reactions?: Array<ApiMessageReaction>;
252
- //
253
- mentions?: Array<ApiMessageMention>;
254
- //
255
- attachments?: Array<ApiMessageAttachment>;
256
- //
257
- references?: Array<ApiMessageRef>;
258
- //
259
- referenced_message?: string[];
260
- //True if the message was persisted to the channel's history, false otherwise.
261
- persistent?: boolean;
262
- //Message sender, usually a user ID.
263
- sender_id: string;
264
- //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
265
- update_time?: string;
266
- //The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
267
- clan_logo?: string;
268
- //The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
269
- category_name?: string;
270
- //The username of the message sender, if any.
271
- username?: string;
272
- // The clan nick name
273
- clan_nick?: string;
274
- // The clan avatar
275
- clan_avatar?: string;
276
- //
277
- display_name?: string;
278
- //
279
- create_time_seconds?: number;
280
- //
281
- update_time_seconds?: number;
282
- //
283
- mode?: number;
284
- //
285
- message_id?: string;
286
- //
287
- hide_editted?: boolean;
288
- //
289
- is_public?: boolean;
290
- //
291
- topic_id?: string;
292
- }
293
-
294
231
  /** A list of channel messages, usually a result of a list operation. */
295
232
  export interface ChannelMessageList {
296
233
  /** Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors. */
@@ -1282,7 +1219,7 @@ export class Client {
1282
1219
  result.messages!.push({
1283
1220
  channel_id: m.channel_id,
1284
1221
  code: m.code ? Number(m.code) : 0,
1285
- id: m.message_id,
1222
+ id: m.message_id || '',
1286
1223
  sender_id: m.sender_id,
1287
1224
  username: m.username,
1288
1225
  display_name: m.display_name,
package/dist/api.gen.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ApiUpdateChannelDescRequest } from "./client";
2
- import { ChannelMessage } from "./api/api";
3
2
  /** A single user-role pair. */
4
3
  export interface ChannelUserListChannelUser {
5
4
  clan_avatar?: string;
@@ -13,6 +12,37 @@ export interface ChannelUserListChannelUser {
13
12
  is_banned?: boolean;
14
13
  expired_ban_time?: number;
15
14
  }
15
+ /** A message sent on a channel. */
16
+ export interface ChannelMessage {
17
+ id: string;
18
+ avatar?: string;
19
+ channel_id: string;
20
+ channel_label: string;
21
+ clan_id?: string;
22
+ code: number;
23
+ content: string;
24
+ reactions?: Array<ApiMessageReaction>;
25
+ mentions?: Array<ApiMessageMention>;
26
+ attachments?: Array<ApiMessageAttachment>;
27
+ references?: Array<ApiMessageRef>;
28
+ referenced_message?: string[];
29
+ persistent?: boolean;
30
+ sender_id: string;
31
+ update_time?: string;
32
+ clan_logo?: string;
33
+ category_name?: string;
34
+ username?: string;
35
+ clan_nick?: string;
36
+ clan_avatar?: string;
37
+ display_name?: string;
38
+ create_time_seconds?: number;
39
+ update_time_seconds?: number;
40
+ mode?: number;
41
+ message_id?: string;
42
+ hide_editted?: boolean;
43
+ is_public?: boolean;
44
+ topic_id?: string;
45
+ }
16
46
  /** */
17
47
  export interface ApiBannedUser {
18
48
  ban_time?: number;
package/dist/client.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiAccount, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiForSaleItemList, ApiIsFollowerResponse, ApiIsFollowerRequest, ApiTransferOwnershipRequest, ApiMeetParticipantRequest, ApiLinkAccountConfirmRequest, ApiLinkAccountMezon, ApiUser, ApiFriend, ApiListClanUnreadMsgIndicatorResponse, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApiBannedUserList, ApiIsBannedResponse, ApiLogedDeviceList } from "./api.gen";
16
+ import { ApiAccount, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiForSaleItemList, ApiIsFollowerResponse, ApiIsFollowerRequest, ApiTransferOwnershipRequest, ApiMeetParticipantRequest, ApiLinkAccountConfirmRequest, ApiLinkAccountMezon, ApiUser, ApiFriend, ApiListClanUnreadMsgIndicatorResponse, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApiBannedUserList, ApiIsBannedResponse, ApiLogedDeviceList, ChannelMessage } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -58,37 +58,6 @@ export interface RpcResponse {
58
58
  /** The payload of the function which must be a JSON object. */
59
59
  payload?: object;
60
60
  }
61
- /** A message sent on a channel. */
62
- export interface ChannelMessage {
63
- id: string;
64
- avatar?: string;
65
- channel_id: string;
66
- channel_label: string;
67
- clan_id?: string;
68
- code: number;
69
- content: string;
70
- reactions?: Array<ApiMessageReaction>;
71
- mentions?: Array<ApiMessageMention>;
72
- attachments?: Array<ApiMessageAttachment>;
73
- references?: Array<ApiMessageRef>;
74
- referenced_message?: string[];
75
- persistent?: boolean;
76
- sender_id: string;
77
- update_time?: string;
78
- clan_logo?: string;
79
- category_name?: string;
80
- username?: string;
81
- clan_nick?: string;
82
- clan_avatar?: string;
83
- display_name?: string;
84
- create_time_seconds?: number;
85
- update_time_seconds?: number;
86
- mode?: number;
87
- message_id?: string;
88
- hide_editted?: boolean;
89
- is_public?: boolean;
90
- topic_id?: string;
91
- }
92
61
  /** A list of channel messages, usually a result of a list operation. */
93
62
  export interface ChannelMessageList {
94
63
  /** Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors. */
package/dist/index.d.ts CHANGED
@@ -22,4 +22,4 @@ export * from "./utils";
22
22
  /**
23
23
  * Reexported due to duplicate definition of ChannelMessage in [Client]{@link ./client.ts} and [Session]{@link ./session.ts}
24
24
  */
25
- export { ChannelMessage } from "./client";
25
+ export { ChannelMessage } from "./api.gen";
@@ -31008,7 +31008,7 @@ var MezonApi = class {
31008
31008
  return response;
31009
31009
  } else if (response.status >= 200 && response.status < 300) {
31010
31010
  const buffer = yield response.arrayBuffer();
31011
- return Session.decode(new Uint8Array(buffer));
31011
+ return LinkAccountConfirmRequest.decode(new Uint8Array(buffer));
31012
31012
  } else {
31013
31013
  throw response;
31014
31014
  }
@@ -31040,7 +31040,7 @@ var MezonApi = class {
31040
31040
  return response;
31041
31041
  } else if (response.status >= 200 && response.status < 300) {
31042
31042
  const buffer = yield response.arrayBuffer();
31043
- return Session.decode(new Uint8Array(buffer));
31043
+ return LinkAccountConfirmRequest.decode(new Uint8Array(buffer));
31044
31044
  } else {
31045
31045
  throw response;
31046
31046
  }
@@ -39529,7 +39529,7 @@ var Client = class {
39529
39529
  result.messages.push({
39530
39530
  channel_id: m.channel_id,
39531
39531
  code: m.code ? Number(m.code) : 0,
39532
- id: m.message_id,
39532
+ id: m.message_id || "",
39533
39533
  sender_id: m.sender_id,
39534
39534
  username: m.username,
39535
39535
  display_name: m.display_name,
@@ -30978,7 +30978,7 @@ var MezonApi = class {
30978
30978
  return response;
30979
30979
  } else if (response.status >= 200 && response.status < 300) {
30980
30980
  const buffer = yield response.arrayBuffer();
30981
- return Session.decode(new Uint8Array(buffer));
30981
+ return LinkAccountConfirmRequest.decode(new Uint8Array(buffer));
30982
30982
  } else {
30983
30983
  throw response;
30984
30984
  }
@@ -31010,7 +31010,7 @@ var MezonApi = class {
31010
31010
  return response;
31011
31011
  } else if (response.status >= 200 && response.status < 300) {
31012
31012
  const buffer = yield response.arrayBuffer();
31013
- return Session.decode(new Uint8Array(buffer));
31013
+ return LinkAccountConfirmRequest.decode(new Uint8Array(buffer));
31014
31014
  } else {
31015
31015
  throw response;
31016
31016
  }
@@ -39499,7 +39499,7 @@ var Client = class {
39499
39499
  result.messages.push({
39500
39500
  channel_id: m.channel_id,
39501
39501
  code: m.code ? Number(m.code) : 0,
39502
- id: m.message_id,
39502
+ id: m.message_id || "",
39503
39503
  sender_id: m.sender_id,
39504
39504
  username: m.username,
39505
39505
  display_name: m.display_name,
package/dist/socket.d.ts CHANGED
@@ -13,9 +13,8 @@
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, 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, 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 "./api.gen";
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 {
package/index.ts CHANGED
@@ -25,4 +25,4 @@ export * from "./utils"
25
25
  /**
26
26
  * Reexported due to duplicate definition of ChannelMessage in [Client]{@link ./client.ts} and [Session]{@link ./session.ts}
27
27
  */
28
- export { ChannelMessage } from "./client";
28
+ export { ChannelMessage } from "./api.gen";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.14.8",
3
+ "version": "2.14.10",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -61,9 +61,9 @@ import {
61
61
  ApiListChannelAppsResponse,
62
62
  ApiListUserActivity,
63
63
  ApiListClanUnreadMsgIndicatorResponse,
64
+ ChannelMessage,
64
65
  } from "./api.gen";
65
66
  import { Session } from "./session";
66
- import { ChannelMessage } from "./client";
67
67
  import { WebSocketAdapter, WebSocketAdapterText } from "./web_socket_adapter";
68
68
  import { safeJSONParse } from "./utils";
69
69