mezon-js 2.8.20 → 2.8.21

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
@@ -499,12 +499,6 @@ export interface ApiChannelUserList {
499
499
  cursor?: string;
500
500
  }
501
501
 
502
- /** */
503
- export interface ApiChannelVoiceList {
504
- //A list of channel.
505
- channelvoice?: Array<ApiDirectChannelVoice>;
506
- }
507
-
508
502
  /** */
509
503
  export interface ApiCheckDuplicateClanNameResponse {
510
504
  //
@@ -781,24 +775,6 @@ export interface ApiDeleteStorageObjectsRequest {
781
775
  object_ids?: Array<ApiDeleteStorageObjectId>;
782
776
  }
783
777
 
784
- /** */
785
- export interface ApiDirectChannelVoice {
786
- //The channel id.
787
- channel_id?: string;
788
- //
789
- channel_label?: string;
790
- //
791
- channel_private?: number;
792
- //
793
- clan_id?: string;
794
- //
795
- clan_name?: string;
796
- //
797
- meeting_code?: string;
798
- //
799
- type?: number;
800
- }
801
-
802
778
  /** Represents an event to be passed through the server to registered event handlers. */
803
779
  export interface ApiEvent {
804
780
  //True if the event came directly from a client call, false otherwise.
@@ -875,6 +851,30 @@ export interface ApiFriendList {
875
851
  friends?: Array<ApiFriend>;
876
852
  }
877
853
 
854
+ /** */
855
+ export interface ApiHashtagDmVoice {
856
+ //The channel id.
857
+ channel_id?: string;
858
+ //
859
+ channel_label?: string;
860
+ //
861
+ channel_private?: number;
862
+ //
863
+ clan_id?: string;
864
+ //
865
+ clan_name?: string;
866
+ //
867
+ meeting_code?: string;
868
+ //
869
+ type?: number;
870
+ }
871
+
872
+ /** */
873
+ export interface ApiHashtagDmVoiceList {
874
+ //A list of channel.
875
+ hashtage_voice?: Array<ApiHashtagDmVoice>;
876
+ }
877
+
878
878
  /** Add link invite users to. */
879
879
  export interface ApiInviteUserRes {
880
880
  //id channel to add link to.
@@ -3356,41 +3356,6 @@ export class MezonApi {
3356
3356
  ]);
3357
3357
  }
3358
3358
 
3359
- /** List channelvoices */
3360
- directChannelVoiceList(bearerToken: string,
3361
- userId?:Array<string>,
3362
- limit?:number,
3363
- options: any = {}): Promise<ApiChannelVoiceList> {
3364
-
3365
- const urlPath = "/v2/channelvoices";
3366
- const queryParams = new Map<string, any>();
3367
- queryParams.set("user_id", userId);
3368
- queryParams.set("limit", limit);
3369
-
3370
- let bodyJson : string = "";
3371
-
3372
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3373
- const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3374
- if (bearerToken) {
3375
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3376
- }
3377
-
3378
- return Promise.race([
3379
- fetch(fullUrl, fetchOptions).then((response) => {
3380
- if (response.status == 204) {
3381
- return response;
3382
- } else if (response.status >= 200 && response.status < 300) {
3383
- return response.json();
3384
- } else {
3385
- throw response;
3386
- }
3387
- }),
3388
- new Promise((_, reject) =>
3389
- setTimeout(reject, this.timeoutMs, "Request timed out.")
3390
- ),
3391
- ]);
3392
- }
3393
-
3394
3359
  /** List clans */
3395
3360
  listClanDescs(bearerToken: string,
3396
3361
  limit?:number,
@@ -4568,6 +4533,41 @@ export class MezonApi {
4568
4533
  ]);
4569
4534
  }
4570
4535
 
4536
+ /** List channelvoices */
4537
+ hashtagDMVoiceList(bearerToken: string,
4538
+ userId?:Array<string>,
4539
+ limit?:number,
4540
+ options: any = {}): Promise<ApiHashtagDmVoiceList> {
4541
+
4542
+ const urlPath = "/v2/hashtagdmvoice";
4543
+ const queryParams = new Map<string, any>();
4544
+ queryParams.set("user_id", userId);
4545
+ queryParams.set("limit", limit);
4546
+
4547
+ let bodyJson : string = "";
4548
+
4549
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
4550
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
4551
+ if (bearerToken) {
4552
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4553
+ }
4554
+
4555
+ return Promise.race([
4556
+ fetch(fullUrl, fetchOptions).then((response) => {
4557
+ if (response.status == 204) {
4558
+ return response;
4559
+ } else if (response.status >= 200 && response.status < 300) {
4560
+ return response.json();
4561
+ } else {
4562
+ throw response;
4563
+ }
4564
+ }),
4565
+ new Promise((_, reject) =>
4566
+ setTimeout(reject, this.timeoutMs, "Request timed out.")
4567
+ ),
4568
+ ]);
4569
+ }
4570
+
4571
4571
  /** Add users to a channel. */
4572
4572
  createLinkInviteUser(bearerToken: string,
4573
4573
  body:ApiLinkInviteUserRequest,
package/client.ts CHANGED
@@ -94,7 +94,6 @@ import {
94
94
  ApiChangeChannelPrivateRequest,
95
95
  ApiClanEmojiList,
96
96
  ApiClanEmojiCreateRequest,
97
- ApiChannelVoiceList,
98
97
  MezonUpdateClanEmojiByIdBody,
99
98
  ApiWebhookCreateRequest,
100
99
  ApiWebhookListResponse,
@@ -105,6 +104,7 @@ import {
105
104
  ApiClanStickerListByClanIdResponse,
106
105
  MezonUpdateClanStickerByIdBody,
107
106
  MezonChangeChannelCategoryBody,
107
+ ApiHashtagDmVoiceList,
108
108
  } from "./api.gen";
109
109
 
110
110
  import { Session } from "./session";
@@ -2245,7 +2245,7 @@ async createPinMessage(session: Session, request: ApiPinMessageRequest): Promise
2245
2245
  });
2246
2246
  }
2247
2247
 
2248
- async getPinMessagesList(session: Session, channelId: string): Promise<ApiPinMessagesList> {
2248
+ async pinMessagesList(session: Session, channelId: string): Promise<ApiPinMessagesList> {
2249
2249
  if (this.autoRefreshSession && session.refresh_token &&
2250
2250
  session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2251
2251
  await this.sessionRefresh(session);
@@ -2256,13 +2256,13 @@ async getPinMessagesList(session: Session, channelId: string): Promise<ApiPinMes
2256
2256
  });
2257
2257
  }
2258
2258
 
