mezon-js-protobuf 1.5.43 → 1.5.44
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.
|
@@ -286,6 +286,10 @@ export interface ChannelJoin {
|
|
|
286
286
|
channel_id: string;
|
|
287
287
|
/** channel type */
|
|
288
288
|
channel_type: number;
|
|
289
|
+
/** the parent_id */
|
|
290
|
+
parent_id: string;
|
|
291
|
+
/** parent public */
|
|
292
|
+
is_parent_public: boolean;
|
|
289
293
|
}
|
|
290
294
|
/** Leave a realtime channel. */
|
|
291
295
|
export interface ChannelLeave {
|
|
@@ -886,6 +890,8 @@ export declare const Envelope: {
|
|
|
886
890
|
clan_id?: string | undefined;
|
|
887
891
|
channel_id?: string | undefined;
|
|
888
892
|
channel_type?: number | undefined;
|
|
893
|
+
parent_id?: string | undefined;
|
|
894
|
+
is_parent_public?: boolean | undefined;
|
|
889
895
|
} | undefined;
|
|
890
896
|
channel_leave?: {
|
|
891
897
|
clan_id?: string | undefined;
|
|
@@ -1584,10 +1590,14 @@ export declare const Envelope: {
|
|
|
1584
1590
|
clan_id?: string | undefined;
|
|
1585
1591
|
channel_id?: string | undefined;
|
|
1586
1592
|
channel_type?: number | undefined;
|
|
1593
|
+
parent_id?: string | undefined;
|
|
1594
|
+
is_parent_public?: boolean | undefined;
|
|
1587
1595
|
} & {
|
|
1588
1596
|
clan_id?: string | undefined;
|
|
1589
1597
|
channel_id?: string | undefined;
|
|
1590
1598
|
channel_type?: number | undefined;
|
|
1599
|
+
parent_id?: string | undefined;
|
|
1600
|
+
is_parent_public?: boolean | undefined;
|
|
1591
1601
|
} & { [K_5 in Exclude<keyof I["channel_join"], keyof ChannelJoin>]: never; }) | undefined;
|
|
1592
1602
|
channel_leave?: ({
|
|
1593
1603
|
clan_id?: string | undefined;
|
|
@@ -3638,6 +3648,8 @@ export declare const Envelope: {
|
|
|
3638
3648
|
clan_id?: string | undefined;
|
|
3639
3649
|
channel_id?: string | undefined;
|
|
3640
3650
|
channel_type?: number | undefined;
|
|
3651
|
+
parent_id?: string | undefined;
|
|
3652
|
+
is_parent_public?: boolean | undefined;
|
|
3641
3653
|
} | undefined;
|
|
3642
3654
|
channel_leave?: {
|
|
3643
3655
|
clan_id?: string | undefined;
|
|
@@ -4336,10 +4348,14 @@ export declare const Envelope: {
|
|
|
4336
4348
|
clan_id?: string | undefined;
|
|
4337
4349
|
channel_id?: string | undefined;
|
|
4338
4350
|
channel_type?: number | undefined;
|
|
4351
|
+
parent_id?: string | undefined;
|
|
4352
|
+
is_parent_public?: boolean | undefined;
|
|
4339
4353
|
} & {
|
|
4340
4354
|
clan_id?: string | undefined;
|
|
4341
4355
|
channel_id?: string | undefined;
|
|
4342
4356
|
channel_type?: number | undefined;
|
|
4357
|
+
parent_id?: string | undefined;
|
|
4358
|
+
is_parent_public?: boolean | undefined;
|
|
4343
4359
|
} & { [K_139 in Exclude<keyof I_1["channel_join"], keyof ChannelJoin>]: never; }) | undefined;
|
|
4344
4360
|
channel_leave?: ({
|
|
4345
4361
|
clan_id?: string | undefined;
|
|
@@ -8425,19 +8441,27 @@ export declare const ChannelJoin: {
|
|
|
8425
8441
|
clan_id?: string | undefined;
|
|
8426
8442
|
channel_id?: string | undefined;
|
|
8427
8443
|
channel_type?: number | undefined;
|
|
8444
|
+
parent_id?: string | undefined;
|
|
8445
|
+
is_parent_public?: boolean | undefined;
|
|
8428
8446
|
} & {
|
|
8429
8447
|
clan_id?: string | undefined;
|
|
8430
8448
|
channel_id?: string | undefined;
|
|
8431
8449
|
channel_type?: number | undefined;
|
|
8450
|
+
parent_id?: string | undefined;
|
|
8451
|
+
is_parent_public?: boolean | undefined;
|
|
8432
8452
|
} & { [K in Exclude<keyof I, keyof ChannelJoin>]: never; }>(base?: I | undefined): ChannelJoin;
|
|
8433
8453
|
fromPartial<I_1 extends {
|
|
8434
8454
|
clan_id?: string | undefined;
|
|
8435
8455
|
channel_id?: string | undefined;
|
|
8436
8456
|
channel_type?: number | undefined;
|
|
8457
|
+
parent_id?: string | undefined;
|
|
8458
|
+
is_parent_public?: boolean | undefined;
|
|
8437
8459
|
} & {
|
|
8438
8460
|
clan_id?: string | undefined;
|
|
8439
8461
|
channel_id?: string | undefined;
|
|
8440
8462
|
channel_type?: number | undefined;
|
|
8463
|
+
parent_id?: string | undefined;
|
|
8464
|
+
is_parent_public?: boolean | undefined;
|
|
8441
8465
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelJoin>]: never; }>(object: I_1): ChannelJoin;
|
|
8442
8466
|
};
|
|
8443
8467
|
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 };
|
|
6634
|
+
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
|
|
6635
6635
|
}
|
|
6636
6636
|
var ChannelJoin = {
|
|
6637
6637
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -6644,6 +6644,12 @@ var ChannelJoin = {
|
|
|
6644
6644
|
if (message.channel_type !== 0) {
|
|
6645
6645
|
writer.uint32(24).int32(message.channel_type);
|
|
6646
6646
|
}
|
|
6647
|
+
if (message.parent_id !== "") {
|
|
6648
|
+
writer.uint32(34).string(message.parent_id);
|
|
6649
|
+
}
|
|
6650
|
+
if (message.is_parent_public === true) {
|
|
6651
|
+
writer.uint32(40).bool(message.is_parent_public);
|
|
6652
|
+
}
|
|
6647
6653
|
return writer;
|
|
6648
6654
|
},
|
|
6649
6655
|
decode(input, length) {
|
|
@@ -6662,6 +6668,12 @@ var ChannelJoin = {
|
|
|
6662
6668
|
case 3:
|
|
6663
6669
|
message.channel_type = reader.int32();
|
|
6664
6670
|
break;
|
|
6671
|
+
case 4:
|
|
6672
|
+
message.parent_id = reader.string();
|
|
6673
|
+
break;
|
|
6674
|
+
case 5:
|
|
6675
|
+
message.is_parent_public = reader.bool();
|
|
6676
|
+
break;
|
|
6665
6677
|
default:
|
|
6666
6678
|
reader.skipType(tag & 7);
|
|
6667
6679
|
break;
|
|
@@ -6673,7 +6685,9 @@ var ChannelJoin = {
|
|
|
6673
6685
|
return {
|
|
6674
6686
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
6675
6687
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6676
|
-
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0
|
|
6688
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
|
|
6689
|
+
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
|
|
6677
6691
|
};
|
|
6678
6692
|
},
|
|
6679
6693
|
toJSON(message) {
|
|
@@ -6681,17 +6695,21 @@ var ChannelJoin = {
|
|
|
6681
6695
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
6682
6696
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6683
6697
|
message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
|
|
6698
|
+
message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
|
|
6699
|
+
message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
|
|
6684
6700
|
return obj;
|
|
6685
6701
|
},
|
|
6686
6702
|
create(base) {
|
|
6687
6703
|
return ChannelJoin.fromPartial(base != null ? base : {});
|
|
6688
6704
|
},
|
|
6689
6705
|
fromPartial(object) {
|
|
6690
|
-
var _a, _b, _c;
|
|
6706
|
+
var _a, _b, _c, _d, _e;
|
|
6691
6707
|
const message = createBaseChannelJoin();
|
|
6692
6708
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6693
6709
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
6694
6710
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
6711
|
+
message.parent_id = (_d = object.parent_id) != null ? _d : "";
|
|
6712
|
+
message.is_parent_public = (_e = object.is_parent_public) != null ? _e : false;
|
|
6695
6713
|
return message;
|
|
6696
6714
|
}
|
|
6697
6715
|
};
|
|
@@ -6618,7 +6618,7 @@ var ClanJoin = {
|
|
|
6618
6618
|
}
|
|
6619
6619
|
};
|
|
6620
6620
|
function createBaseChannelJoin() {
|
|
6621
|
-
return { clan_id: "", channel_id: "", channel_type: 0 };
|
|
6621
|
+
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
|
|
6622
6622
|
}
|
|
6623
6623
|
var ChannelJoin = {
|
|
6624
6624
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -6631,6 +6631,12 @@ var ChannelJoin = {
|
|
|
6631
6631
|
if (message.channel_type !== 0) {
|
|
6632
6632
|
writer.uint32(24).int32(message.channel_type);
|
|
6633
6633
|
}
|
|
6634
|
+
if (message.parent_id !== "") {
|
|
6635
|
+
writer.uint32(34).string(message.parent_id);
|
|
6636
|
+
}
|
|
6637
|
+
if (message.is_parent_public === true) {
|
|
6638
|
+
writer.uint32(40).bool(message.is_parent_public);
|
|
6639
|
+
}
|
|
6634
6640
|
return writer;
|
|
6635
6641
|
},
|
|
6636
6642
|
decode(input, length) {
|
|
@@ -6649,6 +6655,12 @@ var ChannelJoin = {
|
|
|
6649
6655
|
case 3:
|
|
6650
6656
|
message.channel_type = reader.int32();
|
|
6651
6657
|
break;
|
|
6658
|
+
case 4:
|
|
6659
|
+
message.parent_id = reader.string();
|
|
6660
|
+
break;
|
|
6661
|
+
case 5:
|
|
6662
|
+
message.is_parent_public = reader.bool();
|
|
6663
|
+
break;
|
|
6652
6664
|
default:
|
|
6653
6665
|
reader.skipType(tag & 7);
|
|
6654
6666
|
break;
|
|
@@ -6660,7 +6672,9 @@ var ChannelJoin = {
|
|
|
6660
6672
|
return {
|
|
6661
6673
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
6662
6674
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6663
|
-
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0
|
|
6675
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
|
|
6676
|
+
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
|
|
6664
6678
|
};
|
|
6665
6679
|
},
|
|
6666
6680
|
toJSON(message) {
|
|
@@ -6668,17 +6682,21 @@ var ChannelJoin = {
|
|
|
6668
6682
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
6669
6683
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6670
6684
|
message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
|
|
6685
|
+
message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
|
|
6686
|
+
message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
|
|
6671
6687
|
return obj;
|
|
6672
6688
|
},
|
|
6673
6689
|
create(base) {
|
|
6674
6690
|
return ChannelJoin.fromPartial(base != null ? base : {});
|
|
6675
6691
|
},
|
|
6676
6692
|
fromPartial(object) {
|
|
6677
|
-
var _a, _b, _c;
|
|
6693
|
+
var _a, _b, _c, _d, _e;
|
|
6678
6694
|
const message = createBaseChannelJoin();
|
|
6679
6695
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6680
6696
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
6681
6697
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
6698
|
+
message.parent_id = (_d = object.parent_id) != null ? _d : "";
|
|
6699
|
+
message.is_parent_public = (_e = object.is_parent_public) != null ? _e : false;
|
|
6682
6700
|
return message;
|
|
6683
6701
|
}
|
|
6684
6702
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.44",
|
|
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
|
@@ -441,6 +441,10 @@ export interface ChannelJoin {
|
|
|
441
441
|
channel_id: string;
|
|
442
442
|
/** channel type */
|
|
443
443
|
channel_type: number;
|
|
444
|
+
/** the parent_id */
|
|
445
|
+
parent_id: string;
|
|
446
|
+
/** parent public */
|
|
447
|
+
is_parent_public: boolean;
|
|
444
448
|
}
|
|
445
449
|
|
|
446
450
|
/** Leave a realtime channel. */
|
|
@@ -3496,7 +3500,7 @@ export const ClanJoin = {
|
|
|
3496
3500
|
};
|
|
3497
3501
|
|
|
3498
3502
|
function createBaseChannelJoin(): ChannelJoin {
|
|
3499
|
-
return { clan_id: "", channel_id: "", channel_type: 0 };
|
|
3503
|
+
return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
|
|
3500
3504
|
}
|
|
3501
3505
|
|
|
3502
3506
|
export const ChannelJoin = {
|
|
@@ -3510,6 +3514,12 @@ export const ChannelJoin = {
|
|
|
3510
3514
|
if (message.channel_type !== 0) {
|
|
3511
3515
|
writer.uint32(24).int32(message.channel_type);
|
|
3512
3516
|
}
|
|
3517
|
+
if (message.parent_id !== "") {
|
|
3518
|
+
writer.uint32(34).string(message.parent_id);
|
|
3519
|
+
}
|
|
3520
|
+
if (message.is_parent_public === true) {
|
|
3521
|
+
writer.uint32(40).bool(message.is_parent_public);
|
|
3522
|
+
}
|
|
3513
3523
|
return writer;
|
|
3514
3524
|
},
|
|
3515
3525
|
|
|
@@ -3529,6 +3539,12 @@ export const ChannelJoin = {
|
|
|
3529
3539
|
case 3:
|
|
3530
3540
|
message.channel_type = reader.int32();
|
|
3531
3541
|
break;
|
|
3542
|
+
case 4:
|
|
3543
|
+
message.parent_id = reader.string();
|
|
3544
|
+
break;
|
|
3545
|
+
case 5:
|
|
3546
|
+
message.is_parent_public = reader.bool();
|
|
3547
|
+
break;
|
|
3532
3548
|
default:
|
|
3533
3549
|
reader.skipType(tag & 7);
|
|
3534
3550
|
break;
|
|
@@ -3542,6 +3558,8 @@ export const ChannelJoin = {
|
|
|
3542
3558
|
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
3543
3559
|
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
3544
3560
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
|
|
3561
|
+
parent_id: isSet(object.parent_id) ? String(object.parent_id) : "",
|
|
3562
|
+
is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
|
|
3545
3563
|
};
|
|
3546
3564
|
},
|
|
3547
3565
|
|
|
@@ -3550,6 +3568,8 @@ export const ChannelJoin = {
|
|
|
3550
3568
|
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
3551
3569
|
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
3552
3570
|
message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
|
|
3571
|
+
message.parent_id !== undefined && (obj.parent_id = message.parent_id);
|
|
3572
|
+
message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
|
|
3553
3573
|
return obj;
|
|
3554
3574
|
},
|
|
3555
3575
|
|
|
@@ -3562,6 +3582,8 @@ export const ChannelJoin = {
|
|
|
3562
3582
|
message.clan_id = object.clan_id ?? "";
|
|
3563
3583
|
message.channel_id = object.channel_id ?? "";
|
|
3564
3584
|
message.channel_type = object.channel_type ?? 0;
|
|
3585
|
+
message.parent_id = object.parent_id ?? "";
|
|
3586
|
+
message.is_parent_public = object.is_parent_public ?? false;
|
|
3565
3587
|
return message;
|
|
3566
3588
|
},
|
|
3567
3589
|
};
|