mezon-js 2.7.32 → 2.7.33

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -2458,8 +2458,8 @@ export class MezonApi {
2458
2458
  listChannelMessages(bearerToken: string,
2459
2459
  channelId:string,
2460
2460
  messageId?:string,
2461
- limit?:number,
2462
2461
  direction?:number,
2462
+ limit?:number,
2463
2463
  options: any = {}): Promise<ApiChannelMessageList> {
2464
2464
 
2465
2465
  if (channelId === null || channelId === undefined) {
@@ -2656,8 +2656,8 @@ export class MezonApi {
2656
2656
 
2657
2657
  /** List all users that are part of a channel. */
2658
2658
  listChannelUsers(bearerToken: string,
2659
- channelId:string,
2660
- clanId?:string,
2659
+ clanId: string,
2660
+ channelId: string,
2661
2661
  channelType?:number,
2662
2662
  limit?:number,
2663
2663
  state?:number,
package/dist/api.gen.d.ts CHANGED
@@ -776,7 +776,7 @@ export declare class MezonApi {
776
776
  /** */
777
777
  listCategoryDescs(bearerToken: string, clanId: string, creatorId?: string, categoryName?: string, categoryId?: string, options?: any): Promise<ApiCategoryDescList>;
778
778
  /** List a channel's message history. */
779
- listChannelMessages(bearerToken: string, channelId: string, messageId?: string, limit?: number, direction?: number, options?: any): Promise<ApiChannelMessageList>;
779
+ listChannelMessages(bearerToken: string, channelId: string, messageId?: string, direction?: number, limit?: number, options?: any): Promise<ApiChannelMessageList>;
780
780
  /** Add users to a channel. */
781
781
  addChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: any): Promise<any>;
782
782
  /** List all attachment that are part of a channel. */
@@ -786,7 +786,7 @@ export declare class MezonApi {
786
786
  /** Kick a set of users from a channel. */
787
787
  removeChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: any): Promise<any>;
788
788
  /** List all users that are part of a channel. */
789
- listChannelUsers(bearerToken: string, channelId: string, clanId?: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiChannelUserList>;
789
+ listChannelUsers(bearerToken: string, clanId: string, channelId: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiChannelUserList>;
790
790
  /** List user channels */
791
791
  listChannelDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, clanId?: string, channelType?: number, options?: any): Promise<ApiChannelDescList>;
792
792
  /** Create a new channel with the current user as the owner. */
@@ -1640,7 +1640,7 @@ var MezonApi = class {
1640
1640
  ]);
1641
1641
  }
1642
1642
  /** List a channel's message history. */
1643
- listChannelMessages(bearerToken, channelId, messageId, limit, direction, options = {}) {
1643
+ listChannelMessages(bearerToken, channelId, messageId, direction, limit, options = {}) {
1644
1644
  if (channelId === null || channelId === void 0) {
1645
1645
  throw new Error("'channelId' is a required parameter but is null or undefined.");
1646
1646
  }
@@ -1790,7 +1790,7 @@ var MezonApi = class {
1790
1790
  ]);
1791
1791
  }
1792
1792
  /** List all users that are part of a channel. */
1793
- listChannelUsers(bearerToken, channelId, clanId, channelType, limit, state, cursor, options = {}) {
1793
+ listChannelUsers(bearerToken, clanId, channelId, channelType, limit, state, cursor, options = {}) {
1794
1794
  if (channelId === null || channelId === void 0) {
1795
1795
  throw new Error("'channelId' is a required parameter but is null or undefined.");
1796
1796
  }
@@ -1611,7 +1611,7 @@ var MezonApi = class {
1611
1611
  ]);
1612
1612
  }
1613
1613
  /** List a channel's message history. */
1614
- listChannelMessages(bearerToken, channelId, messageId, limit, direction, options = {}) {
1614
+ listChannelMessages(bearerToken, channelId, messageId, direction, limit, options = {}) {
1615
1615
  if (channelId === null || channelId === void 0) {
1616
1616
  throw new Error("'channelId' is a required parameter but is null or undefined.");
1617
1617
  }
@@ -1761,7 +1761,7 @@ var MezonApi = class {
1761
1761
  ]);
1762
1762
  }
1763
1763
  /** List all users that are part of a channel. */
1764
- listChannelUsers(bearerToken, channelId, clanId, channelType, limit, state, cursor, options = {}) {
1764
+ listChannelUsers(bearerToken, clanId, channelId, channelType, limit, state, cursor, options = {}) {
1765
1765
  if (channelId === null || channelId === void 0) {
1766
1766
  throw new Error("'channelId' is a required parameter but is null or undefined.");
1767
1767
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.32",
3
+ "version": "2.7.33",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },