mezon-js 2.11.36 → 2.11.38

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
@@ -324,6 +324,20 @@ export interface RoleUserListRoleUser {
324
324
  username?: string;
325
325
  }
326
326
 
327
+ /** */
328
+ export interface UpdateClanOrderRequestClanOrder {
329
+ //
330
+ clan_id?: string;
331
+ //
332
+ order?: number;
333
+ }
334
+
335
+ /** */
336
+ export interface ApiUpdateClanOrderRequest {
337
+ //
338
+ clans_order?: Array<UpdateClanOrderRequestClanOrder>;
339
+ }
340
+
327
341
  /** A user with additional account details. Always the current user. */
328
342
  export interface ApiAccount {
329
343
  //The custom id in the user's account.
@@ -11649,4 +11663,40 @@ export class MezonApi {
11649
11663
  ),
11650
11664
  ]);
11651
11665
  }
11666
+
11667
+ /** */
11668
+ updateClanOrder(bearerToken: string,
11669
+ body:ApiUpdateClanOrderRequest,
11670
+ options: any = {}): Promise<any> {
11671
+
11672
+ if (body === null || body === undefined) {
11673
+ throw new Error("'body' is a required parameter but is null or undefined.");
11674
+ }
11675
+ const urlPath = "/v2/updateclanorder";
11676
+ const queryParams = new Map<string, any>();
11677
+
11678
+ let bodyJson : string = "";
11679
+ bodyJson = JSON.stringify(body || {});
11680
+
11681
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
11682
+ const fetchOptions = buildFetchOptions("PUT", options, bodyJson);
11683
+ if (bearerToken) {
11684
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
11685
+ }
11686
+
11687
+ return Promise.race([
11688
+ fetch(fullUrl, fetchOptions).then((response) => {
11689
+ if (response.status == 204) {
11690
+ return response;
11691
+ } else if (response.status >= 200 && response.status < 300) {
11692
+ return response.json();
11693
+ } else {
11694
+ throw response;
11695
+ }
11696
+ }),
11697
+ new Promise((_, reject) =>
11698
+ setTimeout(reject, this.timeoutMs, "Request timed out.")
11699
+ ),
11700
+ ]);
11701
+ }
11652
11702
  }
package/client.ts CHANGED
@@ -169,6 +169,7 @@ import {
169
169
  ApiUpdateRoleOrderRequest,
170
170
  ApiGenerateMezonMeetResponse,
171
171
  ApiGenerateMeetTokenExternalResponse,
172
+ ApiUpdateClanOrderRequest,
172
173
  } from "./api.gen";
173
174
 
174
175
  import { Session } from "./session";
@@ -5211,4 +5212,24 @@ export class Client {
5211
5212
  return Promise.resolve(response);
5212
5213
  });
5213
5214
  }
5215
+
5216
+ /** Update clan order to view. */
5217
+ async updateClanOrder(
5218
+ session: Session,
5219
+ request: ApiUpdateClanOrderRequest
5220
+ ): Promise<boolean> {
5221
+ if (
5222
+ this.autoRefreshSession &&
5223
+ session.refresh_token &&
5224
+ session.isexpired(Date.now() / 1000)
5225
+ ) {
5226
+ await this.sessionRefresh(session);
5227
+ }
5228
+
5229
+ return this.apiClient
5230
+ .updateClanOrder(session.token, request)
5231
+ .then((response: any) => {
5232
+ return response !== undefined;
5233
+ });
5234
+ }
5214
5235
  }
package/dist/api.gen.d.ts CHANGED
@@ -185,6 +185,15 @@ export interface RoleUserListRoleUser {
185
185
  online?: boolean;
186
186
  username?: string;
187
187
  }
188
+ /** */
189
+ export interface UpdateClanOrderRequestClanOrder {
190
+ clan_id?: string;
191
+ order?: number;
192
+ }
193
+ /** */
194
+ export interface ApiUpdateClanOrderRequest {
195
+ clans_order?: Array<UpdateClanOrderRequestClanOrder>;
196
+ }
188
197
  /** A user with additional account details. Always the current user. */
