mezon-js-protobuf 1.5.45 → 1.5.46
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.
|
@@ -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.46",
|
|
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
|
};
|