mezon-js 2.12.94 → 2.12.97

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
+ clanId:string,
5055
5056
  channelId:string,
5056
- clanId?:string,
5057
5057
  options: any = {}): Promise<any> {
5058
5058
 
5059
5059
  if (channelId === null || channelId === undefined) {
@@ -5301,8 +5301,8 @@ export class MezonApi {
5301
5301
 
5302
5302
  /** Delete a channel by ID. */
5303
5303
  deleteChannelDesc(bearerToken: string,
5304
- channelId:string,
5305
- clanId?:string,
5304
+ clanId:string,
5305
+ channelId:string,
5306
5306
  options: any = {}): Promise<any> {
5307
5307
 
5308
5308
  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. */
@@ -2042,7 +2042,7 @@ export declare class MezonApi {
2042
2042
  /** list user add channel by channel ids */
2043
2043
  listChannelUsersUC(bearerToken: string, channelId?: string, limit?: number, options?: any): Promise<ApiAllUsersAddChannelResponse>;
2044
2044
  /** Delete a channel by ID. */
2045
- deleteChannelDesc(bearerToken: string, channelId: string, clanId?: string, options?: any): Promise<any>;
2045
+ deleteChannelDesc(bearerToken: string, clanId: string, channelId: string, options?: any): Promise<any>;
2046
2046
  /** Update fields in a given channel. */
2047
2047
  updateChannelDesc(bearerToken: string, channelId: string, body: MezonUpdateChannelDescBody, options?: any): Promise<any>;
2048
2048
  /** List channel setting */
@@ -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
  }
@@ -2222,7 +2222,7 @@ var MezonApi = class {
2222
2222
  ]);
2223
2223
  }
2224
2224
  /** Delete a channel by ID. */
2225
- deleteChannelDesc(bearerToken, channelId, clanId, options = {}) {
2225
+ deleteChannelDesc(bearerToken, clanId, channelId, options = {}) {
2226
2226
  if (channelId === null || channelId === void 0) {
2227
2227
  throw new Error("'channelId' is a required parameter but is null or undefined.");
2228
2228
  }
@@ -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
  }
@@ -2188,7 +2188,7 @@ var MezonApi = class {
2188
2188
  ]);
2189
2189
  }
2190
2190
  /** Delete a channel by ID. */
2191
- deleteChannelDesc(bearerToken, channelId, clanId, options = {}) {
2191
+ deleteChannelDesc(bearerToken, clanId, channelId, options = {}) {
2192
2192
  if (channelId === null || channelId === void 0) {
2193
2193
  throw new Error("'channelId' is a required parameter but is null or undefined.");
2194
2194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.94",
3
+ "version": "2.12.97",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },