mezon-js-protobuf 1.8.52 → 1.8.53
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
CHANGED
|
@@ -1397,9 +1397,11 @@ export interface UpdateClanProfileRequest {
|
|
|
1397
1397
|
/** id clanc */
|
|
1398
1398
|
clan_id: string;
|
|
1399
1399
|
/** nick_name new */
|
|
1400
|
-
nick_name:
|
|
1400
|
+
nick_name:
|
|
1401
|
+
| string
|
|
1402
|
+
| undefined;
|
|
1401
1403
|
/** avatar */
|
|
1402
|
-
avatar: string;
|
|
1404
|
+
avatar: string | undefined;
|
|
1403
1405
|
}
|
|
1404
1406
|
|
|
1405
1407
|
/** Update Clan Order Request */
|
|
@@ -1741,6 +1743,28 @@ export interface BanClanUsersRequest {
|
|
|
1741
1743
|
user_ids: string[];
|
|
1742
1744
|
/** ban time */
|
|
1743
1745
|
ban_time: number;
|
|
1746
|
+
/** The reason */
|
|
1747
|
+
reason: string;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
/** list banned user */
|
|
1751
|
+
export interface BannedUser {
|
|
1752
|
+
/** The channel ID to ban */
|
|
1753
|
+
channel_id: string;
|
|
1754
|
+
/** The banned user. */
|
|
1755
|
+
banned_id: string;
|
|
1756
|
+
/** The avatar */
|
|
1757
|
+
banned_avatar: string;
|
|
1758
|
+
/** The name */
|
|
1759
|
+
banned_name: string;
|
|
1760
|
+
/** ban time */
|
|
1761
|
+
ban_time: number;
|
|
1762
|
+
/** The reason */
|
|
1763
|
+
reason: string;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
export interface bannedUserList {
|
|
1767
|
+
banned_users: BannedUser[];
|
|
1744
1768
|
}
|
|
1745
1769
|
|
|
1746
1770
|
/** Leave a channel. */
|
|
@@ -13276,7 +13300,7 @@ export const ClanProfileRequest = {
|
|
|
13276
13300
|
};
|
|
13277
13301
|
|
|
13278
13302
|
function createBaseUpdateClanProfileRequest(): UpdateClanProfileRequest {
|
|
13279
|
-
return { clan_id: "", nick_name:
|
|
13303
|
+
return { clan_id: "", nick_name: undefined, avatar: undefined };
|
|
13280
13304
|
}
|
|
13281
13305
|
|
|
13282
13306
|
export const UpdateClanProfileRequest = {
|
|
@@ -13284,11 +13308,11 @@ export const UpdateClanProfileRequest = {
|
|
|
13284
13308
|
if (message.clan_id !== "") {
|
|
13285
13309
|
writer.uint32(10).string(message.clan_id);
|
|
13286
13310
|
}
|
|
13287
|
-
if (message.nick_name !==
|
|
13288
|
-
writer.uint32(18).
|
|
13311
|
+
if (message.nick_name !== undefined) {
|
|
13312
|
+
StringValue.encode({ value: message.nick_name! }, writer.uint32(18).fork()).ldelim();
|
|
13289
13313
|
}
|
|
13290
|
-
if (message.avatar !==
|
|
13291
|
-
writer.uint32(26).
|
|
13314
|
+
if (message.avatar !== undefined) {
|
|
13315
|
+
StringValue.encode({ value: message.avatar! }, writer.uint32(26).fork()).ldelim();
|
|
13292
13316
|
}
|
|
13293
13317
|
return writer;
|
|
13294
13318
|
},
|
|
@@ -13312,14 +13336,14 @@ export const UpdateClanProfileRequest = {
|
|
|
13312
13336
|
break;
|
|
13313
13337
|
}
|
|
13314
13338
|
|
|
13315
|
-
message.nick_name = reader.
|
|
13339
|
+
message.nick_name = StringValue.decode(reader, reader.uint32()).value;
|
|
13316
13340
|
continue;
|
|
13317
13341
|
case 3:
|
|
13318
13342
|
if (tag !== 26) {
|
|
13319
13343
|
break;
|
|
13320
13344
|
}
|
|
13321
13345
|
|
|
13322
|
-
message.avatar = reader.
|
|
13346
|
+
message.avatar = StringValue.decode(reader, reader.uint32()).value;
|
|
13323
13347
|
continue;
|
|
13324
13348
|
}
|
|
13325
13349
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -13333,8 +13357,8 @@ export const UpdateClanProfileRequest = {
|
|
|
13333
13357
|
fromJSON(object: any): UpdateClanProfileRequest {
|
|
13334
13358
|
return {
|
|
13335
13359
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
13336
|
-
nick_name: isSet(object.nick_name) ?
|
|
13337
|
-
avatar: isSet(object.avatar) ?
|
|
13360
|
+
nick_name: isSet(object.nick_name) ? String(object.nick_name) : undefined,
|
|
13361
|
+
avatar: isSet(object.avatar) ? String(object.avatar) : undefined,
|
|
13338
13362
|
};
|
|
13339
13363
|
},
|
|
13340
13364
|
|
|
@@ -13343,10 +13367,10 @@ export const UpdateClanProfileRequest = {
|
|
|
13343
13367
|
if (message.clan_id !== "") {
|
|
13344
13368
|
obj.clan_id = message.clan_id;
|
|
13345
13369
|
}
|
|
13346
|
-
if (message.nick_name !==
|
|
13370
|
+
if (message.nick_name !== undefined) {
|
|
13347
13371
|
obj.nick_name = message.nick_name;
|
|
13348
13372
|
}
|
|
13349
|
-
if (message.avatar !==
|
|
13373
|
+
if (message.avatar !== undefined) {
|
|
13350
13374
|
obj.avatar = message.avatar;
|
|
13351
13375
|
}
|
|
13352
13376
|
return obj;
|
|
@@ -13358,8 +13382,8 @@ export const UpdateClanProfileRequest = {
|
|
|
13358
13382
|
fromPartial<I extends Exact<DeepPartial<UpdateClanProfileRequest>, I>>(object: I): UpdateClanProfileRequest {
|
|
13359
13383
|
const message = createBaseUpdateClanProfileRequest();
|
|
13360
13384
|
message.clan_id = object.clan_id ?? "";
|
|
13361
|
-
message.nick_name = object.nick_name ??
|
|
13362
|
-
message.avatar = object.avatar ??
|
|
13385
|
+
message.nick_name = object.nick_name ?? undefined;
|
|
13386
|
+
message.avatar = object.avatar ?? undefined;
|
|
13363
13387
|
return message;
|
|
13364
13388
|
},
|
|
13365
13389
|
};
|
|
@@ -16301,7 +16325,7 @@ export const RemoveClanUsersRequest = {
|
|
|
16301
16325
|
};
|
|
16302
16326
|
|
|
16303
16327
|
function createBaseBanClanUsersRequest(): BanClanUsersRequest {
|
|
16304
|
-
return { clan_id: "", channel_id: "", user_ids: [], ban_time: 0 };
|
|
16328
|
+
return { clan_id: "", channel_id: "", user_ids: [], ban_time: 0, reason: "" };
|
|
16305
16329
|
}
|
|
16306
16330
|
|
|
16307
16331
|
export const BanClanUsersRequest = {
|
|
@@ -16318,6 +16342,9 @@ export const BanClanUsersRequest = {
|
|
|
16318
16342
|
if (message.ban_time !== 0) {
|
|
16319
16343
|
writer.uint32(32).int32(message.ban_time);
|
|
16320
16344
|
}
|
|
16345
|
+
if (message.reason !== "") {
|
|
16346
|
+
writer.uint32(42).string(message.reason);
|
|
16347
|
+
}
|
|
16321
16348
|
return writer;
|
|
16322
16349
|
},
|
|
16323
16350
|
|
|
@@ -16356,6 +16383,13 @@ export const BanClanUsersRequest = {
|
|
|
16356
16383
|
|
|
16357
16384
|
message.ban_time = reader.int32();
|
|
16358
16385
|
continue;
|
|
16386
|
+
case 5:
|
|
16387
|
+
if (tag !== 42) {
|
|
16388
|
+
break;
|
|
16389
|
+
}
|
|
16390
|
+
|
|
16391
|
+
message.reason = reader.string();
|
|
16392
|
+
continue;
|
|
16359
16393
|
}
|
|
16360
16394
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16361
16395
|
break;
|
|
@@ -16371,6 +16405,7 @@ export const BanClanUsersRequest = {
|
|
|
16371
16405
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
16372
16406
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
16373
16407
|
ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
|
|
16408
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
16374
16409
|
};
|
|
16375
16410
|
},
|
|
16376
16411
|
|
|
@@ -16388,6 +16423,9 @@ export const BanClanUsersRequest = {
|
|
|
16388
16423
|
if (message.ban_time !== 0) {
|
|
16389
16424
|
obj.ban_time = Math.round(message.ban_time);
|
|
16390
16425
|
}
|
|
16426
|
+
if (message.reason !== "") {
|
|
16427
|
+
obj.reason = message.reason;
|
|
16428
|
+
}
|
|
16391
16429
|
return obj;
|
|
16392
16430
|
},
|
|
16393
16431
|
|
|
@@ -16400,6 +16438,202 @@ export const BanClanUsersRequest = {
|
|
|
16400
16438
|
message.channel_id = object.channel_id ?? "";
|
|
16401
16439
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
16402
16440
|
message.ban_time = object.ban_time ?? 0;
|
|
16441
|
+
message.reason = object.reason ?? "";
|
|
16442
|
+
return message;
|
|
16443
|
+
},
|
|
16444
|
+
};
|
|
16445
|
+
|
|
16446
|
+
function createBaseBannedUser(): BannedUser {
|
|
16447
|
+
return { channel_id: "", banned_id: "", banned_avatar: "", banned_name: "", ban_time: 0, reason: "" };
|
|
16448
|
+
}
|
|
16449
|
+
|
|
16450
|
+
export const BannedUser = {
|
|
16451
|
+
encode(message: BannedUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16452
|
+
if (message.channel_id !== "") {
|
|
16453
|
+
writer.uint32(10).string(message.channel_id);
|
|
16454
|
+
}
|
|
16455
|
+
if (message.banned_id !== "") {
|
|
16456
|
+
writer.uint32(18).string(message.banned_id);
|
|
16457
|
+
}
|
|
16458
|
+
if (message.banned_avatar !== "") {
|
|
16459
|
+
writer.uint32(26).string(message.banned_avatar);
|
|
16460
|
+
}
|
|
16461
|
+
if (message.banned_name !== "") {
|
|
16462
|
+
writer.uint32(34).string(message.banned_name);
|
|
16463
|
+
}
|
|
16464
|
+
if (message.ban_time !== 0) {
|
|
16465
|
+
writer.uint32(40).int32(message.ban_time);
|
|
16466
|
+
}
|
|
16467
|
+
if (message.reason !== "") {
|
|
16468
|
+
writer.uint32(50).string(message.reason);
|
|
16469
|
+
}
|
|
16470
|
+
return writer;
|
|
16471
|
+
},
|
|
16472
|
+
|
|
16473
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BannedUser {
|
|
16474
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
16475
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
16476
|
+
const message = createBaseBannedUser();
|
|
16477
|
+
while (reader.pos < end) {
|
|
16478
|
+
const tag = reader.uint32();
|
|
16479
|
+
switch (tag >>> 3) {
|
|
16480
|
+
case 1:
|
|
16481
|
+
if (tag !== 10) {
|
|
16482
|
+
break;
|
|
16483
|
+
}
|
|
16484
|
+
|
|
16485
|
+
message.channel_id = reader.string();
|
|
16486
|
+
continue;
|
|
16487
|
+
case 2:
|
|
16488
|
+
if (tag !== 18) {
|
|
16489
|
+
break;
|
|
16490
|
+
}
|
|
16491
|
+
|
|
16492
|
+
message.banned_id = reader.string();
|
|
16493
|
+
continue;
|
|
16494
|
+
case 3:
|
|
16495
|
+
if (tag !== 26) {
|
|
16496
|
+
break;
|
|
16497
|
+
}
|
|
16498
|
+
|
|
16499
|
+
message.banned_avatar = reader.string();
|
|
16500
|
+
continue;
|
|
16501
|
+
case 4:
|
|
16502
|
+
if (tag !== 34) {
|
|
16503
|
+
break;
|
|
16504
|
+
}
|
|
16505
|
+
|
|
16506
|
+
message.banned_name = reader.string();
|
|
16507
|
+
continue;
|
|
16508
|
+
case 5:
|
|
16509
|
+
if (tag !== 40) {
|
|
16510
|
+
break;
|
|
16511
|
+
}
|
|
16512
|
+
|
|
16513
|
+
message.ban_time = reader.int32();
|
|
16514
|
+
continue;
|
|
16515
|
+
case 6:
|
|
16516
|
+
if (tag !== 50) {
|
|
16517
|
+
break;
|
|
16518
|
+
}
|
|
16519
|
+
|
|
16520
|
+
message.reason = reader.string();
|
|
16521
|
+
continue;
|
|
16522
|
+
}
|
|
16523
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16524
|
+
break;
|
|
16525
|
+
}
|
|
16526
|
+
reader.skipType(tag & 7);
|
|
16527
|
+
}
|
|
16528
|
+
return message;
|
|
16529
|
+
},
|
|
16530
|
+
|
|
16531
|
+
fromJSON(object: any): BannedUser {
|
|
16532
|
+
return {
|
|
16533
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
16534
|
+
banned_id: isSet(object.banned_id) ? globalThis.String(object.banned_id) : "",
|
|
16535
|
+
banned_avatar: isSet(object.banned_avatar) ? globalThis.String(object.banned_avatar) : "",
|
|
16536
|
+
banned_name: isSet(object.banned_name) ? globalThis.String(object.banned_name) : "",
|
|
16537
|
+
ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
|
|
16538
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
16539
|
+
};
|
|
16540
|
+
},
|
|
16541
|
+
|
|
16542
|
+
toJSON(message: BannedUser): unknown {
|
|
16543
|
+
const obj: any = {};
|
|
16544
|
+
if (message.channel_id !== "") {
|
|
16545
|
+
obj.channel_id = message.channel_id;
|
|
16546
|
+
}
|
|
16547
|
+
if (message.banned_id !== "") {
|
|
16548
|
+
obj.banned_id = message.banned_id;
|
|
16549
|
+
}
|
|
16550
|
+
if (message.banned_avatar !== "") {
|
|
16551
|
+
obj.banned_avatar = message.banned_avatar;
|
|
16552
|
+
}
|
|
16553
|
+
if (message.banned_name !== "") {
|
|
16554
|
+
obj.banned_name = message.banned_name;
|
|
16555
|
+
}
|
|
16556
|
+
if (message.ban_time !== 0) {
|
|
16557
|
+
obj.ban_time = Math.round(message.ban_time);
|
|
16558
|
+
}
|
|
16559
|
+
if (message.reason !== "") {
|
|
16560
|
+
obj.reason = message.reason;
|
|
16561
|
+
}
|
|
16562
|
+
return obj;
|
|
16563
|
+
},
|
|
16564
|
+
|
|
16565
|
+
create<I extends Exact<DeepPartial<BannedUser>, I>>(base?: I): BannedUser {
|
|
16566
|
+
return BannedUser.fromPartial(base ?? ({} as any));
|
|
16567
|
+
},
|
|
16568
|
+
fromPartial<I extends Exact<DeepPartial<BannedUser>, I>>(object: I): BannedUser {
|
|
16569
|
+
const message = createBaseBannedUser();
|
|
16570
|
+
message.channel_id = object.channel_id ?? "";
|
|
16571
|
+
message.banned_id = object.banned_id ?? "";
|
|
16572
|
+
message.banned_avatar = object.banned_avatar ?? "";
|
|
16573
|
+
message.banned_name = object.banned_name ?? "";
|
|
16574
|
+
message.ban_time = object.ban_time ?? 0;
|
|
16575
|
+
message.reason = object.reason ?? "";
|
|
16576
|
+
return message;
|
|
16577
|
+
},
|
|
16578
|
+
};
|
|
16579
|
+
|
|
16580
|
+
function createBasebannedUserList(): bannedUserList {
|
|
16581
|
+
return { banned_users: [] };
|
|
16582
|
+
}
|
|
16583
|
+
|
|
16584
|
+
export const bannedUserList = {
|
|
16585
|
+
encode(message: bannedUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16586
|
+
for (const v of message.banned_users) {
|
|
16587
|
+
BannedUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
16588
|
+
}
|
|
16589
|
+
return writer;
|
|
16590
|
+
},
|
|
16591
|
+
|
|
16592
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bannedUserList {
|
|
16593
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
16594
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
16595
|
+
const message = createBasebannedUserList();
|
|
16596
|
+
while (reader.pos < end) {
|
|
16597
|
+
const tag = reader.uint32();
|
|
16598
|
+
switch (tag >>> 3) {
|
|
16599
|
+
case 1:
|
|
16600
|
+
if (tag !== 10) {
|
|
16601
|
+
break;
|
|
16602
|
+
}
|
|
16603
|
+
|
|
16604
|
+
message.banned_users.push(BannedUser.decode(reader, reader.uint32()));
|
|
16605
|
+
continue;
|
|
16606
|
+
}
|
|
16607
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16608
|
+
break;
|
|
16609
|
+
}
|
|
16610
|
+
reader.skipType(tag & 7);
|
|
16611
|
+
}
|
|
16612
|
+
return message;
|
|
16613
|
+
},
|
|
16614
|
+
|
|
16615
|
+
fromJSON(object: any): bannedUserList {
|
|
16616
|
+
return {
|
|
16617
|
+
banned_users: globalThis.Array.isArray(object?.banned_users)
|
|
16618
|
+
? object.banned_users.map((e: any) => BannedUser.fromJSON(e))
|
|
16619
|
+
: [],
|
|
16620
|
+
};
|
|
16621
|
+
},
|
|
16622
|
+
|
|
16623
|
+
toJSON(message: bannedUserList): unknown {
|
|
16624
|
+
const obj: any = {};
|
|
16625
|
+
if (message.banned_users?.length) {
|
|
16626
|
+
obj.banned_users = message.banned_users.map((e) => BannedUser.toJSON(e));
|
|
16627
|
+
}
|
|
16628
|
+
return obj;
|
|
16629
|
+
},
|
|
16630
|
+
|
|
16631
|
+
create<I extends Exact<DeepPartial<bannedUserList>, I>>(base?: I): bannedUserList {
|
|
16632
|
+
return bannedUserList.fromPartial(base ?? ({} as any));
|
|
16633
|
+
},
|
|
16634
|
+
fromPartial<I extends Exact<DeepPartial<bannedUserList>, I>>(object: I): bannedUserList {
|
|
16635
|
+
const message = createBasebannedUserList();
|
|
16636
|
+
message.banned_users = object.banned_users?.map((e) => BannedUser.fromPartial(e)) || [];
|
|
16403
16637
|
return message;
|
|
16404
16638
|
},
|
|
16405
16639
|
};
|
|
@@ -1050,9 +1050,9 @@ export interface UpdateClanProfileRequest {
|
|
|
1050
1050
|
/** id clanc */
|
|
1051
1051
|
clan_id: string;
|
|
1052
1052
|
/** nick_name new */
|
|
1053
|
-
nick_name: string;
|
|
1053
|
+
nick_name: string | undefined;
|
|
1054
1054
|
/** avatar */
|
|
1055
|
-
avatar: string;
|
|
1055
|
+
avatar: string | undefined;
|
|
1056
1056
|
}
|
|
1057
1057
|
/** Update Clan Order Request */
|
|
1058
1058
|
export interface UpdateClanOrderRequest {
|
|
@@ -1344,6 +1344,26 @@ export interface BanClanUsersRequest {
|
|
|
1344
1344
|
user_ids: string[];
|
|
1345
1345
|
/** ban time */
|
|
1346
1346
|
ban_time: number;
|
|
1347
|
+
/** The reason */
|
|
1348
|
+
reason: string;
|
|
1349
|
+
}
|
|
1350
|
+
/** list banned user */
|
|
1351
|
+
export interface BannedUser {
|
|
1352
|
+
/** The channel ID to ban */
|
|
1353
|
+
channel_id: string;
|
|
1354
|
+
/** The banned user. */
|
|
1355
|
+
banned_id: string;
|
|
1356
|
+
/** The avatar */
|
|
1357
|
+
banned_avatar: string;
|
|
1358
|
+
/** The name */
|
|
1359
|
+
banned_name: string;
|
|
1360
|
+
/** ban time */
|
|
1361
|
+
ban_time: number;
|
|
1362
|
+
/** The reason */
|
|
1363
|
+
reason: string;
|
|
1364
|
+
}
|
|
1365
|
+
export interface bannedUserList {
|
|
1366
|
+
banned_users: BannedUser[];
|
|
1347
1367
|
}
|
|
1348
1368
|
/** Leave a channel. */
|
|
1349
1369
|
export interface LeaveThreadRequest {
|
|
@@ -11185,24 +11205,150 @@ export declare const BanClanUsersRequest: {
|
|
|
11185
11205
|
channel_id?: string | undefined;
|
|
11186
11206
|
user_ids?: string[] | undefined;
|
|
11187
11207
|
ban_time?: number | undefined;
|
|
11208
|
+
reason?: string | undefined;
|
|
11188
11209
|
} & {
|
|
11189
11210
|
clan_id?: string | undefined;
|
|
11190
11211
|
channel_id?: string | undefined;
|
|
11191
11212
|
user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
11192
11213
|
ban_time?: number | undefined;
|
|
11214
|
+
reason?: string | undefined;
|
|
11193
11215
|
} & { [K_1 in Exclude<keyof I, keyof BanClanUsersRequest>]: never; }>(base?: I | undefined): BanClanUsersRequest;
|
|
11194
11216
|
fromPartial<I_1 extends {
|
|
11195
11217
|
clan_id?: string | undefined;
|
|
11196
11218
|
channel_id?: string | undefined;
|
|
11197
11219
|
user_ids?: string[] | undefined;
|
|
11198
11220
|
ban_time?: number | undefined;
|
|
11221
|
+
reason?: string | undefined;
|
|
11199
11222
|
} & {
|
|
11200
11223
|
clan_id?: string | undefined;
|
|
11201
11224
|
channel_id?: string | undefined;
|
|
11202
11225
|
user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
11203
11226
|
ban_time?: number | undefined;
|
|
11227
|
+
reason?: string | undefined;
|
|
11204
11228
|
} & { [K_3 in Exclude<keyof I_1, keyof BanClanUsersRequest>]: never; }>(object: I_1): BanClanUsersRequest;
|
|
11205
11229
|
};
|
|
11230
|
+
export declare const BannedUser: {
|
|
11231
|
+
encode(message: BannedUser, writer?: _m0.Writer): _m0.Writer;
|
|
11232
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BannedUser;
|
|
11233
|
+
fromJSON(object: any): BannedUser;
|
|
11234
|
+
toJSON(message: BannedUser): unknown;
|
|
11235
|
+
create<I extends {
|
|
11236
|
+
channel_id?: string | undefined;
|
|
11237
|
+
banned_id?: string | undefined;
|
|
11238
|
+
banned_avatar?: string | undefined;
|
|
11239
|
+
banned_name?: string | undefined;
|
|
11240
|
+
ban_time?: number | undefined;
|
|
11241
|
+
reason?: string | undefined;
|
|
11242
|
+
} & {
|
|
11243
|
+
channel_id?: string | undefined;
|
|
11244
|
+
banned_id?: string | undefined;
|
|
11245
|
+
banned_avatar?: string | undefined;
|
|
11246
|
+
banned_name?: string | undefined;
|
|
11247
|
+
ban_time?: number | undefined;
|
|
11248
|
+
reason?: string | undefined;
|
|
11249
|
+
} & { [K in Exclude<keyof I, keyof BannedUser>]: never; }>(base?: I | undefined): BannedUser;
|
|
11250
|
+
fromPartial<I_1 extends {
|
|
11251
|
+
channel_id?: string | undefined;
|
|
11252
|
+
banned_id?: string | undefined;
|
|
11253
|
+
banned_avatar?: string | undefined;
|
|
11254
|
+
banned_name?: string | undefined;
|
|
11255
|
+
ban_time?: number | undefined;
|
|
11256
|
+
reason?: string | undefined;
|
|
11257
|
+
} & {
|
|
11258
|
+
channel_id?: string | undefined;
|
|
11259
|
+
banned_id?: string | undefined;
|
|
11260
|
+
banned_avatar?: string | undefined;
|
|
11261
|
+
banned_name?: string | undefined;
|
|
11262
|
+
ban_time?: number | undefined;
|
|
11263
|
+
reason?: string | undefined;
|
|
11264
|
+
} & { [K_1 in Exclude<keyof I_1, keyof BannedUser>]: never; }>(object: I_1): BannedUser;
|
|
11265
|
+
};
|
|
11266
|
+
export declare const bannedUserList: {
|
|
11267
|
+
encode(message: bannedUserList, writer?: _m0.Writer): _m0.Writer;
|
|
11268
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bannedUserList;
|
|
11269
|
+
fromJSON(object: any): bannedUserList;
|
|
11270
|
+
toJSON(message: bannedUserList): unknown;
|
|
11271
|
+
create<I extends {
|
|
11272
|
+
banned_users?: {
|
|
11273
|
+
channel_id?: string | undefined;
|
|
11274
|
+
banned_id?: string | undefined;
|
|
11275
|
+
banned_avatar?: string | undefined;
|
|
11276
|
+
banned_name?: string | undefined;
|
|
11277
|
+
ban_time?: number | undefined;
|
|
11278
|
+
reason?: string | undefined;
|
|
11279
|
+
}[] | undefined;
|
|
11280
|
+
} & {
|
|
11281
|
+
banned_users?: ({
|
|
11282
|
+
channel_id?: string | undefined;
|
|
11283
|
+
banned_id?: string | undefined;
|
|
11284
|
+
banned_avatar?: string | undefined;
|
|
11285
|
+
banned_name?: string | undefined;
|
|
11286
|
+
ban_time?: number | undefined;
|
|
11287
|
+
reason?: string | undefined;
|
|
11288
|
+
}[] & ({
|
|
11289
|
+
channel_id?: string | undefined;
|
|
11290
|
+
banned_id?: string | undefined;
|
|
11291
|
+
banned_avatar?: string | undefined;
|
|
11292
|
+
banned_name?: string | undefined;
|
|
11293
|
+
ban_time?: number | undefined;
|
|
11294
|
+
reason?: string | undefined;
|
|
11295
|
+
} & {
|
|
11296
|
+
channel_id?: string | undefined;
|
|
11297
|
+
banned_id?: string | undefined;
|
|
11298
|
+
banned_avatar?: string | undefined;
|
|
11299
|
+
banned_name?: string | undefined;
|
|
11300
|
+
ban_time?: number | undefined;
|
|
11301
|
+
reason?: string | undefined;
|
|
11302
|
+
} & { [K in Exclude<keyof I["banned_users"][number], keyof BannedUser>]: never; })[] & { [K_1 in Exclude<keyof I["banned_users"], keyof {
|
|
11303
|
+
channel_id?: string | undefined;
|
|
11304
|
+
banned_id?: string | undefined;
|
|
11305
|
+
banned_avatar?: string | undefined;
|
|
11306
|
+
banned_name?: string | undefined;
|
|
11307
|
+
ban_time?: number | undefined;
|
|
11308
|
+
reason?: string | undefined;
|
|
11309
|
+
}[]>]: never; }) | undefined;
|
|
11310
|
+
} & { [K_2 in Exclude<keyof I, "banned_users">]: never; }>(base?: I | undefined): bannedUserList;
|
|
11311
|
+
fromPartial<I_1 extends {
|
|
11312
|
+
banned_users?: {
|
|
11313
|
+
channel_id?: string | undefined;
|
|
11314
|
+
banned_id?: string | undefined;
|
|
11315
|
+
banned_avatar?: string | undefined;
|
|
11316
|
+
banned_name?: string | undefined;
|
|
11317
|
+
ban_time?: number | undefined;
|
|
11318
|
+
reason?: string | undefined;
|
|
11319
|
+
}[] | undefined;
|
|
11320
|
+
} & {
|
|
11321
|
+
banned_users?: ({
|
|
11322
|
+
channel_id?: string | undefined;
|
|
11323
|
+
banned_id?: string | undefined;
|
|
11324
|
+
banned_avatar?: string | undefined;
|
|
11325
|
+
banned_name?: string | undefined;
|
|
11326
|
+
ban_time?: number | undefined;
|
|
11327
|
+
reason?: string | undefined;
|
|
11328
|
+
}[] & ({
|
|
11329
|
+
channel_id?: string | undefined;
|
|
11330
|
+
banned_id?: string | undefined;
|
|
11331
|
+
banned_avatar?: string | undefined;
|
|
11332
|
+
banned_name?: string | undefined;
|
|
11333
|
+
ban_time?: number | undefined;
|
|
11334
|
+
reason?: string | undefined;
|
|
11335
|
+
} & {
|
|
11336
|
+
channel_id?: string | undefined;
|
|
11337
|
+
banned_id?: string | undefined;
|
|
11338
|
+
banned_avatar?: string | undefined;
|
|
11339
|
+
banned_name?: string | undefined;
|
|
11340
|
+
ban_time?: number | undefined;
|
|
11341
|
+
reason?: string | undefined;
|
|
11342
|
+
} & { [K_3 in Exclude<keyof I_1["banned_users"][number], keyof BannedUser>]: never; })[] & { [K_4 in Exclude<keyof I_1["banned_users"], keyof {
|
|
11343
|
+
channel_id?: string | undefined;
|
|
11344
|
+
banned_id?: string | undefined;
|
|
11345
|
+
banned_avatar?: string | undefined;
|
|
11346
|
+
banned_name?: string | undefined;
|
|
11347
|
+
ban_time?: number | undefined;
|
|
11348
|
+
reason?: string | undefined;
|
|
11349
|
+
}[]>]: never; }) | undefined;
|
|
11350
|
+
} & { [K_5 in Exclude<keyof I_1, "banned_users">]: never; }>(object: I_1): bannedUserList;
|
|
11351
|
+
};
|
|
11206
11352
|
export declare const LeaveThreadRequest: {
|
|
11207
11353
|
encode(message: LeaveThreadRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11208
11354
|
decode(input: _m0.Reader | Uint8Array, length?: number): LeaveThreadRequest;
|
|
@@ -772,6 +772,8 @@ export interface ChannelCreatedEvent {
|
|
|
772
772
|
app_id: string;
|
|
773
773
|
/** clan_name */
|
|
774
774
|
clan_name: string;
|
|
775
|
+
/** channel avatar */
|
|
776
|
+
channel_avatar: string;
|
|
775
777
|
}
|
|
776
778
|
export interface CategoryEvent {
|
|
777
779
|
/** Category creator */
|
|
@@ -973,6 +975,8 @@ export interface UserChannelAdded {
|
|
|
973
975
|
create_time_second: number;
|
|
974
976
|
/** */
|
|
975
977
|
active: number;
|
|
978
|
+
/** member count for GROUP */
|
|
979
|
+
member_count: number;
|
|
976
980
|
}
|
|
977
981
|
/** */
|
|
978
982
|
export interface UserChannelRemoved {
|
|
@@ -1727,6 +1731,7 @@ export declare const Envelope: {
|
|
|
1727
1731
|
status?: number | undefined;
|
|
1728
1732
|
app_id?: string | undefined;
|
|
1729
1733
|
clan_name?: string | undefined;
|
|
1734
|
+
channel_avatar?: string | undefined;
|
|
1730
1735
|
} | undefined;
|
|
1731
1736
|
channel_deleted_event?: {
|
|
1732
1737
|
clan_id?: string | undefined;
|
|
@@ -1887,6 +1892,7 @@ export declare const Envelope: {
|
|
|
1887
1892
|
} | undefined;
|
|
1888
1893
|
create_time_second?: number | undefined;
|
|
1889
1894
|
active?: number | undefined;
|
|
1895
|
+
member_count?: number | undefined;
|
|
1890
1896
|
} | undefined;
|
|
1891
1897
|
user_channel_removed_event?: {
|
|
1892
1898
|
channel_id?: string | undefined;
|
|
@@ -4731,6 +4737,7 @@ export declare const Envelope: {
|
|
|
4731
4737
|
status?: number | undefined;
|
|
4732
4738
|
app_id?: string | undefined;
|
|
4733
4739
|
clan_name?: string | undefined;
|
|
4740
|
+
channel_avatar?: string | undefined;
|
|
4734
4741
|
} & {
|
|
4735
4742
|
clan_id?: string | undefined;
|
|
4736
4743
|
category_id?: string | undefined;
|
|
@@ -4743,6 +4750,7 @@ export declare const Envelope: {
|
|
|
4743
4750
|
status?: number | undefined;
|
|
4744
4751
|
app_id?: string | undefined;
|
|
4745
4752
|
clan_name?: string | undefined;
|
|
4753
|
+
channel_avatar?: string | undefined;
|
|
4746
4754
|
} & { [K_75 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
4747
4755
|
channel_deleted_event?: ({
|
|
4748
4756
|
clan_id?: string | undefined;
|
|
@@ -4952,6 +4960,7 @@ export declare const Envelope: {
|
|
|
4952
4960
|
} | undefined;
|
|
4953
4961
|
create_time_second?: number | undefined;
|
|
4954
4962
|
active?: number | undefined;
|
|
4963
|
+
member_count?: number | undefined;
|
|
4955
4964
|
} & {
|
|
4956
4965
|
channel_desc?: ({
|
|
4957
4966
|
clan_id?: string | undefined;
|
|
@@ -5246,6 +5255,7 @@ export declare const Envelope: {
|
|
|
5246
5255
|
} & { [K_100 in Exclude<keyof I["user_channel_added_event"]["caller"], keyof UserProfileRedis>]: never; }) | undefined;
|
|
5247
5256
|
create_time_second?: number | undefined;
|
|
5248
5257
|
active?: number | undefined;
|
|
5258
|
+
member_count?: number | undefined;
|
|
5249
5259
|
} & { [K_101 in Exclude<keyof I["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
|
|
5250
5260
|
user_channel_removed_event?: ({
|
|
5251
5261
|
channel_id?: string | undefined;
|
|
@@ -11669,6 +11679,7 @@ export declare const Envelope: {
|
|
|
11669
11679
|
status?: number | undefined;
|
|
11670
11680
|
app_id?: string | undefined;
|
|
11671
11681
|
clan_name?: string | undefined;
|
|
11682
|
+
channel_avatar?: string | undefined;
|
|
11672
11683
|
} | undefined;
|
|
11673
11684
|
channel_deleted_event?: {
|
|
11674
11685
|
clan_id?: string | undefined;
|
|
@@ -11829,6 +11840,7 @@ export declare const Envelope: {
|
|
|
11829
11840
|
} | undefined;
|
|
11830
11841
|
create_time_second?: number | undefined;
|
|
11831
11842
|
active?: number | undefined;
|
|
11843
|
+
member_count?: number | undefined;
|
|
11832
11844
|
} | undefined;
|
|
11833
11845
|
user_channel_removed_event?: {
|
|
11834
11846
|
channel_id?: string | undefined;
|
|
@@ -14673,6 +14685,7 @@ export declare const Envelope: {
|
|
|
14673
14685
|
status?: number | undefined;
|
|
14674
14686
|
app_id?: string | undefined;
|
|
14675
14687
|
clan_name?: string | undefined;
|
|
14688
|
+
channel_avatar?: string | undefined;
|
|
14676
14689
|
} & {
|
|
14677
14690
|
clan_id?: string | undefined;
|
|
14678
14691
|
category_id?: string | undefined;
|
|
@@ -14685,6 +14698,7 @@ export declare const Envelope: {
|
|
|
14685
14698
|
status?: number | undefined;
|
|
14686
14699
|
app_id?: string | undefined;
|
|
14687
14700
|
clan_name?: string | undefined;
|
|
14701
|
+
channel_avatar?: string | undefined;
|
|
14688
14702
|
} & { [K_470 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
14689
14703
|
channel_deleted_event?: ({
|
|
14690
14704
|
clan_id?: string | undefined;
|
|
@@ -14894,6 +14908,7 @@ export declare const Envelope: {
|
|
|
14894
14908
|
} | undefined;
|
|
14895
14909
|
create_time_second?: number | undefined;
|
|
14896
14910
|
active?: number | undefined;
|
|
14911
|
+
member_count?: number | undefined;
|
|
14897
14912
|
} & {
|
|
14898
14913
|
channel_desc?: ({
|
|
14899
14914
|
clan_id?: string | undefined;
|
|
@@ -15188,6 +15203,7 @@ export declare const Envelope: {
|
|
|
15188
15203
|
} & { [K_495 in Exclude<keyof I_1["user_channel_added_event"]["caller"], keyof UserProfileRedis>]: never; }) | undefined;
|
|
15189
15204
|
create_time_second?: number | undefined;
|
|
15190
15205
|
active?: number | undefined;
|
|
15206
|
+
member_count?: number | undefined;
|
|
15191
15207
|
} & { [K_496 in Exclude<keyof I_1["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
|
|
15192
15208
|
user_channel_removed_event?: ({
|
|
15193
15209
|
channel_id?: string | undefined;
|
|
@@ -25453,6 +25469,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
25453
25469
|
status?: number | undefined;
|
|
25454
25470
|
app_id?: string | undefined;
|
|
25455
25471
|
clan_name?: string | undefined;
|
|
25472
|
+
channel_avatar?: string | undefined;
|
|
25456
25473
|
} & {
|
|
25457
25474
|
clan_id?: string | undefined;
|
|
25458
25475
|
category_id?: string | undefined;
|
|
@@ -25465,6 +25482,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
25465
25482
|
status?: number | undefined;
|
|
25466
25483
|
app_id?: string | undefined;
|
|
25467
25484
|
clan_name?: string | undefined;
|
|
25485
|
+
channel_avatar?: string | undefined;
|
|
25468
25486
|
} & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
|
|
25469
25487
|
fromPartial<I_1 extends {
|
|
25470
25488
|
clan_id?: string | undefined;
|
|
@@ -25478,6 +25496,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
25478
25496
|
status?: number | undefined;
|
|
25479
25497
|
app_id?: string | undefined;
|
|
25480
25498
|
clan_name?: string | undefined;
|
|
25499
|
+
channel_avatar?: string | undefined;
|
|
25481
25500
|
} & {
|
|
25482
25501
|
clan_id?: string | undefined;
|
|
25483
25502
|
category_id?: string | undefined;
|
|
@@ -25490,6 +25509,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
25490
25509
|
status?: number | undefined;
|
|
25491
25510
|
app_id?: string | undefined;
|
|
25492
25511
|
clan_name?: string | undefined;
|
|
25512
|
+
channel_avatar?: string | undefined;
|
|
25493
25513
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
|
|
25494
25514
|
};
|
|
25495
25515
|
export declare const CategoryEvent: {
|
|
@@ -26713,6 +26733,7 @@ export declare const UserChannelAdded: {
|
|
|
26713
26733
|
} | undefined;
|
|
26714
26734
|
create_time_second?: number | undefined;
|
|
26715
26735
|
active?: number | undefined;
|
|
26736
|
+
member_count?: number | undefined;
|
|
26716
26737
|
} & {
|
|
26717
26738
|
channel_desc?: ({
|
|
26718
26739
|
clan_id?: string | undefined;
|
|
@@ -27007,6 +27028,7 @@ export declare const UserChannelAdded: {
|
|
|
27007
27028
|
} & { [K_18 in Exclude<keyof I["caller"], keyof UserProfileRedis>]: never; }) | undefined;
|
|
27008
27029
|
create_time_second?: number | undefined;
|
|
27009
27030
|
active?: number | undefined;
|
|
27031
|
+
member_count?: number | undefined;
|
|
27010
27032
|
} & { [K_19 in Exclude<keyof I, keyof UserChannelAdded>]: never; }>(base?: I | undefined): UserChannelAdded;
|
|
27011
27033
|
fromPartial<I_1 extends {
|
|
27012
27034
|
channel_desc?: {
|
|
@@ -27114,6 +27136,7 @@ export declare const UserChannelAdded: {
|
|
|
27114
27136
|
} | undefined;
|
|
27115
27137
|
create_time_second?: number | undefined;
|
|
27116
27138
|
active?: number | undefined;
|
|
27139
|
+
member_count?: number | undefined;
|
|
27117
27140
|
} & {
|
|
27118
27141
|
channel_desc?: ({
|
|
27119
27142
|
clan_id?: string | undefined;
|
|
@@ -27408,6 +27431,7 @@ export declare const UserChannelAdded: {
|
|
|
27408
27431
|
} & { [K_38 in Exclude<keyof I_1["caller"], keyof UserProfileRedis>]: never; }) | undefined;
|
|
27409
27432
|
create_time_second?: number | undefined;
|
|
27410
27433
|
active?: number | undefined;
|
|
27434
|
+
member_count?: number | undefined;
|
|
27411
27435
|
} & { [K_39 in Exclude<keyof I_1, keyof UserChannelAdded>]: never; }>(object: I_1): UserChannelAdded;
|
|
27412
27436
|
};
|
|
27413
27437
|
export declare const UserChannelRemoved: {
|
|
@@ -20252,7 +20252,8 @@ function createBaseChannelCreatedEvent() {
|
|
|
20252
20252
|
channel_type: void 0,
|
|
20253
20253
|
status: 0,
|
|
20254
20254
|
app_id: "",
|
|
20255
|
-
clan_name: ""
|
|
20255
|
+
clan_name: "",
|
|
20256
|
+
channel_avatar: ""
|
|
20256
20257
|
};
|
|
20257
20258
|
}
|
|
20258
20259
|
var ChannelCreatedEvent = {
|
|
@@ -20290,6 +20291,9 @@ var ChannelCreatedEvent = {
|
|
|
20290
20291
|
if (message.clan_name !== "") {
|
|
20291
20292
|
writer.uint32(90).string(message.clan_name);
|
|
20292
20293
|
}
|
|
20294
|
+
if (message.channel_avatar !== "") {
|
|
20295
|
+
writer.uint32(98).string(message.channel_avatar);
|
|
20296
|
+
}
|
|
20293
20297
|
return writer;
|
|
20294
20298
|
},
|
|
20295
20299
|
decode(input, length) {
|
|
@@ -20365,6 +20369,12 @@ var ChannelCreatedEvent = {
|
|
|
20365
20369
|
}
|
|
20366
20370
|
message.clan_name = reader.string();
|
|
20367
20371
|
continue;
|
|
20372
|
+
case 12:
|
|
20373
|
+
if (tag !== 98) {
|
|
20374
|
+
break;
|
|
20375
|
+
}
|
|
20376
|
+
message.channel_avatar = reader.string();
|
|
20377
|
+
continue;
|
|
20368
20378
|
}
|
|
20369
20379
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20370
20380
|
break;
|
|
@@ -20385,7 +20395,8 @@ var ChannelCreatedEvent = {
|
|
|
20385
20395
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
20386
20396
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
20387
20397
|
app_id: isSet4(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
20388
|
-
clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : ""
|
|
20398
|
+
clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
20399
|
+
channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
|
|
20389
20400
|
};
|
|
20390
20401
|
},
|
|
20391
20402
|
toJSON(message) {
|
|
@@ -20423,13 +20434,16 @@ var ChannelCreatedEvent = {
|
|
|
20423
20434
|
if (message.clan_name !== "") {
|
|
20424
20435
|
obj.clan_name = message.clan_name;
|
|
20425
20436
|
}
|
|
20437
|
+
if (message.channel_avatar !== "") {
|
|
20438
|
+
obj.channel_avatar = message.channel_avatar;
|
|
20439
|
+
}
|
|
20426
20440
|
return obj;
|
|
20427
20441
|
},
|
|
20428
20442
|
create(base) {
|
|
20429
20443
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
20430
20444
|
},
|
|
20431
20445
|
fromPartial(object) {
|
|
20432
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
20446
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
20433
20447
|
const message = createBaseChannelCreatedEvent();
|
|
20434
20448
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
20435
20449
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -20442,6 +20456,7 @@ var ChannelCreatedEvent = {
|
|
|
20442
20456
|
message.status = (_i = object.status) != null ? _i : 0;
|
|
20443
20457
|
message.app_id = (_j = object.app_id) != null ? _j : "";
|
|
20444
20458
|
message.clan_name = (_k = object.clan_name) != null ? _k : "";
|
|
20459
|
+
message.channel_avatar = (_l = object.channel_avatar) != null ? _l : "";
|
|
20445
20460
|
return message;
|
|
20446
20461
|
}
|
|
20447
20462
|
};
|
|
@@ -22156,7 +22171,8 @@ function createBaseUserChannelAdded() {
|
|
|
22156
22171
|
clan_id: "",
|
|
22157
22172
|
caller: void 0,
|
|
22158
22173
|
create_time_second: 0,
|
|
22159
|
-
active: 0
|
|
22174
|
+
active: 0,
|
|
22175
|
+
member_count: 0
|
|
22160
22176
|
};
|
|
22161
22177
|
}
|
|
22162
22178
|
var UserChannelAdded = {
|
|
@@ -22182,6 +22198,9 @@ var UserChannelAdded = {
|
|
|
22182
22198
|
if (message.active !== 0) {
|
|
22183
22199
|
writer.uint32(56).int32(message.active);
|
|
22184
22200
|
}
|
|
22201
|
+
if (message.member_count !== 0) {
|
|
22202
|
+
writer.uint32(64).int32(message.member_count);
|
|
22203
|
+
}
|
|
22185
22204
|
return writer;
|
|
22186
22205
|
},
|
|
22187
22206
|
decode(input, length) {
|
|
@@ -22233,6 +22252,12 @@ var UserChannelAdded = {
|
|
|
22233
22252
|
}
|
|
22234
22253
|
message.active = reader.int32();
|
|
22235
22254
|
continue;
|
|
22255
|
+
case 8:
|
|
22256
|
+
if (tag !== 64) {
|
|
22257
|
+
break;
|
|
22258
|
+
}
|
|
22259
|
+
message.member_count = reader.int32();
|
|
22260
|
+
continue;
|
|
22236
22261
|
}
|
|
22237
22262
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22238
22263
|
break;
|
|
@@ -22249,7 +22274,8 @@ var UserChannelAdded = {
|
|
|
22249
22274
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22250
22275
|
caller: isSet4(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
|
|
22251
22276
|
create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
22252
|
-
active: isSet4(object.active) ? globalThis.Number(object.active) : 0
|
|
22277
|
+
active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
|
|
22278
|
+
member_count: isSet4(object.member_count) ? globalThis.Number(object.member_count) : 0
|
|
22253
22279
|
};
|
|
22254
22280
|
},
|
|
22255
22281
|
toJSON(message) {
|
|
@@ -22276,13 +22302,16 @@ var UserChannelAdded = {
|
|
|
22276
22302
|
if (message.active !== 0) {
|
|
22277
22303
|
obj.active = Math.round(message.active);
|
|
22278
22304
|
}
|
|
22305
|
+
if (message.member_count !== 0) {
|
|
22306
|
+
obj.member_count = Math.round(message.member_count);
|
|
22307
|
+
}
|
|
22279
22308
|
return obj;
|
|
22280
22309
|
},
|
|
22281
22310
|
create(base) {
|
|
22282
22311
|
return UserChannelAdded.fromPartial(base != null ? base : {});
|
|
22283
22312
|
},
|
|
22284
22313
|
fromPartial(object) {
|
|
22285
|
-
var _a, _b, _c, _d, _e;
|
|
22314
|
+
var _a, _b, _c, _d, _e, _f;
|
|
22286
22315
|
const message = createBaseUserChannelAdded();
|
|
22287
22316
|
message.channel_desc = object.channel_desc !== void 0 && object.channel_desc !== null ? ChannelDescription.fromPartial(object.channel_desc) : void 0;
|
|
22288
22317
|
message.users = ((_a = object.users) == null ? void 0 : _a.map((e) => UserProfileRedis.fromPartial(e))) || [];
|
|
@@ -22291,6 +22320,7 @@ var UserChannelAdded = {
|
|
|
22291
22320
|
message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
|
|
22292
22321
|
message.create_time_second = (_d = object.create_time_second) != null ? _d : 0;
|
|
22293
22322
|
message.active = (_e = object.active) != null ? _e : 0;
|
|
22323
|
+
message.member_count = (_f = object.member_count) != null ? _f : 0;
|
|
22294
22324
|
return message;
|
|
22295
22325
|
}
|
|
22296
22326
|
};
|
|
@@ -20239,7 +20239,8 @@ function createBaseChannelCreatedEvent() {
|
|
|
20239
20239
|
channel_type: void 0,
|
|
20240
20240
|
status: 0,
|
|
20241
20241
|
app_id: "",
|
|
20242
|
-
clan_name: ""
|
|
20242
|
+
clan_name: "",
|
|
20243
|
+
channel_avatar: ""
|
|
20243
20244
|
};
|
|
20244
20245
|
}
|
|
20245
20246
|
var ChannelCreatedEvent = {
|
|
@@ -20277,6 +20278,9 @@ var ChannelCreatedEvent = {
|
|
|
20277
20278
|
if (message.clan_name !== "") {
|
|
20278
20279
|
writer.uint32(90).string(message.clan_name);
|
|
20279
20280
|
}
|
|
20281
|
+
if (message.channel_avatar !== "") {
|
|
20282
|
+
writer.uint32(98).string(message.channel_avatar);
|
|
20283
|
+
}
|
|
20280
20284
|
return writer;
|
|
20281
20285
|
},
|
|
20282
20286
|
decode(input, length) {
|
|
@@ -20352,6 +20356,12 @@ var ChannelCreatedEvent = {
|
|
|
20352
20356
|
}
|
|
20353
20357
|
message.clan_name = reader.string();
|
|
20354
20358
|
continue;
|
|
20359
|
+
case 12:
|
|
20360
|
+
if (tag !== 98) {
|
|
20361
|
+
break;
|
|
20362
|
+
}
|
|
20363
|
+
message.channel_avatar = reader.string();
|
|
20364
|
+
continue;
|
|
20355
20365
|
}
|
|
20356
20366
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20357
20367
|
break;
|
|
@@ -20372,7 +20382,8 @@ var ChannelCreatedEvent = {
|
|
|
20372
20382
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
20373
20383
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
20374
20384
|
app_id: isSet4(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
20375
|
-
clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : ""
|
|
20385
|
+
clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
20386
|
+
channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
|
|
20376
20387
|
};
|
|
20377
20388
|
},
|
|
20378
20389
|
toJSON(message) {
|
|
@@ -20410,13 +20421,16 @@ var ChannelCreatedEvent = {
|
|
|
20410
20421
|
if (message.clan_name !== "") {
|
|
20411
20422
|
obj.clan_name = message.clan_name;
|
|
20412
20423
|
}
|
|
20424
|
+
if (message.channel_avatar !== "") {
|
|
20425
|
+
obj.channel_avatar = message.channel_avatar;
|
|
20426
|
+
}
|
|
20413
20427
|
return obj;
|
|
20414
20428
|
},
|
|
20415
20429
|
create(base) {
|
|
20416
20430
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
20417
20431
|
},
|
|
20418
20432
|
fromPartial(object) {
|
|
20419
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
20433
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
20420
20434
|
const message = createBaseChannelCreatedEvent();
|
|
20421
20435
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
20422
20436
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -20429,6 +20443,7 @@ var ChannelCreatedEvent = {
|
|
|
20429
20443
|
message.status = (_i = object.status) != null ? _i : 0;
|
|
20430
20444
|
message.app_id = (_j = object.app_id) != null ? _j : "";
|
|
20431
20445
|
message.clan_name = (_k = object.clan_name) != null ? _k : "";
|
|
20446
|
+
message.channel_avatar = (_l = object.channel_avatar) != null ? _l : "";
|
|
20432
20447
|
return message;
|
|
20433
20448
|
}
|
|
20434
20449
|
};
|
|
@@ -22143,7 +22158,8 @@ function createBaseUserChannelAdded() {
|
|
|
22143
22158
|
clan_id: "",
|
|
22144
22159
|
caller: void 0,
|
|
22145
22160
|
create_time_second: 0,
|
|
22146
|
-
active: 0
|
|
22161
|
+
active: 0,
|
|
22162
|
+
member_count: 0
|
|
22147
22163
|
};
|
|
22148
22164
|
}
|
|
22149
22165
|
var UserChannelAdded = {
|
|
@@ -22169,6 +22185,9 @@ var UserChannelAdded = {
|
|
|
22169
22185
|
if (message.active !== 0) {
|
|
22170
22186
|
writer.uint32(56).int32(message.active);
|
|
22171
22187
|
}
|
|
22188
|
+
if (message.member_count !== 0) {
|
|
22189
|
+
writer.uint32(64).int32(message.member_count);
|
|
22190
|
+
}
|
|
22172
22191
|
return writer;
|
|
22173
22192
|
},
|
|
22174
22193
|
decode(input, length) {
|
|
@@ -22220,6 +22239,12 @@ var UserChannelAdded = {
|
|
|
22220
22239
|
}
|
|
22221
22240
|
message.active = reader.int32();
|
|
22222
22241
|
continue;
|
|
22242
|
+
case 8:
|
|
22243
|
+
if (tag !== 64) {
|
|
22244
|
+
break;
|
|
22245
|
+
}
|
|
22246
|
+
message.member_count = reader.int32();
|
|
22247
|
+
continue;
|
|
22223
22248
|
}
|
|
22224
22249
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22225
22250
|
break;
|
|
@@ -22236,7 +22261,8 @@ var UserChannelAdded = {
|
|
|
22236
22261
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22237
22262
|
caller: isSet4(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
|
|
22238
22263
|
create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
22239
|
-
active: isSet4(object.active) ? globalThis.Number(object.active) : 0
|
|
22264
|
+
active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
|
|
22265
|
+
member_count: isSet4(object.member_count) ? globalThis.Number(object.member_count) : 0
|
|
22240
22266
|
};
|
|
22241
22267
|
},
|
|
22242
22268
|
toJSON(message) {
|
|
@@ -22263,13 +22289,16 @@ var UserChannelAdded = {
|
|
|
22263
22289
|
if (message.active !== 0) {
|
|
22264
22290
|
obj.active = Math.round(message.active);
|
|
22265
22291
|
}
|
|
22292
|
+
if (message.member_count !== 0) {
|
|
22293
|
+
obj.member_count = Math.round(message.member_count);
|
|
22294
|
+
}
|
|
22266
22295
|
return obj;
|
|
22267
22296
|
},
|
|
22268
22297
|
create(base) {
|
|
22269
22298
|
return UserChannelAdded.fromPartial(base != null ? base : {});
|
|
22270
22299
|
},
|
|
22271
22300
|
fromPartial(object) {
|
|
22272
|
-
var _a, _b, _c, _d, _e;
|
|
22301
|
+
var _a, _b, _c, _d, _e, _f;
|
|
22273
22302
|
const message = createBaseUserChannelAdded();
|
|
22274
22303
|
message.channel_desc = object.channel_desc !== void 0 && object.channel_desc !== null ? ChannelDescription.fromPartial(object.channel_desc) : void 0;
|
|
22275
22304
|
message.users = ((_a = object.users) == null ? void 0 : _a.map((e) => UserProfileRedis.fromPartial(e))) || [];
|
|
@@ -22278,6 +22307,7 @@ var UserChannelAdded = {
|
|
|
22278
22307
|
message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
|
|
22279
22308
|
message.create_time_second = (_d = object.create_time_second) != null ? _d : 0;
|
|
22280
22309
|
message.active = (_e = object.active) != null ? _e : 0;
|
|
22310
|
+
message.member_count = (_f = object.member_count) != null ? _f : 0;
|
|
22281
22311
|
return message;
|
|
22282
22312
|
}
|
|
22283
22313
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.53",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -1156,6 +1156,8 @@ export interface ChannelCreatedEvent {
|
|
|
1156
1156
|
app_id: string;
|
|
1157
1157
|
/** clan_name */
|
|
1158
1158
|
clan_name: string;
|
|
1159
|
+
/** channel avatar */
|
|
1160
|
+
channel_avatar: string;
|
|
1159
1161
|
}
|
|
1160
1162
|
|
|
1161
1163
|
export interface CategoryEvent {
|
|
@@ -1387,6 +1389,8 @@ export interface UserChannelAdded {
|
|
|
1387
1389
|
create_time_second: number;
|
|
1388
1390
|
/** */
|
|
1389
1391
|
active: number;
|
|
1392
|
+
/** member count for GROUP */
|
|
1393
|
+
member_count: number;
|
|
1390
1394
|
}
|
|
1391
1395
|
|
|
1392
1396
|
/** */
|
|
@@ -9124,6 +9128,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
|
|
|
9124
9128
|
status: 0,
|
|
9125
9129
|
app_id: "",
|
|
9126
9130
|
clan_name: "",
|
|
9131
|
+
channel_avatar: "",
|
|
9127
9132
|
};
|
|
9128
9133
|
}
|
|
9129
9134
|
|
|
@@ -9162,6 +9167,9 @@ export const ChannelCreatedEvent = {
|
|
|
9162
9167
|
if (message.clan_name !== "") {
|
|
9163
9168
|
writer.uint32(90).string(message.clan_name);
|
|
9164
9169
|
}
|
|
9170
|
+
if (message.channel_avatar !== "") {
|
|
9171
|
+
writer.uint32(98).string(message.channel_avatar);
|
|
9172
|
+
}
|
|
9165
9173
|
return writer;
|
|
9166
9174
|
},
|
|
9167
9175
|
|
|
@@ -9249,6 +9257,13 @@ export const ChannelCreatedEvent = {
|
|
|
9249
9257
|
|
|
9250
9258
|
message.clan_name = reader.string();
|
|
9251
9259
|
continue;
|
|
9260
|
+
case 12:
|
|
9261
|
+
if (tag !== 98) {
|
|
9262
|
+
break;
|
|
9263
|
+
}
|
|
9264
|
+
|
|
9265
|
+
message.channel_avatar = reader.string();
|
|
9266
|
+
continue;
|
|
9252
9267
|
}
|
|
9253
9268
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9254
9269
|
break;
|
|
@@ -9271,6 +9286,7 @@ export const ChannelCreatedEvent = {
|
|
|
9271
9286
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
9272
9287
|
app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
9273
9288
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
9289
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
9274
9290
|
};
|
|
9275
9291
|
},
|
|
9276
9292
|
|
|
@@ -9309,6 +9325,9 @@ export const ChannelCreatedEvent = {
|
|
|
9309
9325
|
if (message.clan_name !== "") {
|
|
9310
9326
|
obj.clan_name = message.clan_name;
|
|
9311
9327
|
}
|
|
9328
|
+
if (message.channel_avatar !== "") {
|
|
9329
|
+
obj.channel_avatar = message.channel_avatar;
|
|
9330
|
+
}
|
|
9312
9331
|
return obj;
|
|
9313
9332
|
},
|
|
9314
9333
|
|
|
@@ -9328,6 +9347,7 @@ export const ChannelCreatedEvent = {
|
|
|
9328
9347
|
message.status = object.status ?? 0;
|
|
9329
9348
|
message.app_id = object.app_id ?? "";
|
|
9330
9349
|
message.clan_name = object.clan_name ?? "";
|
|
9350
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
9331
9351
|
return message;
|
|
9332
9352
|
},
|
|
9333
9353
|
};
|
|
@@ -11206,6 +11226,7 @@ function createBaseUserChannelAdded(): UserChannelAdded {
|
|
|
11206
11226
|
caller: undefined,
|
|
11207
11227
|
create_time_second: 0,
|
|
11208
11228
|
active: 0,
|
|
11229
|
+
member_count: 0,
|
|
11209
11230
|
};
|
|
11210
11231
|
}
|
|
11211
11232
|
|
|
@@ -11232,6 +11253,9 @@ export const UserChannelAdded = {
|
|
|
11232
11253
|
if (message.active !== 0) {
|
|
11233
11254
|
writer.uint32(56).int32(message.active);
|
|
11234
11255
|
}
|
|
11256
|
+
if (message.member_count !== 0) {
|
|
11257
|
+
writer.uint32(64).int32(message.member_count);
|
|
11258
|
+
}
|
|
11235
11259
|
return writer;
|
|
11236
11260
|
},
|
|
11237
11261
|
|
|
@@ -11291,6 +11315,13 @@ export const UserChannelAdded = {
|
|
|
11291
11315
|
|
|
11292
11316
|
message.active = reader.int32();
|
|
11293
11317
|
continue;
|
|
11318
|
+
case 8:
|
|
11319
|
+
if (tag !== 64) {
|
|
11320
|
+
break;
|
|
11321
|
+
}
|
|
11322
|
+
|
|
11323
|
+
message.member_count = reader.int32();
|
|
11324
|
+
continue;
|
|
11294
11325
|
}
|
|
11295
11326
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11296
11327
|
break;
|
|
@@ -11309,6 +11340,7 @@ export const UserChannelAdded = {
|
|
|
11309
11340
|
caller: isSet(object.caller) ? UserProfileRedis.fromJSON(object.caller) : undefined,
|
|
11310
11341
|
create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
11311
11342
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
11343
|
+
member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
|
|
11312
11344
|
};
|
|
11313
11345
|
},
|
|
11314
11346
|
|
|
@@ -11335,6 +11367,9 @@ export const UserChannelAdded = {
|
|
|
11335
11367
|
if (message.active !== 0) {
|
|
11336
11368
|
obj.active = Math.round(message.active);
|
|
11337
11369
|
}
|
|
11370
|
+
if (message.member_count !== 0) {
|
|
11371
|
+
obj.member_count = Math.round(message.member_count);
|
|
11372
|
+
}
|
|
11338
11373
|
return obj;
|
|
11339
11374
|
},
|
|
11340
11375
|
|
|
@@ -11354,6 +11389,7 @@ export const UserChannelAdded = {
|
|
|
11354
11389
|
: undefined;
|
|
11355
11390
|
message.create_time_second = object.create_time_second ?? 0;
|
|
11356
11391
|
message.active = object.active ?? 0;
|
|
11392
|
+
message.member_count = object.member_count ?? 0;
|
|
11357
11393
|
return message;
|
|
11358
11394
|
},
|
|
11359
11395
|
};
|