189
198
  export interface ApiAccount {
190
199
  custom_id?: string;
@@ -2258,4 +2267,6 @@ export declare class MezonApi {
2258
2267
  generateMeetTokenExternal(bearerToken: string, token: string, displayName?: string, isGuest?: boolean, options?: any): Promise<ApiGenerateMeetTokenExternalResponse>;
2259
2268
  /** List channels detail */
2260
2269
  listChannelDetail(bearerToken: string, channelId: string, options?: any): Promise<ApiChannelDescription>;
2270
+ /** */
2271
+ updateClanOrder(bearerToken: string, body: ApiUpdateClanOrderRequest, options?: any): Promise<any>;
2261
2272
  }
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, ApiAccountMezon, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, 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, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, 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, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, MezonapiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse } from "./api.gen";
16
+ import { ApiAccount, ApiAccountMezon, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, 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, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, 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, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, MezonapiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -661,4 +661,6 @@ export declare class Client {
661
661
  deleteAccount(session: Session): Promise<any>;
662
662
  createExternalMezonMeet(session: Session): Promise<ApiGenerateMezonMeetResponse>;
663
663
  generateMeetTokenExternal(token: string, displayName?: string, isGuest?: boolean): Promise<ApiGenerateMeetTokenExternalResponse>;
664
+ /** Update clan order to view. */
665
+ updateClanOrder(session: Session, request: ApiUpdateClanOrderRequest): Promise<boolean>;
664
666
  }
@@ -7336,6 +7336,35 @@ var MezonApi = class {
7336
7336
  )
7337
7337
  ]);
7338
7338
  }
7339
+ /** */
7340
+ updateClanOrder(bearerToken, body, options = {}) {
7341
+ if (body === null || body === void 0) {
7342
+ throw new Error("'body' is a required parameter but is null or undefined.");
7343
+ }
7344
+ const urlPath = "/v2/updateclanorder";
7345
+ const queryParams = /* @__PURE__ */ new Map();
7346
+ let bodyJson = "";
7347
+ bodyJson = JSON.stringify(body || {});
7348
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
7349
+ const fetchOptions = buildFetchOptions("PUT", options, bodyJson);
7350
+ if (bearerToken) {
7351
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
7352
+ }
7353
+ return Promise.race([
7354
+ fetch(fullUrl, fetchOptions).then((response) => {
7355
+ if (response.status == 204) {
7356
+ return response;
7357
+ } else if (response.status >= 200 && response.status < 300) {
7358
+ return response.json();
7359
+ } else {
7360
+ throw response;
7361
+ }
7362
+ }),
7363
+ new Promise(
7364
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7365
+ )
7366
+ ]);
7367
+ }
7339
7368
  };
7340
7369
 
7341
7370
  // session.ts
@@ -8302,14 +8331,15 @@ var _DefaultSocket = class _DefaultSocket {
8302
8331
  return response.message_reaction_event;
8303
8332
  });
8304
8333
  }
8305
- writeMessageTyping(clan_id, channel_id, mode, is_public) {
8334
+ writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name) {
8306
8335
  return __async(this, null, function* () {
8307
8336
  const response = yield this.send({
8308
8337
  message_typing_event: {
8309
8338
  clan_id,
8310
8339
  channel_id,
8311
8340
  mode,
8312
- is_public
8341
+ is_public,
8342
+ sender_display_name
8313
8343
  }
8314
8344
  });
8315
8345
  return response.message_typing_event;
@@ -11293,4 +11323,15 @@ var Client = class {
11293
11323
  });
11294
11324
  });
11295
11325
  }
11326
+ /** Update clan order to view. */
11327
+ updateClanOrder(session, request) {
11328
+ return __async(this, null, function* () {
11329
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
11330
+ yield this.sessionRefresh(session);
11331
+ }
11332
+ return this.apiClient.updateClanOrder(session.token, request).then((response) => {
11333
+ return response !== void 0;
11334
+ });
11335
+ });
11336
+ }
11296
11337
  };
@@ -7302,6 +7302,35 @@ var MezonApi = class {
7302
7302
  )
7303
7303
  ]);
7304
7304
  }
7305
+ /** */
7306
+ updateClanOrder(bearerToken, body, options = {}) {
7307
+ if (body === null || body === void 0) {
7308
+ throw new Error("'body' is a required parameter but is null or undefined.");
7309
+ }
7310
+ const urlPath = "/v2/updateclanorder";
7311
+ const queryParams = /* @__PURE__ */ new Map();
7312
+ let bodyJson = "";
7313
+ bodyJson = JSON.stringify(body || {});
7314
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
7315
+ const fetchOptions = buildFetchOptions("PUT", options, bodyJson);
7316
+ if (bearerToken) {
7317
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
7318
+ }
7319
+ return Promise.race([
7320
+ fetch(fullUrl, fetchOptions).then((response) => {
7321
+ if (response.status == 204) {
7322
+ return response;
7323
+ } else if (response.status >= 200 && response.status < 300) {
7324
+ return response.json();
7325
+ } else {
7326
+ throw response;
7327
+ }
7328
+ }),
7329
+ new Promise(
7330
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7331
+ )
7332
+ ]);
7333
+ }
7305
7334
  };
