mezon-js 2.9.12 → 2.9.14

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.
@@ -2186,6 +2186,33 @@ var MezonApi = class {
2186
2186
  )
2187
2187
  ]);
2188
2188
  }
2189
+ /** list user add channel by channel ids */
2190
+ listUsersAddChannelByChannelId(bearerToken, channelId, limit, options = {}) {
2191
+ const urlPath = "/v2/channeldesc/users/add";
2192
+ const queryParams = /* @__PURE__ */ new Map();
2193
+ queryParams.set("channel_id", channelId);
2194
+ queryParams.set("limit", limit);
2195
+ let bodyJson = "";
2196
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2197
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
2198
+ if (bearerToken) {
2199
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2200
+ }
2201
+ return Promise.race([
2202
+ fetch(fullUrl, fetchOptions).then((response) => {
2203
+ if (response.status == 204) {
2204
+ return response;
2205
+ } else if (response.status >= 200 && response.status < 300) {
2206
+ return response.json();
2207
+ } else {
2208
+ throw response;
2209
+ }
2210
+ }),
2211
+ new Promise(
2212
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
2213
+ )
2214
+ ]);
2215
+ }
2189
2216
  /** Delete a channel by ID. */
2190
2217
  deleteChannelDesc(bearerToken, channelId, options = {}) {
2191
2218
  if (channelId === null || channelId === void 0) {
@@ -2804,6 +2831,31 @@ var MezonApi = class {
2804
2831
  )
2805
2832
  ]);
2806
2833
  }
2834
+ /** get list emoji by user id */
2835
+ getListEmojisByUserId(bearerToken, options = {}) {
2836
+ const urlPath = "/v2/emojis";
2837
+ const queryParams = /* @__PURE__ */ new Map();
2838
+ let bodyJson = "";
2839
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2840
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
2841
+ if (bearerToken) {
2842
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2843
+ }
2844
+ return Promise.race([
2845
+ fetch(fullUrl, fetchOptions).then((response) => {
2846
+ if (response.status == 204) {
2847
+ return response;
2848
+ } else if (response.status >= 200 && response.status < 300) {
2849
+ return response.json();
2850
+ } else {
2851
+ throw response;
2852
+ }
2853
+ }),
2854
+ new Promise(
2855
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
2856
+ )
2857
+ ]);
2858
+ }
2807
2859
  /** Search message from elasticsearch service. */
2808
2860
  searchMessage(bearerToken, body, options = {}) {
2809
2861
  if (body === null || body === void 0) {
@@ -3176,6 +3228,32 @@ var MezonApi = class {
3176
3228
  )
3177
3229
  ]);
3178
3230
  }
3231
+ /** List GetChannelCategoryNotiSettingsList */
3232
+ getChannelCategoryNotiSettingsList(bearerToken, clanId, options = {}) {
3233
+ const urlPath = "/v2/getChannelCategoryNotiSettingsList";
3234
+ const queryParams = /* @__PURE__ */ new Map();
3235
+ queryParams.set("clan_id", clanId);
3236
+ let bodyJson = "";
3237
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3238
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3239
+ if (bearerToken) {
3240
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3241
+ }
3242
+ return Promise.race([
3243
+ fetch(fullUrl, fetchOptions).then((response) => {
3244
+ if (response.status == 204) {
3245
+ return response;
3246
+ } else if (response.status >= 200 && response.status < 300) {
3247
+ return response.json();
3248
+ } else {
3249
+ throw response;
3250
+ }
3251
+ }),
3252
+ new Promise(
3253
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3254
+ )
3255
+ ]);
3256
+ }
3179
3257
  /** */
3180
3258
  getUserProfileOnClan(bearerToken, clanId, options = {}) {
3181
3259
  if (clanId === null || clanId === void 0) {
@@ -3204,6 +3282,110 @@ var MezonApi = class {
3204
3282
  )
3205
3283
  ]);
3206
3284
  }
