mezon-js-protobuf 1.4.24 → 1.4.25
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.
|
@@ -637,6 +637,8 @@ export interface ChannelUpdatedEvent {
|
|
|
637
637
|
channel_label: string;
|
|
638
638
|
/** channel type */
|
|
639
639
|
channel_type: number | undefined;
|
|
640
|
+
/** status */
|
|
641
|
+
status: number;
|
|
640
642
|
}
|
|
641
643
|
/** Stop receiving status updates for some set of users. */
|
|
642
644
|
export interface StatusUnfollow {
|
|
@@ -1122,6 +1124,7 @@ export declare const Envelope: {
|
|
|
1122
1124
|
channel_id?: string | undefined;
|
|
1123
1125
|
channel_label?: string | undefined;
|
|
1124
1126
|
channel_type?: number | undefined;
|
|
1127
|
+
status?: number | undefined;
|
|
1125
1128
|
} | undefined;
|
|
1126
1129
|
} & {
|
|
1127
1130
|
cid?: string | undefined;
|
|
@@ -2287,6 +2290,7 @@ export declare const Envelope: {
|
|
|
2287
2290
|
channel_id?: string | undefined;
|
|
2288
2291
|
channel_label?: string | undefined;
|
|
2289
2292
|
channel_type?: number | undefined;
|
|
2293
|
+
status?: number | undefined;
|
|
2290
2294
|
} & {
|
|
2291
2295
|
clan_id?: string | undefined;
|
|
2292
2296
|
category_id?: string | undefined;
|
|
@@ -2295,6 +2299,7 @@ export declare const Envelope: {
|
|
|
2295
2299
|
channel_id?: string | undefined;
|
|
2296
2300
|
channel_label?: string | undefined;
|
|
2297
2301
|
channel_type?: number | undefined;
|
|
2302
|
+
status?: number | undefined;
|
|
2298
2303
|
} & { [K_89 in Exclude<keyof I["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
|
|
2299
2304
|
} & { [K_90 in Exclude<keyof I, keyof Envelope>]: never; }>(base?: I | undefined): Envelope;
|
|
2300
2305
|
fromPartial<I_1 extends {
|
|
@@ -2722,6 +2727,7 @@ export declare const Envelope: {
|
|
|
2722
2727
|
channel_id?: string | undefined;
|
|
2723
2728
|
channel_label?: string | undefined;
|
|
2724
2729
|
channel_type?: number | undefined;
|
|
2730
|
+
status?: number | undefined;
|
|
2725
2731
|
} | undefined;
|
|
2726
2732
|
} & {
|
|
2727
2733
|
cid?: string | undefined;
|
|
@@ -3887,6 +3893,7 @@ export declare const Envelope: {
|
|
|
3887
3893
|
channel_id?: string | undefined;
|
|
3888
3894
|
channel_label?: string | undefined;
|
|
3889
3895
|
channel_type?: number | undefined;
|
|
3896
|
+
status?: number | undefined;
|
|
3890
3897
|
} & {
|
|
3891
3898
|
clan_id?: string | undefined;
|
|
3892
3899
|
category_id?: string | undefined;
|
|
@@ -3895,6 +3902,7 @@ export declare const Envelope: {
|
|
|
3895
3902
|
channel_id?: string | undefined;
|
|
3896
3903
|
channel_label?: string | undefined;
|
|
3897
3904
|
channel_type?: number | undefined;
|
|
3905
|
+
status?: number | undefined;
|
|
3898
3906
|
} & { [K_180 in Exclude<keyof I_1["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
|
|
3899
3907
|
} & { [K_181 in Exclude<keyof I_1, keyof Envelope>]: never; }>(object: I_1): Envelope;
|
|
3900
3908
|
};
|
|
@@ -6415,6 +6423,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
6415
6423
|
channel_id?: string | undefined;
|
|
6416
6424
|
channel_label?: string | undefined;
|
|
6417
6425
|
channel_type?: number | undefined;
|
|
6426
|
+
status?: number | undefined;
|
|
6418
6427
|
} & {
|
|
6419
6428
|
clan_id?: string | undefined;
|
|
6420
6429
|
category_id?: string | undefined;
|
|
@@ -6423,6 +6432,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
6423
6432
|
channel_id?: string | undefined;
|
|
6424
6433
|
channel_label?: string | undefined;
|
|
6425
6434
|
channel_type?: number | undefined;
|
|
6435
|
+
status?: number | undefined;
|
|
6426
6436
|
} & { [K in Exclude<keyof I, keyof ChannelUpdatedEvent>]: never; }>(base?: I | undefined): ChannelUpdatedEvent;
|
|
6427
6437
|
fromPartial<I_1 extends {
|
|
6428
6438
|
clan_id?: string | undefined;
|
|
@@ -6432,6 +6442,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
6432
6442
|
channel_id?: string | undefined;
|
|
6433
6443
|
channel_label?: string | undefined;
|
|
6434
6444
|
channel_type?: number | undefined;
|
|
6445
|
+
status?: number | undefined;
|
|
6435
6446
|
} & {
|
|
6436
6447
|
clan_id?: string | undefined;
|
|
6437
6448
|
category_id?: string | undefined;
|
|
@@ -6440,6 +6451,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
6440
6451
|
channel_id?: string | undefined;
|
|
6441
6452
|
channel_label?: string | undefined;
|
|
6442
6453
|
channel_type?: number | undefined;
|
|
6454
|
+
status?: number | undefined;
|
|
6443
6455
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelUpdatedEvent>]: never; }>(object: I_1): ChannelUpdatedEvent;
|
|
6444
6456
|
};
|
|
6445
6457
|
export declare const StatusUnfollow: {
|
|
@@ -6493,7 +6493,8 @@ function createBaseChannelUpdatedEvent() {
|
|
|
6493
6493
|
parrent_id: "",
|
|
6494
6494
|
channel_id: "",
|
|
6495
6495
|
channel_label: "",
|
|
6496
|
-
channel_type: void 0
|
|
6496
|
+
channel_type: void 0,
|
|
6497
|
+
status: 0
|
|
6497
6498
|
};
|
|
6498
6499
|
}
|
|
6499
6500
|
var ChannelUpdatedEvent = {
|
|
@@ -6519,6 +6520,9 @@ var ChannelUpdatedEvent = {
|
|
|
6519
6520
|
if (message.channel_type !== void 0) {
|
|
6520
6521
|
Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
|
|
6521
6522
|
}
|
|
6523
|
+
if (message.status !== 0) {
|
|
6524
|
+
writer.uint32(64).int32(message.status);
|
|
6525
|
+
}
|
|
6522
6526
|
return writer;
|
|
6523
6527
|
},
|
|
6524
6528
|
decode(input, length) {
|
|
@@ -6549,6 +6553,9 @@ var ChannelUpdatedEvent = {
|
|
|
6549
6553
|
case 7:
|
|
6550
6554
|
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
6551
6555
|
break;
|
|
6556
|
+
case 8:
|
|
6557
|
+
message.status = reader.int32();
|
|
6558
|
+
break;
|
|
6552
6559
|
default:
|
|
6553
6560
|
reader.skipType(tag & 7);
|
|
6554
6561
|
break;
|
|
@@ -6564,7 +6571,8 @@ var ChannelUpdatedEvent = {
|
|
|
6564
6571
|
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6565
6572
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6566
6573
|
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
6567
|
-
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0
|
|
6574
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
6575
|
+
status: isSet4(object.status) ? Number(object.status) : 0
|
|
6568
6576
|
};
|
|
6569
6577
|
},
|
|
6570
6578
|
toJSON(message) {
|
|
@@ -6576,13 +6584,14 @@ var ChannelUpdatedEvent = {
|
|
|
6576
6584
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6577
6585
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
6578
6586
|
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
6587
|
+
message.status !== void 0 && (obj.status = Math.round(message.status));
|
|
6579
6588
|
return obj;
|
|
6580
6589
|
},
|
|
6581
6590
|
create(base) {
|
|
6582
6591
|
return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
|
|
6583
6592
|
},
|
|
6584
6593
|
fromPartial(object) {
|
|
6585
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
6594
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6586
6595
|
const message = createBaseChannelUpdatedEvent();
|
|
6587
6596
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6588
6597
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -6591,6 +6600,7 @@ var ChannelUpdatedEvent = {
|
|
|
6591
6600
|
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
6592
6601
|
message.channel_label = (_f = object.channel_label) != null ? _f : "";
|
|
6593
6602
|
message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
|
|
6603
|
+
message.status = (_h = object.status) != null ? _h : 0;
|
|
6594
6604
|
return message;
|
|
6595
6605
|
}
|
|
6596
6606
|
};
|
|
@@ -6480,7 +6480,8 @@ function createBaseChannelUpdatedEvent() {
|
|
|
6480
6480
|
parrent_id: "",
|
|
6481
6481
|
channel_id: "",
|
|
6482
6482
|
channel_label: "",
|
|
6483
|
-
channel_type: void 0
|
|
6483
|
+
channel_type: void 0,
|
|
6484
|
+
status: 0
|
|
6484
6485
|
};
|
|
6485
6486
|
}
|
|
6486
6487
|
var ChannelUpdatedEvent = {
|
|
@@ -6506,6 +6507,9 @@ var ChannelUpdatedEvent = {
|
|
|
6506
6507
|
if (message.channel_type !== void 0) {
|
|
6507
6508
|
Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
|
|
6508
6509
|
}
|
|
6510
|
+
if (message.status !== 0) {
|
|
6511
|
+
writer.uint32(64).int32(message.status);
|
|
6512
|
+
}
|
|
6509
6513
|
return writer;
|
|
6510
6514
|
},
|
|
6511
6515
|
decode(input, length) {
|
|
@@ -6536,6 +6540,9 @@ var ChannelUpdatedEvent = {
|
|
|
6536
6540
|
case 7:
|
|
6537
6541
|
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
6538
6542
|
break;
|
|
6543
|
+
case 8:
|
|
6544
|
+
message.status = reader.int32();
|
|
6545
|
+
break;
|
|
6539
6546
|
default:
|
|
6540
6547
|
reader.skipType(tag & 7);
|
|
6541
6548
|
break;
|
|
@@ -6551,7 +6558,8 @@ var ChannelUpdatedEvent = {
|
|
|
6551
6558
|
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6552
6559
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6553
6560
|
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
6554
|
-
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0
|
|
6561
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
6562
|
+
status: isSet4(object.status) ? Number(object.status) : 0
|
|
6555
6563
|
};
|
|
6556
6564
|
},
|
|
6557
6565
|
toJSON(message) {
|
|
@@ -6563,13 +6571,14 @@ var ChannelUpdatedEvent = {
|
|
|
6563
6571
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6564
6572
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
6565
6573
|
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
6574
|
+
message.status !== void 0 && (obj.status = Math.round(message.status));
|
|
6566
6575
|
return obj;
|
|
6567
6576
|
},
|
|
6568
6577
|
create(base) {
|
|
6569
6578
|
return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
|
|
6570
6579
|
},
|
|
6571
6580
|
fromPartial(object) {
|
|
6572
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
6581
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6573
6582
|
const message = createBaseChannelUpdatedEvent();
|
|
6574
6583
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6575
6584
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -6578,6 +6587,7 @@ var ChannelUpdatedEvent = {
|
|
|
6578
6587
|
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
6579
6588
|
message.channel_label = (_f = object.channel_label) != null ? _f : "";
|
|
6580
6589
|
message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
|
|
6590
|
+
message.status = (_h = object.status) != null ? _h : 0;
|
|
6581
6591
|
return message;
|
|
6582
6592
|
}
|
|
6583
6593
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.25",
|
|
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
|
@@ -847,7 +847,11 @@ export interface ChannelUpdatedEvent {
|
|
|
847
847
|
/** channel label */
|
|
848
848
|
channel_label: string;
|
|
849
849
|
/** channel type */
|
|
850
|
-
channel_type:
|
|
850
|
+
channel_type:
|
|
851
|
+
| number
|
|
852
|
+
| undefined;
|
|
853
|
+
/** status */
|
|
854
|
+
status: number;
|
|
851
855
|
}
|
|
852
856
|
|
|
853
857
|
/** Stop receiving status updates for some set of users. */
|
|
@@ -5541,6 +5545,7 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
|
|
|
5541
5545
|
channel_id: "",
|
|
5542
5546
|
channel_label: "",
|
|
5543
5547
|
channel_type: undefined,
|
|
5548
|
+
status: 0,
|
|
5544
5549
|
};
|
|
5545
5550
|
}
|
|
5546
5551
|
|
|
@@ -5567,6 +5572,9 @@ export const ChannelUpdatedEvent = {
|
|
|
5567
5572
|
if (message.channel_type !== undefined) {
|
|
5568
5573
|
Int32Value.encode({ value: message.channel_type! }, writer.uint32(58).fork()).ldelim();
|
|
5569
5574
|
}
|
|
5575
|
+
if (message.status !== 0) {
|
|
5576
|
+
writer.uint32(64).int32(message.status);
|
|
5577
|
+
}
|
|
5570
5578
|
return writer;
|
|
5571
5579
|
},
|
|
5572
5580
|
|
|
@@ -5598,6 +5606,9 @@ export const ChannelUpdatedEvent = {
|
|
|
5598
5606
|
case 7:
|
|
5599
5607
|
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
5600
5608
|
break;
|
|
5609
|
+
case 8:
|
|
5610
|
+
message.status = reader.int32();
|
|
5611
|
+
break;
|
|
5601
5612
|
default:
|
|
5602
5613
|
reader.skipType(tag & 7);
|
|
5603
5614
|
break;
|
|
@@ -5615,6 +5626,7 @@ export const ChannelUpdatedEvent = {
|
|
|
5615
5626
|
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
5616
5627
|
channel_label: isSet(object.channel_label) ? String(object.channel_label) : "",
|
|
5617
5628
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
|
|
5629
|
+
status: isSet(object.status) ? Number(object.status) : 0,
|
|
5618
5630
|
};
|
|
5619
5631
|
},
|
|
5620
5632
|
|
|
@@ -5627,6 +5639,7 @@ export const ChannelUpdatedEvent = {
|
|
|
5627
5639
|
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
5628
5640
|
message.channel_label !== undefined && (obj.channel_label = message.channel_label);
|
|
5629
5641
|
message.channel_type !== undefined && (obj.channel_type = message.channel_type);
|
|
5642
|
+
message.status !== undefined && (obj.status = Math.round(message.status));
|
|
5630
5643
|
return obj;
|
|
5631
5644
|
},
|
|
5632
5645
|
|
|
@@ -5643,6 +5656,7 @@ export const ChannelUpdatedEvent = {
|
|
|
5643
5656
|
message.channel_id = object.channel_id ?? "";
|
|
5644
5657
|
message.channel_label = object.channel_label ?? "";
|
|
5645
5658
|
message.channel_type = object.channel_type ?? undefined;
|
|
5659
|
+
message.status = object.status ?? 0;
|
|
5646
5660
|
return message;
|
|
5647
5661
|
},
|
|
5648
5662
|
};
|