mezon-js 2.8.96 → 2.8.97

Sign up to get free protection for your applications and to get access to all the features.
package/dist/socket.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiPermissionList, ApiRoleList, ApiRpc, ApiUser } from "./api.gen";
16
+ import { ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiPermissionList, ApiRole, ApiRoleList, ApiRpc, ApiUser } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { ChannelMessage, Notification } from "./client";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -458,15 +458,9 @@ export interface RoleListEvent {
458
458
  roles: ApiRoleList;
459
459
  }
460
460
  export interface RoleEvent {
461
- clan_id: string;
462
- role_id: string;
463
- creator_id: string;
464
- user_ids_assigned: Array<string>;
465
- permission_ids_assigned: Array<string>;
466
- user_ids_removed: Array<string>;
467
- permission_ids_removed: Array<string>;
468
- role_title: string;
469
- status: string;
461
+ role: ApiRole;
462
+ status: number;
463
+ user_id: string;
470
464
  }
471
465
  export interface EventEmoji {
472
466
  id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.8.96",
4
+ "version": "2.8.97",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiPermissionList, ApiRoleList, ApiRpc, ApiUser} from "./api.gen";
17
+ import { ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiPermissionList, ApiRole, ApiRoleList, ApiRpc, ApiUser} from "./api.gen";
18
18
  import {Session} from "./session";
19
19
  import {ChannelMessage, Notification} from "./client";
20
20
  import {WebSocketAdapter, WebSocketAdapterText} from "./web_socket_adapter"
@@ -667,15 +667,9 @@ export interface RoleListEvent {
667
667
  }
668
668
 
669
669
  export interface RoleEvent {
670
- clan_id: string;
671
- role_id: string;
672
- creator_id: string;
673
- user_ids_assigned: Array<string>;
674
- permission_ids_assigned: Array<string>;
675
- user_ids_removed: Array<string>;
676
- permission_ids_removed: Array<string>;
677
- role_title: string;
678
- status: string;
670
+ role: ApiRole;
671
+ status: number;
672
+ user_id: string;
679
673
  }
680
674
 
681
675
  export interface EventEmoji {