mezon-js 2.12.94 → 2.12.95

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
@@ -5052,8 +5052,8 @@ export class MezonApi {
5052
5052
 
5053
5053
  /** Leave a channel the user is a member of. */
5054
5054
  leaveThread(bearerToken: string,
5055
- channelId:string,
5056
- clanId?:string,
5055
+ clanId:string,
5056
+ channelId:string,
5057
5057
  options: any = {}): Promise<any> {
5058
5058
 
5059
5059
  if (channelId === null || channelId === undefined) {
package/dist/api.gen.d.ts CHANGED
@@ -2030,7 +2030,7 @@ export declare class MezonApi {
2030
2030
  /** store channel encryption method */
2031
2031
  setChanEncryptionMethod(bearerToken: string, channelId: string, body: MezonSetChanEncryptionMethodBody, options?: any): Promise<any>;
2032
2032
  /** Leave a channel the user is a member of. */
2033
- leaveThread(bearerToken: string, channelId: string, clanId?: string, options?: any): Promise<any>;
2033
+ leaveThread(bearerToken: string, clanId: string, channelId: string, options?: any): Promise<any>;
2034
2034
  /** Kick a set of users from a channel. */
2035
2035
  removeChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: any): Promise<any>;
2036
2036
  /** List all users that are part of a channel. */
@@ -2033,7 +2033,7 @@ var MezonApi = class {
2033
2033
  ]);
2034
2034
  }
2035
2035
  /** Leave a channel the user is a member of. */
2036
- leaveThread(bearerToken, channelId, clanId, options = {}) {
2036
+ leaveThread(bearerToken, clanId, channelId, options = {}) {
2037
2037
  if (channelId === null || channelId === void 0) {
2038
2038
  throw new Error("'channelId' is a required parameter but is null or undefined.");
2039
2039
  }
@@ -1999,7 +1999,7 @@ var MezonApi = class {
1999
1999
  ]);
2000
2000
  }
2001
2001
  /** Leave a channel the user is a member of. */
2002
- leaveThread(bearerToken, channelId, clanId, options = {}) {
2002
+ leaveThread(bearerToken, clanId, channelId, options = {}) {
2003
2003
  if (channelId === null || channelId === void 0) {
2004
2004
  throw new Error("'channelId' is a required parameter but is null or undefined.");
2005
2005
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.94",
3
+ "version": "2.12.95",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },