mezon-js 2.12.18 → 2.12.19

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
@@ -2193,7 +2193,7 @@ export interface ApiRoleListEventResponse {
2193
2193
  //
2194
2194
  cursor?: string;
2195
2195
  //
2196
- limit?: string;
2196
+ limit?: number;
2197
2197
  //
2198
2198
  roles?: ApiRoleList;
2199
2199
  //
@@ -7867,7 +7867,7 @@ export class MezonApi {
7867
7867
  listRoles(
7868
7868
  bearerToken: string,
7869
7869
  clanId?: string,
7870
- limit?: string,
7870
+ limit?: number,
7871
7871
  state?: string,
7872
7872
  cursor?: string,
7873
7873
  options: any = {}
package/client.ts CHANGED
@@ -3547,7 +3547,7 @@ export class Client {
3547
3547
  async listRoles(
3548
3548
  session: Session,
3549
3549
  clanId?: string,
3550
- limit?: string,
3550
+ limit?: number,
3551
3551
  state?: string,
3552
3552
  cursor?: string
3553
3553
  ): Promise<ApiRoleListEventResponse> {
package/dist/api.gen.d.ts CHANGED
@@ -1254,7 +1254,7 @@ export interface ApiRoleList {
1254
1254
  export interface ApiRoleListEventResponse {
1255
1255
  clan_id?: string;
1256
1256
  cursor?: string;
1257
- limit?: string;
1257
+ limit?: number;
1258
1258
  roles?: ApiRoleList;
1259
1259
  state?: string;
1260
1260
  }
@@ -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?: string, state?: string, cursor?: string, options?: any): Promise<ApiRoleListEventResponse>;
2078
+ listRoles(bearerToken: string, clanId?: string, limit?: number, state?: string, 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?: string, state?: string, cursor?: string): Promise<ApiRoleListEventResponse>;
562
+ listRoles(session: Session, clanId?: string, limit?: number, state?: string, 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.18",
4
+ "version": "2.12.19",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"