3285
+ /** List GetNotificationChannel */
3286
+ getNotificationCategory(bearerToken, categoryId, options = {}) {
3287
+ const urlPath = "/v2/getnotificationcategory";
3288
+ const queryParams = /* @__PURE__ */ new Map();
3289
+ queryParams.set("category_id", categoryId);
3290
+ let bodyJson = "";
3291
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3292
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3293
+ if (bearerToken) {
3294
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3295
+ }
3296
+ return Promise.race([
3297
+ fetch(fullUrl, fetchOptions).then((response) => {
3298
+ if (response.status == 204) {
3299
+ return response;
3300
+ } else if (response.status >= 200 && response.status < 300) {
3301
+ return response.json();
3302
+ } else {
3303
+ throw response;
3304
+ }
3305
+ }),
3306
+ new Promise(
3307
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3308
+ )
3309
+ ]);
3310
+ }
3311
+ /** List GetNotificationChannel */
3312
+ getNotificationChannel(bearerToken, channelId, options = {}) {
3313
+ const urlPath = "/v2/getnotificationchannel";
3314
+ const queryParams = /* @__PURE__ */ new Map();
3315
+ queryParams.set("channel_id", channelId);
3316
+ let bodyJson = "";
3317
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3318
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3319
+ if (bearerToken) {
3320
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3321
+ }
3322
+ return Promise.race([
3323
+ fetch(fullUrl, fetchOptions).then((response) => {
3324
+ if (response.status == 204) {
3325
+ return response;
3326
+ } else if (response.status >= 200 && response.status < 300) {
3327
+ return response.json();
3328
+ } else {
3329
+ throw response;
3330
+ }
3331
+ }),
3332
+ new Promise(
3333
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3334
+ )
3335
+ ]);
3336
+ }
3337
+ /** List GetNotificationClan */
3338
+ getNotificationClan(bearerToken, clanId, options = {}) {
3339
+ const urlPath = "/v2/getnotificationclan";
3340
+ const queryParams = /* @__PURE__ */ new Map();
3341
+ queryParams.set("clan_id", clanId);
3342
+ let bodyJson = "";
3343
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3344
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3345
+ if (bearerToken) {
3346
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3347
+ }
3348
+ return Promise.race([
3349
+ fetch(fullUrl, fetchOptions).then((response) => {
3350
+ if (response.status == 204) {
3351
+ return response;
3352
+ } else if (response.status >= 200 && response.status < 300) {
3353
+ return response.json();
3354
+ } else {
3355
+ throw response;
3356
+ }
3357
+ }),
3358
+ new Promise(
3359
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3360
+ )
3361
+ ]);
3362
+ }
3363
+ /** List GetNotificationReactMessage */
3364
+ getNotificationReactMessage(bearerToken, channelId, options = {}) {
3365
+ const urlPath = "/v2/getnotificationreactmessage";
3366
+ const queryParams = /* @__PURE__ */ new Map();
3367
+ queryParams.set("channel_id", channelId);
3368
+ let bodyJson = "";
3369
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3370
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3371
+ if (bearerToken) {
3372
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3373
+ }
3374
+ return Promise.race([
3375
+ fetch(fullUrl, fetchOptions).then((response) => {
3376
+ if (response.status == 204) {
3377
+ return response;
3378
+ } else if (response.status >= 200 && response.status < 300) {
3379
+ return response.json();
3380
+ } else {
3381
+ throw response;
3382
+ }
3383
+ }),
3384
+ new Promise(
3385
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3386
+ )
3387
+ ]);
3388
+ }
3207
3389
  /** Give a coffee */
3208
3390
  giveMeACoffee(bearerToken, body, options = {}) {
3209
3391
  if (body === null || body === void 0) {
@@ -3233,6 +3415,33 @@ var MezonApi = class {
3233
3415
  )
3234
3416
  ]);
3235
3417
  }
3418
+ /** List HashtagDMList */
3419
+ hashtagDMList(bearerToken, userId, limit, options = {}) {
3420
+ const urlPath = "/v2/hashtagdmlist";
3421
+ const queryParams = /* @__PURE__ */ new Map();
3422
+ queryParams.set("user_id", userId);
3423
+ queryParams.set("limit", limit);
3424
+ let bodyJson = "";
3425
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3426
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3427
+ if (bearerToken) {
3428
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3429
+ }
3430
+ return Promise.race([
3431
+ fetch(fullUrl, fetchOptions).then((response) => {
3432
+ if (response.status == 204) {
3433
+ return response;
3434
+ } else if (response.status >= 200 && response.status < 300) {
3435
+ return response.json();
3436
+ } else {
3437
+ throw response;
3438
+ }
3439
+ }),
3440
+ new Promise(
3441
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3442
+ )
3443
+ ]);
3444
+ }
3236
3445
  /** Add users to a channel. */
