mezon-js-protobuf 1.8.53 → 1.8.54
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.
- package/api/api.ts +141 -99
- package/dist/mezon-js-protobuf/api/api.d.ts +62 -63
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +32 -108
- package/dist/mezon-js-protobuf.cjs.js +13 -56
- package/dist/mezon-js-protobuf.esm.mjs +13 -56
- package/package.json +1 -1
- package/rtapi/realtime.ts +0 -18
|
@@ -9778,21 +9778,15 @@ var NotificationChannelCategorySetting = {
|
|
|
9778
9778
|
}
|
|
9779
9779
|
};
|
|
9780
9780
|
function createBaseRoleList() {
|
|
9781
|
-
return { roles: [],
|
|
9781
|
+
return { roles: [], max_level_permission: 0 };
|
|
9782
9782
|
}
|
|
9783
9783
|
var RoleList = {
|
|
9784
9784
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
9785
9785
|
for (const v of message.roles) {
|
|
9786
9786
|
Role.encode(v, writer.uint32(10).fork()).ldelim();
|
|
9787
9787
|
}
|
|
9788
|
-
if (message.
|
|
9789
|
-
writer.uint32(
|
|
9790
|
-
}
|
|
9791
|
-
if (message.prev_cursor !== "") {
|
|
9792
|
-
writer.uint32(26).string(message.prev_cursor);
|
|
9793
|
-
}
|
|
9794
|
-
if (message.cacheable_cursor !== "") {
|
|
9795
|
-
writer.uint32(34).string(message.cacheable_cursor);
|
|
9788
|
+
if (message.max_level_permission !== 0) {
|
|
9789
|
+
writer.uint32(16).int32(message.max_level_permission);
|
|
9796
9790
|
}
|
|
9797
9791
|
return writer;
|
|
9798
9792
|
},
|
|
@@ -9810,22 +9804,10 @@ var RoleList = {
|
|
|
9810
9804
|
message.roles.push(Role.decode(reader, reader.uint32()));
|
|
9811
9805
|
continue;
|
|
9812
9806
|
case 2:
|
|
9813
|
-
if (tag !==
|
|
9814
|
-
break;
|
|
9815
|
-
}
|
|
9816
|
-
message.next_cursor = reader.string();
|
|
9817
|
-
continue;
|
|
9818
|
-
case 3:
|
|
9819
|
-
if (tag !== 26) {
|
|
9820
|
-
break;
|
|
9821
|
-
}
|
|
9822
|
-
message.prev_cursor = reader.string();
|
|
9823
|
-
continue;
|
|
9824
|
-
case 4:
|
|
9825
|
-
if (tag !== 34) {
|
|
9807
|
+
if (tag !== 16) {
|
|
9826
9808
|
break;
|
|
9827
9809
|
}
|
|
9828
|
-
message.
|
|
9810
|
+
message.max_level_permission = reader.int32();
|
|
9829
9811
|
continue;
|
|
9830
9812
|
}
|
|
9831
9813
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9838,9 +9820,7 @@ var RoleList = {
|
|
|
9838
9820
|
fromJSON(object) {
|
|
9839
9821
|
return {
|
|
9840
9822
|
roles: globalThis.Array.isArray(object == null ? void 0 : object.roles) ? object.roles.map((e) => Role.fromJSON(e)) : [],
|
|
9841
|
-
|
|
9842
|
-
prev_cursor: isSet3(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
|
|
9843
|
-
cacheable_cursor: isSet3(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : ""
|
|
9823
|
+
max_level_permission: isSet3(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0
|
|
9844
9824
|
};
|
|
9845
9825
|
},
|
|
9846
9826
|
toJSON(message) {
|
|
@@ -9849,14 +9829,8 @@ var RoleList = {
|
|
|
9849
9829
|
if ((_a = message.roles) == null ? void 0 : _a.length) {
|
|
9850
9830
|
obj.roles = message.roles.map((e) => Role.toJSON(e));
|
|
9851
9831
|
}
|
|
9852
|
-
if (message.
|
|
9853
|
-
obj.
|
|
9854
|
-
}
|
|
9855
|
-
if (message.prev_cursor !== "") {
|
|
9856
|
-
obj.prev_cursor = message.prev_cursor;
|
|
9857
|
-
}
|
|
9858
|
-
if (message.cacheable_cursor !== "") {
|
|
9859
|
-
obj.cacheable_cursor = message.cacheable_cursor;
|
|
9832
|
+
if (message.max_level_permission !== 0) {
|
|
9833
|
+
obj.max_level_permission = Math.round(message.max_level_permission);
|
|
9860
9834
|
}
|
|
9861
9835
|
return obj;
|
|
9862
9836
|
},
|
|
@@ -9864,12 +9838,10 @@ var RoleList = {
|
|
|
9864
9838
|
return RoleList.fromPartial(base != null ? base : {});
|
|
9865
9839
|
},
|
|
9866
9840
|
fromPartial(object) {
|
|
9867
|
-
var _a, _b
|
|
9841
|
+
var _a, _b;
|
|
9868
9842
|
const message = createBaseRoleList();
|
|
9869
9843
|
message.roles = ((_a = object.roles) == null ? void 0 : _a.map((e) => Role.fromPartial(e))) || [];
|
|
9870
|
-
message.
|
|
9871
|
-
message.prev_cursor = (_c = object.prev_cursor) != null ? _c : "";
|
|
9872
|
-
message.cacheable_cursor = (_d = object.cacheable_cursor) != null ? _d : "";
|
|
9844
|
+
message.max_level_permission = (_b = object.max_level_permission) != null ? _b : 0;
|
|
9873
9845
|
return message;
|
|
9874
9846
|
}
|
|
9875
9847
|
};
|
|
@@ -22158,8 +22130,7 @@ function createBaseUserChannelAdded() {
|
|
|
22158
22130
|
clan_id: "",
|
|
22159
22131
|
caller: void 0,
|
|
22160
22132
|
create_time_second: 0,
|
|
22161
|
-
active: 0
|
|
22162
|
-
member_count: 0
|
|
22133
|
+
active: 0
|
|
22163
22134
|
};
|
|
22164
22135
|
}
|
|
22165
22136
|
var UserChannelAdded = {
|
|
@@ -22185,9 +22156,6 @@ var UserChannelAdded = {
|
|
|
22185
22156
|
if (message.active !== 0) {
|
|
22186
22157
|
writer.uint32(56).int32(message.active);
|
|
22187
22158
|
}
|
|
22188
|
-
if (message.member_count !== 0) {
|
|
22189
|
-
writer.uint32(64).int32(message.member_count);
|
|
22190
|
-
}
|
|
22191
22159
|
return writer;
|
|
22192
22160
|
},
|
|
22193
22161
|
decode(input, length) {
|
|
@@ -22239,12 +22207,6 @@ var UserChannelAdded = {
|
|
|
22239
22207
|
}
|
|
22240
22208
|
message.active = reader.int32();
|
|
22241
22209
|
continue;
|
|
22242
|
-
case 8:
|
|
22243
|
-
if (tag !== 64) {
|
|
22244
|
-
break;
|
|
22245
|
-
}
|
|
22246
|
-
message.member_count = reader.int32();
|
|
22247
|
-
continue;
|
|
22248
22210
|
}
|
|
22249
22211
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22250
22212
|
break;
|
|
@@ -22261,8 +22223,7 @@ var UserChannelAdded = {
|
|
|
22261
22223
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22262
22224
|
caller: isSet4(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
|
|
22263
22225
|
create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
22264
|
-
active: isSet4(object.active) ? globalThis.Number(object.active) : 0
|
|
22265
|
-
member_count: isSet4(object.member_count) ? globalThis.Number(object.member_count) : 0
|
|
22226
|
+
active: isSet4(object.active) ? globalThis.Number(object.active) : 0
|
|
22266
22227
|
};
|
|
22267
22228
|
},
|
|
22268
22229
|
toJSON(message) {
|
|
@@ -22289,16 +22250,13 @@ var UserChannelAdded = {
|
|
|
22289
22250
|
if (message.active !== 0) {
|
|
22290
22251
|
obj.active = Math.round(message.active);
|
|
22291
22252
|
}
|
|
22292
|
-
if (message.member_count !== 0) {
|
|
22293
|
-
obj.member_count = Math.round(message.member_count);
|
|
22294
|
-
}
|
|
22295
22253
|
return obj;
|
|
22296
22254
|
},
|
|
22297
22255
|
create(base) {
|
|
22298
22256
|
return UserChannelAdded.fromPartial(base != null ? base : {});
|
|
22299
22257
|
},
|
|
22300
22258
|
fromPartial(object) {
|
|
22301
|
-
var _a, _b, _c, _d, _e
|
|
22259
|
+
var _a, _b, _c, _d, _e;
|
|
22302
22260
|
const message = createBaseUserChannelAdded();
|
|
22303
22261
|
message.channel_desc = object.channel_desc !== void 0 && object.channel_desc !== null ? ChannelDescription.fromPartial(object.channel_desc) : void 0;
|
|
22304
22262
|
message.users = ((_a = object.users) == null ? void 0 : _a.map((e) => UserProfileRedis.fromPartial(e))) || [];
|
|
@@ -22307,7 +22265,6 @@ var UserChannelAdded = {
|
|
|
22307
22265
|
message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
|
|
22308
22266
|
message.create_time_second = (_d = object.create_time_second) != null ? _d : 0;
|
|
22309
22267
|
message.active = (_e = object.active) != null ? _e : 0;
|
|
22310
|
-
message.member_count = (_f = object.member_count) != null ? _f : 0;
|
|
22311
22268
|
return message;
|
|
22312
22269
|
}
|
|
22313
22270
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.54",
|
|
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
|
@@ -1389,8 +1389,6 @@ export interface UserChannelAdded {
|
|
|
1389
1389
|
create_time_second: number;
|
|
1390
1390
|
/** */
|
|
1391
1391
|
active: number;
|
|
1392
|
-
/** member count for GROUP */
|
|
1393
|
-
member_count: number;
|
|
1394
1392
|
}
|
|
1395
1393
|
|
|
1396
1394
|
/** */
|
|
@@ -11226,7 +11224,6 @@ function createBaseUserChannelAdded(): UserChannelAdded {
|
|
|
11226
11224
|
caller: undefined,
|
|
11227
11225
|
create_time_second: 0,
|
|
11228
11226
|
active: 0,
|
|
11229
|
-
member_count: 0,
|
|
11230
11227
|
};
|
|
11231
11228
|
}
|
|
11232
11229
|
|
|
@@ -11253,9 +11250,6 @@ export const UserChannelAdded = {
|
|
|
11253
11250
|
if (message.active !== 0) {
|
|
11254
11251
|
writer.uint32(56).int32(message.active);
|
|
11255
11252
|
}
|
|
11256
|
-
if (message.member_count !== 0) {
|
|
11257
|
-
writer.uint32(64).int32(message.member_count);
|
|
11258
|
-
}
|
|
11259
11253
|
return writer;
|
|
11260
11254
|
},
|
|
11261
11255
|
|
|
@@ -11315,13 +11309,6 @@ export const UserChannelAdded = {
|
|
|
11315
11309
|
|
|
11316
11310
|
message.active = reader.int32();
|
|
11317
11311
|
continue;
|
|
11318
|
-
case 8:
|
|
11319
|
-
if (tag !== 64) {
|
|
11320
|
-
break;
|
|
11321
|
-
}
|
|
11322
|
-
|
|
11323
|
-
message.member_count = reader.int32();
|
|
11324
|
-
continue;
|
|
11325
11312
|
}
|
|
11326
11313
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11327
11314
|
break;
|
|
@@ -11340,7 +11327,6 @@ export const UserChannelAdded = {
|
|
|
11340
11327
|
caller: isSet(object.caller) ? UserProfileRedis.fromJSON(object.caller) : undefined,
|
|
11341
11328
|
create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
11342
11329
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
11343
|
-
member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
|
|
11344
11330
|
};
|
|
11345
11331
|
},
|
|
11346
11332
|
|
|
@@ -11367,9 +11353,6 @@ export const UserChannelAdded = {
|
|
|
11367
11353
|
if (message.active !== 0) {
|
|
11368
11354
|
obj.active = Math.round(message.active);
|
|
11369
11355
|
}
|
|
11370
|
-
if (message.member_count !== 0) {
|
|
11371
|
-
obj.member_count = Math.round(message.member_count);
|
|
11372
|
-
}
|
|
11373
11356
|
return obj;
|
|
11374
11357
|
},
|
|
11375
11358
|
|
|
@@ -11389,7 +11372,6 @@ export const UserChannelAdded = {
|
|
|
11389
11372
|
: undefined;
|
|
11390
11373
|
message.create_time_second = object.create_time_second ?? 0;
|
|
11391
11374
|
message.active = object.active ?? 0;
|
|
11392
|
-
message.member_count = object.member_count ?? 0;
|
|
11393
11375
|
return message;
|
|
11394
11376
|
},
|
|
11395
11377
|
};
|