mezon-js-protobuf 1.8.36 → 1.8.37
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 +300 -1109
- package/dist/mezon-js-protobuf/api/api.d.ts +614 -1694
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1677 -1843
- package/dist/mezon-js-protobuf.cjs.js +172 -202
- package/dist/mezon-js-protobuf.esm.mjs +172 -202
- package/package.json +1 -1
- package/rtapi/realtime.ts +29 -47
|
@@ -5974,7 +5974,7 @@ function createBaseUser() {
|
|
|
5974
5974
|
lang_tag: "",
|
|
5975
5975
|
location: "",
|
|
5976
5976
|
timezone: "",
|
|
5977
|
-
|
|
5977
|
+
user_status: "",
|
|
5978
5978
|
online: false,
|
|
5979
5979
|
phone_number: "",
|
|
5980
5980
|
edge_count: 0,
|
|
@@ -6011,8 +6011,8 @@ var User = {
|
|
|
6011
6011
|
if (message.timezone !== "") {
|
|
6012
6012
|
writer.uint32(58).string(message.timezone);
|
|
6013
6013
|
}
|
|
6014
|
-
if (message.
|
|
6015
|
-
writer.uint32(66).string(message.
|
|
6014
|
+
if (message.user_status !== "") {
|
|
6015
|
+
writer.uint32(66).string(message.user_status);
|
|
6016
6016
|
}
|
|
6017
6017
|
if (message.online !== false) {
|
|
6018
6018
|
writer.uint32(72).bool(message.online);
|
|
@@ -6102,7 +6102,7 @@ var User = {
|
|
|
6102
6102
|
if (tag !== 66) {
|
|
6103
6103
|
break;
|
|
6104
6104
|
}
|
|
6105
|
-
message.
|
|
6105
|
+
message.user_status = reader.string();
|
|
6106
6106
|
continue;
|
|
6107
6107
|
case 9:
|
|
6108
6108
|
if (tag !== 72) {
|
|
@@ -6187,7 +6187,7 @@ var User = {
|
|
|
6187
6187
|
lang_tag: isSet3(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
|
|
6188
6188
|
location: isSet3(object.location) ? globalThis.String(object.location) : "",
|
|
6189
6189
|
timezone: isSet3(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
6190
|
-
|
|
6190
|
+
user_status: isSet3(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
6191
6191
|
online: isSet3(object.online) ? globalThis.Boolean(object.online) : false,
|
|
6192
6192
|
phone_number: isSet3(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
6193
6193
|
edge_count: isSet3(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
@@ -6225,8 +6225,8 @@ var User = {
|
|
|
6225
6225
|
if (message.timezone !== "") {
|
|
6226
6226
|
obj.timezone = message.timezone;
|
|
6227
6227
|
}
|
|
6228
|
-
if (message.
|
|
6229
|
-
obj.
|
|
6228
|
+
if (message.user_status !== "") {
|
|
6229
|
+
obj.user_status = message.user_status;
|
|
6230
6230
|
}
|
|
6231
6231
|
if (message.online !== false) {
|
|
6232
6232
|
obj.online = message.online;
|
|
@@ -6276,7 +6276,7 @@ var User = {
|
|
|
6276
6276
|
message.lang_tag = (_e = object.lang_tag) != null ? _e : "";
|
|
6277
6277
|
message.location = (_f = object.location) != null ? _f : "";
|
|
6278
6278
|
message.timezone = (_g = object.timezone) != null ? _g : "";
|
|
6279
|
-
message.
|
|
6279
|
+
message.user_status = (_h = object.user_status) != null ? _h : "";
|
|
6280
6280
|
message.online = (_i = object.online) != null ? _i : false;
|
|
6281
6281
|
message.phone_number = (_j = object.phone_number) != null ? _j : "";
|
|
6282
6282
|
message.edge_count = (_k = object.edge_count) != null ? _k : 0;
|
|
@@ -7071,28 +7071,27 @@ function createBaseChannelDescription() {
|
|
|
7071
7071
|
creator_id: "",
|
|
7072
7072
|
channel_label: "",
|
|
7073
7073
|
channel_private: 0,
|
|
7074
|
-
channel_avatar: [],
|
|
7075
|
-
user_id: [],
|
|
7076
7074
|
last_sent_message: void 0,
|
|
7077
7075
|
last_seen_message: void 0,
|
|
7078
|
-
is_online: [],
|
|
7079
7076
|
meeting_code: "",
|
|
7080
7077
|
count_mess_unread: 0,
|
|
7081
7078
|
active: 0,
|
|
7082
7079
|
last_pin_message: "",
|
|
7083
|
-
usernames: [],
|
|
7084
7080
|
creator_name: "",
|
|
7085
7081
|
create_time_seconds: 0,
|
|
7086
7082
|
update_time_seconds: 0,
|
|
7087
|
-
metadata: [],
|
|
7088
|
-
about_me: [],
|
|
7089
7083
|
clan_name: "",
|
|
7090
7084
|
app_id: "",
|
|
7091
7085
|
is_mute: false,
|
|
7092
7086
|
age_restricted: 0,
|
|
7093
|
-
|
|
7087
|
+
channel_avatar: "",
|
|
7094
7088
|
e2ee: 0,
|
|
7095
|
-
|
|
7089
|
+
topic: "",
|
|
7090
|
+
user_ids: [],
|
|
7091
|
+
usernames: [],
|
|
7092
|
+
display_names: [],
|
|
7093
|
+
onlines: [],
|
|
7094
|
+
avatars: []
|
|
7096
7095
|
};
|
|
7097
7096
|
}
|
|
7098
7097
|
var ChannelDescription = {
|
|
@@ -7124,73 +7123,70 @@ var ChannelDescription = {
|
|
|
7124
7123
|
if (message.channel_private !== 0) {
|
|
7125
7124
|
writer.uint32(72).int32(message.channel_private);
|
|
7126
7125
|
}
|
|
7127
|
-
for (const v of message.channel_avatar) {
|
|
7128
|
-
writer.uint32(82).string(v);
|
|
7129
|
-
}
|
|
7130
|
-
for (const v of message.user_id) {
|
|
7131
|
-
writer.uint32(90).string(v);
|
|
7132
|
-
}
|
|
7133
7126
|
if (message.last_sent_message !== void 0) {
|
|
7134
|
-
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(
|
|
7127
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
|
|
7135
7128
|
}
|
|
7136
7129
|
if (message.last_seen_message !== void 0) {
|
|
7137
|
-
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(
|
|
7130
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(90).fork()).ldelim();
|
|
7138
7131
|
}
|
|
7139
|
-
writer.uint32(114).fork();
|
|
7140
|
-
for (const v of message.is_online) {
|
|
7141
|
-
writer.bool(v);
|
|
7142
|
-
}
|
|
7143
|
-
writer.ldelim();
|
|
7144
7132
|
if (message.meeting_code !== "") {
|
|
7145
|
-
writer.uint32(
|
|
7133
|
+
writer.uint32(98).string(message.meeting_code);
|
|
7146
7134
|
}
|
|
7147
7135
|
if (message.count_mess_unread !== 0) {
|
|
7148
|
-
writer.uint32(
|
|
7136
|
+
writer.uint32(104).int32(message.count_mess_unread);
|
|
7149
7137
|
}
|
|
7150
7138
|
if (message.active !== 0) {
|
|
7151
|
-
writer.uint32(
|
|
7139
|
+
writer.uint32(112).int32(message.active);
|
|
7152
7140
|
}
|
|
7153
7141
|
if (message.last_pin_message !== "") {
|
|
7154
|
-
writer.uint32(
|
|
7155
|
-
}
|
|
7156
|
-
for (const v of message.usernames) {
|
|
7157
|
-
writer.uint32(154).string(v);
|
|
7142
|
+
writer.uint32(122).string(message.last_pin_message);
|
|
7158
7143
|
}
|
|
7159
7144
|
if (message.creator_name !== "") {
|
|
7160
|
-
writer.uint32(
|
|
7145
|
+
writer.uint32(130).string(message.creator_name);
|
|
7161
7146
|
}
|
|
7162
7147
|
if (message.create_time_seconds !== 0) {
|
|
7163
|
-
writer.uint32(
|
|
7148
|
+
writer.uint32(136).uint32(message.create_time_seconds);
|
|
7164
7149
|
}
|
|
7165
7150
|
if (message.update_time_seconds !== 0) {
|
|
7166
|
-
writer.uint32(
|
|
7167
|
-
}
|
|
7168
|
-
for (const v of message.metadata) {
|
|
7169
|
-
writer.uint32(186).string(v);
|
|
7170
|
-
}
|
|
7171
|
-
for (const v of message.about_me) {
|
|
7172
|
-
writer.uint32(194).string(v);
|
|
7151
|
+
writer.uint32(144).uint32(message.update_time_seconds);
|
|
7173
7152
|
}
|
|
7174
7153
|
if (message.clan_name !== "") {
|
|
7175
|
-
writer.uint32(
|
|
7154
|
+
writer.uint32(154).string(message.clan_name);
|
|
7176
7155
|
}
|
|
7177
7156
|
if (message.app_id !== "") {
|
|
7178
|
-
writer.uint32(
|
|
7157
|
+
writer.uint32(162).string(message.app_id);
|
|
7179
7158
|
}
|
|
7180
7159
|
if (message.is_mute !== false) {
|
|
7181
|
-
writer.uint32(
|
|
7160
|
+
writer.uint32(168).bool(message.is_mute);
|
|
7182
7161
|
}
|
|
7183
7162
|
if (message.age_restricted !== 0) {
|
|
7184
|
-
writer.uint32(
|
|
7163
|
+
writer.uint32(176).int32(message.age_restricted);
|
|
7185
7164
|
}
|
|
7186
|
-
if (message.
|
|
7187
|
-
writer.uint32(
|
|
7165
|
+
if (message.channel_avatar !== "") {
|
|
7166
|
+
writer.uint32(186).string(message.channel_avatar);
|
|
7188
7167
|
}
|
|
7189
7168
|
if (message.e2ee !== 0) {
|
|
7190
|
-
writer.uint32(
|
|
7169
|
+
writer.uint32(192).int32(message.e2ee);
|
|
7170
|
+
}
|
|
7171
|
+
if (message.topic !== "") {
|
|
7172
|
+
writer.uint32(202).string(message.topic);
|
|
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);
|
|
7191
7179
|
}
|
|
7192
7180
|
for (const v of message.display_names) {
|
|
7193
|
-
writer.uint32(
|
|
7181
|
+
writer.uint32(226).string(v);
|
|
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);
|
|
7194
7190
|
}
|
|
7195
7191
|
return writer;
|
|
7196
7192
|
},
|
|
@@ -7259,140 +7255,134 @@ var ChannelDescription = {
|
|
|
7259
7255
|
if (tag !== 82) {
|
|
7260
7256
|
break;
|
|
7261
7257
|
}
|
|
7262
|
-
message.
|
|
7258
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
7263
7259
|
continue;
|
|
7264
7260
|
case 11:
|
|
7265
7261
|
if (tag !== 90) {
|
|
7266
7262
|
break;
|
|
7267
7263
|
}
|
|
7268
|
-
message.
|
|
7264
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
7269
7265
|
continue;
|
|
7270
7266
|
case 12:
|
|
7271
7267
|
if (tag !== 98) {
|
|
7272
7268
|
break;
|
|
7273
7269
|
}
|
|
7274
|
-
message.
|
|
7270
|
+
message.meeting_code = reader.string();
|
|
7275
7271
|
continue;
|
|
7276
7272
|
case 13:
|
|
7277
|
-
if (tag !==
|
|
7273
|
+
if (tag !== 104) {
|
|
7278
7274
|
break;
|
|
7279
7275
|
}
|
|
7280
|
-
message.
|
|
7276
|
+
message.count_mess_unread = reader.int32();
|
|
7281
7277
|
continue;
|
|
7282
7278
|
case 14:
|
|
7283
|
-
if (tag
|
|
7284
|
-
|
|
7285
|
-
continue;
|
|
7286
|
-
}
|
|
7287
|
-
if (tag === 114) {
|
|
7288
|
-
const end2 = reader.uint32() + reader.pos;
|
|
7289
|
-
while (reader.pos < end2) {
|
|
7290
|
-
message.is_online.push(reader.bool());
|
|
7291
|
-
}
|
|
7292
|
-
continue;
|
|
7279
|
+
if (tag !== 112) {
|
|
7280
|
+
break;
|
|
7293
7281
|
}
|
|
7294
|
-
|
|
7282
|
+
message.active = reader.int32();
|
|
7283
|
+
continue;
|
|
7295
7284
|
case 15:
|
|
7296
7285
|
if (tag !== 122) {
|
|
7297
7286
|
break;
|
|
7298
7287
|
}
|
|
7299
|
-
message.
|
|
7288
|
+
message.last_pin_message = reader.string();
|
|
7300
7289
|
continue;
|
|
7301
7290
|
case 16:
|
|
7302
|
-
if (tag !==
|
|
7291
|
+
if (tag !== 130) {
|
|
7303
7292
|
break;
|
|
7304
7293
|
}
|
|
7305
|
-
message.
|
|
7294
|
+
message.creator_name = reader.string();
|
|
7306
7295
|
continue;
|
|
7307
7296
|
case 17:
|
|
7308
7297
|
if (tag !== 136) {
|
|
7309
7298
|
break;
|
|
7310
7299
|
}
|
|
7311
|
-
message.
|
|
7300
|
+
message.create_time_seconds = reader.uint32();
|
|
7312
7301
|
continue;
|
|
7313
7302
|
case 18:
|
|
7314
|
-
if (tag !==
|
|
7303
|
+
if (tag !== 144) {
|
|
7315
7304
|
break;
|
|
7316
7305
|
}
|
|
7317
|
-
message.
|
|
7306
|
+
message.update_time_seconds = reader.uint32();
|
|
7318
7307
|
continue;
|
|
7319
7308
|
case 19:
|
|
7320
7309
|
if (tag !== 154) {
|
|
7321
7310
|
break;
|
|
7322
7311
|
}
|
|
7323
|
-
message.
|
|
7312
|
+
message.clan_name = reader.string();
|
|
7324
7313
|
continue;
|
|
7325
7314
|
case 20:
|
|
7326
7315
|
if (tag !== 162) {
|
|
7327
7316
|
break;
|
|
7328
7317
|
}
|
|
7329
|
-
message.
|
|
7318
|
+
message.app_id = reader.string();
|
|
7330
7319
|
continue;
|
|
7331
7320
|
case 21:
|
|
7332
7321
|
if (tag !== 168) {
|
|
7333
7322
|
break;
|
|
7334
7323
|
}
|
|
7335
|
-
message.
|
|
7324
|
+
message.is_mute = reader.bool();
|
|
7336
7325
|
continue;
|
|
7337
7326
|
case 22:
|
|
7338
7327
|
if (tag !== 176) {
|
|
7339
7328
|
break;
|
|
7340
7329
|
}
|
|
7341
|
-
message.
|
|
7330
|
+
message.age_restricted = reader.int32();
|
|
7342
7331
|
continue;
|
|
7343
7332
|
case 23:
|
|
7344
7333
|
if (tag !== 186) {
|
|
7345
7334
|
break;
|
|
7346
7335
|
}
|
|
7347
|
-
message.
|
|
7336
|
+
message.channel_avatar = reader.string();
|
|
7348
7337
|
continue;
|
|
7349
7338
|
case 24:
|
|
7350
|
-
if (tag !==
|
|
7339
|
+
if (tag !== 192) {
|
|
7351
7340
|
break;
|
|
7352
7341
|
}
|
|
7353
|
-
message.
|
|
7342
|
+
message.e2ee = reader.int32();
|
|
7354
7343
|
continue;
|
|
7355
7344
|
case 25:
|
|
7356
7345
|
if (tag !== 202) {
|
|
7357
7346
|
break;
|
|
7358
7347
|
}
|
|
7359
|
-
message.
|
|
7348
|
+
message.topic = reader.string();
|
|
7360
7349
|
continue;
|
|
7361
7350
|
case 26:
|
|
7362
7351
|
if (tag !== 210) {
|
|
7363
7352
|
break;
|
|
7364
7353
|
}
|
|
7365
|
-
message.
|
|
7354
|
+
message.user_ids.push(reader.string());
|
|
7366
7355
|
continue;
|
|
7367
7356
|
case 27:
|
|
7368
|
-
if (tag !==
|
|
7357
|
+
if (tag !== 218) {
|
|
7369
7358
|
break;
|
|
7370
7359
|
}
|
|
7371
|
-
message.
|
|
7360
|
+
message.usernames.push(reader.string());
|
|
7372
7361
|
continue;
|
|
7373
7362
|
case 28:
|
|
7374
|
-
if (tag !==
|
|
7363
|
+
if (tag !== 226) {
|
|
7375
7364
|
break;
|
|
7376
7365
|
}
|
|
7377
|
-
message.
|
|
7366
|
+
message.display_names.push(reader.string());
|
|
7378
7367
|
continue;
|
|
7379
7368
|
case 29:
|
|
7380
|
-
if (tag
|
|
7381
|
-
|
|
7369
|
+
if (tag === 232) {
|
|
7370
|
+
message.onlines.push(reader.bool());
|
|
7371
|
+
continue;
|
|
7382
7372
|
}
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
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;
|
|
7388
7379
|
}
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
if (tag !== 250) {
|
|
7380
|
+
break;
|
|
7381
|
+
case 30:
|
|
7382
|
+
if (tag !== 242) {
|
|
7393
7383
|
break;
|
|
7394
7384
|
}
|
|
7395
|
-
message.
|
|
7385
|
+
message.avatars.push(reader.string());
|
|
7396
7386
|
continue;
|
|
7397
7387
|
}
|
|
7398
7388
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7413,32 +7403,31 @@ var ChannelDescription = {
|
|
|
7413
7403
|
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7414
7404
|
channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
7415
7405
|
channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
7416
|
-
channel_avatar: globalThis.Array.isArray(object == null ? void 0 : object.channel_avatar) ? object.channel_avatar.map((e) => globalThis.String(e)) : [],
|
|
7417
|
-
user_id: globalThis.Array.isArray(object == null ? void 0 : object.user_id) ? object.user_id.map((e) => globalThis.String(e)) : [],
|
|
7418
7406
|
last_sent_message: isSet3(object.last_sent_message) ? ChannelMessageHeader.fromJSON(object.last_sent_message) : void 0,
|
|
7419
7407
|
last_seen_message: isSet3(object.last_seen_message) ? ChannelMessageHeader.fromJSON(object.last_seen_message) : void 0,
|
|
7420
|
-
is_online: globalThis.Array.isArray(object == null ? void 0 : object.is_online) ? object.is_online.map((e) => globalThis.Boolean(e)) : [],
|
|
7421
7408
|
meeting_code: isSet3(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
7422
7409
|
count_mess_unread: isSet3(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
7423
7410
|
active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
|
|
7424
7411
|
last_pin_message: isSet3(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
7425
|
-
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
7426
7412
|
creator_name: isSet3(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
7427
7413
|
create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
7428
7414
|
update_time_seconds: isSet3(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
7429
|
-
metadata: globalThis.Array.isArray(object == null ? void 0 : object.metadata) ? object.metadata.map((e) => globalThis.String(e)) : [],
|
|
7430
|
-
about_me: globalThis.Array.isArray(object == null ? void 0 : object.about_me) ? object.about_me.map((e) => globalThis.String(e)) : [],
|
|
7431
7415
|
clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
7432
7416
|
app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
7433
7417
|
is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
7434
7418
|
age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
7435
|
-
|
|
7419
|
+
channel_avatar: isSet3(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
7436
7420
|
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
7437
|
-
|
|
7421
|
+
topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
|
|
7422
|
+
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
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)) : []
|
|
7438
7427
|
};
|
|
7439
7428
|
},
|
|
7440
7429
|
toJSON(message) {
|
|
7441
|
-
var _a, _b, _c, _d, _e
|
|
7430
|
+
var _a, _b, _c, _d, _e;
|
|
7442
7431
|
const obj = {};
|
|
7443
7432
|
if (message.clan_id !== "") {
|
|
7444
7433
|
obj.clan_id = message.clan_id;
|
|
@@ -7467,21 +7456,12 @@ var ChannelDescription = {
|
|
|
7467
7456
|
if (message.channel_private !== 0) {
|
|
7468
7457
|
obj.channel_private = Math.round(message.channel_private);
|
|
7469
7458
|
}
|
|
7470
|
-
if ((_a = message.channel_avatar) == null ? void 0 : _a.length) {
|
|
7471
|
-
obj.channel_avatar = message.channel_avatar;
|
|
7472
|
-
}
|
|
7473
|
-
if ((_b = message.user_id) == null ? void 0 : _b.length) {
|
|
7474
|
-
obj.user_id = message.user_id;
|
|
7475
|
-
}
|
|
7476
7459
|
if (message.last_sent_message !== void 0) {
|
|
7477
7460
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
7478
7461
|
}
|
|
7479
7462
|
if (message.last_seen_message !== void 0) {
|
|
7480
7463
|
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
7481
7464
|
}
|
|
7482
|
-
if ((_c = message.is_online) == null ? void 0 : _c.length) {
|
|
7483
|
-
obj.is_online = message.is_online;
|
|
7484
|
-
}
|
|
7485
7465
|
if (message.meeting_code !== "") {
|
|
7486
7466
|
obj.meeting_code = message.meeting_code;
|
|
7487
7467
|
}
|
|
@@ -7494,9 +7474,6 @@ var ChannelDescription = {
|
|
|
7494
7474
|
if (message.last_pin_message !== "") {
|
|
7495
7475
|
obj.last_pin_message = message.last_pin_message;
|
|
7496
7476
|
}
|
|
7497
|
-
if ((_d = message.usernames) == null ? void 0 : _d.length) {
|
|
7498
|
-
obj.usernames = message.usernames;
|
|
7499
|
-
}
|
|
7500
7477
|
if (message.creator_name !== "") {
|
|
7501
7478
|
obj.creator_name = message.creator_name;
|
|
7502
7479
|
}
|
|
@@ -7506,12 +7483,6 @@ var ChannelDescription = {
|
|
|
7506
7483
|
if (message.update_time_seconds !== 0) {
|
|
7507
7484
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
7508
7485
|
}
|
|
7509
|
-
if ((_e = message.metadata) == null ? void 0 : _e.length) {
|
|
7510
|
-
obj.metadata = message.metadata;
|
|
7511
|
-
}
|
|
7512
|
-
if ((_f = message.about_me) == null ? void 0 : _f.length) {
|
|
7513
|
-
obj.about_me = message.about_me;
|
|
7514
|
-
}
|
|
7515
7486
|
if (message.clan_name !== "") {
|
|
7516
7487
|
obj.clan_name = message.clan_name;
|
|
7517
7488
|
}
|
|
@@ -7524,22 +7495,37 @@ var ChannelDescription = {
|
|
|
7524
7495
|
if (message.age_restricted !== 0) {
|
|
7525
7496
|
obj.age_restricted = Math.round(message.age_restricted);
|
|
7526
7497
|
}
|
|
7527
|
-
if (message.
|
|
7528
|
-
obj.
|
|
7498
|
+
if (message.channel_avatar !== "") {
|
|
7499
|
+
obj.channel_avatar = message.channel_avatar;
|
|
7529
7500
|
}
|
|
7530
7501
|
if (message.e2ee !== 0) {
|
|
7531
7502
|
obj.e2ee = Math.round(message.e2ee);
|
|
7532
7503
|
}
|
|
7533
|
-
if (
|
|
7504
|
+
if (message.topic !== "") {
|
|
7505
|
+
obj.topic = message.topic;
|
|
7506
|
+
}
|
|
7507
|
+
if ((_a = message.user_ids) == null ? void 0 : _a.length) {
|
|
7508
|
+
obj.user_ids = message.user_ids;
|
|
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) {
|
|
7534
7514
|
obj.display_names = message.display_names;
|
|
7535
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;
|
|
7521
|
+
}
|
|
7536
7522
|
return obj;
|
|
7537
7523
|
},
|
|
7538
7524
|
create(base) {
|
|
7539
7525
|
return ChannelDescription.fromPartial(base != null ? base : {});
|
|
7540
7526
|
},
|
|
7541
7527
|
fromPartial(object) {
|
|
7542
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B
|
|
7528
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
|
|
7543
7529
|
const message = createBaseChannelDescription();
|
|
7544
7530
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
7545
7531
|
message.parent_id = (_b = object.parent_id) != null ? _b : "";
|
|
@@ -7550,28 +7536,27 @@ var ChannelDescription = {
|
|
|
7550
7536
|
message.creator_id = (_g = object.creator_id) != null ? _g : "";
|
|
7551
7537
|
message.channel_label = (_h = object.channel_label) != null ? _h : "";
|
|
7552
7538
|
message.channel_private = (_i = object.channel_private) != null ? _i : 0;
|
|
7553
|
-
message.channel_avatar = ((_j = object.channel_avatar) == null ? void 0 : _j.map((e) => e)) || [];
|
|
7554
|
-
message.user_id = ((_k = object.user_id) == null ? void 0 : _k.map((e) => e)) || [];
|
|
7555
7539
|
message.last_sent_message = object.last_sent_message !== void 0 && object.last_sent_message !== null ? ChannelMessageHeader.fromPartial(object.last_sent_message) : void 0;
|
|
7556
7540
|
message.last_seen_message = object.last_seen_message !== void 0 && object.last_seen_message !== null ? ChannelMessageHeader.fromPartial(object.last_seen_message) : void 0;
|
|
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.
|
|
7572
|
-
message.
|
|
7573
|
-
message.
|
|
7574
|
-
message.
|
|
7541
|
+
message.meeting_code = (_j = object.meeting_code) != null ? _j : "";
|
|
7542
|
+
message.count_mess_unread = (_k = object.count_mess_unread) != null ? _k : 0;
|
|
7543
|
+
message.active = (_l = object.active) != null ? _l : 0;
|
|
7544
|
+
message.last_pin_message = (_m = object.last_pin_message) != null ? _m : "";
|
|
7545
|
+
message.creator_name = (_n = object.creator_name) != null ? _n : "";
|
|
7546
|
+
message.create_time_seconds = (_o = object.create_time_seconds) != null ? _o : 0;
|
|
7547
|
+
message.update_time_seconds = (_p = object.update_time_seconds) != null ? _p : 0;
|
|
7548
|
+
message.clan_name = (_q = object.clan_name) != null ? _q : "";
|
|
7549
|
+
message.app_id = (_r = object.app_id) != null ? _r : "";
|
|
7550
|
+
message.is_mute = (_s = object.is_mute) != null ? _s : false;
|
|
7551
|
+
message.age_restricted = (_t = object.age_restricted) != null ? _t : 0;
|
|
7552
|
+
message.channel_avatar = (_u = object.channel_avatar) != null ? _u : "";
|
|
7553
|
+
message.e2ee = (_v = object.e2ee) != null ? _v : 0;
|
|
7554
|
+
message.topic = (_w = object.topic) != null ? _w : "";
|
|
7555
|
+
message.user_ids = ((_x = object.user_ids) == null ? void 0 : _x.map((e) => e)) || [];
|
|
7556
|
+
message.usernames = ((_y = object.usernames) == null ? void 0 : _y.map((e) => e)) || [];
|
|
7557
|
+
message.display_names = ((_z = object.display_names) == null ? void 0 : _z.map((e) => e)) || [];
|
|
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)) || [];
|
|
7575
7560
|
return message;
|
|
7576
7561
|
}
|
|
7577
7562
|
};
|
|
@@ -22507,11 +22492,10 @@ function createBaseUserProfileRedis() {
|
|
|
22507
22492
|
avatar: "",
|
|
22508
22493
|
display_name: "",
|
|
22509
22494
|
about_me: "",
|
|
22510
|
-
|
|
22495
|
+
user_status: "",
|
|
22511
22496
|
create_time_second: 0,
|
|
22512
22497
|
fcm_tokens: [],
|
|
22513
22498
|
online: false,
|
|
22514
|
-
metadata: "",
|
|
22515
22499
|
is_disabled: false,
|
|
22516
22500
|
joined_clans: [],
|
|
22517
22501
|
pubkey: "",
|
|
@@ -22539,8 +22523,8 @@ var UserProfileRedis = {
|
|
|
22539
22523
|
if (message.about_me !== "") {
|
|
22540
22524
|
writer.uint32(42).string(message.about_me);
|
|
22541
22525
|
}
|
|
22542
|
-
if (message.
|
|
22543
|
-
writer.uint32(50).string(message.
|
|
22526
|
+
if (message.user_status !== "") {
|
|
22527
|
+
writer.uint32(50).string(message.user_status);
|
|
22544
22528
|
}
|
|
22545
22529
|
if (message.create_time_second !== 0) {
|
|
22546
22530
|
writer.uint32(56).uint32(message.create_time_second);
|
|
@@ -22551,32 +22535,29 @@ var UserProfileRedis = {
|
|
|
22551
22535
|
if (message.online !== false) {
|
|
22552
22536
|
writer.uint32(72).bool(message.online);
|
|
22553
22537
|
}
|
|
22554
|
-
if (message.metadata !== "") {
|
|
22555
|
-
writer.uint32(82).string(message.metadata);
|
|
22556
|
-
}
|
|
22557
22538
|
if (message.is_disabled !== false) {
|
|
22558
|
-
writer.uint32(
|
|
22539
|
+
writer.uint32(80).bool(message.is_disabled);
|
|
22559
22540
|
}
|
|
22560
22541
|
for (const v of message.joined_clans) {
|
|
22561
|
-
writer.uint32(
|
|
22542
|
+
writer.uint32(90).string(v);
|
|
22562
22543
|
}
|
|
22563
22544
|
if (message.pubkey !== "") {
|
|
22564
|
-
writer.uint32(
|
|
22545
|
+
writer.uint32(98).string(message.pubkey);
|
|
22565
22546
|
}
|
|
22566
22547
|
if (message.mezon_id !== "") {
|
|
22567
|
-
writer.uint32(
|
|
22548
|
+
writer.uint32(106).string(message.mezon_id);
|
|
22568
22549
|
}
|
|
22569
22550
|
if (message.app_token !== "") {
|
|
22570
|
-
writer.uint32(
|
|
22551
|
+
writer.uint32(114).string(message.app_token);
|
|
22571
22552
|
}
|
|
22572
22553
|
if (message.app_url !== "") {
|
|
22573
|
-
writer.uint32(
|
|
22554
|
+
writer.uint32(122).string(message.app_url);
|
|
22574
22555
|
}
|
|
22575
22556
|
if (message.is_bot !== false) {
|
|
22576
|
-
writer.uint32(
|
|
22557
|
+
writer.uint32(128).bool(message.is_bot);
|
|
22577
22558
|
}
|
|
22578
22559
|
if (message.voip_token !== "") {
|
|
22579
|
-
writer.uint32(
|
|
22560
|
+
writer.uint32(138).string(message.voip_token);
|
|
22580
22561
|
}
|
|
22581
22562
|
return writer;
|
|
22582
22563
|
},
|
|
@@ -22621,7 +22602,7 @@ var UserProfileRedis = {
|
|
|
22621
22602
|
if (tag !== 50) {
|
|
22622
22603
|
break;
|
|
22623
22604
|
}
|
|
22624
|
-
message.
|
|
22605
|
+
message.user_status = reader.string();
|
|
22625
22606
|
continue;
|
|
22626
22607
|
case 7:
|
|
22627
22608
|
if (tag !== 56) {
|
|
@@ -22642,55 +22623,49 @@ var UserProfileRedis = {
|
|
|
22642
22623
|
message.online = reader.bool();
|
|
22643
22624
|
continue;
|
|
22644
22625
|
case 10:
|
|
22645
|
-
if (tag !==
|
|
22626
|
+
if (tag !== 80) {
|
|
22646
22627
|
break;
|
|
22647
22628
|
}
|
|
22648
|
-
message.
|
|
22629
|
+
message.is_disabled = reader.bool();
|
|
22649
22630
|
continue;
|
|
22650
22631
|
case 11:
|
|
22651
|
-
if (tag !==
|
|
22632
|
+
if (tag !== 90) {
|
|
22652
22633
|
break;
|
|
22653
22634
|
}
|
|
22654
|
-
message.
|
|
22635
|
+
message.joined_clans.push(reader.string());
|
|
22655
22636
|
continue;
|
|
22656
22637
|
case 12:
|
|
22657
22638
|
if (tag !== 98) {
|
|
22658
22639
|
break;
|
|
22659
22640
|
}
|
|
22660
|
-
message.
|
|
22641
|
+
message.pubkey = reader.string();
|
|
22661
22642
|
continue;
|
|
22662
22643
|
case 13:
|
|
22663
22644
|
if (tag !== 106) {
|
|
22664
22645
|
break;
|
|
22665
22646
|
}
|
|
22666
|
-
message.
|
|
22647
|
+
message.mezon_id = reader.string();
|
|
22667
22648
|
continue;
|
|
22668
22649
|
case 14:
|
|
22669
22650
|
if (tag !== 114) {
|
|
22670
22651
|
break;
|
|
22671
22652
|
}
|
|
22672
|
-
message.
|
|
22653
|
+
message.app_token = reader.string();
|
|
22673
22654
|
continue;
|
|
22674
22655
|
case 15:
|
|
22675
22656
|
if (tag !== 122) {
|
|
22676
22657
|
break;
|
|
22677
22658
|
}
|
|
22678
|
-
message.app_token = reader.string();
|
|
22679
|
-
continue;
|
|
22680
|
-
case 16:
|
|
22681
|
-
if (tag !== 130) {
|
|
22682
|
-
break;
|
|
22683
|
-
}
|
|
22684
22659
|
message.app_url = reader.string();
|
|
22685
22660
|
continue;
|
|
22686
|
-
case
|
|
22687
|
-
if (tag !==
|
|
22661
|
+
case 16:
|
|
22662
|
+
if (tag !== 128) {
|
|
22688
22663
|
break;
|
|
22689
22664
|
}
|
|
22690
22665
|
message.is_bot = reader.bool();
|
|
22691
22666
|
continue;
|
|
22692
|
-
case
|
|
22693
|
-
if (tag !==
|
|
22667
|
+
case 17:
|
|
22668
|
+
if (tag !== 138) {
|
|
22694
22669
|
break;
|
|
22695
22670
|
}
|
|
22696
22671
|
message.voip_token = reader.string();
|
|
@@ -22710,11 +22685,10 @@ var UserProfileRedis = {
|
|
|
22710
22685
|
avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
22711
22686
|
display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
22712
22687
|
about_me: isSet4(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
22713
|
-
|
|
22688
|
+
user_status: isSet4(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
22714
22689
|
create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
22715
22690
|
fcm_tokens: globalThis.Array.isArray(object == null ? void 0 : object.fcm_tokens) ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e)) : [],
|
|
22716
22691
|
online: isSet4(object.online) ? globalThis.Boolean(object.online) : false,
|
|
22717
|
-
metadata: isSet4(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
22718
22692
|
is_disabled: isSet4(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
|
|
22719
22693
|
joined_clans: globalThis.Array.isArray(object == null ? void 0 : object.joined_clans) ? object.joined_clans.map((e) => globalThis.String(e)) : [],
|
|
22720
22694
|
pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : "",
|
|
@@ -22743,8 +22717,8 @@ var UserProfileRedis = {
|
|
|
22743
22717
|
if (message.about_me !== "") {
|
|
22744
22718
|
obj.about_me = message.about_me;
|
|
22745
22719
|
}
|
|
22746
|
-
if (message.
|
|
22747
|
-
obj.
|
|
22720
|
+
if (message.user_status !== "") {
|
|
22721
|
+
obj.user_status = message.user_status;
|
|
22748
22722
|
}
|
|
22749
22723
|
if (message.create_time_second !== 0) {
|
|
22750
22724
|
obj.create_time_second = Math.round(message.create_time_second);
|
|
@@ -22755,9 +22729,6 @@ var UserProfileRedis = {
|
|
|
22755
22729
|
if (message.online !== false) {
|
|
22756
22730
|
obj.online = message.online;
|
|
22757
22731
|
}
|
|
22758
|
-
if (message.metadata !== "") {
|
|
22759
|
-
obj.metadata = message.metadata;
|
|
22760
|
-
}
|
|
22761
22732
|
if (message.is_disabled !== false) {
|
|
22762
22733
|
obj.is_disabled = message.is_disabled;
|
|
22763
22734
|
}
|
|
@@ -22788,26 +22759,25 @@ var UserProfileRedis = {
|
|
|
22788
22759
|
return UserProfileRedis.fromPartial(base != null ? base : {});
|
|
22789
22760
|
},
|
|
22790
22761
|
fromPartial(object) {
|
|
22791
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q
|
|
22762
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
22792
22763
|
const message = createBaseUserProfileRedis();
|
|
22793
22764
|
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
22794
22765
|
message.username = (_b = object.username) != null ? _b : "";
|
|
22795
22766
|
message.avatar = (_c = object.avatar) != null ? _c : "";
|
|
22796
22767
|
message.display_name = (_d = object.display_name) != null ? _d : "";
|
|
22797
22768
|
message.about_me = (_e = object.about_me) != null ? _e : "";
|
|
22798
|
-
message.
|
|
22769
|
+
message.user_status = (_f = object.user_status) != null ? _f : "";
|
|
22799
22770
|
message.create_time_second = (_g = object.create_time_second) != null ? _g : 0;
|
|
22800
22771
|
message.fcm_tokens = ((_h = object.fcm_tokens) == null ? void 0 : _h.map((e) => FCMTokens.fromPartial(e))) || [];
|
|
22801
22772
|
message.online = (_i = object.online) != null ? _i : false;
|
|
22802
|
-
message.
|
|
22803
|
-
message.
|
|
22804
|
-
message.
|
|
22805
|
-
message.
|
|
22806
|
-
message.
|
|
22807
|
-
message.
|
|
22808
|
-
message.
|
|
22809
|
-
message.
|
|
22810
|
-
message.voip_token = (_r = object.voip_token) != null ? _r : "";
|
|
22773
|
+
message.is_disabled = (_j = object.is_disabled) != null ? _j : false;
|
|
22774
|
+
message.joined_clans = ((_k = object.joined_clans) == null ? void 0 : _k.map((e) => e)) || [];
|
|
22775
|
+
message.pubkey = (_l = object.pubkey) != null ? _l : "";
|
|
22776
|
+
message.mezon_id = (_m = object.mezon_id) != null ? _m : "";
|
|
22777
|
+
message.app_token = (_n = object.app_token) != null ? _n : "";
|
|
22778
|
+
message.app_url = (_o = object.app_url) != null ? _o : "";
|
|
22779
|
+
message.is_bot = (_p = object.is_bot) != null ? _p : false;
|
|
22780
|
+
message.voip_token = (_q = object.voip_token) != null ? _q : "";
|
|
22811
22781
|
return message;
|
|
22812
22782
|
}
|
|
22813
22783
|
};
|