7306
7335
 
7307
7336
  // session.ts
@@ -8268,14 +8297,15 @@ var _DefaultSocket = class _DefaultSocket {
8268
8297
  return response.message_reaction_event;
8269
8298
  });
8270
8299
  }
8271
- writeMessageTyping(clan_id, channel_id, mode, is_public) {
8300
+ writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name) {
8272
8301
  return __async(this, null, function* () {
8273
8302
  const response = yield this.send({
8274
8303
  message_typing_event: {
8275
8304
  clan_id,
8276
8305
  channel_id,
8277
8306
  mode,
8278
- is_public
8307
+ is_public,
8308
+ sender_display_name
8279
8309
  }
8280
8310
  });
8281
8311
  return response.message_typing_event;
@@ -11259,6 +11289,17 @@ var Client = class {
11259
11289
  });
11260
11290
  });
11261
11291
  }
11292
+ /** Update clan order to view. */
11293
+ updateClanOrder(session, request) {
11294
+ return __async(this, null, function* () {
11295
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
11296
+ yield this.sessionRefresh(session);
11297
+ }
11298
+ return this.apiClient.updateClanOrder(session.token, request).then((response) => {
11299
+ return response !== void 0;
11300
+ });
11301
+ });
11302
+ }
11262
11303
  };
11263
11304
  export {
11264
11305
  ChannelStreamMode,
package/dist/socket.d.ts CHANGED
@@ -179,6 +179,8 @@ export interface MessageTypingEvent {
179
179
  /** Message sender, usually a user ID. */
180
180
  sender_id: string;
181
181
  is_public: boolean;
182
+ sender_username: string;
183
+ sender_display_name: string;
182
184
  }
183
185
  export interface UserProfileUpdatedEvent {
184
186
  user_id: string;
@@ -772,7 +774,7 @@ export interface Socket {
772
774
  /** Send a chat message to a chat channel on the server. */
773
775
  writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
774
776
  /** Send message typing */
775
- writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
777
+ writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
776
778
  /** Send message reaction */
777
779
  writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string, emoji_recent_id?: string): Promise<ApiMessageReaction>;
778
780
  /** Send last seen message */
@@ -981,7 +983,7 @@ export declare class DefaultSocket implements Socket {
981
983
  updateStatus(status?: string): Promise<void>;
982
984
  writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
983
985
  writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string, emoji_recent_id?: string): Promise<ApiMessageReaction>;
984
- writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
986
+ writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
985
987
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
986
988
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
987
989
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.11.36",
4
+ "version": "2.11.38",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -261,6 +261,10 @@ export interface MessageTypingEvent {
261
261
  sender_id: string;
262
262
  // Is public
263
263
  is_public: boolean;
264
+ // sender username
265
+ sender_username: string;
266
+ // sender display name
267
+ sender_display_name: string;
264
268
  }
265
269
 
266
270
  // user profile updated event
@@ -1153,7 +1157,8 @@ export interface Socket {
1153
1157
  clan_id: string,
1154
1158
  channel_id: string,
1155
1159
  mode: number,
1156
- is_public: boolean
1160
+ is_public: boolean,
1161
+ sender_display_name: string,
1157
1162
  ): Promise<MessageTypingEvent>;
1158
1163
 
1159
1164
  /** Send message reaction */
@@ -2442,7 +2447,8 @@ export class DefaultSocket implements Socket {
2442
2447
  clan_id: string,
2443
2448
  channel_id: string,
2444
2449
  mode: number,
2445
- is_public: boolean
2450
+ is_public: boolean,
2451
+ sender_display_name: string
2446
2452
  ): Promise<MessageTypingEvent> {
2447
2453
  const response = await this.send({
2448
2454
  message_typing_event: {
@@ -2450,6 +2456,7 @@ export class DefaultSocket implements Socket {
2450
2456
  channel_id: channel_id,
2451
2457
  mode: mode,
2452
2458
  is_public: is_public,
2459
+ sender_display_name: sender_display_name
2453
2460
  },
2454
2461
  });
2455
2462
  return response.message_typing_event;