mezon-js 2.10.22 → 2.10.23

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
@@ -200,6 +200,8 @@ export interface MezonUpdateClanStickerByIdBody {
200
200
 
201
201
  /** update a event within clan. */
202
202
  export interface MezonUpdateEventBody {
203
+ //
204
+ event_id?: string;
203
205
  //
204
206
  address?: string;
205
207
  //
package/dist/api.gen.d.ts CHANGED
@@ -118,6 +118,7 @@ export interface MezonUpdateClanStickerByIdBody {
118
118
  }
119
119
  /** update a event within clan. */
120
120
  export interface MezonUpdateEventBody {
121
+ event_id?: string;
121
122
  address?: string;
122
123
  channel_id?: string;
123
124
  clan_id?: string;
package/dist/socket.d.ts CHANGED
@@ -99,12 +99,10 @@ export interface UserProfileRedis {
99
99
  }
100
100
  /** UserChannelAddedEvent */
101
101
  export interface UserChannelAddedEvent {
102
- channel_id: string;
102
+ channel_desc: ChannelDescription;
103
103
  users: UserProfileRedis[];
104
104
  status: string;
105
105
  clan_id: string;
106
- channel_type: number;
107
- is_public: boolean;
108
106
  }
109
107
  export interface UserChannelRemovedEvent {
110
108
  channel_id: string;
@@ -438,6 +436,10 @@ export interface RoleEvent {
438
436
  role: ApiRole;
439
437
  status: number;
440
438
  user_id: string;
439
+ user_add_ids: Array<string>;
440
+ user_remove_ids: Array<string>;
441
+ active_permission_ids: Array<string>;
442
+ remove_permission_ids: Array<string>;
441
443
  }
442
444
  export interface EventEmoji {
443
445
  id: string;
@@ -582,6 +584,9 @@ export interface PermissionSet {
582
584
  export interface PermissionChangedEvent {
583
585
  user_id: string;
584
586
  channel_id: string;
587
+ add_permissions: ApiPermissionUpdate[];
588
+ remove_permissions: ApiPermissionUpdate[];
589
+ default_permissions: ApiPermissionUpdate[];
585
590
  }
586
591
  export interface DropdownBoxSelected {
587
592
  message_id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.22",
4
+ "version": "2.10.23",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -140,17 +140,13 @@ export interface UserProfileRedis {
140
140
  /** UserChannelAddedEvent */
141
141
  export interface UserChannelAddedEvent {
142
142
  // the channel id
143
- channel_id: string;
143
+ channel_desc: ChannelDescription;
144
144
  // the user
145
145
  users: UserProfileRedis[];
146
146
  // the custom status
147
147
  status: string;
148
148
  // the clan id
149
149
  clan_id: string;
150
- // the channel type
151
- channel_type: number;
152
- // is public
153
- is_public: boolean;
154
150
  }
155
151
 
156
152
  export interface UserChannelRemovedEvent {
@@ -637,6 +633,10 @@ export interface RoleEvent {
637
633
  role: ApiRole;
638
634
  status: number;
639
635
  user_id: string;
636
+ user_add_ids: Array<string>;
637
+ user_remove_ids: Array<string>;
638
+ active_permission_ids: Array<string>;
639
+ remove_permission_ids: Array<string>;
640
640
  }
641
641
 
642
642
  export interface EventEmoji {
@@ -831,6 +831,9 @@ export interface PermissionSet {
831
831
  export interface PermissionChangedEvent {
832
832
  user_id: string;
833
833
  channel_id: string;
834
+ add_permissions: ApiPermissionUpdate[];
835
+ remove_permissions: ApiPermissionUpdate[];
836
+ default_permissions: ApiPermissionUpdate[];
834
837
  }
835
838
 
836
839
  export interface DropdownBoxSelected {