3237
3446
  createLinkInviteUser(bearerToken, body, options = {}) {
3238
3447
  if (body === null || body === void 0) {
@@ -3318,6 +3527,31 @@ var MezonApi = class {
3318
3527
  )
3319
3528
  ]);
3320
3529
  }
3530
+ /** List HashtagDMList */
3531
+ listChannelByUserId(bearerToken, options = {}) {
3532
+ const urlPath = "/v2/listchannelbyuserid";
3533
+ const queryParams = /* @__PURE__ */ new Map();
3534
+ let bodyJson = "";
3535
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3536
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3537
+ if (bearerToken) {
3538
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3539
+ }
3540
+ return Promise.race([
3541
+ fetch(fullUrl, fetchOptions).then((response) => {
3542
+ if (response.status == 204) {
3543
+ return response;
3544
+ } else if (response.status >= 200 && response.status < 300) {
3545
+ return response.json();
3546
+ } else {
3547
+ throw response;
3548
+ }
3549
+ }),
3550
+ new Promise(
3551
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3552
+ )
3553
+ ]);
3554
+ }
3321
3555
  /** set mute notification user channel. */
3322
3556
  setMuteNotificationCategory(bearerToken, body, options = {}) {
3323
3557
  if (body === null || body === void 0) {
@@ -3624,6 +3858,35 @@ var MezonApi = class {
3624
3858
  )
3625
3859
  ]);
3626
3860
  }
3861
+ /** Ossrs http callback. */
3862
+ streamingServerCallback(bearerToken, body, options = {}) {
3863
+ if (body === null || body === void 0) {
3864
+ throw new Error("'body' is a required parameter but is null or undefined.");
3865
+ }
3866
+ const urlPath = "/v2/ossrs/callback";
3867
+ const queryParams = /* @__PURE__ */ new Map();
3868
+ let bodyJson = "";
3869
+ bodyJson = JSON.stringify(body || {});
3870
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3871
+ const fetchOptions = buildFetchOptions("POST", options, bodyJson);
3872
+ if (bearerToken) {
3873
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3874
+ }
3875
+ return Promise.race([
3876
+ fetch(fullUrl, fetchOptions).then((response) => {
3877
+ if (response.status == 204) {
3878
+ return response;
3879
+ } else if (response.status >= 200 && response.status < 300) {
3880
+ return response.json();
3881
+ } else {
3882
+ throw response;
3883
+ }
3884
+ }),
3885
+ new Promise(
3886
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3887
+ )
3888
+ ]);
3889
+ }
3627
3890
  /** set permission role channel. */
3628
3891
  setRoleChannelPermission(bearerToken, body, options = {}) {
3629
3892
  if (body === null || body === void 0) {
@@ -4247,6 +4510,31 @@ var MezonApi = class {
4247
4510
  )
4248
4511
  ]);
4249
4512
  }
4513
+ /** get list sticker by user id */
4514
+ getListStickersByUserId(bearerToken, options = {}) {
4515
+ const urlPath = "/v2/stickers";
4516
+ const queryParams = /* @__PURE__ */ new Map();
4517
+ let bodyJson = "";
4518
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
4519
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
4520
+ if (bearerToken) {
4521
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4522
+ }
4523
+ return Promise.race([
4524
+ fetch(fullUrl, fetchOptions).then((response) => {
4525
+ if (response.status == 204) {
4526
+ return response;
4527
+ } else if (response.status >= 200 && response.status < 300) {
4528
+ return response.json();
4529
+ } else {
4530
+ throw response;
4531
+ }
4532
+ }),
4533
+ new Promise(
4534
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
4535
+ )
4536
+ ]);
4537
+ }
4250
4538
  /** List streaming channels. */
