mezon-js 2.12.19 → 2.12.20

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
@@ -7868,7 +7868,7 @@ export class MezonApi {
7868
7868
  bearerToken: string,
7869
7869
  clanId?: string,
7870
7870
  limit?: number,
7871
- state?: string,
7871
+ state?: number,
7872
7872
  cursor?: string,
7873
7873
  options: any = {}
7874
7874
  ): Promise<ApiRoleListEventResponse> {
package/client.ts CHANGED
@@ -3548,7 +3548,7 @@ export class Client {
3548
3548
  session: Session,
3549
3549
  clanId?: string,
3550
3550
  limit?: number,
3551
- state?: string,
3551
+ state?: number,
3552
3552
  cursor?: string
3553
3553
  ): Promise<ApiRoleListEventResponse> {
3554
3554
  if (
package/dist/api.gen.d.ts CHANGED
@@ -2075,7 +2075,7 @@ export declare class MezonApi {
2075
2075
  /** Update a role when Delete a role by ID. */
2076
2076
  deleteRoleChannelDesc(bearerToken: string, body: ApiDeleteRoleRequest, options?: any): Promise<any>;
2077
2077
  /** ListRoles */
2078
- listRoles(bearerToken: string, clanId?: string, limit?: number, state?: string, cursor?: string, options?: any): Promise<ApiRoleListEventResponse>;
2078
+ listRoles(bearerToken: string, clanId?: string, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiRoleListEventResponse>;
2079
2079
  /** Create a new role for clan. */
2080
2080
  createRole(bearerToken: string, body: ApiCreateRoleRequest, options?: any): Promise<ApiRole>;
2081
2081
  /** Update a role when Delete a role by ID. */
package/dist/client.d.ts CHANGED
@@ -559,7 +559,7 @@ export declare class Client {
559
559
  emojiRecentList(session: Session): Promise<MezonapiEmojiRecentList>;
560
560
  getListStickersByUserId(session: Session): Promise<ApiStickerListedResponse>;
561
561
  listUserClansByUserId(session: Session): Promise<ApiAllUserClans>;
562
- listRoles(session: Session, clanId?: string, limit?: number, state?: string, cursor?: string): Promise<ApiRoleListEventResponse>;
562
+ listRoles(session: Session, clanId?: string, limit?: number, state?: number, cursor?: string): Promise<ApiRoleListEventResponse>;
563
563
  listUserPermissionInChannel(session: Session, clanId?: string, channelId?: string): Promise<ApiUserPermissionInChannelListResponse>;
564
564
  getPermissionByRoleIdChannelId(session: Session, roleId?: string, channelId?: string, userId?: string): Promise<ApiPermissionRoleChannelListEventResponse>;
565
565
  markAsRead(session: Session, request: ApiMarkAsReadRequest): Promise<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.12.19",
4
+ "version": "2.12.20",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"