2259
- async directChannelVoiceList(session: Session, userId:Array<string>, limit?: number): Promise<ApiChannelVoiceList> {
2259
+ async hashtagDmVoiceList(session: Session, userId:Array<string>, limit?: number): Promise<ApiHashtagDmVoiceList> {
2260
2260
  if (this.autoRefreshSession && session.refresh_token &&
2261
2261
  session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2262
2262
  await this.sessionRefresh(session);
2263
2263
  }
2264
2264
 
2265
- return this.apiClient.directChannelVoiceList(session.token, userId, limit).then((response: ApiChannelVoiceList) => {
2265
+ return this.apiClient.hashtagDMVoiceList(session.token, userId, limit).then((response: ApiHashtagDmVoiceList) => {
2266
2266
  return Promise.resolve(response);
2267
2267
  });
2268
2268
  }
package/dist/api.gen.d.ts CHANGED
@@ -283,10 +283,6 @@ export interface ApiChannelUserList {
283
283
  cursor?: string;
284
284
  }
285
285
  /** */
286
- export interface ApiChannelVoiceList {
287
- channelvoice?: Array<ApiDirectChannelVoice>;
288
- }
289
- /** */
290
286
  export interface ApiCheckDuplicateClanNameResponse {
291
287
  is_duplicate?: boolean;
292
288
  }
@@ -447,16 +443,6 @@ export interface ApiDeleteStorageObjectId {
447
443
  export interface ApiDeleteStorageObjectsRequest {
448
444
  object_ids?: Array<ApiDeleteStorageObjectId>;
449
445
  }
450
- /** */
451
- export interface ApiDirectChannelVoice {
452
- channel_id?: string;
453
- channel_label?: string;
454
- channel_private?: number;
455
- clan_id?: string;
456
- clan_name?: string;
457
- meeting_code?: string;
458
- type?: number;
459
- }
460
446
  /** Represents an event to be passed through the server to registered event handlers. */
461
447
  export interface ApiEvent {
462
448
  external?: boolean;
@@ -501,6 +487,20 @@ export interface ApiFriendList {
501
487
  cursor?: string;
502
488
  friends?: Array<ApiFriend>;
503
489
  }
490
+ /** */
491
+ export interface ApiHashtagDmVoice {
492
+ channel_id?: string;
493
+ channel_label?: string;
494
+ channel_private?: number;
495
+ clan_id?: string;
496
+ clan_name?: string;
497
+ meeting_code?: string;
498
+ type?: number;
499
+ }
500
+ /** */
501
+ export interface ApiHashtagDmVoiceList {
502
+ hashtage_voice?: Array<ApiHashtagDmVoice>;
503
+ }
504
504
  /** Add link invite users to. */
505
505
  export interface ApiInviteUserRes {
506
506
  channel_id?: string;
@@ -1041,8 +1041,6 @@ export declare class MezonApi {
1041
1041
  updateChannelDesc(bearerToken: string, channelId: string, body: {}, options?: any): Promise<any>;
1042
1042
  /** List all users that are part of a channel. */
1043
1043
  listChannelVoiceUsers(bearerToken: string, clanId?: string, channelId?: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiVoiceChannelUserList>;
1044
- /** List channelvoices */
1045
- directChannelVoiceList(bearerToken: string, userId?: Array<string>, limit?: number, options?: any): Promise<ApiChannelVoiceList>;
1046
1044
  /** List clans */
1047
1045
  listClanDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiClanDescList>;
1048
1046
  /** Create a clan */
@@ -1107,6 +1105,8 @@ export declare class MezonApi {
1107
1105
  importSteamFriends(bearerToken: string, account: ApiAccountSteam, reset?: boolean, options?: any): Promise<any>;
1108
1106
  /** */
1109
1107
  getUserProfileOnClan(bearerToken: string, clanId: string, options?: any): Promise<ApiClanProfile>;
1108
+ /** List channelvoices */
1109
+ hashtagDMVoiceList(bearerToken: string, userId?: Array<string>, limit?: number, options?: any): Promise<ApiHashtagDmVoiceList>;
1110
1110
  /** Add users to a channel. */
1111
1111
  createLinkInviteUser(bearerToken: string, body: ApiLinkInviteUserRequest, options?: any): Promise<ApiLinkInviteUser>;
1112
1112
  /** Add users to a channel. */
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, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiRoleList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiDeleteStorageObjectsRequest, ApiEvent, ApiReadStorageObjectsRequest, ApiStorageObjectAcks, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiUpdateEventRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiNotificationChannelCategoySettingsList, ApiNotificationSetting, ApiSetDefaultNotificationRequest, ApiNotificationUserChannel, ApiSetNotificationRequest, ApiNotifiReactMessage, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiList, ApiClanEmojiCreateRequest, ApiChannelVoiceList, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, ApiClanStickerListByClanIdResponse, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody } from "./api.gen";
16
+ import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiRoleList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiDeleteStorageObjectsRequest, ApiEvent, ApiReadStorageObjectsRequest, ApiStorageObjectAcks, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiUpdateEventRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiNotificationChannelCategoySettingsList, ApiNotificationSetting, ApiSetDefaultNotificationRequest, ApiNotificationUserChannel, ApiSetNotificationRequest, ApiNotifiReactMessage, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiList, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, ApiClanStickerListByClanIdResponse, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiHashtagDmVoiceList } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -581,8 +581,8 @@ export declare class Client {
581
581
  searchMessage(session: Session, request: ApiSearchMessageRequest): Promise<ApiSearchMessageResponse>;
582
582
  /** */
583
583
  createPinMessage(session: Session, request: ApiPinMessageRequest): Promise<boolean>;
584
- getPinMessagesList(session: Session, channelId: string): Promise<ApiPinMessagesList>;
585
- directChannelVoiceList(session: Session, userId: Array<string>, limit?: number): Promise<ApiChannelVoiceList>;
584
+ pinMessagesList(session: Session, channelId: string): Promise<ApiPinMessagesList>;
585
+ hashtagDmVoiceList(session: Session, userId: Array<string>, limit?: number): Promise<ApiHashtagDmVoiceList>;
586
586
  deletePinMessage(session: Session, message_id: string): Promise<boolean>;
587
587
  /** List clan emoji. */
588
588
  listClanEmoji(session: Session, clan_id: string): Promise<ApiClanEmojiList>;
@@ -1983,33 +1983,6 @@ var MezonApi = class {
1983
1983
  )
1984
1984
  ]);
1985
1985
  }
1986
- /** List channelvoices */
1987
- directChannelVoiceList(bearerToken, userId, limit, options = {}) {
1988
- const urlPath = "/v2/channelvoices";
1989
- const queryParams = /* @__PURE__ */ new Map();
1990
- queryParams.set("user_id", userId);
1991
- queryParams.set("limit", limit);
1992
- let bodyJson = "";
1993
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
1994
- const fetchOptions = buildFetchOptions("GET", options, bodyJson);
1995
- if (bearerToken) {
1996
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
1997
- }
1998
- return Promise.race([
1999
- fetch(fullUrl, fetchOptions).then((response) => {
2000
- if (response.status == 204) {
2001
- return response;
2002
- } else if (response.status >= 200 && response.status < 300) {
2003
- return response.json();
2004
- } else {
2005
- throw response;
2006
- }
2007
- }),
2008
- new Promise(
2009
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
2010
- )
2011
- ]);
2012
- }
2013
1986
  /** List clans */
2014
1987
  listClanDescs(bearerToken, limit, state, cursor, options = {}) {
2015
1988
  const urlPath = "/v2/clandesc";
@@ -2932,6 +2905,33 @@ var MezonApi = class {
2932
2905
  )
2933
2906
  ]);
2934
2907
  }
2908
+ /** List channelvoices */
2909
+ hashtagDMVoiceList(bearerToken, userId, limit, options = {}) {
2910
+ const urlPath = "/v2/hashtagdmvoice";
2911
+ const queryParams = /* @__PURE__ */ new Map();
2912
+ queryParams.set("user_id", userId);
2913
+ queryParams.set("limit", limit);
2914
+ let bodyJson = "";
2915
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2916
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
2917
+ if (bearerToken) {
2918
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2919
+ }
2920
+ return Promise.race([
2921
+ fetch(fullUrl, fetchOptions).then((response) => {
2922
+ if (response.status == 204) {
2923
+ return response;
2924
+ } else if (response.status >= 200 && response.status < 300) {
2925
+ return response.json();
2926
+ } else {
2927
+ throw response;
2928
+ }
2929
+ }),
2930
+ new Promise(
2931
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
2932
+ )
2933
+ ]);
2934
+ }
2935
2935
  /** Add users to a channel. */
2936
2936
  createLinkInviteUser(bearerToken, body, options = {}) {
2937
2937
  if (body === null || body === void 0) {
@@ -6774,7 +6774,7 @@ var Client = class {
6774
6774
  });
6775
6775
  });
6776
6776
  }
6777
- getPinMessagesList(session, channelId) {
6777
+ pinMessagesList(session, channelId) {
6778
6778
  return __async(this, null, function* () {
6779
6779
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
6780
6780
  yield this.sessionRefresh(session);
@@ -6784,12 +6784,12 @@ var Client = class {
6784
6784
  });
6785
6785
  });
6786
6786
  }
6787
- directChannelVoiceList(session, userId, limit) {
6787
+ hashtagDmVoiceList(session, userId, limit) {
6788
6788
  return __async(this, null, function* () {
6789
6789
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
6790
6790
  yield this.sessionRefresh(session);
6791
6791
  }
6792
- return this.apiClient.directChannelVoiceList(session.token, userId, limit).then((response) => {
6792
+ return this.apiClient.hashtagDMVoiceList(session.token, userId, limit).then((response) => {
6793
6793
  return Promise.resolve(response);
6794
6794
  });
6795
6795
  });
@@ -1954,33 +1954,6 @@ var MezonApi = class {
1954
1954
  )
1955
1955
  ]);
1956
1956
  }
1957
- /** List channelvoices */
1958
- directChannelVoiceList(bearerToken, userId, limit, options = {}) {
1959
- const urlPath = "/v2/channelvoices";
1960
- const queryParams = /* @__PURE__ */ new Map();
1961
- queryParams.set("user_id", userId);
1962
- queryParams.set("limit", limit);
1963
- let bodyJson = "";
1964
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
1965
- const fetchOptions = buildFetchOptions("GET", options, bodyJson);
1966
- if (bearerToken) {
1967
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
1968
- }
1969
- return Promise.race([
1970
- fetch(fullUrl, fetchOptions).then((response) => {
1971
- if (response.status == 204) {
1972
- return response;
1973
- } else if (response.status >= 200 && response.status < 300) {
1974
- return response.json();
1975
- } else {
1976
- throw response;
1977
- }
1978
- }),
1979
- new Promise(
1980
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
1981
- )
1982
- ]);
1983
- }
1984
1957
  /** List clans */
1985
1958
  listClanDescs(bearerToken, limit, state, cursor, options = {}) {
1986
1959
  const urlPath = "/v2/clandesc";
@@ -2903,6 +2876,33 @@ var MezonApi = class {
2903
2876
  )
2904
2877
  ]);
2905
2878
  }
2879
+ /** List channelvoices */
2880
+ hashtagDMVoiceList(bearerToken, userId, limit, options = {}) {
2881
+ const urlPath = "/v2/hashtagdmvoice";
2882
+ const queryParams = /* @__PURE__ */ new Map();
2883
+ queryParams.set("user_id", userId);
2884
+ queryParams.set("limit", limit);
2885
+ let bodyJson = "";
2886
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2887
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
2888
+ if (bearerToken) {
2889
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2890
+ }
2891
+ return Promise.race([
2892
+ fetch(fullUrl, fetchOptions).then((response) => {
2893
+ if (response.status == 204) {
2894
+ return response;
2895
+ } else if (response.status >= 200 && response.status < 300) {
2896
+ return response.json();
2897
+ } else {
2898
+ throw response;
2899
+ }
2900
+ }),
2901
+ new Promise(
2902
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
2903
+ )
2904
+ ]);
2905
+ }
2906
2906
  /** Add users to a channel. */
2907
2907
  createLinkInviteUser(bearerToken, body, options = {}) {
2908
2908
  if (body === null || body === void 0) {
@@ -6745,7 +6745,7 @@ var Client = class {
6745
6745
  });
6746
6746
  });
6747
6747
  }
6748
- getPinMessagesList(session, channelId) {
6748
+ pinMessagesList(session, channelId) {
6749
6749
  return __async(this, null, function* () {
6750
6750
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
6751
6751
  yield this.sessionRefresh(session);
@@ -6755,12 +6755,12 @@ var Client = class {
6755
6755
  });
6756
6756
  });
6757
6757
  }
6758
- directChannelVoiceList(session, userId, limit) {
6758
+ hashtagDmVoiceList(session, userId, limit) {
6759
6759
  return __async(this, null, function* () {
6760
6760
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
6761
6761
  yield this.sessionRefresh(session);
6762
6762
  }
6763
- return this.apiClient.directChannelVoiceList(session.token, userId, limit).then((response) => {
6763
+ return this.apiClient.hashtagDMVoiceList(session.token, userId, limit).then((response) => {
6764
6764
  return Promise.resolve(response);
6765
6765
  });
6766
6766
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.20",
3
+ "version": "2.8.21",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },