mezon-js-protobuf 1.8.11 → 1.8.12
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.
|
@@ -807,6 +807,8 @@ export interface ChannelUpdatedEvent {
|
|
|
807
807
|
age_restricted: number;
|
|
808
808
|
/** */
|
|
809
809
|
active: number;
|
|
810
|
+
/** count message unread */
|
|
811
|
+
count_mess_unread: number;
|
|
810
812
|
}
|
|
811
813
|
/** Stop receiving status updates for some set of users. */
|
|
812
814
|
export interface StatusUnfollow {
|
|
@@ -1591,6 +1593,7 @@ export declare const Envelope: {
|
|
|
1591
1593
|
topic?: string | undefined;
|
|
1592
1594
|
age_restricted?: number | undefined;
|
|
1593
1595
|
active?: number | undefined;
|
|
1596
|
+
count_mess_unread?: number | undefined;
|
|
1594
1597
|
} | undefined;
|
|
1595
1598
|
last_pin_message_event?: {
|
|
1596
1599
|
clan_id?: string | undefined;
|
|
@@ -3684,6 +3687,7 @@ export declare const Envelope: {
|
|
|
3684
3687
|
topic?: string | undefined;
|
|
3685
3688
|
age_restricted?: number | undefined;
|
|
3686
3689
|
active?: number | undefined;
|
|
3690
|
+
count_mess_unread?: number | undefined;
|
|
3687
3691
|
} & {
|
|
3688
3692
|
clan_id?: string | undefined;
|
|
3689
3693
|
category_id?: string | undefined;
|
|
@@ -3701,6 +3705,7 @@ export declare const Envelope: {
|
|
|
3701
3705
|
topic?: string | undefined;
|
|
3702
3706
|
age_restricted?: number | undefined;
|
|
3703
3707
|
active?: number | undefined;
|
|
3708
|
+
count_mess_unread?: number | undefined;
|
|
3704
3709
|
} & { [K_79 in Exclude<keyof I["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
|
|
3705
3710
|
last_pin_message_event?: ({
|
|
3706
3711
|
clan_id?: string | undefined;
|
|
@@ -5895,6 +5900,7 @@ export declare const Envelope: {
|
|
|
5895
5900
|
topic?: string | undefined;
|
|
5896
5901
|
age_restricted?: number | undefined;
|
|
5897
5902
|
active?: number | undefined;
|
|
5903
|
+
count_mess_unread?: number | undefined;
|
|
5898
5904
|
} | undefined;
|
|
5899
5905
|
last_pin_message_event?: {
|
|
5900
5906
|
clan_id?: string | undefined;
|
|
@@ -7988,6 +7994,7 @@ export declare const Envelope: {
|
|
|
7988
7994
|
topic?: string | undefined;
|
|
7989
7995
|
age_restricted?: number | undefined;
|
|
7990
7996
|
active?: number | undefined;
|
|
7997
|
+
count_mess_unread?: number | undefined;
|
|
7991
7998
|
} & {
|
|
7992
7999
|
clan_id?: string | undefined;
|
|
7993
8000
|
category_id?: string | undefined;
|
|
@@ -8005,6 +8012,7 @@ export declare const Envelope: {
|
|
|
8005
8012
|
topic?: string | undefined;
|
|
8006
8013
|
age_restricted?: number | undefined;
|
|
8007
8014
|
active?: number | undefined;
|
|
8015
|
+
count_mess_unread?: number | undefined;
|
|
8008
8016
|
} & { [K_274 in Exclude<keyof I_1["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
|
|
8009
8017
|
last_pin_message_event?: ({
|
|
8010
8018
|
clan_id?: string | undefined;
|
|
@@ -14153,6 +14161,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
14153
14161
|
topic?: string | undefined;
|
|
14154
14162
|
age_restricted?: number | undefined;
|
|
14155
14163
|
active?: number | undefined;
|
|
14164
|
+
count_mess_unread?: number | undefined;
|
|
14156
14165
|
} & {
|
|
14157
14166
|
clan_id?: string | undefined;
|
|
14158
14167
|
category_id?: string | undefined;
|
|
@@ -14170,6 +14179,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
14170
14179
|
topic?: string | undefined;
|
|
14171
14180
|
age_restricted?: number | undefined;
|
|
14172
14181
|
active?: number | undefined;
|
|
14182
|
+
count_mess_unread?: number | undefined;
|
|
14173
14183
|
} & { [K in Exclude<keyof I, keyof ChannelUpdatedEvent>]: never; }>(base?: I | undefined): ChannelUpdatedEvent;
|
|
14174
14184
|
fromPartial<I_1 extends {
|
|
14175
14185
|
clan_id?: string | undefined;
|
|
@@ -14188,6 +14198,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
14188
14198
|
topic?: string | undefined;
|
|
14189
14199
|
age_restricted?: number | undefined;
|
|
14190
14200
|
active?: number | undefined;
|
|
14201
|
+
count_mess_unread?: number | undefined;
|
|
14191
14202
|
} & {
|
|
14192
14203
|
clan_id?: string | undefined;
|
|
14193
14204
|
category_id?: string | undefined;
|
|
@@ -14205,6 +14216,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
14205
14216
|
topic?: string | undefined;
|
|
14206
14217
|
age_restricted?: number | undefined;
|
|
14207
14218
|
active?: number | undefined;
|
|
14219
|
+
count_mess_unread?: number | undefined;
|
|
14208
14220
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelUpdatedEvent>]: never; }>(object: I_1): ChannelUpdatedEvent;
|
|
14209
14221
|
};
|
|
14210
14222
|
export declare const StatusUnfollow: {
|
|
@@ -12834,7 +12834,8 @@ function createBaseChannelUpdatedEvent() {
|
|
|
12834
12834
|
e2ee: 0,
|
|
12835
12835
|
topic: "",
|
|
12836
12836
|
age_restricted: 0,
|
|
12837
|
-
active: 0
|
|
12837
|
+
active: 0,
|
|
12838
|
+
count_mess_unread: 0
|
|
12838
12839
|
};
|
|
12839
12840
|
}
|
|
12840
12841
|
var ChannelUpdatedEvent = {
|
|
@@ -12887,6 +12888,9 @@ var ChannelUpdatedEvent = {
|
|
|
12887
12888
|
if (message.active !== 0) {
|
|
12888
12889
|
writer.uint32(128).int32(message.active);
|
|
12889
12890
|
}
|
|
12891
|
+
if (message.count_mess_unread !== 0) {
|
|
12892
|
+
writer.uint32(136).int32(message.count_mess_unread);
|
|
12893
|
+
}
|
|
12890
12894
|
return writer;
|
|
12891
12895
|
},
|
|
12892
12896
|
decode(input, length) {
|
|
@@ -12992,6 +12996,12 @@ var ChannelUpdatedEvent = {
|
|
|
12992
12996
|
}
|
|
12993
12997
|
message.active = reader.int32();
|
|
12994
12998
|
continue;
|
|
12999
|
+
case 17:
|
|
13000
|
+
if (tag !== 136) {
|
|
13001
|
+
break;
|
|
13002
|
+
}
|
|
13003
|
+
message.count_mess_unread = reader.int32();
|
|
13004
|
+
continue;
|
|
12995
13005
|
}
|
|
12996
13006
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12997
13007
|
break;
|
|
@@ -13017,7 +13027,8 @@ var ChannelUpdatedEvent = {
|
|
|
13017
13027
|
e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
13018
13028
|
topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
|
|
13019
13029
|
age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
13020
|
-
active: isSet4(object.active) ? globalThis.Number(object.active) : 0
|
|
13030
|
+
active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
|
|
13031
|
+
count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0
|
|
13021
13032
|
};
|
|
13022
13033
|
},
|
|
13023
13034
|
toJSON(message) {
|
|
@@ -13070,13 +13081,16 @@ var ChannelUpdatedEvent = {
|
|
|
13070
13081
|
if (message.active !== 0) {
|
|
13071
13082
|
obj.active = Math.round(message.active);
|
|
13072
13083
|
}
|
|
13084
|
+
if (message.count_mess_unread !== 0) {
|
|
13085
|
+
obj.count_mess_unread = Math.round(message.count_mess_unread);
|
|
13086
|
+
}
|
|
13073
13087
|
return obj;
|
|
13074
13088
|
},
|
|
13075
13089
|
create(base) {
|
|
13076
13090
|
return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
|
|
13077
13091
|
},
|
|
13078
13092
|
fromPartial(object) {
|
|
13079
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
13093
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
13080
13094
|
const message = createBaseChannelUpdatedEvent();
|
|
13081
13095
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
13082
13096
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -13094,6 +13108,7 @@ var ChannelUpdatedEvent = {
|
|
|
13094
13108
|
message.topic = (_n = object.topic) != null ? _n : "";
|
|
13095
13109
|
message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
|
|
13096
13110
|
message.active = (_p = object.active) != null ? _p : 0;
|
|
13111
|
+
message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
|
|
13097
13112
|
return message;
|
|
13098
13113
|
}
|
|
13099
13114
|
};
|
|
@@ -12821,7 +12821,8 @@ function createBaseChannelUpdatedEvent() {
|
|
|
12821
12821
|
e2ee: 0,
|
|
12822
12822
|
topic: "",
|
|
12823
12823
|
age_restricted: 0,
|
|
12824
|
-
active: 0
|
|
12824
|
+
active: 0,
|
|
12825
|
+
count_mess_unread: 0
|
|
12825
12826
|
};
|
|
12826
12827
|
}
|
|
12827
12828
|
var ChannelUpdatedEvent = {
|
|
@@ -12874,6 +12875,9 @@ var ChannelUpdatedEvent = {
|
|
|
12874
12875
|
if (message.active !== 0) {
|
|
12875
12876
|
writer.uint32(128).int32(message.active);
|
|
12876
12877
|
}
|
|
12878
|
+
if (message.count_mess_unread !== 0) {
|
|
12879
|
+
writer.uint32(136).int32(message.count_mess_unread);
|
|
12880
|
+
}
|
|
12877
12881
|
return writer;
|
|
12878
12882
|
},
|
|
12879
12883
|
decode(input, length) {
|
|
@@ -12979,6 +12983,12 @@ var ChannelUpdatedEvent = {
|
|
|
12979
12983
|
}
|
|
12980
12984
|
message.active = reader.int32();
|
|
12981
12985
|
continue;
|
|
12986
|
+
case 17:
|
|
12987
|
+
if (tag !== 136) {
|
|
12988
|
+
break;
|
|
12989
|
+
}
|
|
12990
|
+
message.count_mess_unread = reader.int32();
|
|
12991
|
+
continue;
|
|
12982
12992
|
}
|
|
12983
12993
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12984
12994
|
break;
|
|
@@ -13004,7 +13014,8 @@ var ChannelUpdatedEvent = {
|
|
|
13004
13014
|
e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
13005
13015
|
topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
|
|
13006
13016
|
age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
13007
|
-
active: isSet4(object.active) ? globalThis.Number(object.active) : 0
|
|
13017
|
+
active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
|
|
13018
|
+
count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0
|
|
13008
13019
|
};
|
|
13009
13020
|
},
|
|
13010
13021
|
toJSON(message) {
|
|
@@ -13057,13 +13068,16 @@ var ChannelUpdatedEvent = {
|
|
|
13057
13068
|
if (message.active !== 0) {
|
|
13058
13069
|
obj.active = Math.round(message.active);
|
|
13059
13070
|
}
|
|
13071
|
+
if (message.count_mess_unread !== 0) {
|
|
13072
|
+
obj.count_mess_unread = Math.round(message.count_mess_unread);
|
|
13073
|
+
}
|
|
13060
13074
|
return obj;
|
|
13061
13075
|
},
|
|
13062
13076
|
create(base) {
|
|
13063
13077
|
return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
|
|
13064
13078
|
},
|
|
13065
13079
|
fromPartial(object) {
|
|
13066
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
13080
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
13067
13081
|
const message = createBaseChannelUpdatedEvent();
|
|
13068
13082
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
13069
13083
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -13081,6 +13095,7 @@ var ChannelUpdatedEvent = {
|
|
|
13081
13095
|
message.topic = (_n = object.topic) != null ? _n : "";
|
|
13082
13096
|
message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
|
|
13083
13097
|
message.active = (_p = object.active) != null ? _p : 0;
|
|
13098
|
+
message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
|
|
13084
13099
|
return message;
|
|
13085
13100
|
}
|
|
13086
13101
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.12",
|
|
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
|
@@ -1120,6 +1120,8 @@ export interface ChannelUpdatedEvent {
|
|
|
1120
1120
|
age_restricted: number;
|
|
1121
1121
|
/** */
|
|
1122
1122
|
active: number;
|
|
1123
|
+
/** count message unread */
|
|
1124
|
+
count_mess_unread: number;
|
|
1123
1125
|
}
|
|
1124
1126
|
|
|
1125
1127
|
/** Stop receiving status updates for some set of users. */
|
|
@@ -9183,6 +9185,7 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
|
|
|
9183
9185
|
topic: "",
|
|
9184
9186
|
age_restricted: 0,
|
|
9185
9187
|
active: 0,
|
|
9188
|
+
count_mess_unread: 0,
|
|
9186
9189
|
};
|
|
9187
9190
|
}
|
|
9188
9191
|
|
|
@@ -9236,6 +9239,9 @@ export const ChannelUpdatedEvent = {
|
|
|
9236
9239
|
if (message.active !== 0) {
|
|
9237
9240
|
writer.uint32(128).int32(message.active);
|
|
9238
9241
|
}
|
|
9242
|
+
if (message.count_mess_unread !== 0) {
|
|
9243
|
+
writer.uint32(136).int32(message.count_mess_unread);
|
|
9244
|
+
}
|
|
9239
9245
|
return writer;
|
|
9240
9246
|
},
|
|
9241
9247
|
|
|
@@ -9358,6 +9364,13 @@ export const ChannelUpdatedEvent = {
|
|
|
9358
9364
|
|
|
9359
9365
|
message.active = reader.int32();
|
|
9360
9366
|
continue;
|
|
9367
|
+
case 17:
|
|
9368
|
+
if (tag !== 136) {
|
|
9369
|
+
break;
|
|
9370
|
+
}
|
|
9371
|
+
|
|
9372
|
+
message.count_mess_unread = reader.int32();
|
|
9373
|
+
continue;
|
|
9361
9374
|
}
|
|
9362
9375
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9363
9376
|
break;
|
|
@@ -9385,6 +9398,7 @@ export const ChannelUpdatedEvent = {
|
|
|
9385
9398
|
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
9386
9399
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
9387
9400
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
9401
|
+
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
9388
9402
|
};
|
|
9389
9403
|
},
|
|
9390
9404
|
|
|
@@ -9438,6 +9452,9 @@ export const ChannelUpdatedEvent = {
|
|
|
9438
9452
|
if (message.active !== 0) {
|
|
9439
9453
|
obj.active = Math.round(message.active);
|
|
9440
9454
|
}
|
|
9455
|
+
if (message.count_mess_unread !== 0) {
|
|
9456
|
+
obj.count_mess_unread = Math.round(message.count_mess_unread);
|
|
9457
|
+
}
|
|
9441
9458
|
return obj;
|
|
9442
9459
|
},
|
|
9443
9460
|
|
|
@@ -9462,6 +9479,7 @@ export const ChannelUpdatedEvent = {
|
|
|
9462
9479
|
message.topic = object.topic ?? "";
|
|
9463
9480
|
message.age_restricted = object.age_restricted ?? 0;
|
|
9464
9481
|
message.active = object.active ?? 0;
|
|
9482
|
+
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
9465
9483
|
return message;
|
|
9466
9484
|
},
|
|
9467
9485
|
};
|