4251
4539
  listStreamingChannels(bearerToken, clanId, options = {}) {
4252
4540
  const urlPath = "/v2/streaming-channels";
@@ -7530,6 +7818,106 @@ var Client = class {
7530
7818
  });
7531
7819
  });
7532
7820
  }
7821
+ getChannelCategoryNotiSettingsList(session, clanId) {
7822
+ return __async(this, null, function* () {
7823
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7824
+ yield this.sessionRefresh(session);
7825
+ }
7826
+ return this.apiClient.getChannelCategoryNotiSettingsList(session.token, clanId).then((response) => {
7827
+ return Promise.resolve(response);
7828
+ });
7829
+ });
7830
+ }
7831
+ getNotificationCategory(session, categoryId) {
7832
+ return __async(this, null, function* () {
7833
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7834
+ yield this.sessionRefresh(session);
7835
+ }
7836
+ return this.apiClient.getNotificationCategory(session.token, categoryId).then((response) => {
7837
+ return Promise.resolve(response);
7838
+ });
7839
+ });
7840
+ }
7841
+ getNotificationChannel(session, channelId) {
7842
+ return __async(this, null, function* () {
7843
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7844
+ yield this.sessionRefresh(session);
7845
+ }
7846
+ return this.apiClient.getNotificationChannel(session.token, channelId).then((response) => {
7847
+ return Promise.resolve(response);
7848
+ });
7849
+ });
7850
+ }
7851
+ getNotificationClan(session, clanId) {
7852
+ return __async(this, null, function* () {
7853
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7854
+ yield this.sessionRefresh(session);
7855
+ }
7856
+ return this.apiClient.getNotificationClan(session.token, clanId).then((response) => {
7857
+ return Promise.resolve(response);
7858
+ });
7859
+ });
7860
+ }
7861
+ getNotificationReactMessage(session, channelId) {
7862
+ return __async(this, null, function* () {
7863
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7864
+ yield this.sessionRefresh(session);
7865
+ }
7866
+ return this.apiClient.getNotificationReactMessage(session.token, channelId).then((response) => {
7867
+ return Promise.resolve(response);
7868
+ });
7869
+ });
7870
+ }
7871
+ hashtagDMList(session, userId, limit) {
7872
+ return __async(this, null, function* () {
7873
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7874
+ yield this.sessionRefresh(session);
7875
+ }
7876
+ return this.apiClient.hashtagDMList(session.token, userId, limit).then((response) => {
7877
+ return Promise.resolve(response);
7878
+ });
7879
+ });
7880
+ }
7881
+ listChannelByUserId(session) {
7882
+ return __async(this, null, function* () {
7883
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7884
+ yield this.sessionRefresh(session);
7885
+ }
7886
+ return this.apiClient.listChannelByUserId(session.token).then((response) => {
7887
+ return Promise.resolve(response);
7888
+ });
7889
+ });
7890
+ }
7891
+ listUsersAddChannelByChannelId(session, channel_id, limit) {
7892
+ return __async(this, null, function* () {
7893
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7894
+ yield this.sessionRefresh(session);
7895
+ }
7896
+ return this.apiClient.listUsersAddChannelByChannelId(session.token, channel_id, limit).then((response) => {
7897
+ return Promise.resolve(response);
7898
+ });
7899
+ });
7900
+ }
7901
+ getListEmojisByUserId(session) {
7902
+ return __async(this, null, function* () {
7903
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7904
+ yield this.sessionRefresh(session);
7905
+ }
7906
+ return this.apiClient.getListEmojisByUserId(session.token).then((response) => {
7907
+ return Promise.resolve(response);
7908
+ });
7909
+ });
7910
+ }
7911
+ getListStickersByUserId(session) {
7912
+ return __async(this, null, function* () {
7913
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
7914
+ yield this.sessionRefresh(session);
7915
+ }
7916
+ return this.apiClient.getListStickersByUserId(session.token).then((response) => {
7917
+ return Promise.resolve(response);
7918
+ });
7919
+ });
7920
+ }
7533
7921
  };
