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
|
@@ -5985,7 +5985,8 @@ function createBaseUser() {
|
|
|
5985
5985
|
is_mobile: false,
|
|
5986
5986
|
dob: void 0,
|
|
5987
5987
|
mezon_id: "",
|
|
5988
|
-
list_nick_names: []
|
|
5988
|
+
list_nick_names: [],
|
|
5989
|
+
status: ""
|
|
5989
5990
|
};
|
|
5990
5991
|
}
|
|
5991
5992
|
var User = {
|
|
@@ -6047,6 +6048,9 @@ var User = {
|
|
|
6047
6048
|
for (const v of message.list_nick_names) {
|
|
6048
6049
|
writer.uint32(154).string(v);
|
|
6049
6050
|
}
|
|
6051
|
+
if (message.status !== "") {
|
|
6052
|
+
writer.uint32(162).string(message.status);
|
|
6053
|
+
}
|
|
6050
6054
|
return writer;
|
|
6051
6055
|
},
|
|
6052
6056
|
decode(input, length) {
|
|
@@ -6170,6 +6174,12 @@ var User = {
|
|
|
6170
6174
|
}
|
|
6171
6175
|
message.list_nick_names.push(reader.string());
|
|
6172
6176
|
continue;
|
|
6177
|
+
case 20:
|
|
6178
|
+
if (tag !== 162) {
|
|
6179
|
+
break;
|
|
6180
|
+
}
|
|
6181
|
+
message.status = reader.string();
|
|
6182
|
+
continue;
|
|
6173
6183
|
}
|
|
6174
6184
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6175
6185
|
break;
|
|
@@ -6198,7 +6208,8 @@ var User = {
|
|
|
6198
6208
|
is_mobile: isSet3(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
6199
6209
|
dob: isSet3(object.dob) ? fromJsonTimestamp(object.dob) : void 0,
|
|
6200
6210
|
mezon_id: isSet3(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
6201
|
-
list_nick_names: globalThis.Array.isArray(object == null ? void 0 : object.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : []
|
|
6211
|
+
list_nick_names: globalThis.Array.isArray(object == null ? void 0 : object.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : [],
|
|
6212
|
+
status: isSet3(object.status) ? globalThis.String(object.status) : ""
|
|
6202
6213
|
};
|
|
6203
6214
|
},
|
|
6204
6215
|
toJSON(message) {
|
|
@@ -6261,13 +6272,16 @@ var User = {
|
|
|
6261
6272
|
if ((_a = message.list_nick_names) == null ? void 0 : _a.length) {
|
|
6262
6273
|
obj.list_nick_names = message.list_nick_names;
|
|
6263
6274
|
}
|
|
6275
|
+
if (message.status !== "") {
|
|
6276
|
+
obj.status = message.status;
|
|
6277
|
+
}
|
|
6264
6278
|
return obj;
|
|
6265
6279
|
},
|
|
6266
6280
|
create(base) {
|
|
6267
6281
|
return User.fromPartial(base != null ? base : {});
|
|
6268
6282
|
},
|
|
6269
6283
|
fromPartial(object) {
|
|
6270
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
6284
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
6271
6285
|
const message = createBaseUser();
|
|
6272
6286
|
message.id = (_a = object.id) != null ? _a : "";
|
|
6273
6287
|
message.username = (_b = object.username) != null ? _b : "";
|
|
@@ -6288,6 +6302,7 @@ var User = {
|
|
|
6288
6302
|
message.dob = (_q = object.dob) != null ? _q : void 0;
|
|
6289
6303
|
message.mezon_id = (_r = object.mezon_id) != null ? _r : "";
|
|
6290
6304
|
message.list_nick_names = ((_s = object.list_nick_names) == null ? void 0 : _s.map((e) => e)) || [];
|
|
6305
|
+
message.status = (_t = object.status) != null ? _t : "";
|
|
6291
6306
|
return message;
|
|
6292
6307
|
}
|
|
6293
6308
|
};
|
|
@@ -7071,27 +7086,27 @@ function createBaseChannelDescription() {
|
|
|
7071
7086
|
creator_id: "",
|
|
7072
7087
|
channel_label: "",
|
|
7073
7088
|
channel_private: 0,
|
|
7089
|
+
avatars: [],
|
|
7090
|
+
user_ids: [],
|
|
7074
7091
|
last_sent_message: void 0,
|
|
7075
7092
|
last_seen_message: void 0,
|
|
7093
|
+
onlines: [],
|
|
7076
7094
|
meeting_code: "",
|
|
7077
7095
|
count_mess_unread: 0,
|
|
7078
7096
|
active: 0,
|
|
7079
7097
|
last_pin_message: "",
|
|
7098
|
+
usernames: [],
|
|
7080
7099
|
creator_name: "",
|
|
7081
7100
|
create_time_seconds: 0,
|
|
7082
7101
|
update_time_seconds: 0,
|
|
7102
|
+
display_names: [],
|
|
7103
|
+
channel_avatar: "",
|
|
7083
7104
|
clan_name: "",
|
|
7084
7105
|
app_id: "",
|
|
7085
7106
|
is_mute: false,
|
|
7086
7107
|
age_restricted: 0,
|
|
7087
|
-
channel_avatar: "",
|
|
7088
|
-
e2ee: 0,
|
|
7089
7108
|
topic: "",
|
|
7090
|
-
|
|
7091
|
-
usernames: [],
|
|
7092
|
-
display_names: [],
|
|
7093
|
-
onlines: [],
|
|
7094
|
-
avatars: []
|
|
7109
|
+
e2ee: 0
|
|
7095
7110
|
};
|
|
7096
7111
|
}
|
|
7097
7112
|
var ChannelDescription = {
|
|
@@ -7123,70 +7138,70 @@ var ChannelDescription = {
|
|
|
7123
7138
|
if (message.channel_private !== 0) {
|
|
7124
7139
|
writer.uint32(72).int32(message.channel_private);
|
|
7125
7140
|
}
|
|
7141
|
+
for (const v of message.avatars) {
|
|
7142
|
+
writer.uint32(82).string(v);
|
|
7143
|
+
}
|
|
7144
|
+
for (const v of message.user_ids) {
|
|
7145
|
+
writer.uint32(90).string(v);
|
|
7146
|
+
}
|
|
7126
7147
|
if (message.last_sent_message !== void 0) {
|
|
7127
|
-
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(
|
|
7148
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
|
|
7128
7149
|
}
|
|
7129
7150
|
if (message.last_seen_message !== void 0) {
|
|
7130
|
-
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(
|
|
7151
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
|
|
7131
7152
|
}
|
|
7153
|
+
writer.uint32(114).fork();
|
|
7154
|
+
for (const v of message.onlines) {
|
|
7155
|
+
writer.bool(v);
|
|
7156
|
+
}
|
|
7157
|
+
writer.ldelim();
|
|
7132
7158
|
if (message.meeting_code !== "") {
|
|
7133
|
-
writer.uint32(
|
|
7159
|
+
writer.uint32(122).string(message.meeting_code);
|
|
7134
7160
|
}
|
|
7135
7161
|
if (message.count_mess_unread !== 0) {
|
|
7136
|
-
writer.uint32(
|
|
7162
|
+
writer.uint32(128).int32(message.count_mess_unread);
|
|
7137
7163
|
}
|
|
7138
7164
|
if (message.active !== 0) {
|
|
7139
|
-
writer.uint32(
|
|
7165
|
+
writer.uint32(136).int32(message.active);
|
|
7140
7166
|
}
|
|
7141
7167
|
if (message.last_pin_message !== "") {
|
|
7142
|
-
writer.uint32(
|
|
7168
|
+
writer.uint32(146).string(message.last_pin_message);
|
|
7169
|
+
}
|
|
7170
|
+
for (const v of message.usernames) {
|
|
7171
|
+
writer.uint32(154).string(v);
|
|
7143
7172
|
}
|
|
7144
7173
|
if (message.creator_name !== "") {
|
|
7145
|
-
writer.uint32(
|
|
7174
|
+
writer.uint32(162).string(message.creator_name);
|
|
7146
7175
|
}
|
|
7147
7176
|
if (message.create_time_seconds !== 0) {
|
|
7148
|
-
writer.uint32(
|
|
7177
|
+
writer.uint32(168).uint32(message.create_time_seconds);
|
|
7149
7178
|
}
|
|
7150
7179
|
if (message.update_time_seconds !== 0) {
|
|
7151
|
-
writer.uint32(
|
|
7180
|
+
writer.uint32(176).uint32(message.update_time_seconds);
|
|
7181
|
+
}
|
|
7182
|
+
for (const v of message.display_names) {
|
|
7183
|
+
writer.uint32(186).string(v);
|
|
7184
|
+
}
|
|
7185
|
+
if (message.channel_avatar !== "") {
|
|
7186
|
+
writer.uint32(194).string(message.channel_avatar);
|
|
7152
7187
|
}
|
|
7153
7188
|
if (message.clan_name !== "") {
|
|
7154
|
-
writer.uint32(
|
|
7189
|
+
writer.uint32(202).string(message.clan_name);
|
|
7155
7190
|
}
|
|
7156
7191
|
if (message.app_id !== "") {
|
|
7157
|
-
writer.uint32(
|
|
7192
|
+
writer.uint32(210).string(message.app_id);
|
|
7158
7193
|
}
|
|
7159
7194
|
if (message.is_mute !== false) {
|
|
7160
|
-
writer.uint32(
|
|
7195
|
+
writer.uint32(216).bool(message.is_mute);
|
|
7161
7196
|
}
|
|
7162
7197
|
if (message.age_restricted !== 0) {
|
|
7163
|
-
writer.uint32(
|
|
7164
|
-
}
|
|
7165
|
-
if (message.channel_avatar !== "") {
|
|
7166
|
-
writer.uint32(186).string(message.channel_avatar);
|
|
7167
|
-
}
|
|
7168
|
-
if (message.e2ee !== 0) {
|
|
7169
|
-
writer.uint32(192).int32(message.e2ee);
|
|
7198
|
+
writer.uint32(224).int32(message.age_restricted);
|
|
7170
7199
|
}
|
|
7171
7200
|
if (message.topic !== "") {
|
|
7172
|
-
writer.uint32(
|
|
7173
|
-
}
|
|
7174
|
-
for (const v of message.user_ids) {
|
|
7175
|
-
writer.uint32(210).string(v);
|
|
7176
|
-
}
|
|
7177
|
-
for (const v of message.usernames) {
|
|
7178
|
-
writer.uint32(218).string(v);
|
|
7201
|
+
writer.uint32(234).string(message.topic);
|
|
7179
7202
|
}
|
|
7180
|
-
|
|
7181
|
-
writer.uint32(
|
|
7182
|
-
}
|
|
7183
|
-
writer.uint32(234).fork();
|
|
7184
|
-
for (const v of message.onlines) {
|
|
7185
|
-
writer.bool(v);
|
|
7186
|
-
}
|
|
7187
|
-
writer.ldelim();
|
|
7188
|
-
for (const v of message.avatars) {
|
|
7189
|
-
writer.uint32(242).string(v);
|
|
7203
|
+
if (message.e2ee !== 0) {
|
|
7204
|
+
writer.uint32(240).int32(message.e2ee);
|
|
7190
7205
|
}
|
|
7191
7206
|
return writer;
|
|
7192
7207
|
},
|
|
@@ -7255,134 +7270,134 @@ var ChannelDescription = {
|
|
|
7255
7270
|
if (tag !== 82) {
|
|
7256
7271
|
break;
|
|
7257
7272
|
}
|
|
7258
|
-
message.
|
|
7273
|
+
message.avatars.push(reader.string());
|
|
7259
7274
|
continue;
|
|
7260
7275
|
case 11:
|
|
7261
7276
|
if (tag !== 90) {
|
|
7262
7277
|
break;
|
|
7263
7278
|
}
|
|
7264
|
-
message.
|
|
7279
|
+
message.user_ids.push(reader.string());
|
|
7265
7280
|
continue;
|
|
7266
7281
|
case 12:
|
|
7267
7282
|
if (tag !== 98) {
|
|
7268
7283
|
break;
|
|
7269
7284
|
}
|
|
7270
|
-
message.
|
|
7285
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
7271
7286
|
continue;
|
|
7272
7287
|
case 13:
|
|
7273
|
-
if (tag !==
|
|
7288
|
+
if (tag !== 106) {
|
|
7274
7289
|
break;
|
|
7275
7290
|
}
|
|
7276
|
-
message.
|
|
7291
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
7277
7292
|
continue;
|
|
7278
7293
|
case 14:
|
|
7279
|
-
if (tag
|
|
7280
|
-
|
|
7294
|
+
if (tag === 112) {
|
|
7295
|
+
message.onlines.push(reader.bool());
|
|
7296
|
+
continue;
|
|
7281
7297
|
}
|
|
7282
|
-
|
|
7283
|
-
|
|
7298
|
+
if (tag === 114) {
|
|
7299
|
+
const end2 = reader.uint32() + reader.pos;
|
|
7300
|
+
while (reader.pos < end2) {
|
|
7301
|
+
message.onlines.push(reader.bool());
|
|
7302
|
+
}
|
|
7303
|
+
continue;
|
|
7304
|
+
}
|
|
7305
|
+
break;
|
|
7284
7306
|
case 15:
|
|
7285
7307
|
if (tag !== 122) {
|
|
7286
7308
|
break;
|
|
7287
7309
|
}
|
|
7288
|
-
message.
|
|
7310
|
+
message.meeting_code = reader.string();
|
|
7289
7311
|
continue;
|
|
7290
7312
|
case 16:
|
|
7291
|
-
if (tag !==
|
|
7313
|
+
if (tag !== 128) {
|
|
7292
7314
|
break;
|
|
7293
7315
|
}
|
|
7294
|
-
message.
|
|
7316
|
+
message.count_mess_unread = reader.int32();
|
|
7295
7317
|
continue;
|
|
7296
7318
|
case 17:
|
|
7297
7319
|
if (tag !== 136) {
|
|
7298
7320
|
break;
|
|
7299
7321
|
}
|
|
7300
|
-
message.
|
|
7322
|
+
message.active = reader.int32();
|
|
7301
7323
|
continue;
|
|
7302
7324
|
case 18:
|
|
7303
|
-
if (tag !==
|
|
7325
|
+
if (tag !== 146) {
|
|
7304
7326
|
break;
|
|
7305
7327
|
}
|
|
7306
|
-
message.
|
|
7328
|
+
message.last_pin_message = reader.string();
|
|
7307
7329
|
continue;
|
|
7308
7330
|
case 19:
|
|
7309
7331
|
if (tag !== 154) {
|
|
7310
7332
|
break;
|
|
7311
7333
|
}
|
|
7312
|
-
message.
|
|
7334
|
+
message.usernames.push(reader.string());
|
|
7313
7335
|
continue;
|
|
7314
7336
|
case 20:
|
|
7315
7337
|
if (tag !== 162) {
|
|
7316
7338
|
break;
|
|
7317
7339
|
}
|
|
7318
|
-
message.
|
|
7340
|
+
message.creator_name = reader.string();
|
|
7319
7341
|
continue;
|
|
7320
7342
|
case 21:
|
|
7321
7343
|
if (tag !== 168) {
|
|
7322
7344
|
break;
|
|
7323
7345
|
}
|
|
7324
|
-
message.
|
|
7346
|
+
message.create_time_seconds = reader.uint32();
|
|
7325
7347
|
continue;
|
|
7326
7348
|
case 22:
|
|
7327
7349
|
if (tag !== 176) {
|
|
7328
7350
|
break;
|
|
7329
7351
|
}
|
|
7330
|
-
message.
|
|
7352
|
+
message.update_time_seconds = reader.uint32();
|
|
7331
7353
|
continue;
|
|
7332
7354
|
case 23:
|
|
7333
7355
|
if (tag !== 186) {
|
|
7334
7356
|
break;
|
|
7335
7357
|
}
|
|
7336
|
-
message.
|
|
7358
|
+
message.display_names.push(reader.string());
|
|
7337
7359
|
continue;
|
|
7338
7360
|
case 24:
|
|
7339
|
-
if (tag !==
|
|
7361
|
+
if (tag !== 194) {
|
|
7340
7362
|
break;
|
|
7341
7363
|
}
|
|
7342
|
-
message.
|
|
7364
|
+
message.channel_avatar = reader.string();
|
|
7343
7365
|
continue;
|
|
7344
7366
|
case 25:
|
|
7345
7367
|
if (tag !== 202) {
|
|
7346
7368
|
break;
|
|
7347
7369
|
}
|
|
7348
|
-
message.
|
|
7370
|
+
message.clan_name = reader.string();
|
|
7349
7371
|
continue;
|
|
7350
7372
|
case 26:
|
|
7351
7373
|
if (tag !== 210) {
|
|
7352
7374
|
break;
|
|
7353
7375
|
}
|
|
7354
|
-
message.
|
|
7376
|
+
message.app_id = reader.string();
|
|
7355
7377
|
continue;
|
|
7356
7378
|
case 27:
|
|
7357
|
-
if (tag !==
|
|
7379
|
+
if (tag !== 216) {
|
|
7358
7380
|
break;
|
|
7359
7381
|
}
|
|
7360
|
-
message.
|
|
7382
|
+
message.is_mute = reader.bool();
|
|
7361
7383
|
continue;
|
|
7362
7384
|
case 28:
|
|
7363
|
-
if (tag !==
|
|
7385
|
+
if (tag !== 224) {
|
|
7364
7386
|
break;
|
|
7365
7387
|
}
|
|
7366
|
-
message.
|
|
7388
|
+
message.age_restricted = reader.int32();
|
|
7367
7389
|
continue;
|
|
7368
7390
|
case 29:
|
|
7369
|
-
if (tag
|
|
7370
|
-
|
|
7371
|
-
continue;
|
|
7372
|
-
}
|
|
7373
|
-
if (tag === 234) {
|
|
7374
|
-
const end2 = reader.uint32() + reader.pos;
|
|
7375
|
-
while (reader.pos < end2) {
|
|
7376
|
-
message.onlines.push(reader.bool());
|
|
7377
|
-
}
|
|
7378
|
-
continue;
|
|
7391
|
+
if (tag !== 234) {
|
|
7392
|
+
break;
|
|
7379
7393
|
}
|
|
7380
|
-
|
|
7394
|
+
message.topic = reader.string();
|
|
7395
|
+
continue;
|
|
7381
7396
|
case 30:
|
|
7382
|
-
if (tag !==
|
|
7397
|
+
if (tag !== 240) {
|
|
7383
7398
|
break;
|
|
7384
7399
|
}
|
|
7385
|
-
message.
|
|
7400
|
+
message.e2ee = reader.int32();
|
|
7386
7401
|
continue;
|
|
7387
7402
|
}
|
|
7388
7403
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7403,27 +7418,27 @@ var ChannelDescription = {
|
|
|
7403
7418
|
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7404
7419
|
channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
7405
7420
|
channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
7421
|
+
avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : [],
|
|
7422
|
+
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
7406
7423
|
last_sent_message: isSet3(object.last_sent_message) ? ChannelMessageHeader.fromJSON(object.last_sent_message) : void 0,
|
|
7407
7424
|
last_seen_message: isSet3(object.last_seen_message) ? ChannelMessageHeader.fromJSON(object.last_seen_message) : void 0,
|
|
7425
|
+
onlines: globalThis.Array.isArray(object == null ? void 0 : object.onlines) ? object.onlines.map((e) => globalThis.Boolean(e)) : [],
|
|
7408
7426
|
meeting_code: isSet3(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
7409
7427
|
count_mess_unread: isSet3(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
7410
7428
|
active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
|
|
7411
7429
|
last_pin_message: isSet3(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
7430
|
+
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
7412
7431
|
creator_name: isSet3(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
7413
7432
|
create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
7414
7433
|
update_time_seconds: isSet3(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
7434
|
+
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
|
|
7435
|
+
channel_avatar: isSet3(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
7415
7436
|
clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
7416
7437
|
app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
7417
7438
|
is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
7418
7439
|
age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
7419
|
-
channel_avatar: isSet3(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
7420
|
-
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
7421
7440
|
topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
|
|
7422
|
-
|
|
7423
|
-
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
7424
|
-
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
|
|
7425
|
-
onlines: globalThis.Array.isArray(object == null ? void 0 : object.onlines) ? object.onlines.map((e) => globalThis.Boolean(e)) : [],
|
|
7426
|
-
avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : []
|
|
7441
|
+
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0
|
|
7427
7442
|
};
|
|
7428
7443
|
},
|
|
7429
7444
|
toJSON(message) {
|
|
@@ -7456,12 +7471,21 @@ var ChannelDescription = {
|
|
|
7456
7471
|
if (message.channel_private !== 0) {
|
|
7457
7472
|
obj.channel_private = Math.round(message.channel_private);
|
|
7458
7473
|
}
|
|
7474
|
+
if ((_a = message.avatars) == null ? void 0 : _a.length) {
|
|
7475
|
+
obj.avatars = message.avatars;
|
|
7476
|
+
}
|
|
7477
|
+
if ((_b = message.user_ids) == null ? void 0 : _b.length) {
|
|
7478
|
+
obj.user_ids = message.user_ids;
|
|
7479
|
+
}
|
|
7459
7480
|
if (message.last_sent_message !== void 0) {
|
|
7460
7481
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
7461
7482
|
}
|
|
7462
7483
|
if (message.last_seen_message !== void 0) {
|
|
7463
7484
|
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
7464
7485
|
}
|
|
7486
|
+
if ((_c = message.onlines) == null ? void 0 : _c.length) {
|
|
7487
|
+
obj.onlines = message.onlines;
|
|
7488
|
+
}
|
|
7465
7489
|
if (message.meeting_code !== "") {
|
|
7466
7490
|
obj.meeting_code = message.meeting_code;
|
|
7467
7491
|
}
|
|
@@ -7474,6 +7498,9 @@ var ChannelDescription = {
|
|
|
7474
7498
|
if (message.last_pin_message !== "") {
|
|
7475
7499
|
obj.last_pin_message = message.last_pin_message;
|
|
7476
7500
|
}
|
|
7501
|
+
if ((_d = message.usernames) == null ? void 0 : _d.length) {
|
|
7502
|
+
obj.usernames = message.usernames;
|
|
7503
|
+
}
|
|
7477
7504
|
if (message.creator_name !== "") {
|
|
7478
7505
|
obj.creator_name = message.creator_name;
|
|
7479
7506
|
}
|
|
@@ -7483,6 +7510,12 @@ var ChannelDescription = {
|
|
|
7483
7510
|
if (message.update_time_seconds !== 0) {
|
|
7484
7511
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
7485
7512
|
}
|
|
7513
|
+
if ((_e = message.display_names) == null ? void 0 : _e.length) {
|
|
7514
|
+
obj.display_names = message.display_names;
|
|
7515
|
+
}
|
|
7516
|
+
if (message.channel_avatar !== "") {
|
|
7517
|
+
obj.channel_avatar = message.channel_avatar;
|
|
7518
|
+
}
|
|
7486
7519
|
if (message.clan_name !== "") {
|
|
7487
7520
|
obj.clan_name = message.clan_name;
|
|
7488
7521
|
}
|
|
@@ -7495,29 +7528,11 @@ var ChannelDescription = {
|
|
|
7495
7528
|
if (message.age_restricted !== 0) {
|
|
7496
7529
|
obj.age_restricted = Math.round(message.age_restricted);
|
|
7497
7530
|
}
|
|
7498
|
-
if (message.channel_avatar !== "") {
|
|
7499
|
-
obj.channel_avatar = message.channel_avatar;
|
|
7500
|
-
}
|
|
7501
|
-
if (message.e2ee !== 0) {
|
|
7502
|
-
obj.e2ee = Math.round(message.e2ee);
|
|
7503
|
-
}
|
|
7504
7531
|
if (message.topic !== "") {
|
|
7505
7532
|
obj.topic = message.topic;
|
|
7506
7533
|
}
|
|
7507
|
-
if (
|
|
7508
|
-
obj.
|
|
7509
|
-
}
|
|
7510
|
-
if ((_b = message.usernames) == null ? void 0 : _b.length) {
|
|
7511
|
-
obj.usernames = message.usernames;
|
|
7512
|
-
}
|
|
7513
|
-
if ((_c = message.display_names) == null ? void 0 : _c.length) {
|
|
7514
|
-
obj.display_names = message.display_names;
|
|
7515
|
-
}
|
|
7516
|
-
if ((_d = message.onlines) == null ? void 0 : _d.length) {
|
|
7517
|
-
obj.onlines = message.onlines;
|
|
7518
|
-
}
|
|
7519
|
-
if ((_e = message.avatars) == null ? void 0 : _e.length) {
|
|
7520
|
-
obj.avatars = message.avatars;
|
|
7534
|
+
if (message.e2ee !== 0) {
|
|
7535
|
+
obj.e2ee = Math.round(message.e2ee);
|
|
7521
7536
|
}
|
|
7522
7537
|
return obj;
|
|
7523
7538
|
},
|
|
@@ -7536,27 +7551,27 @@ var ChannelDescription = {
|
|
|
7536
7551
|
message.creator_id = (_g = object.creator_id) != null ? _g : "";
|
|
7537
7552
|
message.channel_label = (_h = object.channel_label) != null ? _h : "";
|
|
7538
7553
|
message.channel_private = (_i = object.channel_private) != null ? _i : 0;
|
|
7554
|
+
message.avatars = ((_j = object.avatars) == null ? void 0 : _j.map((e) => e)) || [];
|
|
7555
|
+
message.user_ids = ((_k = object.user_ids) == null ? void 0 : _k.map((e) => e)) || [];
|
|
7539
7556
|
message.last_sent_message = object.last_sent_message !== void 0 && object.last_sent_message !== null ? ChannelMessageHeader.fromPartial(object.last_sent_message) : void 0;
|
|
7540
7557
|
message.last_seen_message = object.last_seen_message !== void 0 && object.last_seen_message !== null ? ChannelMessageHeader.fromPartial(object.last_seen_message) : void 0;
|
|
7541
|
-
message.
|
|
7542
|
-
message.
|
|
7543
|
-
message.
|
|
7544
|
-
message.
|
|
7545
|
-
message.
|
|
7546
|
-
message.
|
|
7547
|
-
message.
|
|
7548
|
-
message.
|
|
7549
|
-
message.
|
|
7550
|
-
message.
|
|
7551
|
-
message.
|
|
7552
|
-
message.
|
|
7553
|
-
message.
|
|
7554
|
-
message.
|
|
7555
|
-
message.
|
|
7556
|
-
message.
|
|
7557
|
-
message.
|
|
7558
|
-
message.onlines = ((_A = object.onlines) == null ? void 0 : _A.map((e) => e)) || [];
|
|
7559
|
-
message.avatars = ((_B = object.avatars) == null ? void 0 : _B.map((e) => e)) || [];
|
|
7558
|
+
message.onlines = ((_l = object.onlines) == null ? void 0 : _l.map((e) => e)) || [];
|
|
7559
|
+
message.meeting_code = (_m = object.meeting_code) != null ? _m : "";
|
|
7560
|
+
message.count_mess_unread = (_n = object.count_mess_unread) != null ? _n : 0;
|
|
7561
|
+
message.active = (_o = object.active) != null ? _o : 0;
|
|
7562
|
+
message.last_pin_message = (_p = object.last_pin_message) != null ? _p : "";
|
|
7563
|
+
message.usernames = ((_q = object.usernames) == null ? void 0 : _q.map((e) => e)) || [];
|
|
7564
|
+
message.creator_name = (_r = object.creator_name) != null ? _r : "";
|
|
7565
|
+
message.create_time_seconds = (_s = object.create_time_seconds) != null ? _s : 0;
|
|
7566
|
+
message.update_time_seconds = (_t = object.update_time_seconds) != null ? _t : 0;
|
|
7567
|
+
message.display_names = ((_u = object.display_names) == null ? void 0 : _u.map((e) => e)) || [];
|
|
7568
|
+
message.channel_avatar = (_v = object.channel_avatar) != null ? _v : "";
|
|
7569
|
+
message.clan_name = (_w = object.clan_name) != null ? _w : "";
|
|
7570
|
+
message.app_id = (_x = object.app_id) != null ? _x : "";
|
|
7571
|
+
message.is_mute = (_y = object.is_mute) != null ? _y : false;
|
|
7572
|
+
message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
|
|
7573
|
+
message.topic = (_A = object.topic) != null ? _A : "";
|
|
7574
|
+
message.e2ee = (_B = object.e2ee) != null ? _B : 0;
|
|
7560
7575
|
return message;
|
|
7561
7576
|
}
|
|
7562
7577
|
};
|
|
@@ -22508,6 +22523,7 @@ function createBaseUserProfileRedis() {
|
|
|
22508
22523
|
display_name: "",
|
|
22509
22524
|
about_me: "",
|
|
22510
22525
|
user_status: "",
|
|
22526
|
+
status: "",
|
|
22511
22527
|
create_time_second: 0,
|
|
22512
22528
|
fcm_tokens: [],
|
|
22513
22529
|
online: false,
|
|
@@ -22541,38 +22557,41 @@ var UserProfileRedis = {
|
|
|
22541
22557
|
if (message.user_status !== "") {
|
|
22542
22558
|
writer.uint32(50).string(message.user_status);
|
|
22543
22559
|
}
|
|
22560
|
+
if (message.status !== "") {
|
|
22561
|
+
writer.uint32(58).string(message.status);
|
|
22562
|
+
}
|
|
22544
22563
|
if (message.create_time_second !== 0) {
|
|
22545
|
-
writer.uint32(
|
|
22564
|
+
writer.uint32(64).uint32(message.create_time_second);
|
|
22546
22565
|
}
|
|
22547
22566
|
for (const v of message.fcm_tokens) {
|
|
22548
|
-
FCMTokens.encode(v, writer.uint32(
|
|
22567
|
+
FCMTokens.encode(v, writer.uint32(74).fork()).ldelim();
|
|
22549
22568
|
}
|
|
22550
22569
|
if (message.online !== false) {
|
|
22551
|
-
writer.uint32(
|
|
22570
|
+
writer.uint32(80).bool(message.online);
|
|
22552
22571
|
}
|
|
22553
22572
|
if (message.is_disabled !== false) {
|
|
22554
|
-
writer.uint32(
|
|
22573
|
+
writer.uint32(88).bool(message.is_disabled);
|
|
22555
22574
|
}
|
|
22556
22575
|
for (const v of message.joined_clans) {
|
|
22557
|
-
writer.uint32(
|
|
22576
|
+
writer.uint32(98).string(v);
|
|
22558
22577
|
}
|
|
22559
22578
|
if (message.pubkey !== "") {
|
|
22560
|
-
writer.uint32(
|
|
22579
|
+
writer.uint32(106).string(message.pubkey);
|
|
22561
22580
|
}
|
|
22562
22581
|
if (message.mezon_id !== "") {
|
|
22563
|
-
writer.uint32(
|
|
22582
|
+
writer.uint32(114).string(message.mezon_id);
|
|
22564
22583
|
}
|
|
22565
22584
|
if (message.app_token !== "") {
|
|
22566
|
-
writer.uint32(
|
|
22585
|
+
writer.uint32(122).string(message.app_token);
|
|
22567
22586
|
}
|
|
22568
22587
|
if (message.app_url !== "") {
|
|
22569
|
-
writer.uint32(
|
|
22588
|
+
writer.uint32(130).string(message.app_url);
|
|
22570
22589
|
}
|
|
22571
22590
|
if (message.is_bot !== false) {
|
|
22572
|
-
writer.uint32(
|
|
22591
|
+
writer.uint32(136).bool(message.is_bot);
|
|
22573
22592
|
}
|
|
22574
22593
|
if (message.voip_token !== "") {
|
|
22575
|
-
writer.uint32(
|
|
22594
|
+
writer.uint32(146).string(message.voip_token);
|
|
22576
22595
|
}
|
|
22577
22596
|
return writer;
|
|
22578
22597
|
},
|
|
@@ -22620,67 +22639,73 @@ var UserProfileRedis = {
|
|
|
22620
22639
|
message.user_status = reader.string();
|
|
22621
22640
|
continue;
|
|
22622
22641
|
case 7:
|
|
22623
|
-
if (tag !==
|
|
22642
|
+
if (tag !== 58) {
|
|
22624
22643
|
break;
|
|
22625
22644
|
}
|
|
22626
|
-
message.
|
|
22645
|
+
message.status = reader.string();
|
|
22627
22646
|
continue;
|
|
22628
22647
|
case 8:
|
|
22629
|
-
if (tag !==
|
|
22648
|
+
if (tag !== 64) {
|
|
22630
22649
|
break;
|
|
22631
22650
|
}
|
|
22632
|
-
message.
|
|
22651
|
+
message.create_time_second = reader.uint32();
|
|
22633
22652
|
continue;
|
|
22634
22653
|
case 9:
|
|
22635
|
-
if (tag !==
|
|
22654
|
+
if (tag !== 74) {
|
|
22636
22655
|
break;
|
|
22637
22656
|
}
|
|
22638
|
-
message.
|
|
22657
|
+
message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
|
|
22639
22658
|
continue;
|
|
22640
22659
|
case 10:
|
|
22641
22660
|
if (tag !== 80) {
|
|
22642
22661
|
break;
|
|
22643
22662
|
}
|
|
22644
|
-
message.
|
|
22663
|
+
message.online = reader.bool();
|
|
22645
22664
|
continue;
|
|
22646
22665
|
case 11:
|
|
22647
|
-
if (tag !==
|
|
22666
|
+
if (tag !== 88) {
|
|
22648
22667
|
break;
|
|
22649
22668
|
}
|
|
22650
|
-
message.
|
|
22669
|
+
message.is_disabled = reader.bool();
|
|
22651
22670
|
continue;
|
|
22652
22671
|
case 12:
|
|
22653
22672
|
if (tag !== 98) {
|
|
22654
22673
|
break;
|
|
22655
22674
|
}
|
|
22656
|
-
message.
|
|
22675
|
+
message.joined_clans.push(reader.string());
|
|
22657
22676
|
continue;
|
|
22658
22677
|
case 13:
|
|
22659
22678
|
if (tag !== 106) {
|
|
22660
22679
|
break;
|
|
22661
22680
|
}
|
|
22662
|
-
message.
|
|
22681
|
+
message.pubkey = reader.string();
|
|
22663
22682
|
continue;
|
|
22664
22683
|
case 14:
|
|
22665
22684
|
if (tag !== 114) {
|
|
22666
22685
|
break;
|
|
22667
22686
|
}
|
|
22668
|
-
message.
|
|
22687
|
+
message.mezon_id = reader.string();
|
|
22669
22688
|
continue;
|
|
22670
22689
|
case 15:
|
|
22671
22690
|
if (tag !== 122) {
|
|
22672
22691
|
break;
|
|
22673
22692
|
}
|
|
22674
|
-
message.
|
|
22693
|
+
message.app_token = reader.string();
|
|
22675
22694
|
continue;
|
|
22676
22695
|
case 16:
|
|
22677
|
-
if (tag !==
|
|
22696
|
+
if (tag !== 130) {
|
|
22678
22697
|
break;
|
|
22679
22698
|
}
|
|
22680
|
-
message.
|
|
22699
|
+
message.app_url = reader.string();
|
|
22681
22700
|
continue;
|
|
22682
22701
|
case 17:
|
|
22683
|
-
if (tag !==
|
|
22702
|
+
if (tag !== 136) {
|
|
22703
|
+
break;
|
|
22704
|
+
}
|
|
22705
|
+
message.is_bot = reader.bool();
|
|
22706
|
+
continue;
|
|
22707
|
+
case 18:
|
|
22708
|
+
if (tag !== 146) {
|
|
22684
22709
|
break;
|
|
22685
22710
|
}
|
|
22686
22711
|
message.voip_token = reader.string();
|
|
@@ -22701,6 +22726,7 @@ var UserProfileRedis = {
|
|
|
22701
22726
|
display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
22702
22727
|
about_me: isSet4(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
22703
22728
|
user_status: isSet4(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
22729
|
+
status: isSet4(object.status) ? globalThis.String(object.status) : "",
|
|
22704
22730
|
create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
22705
22731
|
fcm_tokens: globalThis.Array.isArray(object == null ? void 0 : object.fcm_tokens) ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e)) : [],
|
|
22706
22732
|
online: isSet4(object.online) ? globalThis.Boolean(object.online) : false,
|
|
@@ -22735,6 +22761,9 @@ var UserProfileRedis = {
|
|
|
22735
22761
|
if (message.user_status !== "") {
|
|
22736
22762
|
obj.user_status = message.user_status;
|
|
22737
22763
|
}
|
|
22764
|
+
if (message.status !== "") {
|
|
22765
|
+
obj.status = message.status;
|
|
22766
|
+
}
|
|
22738
22767
|
if (message.create_time_second !== 0) {
|
|
22739
22768
|
obj.create_time_second = Math.round(message.create_time_second);
|
|
22740
22769
|
}
|
|
@@ -22774,7 +22803,7 @@ var UserProfileRedis = {
|
|
|
22774
22803
|
return UserProfileRedis.fromPartial(base != null ? base : {});
|
|
22775
22804
|
},
|
|
22776
22805
|
fromPartial(object) {
|
|
22777
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
22806
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
22778
22807
|
const message = createBaseUserProfileRedis();
|
|
22779
22808
|
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
22780
22809
|
message.username = (_b = object.username) != null ? _b : "";
|
|
@@ -22782,17 +22811,18 @@ var UserProfileRedis = {
|
|
|
22782
22811
|
message.display_name = (_d = object.display_name) != null ? _d : "";
|
|
22783
22812
|
message.about_me = (_e = object.about_me) != null ? _e : "";
|
|
22784
22813
|
message.user_status = (_f = object.user_status) != null ? _f : "";
|
|
22785
|
-
message.
|
|
22786
|
-
message.
|
|
22787
|
-
message.
|
|
22788
|
-
message.
|
|
22789
|
-
message.
|
|
22790
|
-
message.
|
|
22791
|
-
message.
|
|
22792
|
-
message.
|
|
22793
|
-
message.
|
|
22794
|
-
message.
|
|
22795
|
-
message.
|
|
22814
|
+
message.status = (_g = object.status) != null ? _g : "";
|
|
22815
|
+
message.create_time_second = (_h = object.create_time_second) != null ? _h : 0;
|
|
22816
|
+
message.fcm_tokens = ((_i = object.fcm_tokens) == null ? void 0 : _i.map((e) => FCMTokens.fromPartial(e))) || [];
|
|
22817
|
+
message.online = (_j = object.online) != null ? _j : false;
|
|
22818
|
+
message.is_disabled = (_k = object.is_disabled) != null ? _k : false;
|
|
22819
|
+
message.joined_clans = ((_l = object.joined_clans) == null ? void 0 : _l.map((e) => e)) || [];
|
|
22820
|
+
message.pubkey = (_m = object.pubkey) != null ? _m : "";
|
|
22821
|
+
message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
|
|
22822
|
+
message.app_token = (_o = object.app_token) != null ? _o : "";
|
|
22823
|
+
message.app_url = (_p = object.app_url) != null ? _p : "";
|
|
22824
|
+
message.is_bot = (_q = object.is_bot) != null ? _q : false;
|
|
22825
|
+
message.voip_token = (_r = object.voip_token) != null ? _r : "";
|
|
22796
22826
|
return message;
|
|
22797
22827
|
}
|
|
22798
22828
|
};
|