mezon-js 2.12.36 → 2.12.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
@@ -2853,7 +2853,7 @@ export interface ApiWebhookListResponse {
2853
2853
  }
2854
2854
 
2855
2855
  /** A collection of zero or more notifications. */
2856
- export interface MezonapiEmojiRecentList {
2856
+ export interface ApiEmojiRecentList {
2857
2857
  //Collection of emojiRecents.
2858
2858
  emoji_recents?: Array<ApiEmojiRecent>;
2859
2859
  }
@@ -6007,7 +6007,7 @@ export class MezonApi {
6007
6007
 
6008
6008
  /** get list emoji recent by user id */
6009
6009
  emojiRecentList(bearerToken: string,
6010
- options: any = {}): Promise<MezonapiEmojiRecentList> {
6010
+ options: any = {}): Promise<ApiEmojiRecentList> {
6011
6011
 
6012
6012
  const urlPath = "/v2/emojirecents";
6013
6013
  const queryParams = new Map<string, any>();
package/client.ts CHANGED
@@ -155,7 +155,7 @@ import {
155
155
  ApiMezonOauthClientList,
156
156
  ApiMezonOauthClient,
157
157
  ApiCreateHashChannelAppsResponse,
158
- MezonapiEmojiRecentList,
158
+ ApiEmojiRecentList,
159
159
  ApiUserEventRequest,
160
160
  ApiUpdateRoleOrderRequest,
161
161
  ApiGenerateMezonMeetResponse,
@@ -3482,7 +3482,7 @@ export class Client {
3482
3482
 
3483
3483
  async emojiRecentList(
3484
3484
  session: Session
3485
- ): Promise<MezonapiEmojiRecentList> {
3485
+ ): Promise<ApiEmojiRecentList> {
3486
3486
  if (
3487
3487
  this.autoRefreshSession &&
3488
3488
  session.refresh_token &&
package/dist/api.gen.d.ts CHANGED
@@ -1634,7 +1634,7 @@ export interface ApiWebhookListResponse {
1634
1634
  webhooks?: Array<ApiWebhook>;
1635
1635
  }
1636
1636
  /** A collection of zero or more notifications. */
1637
- export interface MezonapiEmojiRecentList {
1637
+ export interface ApiEmojiRecentList {
1638
1638
  emoji_recents?: Array<ApiEmojiRecent>;
1639
1639
  }
1640
1640
  /** Represents an event to be passed through the server to registered event handlers. */
@@ -2020,7 +2020,7 @@ export declare class MezonApi {
2020
2020
  /** Update ClanEmoj By id */
2021
2021
  updateClanEmojiById(bearerToken: string, id: string, body: MezonUpdateClanEmojiByIdBody, options?: any): Promise<any>;
2022
2022
  /** get list emoji recent by user id */
2023
- emojiRecentList(bearerToken: string, options?: any): Promise<MezonapiEmojiRecentList>;
2023
+ emojiRecentList(bearerToken: string, options?: any): Promise<ApiEmojiRecentList>;
2024
2024
  /** get list emoji by user id */
2025
2025
  getListEmojisByUserId(bearerToken: string, options?: any): Promise<ApiEmojiListedResponse>;
2026
2026
  /** Search message from elasticsearch service. */
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, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, 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, 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, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiUnlockedItemRequest, ApiForSaleItemList, ApiUnlockedItemResponse } from "./api.gen";
16
+ import { ApiAccount, ApiAccountMezon, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, 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, 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, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiUnlockedItemRequest, ApiForSaleItemList, ApiUnlockedItemResponse } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -555,7 +555,7 @@ export declare class Client {
555
555
  listChannelByUserId(session: Session): Promise<ApiChannelDescList>;
556
556
  listChannelUsersUC(session: Session, channel_id: string, limit: number): Promise<ApiAllUsersAddChannelResponse>;
557
557
  getListEmojisByUserId(session: Session): Promise<ApiEmojiListedResponse>;
558
- emojiRecentList(session: Session): Promise<MezonapiEmojiRecentList>;
558
+ emojiRecentList(session: Session): Promise<ApiEmojiRecentList>;
559
559
  getListStickersByUserId(session: Session): Promise<ApiStickerListedResponse>;
560
560
  listUserClansByUserId(session: Session): Promise<ApiAllUserClans>;
561
561
  listRoles(session: Session, clanId?: string, limit?: number, state?: number, cursor?: string): Promise<ApiRoleListEventResponse>;
@@ -52,8 +52,8 @@ var __async = (__this, __arguments, generator) => {
52
52
  };
53
53
 
54
54
  // index.ts
55
- var mezon_js_exports = {};
56
- __export(mezon_js_exports, {
55
+ var index_exports = {};
56
+ __export(index_exports, {
57
57
  ChannelStreamMode: () => ChannelStreamMode,
58
58
  ChannelType: () => ChannelType,
59
59
  Client: () => Client,
@@ -67,7 +67,7 @@ __export(mezon_js_exports, {
67
67
  buildFetchOptions: () => buildFetchOptions,
68
68
  safeJSONParse: () => safeJSONParse
69
69
  });
70
- module.exports = __toCommonJS(mezon_js_exports);
70
+ module.exports = __toCommonJS(index_exports);
71
71
 
72
72
  // ../../node_modules/whatwg-fetch/fetch.js
73
73
  var g = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || // eslint-disable-next-line no-undef
@@ -206,8 +206,7 @@ if (support.iterable) {
206
206
  Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
207
207
  }
208
208
  function consumed(body) {
209
- if (body._noBody)
210
- return;
209
+ if (body._noBody) return;
211
210
  if (body.bodyUsed) {
212
211
  return Promise.reject(new TypeError("Already read"));
213
212
  }
@@ -7997,13 +7996,10 @@ var _DefaultSocket = class _DefaultSocket {
7997
7996
  return response.channel_app_event;
7998
7997
  });
7999
7998
  }
8000
- listDataSocket(api_name, data) {
7999
+ listDataSocket(request) {
8001
8000
  return __async(this, null, function* () {
8002
8001
  const response = yield this.send({
8003
- list_data_socket: {
8004
- api_name,
8005
- data
8006
- }
8002
+ list_data_socket: request
8007
8003
  });
8008
8004
  return response.list_data_socket;
8009
8005
  });
@@ -172,8 +172,7 @@ if (support.iterable) {
172
172
  Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
173
173
  }
174
174
  function consumed(body) {
175
- if (body._noBody)
176
- return;
175
+ if (body._noBody) return;
177
176
  if (body.bodyUsed) {
178
177
  return Promise.reject(new TypeError("Already read"));
179
178
  }
@@ -7963,13 +7962,10 @@ var _DefaultSocket = class _DefaultSocket {
7963
7962
  return response.channel_app_event;
7964
7963
  });
7965
7964
  }
7966
- listDataSocket(api_name, data) {
7965
+ listDataSocket(request) {
7967
7966
  return __async(this, null, function* () {
7968
7967
  const response = yield this.send({
7969
- list_data_socket: {
7970
- api_name,
7971
- data
7972
- }
7968
+ list_data_socket: request
7973
7969
  });
7974
7970
  return response.list_data_socket;
7975
7971
  });
package/dist/socket.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 { ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationUserChannel, ApiPermissionUpdate, ApiRole, ApiRpc, ApiTokenSentEvent, ApiUserActivity, ApiWebhook } from "./api.gen";
16
+ import { ApiAllUsersAddChannelResponse, ApiChannelAttachmentList, ApiChannelDescList, ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiChannelMessageList, ApiChannelSettingListResponse, ApiChannelUserList, ApiClanDescList, ApiCreateEventRequest, ApiEmojiListedResponse, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiListClanWebhookResponse, ApiListFavoriteChannelResponse, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationChannel, ApiNotificationChannelCategorySettingList, ApiNotificationList, ApiNotificationSetting, ApiNotificationUserChannel, ApiNotifiReactMessage, ApiPermissionList, ApiPermissionRoleChannelListEventResponse, ApiPermissionUpdate, ApiRole, ApiRoleList, ApiRoleListEventResponse, ApiRoleUserList, ApiRpc, ApiStickerListedResponse, ApiTokenSentEvent, ApiUserActivity, ApiUserPermissionInChannelListResponse, ApiVoiceChannelUserList, ApiWebhook, ApiWebhookListResponse, ApiEmojiRecentList, ApiFriendList, ApiListChannelAppsResponse, ApiListUserActivity } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { ChannelMessage } from "./client";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -783,7 +783,62 @@ export interface ChannelCanvas {
783
783
  }
784
784
  export interface ListDataSocket {
785
785
  api_name?: string;
786
- data?: any;
786
+ list_clan_req?: any;
787
+ clan_desc_list?: ApiClanDescList;
788
+ list_thread_req?: any;
789
+ channel_desc_list?: ApiChannelDescList;
790
+ list_channel_users_uc_req?: any;
791
+ channel_users_uc_list?: ApiAllUsersAddChannelResponse;
792
+ list_channel_detail_req?: any;
793
+ channel_desc?: ApiChannelDescription;
794
+ list_channel_req?: any;
795
+ list_channel_message_req?: any;
796
+ channel_message_list?: ApiChannelMessageList;
797
+ list_channel_users_req?: any;
798
+ voice_user_list?: ApiVoiceChannelUserList;
799
+ channel_user_list?: ApiChannelUserList;
800
+ list_channel_attachment_req?: any;
801
+ channel_attachment_list?: ApiChannelAttachmentList;
802
+ hashtag_dm_req?: any;
803
+ hashtag_dm_list?: ApiHashtagDmList;
804
+ channel_setting_req?: any;
805
+ channel_setting_list?: ApiChannelSettingListResponse;
806
+ favorite_channel_req?: any;
807
+ favorite_channel_list?: ApiListFavoriteChannelResponse;
808
+ search_thread_req?: any;
809
+ notification_channel?: ApiNotificationChannel;
810
+ notificaion_user_channel?: ApiNotificationUserChannel;
811
+ notification_category?: any;
812
+ notification_clan?: any;
813
+ notification_setting?: ApiNotificationSetting;
814
+ notification_message?: ApiNotifiReactMessage;
815
+ noti_channel_cat_setting_list?: ApiNotificationChannelCategorySettingList;
816
+ list_notification_req?: any;
817
+ notification_list?: ApiNotificationList;
818
+ sticker_list?: ApiStickerListedResponse;
819
+ emoji_recent_list?: ApiEmojiRecentList;
820
+ clan_webhook_req?: any;
821
+ clan_webhook_list?: ApiListClanWebhookResponse;
822
+ webhook_list_req?: any;
823
+ webhook_list?: ApiWebhookListResponse;
824
+ permission_list_req?: any;
825
+ permission_list?: ApiPermissionList;
826
+ role_user_req?: any;
827
+ role_user_list?: ApiRoleUserList;
828
+ permission_user_req?: any;
829
+ role_list?: ApiRoleList;
830
+ role_list_event_req?: any;
831
+ role_event_list?: ApiRoleListEventResponse;
832
+ user_permission_req?: any;
833
+ user_permission_list?: ApiUserPermissionInChannelListResponse;
834
+ permission_role_req?: any;
835
+ permission_role_list?: ApiPermissionRoleChannelListEventResponse;
836
+ emoji_list?: ApiEmojiListedResponse;
837
+ list_friend_req?: any;
838
+ friend_list?: ApiFriendList;
839
+ list_apps_req?: any;
840
+ channel_apps_list?: ApiListChannelAppsResponse;
841
+ user_activity_list?: ApiListUserActivity;
787
842
  }
788
843
  /** A socket connection to Mezon server. */
789
844
  export interface Socket {
@@ -837,7 +892,7 @@ export interface Socket {
837
892
  forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
838
893
  makeCallPush: (receiverId: string, jsonData: string, channelId: string, caller_id: string) => Promise<IncomingCallPush>;
839
894
  writeChannelAppEvent: (clan_id: string, channel_id: string, action: number) => Promise<ChannelAppEvent>;
840
- listDataSocket(api_name: string, data: any): Promise<any>;
895
+ listDataSocket(request: ListDataSocket): Promise<any>;
841
896
  /** Handle disconnect events received from the socket. */
842
897
  ondisconnect: (evt: Event) => void;
843
898
  /** Handle error events received from the socket. */
@@ -1041,7 +1096,7 @@ export declare class DefaultSocket implements Socket {
1041
1096
  handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
1042
1097
  handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
1043
1098
  writeChannelAppEvent(clan_id: string, channel_id: string, action: number): Promise<ChannelAppEvent>;
1044
- listDataSocket(api_name: string, data: any): Promise<any>;
1099
+ listDataSocket(request: ListDataSocket): Promise<any>;
1045
1100
  private pingPong;
1046
1101
  }
1047
1102
  export {};
package/package.json CHANGED
@@ -1,8 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
-
4
- "version": "2.12.36",
5
-
3
+ "version": "2.12.38",
6
4
  "scripts": {
7
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
8
6
  },
@@ -38,7 +36,7 @@
38
36
  "dependencies": {
39
37
  "@scarf/scarf": "^1.1.1",
40
38
  "base64-arraybuffer": "^1.0.2",
41
- "esbuild": "^0.19.11",
39
+ "esbuild": "^0.25.5",
42
40
  "js-base64": "^3.7.4",
43
41
  "whatwg-fetch": "^3.6.2"
44
42
  },
package/socket.ts CHANGED
@@ -15,23 +15,52 @@
15
15
  */
16
16
 
17
17
  import {
18
+ ApiAllUsersAddChannelResponse,
19
+ ApiChannelAttachmentList,
20
+ ApiChannelDescList,
18
21
  ApiChannelDescription,
19
22
  ApiChannelMessage,
20
23
  ApiChannelMessageHeader,
24
+ ApiChannelMessageList,
25
+ ApiChannelSettingListResponse,
26
+ ApiChannelUserList,
27
+ ApiClanDescList,
21
28
  ApiCreateEventRequest,
29
+ ApiEmojiListedResponse,
22
30
  ApiGiveCoffeeEvent,
31
+ ApiHashtagDmList,
32
+ ApiListClanWebhookResponse,
33
+ ApiListFavoriteChannelResponse,
23
34
  ApiMessageAttachment,
24
35
  ApiMessageMention,
25
36
  ApiMessageReaction,
26
37
  ApiMessageRef,
27
38
  ApiNotification,
39
+ ApiNotificationChannel,
40
+ ApiNotificationChannelCategorySettingList,
41
+ ApiNotificationList,
42
+ ApiNotificationSetting,
28
43
  ApiNotificationUserChannel,
44
+ ApiNotifiReactMessage,
45
+ ApiPermissionList,
46
+ ApiPermissionRoleChannelListEventResponse,
29
47
  ApiPermissionUpdate,
30
48
  ApiRole,
49
+ ApiRoleList,
50
+ ApiRoleListEventResponse,
51
+ ApiRoleUserList,
31
52
  ApiRpc,
53
+ ApiStickerListedResponse,
32
54
  ApiTokenSentEvent,
33
55
  ApiUserActivity,
56
+ ApiUserPermissionInChannelListResponse,
57
+ ApiVoiceChannelUserList,
34
58
  ApiWebhook,
59
+ ApiWebhookListResponse,
60
+ ApiEmojiRecentList,
61
+ ApiFriendList,
62
+ ApiListChannelAppsResponse,
63
+ ApiListUserActivity,
35
64
  } from "./api.gen";
36
65
  import { Session } from "./session";
37
66
  import { ChannelMessage } from "./client";
@@ -1120,10 +1149,63 @@ export interface ChannelCanvas {
1120
1149
  }
1121
1150
 
1122
1151
  export interface ListDataSocket {
1123
- //
1124
1152
  api_name?: string;
1125
- //
1126
- data?: any;
1153
+ list_clan_req?: any;
1154
+ clan_desc_list?: ApiClanDescList;
1155
+ list_thread_req?: any;
1156
+ channel_desc_list?: ApiChannelDescList;
1157
+ list_channel_users_uc_req?: any;
1158
+ channel_users_uc_list?: ApiAllUsersAddChannelResponse;
1159
+ list_channel_detail_req?: any;
1160
+ channel_desc?: ApiChannelDescription;
1161
+ list_channel_req?: any;
1162
+ list_channel_message_req?: any;
1163
+ channel_message_list?: ApiChannelMessageList;
1164
+ list_channel_users_req?: any;
1165
+ voice_user_list?: ApiVoiceChannelUserList;
1166
+ channel_user_list?: ApiChannelUserList;
1167
+ list_channel_attachment_req?: any;
1168
+ channel_attachment_list?: ApiChannelAttachmentList;
1169
+ hashtag_dm_req?: any;
1170
+ hashtag_dm_list?: ApiHashtagDmList;
1171
+ channel_setting_req?: any;
1172
+ channel_setting_list?: ApiChannelSettingListResponse;
1173
+ favorite_channel_req?: any;
1174
+ favorite_channel_list?: ApiListFavoriteChannelResponse;
1175
+ search_thread_req?: any;
1176
+ notification_channel?: ApiNotificationChannel;
1177
+ notificaion_user_channel?: ApiNotificationUserChannel;
1178
+ notification_category?: any;
1179
+ notification_clan?: any;
1180
+ notification_setting?: ApiNotificationSetting;
1181
+ notification_message?: ApiNotifiReactMessage;
1182
+ noti_channel_cat_setting_list?: ApiNotificationChannelCategorySettingList;
1183
+ list_notification_req?: any;
1184
+ notification_list?: ApiNotificationList;
1185
+ sticker_list?: ApiStickerListedResponse;
1186
+ emoji_recent_list?: ApiEmojiRecentList;
1187
+ clan_webhook_req?: any;
1188
+ clan_webhook_list?: ApiListClanWebhookResponse;
1189
+ webhook_list_req?: any;
1190
+ webhook_list?: ApiWebhookListResponse;
1191
+ permission_list_req?: any;
1192
+ permission_list?: ApiPermissionList;
1193
+ role_user_req?: any;
1194
+ role_user_list?: ApiRoleUserList;
1195
+ permission_user_req?: any;
1196
+ role_list?: ApiRoleList;
1197
+ role_list_event_req?: any;
1198
+ role_event_list?: ApiRoleListEventResponse;
1199
+ user_permission_req?: any;
1200
+ user_permission_list?: ApiUserPermissionInChannelListResponse;
1201
+ permission_role_req?: any;
1202
+ permission_role_list?: ApiPermissionRoleChannelListEventResponse;
1203
+ emoji_list?: ApiEmojiListedResponse;
1204
+ list_friend_req?: any;
1205
+ friend_list?: ApiFriendList;
1206
+ list_apps_req?: any;
1207
+ channel_apps_list?: ApiListChannelAppsResponse;
1208
+ user_activity_list?: ApiListUserActivity;
1127
1209
  }
1128
1210
 
1129
1211
  function CreateChannelMessageFromEvent(message: any) {
@@ -1423,8 +1505,7 @@ export interface Socket {
1423
1505
  ) => Promise<ChannelAppEvent>;
1424
1506
 
1425
1507
  listDataSocket(
1426
- api_name: string,
1427
- data: any,
1508
+ request: ListDataSocket
1428
1509
  ): Promise<any>;
1429
1510
 
1430
1511
  /** Handle disconnect events received from the socket. */
@@ -2797,14 +2878,10 @@ export class DefaultSocket implements Socket {
2797
2878
  }
2798
2879
 
2799
2880
  async listDataSocket(
2800
- api_name: string,
2801
- data: any
2881
+ request: ListDataSocket
2802
2882
  ): Promise<any> {
2803
2883
  const response = await this.send({
2804
- list_data_socket: {
2805
- api_name: api_name,
2806
- data: data
2807
- },
2884
+ list_data_socket: request,
2808
2885
  });
2809
2886
  return response.list_data_socket;
2810
2887
  }