mezon-js-protobuf 1.5.45 → 1.5.47
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
CHANGED
|
@@ -1056,9 +1056,7 @@ export interface ClanUserList_ClanUser {
|
|
|
1056
1056
|
| User
|
|
1057
1057
|
| undefined;
|
|
1058
1058
|
/** Their relationship to the role. */
|
|
1059
|
-
role_id:
|
|
1060
|
-
| string
|
|
1061
|
-
| undefined;
|
|
1059
|
+
role_id: string[];
|
|
1062
1060
|
/** from the `nick_name` field in the `clan_desc_profile` table. */
|
|
1063
1061
|
clan_nick: string;
|
|
1064
1062
|
/** from the `avatar_url` field in the `clan_desc_profile` table. */
|
|
@@ -8291,7 +8289,7 @@ export const ClanUserList = {
|
|
|
8291
8289
|
};
|
|
8292
8290
|
|
|
8293
8291
|
function createBaseClanUserList_ClanUser(): ClanUserList_ClanUser {
|
|
8294
|
-
return { user: undefined, role_id:
|
|
8292
|
+
return { user: undefined, role_id: [], clan_nick: "", clan_avatar: "", clan_id: "" };
|
|
8295
8293
|
}
|
|
8296
8294
|
|
|
8297
8295
|
export const ClanUserList_ClanUser = {
|
|
@@ -8299,8 +8297,8 @@ export const ClanUserList_ClanUser = {
|
|
|
8299
8297
|
if (message.user !== undefined) {
|
|
8300
8298
|
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
8301
8299
|
}
|
|
8302
|
-
|
|
8303
|
-
|
|
8300
|
+
for (const v of message.role_id) {
|
|
8301
|
+
writer.uint32(18).string(v!);
|
|
8304
8302
|
}
|
|
8305
8303
|
if (message.clan_nick !== "") {
|
|
8306
8304
|
writer.uint32(26).string(message.clan_nick);
|
|
@@ -8325,7 +8323,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8325
8323
|
message.user = User.decode(reader, reader.uint32());
|
|
8326
8324
|
break;
|
|
8327
8325
|
case 2:
|
|
8328
|
-
message.role_id
|
|
8326
|
+
message.role_id.push(reader.string());
|
|
8329
8327
|
break;
|
|
8330
8328
|
case 3:
|
|
8331
8329
|
message.clan_nick = reader.string();
|
|
@@ -8347,7 +8345,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8347
8345
|
fromJSON(object: any): ClanUserList_ClanUser {
|
|
8348
8346
|
return {
|
|
8349
8347
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
8350
|
-
role_id:
|
|
8348
|
+
role_id: Array.isArray(object?.role_id) ? object.role_id.map((e: any) => String(e)) : [],
|
|
8351
8349
|
clan_nick: isSet(object.clan_nick) ? String(object.clan_nick) : "",
|
|
8352
8350
|
clan_avatar: isSet(object.clan_avatar) ? String(object.clan_avatar) : "",
|
|
8353
8351
|
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
@@ -8357,7 +8355,11 @@ export const ClanUserList_ClanUser = {
|
|
|
8357
8355
|
toJSON(message: ClanUserList_ClanUser): unknown {
|
|
8358
8356
|
const obj: any = {};
|
|
8359
8357
|
message.user !== undefined && (obj.user = message.user ? User.toJSON(message.user) : undefined);
|
|
8360
|
-
|
|
8358
|
+
if (message.role_id) {
|
|
8359
|
+
obj.role_id = message.role_id.map((e) => e);
|
|
8360
|
+
} else {
|
|
8361
|
+
obj.role_id = [];
|
|
8362
|
+
}
|
|
8361
8363
|
message.clan_nick !== undefined && (obj.clan_nick = message.clan_nick);
|
|
8362
8364
|
message.clan_avatar !== undefined && (obj.clan_avatar = message.clan_avatar);
|
|
8363
8365
|
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
@@ -8371,7 +8373,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8371
8373
|
fromPartial<I extends Exact<DeepPartial<ClanUserList_ClanUser>, I>>(object: I): ClanUserList_ClanUser {
|
|
8372
8374
|
const message = createBaseClanUserList_ClanUser();
|
|
8373
8375
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
8374
|
-
message.role_id = object.role_id
|
|
8376
|
+
message.role_id = object.role_id?.map((e) => e) || [];
|
|
8375
8377
|
message.clan_nick = object.clan_nick ?? "";
|
|
8376
8378
|
message.clan_avatar = object.clan_avatar ?? "";
|
|
8377
8379
|
message.clan_id = object.clan_id ?? "";
|
|
@@ -760,7 +760,7 @@ export interface ClanUserList_ClanUser {
|
|
|
760
760
|
/** User. */
|
|
761
761
|
user: User | undefined;
|
|
762
762
|
/** Their relationship to the role. */
|
|
763
|
-
role_id: string
|
|
763
|
+
role_id: string[];
|
|
764
764
|
/** from the `nick_name` field in the `clan_desc_profile` table. */
|
|
765
765
|
clan_nick: string;
|
|
766
766
|
/** from the `avatar_url` field in the `clan_desc_profile` table. */
|
|
@@ -6459,7 +6459,7 @@ export declare const ClanUserList: {
|
|
|
6459
6459
|
about_me?: string | undefined;
|
|
6460
6460
|
join_time?: Date | undefined;
|
|
6461
6461
|
} | undefined;
|
|
6462
|
-
role_id?: string | undefined;
|
|
6462
|
+
role_id?: string[] | undefined;
|
|
6463
6463
|
clan_nick?: string | undefined;
|
|
6464
6464
|
clan_avatar?: string | undefined;
|
|
6465
6465
|
clan_id?: string | undefined;
|
|
@@ -6489,7 +6489,7 @@ export declare const ClanUserList: {
|
|
|
6489
6489
|
about_me?: string | undefined;
|
|
6490
6490
|
join_time?: Date | undefined;
|
|
6491
6491
|
} | undefined;
|
|
6492
|
-
role_id?: string | undefined;
|
|
6492
|
+
role_id?: string[] | undefined;
|
|
6493
6493
|
clan_nick?: string | undefined;
|
|
6494
6494
|
clan_avatar?: string | undefined;
|
|
6495
6495
|
clan_id?: string | undefined;
|
|
@@ -6515,7 +6515,7 @@ export declare const ClanUserList: {
|
|
|
6515
6515
|
about_me?: string | undefined;
|
|
6516
6516
|
join_time?: Date | undefined;
|
|
6517
6517
|
} | undefined;
|
|
6518
|
-
role_id?: string | undefined;
|
|
6518
|
+
role_id?: string[] | undefined;
|
|
6519
6519
|
clan_nick?: string | undefined;
|
|
6520
6520
|
clan_avatar?: string | undefined;
|
|
6521
6521
|
clan_id?: string | undefined;
|
|
@@ -6561,11 +6561,11 @@ export declare const ClanUserList: {
|
|
|
6561
6561
|
about_me?: string | undefined;
|
|
6562
6562
|
join_time?: Date | undefined;
|
|
6563
6563
|
} & { [K in Exclude<keyof I["clan_users"][number]["user"], keyof User>]: never; }) | undefined;
|
|
6564
|
-
role_id?: string | undefined;
|
|
6564
|
+
role_id?: (string[] & string[] & { [K_1 in Exclude<keyof I["clan_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
|
|
6565
6565
|
clan_nick?: string | undefined;
|
|
6566
6566
|
clan_avatar?: string | undefined;
|
|
6567
6567
|
clan_id?: string | undefined;
|
|
6568
|
-
} & { [
|
|
6568
|
+
} & { [K_2 in Exclude<keyof I["clan_users"][number], keyof ClanUserList_ClanUser>]: never; })[] & { [K_3 in Exclude<keyof I["clan_users"], keyof {
|
|
6569
6569
|
user?: {
|
|
6570
6570
|
id?: string | undefined;
|
|
6571
6571
|
username?: string | undefined;
|
|
@@ -6587,14 +6587,14 @@ export declare const ClanUserList: {
|
|
|
6587
6587
|
about_me?: string | undefined;
|
|
6588
6588
|
join_time?: Date | undefined;
|
|
6589
6589
|
} | undefined;
|
|
6590
|
-
role_id?: string | undefined;
|
|
6590
|
+
role_id?: string[] | undefined;
|
|
6591
6591
|
clan_nick?: string | undefined;
|
|
6592
6592
|
clan_avatar?: string | undefined;
|
|
6593
6593
|
clan_id?: string | undefined;
|
|
6594
6594
|
}[]>]: never; }) | undefined;
|
|
6595
6595
|
cursor?: string | undefined;
|
|
6596
6596
|
clan_id?: string | undefined;
|
|
6597
|
-
} & { [
|
|
6597
|
+
} & { [K_4 in Exclude<keyof I, keyof ClanUserList>]: never; }>(base?: I | undefined): ClanUserList;
|
|
6598
6598
|
fromPartial<I_1 extends {
|
|
6599
6599
|
clan_users?: {
|
|
6600
6600
|
user?: {
|
|
@@ -6618,7 +6618,7 @@ export declare const ClanUserList: {
|
|
|
6618
6618
|
about_me?: string | undefined;
|
|
6619
6619
|
join_time?: Date | undefined;
|
|
6620
6620
|
} | undefined;
|
|
6621
|
-
role_id?: string | undefined;
|
|
6621
|
+
role_id?: string[] | undefined;
|
|
6622
6622
|
clan_nick?: string | undefined;
|
|
6623
6623
|
clan_avatar?: string | undefined;
|
|
6624
6624
|
clan_id?: string | undefined;
|
|
@@ -6648,7 +6648,7 @@ export declare const ClanUserList: {
|
|
|
6648
6648
|
about_me?: string | undefined;
|
|
6649
6649
|
join_time?: Date | undefined;
|
|
6650
6650
|
} | undefined;
|
|
6651
|
-
role_id?: string | undefined;
|
|
6651
|
+
role_id?: string[] | undefined;
|
|
6652
6652
|
clan_nick?: string | undefined;
|
|
6653
6653
|
clan_avatar?: string | undefined;
|
|
6654
6654
|
clan_id?: string | undefined;
|
|
@@ -6674,7 +6674,7 @@ export declare const ClanUserList: {
|
|
|
6674
6674
|
about_me?: string | undefined;
|
|
6675
6675
|
join_time?: Date | undefined;
|
|
6676
6676
|
} | undefined;
|
|
6677
|
-
role_id?: string | undefined;
|
|
6677
|
+
role_id?: string[] | undefined;
|
|
6678
6678
|
clan_nick?: string | undefined;
|
|
6679
6679
|
clan_avatar?: string | undefined;
|
|
6680
6680
|
clan_id?: string | undefined;
|
|
@@ -6719,12 +6719,12 @@ export declare const ClanUserList: {
|
|
|
6719
6719
|
apple_id?: string | undefined;
|
|
6720
6720
|
about_me?: string | undefined;
|
|
6721
6721
|
join_time?: Date | undefined;
|
|
6722
|
-
} & { [
|
|
6723
|
-
role_id?: string | undefined;
|
|
6722
|
+
} & { [K_5 in Exclude<keyof I_1["clan_users"][number]["user"], keyof User>]: never; }) | undefined;
|
|
6723
|
+
role_id?: (string[] & string[] & { [K_6 in Exclude<keyof I_1["clan_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
|
|
6724
6724
|
clan_nick?: string | undefined;
|
|
6725
6725
|
clan_avatar?: string | undefined;
|
|
6726
6726
|
clan_id?: string | undefined;
|
|
6727
|
-
} & { [
|
|
6727
|
+
} & { [K_7 in Exclude<keyof I_1["clan_users"][number], keyof ClanUserList_ClanUser>]: never; })[] & { [K_8 in Exclude<keyof I_1["clan_users"], keyof {
|
|
6728
6728
|
user?: {
|
|
6729
6729
|
id?: string | undefined;
|
|
6730
6730
|
username?: string | undefined;
|
|
@@ -6746,14 +6746,14 @@ export declare const ClanUserList: {
|
|
|
6746
6746
|
about_me?: string | undefined;
|
|
6747
6747
|
join_time?: Date | undefined;
|
|
6748
6748
|
} | undefined;
|
|
6749
|
-
role_id?: string | undefined;
|
|
6749
|
+
role_id?: string[] | undefined;
|
|
6750
6750
|
clan_nick?: string | undefined;
|
|
6751
6751
|
clan_avatar?: string | undefined;
|
|
6752
6752
|
clan_id?: string | undefined;
|
|
6753
6753
|
}[]>]: never; }) | undefined;
|
|
6754
6754
|
cursor?: string | undefined;
|
|
6755
6755
|
clan_id?: string | undefined;
|
|
6756
|
-
} & { [
|
|
6756
|
+
} & { [K_9 in Exclude<keyof I_1, keyof ClanUserList>]: never; }>(object: I_1): ClanUserList;
|
|
6757
6757
|
};
|
|
6758
6758
|
export declare const ClanUserList_ClanUser: {
|
|
6759
6759
|
encode(message: ClanUserList_ClanUser, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -6782,7 +6782,7 @@ export declare const ClanUserList_ClanUser: {
|
|
|
6782
6782
|
about_me?: string | undefined;
|
|
6783
6783
|
join_time?: Date | undefined;
|
|
6784
6784
|
} | undefined;
|
|
6785
|
-
role_id?: string | undefined;
|
|
6785
|
+
role_id?: string[] | undefined;
|
|
6786
6786
|
clan_nick?: string | undefined;
|
|
6787
6787
|
clan_avatar?: string | undefined;
|
|
6788
6788
|
clan_id?: string | undefined;
|
|
@@ -6828,11 +6828,11 @@ export declare const ClanUserList_ClanUser: {
|
|
|
6828
6828
|
about_me?: string | undefined;
|
|
6829
6829
|
join_time?: Date | undefined;
|
|
6830
6830
|
} & { [K in Exclude<keyof I["user"], keyof User>]: never; }) | undefined;
|
|
6831
|
-
role_id?: string | undefined;
|
|
6831
|
+
role_id?: (string[] & string[] & { [K_1 in Exclude<keyof I["role_id"], keyof string[]>]: never; }) | undefined;
|
|
6832
6832
|
clan_nick?: string | undefined;
|
|
6833
6833
|
clan_avatar?: string | undefined;
|
|
6834
6834
|
clan_id?: string | undefined;
|
|
6835
|
-
} & { [
|
|
6835
|
+
} & { [K_2 in Exclude<keyof I, keyof ClanUserList_ClanUser>]: never; }>(base?: I | undefined): ClanUserList_ClanUser;
|
|
6836
6836
|
fromPartial<I_1 extends {
|
|
6837
6837
|
user?: {
|
|
6838
6838
|
id?: string | undefined;
|
|
@@ -6855,7 +6855,7 @@ export declare const ClanUserList_ClanUser: {
|
|
|
6855
6855
|
about_me?: string | undefined;
|
|
6856
6856
|
join_time?: Date | undefined;
|
|
6857
6857
|
} | undefined;
|
|
6858
|
-
role_id?: string | undefined;
|
|
6858
|
+
role_id?: string[] | undefined;
|
|
6859
6859
|
clan_nick?: string | undefined;
|
|
6860
6860
|
clan_avatar?: string | undefined;
|
|
6861
6861
|
clan_id?: string | undefined;
|
|
@@ -6900,12 +6900,12 @@ export declare const ClanUserList_ClanUser: {
|
|
|
6900
6900
|
apple_id?: string | undefined;
|
|
6901
6901
|
about_me?: string | undefined;
|
|
6902
6902
|
join_time?: Date | undefined;
|
|
6903
|
-
} & { [
|
|
6904
|
-
role_id?: string | undefined;
|
|
6903
|
+
} & { [K_3 in Exclude<keyof I_1["user"], keyof User>]: never; }) | undefined;
|
|
6904
|
+
role_id?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["role_id"], keyof string[]>]: never; }) | undefined;
|
|
6905
6905
|
clan_nick?: string | undefined;
|
|
6906
6906
|
clan_avatar?: string | undefined;
|
|
6907
6907
|
clan_id?: string | undefined;
|
|
6908
|
-
} & { [
|
|
6908
|
+
} & { [K_5 in Exclude<keyof I_1, keyof ClanUserList_ClanUser>]: never; }>(object: I_1): ClanUserList_ClanUser;
|
|
6909
6909
|
};
|
|
6910
6910
|
export declare const ImportFacebookFriendsRequest: {
|
|
6911
6911
|
encode(message: ImportFacebookFriendsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -290,6 +290,8 @@ export interface ChannelJoin {
|
|
|
290
290
|
parent_id: string;
|
|
291
291
|
/** parent public */
|
|
292
292
|
is_parent_public: boolean;
|
|
293
|
+
/** is public */
|
|
294
|
+
is_public: boolean;
|
|
293
295
|
}
|
|
294
296
|
/** Leave a realtime channel. */
|
|
295
297
|
export interface ChannelLeave {
|
|
@@ -898,6 +900,7 @@ export declare const Envelope: {
|
|
|
898
900
|
channel_type?: number | undefined;
|
|
899
901
|
parent_id?: string | undefined;
|
|
900
902
|
is_parent_public?: boolean | undefined;
|
|
903
|
+
is_public?: boolean | undefined;
|
|
901
904
|
} | undefined;
|
|
902
905
|
channel_leave?: {
|
|
903
906
|
clan_id?: string | undefined;
|
|
@@ -1601,12 +1604,14 @@ export declare const Envelope: {
|
|
|
1601
1604
|
channel_type?: number | undefined;
|
|
1602
1605
|
parent_id?: string | undefined;
|
|
1603
1606
|
is_parent_public?: boolean | undefined;
|
|
1607
|
+
is_public?: boolean | undefined;
|
|
1604
1608
|
} & {
|
|
1605
1609
|
clan_id?: string | undefined;
|
|
1606
1610
|
channel_id?: string | undefined;
|
|
1607
1611
|
channel_type?: number | undefined;
|
|
1608
1612
|
parent_id?: string | undefined;
|
|
1609
1613
|
is_parent_public?: boolean | undefined;
|
|
1614
|
+
is_public?: boolean | undefined;
|
|
1610
1615
|
} & { [K_5 in Exclude<keyof I["channel_join"], keyof ChannelJoin>]: never; }) | undefined;
|
|
1611
1616
|
channel_leave?: ({
|
|
1612
1617
|
clan_id?: string | undefined;
|
|
@@ -3665,6 +3670,7 @@ export declare const Envelope: {
|
|
|
3665
3670
|
channel_type?: number | undefined;
|
|
3666
3671
|
parent_id?: string | undefined;
|
|
3667
3672
|
is_parent_public?: boolean | undefined;
|
|
3673
|
+
is_public?: boolean | undefined;
|
|
3668
3674
|
} | undefined;
|
|
3669
3675
|
channel_leave?: {
|
|
3670
3676
|
clan_id?: string | undefined;
|
|
@@ -4368,12 +4374,14 @@ export declare const Envelope: {
|
|
|
4368
4374
|
channel_type?: number | undefined;
|
|
4369
4375
|
parent_id?: string | undefined;
|
|
4370
4376
|
is_parent_public?: boolean | undefined;
|
|
4377
|
+
is_public?: boolean | undefined;
|
|
4371
4378
|
} & {
|
|
4372
4379
|
clan_id?: string | undefined;
|
|
4373
4380
|
channel_id?: string | undefined;
|
|
4374
4381
|
channel_type?: number | undefined;
|
|
4375
4382
|
parent_id?: string | undefined;
|
|
4376
4383
|
is_parent_public?: boolean | undefined;
|
|
4384
|
+
is_public?: boolean | undefined;
|
|
4377
4385
|
} & { [K_139 in Exclude<keyof I_1["channel_join"], keyof ChannelJoin>]: never; }) | undefined;
|
|
4378
4386
|
channel_leave?: ({
|
|
4379
4387
|
clan_id?: string | undefined;
|
|
@@ -8467,12 +8475,14 @@ export declare const ChannelJoin: {
|
|
|
8467
8475
|
channel_type?: number | undefined;
|
|
8468
8476
|
parent_id?: string | undefined;
|
|
8469
8477
|
is_parent_public?: boolean | undefined;
|
|
8478
|
+
is_public?: boolean | undefined;
|
|
8470
8479
|
} & {
|
|
8471
8480
|
clan_id?: string | undefined;
|
|
8472
8481
|
channel_id?: string | undefined;
|
|
8473
8482
|
channel_type?: number | undefined;
|
|
8474
8483
|
parent_id?: string | undefined;
|
|
8475
8484
|
is_parent_public?: boolean | undefined;
|
|
8485
|
+
is_public?: boolean | undefined;
|
|
8476
8486
|
} & { [K in Exclude<keyof I, keyof ChannelJoin>]: never; }>(base?: I | undefined): ChannelJoin;
|
|
8477
8487
|
fromPartial<I_1 extends {
|
|
8478
8488
|
clan_id?: string | undefined;
|
|
@@ -8480,12 +8490,14 @@ export declare const ChannelJoin: {
|
|
|
8480
8490
|
channel_type?: number | undefined;
|
|
8481
8491
|
parent_id?: string | undefined;
|
|
8482
8492
|
is_parent_public?: boolean | undefined;
|
|
8493
|
+
is_public?: boolean | undefined;
|
|
8483
8494
|
} & {
|
|
8484
8495
|
clan_id?: string | undefined;
|
|
8485
8496
|
channel_id?: string | undefined;
|
|
8486
8497
|
channel_type?: number | undefined;
|
|
8487
8498
|
parent_id?: string | undefined;
|
|
8488
8499
|
is_parent_public?: boolean | undefined;
|
|
8500
|
+
is_public?: boolean | undefined;
|
|
8489
8501
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelJoin>]: never; }>(object: I_1): ChannelJoin;
|
|
8490
8502
|
};
|
|
8491
8503
|
export declare const ChannelLeave: {
|
|
@@ -6631,7 +6631,7 @@ var ClanJoin = {
|
|
|
6631
6631
|
}
|
|
6632
6632
|
};
|
|
6633
6633
|
function createBaseChannelJoin() {
|
|
6634
|
-
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
|
|
6634
|
+
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false, is_public: false };
|
|
6635
6635
|
}
|
|
6636
6636
|
var ChannelJoin = {
|
|
6637
6637
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -6650,6 +6650,9 @@ var ChannelJoin = {
|
|
|
6650
6650
|
if (message.is_parent_public === true) {
|
|
6651
6651
|
writer.uint32(40).bool(message.is_parent_public);
|
|
6652
6652
|
}
|
|
6653
|
+
if (message.is_public === true) {
|
|
6654
|
+
writer.uint32(48).bool(message.is_public);
|
|
6655
|
+
}
|
|
6653
6656
|
return writer;
|
|
6654
6657
|
},
|
|
6655
6658
|
decode(input, length) {
|
|
@@ -6674,6 +6677,9 @@ var ChannelJoin = {
|
|
|
6674
6677
|
case 5:
|
|
6675
6678
|
message.is_parent_public = reader.bool();
|
|
6676
6679
|
break;
|
|
6680
|
+
case 6:
|
|
6681
|
+
message.is_public = reader.bool();
|
|
6682
|
+
break;
|
|
6677
6683
|
default:
|
|
6678
6684
|
reader.skipType(tag & 7);
|
|
6679
6685
|
break;
|
|
@@ -6687,7 +6693,8 @@ var ChannelJoin = {
|
|
|
6687
6693
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6688
6694
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
|
|
6689
6695
|
parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
|
|
6690
|
-
is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
|
|
6696
|
+
is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
|
|
6697
|
+
is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
|
|
6691
6698
|
};
|
|
6692
6699
|
},
|
|
6693
6700
|
toJSON(message) {
|
|
@@ -6697,19 +6704,21 @@ var ChannelJoin = {
|
|
|
6697
6704
|
message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
|
|
6698
6705
|
message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
|
|
6699
6706
|
message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
|
|
6707
|
+
message.is_public !== void 0 && (obj.is_public = message.is_public);
|
|
6700
6708
|
return obj;
|
|
6701
6709
|
},
|
|
6702
6710
|
create(base) {
|
|
6703
6711
|
return ChannelJoin.fromPartial(base != null ? base : {});
|
|
6704
6712
|
},
|
|
6705
6713
|
fromPartial(object) {
|
|
6706
|
-
var _a, _b, _c, _d, _e;
|
|
6714
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6707
6715
|
const message = createBaseChannelJoin();
|
|
6708
6716
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6709
6717
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
6710
6718
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
6711
6719
|
message.parent_id = (_d = object.parent_id) != null ? _d : "";
|
|
6712
6720
|
message.is_parent_public = (_e = object.is_parent_public) != null ? _e : false;
|
|
6721
|
+
message.is_public = (_f = object.is_public) != null ? _f : false;
|
|
6713
6722
|
return message;
|
|
6714
6723
|
}
|
|
6715
6724
|
};
|
|
@@ -6618,7 +6618,7 @@ var ClanJoin = {
|
|
|
6618
6618
|
}
|
|
6619
6619
|
};
|
|
6620
6620
|
function createBaseChannelJoin() {
|
|
6621
|
-
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
|
|
6621
|
+
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false, is_public: false };
|
|
6622
6622
|
}
|
|
6623
6623
|
var ChannelJoin = {
|
|
6624
6624
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -6637,6 +6637,9 @@ var ChannelJoin = {
|
|
|
6637
6637
|
if (message.is_parent_public === true) {
|
|
6638
6638
|
writer.uint32(40).bool(message.is_parent_public);
|
|
6639
6639
|
}
|
|
6640
|
+
if (message.is_public === true) {
|
|
6641
|
+
writer.uint32(48).bool(message.is_public);
|
|
6642
|
+
}
|
|
6640
6643
|
return writer;
|
|
6641
6644
|
},
|
|
6642
6645
|
decode(input, length) {
|
|
@@ -6661,6 +6664,9 @@ var ChannelJoin = {
|
|
|
6661
6664
|
case 5:
|
|
6662
6665
|
message.is_parent_public = reader.bool();
|
|
6663
6666
|
break;
|
|
6667
|
+
case 6:
|
|
6668
|
+
message.is_public = reader.bool();
|
|
6669
|
+
break;
|
|
6664
6670
|
default:
|
|
6665
6671
|
reader.skipType(tag & 7);
|
|
6666
6672
|
break;
|
|
@@ -6674,7 +6680,8 @@ var ChannelJoin = {
|
|
|
6674
6680
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6675
6681
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
|
|
6676
6682
|
parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
|
|
6677
|
-
is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
|
|
6683
|
+
is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
|
|
6684
|
+
is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
|
|
6678
6685
|
};
|
|
6679
6686
|
},
|
|
6680
6687
|
toJSON(message) {
|
|
@@ -6684,19 +6691,21 @@ var ChannelJoin = {
|
|
|
6684
6691
|
message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
|
|
6685
6692
|
message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
|
|
6686
6693
|
message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
|
|
6694
|
+
message.is_public !== void 0 && (obj.is_public = message.is_public);
|
|
6687
6695
|
return obj;
|
|
6688
6696
|
},
|
|
6689
6697
|
create(base) {
|
|
6690
6698
|
return ChannelJoin.fromPartial(base != null ? base : {});
|
|
6691
6699
|
},
|
|
6692
6700
|
fromPartial(object) {
|
|
6693
|
-
var _a, _b, _c, _d, _e;
|
|
6701
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6694
6702
|
const message = createBaseChannelJoin();
|
|
6695
6703
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6696
6704
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
6697
6705
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
6698
6706
|
message.parent_id = (_d = object.parent_id) != null ? _d : "";
|
|
6699
6707
|
message.is_parent_public = (_e = object.is_parent_public) != null ? _e : false;
|
|
6708
|
+
message.is_public = (_f = object.is_public) != null ? _f : false;
|
|
6700
6709
|
return message;
|
|
6701
6710
|
}
|
|
6702
6711
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.47",
|
|
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",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -445,6 +445,8 @@ export interface ChannelJoin {
|
|
|
445
445
|
parent_id: string;
|
|
446
446
|
/** parent public */
|
|
447
447
|
is_parent_public: boolean;
|
|
448
|
+
/** is public */
|
|
449
|
+
is_public: boolean;
|
|
448
450
|
}
|
|
449
451
|
|
|
450
452
|
/** Leave a realtime channel. */
|
|
@@ -3506,7 +3508,7 @@ export const ClanJoin = {
|
|
|
3506
3508
|
};
|
|
3507
3509
|
|
|
3508
3510
|
function createBaseChannelJoin(): ChannelJoin {
|
|
3509
|
-
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
|
|
3511
|
+
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false, is_public: false };
|
|
3510
3512
|
}
|
|
3511
3513
|
|
|
3512
3514
|
export const ChannelJoin = {
|
|
@@ -3526,6 +3528,9 @@ export const ChannelJoin = {
|
|
|
3526
3528
|
if (message.is_parent_public === true) {
|
|
3527
3529
|
writer.uint32(40).bool(message.is_parent_public);
|
|
3528
3530
|
}
|
|
3531
|
+
if (message.is_public === true) {
|
|
3532
|
+
writer.uint32(48).bool(message.is_public);
|
|
3533
|
+
}
|
|
3529
3534
|
return writer;
|
|
3530
3535
|
},
|
|
3531
3536
|
|
|
@@ -3551,6 +3556,9 @@ export const ChannelJoin = {
|
|
|
3551
3556
|
case 5:
|
|
3552
3557
|
message.is_parent_public = reader.bool();
|
|
3553
3558
|
break;
|
|
3559
|
+
case 6:
|
|
3560
|
+
message.is_public = reader.bool();
|
|
3561
|
+
break;
|
|
3554
3562
|
default:
|
|
3555
3563
|
reader.skipType(tag & 7);
|
|
3556
3564
|
break;
|
|
@@ -3566,6 +3574,7 @@ export const ChannelJoin = {
|
|
|
3566
3574
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
|
|
3567
3575
|
parent_id: isSet(object.parent_id) ? String(object.parent_id) : "",
|
|
3568
3576
|
is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
|
|
3577
|
+
is_public: isSet(object.is_public) ? Boolean(object.is_public) : false,
|
|
3569
3578
|
};
|
|
3570
3579
|
},
|
|
3571
3580
|
|
|
@@ -3576,6 +3585,7 @@ export const ChannelJoin = {
|
|
|
3576
3585
|
message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
|
|
3577
3586
|
message.parent_id !== undefined && (obj.parent_id = message.parent_id);
|
|
3578
3587
|
message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
|
|
3588
|
+
message.is_public !== undefined && (obj.is_public = message.is_public);
|
|
3579
3589
|
return obj;
|
|
3580
3590
|
},
|
|
3581
3591
|
|
|
@@ -3590,6 +3600,7 @@ export const ChannelJoin = {
|
|
|
3590
3600
|
message.channel_type = object.channel_type ?? 0;
|
|
3591
3601
|
message.parent_id = object.parent_id ?? "";
|
|
3592
3602
|
message.is_parent_public = object.is_parent_public ?? false;
|
|
3603
|
+
message.is_public = object.is_public ?? false;
|
|
3593
3604
|
return message;
|
|
3594
3605
|
},
|
|
3595
3606
|
};
|