mezon-js-protobuf 1.8.38 → 1.8.40
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 +177 -143
- package/dist/mezon-js-protobuf/api/api.d.ts +446 -372
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1107 -991
- package/dist/mezon-js-protobuf.cjs.js +202 -172
- package/dist/mezon-js-protobuf.esm.mjs +202 -172
- package/package.json +1 -1
- package/rtapi/realtime.ts +45 -27
|
@@ -5998,7 +5998,8 @@ function createBaseUser() {
|
|
|
5998
5998
|
is_mobile: false,
|
|
5999
5999
|
dob: void 0,
|
|
6000
6000
|
mezon_id: "",
|
|
6001
|
-
list_nick_names: []
|
|
6001
|
+
list_nick_names: [],
|
|
6002
|
+
status: ""
|
|
6002
6003
|
};
|
|
6003
6004
|
}
|
|
6004
6005
|
var User = {
|
|
@@ -6060,6 +6061,9 @@ var User = {
|
|
|
6060
6061
|
for (const v of message.list_nick_names) {
|
|
6061
6062
|
writer.uint32(154).string(v);
|
|
6062
6063
|
}
|
|
6064
|
+
if (message.status !== "") {
|
|
6065
|
+
writer.uint32(162).string(message.status);
|
|
6066
|
+
}
|
|
6063
6067
|
return writer;
|
|
6064
6068
|
},
|
|
6065
6069
|
decode(input, length) {
|
|
@@ -6183,6 +6187,12 @@ var User = {
|
|
|
6183
6187
|
}
|
|
6184
6188
|
message.list_nick_names.push(reader.string());
|
|
6185
6189
|
continue;
|
|
6190
|
+
case 20:
|
|
6191
|
+
if (tag !== 162) {
|
|
6192
|
+
break;
|
|
6193
|
+
}
|
|
6194
|
+
message.status = reader.string();
|
|
6195
|
+
continue;
|
|
6186
6196
|
}
|
|
6187
6197
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6188
6198
|
break;
|
|
@@ -6211,7 +6221,8 @@ var User = {
|
|
|
6211
6221
|
is_mobile: isSet3(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
6212
6222
|
dob: isSet3(object.dob) ? fromJsonTimestamp(object.dob) : void 0,
|
|
6213
6223
|
mezon_id: isSet3(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
6214
|
-
list_nick_names: globalThis.Array.isArray(object == null ? void 0 : object.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : []
|
|
6224
|
+
list_nick_names: globalThis.Array.isArray(object == null ? void 0 : object.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : [],
|
|
6225
|
+
status: isSet3(object.status) ? globalThis.String(object.status) : ""
|
|
6215
6226
|
};
|
|
6216
6227
|
},
|
|
6217
6228
|
toJSON(message) {
|
|
@@ -6274,13 +6285,16 @@ var User = {
|
|
|
6274
6285
|
if ((_a = message.list_nick_names) == null ? void 0 : _a.length) {
|
|
6275
6286
|
obj.list_nick_names = message.list_nick_names;
|
|
6276
6287
|
}
|
|
6288
|
+
if (message.status !== "") {
|
|
6289
|
+
obj.status = message.status;
|
|
6290
|
+
}
|
|
6277
6291
|
return obj;
|
|
6278
6292
|
},
|
|
6279
6293
|
create(base) {
|
|
6280
6294
|
return User.fromPartial(base != null ? base : {});
|
|
6281
6295
|
},
|
|
6282
6296
|
fromPartial(object) {
|
|
6283
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
6297
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
6284
6298
|
const message = createBaseUser();
|
|
6285
6299
|
message.id = (_a = object.id) != null ? _a : "";
|
|
6286
6300
|
message.username = (_b = object.username) != null ? _b : "";
|
|
@@ -6301,6 +6315,7 @@ var User = {
|
|
|
6301
6315
|
message.dob = (_q = object.dob) != null ? _q : void 0;
|
|
6302
6316
|
message.mezon_id = (_r = object.mezon_id) != null ? _r : "";
|
|
6303
6317
|
message.list_nick_names = ((_s = object.list_nick_names) == null ? void 0 : _s.map((e) => e)) || [];
|
|
6318
|
+
message.status = (_t = object.status) != null ? _t : "";
|
|
6304
6319
|
return message;
|
|
6305
6320
|
}
|
|
6306
6321
|
};
|
|
@@ -7084,27 +7099,27 @@ function createBaseChannelDescription() {
|
|
|
7084
7099
|
creator_id: "",
|
|
7085
7100
|
channel_label: "",
|
|
7086
7101
|
channel_private: 0,
|
|
7102
|
+
avatars: [],
|
|
7103
|
+
user_ids: [],
|
|
7087
7104
|
last_sent_message: void 0,
|
|
7088
7105
|
last_seen_message: void 0,
|
|
7106
|
+
onlines: [],
|
|
7089
7107
|
meeting_code: "",
|
|
7090
7108
|
count_mess_unread: 0,
|
|
7091
7109
|
active: 0,
|
|
7092
7110
|
last_pin_message: "",
|
|
7111
|
+
usernames: [],
|
|
7093
7112
|
creator_name: "",
|
|
7094
7113
|
create_time_seconds: 0,
|
|
7095
7114
|
update_time_seconds: 0,
|
|
7115
|
+
display_names: [],
|
|
7116
|
+
channel_avatar: "",
|
|
7096
7117
|
clan_name: "",
|
|
7097
7118
|
app_id: "",
|
|
7098
7119
|
is_mute: false,
|
|
7099
7120
|
age_restricted: 0,
|
|
7100
|
-
channel_avatar: "",
|
|
7101
|
-
e2ee: 0,
|
|
7102
7121
|
topic: "",
|
|
7103
|
-
|
|
7104
|
-
usernames: [],
|
|
7105
|
-
display_names: [],
|
|
7106
|
-
onlines: [],
|
|
7107
|
-
avatars: []
|
|
7122
|
+
e2ee: 0
|
|
7108
7123
|
};
|
|
7109
7124
|
}
|
|
7110
7125
|
var ChannelDescription = {
|
|
@@ -7136,70 +7151,70 @@ var ChannelDescription = {
|
|
|
7136
7151
|
if (message.channel_private !== 0) {
|
|
7137
7152
|
writer.uint32(72).int32(message.channel_private);
|
|
7138
7153
|
}
|
|
7154
|
+
for (const v of message.avatars) {
|
|
7155
|
+
writer.uint32(82).string(v);
|
|
7156
|
+
}
|
|
7157
|
+
for (const v of message.user_ids) {
|
|
7158
|
+
writer.uint32(90).string(v);
|
|
7159
|
+
}
|
|
7139
7160
|
if (message.last_sent_message !== void 0) {
|
|
7140
|
-
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(
|
|
7161
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
|
|
7141
7162
|
}
|
|
7142
7163
|
if (message.last_seen_message !== void 0) {
|
|
7143
|
-
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(
|
|
7164
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
|
|
7144
7165
|
}
|
|
7166
|
+
writer.uint32(114).fork();
|
|
7167
|
+
for (const v of message.onlines) {
|
|
7168
|
+
writer.bool(v);
|
|
7169
|
+
}
|
|
7170
|
+
writer.ldelim();
|
|
7145
7171
|
if (message.meeting_code !== "") {
|
|
7146
|
-
writer.uint32(
|
|
7172
|
+
writer.uint32(122).string(message.meeting_code);
|
|
7147
7173
|
}
|
|
7148
7174
|
if (message.count_mess_unread !== 0) {
|
|
7149
|
-
writer.uint32(
|
|
7175
|
+
writer.uint32(128).int32(message.count_mess_unread);
|
|
7150
7176
|
}
|
|
7151
7177
|
if (message.active !== 0) {
|
|
7152
|
-
writer.uint32(
|
|
7178
|
+
writer.uint32(136).int32(message.active);
|
|
7153
7179
|
}
|
|
7154
7180
|
if (message.last_pin_message !== "") {
|
|
7155
|
-
writer.uint32(
|
|
7181
|
+
writer.uint32(146).string(message.last_pin_message);
|
|
7182
|
+
}
|
|
7183
|
+
for (const v of message.usernames) {
|
|
7184
|
+
writer.uint32(154).string(v);
|
|
7156
7185
|
}
|
|
7157
7186
|
if (message.creator_name !== "") {
|
|
7158
|
-
writer.uint32(
|
|
7187
|
+
writer.uint32(162).string(message.creator_name);
|
|
7159
7188
|
}
|
|
7160
7189
|
if (message.create_time_seconds !== 0) {
|
|
7161
|
-
writer.uint32(
|
|
7190
|
+
writer.uint32(168).uint32(message.create_time_seconds);
|
|
7162
7191
|
}
|
|
7163
7192
|
if (message.update_time_seconds !== 0) {
|
|
7164
|
-
writer.uint32(
|
|
7193
|
+
writer.uint32(176).uint32(message.update_time_seconds);
|
|
7194
|
+
}
|
|
7195
|
+
for (const v of message.display_names) {
|
|
7196
|
+
writer.uint32(186).string(v);
|
|
7197
|
+
}
|
|
7198
|
+
if (message.channel_avatar !== "") {
|
|
7199
|
+
writer.uint32(194).string(message.channel_avatar);
|
|
7165
7200
|
}
|
|
7166
7201
|
if (message.clan_name !== "") {
|
|
7167
|
-
writer.uint32(
|
|
7202
|
+
writer.uint32(202).string(message.clan_name);
|
|
7168
7203
|
}
|
|
7169
7204
|
if (message.app_id !== "") {
|
|
7170
|
-
writer.uint32(
|
|
7205
|
+
writer.uint32(210).string(message.app_id);
|
|
7171
7206
|
}
|
|
7172
7207
|
if (message.is_mute !== false) {
|
|
7173
|
-
writer.uint32(
|
|
7208
|
+
writer.uint32(216).bool(message.is_mute);
|
|
7174
7209
|
}
|
|
7175
7210
|
if (message.age_restricted !== 0) {
|
|
7176
|
-
writer.uint32(
|
|
7177
|
-
}
|
|
7178
|
-
if (message.channel_avatar !== "") {
|
|
7179
|
-
writer.uint32(186).string(message.channel_avatar);
|
|
7180
|
-
}
|
|
7181
|
-
if (message.e2ee !== 0) {
|
|
7182
|
-
writer.uint32(192).int32(message.e2ee);
|
|
7211
|
+
writer.uint32(224).int32(message.age_restricted);
|
|
7183
7212
|
}
|
|
7184
7213
|
if (message.topic !== "") {
|
|
7185
|
-
writer.uint32(
|
|
7186
|
-
}
|
|
7187
|
-
for (const v of message.user_ids) {
|
|
7188
|
-
writer.uint32(210).string(v);
|
|
7189
|
-
}
|
|
7190
|
-
for (const v of message.usernames) {
|
|
7191
|
-
writer.uint32(218).string(v);
|
|
7214
|
+
writer.uint32(234).string(message.topic);
|
|
7192
7215
|
}
|
|
7193
|
-
|
|
7194
|
-
writer.uint32(
|
|
7195
|
-
}
|
|
7196
|
-
writer.uint32(234).fork();
|
|
7197
|
-
for (const v of message.onlines) {
|
|
7198
|
-
writer.bool(v);
|
|
7199
|
-
}
|
|
7200
|
-
writer.ldelim();
|
|
7201
|
-
for (const v of message.avatars) {
|
|
7202
|
-
writer.uint32(242).string(v);
|
|
7216
|
+
if (message.e2ee !== 0) {
|
|
7217
|
+
writer.uint32(240).int32(message.e2ee);
|
|
7203
7218
|
}
|
|
7204
7219
|
return writer;
|
|
7205
7220
|
},
|
|
@@ -7268,134 +7283,134 @@ var ChannelDescription = {
|
|
|
7268
7283
|
if (tag !== 82) {
|
|
7269
7284
|
break;
|
|
7270
7285
|
}
|
|
7271
|
-
message.
|
|
7286
|
+
message.avatars.push(reader.string());
|
|
7272
7287
|
continue;
|
|
7273
7288
|
case 11:
|
|
7274
7289
|
if (tag !== 90) {
|
|
7275
7290
|
break;
|
|
7276
7291
|
}
|
|
7277
|
-
message.
|
|
7292
|
+
message.user_ids.push(reader.string());
|
|
7278
7293
|
continue;
|
|
7279
7294
|
case 12:
|
|
7280
7295
|
if (tag !== 98) {
|
|
7281
7296
|
break;
|
|
7282
7297
|
}
|
|
7283
|
-
message.
|
|
7298
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
7284
7299
|
continue;
|
|
7285
7300
|
case 13:
|
|
7286
|
-
if (tag !==
|
|
7301
|
+
if (tag !== 106) {
|
|
7287
7302
|
break;
|
|
7288
7303
|
}
|
|
7289
|
-
message.
|
|
7304
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
7290
7305
|
continue;
|
|
7291
7306
|
case 14:
|
|
7292
|
-
if (tag
|
|
7293
|
-
|
|
7307
|
+
if (tag === 112) {
|
|
7308
|
+
message.onlines.push(reader.bool());
|
|
7309
|
+
continue;
|
|
7294
7310
|
}
|
|
7295
|
-
|
|
7296
|
-
|
|
7311
|
+
if (tag === 114) {
|
|
7312
|
+
const end2 = reader.uint32() + reader.pos;
|
|
7313
|
+
while (reader.pos < end2) {
|
|
7314
|
+
message.onlines.push(reader.bool());
|
|
7315
|
+
}
|
|
7316
|
+
continue;
|
|
7317
|
+
}
|
|
7318
|
+
break;
|
|
7297
7319
|
case 15:
|
|
7298
7320
|
if (tag !== 122) {
|
|
7299
7321
|
break;
|
|
7300
7322
|
}
|
|
7301
|
-
message.
|
|
7323
|
+
message.meeting_code = reader.string();
|
|
7302
7324
|
continue;
|
|
7303
7325
|
case 16:
|
|
7304
|
-
if (tag !==
|
|
7326
|
+
if (tag !== 128) {
|
|
7305
7327
|
break;
|
|
7306
7328
|
}
|
|
7307
|
-
message.
|
|
7329
|
+
message.count_mess_unread = reader.int32();
|
|
7308
7330
|
continue;
|
|
7309
7331
|
case 17:
|
|
7310
7332
|
if (tag !== 136) {
|
|
7311
7333
|
break;
|
|
7312
7334
|
}
|
|
7313
|
-
message.
|
|
7335
|
+
message.active = reader.int32();
|
|
7314
7336
|
continue;
|
|
7315
7337
|
case 18:
|
|
7316
|
-
if (tag !==
|
|
7338
|
+
if (tag !== 146) {
|
|
7317
7339
|
break;
|
|
7318
7340
|
}
|
|
7319
|
-
message.
|
|
7341
|
+
message.last_pin_message = reader.string();
|
|
7320
7342
|
continue;
|
|
7321
7343
|
case 19:
|
|
7322
7344
|
if (tag !== 154) {
|
|
7323
7345
|
break;
|
|
7324
7346
|
}
|
|
7325
|
-
message.
|
|
7347
|
+
message.usernames.push(reader.string());
|
|
7326
7348
|
continue;
|
|
7327
7349
|
case 20:
|
|
7328
7350
|
if (tag !== 162) {
|
|
7329
7351
|
break;
|
|
7330
7352
|
}
|
|
7331
|
-
message.
|
|
7353
|
+
message.creator_name = reader.string();
|
|
7332
7354
|
continue;
|
|
7333
7355
|
case 21:
|
|
7334
7356
|
if (tag !== 168) {
|
|
7335
7357
|
break;
|
|
7336
7358
|
}
|
|
7337
|
-
message.
|
|
7359
|
+
message.create_time_seconds = reader.uint32();
|
|
7338
7360
|
continue;
|
|
7339
7361
|
case 22:
|
|
7340
7362
|
if (tag !== 176) {
|
|
7341
7363
|
break;
|
|
7342
7364
|
}
|
|
7343
|
-
message.
|
|
7365
|
+
message.update_time_seconds = reader.uint32();
|
|
7344
7366
|
continue;
|
|
7345
7367
|
case 23:
|
|
7346
7368
|
if (tag !== 186) {
|
|
7347
7369
|
break;
|
|
7348
7370
|
}
|
|
7349
|
-
message.
|
|
7371
|
+
message.display_names.push(reader.string());
|
|
7350
7372
|
continue;
|
|
7351
7373
|
case 24:
|
|
7352
|
-
if (tag !==
|
|
7374
|
+
if (tag !== 194) {
|
|
7353
7375
|
break;
|
|
7354
7376
|
}
|
|
7355
|
-
message.
|
|
7377
|
+
message.channel_avatar = reader.string();
|
|
7356
7378
|
continue;
|
|
7357
7379
|
case 25:
|
|
7358
7380
|
if (tag !== 202) {
|
|
7359
7381
|
break;
|
|
7360
7382
|
}
|
|
7361
|
-
message.
|
|
7383
|
+
message.clan_name = reader.string();
|
|
7362
7384
|
continue;
|
|
7363
7385
|
case 26:
|
|
7364
7386
|
if (tag !== 210) {
|
|
7365
7387
|
break;
|
|
7366
7388
|
}
|
|
7367
|
-
message.
|
|
7389
|
+
message.app_id = reader.string();
|
|
7368
7390
|
continue;
|
|
7369
7391
|
case 27:
|
|
7370
|
-
if (tag !==
|
|
7392
|
+
if (tag !== 216) {
|
|
7371
7393
|
break;
|
|
7372
7394
|
}
|
|
7373
|
-
message.
|
|
7395
|
+
message.is_mute = reader.bool();
|
|
7374
7396
|
continue;
|
|
7375
7397
|
case 28:
|
|
7376
|
-
if (tag !==
|
|
7398
|
+
if (tag !== 224) {
|
|
7377
7399
|
break;
|
|
7378
7400
|
}
|
|
7379
|
-
message.
|
|
7401
|
+
message.age_restricted = reader.int32();
|
|
7380
7402
|
continue;
|
|
7381
7403
|
case 29:
|
|
7382
|
-
if (tag
|
|
7383
|
-
|
|
7384
|
-
continue;
|
|
7385
|
-
}
|
|
7386
|
-
if (tag === 234) {
|
|
7387
|
-
const end2 = reader.uint32() + reader.pos;
|
|
7388
|
-
while (reader.pos < end2) {
|
|
7389
|
-
message.onlines.push(reader.bool());
|
|
7390
|
-
}
|
|
7391
|
-
continue;
|
|
7404
|
+
if (tag !== 234) {
|
|
7405
|
+
break;
|
|
7392
7406
|
}
|
|
7393
|
-
|
|
7407
|
+
message.topic = reader.string();
|
|
7408
|
+
continue;
|
|
7394
7409
|
case 30:
|
|
7395
|
-
if (tag !==
|
|
7410
|
+
if (tag !== 240) {
|
|
7396
7411
|
break;
|
|
7397
7412
|
}
|
|
7398
|
-
message.
|
|
7413
|
+
message.e2ee = reader.int32();
|
|
7399
7414
|
continue;
|
|
7400
7415
|
}
|
|
7401
7416
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7416,27 +7431,27 @@ var ChannelDescription = {
|
|
|
7416
7431
|
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7417
7432
|
channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
7418
7433
|
channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
7434
|
+
avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : [],
|
|
7435
|
+
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
7419
7436
|
last_sent_message: isSet3(object.last_sent_message) ? ChannelMessageHeader.fromJSON(object.last_sent_message) : void 0,
|
|
7420
7437
|
last_seen_message: isSet3(object.last_seen_message) ? ChannelMessageHeader.fromJSON(object.last_seen_message) : void 0,
|
|
7438
|
+
onlines: globalThis.Array.isArray(object == null ? void 0 : object.onlines) ? object.onlines.map((e) => globalThis.Boolean(e)) : [],
|
|
7421
7439
|
meeting_code: isSet3(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
7422
7440
|
count_mess_unread: isSet3(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
7423
7441
|
active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
|
|
7424
7442
|
last_pin_message: isSet3(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
7443
|
+
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
7425
7444
|
creator_name: isSet3(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
7426
7445
|
create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
7427
7446
|
update_time_seconds: isSet3(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
7447
|
+
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
|
|
7448
|
+
channel_avatar: isSet3(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
7428
7449
|
clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
7429
7450
|
app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
7430
7451
|
is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
7431
7452
|
age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
7432
|
-
channel_avatar: isSet3(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
7433
|
-
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
7434
7453
|
topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
|
|
7435
|
-
|
|
7436
|
-
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
7437
|
-
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
|
|
7438
|
-
onlines: globalThis.Array.isArray(object == null ? void 0 : object.onlines) ? object.onlines.map((e) => globalThis.Boolean(e)) : [],
|
|
7439
|
-
avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : []
|
|
7454
|
+
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0
|
|
7440
7455
|
};
|
|
7441
7456
|
},
|
|
7442
7457
|
toJSON(message) {
|
|
@@ -7469,12 +7484,21 @@ var ChannelDescription = {
|
|
|
7469
7484
|
if (message.channel_private !== 0) {
|
|
7470
7485
|
obj.channel_private = Math.round(message.channel_private);
|
|
7471
7486
|
}
|
|
7487
|
+
if ((_a = message.avatars) == null ? void 0 : _a.length) {
|
|
7488
|
+
obj.avatars = message.avatars;
|
|
7489
|
+
}
|
|
7490
|
+
if ((_b = message.user_ids) == null ? void 0 : _b.length) {
|
|
7491
|
+
obj.user_ids = message.user_ids;
|
|
7492
|
+
}
|
|
7472
7493
|
if (message.last_sent_message !== void 0) {
|
|
7473
7494
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
7474
7495
|
}
|
|
7475
7496
|
if (message.last_seen_message !== void 0) {
|
|
7476
7497
|
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
7477
7498
|
}
|
|
7499
|
+
if ((_c = message.onlines) == null ? void 0 : _c.length) {
|
|
7500
|
+
obj.onlines = message.onlines;
|
|
7501
|
+
}
|
|
7478
7502
|
if (message.meeting_code !== "") {
|
|
7479
7503
|
obj.meeting_code = message.meeting_code;
|
|
7480
7504
|
}
|
|
@@ -7487,6 +7511,9 @@ var ChannelDescription = {
|
|
|
7487
7511
|
if (message.last_pin_message !== "") {
|
|
7488
7512
|
obj.last_pin_message = message.last_pin_message;
|
|
7489
7513
|
}
|
|
7514
|
+
if ((_d = message.usernames) == null ? void 0 : _d.length) {
|
|
7515
|
+
obj.usernames = message.usernames;
|
|
7516
|
+
}
|
|
7490
7517
|
if (message.creator_name !== "") {
|
|
7491
7518
|
obj.creator_name = message.creator_name;
|
|
7492
7519
|
}
|
|
@@ -7496,6 +7523,12 @@ var ChannelDescription = {
|
|
|
7496
7523
|
if (message.update_time_seconds !== 0) {
|
|
7497
7524
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
7498
7525
|
}
|
|
7526
|
+
if ((_e = message.display_names) == null ? void 0 : _e.length) {
|
|
7527
|
+
obj.display_names = message.display_names;
|
|
7528
|
+
}
|
|
7529
|
+
if (message.channel_avatar !== "") {
|
|
7530
|
+
obj.channel_avatar = message.channel_avatar;
|
|
7531
|
+
}
|
|
7499
7532
|
if (message.clan_name !== "") {
|
|
7500
7533
|
obj.clan_name = message.clan_name;
|
|
7501
7534
|
}
|
|
@@ -7508,29 +7541,11 @@ var ChannelDescription = {
|
|
|
7508
7541
|
if (message.age_restricted !== 0) {
|
|
7509
7542
|
obj.age_restricted = Math.round(message.age_restricted);
|
|
7510
7543
|
}
|
|
7511
|
-
if (message.channel_avatar !== "") {
|
|
7512
|
-
obj.channel_avatar = message.channel_avatar;
|
|
7513
|
-
}
|
|
7514
|
-
if (message.e2ee !== 0) {
|
|
7515
|
-
obj.e2ee = Math.round(message.e2ee);
|
|
7516
|
-
}
|
|
7517
7544
|
if (message.topic !== "") {
|
|
7518
7545
|
obj.topic = message.topic;
|
|
7519
7546
|
}
|
|
7520
|
-
if (
|
|
7521
|
-
obj.
|
|
7522
|
-
}
|
|
7523
|
-
if ((_b = message.usernames) == null ? void 0 : _b.length) {
|
|
7524
|
-
obj.usernames = message.usernames;
|
|
7525
|
-
}
|
|
7526
|
-
if ((_c = message.display_names) == null ? void 0 : _c.length) {
|
|
7527
|
-
obj.display_names = message.display_names;
|
|
7528
|
-
}
|
|
7529
|
-
if ((_d = message.onlines) == null ? void 0 : _d.length) {
|
|
7530
|
-
obj.onlines = message.onlines;
|
|
7531
|
-
}
|
|
7532
|
-
if ((_e = message.avatars) == null ? void 0 : _e.length) {
|
|
7533
|
-
obj.avatars = message.avatars;
|
|
7547
|
+
if (message.e2ee !== 0) {
|
|
7548
|
+
obj.e2ee = Math.round(message.e2ee);
|
|
7534
7549
|
}
|
|
7535
7550
|
return obj;
|
|
7536
7551
|
},
|
|
@@ -7549,27 +7564,27 @@ var ChannelDescription = {
|
|
|
7549
7564
|
message.creator_id = (_g = object.creator_id) != null ? _g : "";
|
|
7550
7565
|
message.channel_label = (_h = object.channel_label) != null ? _h : "";
|
|
7551
7566
|
message.channel_private = (_i = object.channel_private) != null ? _i : 0;
|
|
7567
|
+
message.avatars = ((_j = object.avatars) == null ? void 0 : _j.map((e) => e)) || [];
|
|
7568
|
+
message.user_ids = ((_k = object.user_ids) == null ? void 0 : _k.map((e) => e)) || [];
|
|
7552
7569
|
message.last_sent_message = object.last_sent_message !== void 0 && object.last_sent_message !== null ? ChannelMessageHeader.fromPartial(object.last_sent_message) : void 0;
|
|
7553
7570
|
message.last_seen_message = object.last_seen_message !== void 0 && object.last_seen_message !== null ? ChannelMessageHeader.fromPartial(object.last_seen_message) : void 0;
|
|
7554
|
-
message.
|
|
7555
|
-
message.
|
|
7556
|
-
message.
|
|
7557
|
-
message.
|
|
7558
|
-
message.
|
|
7559
|
-
message.
|
|
7560
|
-
message.
|
|
7561
|
-
message.
|
|
7562
|
-
message.
|
|
7563
|
-
message.
|
|
7564
|
-
message.
|
|
7565
|
-
message.
|
|
7566
|
-
message.
|
|
7567
|
-
message.
|
|
7568
|
-
message.
|
|
7569
|
-
message.
|
|
7570
|
-
message.
|
|
7571
|
-
message.onlines = ((_A = object.onlines) == null ? void 0 : _A.map((e) => e)) || [];
|
|
7572
|
-
message.avatars = ((_B = object.avatars) == null ? void 0 : _B.map((e) => e)) || [];
|
|
7571
|
+
message.onlines = ((_l = object.onlines) == null ? void 0 : _l.map((e) => e)) || [];
|
|
7572
|
+
message.meeting_code = (_m = object.meeting_code) != null ? _m : "";
|
|
7573
|
+
message.count_mess_unread = (_n = object.count_mess_unread) != null ? _n : 0;
|
|
7574
|
+
message.active = (_o = object.active) != null ? _o : 0;
|
|
7575
|
+
message.last_pin_message = (_p = object.last_pin_message) != null ? _p : "";
|
|
7576
|
+
message.usernames = ((_q = object.usernames) == null ? void 0 : _q.map((e) => e)) || [];
|
|
7577
|
+
message.creator_name = (_r = object.creator_name) != null ? _r : "";
|
|
7578
|
+
message.create_time_seconds = (_s = object.create_time_seconds) != null ? _s : 0;
|
|
7579
|
+
message.update_time_seconds = (_t = object.update_time_seconds) != null ? _t : 0;
|
|
7580
|
+
message.display_names = ((_u = object.display_names) == null ? void 0 : _u.map((e) => e)) || [];
|
|
7581
|
+
message.channel_avatar = (_v = object.channel_avatar) != null ? _v : "";
|
|
7582
|
+
message.clan_name = (_w = object.clan_name) != null ? _w : "";
|
|
7583
|
+
message.app_id = (_x = object.app_id) != null ? _x : "";
|
|
7584
|
+
message.is_mute = (_y = object.is_mute) != null ? _y : false;
|
|
7585
|
+
message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
|
|
7586
|
+
message.topic = (_A = object.topic) != null ? _A : "";
|
|
7587
|
+
message.e2ee = (_B = object.e2ee) != null ? _B : 0;
|
|
7573
7588
|
return message;
|
|
7574
7589
|
}
|
|
7575
7590
|
};
|
|
@@ -22521,6 +22536,7 @@ function createBaseUserProfileRedis() {
|
|
|
22521
22536
|
display_name: "",
|
|
22522
22537
|
about_me: "",
|
|
22523
22538
|
user_status: "",
|
|
22539
|
+
status: "",
|
|
22524
22540
|
create_time_second: 0,
|
|
22525
22541
|
fcm_tokens: [],
|
|
22526
22542
|
online: false,
|
|
@@ -22554,38 +22570,41 @@ var UserProfileRedis = {
|
|
|
22554
22570
|
if (message.user_status !== "") {
|
|
22555
22571
|
writer.uint32(50).string(message.user_status);
|
|
22556
22572
|
}
|
|
22573
|
+
if (message.status !== "") {
|
|
22574
|
+
writer.uint32(58).string(message.status);
|
|
22575
|
+
}
|
|
22557
22576
|
if (message.create_time_second !== 0) {
|
|
22558
|
-
writer.uint32(
|
|
22577
|
+
writer.uint32(64).uint32(message.create_time_second);
|
|
22559
22578
|
}
|
|
22560
22579
|
for (const v of message.fcm_tokens) {
|
|
22561
|
-
FCMTokens.encode(v, writer.uint32(
|
|
22580
|
+
FCMTokens.encode(v, writer.uint32(74).fork()).ldelim();
|
|
22562
22581
|
}
|
|
22563
22582
|
if (message.online !== false) {
|
|
22564
|
-
writer.uint32(
|
|
22583
|
+
writer.uint32(80).bool(message.online);
|
|
22565
22584
|
}
|
|
22566
22585
|
if (message.is_disabled !== false) {
|
|
22567
|
-
writer.uint32(
|
|
22586
|
+
writer.uint32(88).bool(message.is_disabled);
|
|
22568
22587
|
}
|
|
22569
22588
|
for (const v of message.joined_clans) {
|
|
22570
|
-
writer.uint32(
|
|
22589
|
+
writer.uint32(98).string(v);
|
|
22571
22590
|
}
|
|
22572
22591
|
if (message.pubkey !== "") {
|
|
22573
|
-
writer.uint32(
|
|
22592
|
+
writer.uint32(106).string(message.pubkey);
|
|
22574
22593
|
}
|
|
22575
22594
|
if (message.mezon_id !== "") {
|
|
22576
|
-
writer.uint32(
|
|
22595
|
+
writer.uint32(114).string(message.mezon_id);
|
|
22577
22596
|
}
|
|
22578
22597
|
if (message.app_token !== "") {
|
|
22579
|
-
writer.uint32(
|
|
22598
|
+
writer.uint32(122).string(message.app_token);
|
|
22580
22599
|
}
|
|
22581
22600
|
if (message.app_url !== "") {
|
|
22582
|
-
writer.uint32(
|
|
22601
|
+
writer.uint32(130).string(message.app_url);
|
|
22583
22602
|
}
|
|
22584
22603
|
if (message.is_bot !== false) {
|
|
22585
|
-
writer.uint32(
|
|
22604
|
+
writer.uint32(136).bool(message.is_bot);
|
|
22586
22605
|
}
|
|
22587
22606
|
if (message.voip_token !== "") {
|
|
22588
|
-
writer.uint32(
|
|
22607
|
+
writer.uint32(146).string(message.voip_token);
|
|
22589
22608
|
}
|
|
22590
22609
|
return writer;
|
|
22591
22610
|
},
|
|
@@ -22633,67 +22652,73 @@ var UserProfileRedis = {
|
|
|
22633
22652
|
message.user_status = reader.string();
|
|
22634
22653
|
continue;
|
|
22635
22654
|
case 7:
|
|
22636
|
-
if (tag !==
|
|
22655
|
+
if (tag !== 58) {
|
|
22637
22656
|
break;
|
|
22638
22657
|
}
|
|
22639
|
-
message.
|
|
22658
|
+
message.status = reader.string();
|
|
22640
22659
|
continue;
|
|
22641
22660
|
case 8:
|
|
22642
|
-
if (tag !==
|
|
22661
|
+
if (tag !== 64) {
|
|
22643
22662
|
break;
|
|
22644
22663
|
}
|
|
22645
|
-
message.
|
|
22664
|
+
message.create_time_second = reader.uint32();
|
|
22646
22665
|
continue;
|
|
22647
22666
|
case 9:
|
|
22648
|
-
if (tag !==
|
|
22667
|
+
if (tag !== 74) {
|
|
22649
22668
|
break;
|
|
22650
22669
|
}
|
|
22651
|
-
message.
|
|
22670
|
+
message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
|
|
22652
22671
|
continue;
|
|
22653
22672
|
case 10:
|
|
22654
22673
|
if (tag !== 80) {
|
|
22655
22674
|
break;
|
|
22656
22675
|
}
|
|
22657
|
-
message.
|
|
22676
|
+
message.online = reader.bool();
|
|
22658
22677
|
continue;
|
|
22659
22678
|
case 11:
|
|
22660
|
-
if (tag !==
|
|
22679
|
+
if (tag !== 88) {
|
|
22661
22680
|
break;
|
|
22662
22681
|
}
|
|
22663
|
-
message.
|
|
22682
|
+
message.is_disabled = reader.bool();
|
|
22664
22683
|
continue;
|
|
22665
22684
|
case 12:
|
|
22666
22685
|
if (tag !== 98) {
|
|
22667
22686
|
break;
|
|
22668
22687
|
}
|
|
22669
|
-
message.
|
|
22688
|
+
message.joined_clans.push(reader.string());
|
|
22670
22689
|
continue;
|
|
22671
22690
|
case 13:
|
|
22672
22691
|
if (tag !== 106) {
|
|
22673
22692
|
break;
|
|
22674
22693
|
}
|
|
22675
|
-
message.
|
|
22694
|
+
message.pubkey = reader.string();
|
|
22676
22695
|
continue;
|
|
22677
22696
|
case 14:
|
|
22678
22697
|
if (tag !== 114) {
|
|
22679
22698
|
break;
|
|
22680
22699
|
}
|
|
22681
|
-
message.
|
|
22700
|
+
message.mezon_id = reader.string();
|
|
22682
22701
|
continue;
|
|
22683
22702
|
case 15:
|
|
22684
22703
|
if (tag !== 122) {
|
|
22685
22704
|
break;
|
|
22686
22705
|
}
|
|
22687
|
-
message.
|
|
22706
|
+
message.app_token = reader.string();
|
|
22688
22707
|
continue;
|
|
22689
22708
|
case 16:
|
|
22690
|
-
if (tag !==
|
|
22709
|
+
if (tag !== 130) {
|
|
22691
22710
|
break;
|
|
22692
22711
|
}
|
|
22693
|
-
message.
|
|
22712
|
+
message.app_url = reader.string();
|
|
22694
22713
|
continue;
|
|
22695
22714
|
case 17:
|
|
22696
|
-
if (tag !==
|
|
22715
|
+
if (tag !== 136) {
|
|
22716
|
+
break;
|
|
22717
|
+
}
|
|
22718
|
+
message.is_bot = reader.bool();
|
|
22719
|
+
continue;
|
|
22720
|
+
case 18:
|
|
22721
|
+
if (tag !== 146) {
|
|
22697
22722
|
break;
|
|
22698
22723
|
}
|
|
22699
22724
|
message.voip_token = reader.string();
|
|
@@ -22714,6 +22739,7 @@ var UserProfileRedis = {
|
|
|
22714
22739
|
display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
22715
22740
|
about_me: isSet4(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
22716
22741
|
user_status: isSet4(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
22742
|
+
status: isSet4(object.status) ? globalThis.String(object.status) : "",
|
|
22717
22743
|
create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
22718
22744
|
fcm_tokens: globalThis.Array.isArray(object == null ? void 0 : object.fcm_tokens) ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e)) : [],
|
|
22719
22745
|
online: isSet4(object.online) ? globalThis.Boolean(object.online) : false,
|
|
@@ -22748,6 +22774,9 @@ var UserProfileRedis = {
|
|
|
22748
22774
|
if (message.user_status !== "") {
|
|
22749
22775
|
obj.user_status = message.user_status;
|
|
22750
22776
|
}
|
|
22777
|
+
if (message.status !== "") {
|
|
22778
|
+
obj.status = message.status;
|
|
22779
|
+
}
|
|
22751
22780
|
if (message.create_time_second !== 0) {
|
|
22752
22781
|
obj.create_time_second = Math.round(message.create_time_second);
|
|
22753
22782
|
}
|
|
@@ -22787,7 +22816,7 @@ var UserProfileRedis = {
|
|
|
22787
22816
|
return UserProfileRedis.fromPartial(base != null ? base : {});
|
|
22788
22817
|
},
|
|
22789
22818
|
fromPartial(object) {
|
|
22790
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
22819
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
22791
22820
|
const message = createBaseUserProfileRedis();
|
|
22792
22821
|
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
22793
22822
|
message.username = (_b = object.username) != null ? _b : "";
|
|
@@ -22795,17 +22824,18 @@ var UserProfileRedis = {
|
|
|
22795
22824
|
message.display_name = (_d = object.display_name) != null ? _d : "";
|
|
22796
22825
|
message.about_me = (_e = object.about_me) != null ? _e : "";
|
|
22797
22826
|
message.user_status = (_f = object.user_status) != null ? _f : "";
|
|
22798
|
-
message.
|
|
22799
|
-
message.
|
|
22800
|
-
message.
|
|
22801
|
-
message.
|
|
22802
|
-
message.
|
|
22803
|
-
message.
|
|
22804
|
-
message.
|
|
22805
|
-
message.
|
|
22806
|
-
message.
|
|
22807
|
-
message.
|
|
22808
|
-
message.
|
|
22827
|
+
message.status = (_g = object.status) != null ? _g : "";
|
|
22828
|
+
message.create_time_second = (_h = object.create_time_second) != null ? _h : 0;
|
|
22829
|
+
message.fcm_tokens = ((_i = object.fcm_tokens) == null ? void 0 : _i.map((e) => FCMTokens.fromPartial(e))) || [];
|
|
22830
|
+
message.online = (_j = object.online) != null ? _j : false;
|
|
22831
|
+
message.is_disabled = (_k = object.is_disabled) != null ? _k : false;
|
|
22832
|
+
message.joined_clans = ((_l = object.joined_clans) == null ? void 0 : _l.map((e) => e)) || [];
|
|
22833
|
+
message.pubkey = (_m = object.pubkey) != null ? _m : "";
|
|
22834
|
+
message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
|
|
22835
|
+
message.app_token = (_o = object.app_token) != null ? _o : "";
|
|
22836
|
+
message.app_url = (_p = object.app_url) != null ? _p : "";
|
|
22837
|
+
message.is_bot = (_q = object.is_bot) != null ? _q : false;
|
|
22838
|
+
message.voip_token = (_r = object.voip_token) != null ? _r : "";
|
|
22809
22839
|
return message;
|
|
22810
22840
|
}
|
|
22811
22841
|
};
|