mezon-js-protobuf 1.4.32 → 1.4.34
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/api.ts +12 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +27 -0
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1835,6 +1835,8 @@ export interface ChannelDescription {
|
|
|
1835
1835
|
status: number;
|
|
1836
1836
|
/** meeting code */
|
|
1837
1837
|
meeting_code: string;
|
|
1838
|
+
/** count message unread */
|
|
1839
|
+
count_mess_unread: number;
|
|
1838
1840
|
}
|
|
1839
1841
|
|
|
1840
1842
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -12546,6 +12548,7 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
12546
12548
|
last_seen_message: undefined,
|
|
12547
12549
|
status: 0,
|
|
12548
12550
|
meeting_code: "",
|
|
12551
|
+
count_mess_unread: 0,
|
|
12549
12552
|
};
|
|
12550
12553
|
}
|
|
12551
12554
|
|
|
@@ -12596,6 +12599,9 @@ export const ChannelDescription = {
|
|
|
12596
12599
|
if (message.meeting_code !== "") {
|
|
12597
12600
|
writer.uint32(122).string(message.meeting_code);
|
|
12598
12601
|
}
|
|
12602
|
+
if (message.count_mess_unread !== 0) {
|
|
12603
|
+
writer.uint32(128).int32(message.count_mess_unread);
|
|
12604
|
+
}
|
|
12599
12605
|
return writer;
|
|
12600
12606
|
},
|
|
12601
12607
|
|
|
@@ -12651,6 +12657,9 @@ export const ChannelDescription = {
|
|
|
12651
12657
|
case 15:
|
|
12652
12658
|
message.meeting_code = reader.string();
|
|
12653
12659
|
break;
|
|
12660
|
+
case 16:
|
|
12661
|
+
message.count_mess_unread = reader.int32();
|
|
12662
|
+
break;
|
|
12654
12663
|
default:
|
|
12655
12664
|
reader.skipType(tag & 7);
|
|
12656
12665
|
break;
|
|
@@ -12680,6 +12689,7 @@ export const ChannelDescription = {
|
|
|
12680
12689
|
: undefined,
|
|
12681
12690
|
status: isSet(object.status) ? Number(object.status) : 0,
|
|
12682
12691
|
meeting_code: isSet(object.meeting_code) ? String(object.meeting_code) : "",
|
|
12692
|
+
count_mess_unread: isSet(object.count_mess_unread) ? Number(object.count_mess_unread) : 0,
|
|
12683
12693
|
};
|
|
12684
12694
|
},
|
|
12685
12695
|
|
|
@@ -12712,6 +12722,7 @@ export const ChannelDescription = {
|
|
|
12712
12722
|
: undefined);
|
|
12713
12723
|
message.status !== undefined && (obj.status = Math.round(message.status));
|
|
12714
12724
|
message.meeting_code !== undefined && (obj.meeting_code = message.meeting_code);
|
|
12725
|
+
message.count_mess_unread !== undefined && (obj.count_mess_unread = Math.round(message.count_mess_unread));
|
|
12715
12726
|
return obj;
|
|
12716
12727
|
},
|
|
12717
12728
|
|
|
@@ -12740,6 +12751,7 @@ export const ChannelDescription = {
|
|
|
12740
12751
|
: undefined;
|
|
12741
12752
|
message.status = object.status ?? 0;
|
|
12742
12753
|
message.meeting_code = object.meeting_code ?? "";
|
|
12754
|
+
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
12743
12755
|
return message;
|
|
12744
12756
|
},
|
|
12745
12757
|
};
|
|
@@ -1435,6 +1435,13 @@ export interface RemoveChannelUsersRequest {
|
|
|
1435
1435
|
/** The users to kick. */
|
|
1436
1436
|
user_ids: string[];
|
|
1437
1437
|
}
|
|
1438
|
+
/** Kick a set of users from a clan. */
|
|
1439
|
+
export interface RemoveClanUsersRequest {
|
|
1440
|
+
/** The clan ID to kick from. */
|
|
1441
|
+
clan_id: string;
|
|
1442
|
+
/** The users to kick. */
|
|
1443
|
+
user_ids: string[];
|
|
1444
|
+
}
|
|
1438
1445
|
/** Leave a channel. */
|
|
1439
1446
|
export interface LeaveChannelRequest {
|
|
1440
1447
|
/** The channel ID to leave. */
|
|
@@ -9689,6 +9696,26 @@ export declare const RemoveChannelUsersRequest: {
|
|
|
9689
9696
|
user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
9690
9697
|
} & { [K_3 in Exclude<keyof I_1, keyof RemoveChannelUsersRequest>]: never; }>(object: I_1): RemoveChannelUsersRequest;
|
|
9691
9698
|
};
|
|
9699
|
+
export declare const RemoveClanUsersRequest: {
|
|
9700
|
+
encode(message: RemoveClanUsersRequest, writer?: _m0.Writer): _m0.Writer;
|
|
9701
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RemoveClanUsersRequest;
|
|
9702
|
+
fromJSON(object: any): RemoveClanUsersRequest;
|
|
9703
|
+
toJSON(message: RemoveClanUsersRequest): unknown;
|
|
9704
|
+
create<I extends {
|
|
9705
|
+
clan_id?: string | undefined;
|
|
9706
|
+
user_ids?: string[] | undefined;
|
|
9707
|
+
} & {
|
|
9708
|
+
clan_id?: string | undefined;
|
|
9709
|
+
user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
9710
|
+
} & { [K_1 in Exclude<keyof I, keyof RemoveClanUsersRequest>]: never; }>(base?: I | undefined): RemoveClanUsersRequest;
|
|
9711
|
+
fromPartial<I_1 extends {
|
|
9712
|
+
clan_id?: string | undefined;
|
|
9713
|
+
user_ids?: string[] | undefined;
|
|
9714
|
+
} & {
|
|
9715
|
+
clan_id?: string | undefined;
|
|
9716
|
+
user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
9717
|
+
} & { [K_3 in Exclude<keyof I_1, keyof RemoveClanUsersRequest>]: never; }>(object: I_1): RemoveClanUsersRequest;
|
|
9718
|
+
};
|
|
9692
9719
|
export declare const LeaveChannelRequest: {
|
|
9693
9720
|
encode(message: LeaveChannelRequest, writer?: _m0.Writer): _m0.Writer;
|
|
9694
9721
|
decode(input: _m0.Reader | Uint8Array, length?: number): LeaveChannelRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.34",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|