7534
7922
  export {
7535
7923
  ChannelStreamMode,
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 { ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiPermissionList, ApiRole, ApiRoleList, ApiRpc, ApiUser } from "./api.gen";
16
+ import { ApiChannelDescList, ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotificationChannelCategorySettingList, ApiPermissionList, ApiRole, ApiRoleList, ApiRpc, ApiUser } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { ChannelMessage, Notification } from "./client";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -497,7 +497,7 @@ export interface ClanEmoji {
497
497
  }
498
498
  /** */
499
499
  export interface ChannelDescListEvent {
500
- channeldesc?: Array<ChannelDescription>;
500
+ channeldesc?: ApiChannelDescList;
501
501
  }
502
502
  /** */
503
503
  export interface AllUserClans {
@@ -518,7 +518,7 @@ export interface ChannelDescription {
518
518
  export interface HashtagDmListEvent {
519
519
  user_id?: Array<string>;
520
520
  limit?: number;
521
- hashtag_dm?: Array<HashtagDm>;
521
+ hashtag_dm?: ApiHashtagDmList;
522
522
  }
523
523
  export interface HashtagDm {
524
524
  channel_id?: string;
@@ -570,7 +570,7 @@ export interface NotificationChannelCategorySetting {
570
570
  }
571
571
  export interface NotificationChannelCategorySettingEvent {
572
572
  clan_id?: string;
573
- notification_channel_category_settings_list?: NotificationChannelCategorySetting[];
573
+ notification_channel_category_settings_list?: ApiNotificationChannelCategorySettingList;
574
574
  }
575
575
  export interface UserEmojiUsage {
576
576
  user_id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.12",
4
+ "version": "2.9.14",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiPermissionList, ApiRole, ApiRoleList, ApiRpc, ApiUser} from "./api.gen";
17
+ import { ApiChannelDescList, ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationChannelCategorySettingList, ApiPermissionList, ApiRole, ApiRoleList, ApiRpc, ApiUser} from "./api.gen";
18
18
  import {Session} from "./session";
19
19
  import {ChannelMessage, Notification} from "./client";
20
20
  import {WebSocketAdapter, WebSocketAdapterText} from "./web_socket_adapter"
@@ -724,7 +724,7 @@ export interface ClanEmoji {
724
724
  /** */
725
725
  export interface ChannelDescListEvent {
726
726
  //
727
- channeldesc?: Array<ChannelDescription>;
727
+ channeldesc?: ApiChannelDescList;
728
728
  }
729
729
 
730
730
  /** */
@@ -762,7 +762,7 @@ export interface HashtagDmListEvent {
762
762
  // Max number of records to return. Between 1 and 100.
763
763
  limit?: number;
764
764
  // A list of channel.
765
- hashtag_dm?: Array<HashtagDm>;
765
+ hashtag_dm?: ApiHashtagDmList;
766
766
  }
767
767
 
768
768
  // hashtagDM
@@ -855,7 +855,7 @@ export interface NotificationChannelCategorySetting {
855
855
 
856
856
  export interface NotificationChannelCategorySettingEvent {
857
857
  clan_id? : string;
858
- notification_channel_category_settings_list?: NotificationChannelCategorySetting[]
858
+ notification_channel_category_settings_list?: ApiNotificationChannelCategorySettingList
859
859
  }
860
860
 
861
861
  export interface UserEmojiUsage {
@@ -1120,7 +1120,7 @@ export interface Socket {
1120
1120
  listUserClansByUserId(): Promise<AllUserClans>;
1121
1121
 
1122
1122
  listUsersAddChannelByChannelId(channelId: string, limit: number): Promise<AllUsersAddChannelEvent>;
1123
-
1123
+
1124
1124
  hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
1125
1125
 
1126
1126
  getNotificationChannelSetting(channel_id: string): Promise<NotificationChannelSettingEvent>;
@@ -1132,7 +1132,7 @@ export interface Socket {
1132
1132
  getNotificationReactMessage(channel_id_req: string): Promise<NotifiReactMessageEvent>;
1133
1133
 
1134
1134
  getPermissionByRoleIdChannelId(role_id: string, channel_id: string, user_id: string): Promise<PermissionRoleChannelListEvent>;
1135
-
1135
+
1136
1136
  getNotificationChannelCategorySetting(clan_id : string): Promise<NotificationChannelCategorySettingEvent>;
1137
1137
 
1138
1138
  oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;