mezon-js-protobuf 1.8.46 → 1.8.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.
|
@@ -875,6 +875,8 @@ export interface ChannelUpdatedEvent {
|
|
|
875
875
|
user_ids: string[];
|
|
876
876
|
/** This is the role that needs to be added to the channel */
|
|
877
877
|
role_ids: string[];
|
|
878
|
+
/** */
|
|
879
|
+
channel_avatar: string;
|
|
878
880
|
}
|
|
879
881
|
/** Stop receiving status updates for some set of users. */
|
|
880
882
|
export interface StatusUnfollow {
|
|
@@ -1757,6 +1759,7 @@ export declare const Envelope: {
|
|
|
1757
1759
|
count_mess_unread?: number | undefined;
|
|
1758
1760
|
user_ids?: string[] | undefined;
|
|
1759
1761
|
role_ids?: string[] | undefined;
|
|
1762
|
+
channel_avatar?: string | undefined;
|
|
1760
1763
|
} | undefined;
|
|
1761
1764
|
last_pin_message_event?: {
|
|
1762
1765
|
clan_id?: string | undefined;
|
|
@@ -4817,6 +4820,7 @@ export declare const Envelope: {
|
|
|
4817
4820
|
count_mess_unread?: number | undefined;
|
|
4818
4821
|
user_ids?: string[] | undefined;
|
|
4819
4822
|
role_ids?: string[] | undefined;
|
|
4823
|
+
channel_avatar?: string | undefined;
|
|
4820
4824
|
} & {
|
|
4821
4825
|
clan_id?: string | undefined;
|
|
4822
4826
|
category_id?: string | undefined;
|
|
@@ -4837,6 +4841,7 @@ export declare const Envelope: {
|
|
|
4837
4841
|
count_mess_unread?: number | undefined;
|
|
4838
4842
|
user_ids?: (string[] & string[] & { [K_77 in Exclude<keyof I["channel_updated_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
4839
4843
|
role_ids?: (string[] & string[] & { [K_78 in Exclude<keyof I["channel_updated_event"]["role_ids"], keyof string[]>]: never; }) | undefined;
|
|
4844
|
+
channel_avatar?: string | undefined;
|
|
4840
4845
|
} & { [K_79 in Exclude<keyof I["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
|
|
4841
4846
|
last_pin_message_event?: ({
|
|
4842
4847
|
clan_id?: string | undefined;
|
|
@@ -11728,6 +11733,7 @@ export declare const Envelope: {
|
|
|
11728
11733
|
count_mess_unread?: number | undefined;
|
|
11729
11734
|
user_ids?: string[] | undefined;
|
|
11730
11735
|
role_ids?: string[] | undefined;
|
|
11736
|
+
channel_avatar?: string | undefined;
|
|
11731
11737
|
} | undefined;
|
|
11732
11738
|
last_pin_message_event?: {
|
|
11733
11739
|
clan_id?: string | undefined;
|
|
@@ -14788,6 +14794,7 @@ export declare const Envelope: {
|
|
|
14788
14794
|
count_mess_unread?: number | undefined;
|
|
14789
14795
|
user_ids?: string[] | undefined;
|
|
14790
14796
|
role_ids?: string[] | undefined;
|
|
14797
|
+
channel_avatar?: string | undefined;
|
|
14791
14798
|
} & {
|
|
14792
14799
|
clan_id?: string | undefined;
|
|
14793
14800
|
category_id?: string | undefined;
|
|
@@ -14808,6 +14815,7 @@ export declare const Envelope: {
|
|
|
14808
14815
|
count_mess_unread?: number | undefined;
|
|
14809
14816
|
user_ids?: (string[] & string[] & { [K_470 in Exclude<keyof I_1["channel_updated_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
14810
14817
|
role_ids?: (string[] & string[] & { [K_471 in Exclude<keyof I_1["channel_updated_event"]["role_ids"], keyof string[]>]: never; }) | undefined;
|
|
14818
|
+
channel_avatar?: string | undefined;
|
|
14811
14819
|
} & { [K_472 in Exclude<keyof I_1["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
|
|
14812
14820
|
last_pin_message_event?: ({
|
|
14813
14821
|
clan_id?: string | undefined;
|
|
@@ -26197,6 +26205,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
26197
26205
|
count_mess_unread?: number | undefined;
|
|
26198
26206
|
user_ids?: string[] | undefined;
|
|
26199
26207
|
role_ids?: string[] | undefined;
|
|
26208
|
+
channel_avatar?: string | undefined;
|
|
26200
26209
|
} & {
|
|
26201
26210
|
clan_id?: string | undefined;
|
|
26202
26211
|
category_id?: string | undefined;
|
|
@@ -26217,6 +26226,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
26217
26226
|
count_mess_unread?: number | undefined;
|
|
26218
26227
|
user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
26219
26228
|
role_ids?: (string[] & string[] & { [K_1 in Exclude<keyof I["role_ids"], keyof string[]>]: never; }) | undefined;
|
|
26229
|
+
channel_avatar?: string | undefined;
|
|
26220
26230
|
} & { [K_2 in Exclude<keyof I, keyof ChannelUpdatedEvent>]: never; }>(base?: I | undefined): ChannelUpdatedEvent;
|
|
26221
26231
|
fromPartial<I_1 extends {
|
|
26222
26232
|
clan_id?: string | undefined;
|
|
@@ -26238,6 +26248,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
26238
26248
|
count_mess_unread?: number | undefined;
|
|
26239
26249
|
user_ids?: string[] | undefined;
|
|
26240
26250
|
role_ids?: string[] | undefined;
|
|
26251
|
+
channel_avatar?: string | undefined;
|
|
26241
26252
|
} & {
|
|
26242
26253
|
clan_id?: string | undefined;
|
|
26243
26254
|
category_id?: string | undefined;
|
|
@@ -26258,6 +26269,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
26258
26269
|
count_mess_unread?: number | undefined;
|
|
26259
26270
|
user_ids?: (string[] & string[] & { [K_3 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
26260
26271
|
role_ids?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["role_ids"], keyof string[]>]: never; }) | undefined;
|
|
26272
|
+
channel_avatar?: string | undefined;
|
|
26261
26273
|
} & { [K_5 in Exclude<keyof I_1, keyof ChannelUpdatedEvent>]: never; }>(object: I_1): ChannelUpdatedEvent;
|
|
26262
26274
|
};
|
|
26263
26275
|
export declare const StatusUnfollow: {
|
|
@@ -21069,7 +21069,8 @@ function createBaseChannelUpdatedEvent() {
|
|
|
21069
21069
|
active: 0,
|
|
21070
21070
|
count_mess_unread: 0,
|
|
21071
21071
|
user_ids: [],
|
|
21072
|
-
role_ids: []
|
|
21072
|
+
role_ids: [],
|
|
21073
|
+
channel_avatar: ""
|
|
21073
21074
|
};
|
|
21074
21075
|
}
|
|
21075
21076
|
var ChannelUpdatedEvent = {
|
|
@@ -21131,6 +21132,9 @@ var ChannelUpdatedEvent = {
|
|
|
21131
21132
|
for (const v of message.role_ids) {
|
|
21132
21133
|
writer.uint32(154).string(v);
|
|
21133
21134
|
}
|
|
21135
|
+
if (message.channel_avatar !== "") {
|
|
21136
|
+
writer.uint32(162).string(message.channel_avatar);
|
|
21137
|
+
}
|
|
21134
21138
|
return writer;
|
|
21135
21139
|
},
|
|
21136
21140
|
decode(input, length) {
|
|
@@ -21254,6 +21258,12 @@ var ChannelUpdatedEvent = {
|
|
|
21254
21258
|
}
|
|
21255
21259
|
message.role_ids.push(reader.string());
|
|
21256
21260
|
continue;
|
|
21261
|
+
case 20:
|
|
21262
|
+
if (tag !== 162) {
|
|
21263
|
+
break;
|
|
21264
|
+
}
|
|
21265
|
+
message.channel_avatar = reader.string();
|
|
21266
|
+
continue;
|
|
21257
21267
|
}
|
|
21258
21268
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21259
21269
|
break;
|
|
@@ -21282,7 +21292,8 @@ var ChannelUpdatedEvent = {
|
|
|
21282
21292
|
active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
|
|
21283
21293
|
count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
21284
21294
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
21285
|
-
role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : []
|
|
21295
|
+
role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
|
|
21296
|
+
channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
|
|
21286
21297
|
};
|
|
21287
21298
|
},
|
|
21288
21299
|
toJSON(message) {
|
|
@@ -21345,13 +21356,16 @@ var ChannelUpdatedEvent = {
|
|
|
21345
21356
|
if ((_b = message.role_ids) == null ? void 0 : _b.length) {
|
|
21346
21357
|
obj.role_ids = message.role_ids;
|
|
21347
21358
|
}
|
|
21359
|
+
if (message.channel_avatar !== "") {
|
|
21360
|
+
obj.channel_avatar = message.channel_avatar;
|
|
21361
|
+
}
|
|
21348
21362
|
return obj;
|
|
21349
21363
|
},
|
|
21350
21364
|
create(base) {
|
|
21351
21365
|
return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
|
|
21352
21366
|
},
|
|
21353
21367
|
fromPartial(object) {
|
|
21354
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
21368
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
21355
21369
|
const message = createBaseChannelUpdatedEvent();
|
|
21356
21370
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
21357
21371
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -21372,6 +21386,7 @@ var ChannelUpdatedEvent = {
|
|
|
21372
21386
|
message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
|
|
21373
21387
|
message.user_ids = ((_r = object.user_ids) == null ? void 0 : _r.map((e) => e)) || [];
|
|
21374
21388
|
message.role_ids = ((_s = object.role_ids) == null ? void 0 : _s.map((e) => e)) || [];
|
|
21389
|
+
message.channel_avatar = (_t = object.channel_avatar) != null ? _t : "";
|
|
21375
21390
|
return message;
|
|
21376
21391
|
}
|
|
21377
21392
|
};
|
|
@@ -21056,7 +21056,8 @@ function createBaseChannelUpdatedEvent() {
|
|
|
21056
21056
|
active: 0,
|
|
21057
21057
|
count_mess_unread: 0,
|
|
21058
21058
|
user_ids: [],
|
|
21059
|
-
role_ids: []
|
|
21059
|
+
role_ids: [],
|
|
21060
|
+
channel_avatar: ""
|
|
21060
21061
|
};
|
|
21061
21062
|
}
|
|
21062
21063
|
var ChannelUpdatedEvent = {
|
|
@@ -21118,6 +21119,9 @@ var ChannelUpdatedEvent = {
|
|
|
21118
21119
|
for (const v of message.role_ids) {
|
|
21119
21120
|
writer.uint32(154).string(v);
|
|
21120
21121
|
}
|
|
21122
|
+
if (message.channel_avatar !== "") {
|
|
21123
|
+
writer.uint32(162).string(message.channel_avatar);
|
|
21124
|
+
}
|
|
21121
21125
|
return writer;
|
|
21122
21126
|
},
|
|
21123
21127
|
decode(input, length) {
|
|
@@ -21241,6 +21245,12 @@ var ChannelUpdatedEvent = {
|
|
|
21241
21245
|
}
|
|
21242
21246
|
message.role_ids.push(reader.string());
|
|
21243
21247
|
continue;
|
|
21248
|
+
case 20:
|
|
21249
|
+
if (tag !== 162) {
|
|
21250
|
+
break;
|
|
21251
|
+
}
|
|
21252
|
+
message.channel_avatar = reader.string();
|
|
21253
|
+
continue;
|
|
21244
21254
|
}
|
|
21245
21255
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21246
21256
|
break;
|
|
@@ -21269,7 +21279,8 @@ var ChannelUpdatedEvent = {
|
|
|
21269
21279
|
active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
|
|
21270
21280
|
count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
21271
21281
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
21272
|
-
role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : []
|
|
21282
|
+
role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
|
|
21283
|
+
channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
|
|
21273
21284
|
};
|
|
21274
21285
|
},
|
|
21275
21286
|
toJSON(message) {
|
|
@@ -21332,13 +21343,16 @@ var ChannelUpdatedEvent = {
|
|
|
21332
21343
|
if ((_b = message.role_ids) == null ? void 0 : _b.length) {
|
|
21333
21344
|
obj.role_ids = message.role_ids;
|
|
21334
21345
|
}
|
|
21346
|
+
if (message.channel_avatar !== "") {
|
|
21347
|
+
obj.channel_avatar = message.channel_avatar;
|
|
21348
|
+
}
|
|
21335
21349
|
return obj;
|
|
21336
21350
|
},
|
|
21337
21351
|
create(base) {
|
|
21338
21352
|
return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
|
|
21339
21353
|
},
|
|
21340
21354
|
fromPartial(object) {
|
|
21341
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
21355
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
21342
21356
|
const message = createBaseChannelUpdatedEvent();
|
|
21343
21357
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
21344
21358
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -21359,6 +21373,7 @@ var ChannelUpdatedEvent = {
|
|
|
21359
21373
|
message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
|
|
21360
21374
|
message.user_ids = ((_r = object.user_ids) == null ? void 0 : _r.map((e) => e)) || [];
|
|
21361
21375
|
message.role_ids = ((_s = object.role_ids) == null ? void 0 : _s.map((e) => e)) || [];
|
|
21376
|
+
message.channel_avatar = (_t = object.channel_avatar) != null ? _t : "";
|
|
21362
21377
|
return message;
|
|
21363
21378
|
}
|
|
21364
21379
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.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
|
@@ -1266,6 +1266,8 @@ export interface ChannelUpdatedEvent {
|
|
|
1266
1266
|
user_ids: string[];
|
|
1267
1267
|
/** This is the role that needs to be added to the channel */
|
|
1268
1268
|
role_ids: string[];
|
|
1269
|
+
/** */
|
|
1270
|
+
channel_avatar: string;
|
|
1269
1271
|
}
|
|
1270
1272
|
|
|
1271
1273
|
/** Stop receiving status updates for some set of users. */
|
|
@@ -10033,6 +10035,7 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
|
|
|
10033
10035
|
count_mess_unread: 0,
|
|
10034
10036
|
user_ids: [],
|
|
10035
10037
|
role_ids: [],
|
|
10038
|
+
channel_avatar: "",
|
|
10036
10039
|
};
|
|
10037
10040
|
}
|
|
10038
10041
|
|
|
@@ -10095,6 +10098,9 @@ export const ChannelUpdatedEvent = {
|
|
|
10095
10098
|
for (const v of message.role_ids) {
|
|
10096
10099
|
writer.uint32(154).string(v!);
|
|
10097
10100
|
}
|
|
10101
|
+
if (message.channel_avatar !== "") {
|
|
10102
|
+
writer.uint32(162).string(message.channel_avatar);
|
|
10103
|
+
}
|
|
10098
10104
|
return writer;
|
|
10099
10105
|
},
|
|
10100
10106
|
|
|
@@ -10238,6 +10244,13 @@ export const ChannelUpdatedEvent = {
|
|
|
10238
10244
|
|
|
10239
10245
|
message.role_ids.push(reader.string());
|
|
10240
10246
|
continue;
|
|
10247
|
+
case 20:
|
|
10248
|
+
if (tag !== 162) {
|
|
10249
|
+
break;
|
|
10250
|
+
}
|
|
10251
|
+
|
|
10252
|
+
message.channel_avatar = reader.string();
|
|
10253
|
+
continue;
|
|
10241
10254
|
}
|
|
10242
10255
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10243
10256
|
break;
|
|
@@ -10268,6 +10281,7 @@ export const ChannelUpdatedEvent = {
|
|
|
10268
10281
|
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
10269
10282
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
10270
10283
|
role_ids: globalThis.Array.isArray(object?.role_ids) ? object.role_ids.map((e: any) => globalThis.String(e)) : [],
|
|
10284
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
10271
10285
|
};
|
|
10272
10286
|
},
|
|
10273
10287
|
|
|
@@ -10330,6 +10344,9 @@ export const ChannelUpdatedEvent = {
|
|
|
10330
10344
|
if (message.role_ids?.length) {
|
|
10331
10345
|
obj.role_ids = message.role_ids;
|
|
10332
10346
|
}
|
|
10347
|
+
if (message.channel_avatar !== "") {
|
|
10348
|
+
obj.channel_avatar = message.channel_avatar;
|
|
10349
|
+
}
|
|
10333
10350
|
return obj;
|
|
10334
10351
|
},
|
|
10335
10352
|
|
|
@@ -10357,6 +10374,7 @@ export const ChannelUpdatedEvent = {
|
|
|
10357
10374
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
10358
10375
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
10359
10376
|
message.role_ids = object.role_ids?.map((e) => e) || [];
|
|
10377
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
10360
10378
|
return message;
|
|
10361
10379
|
},
|
|
10362
10380
|
};
|