mezon-js-protobuf 1.5.44 → 1.5.45
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.
|
@@ -594,6 +594,8 @@ export interface ChannelCreatedEvent {
|
|
|
594
594
|
channel_type: number | undefined;
|
|
595
595
|
/** status */
|
|
596
596
|
status: number;
|
|
597
|
+
/** is parent public */
|
|
598
|
+
is_parent_public: boolean;
|
|
597
599
|
}
|
|
598
600
|
export interface ChannelDeletedEvent {
|
|
599
601
|
/** clan id */
|
|
@@ -716,6 +718,10 @@ export interface UserChannelAdded {
|
|
|
716
718
|
channel_type: number;
|
|
717
719
|
/** is public */
|
|
718
720
|
is_public: boolean;
|
|
721
|
+
/** the parent_id */
|
|
722
|
+
parent_id: string;
|
|
723
|
+
/** parent public */
|
|
724
|
+
is_parent_public: boolean;
|
|
719
725
|
}
|
|
720
726
|
/** */
|
|
721
727
|
export interface UserChannelRemoved {
|
|
@@ -1210,6 +1216,7 @@ export declare const Envelope: {
|
|
|
1210
1216
|
channel_private?: number | undefined;
|
|
1211
1217
|
channel_type?: number | undefined;
|
|
1212
1218
|
status?: number | undefined;
|
|
1219
|
+
is_parent_public?: boolean | undefined;
|
|
1213
1220
|
} | undefined;
|
|
1214
1221
|
channel_deleted_event?: {
|
|
1215
1222
|
clan_id?: string | undefined;
|
|
@@ -1259,6 +1266,8 @@ export declare const Envelope: {
|
|
|
1259
1266
|
clan_id?: string | undefined;
|
|
1260
1267
|
channel_type?: number | undefined;
|
|
1261
1268
|
is_public?: boolean | undefined;
|
|
1269
|
+
parent_id?: string | undefined;
|
|
1270
|
+
is_parent_public?: boolean | undefined;
|
|
1262
1271
|
} | undefined;
|
|
1263
1272
|
user_channel_removed_event?: {
|
|
1264
1273
|
channel_id?: string | undefined;
|
|
@@ -2506,6 +2515,7 @@ export declare const Envelope: {
|
|
|
2506
2515
|
channel_private?: number | undefined;
|
|
2507
2516
|
channel_type?: number | undefined;
|
|
2508
2517
|
status?: number | undefined;
|
|
2518
|
+
is_parent_public?: boolean | undefined;
|
|
2509
2519
|
} & {
|
|
2510
2520
|
clan_id?: string | undefined;
|
|
2511
2521
|
category_id?: string | undefined;
|
|
@@ -2516,6 +2526,7 @@ export declare const Envelope: {
|
|
|
2516
2526
|
channel_private?: number | undefined;
|
|
2517
2527
|
channel_type?: number | undefined;
|
|
2518
2528
|
status?: number | undefined;
|
|
2529
|
+
is_parent_public?: boolean | undefined;
|
|
2519
2530
|
} & { [K_65 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
2520
2531
|
channel_deleted_event?: ({
|
|
2521
2532
|
clan_id?: string | undefined;
|
|
@@ -2598,6 +2609,8 @@ export declare const Envelope: {
|
|
|
2598
2609
|
clan_id?: string | undefined;
|
|
2599
2610
|
channel_type?: number | undefined;
|
|
2600
2611
|
is_public?: boolean | undefined;
|
|
2612
|
+
parent_id?: string | undefined;
|
|
2613
|
+
is_parent_public?: boolean | undefined;
|
|
2601
2614
|
} & {
|
|
2602
2615
|
channel_id?: string | undefined;
|
|
2603
2616
|
users?: ({
|
|
@@ -2621,6 +2634,8 @@ export declare const Envelope: {
|
|
|
2621
2634
|
clan_id?: string | undefined;
|
|
2622
2635
|
channel_type?: number | undefined;
|
|
2623
2636
|
is_public?: boolean | undefined;
|
|
2637
|
+
parent_id?: string | undefined;
|
|
2638
|
+
is_parent_public?: boolean | undefined;
|
|
2624
2639
|
} & { [K_72 in Exclude<keyof I["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
|
|
2625
2640
|
user_channel_removed_event?: ({
|
|
2626
2641
|
channel_id?: string | undefined;
|
|
@@ -3968,6 +3983,7 @@ export declare const Envelope: {
|
|
|
3968
3983
|
channel_private?: number | undefined;
|
|
3969
3984
|
channel_type?: number | undefined;
|
|
3970
3985
|
status?: number | undefined;
|
|
3986
|
+
is_parent_public?: boolean | undefined;
|
|
3971
3987
|
} | undefined;
|
|
3972
3988
|
channel_deleted_event?: {
|
|
3973
3989
|
clan_id?: string | undefined;
|
|
@@ -4017,6 +4033,8 @@ export declare const Envelope: {
|
|
|
4017
4033
|
clan_id?: string | undefined;
|
|
4018
4034
|
channel_type?: number | undefined;
|
|
4019
4035
|
is_public?: boolean | undefined;
|
|
4036
|
+
parent_id?: string | undefined;
|
|
4037
|
+
is_parent_public?: boolean | undefined;
|
|
4020
4038
|
} | undefined;
|
|
4021
4039
|
user_channel_removed_event?: {
|
|
4022
4040
|
channel_id?: string | undefined;
|
|
@@ -5264,6 +5282,7 @@ export declare const Envelope: {
|
|
|
5264
5282
|
channel_private?: number | undefined;
|
|
5265
5283
|
channel_type?: number | undefined;
|
|
5266
5284
|
status?: number | undefined;
|
|
5285
|
+
is_parent_public?: boolean | undefined;
|
|
5267
5286
|
} & {
|
|
5268
5287
|
clan_id?: string | undefined;
|
|
5269
5288
|
category_id?: string | undefined;
|
|
@@ -5274,6 +5293,7 @@ export declare const Envelope: {
|
|
|
5274
5293
|
channel_private?: number | undefined;
|
|
5275
5294
|
channel_type?: number | undefined;
|
|
5276
5295
|
status?: number | undefined;
|
|
5296
|
+
is_parent_public?: boolean | undefined;
|
|
5277
5297
|
} & { [K_199 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
5278
5298
|
channel_deleted_event?: ({
|
|
5279
5299
|
clan_id?: string | undefined;
|
|
@@ -5356,6 +5376,8 @@ export declare const Envelope: {
|
|
|
5356
5376
|
clan_id?: string | undefined;
|
|
5357
5377
|
channel_type?: number | undefined;
|
|
5358
5378
|
is_public?: boolean | undefined;
|
|
5379
|
+
parent_id?: string | undefined;
|
|
5380
|
+
is_parent_public?: boolean | undefined;
|
|
5359
5381
|
} & {
|
|
5360
5382
|
channel_id?: string | undefined;
|
|
5361
5383
|
users?: ({
|
|
@@ -5379,6 +5401,8 @@ export declare const Envelope: {
|
|
|
5379
5401
|
clan_id?: string | undefined;
|
|
5380
5402
|
channel_type?: number | undefined;
|
|
5381
5403
|
is_public?: boolean | undefined;
|
|
5404
|
+
parent_id?: string | undefined;
|
|
5405
|
+
is_parent_public?: boolean | undefined;
|
|
5382
5406
|
} & { [K_206 in Exclude<keyof I_1["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
|
|
5383
5407
|
user_channel_removed_event?: ({
|
|
5384
5408
|
channel_id?: string | undefined;
|
|
@@ -9985,6 +10009,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
9985
10009
|
channel_private?: number | undefined;
|
|
9986
10010
|
channel_type?: number | undefined;
|
|
9987
10011
|
status?: number | undefined;
|
|
10012
|
+
is_parent_public?: boolean | undefined;
|
|
9988
10013
|
} & {
|
|
9989
10014
|
clan_id?: string | undefined;
|
|
9990
10015
|
category_id?: string | undefined;
|
|
@@ -9995,6 +10020,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
9995
10020
|
channel_private?: number | undefined;
|
|
9996
10021
|
channel_type?: number | undefined;
|
|
9997
10022
|
status?: number | undefined;
|
|
10023
|
+
is_parent_public?: boolean | undefined;
|
|
9998
10024
|
} & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
|
|
9999
10025
|
fromPartial<I_1 extends {
|
|
10000
10026
|
clan_id?: string | undefined;
|
|
@@ -10006,6 +10032,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
10006
10032
|
channel_private?: number | undefined;
|
|
10007
10033
|
channel_type?: number | undefined;
|
|
10008
10034
|
status?: number | undefined;
|
|
10035
|
+
is_parent_public?: boolean | undefined;
|
|
10009
10036
|
} & {
|
|
10010
10037
|
clan_id?: string | undefined;
|
|
10011
10038
|
category_id?: string | undefined;
|
|
@@ -10016,6 +10043,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
10016
10043
|
channel_private?: number | undefined;
|
|
10017
10044
|
channel_type?: number | undefined;
|
|
10018
10045
|
status?: number | undefined;
|
|
10046
|
+
is_parent_public?: boolean | undefined;
|
|
10019
10047
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
|
|
10020
10048
|
};
|
|
10021
10049
|
export declare const ChannelDeletedEvent: {
|
|
@@ -10530,6 +10558,8 @@ export declare const UserChannelAdded: {
|
|
|
10530
10558
|
clan_id?: string | undefined;
|
|
10531
10559
|
channel_type?: number | undefined;
|
|
10532
10560
|
is_public?: boolean | undefined;
|
|
10561
|
+
parent_id?: string | undefined;
|
|
10562
|
+
is_parent_public?: boolean | undefined;
|
|
10533
10563
|
} & {
|
|
10534
10564
|
channel_id?: string | undefined;
|
|
10535
10565
|
users?: ({
|
|
@@ -10553,6 +10583,8 @@ export declare const UserChannelAdded: {
|
|
|
10553
10583
|
clan_id?: string | undefined;
|
|
10554
10584
|
channel_type?: number | undefined;
|
|
10555
10585
|
is_public?: boolean | undefined;
|
|
10586
|
+
parent_id?: string | undefined;
|
|
10587
|
+
is_parent_public?: boolean | undefined;
|
|
10556
10588
|
} & { [K_2 in Exclude<keyof I, keyof UserChannelAdded>]: never; }>(base?: I | undefined): UserChannelAdded;
|
|
10557
10589
|
fromPartial<I_1 extends {
|
|
10558
10590
|
channel_id?: string | undefined;
|
|
@@ -10565,6 +10597,8 @@ export declare const UserChannelAdded: {
|
|
|
10565
10597
|
clan_id?: string | undefined;
|
|
10566
10598
|
channel_type?: number | undefined;
|
|
10567
10599
|
is_public?: boolean | undefined;
|
|
10600
|
+
parent_id?: string | undefined;
|
|
10601
|
+
is_parent_public?: boolean | undefined;
|
|
10568
10602
|
} & {
|
|
10569
10603
|
channel_id?: string | undefined;
|
|
10570
10604
|
users?: ({
|
|
@@ -10588,6 +10622,8 @@ export declare const UserChannelAdded: {
|
|
|
10588
10622
|
clan_id?: string | undefined;
|
|
10589
10623
|
channel_type?: number | undefined;
|
|
10590
10624
|
is_public?: boolean | undefined;
|
|
10625
|
+
parent_id?: string | undefined;
|
|
10626
|
+
is_parent_public?: boolean | undefined;
|
|
10591
10627
|
} & { [K_5 in Exclude<keyof I_1, keyof UserChannelAdded>]: never; }>(object: I_1): UserChannelAdded;
|
|
10592
10628
|
};
|
|
10593
10629
|
export declare const UserChannelRemoved: {
|
|
@@ -8554,7 +8554,8 @@ function createBaseChannelCreatedEvent() {
|
|
|
8554
8554
|
channel_label: "",
|
|
8555
8555
|
channel_private: 0,
|
|
8556
8556
|
channel_type: void 0,
|
|
8557
|
-
status: 0
|
|
8557
|
+
status: 0,
|
|
8558
|
+
is_parent_public: false
|
|
8558
8559
|
};
|
|
8559
8560
|
}
|
|
8560
8561
|
var ChannelCreatedEvent = {
|
|
@@ -8586,6 +8587,9 @@ var ChannelCreatedEvent = {
|
|
|
8586
8587
|
if (message.status !== 0) {
|
|
8587
8588
|
writer.uint32(72).int32(message.status);
|
|
8588
8589
|
}
|
|
8590
|
+
if (message.is_parent_public === true) {
|
|
8591
|
+
writer.uint32(80).bool(message.is_parent_public);
|
|
8592
|
+
}
|
|
8589
8593
|
return writer;
|
|
8590
8594
|
},
|
|
8591
8595
|
decode(input, length) {
|
|
@@ -8622,6 +8626,9 @@ var ChannelCreatedEvent = {
|
|
|
8622
8626
|
case 9:
|
|
8623
8627
|
message.status = reader.int32();
|
|
8624
8628
|
break;
|
|
8629
|
+
case 10:
|
|
8630
|
+
message.is_parent_public = reader.bool();
|
|
8631
|
+
break;
|
|
8625
8632
|
default:
|
|
8626
8633
|
reader.skipType(tag & 7);
|
|
8627
8634
|
break;
|
|
@@ -8639,7 +8646,8 @@ var ChannelCreatedEvent = {
|
|
|
8639
8646
|
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
8640
8647
|
channel_private: isSet4(object.channel_private) ? Number(object.channel_private) : 0,
|
|
8641
8648
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
8642
|
-
status: isSet4(object.status) ? Number(object.status) : 0
|
|
8649
|
+
status: isSet4(object.status) ? Number(object.status) : 0,
|
|
8650
|
+
is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
|
|
8643
8651
|
};
|
|
8644
8652
|
},
|
|
8645
8653
|
toJSON(message) {
|
|
@@ -8653,13 +8661,14 @@ var ChannelCreatedEvent = {
|
|
|
8653
8661
|
message.channel_private !== void 0 && (obj.channel_private = Math.round(message.channel_private));
|
|
8654
8662
|
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
8655
8663
|
message.status !== void 0 && (obj.status = Math.round(message.status));
|
|
8664
|
+
message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
|
|
8656
8665
|
return obj;
|
|
8657
8666
|
},
|
|
8658
8667
|
create(base) {
|
|
8659
8668
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
8660
8669
|
},
|
|
8661
8670
|
fromPartial(object) {
|
|
8662
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
8671
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
8663
8672
|
const message = createBaseChannelCreatedEvent();
|
|
8664
8673
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
8665
8674
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -8670,6 +8679,7 @@ var ChannelCreatedEvent = {
|
|
|
8670
8679
|
message.channel_private = (_g = object.channel_private) != null ? _g : 0;
|
|
8671
8680
|
message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
|
|
8672
8681
|
message.status = (_i = object.status) != null ? _i : 0;
|
|
8682
|
+
message.is_parent_public = (_j = object.is_parent_public) != null ? _j : false;
|
|
8673
8683
|
return message;
|
|
8674
8684
|
}
|
|
8675
8685
|
};
|
|
@@ -9433,7 +9443,16 @@ var AddUsers = {
|
|
|
9433
9443
|
}
|
|
9434
9444
|
};
|
|
9435
9445
|
function createBaseUserChannelAdded() {
|
|
9436
|
-
return {
|
|
9446
|
+
return {
|
|
9447
|
+
channel_id: "",
|
|
9448
|
+
users: [],
|
|
9449
|
+
status: "",
|
|
9450
|
+
clan_id: "",
|
|
9451
|
+
channel_type: 0,
|
|
9452
|
+
is_public: false,
|
|
9453
|
+
parent_id: "",
|
|
9454
|
+
is_parent_public: false
|
|
9455
|
+
};
|
|
9437
9456
|
}
|
|
9438
9457
|
var UserChannelAdded = {
|
|
9439
9458
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -9455,6 +9474,12 @@ var UserChannelAdded = {
|
|
|
9455
9474
|
if (message.is_public === true) {
|
|
9456
9475
|
writer.uint32(48).bool(message.is_public);
|
|
9457
9476
|
}
|
|
9477
|
+
if (message.parent_id !== "") {
|
|
9478
|
+
writer.uint32(58).string(message.parent_id);
|
|
9479
|
+
}
|
|
9480
|
+
if (message.is_parent_public === true) {
|
|
9481
|
+
writer.uint32(64).bool(message.is_parent_public);
|
|
9482
|
+
}
|
|
9458
9483
|
return writer;
|
|
9459
9484
|
},
|
|
9460
9485
|
decode(input, length) {
|
|
@@ -9482,6 +9507,12 @@ var UserChannelAdded = {
|
|
|
9482
9507
|
case 6:
|
|
9483
9508
|
message.is_public = reader.bool();
|
|
9484
9509
|
break;
|
|
9510
|
+
case 7:
|
|
9511
|
+
message.parent_id = reader.string();
|
|
9512
|
+
break;
|
|
9513
|
+
case 8:
|
|
9514
|
+
message.is_parent_public = reader.bool();
|
|
9515
|
+
break;
|
|
9485
9516
|
default:
|
|
9486
9517
|
reader.skipType(tag & 7);
|
|
9487
9518
|
break;
|
|
@@ -9496,7 +9527,9 @@ var UserChannelAdded = {
|
|
|
9496
9527
|
status: isSet4(object.status) ? String(object.status) : "",
|
|
9497
9528
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
9498
9529
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
|
|
9499
|
-
is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
|
|
9530
|
+
is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false,
|
|
9531
|
+
parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
|
|
9532
|
+
is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
|
|
9500
9533
|
};
|
|
9501
9534
|
},
|
|
9502
9535
|
toJSON(message) {
|
|
@@ -9511,13 +9544,15 @@ var UserChannelAdded = {
|
|
|
9511
9544
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
9512
9545
|
message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
|
|
9513
9546
|
message.is_public !== void 0 && (obj.is_public = message.is_public);
|
|
9547
|
+
message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
|
|
9548
|
+
message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
|
|
9514
9549
|
return obj;
|
|
9515
9550
|
},
|
|
9516
9551
|
create(base) {
|
|
9517
9552
|
return UserChannelAdded.fromPartial(base != null ? base : {});
|
|
9518
9553
|
},
|
|
9519
9554
|
fromPartial(object) {
|
|
9520
|
-
var _a, _b, _c, _d, _e, _f;
|
|
9555
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9521
9556
|
const message = createBaseUserChannelAdded();
|
|
9522
9557
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
9523
9558
|
message.users = ((_b = object.users) == null ? void 0 : _b.map((e) => AddUsers.fromPartial(e))) || [];
|
|
@@ -9525,6 +9560,8 @@ var UserChannelAdded = {
|
|
|
9525
9560
|
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
9526
9561
|
message.channel_type = (_e = object.channel_type) != null ? _e : 0;
|
|
9527
9562
|
message.is_public = (_f = object.is_public) != null ? _f : false;
|
|
9563
|
+
message.parent_id = (_g = object.parent_id) != null ? _g : "";
|
|
9564
|
+
message.is_parent_public = (_h = object.is_parent_public) != null ? _h : false;
|
|
9528
9565
|
return message;
|
|
9529
9566
|
}
|
|
9530
9567
|
};
|
|
@@ -8541,7 +8541,8 @@ function createBaseChannelCreatedEvent() {
|
|
|
8541
8541
|
channel_label: "",
|
|
8542
8542
|
channel_private: 0,
|
|
8543
8543
|
channel_type: void 0,
|
|
8544
|
-
status: 0
|
|
8544
|
+
status: 0,
|
|
8545
|
+
is_parent_public: false
|
|
8545
8546
|
};
|
|
8546
8547
|
}
|
|
8547
8548
|
var ChannelCreatedEvent = {
|
|
@@ -8573,6 +8574,9 @@ var ChannelCreatedEvent = {
|
|
|
8573
8574
|
if (message.status !== 0) {
|
|
8574
8575
|
writer.uint32(72).int32(message.status);
|
|
8575
8576
|
}
|
|
8577
|
+
if (message.is_parent_public === true) {
|
|
8578
|
+
writer.uint32(80).bool(message.is_parent_public);
|
|
8579
|
+
}
|
|
8576
8580
|
return writer;
|
|
8577
8581
|
},
|
|
8578
8582
|
decode(input, length) {
|
|
@@ -8609,6 +8613,9 @@ var ChannelCreatedEvent = {
|
|
|
8609
8613
|
case 9:
|
|
8610
8614
|
message.status = reader.int32();
|
|
8611
8615
|
break;
|
|
8616
|
+
case 10:
|
|
8617
|
+
message.is_parent_public = reader.bool();
|
|
8618
|
+
break;
|
|
8612
8619
|
default:
|
|
8613
8620
|
reader.skipType(tag & 7);
|
|
8614
8621
|
break;
|
|
@@ -8626,7 +8633,8 @@ var ChannelCreatedEvent = {
|
|
|
8626
8633
|
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
8627
8634
|
channel_private: isSet4(object.channel_private) ? Number(object.channel_private) : 0,
|
|
8628
8635
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
8629
|
-
status: isSet4(object.status) ? Number(object.status) : 0
|
|
8636
|
+
status: isSet4(object.status) ? Number(object.status) : 0,
|
|
8637
|
+
is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
|
|
8630
8638
|
};
|
|
8631
8639
|
},
|
|
8632
8640
|
toJSON(message) {
|
|
@@ -8640,13 +8648,14 @@ var ChannelCreatedEvent = {
|
|
|
8640
8648
|
message.channel_private !== void 0 && (obj.channel_private = Math.round(message.channel_private));
|
|
8641
8649
|
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
8642
8650
|
message.status !== void 0 && (obj.status = Math.round(message.status));
|
|
8651
|
+
message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
|
|
8643
8652
|
return obj;
|
|
8644
8653
|
},
|
|
8645
8654
|
create(base) {
|
|
8646
8655
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
8647
8656
|
},
|
|
8648
8657
|
fromPartial(object) {
|
|
8649
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
8658
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
8650
8659
|
const message = createBaseChannelCreatedEvent();
|
|
8651
8660
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
8652
8661
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -8657,6 +8666,7 @@ var ChannelCreatedEvent = {
|
|
|
8657
8666
|
message.channel_private = (_g = object.channel_private) != null ? _g : 0;
|
|
8658
8667
|
message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
|
|
8659
8668
|
message.status = (_i = object.status) != null ? _i : 0;
|
|
8669
|
+
message.is_parent_public = (_j = object.is_parent_public) != null ? _j : false;
|
|
8660
8670
|
return message;
|
|
8661
8671
|
}
|
|
8662
8672
|
};
|
|
@@ -9420,7 +9430,16 @@ var AddUsers = {
|
|
|
9420
9430
|
}
|
|
9421
9431
|
};
|
|
9422
9432
|
function createBaseUserChannelAdded() {
|
|
9423
|
-
return {
|
|
9433
|
+
return {
|
|
9434
|
+
channel_id: "",
|
|
9435
|
+
users: [],
|
|
9436
|
+
status: "",
|
|
9437
|
+
clan_id: "",
|
|
9438
|
+
channel_type: 0,
|
|
9439
|
+
is_public: false,
|
|
9440
|
+
parent_id: "",
|
|
9441
|
+
is_parent_public: false
|
|
9442
|
+
};
|
|
9424
9443
|
}
|
|
9425
9444
|
var UserChannelAdded = {
|
|
9426
9445
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -9442,6 +9461,12 @@ var UserChannelAdded = {
|
|
|
9442
9461
|
if (message.is_public === true) {
|
|
9443
9462
|
writer.uint32(48).bool(message.is_public);
|
|
9444
9463
|
}
|
|
9464
|
+
if (message.parent_id !== "") {
|
|
9465
|
+
writer.uint32(58).string(message.parent_id);
|
|
9466
|
+
}
|
|
9467
|
+
if (message.is_parent_public === true) {
|
|
9468
|
+
writer.uint32(64).bool(message.is_parent_public);
|
|
9469
|
+
}
|
|
9445
9470
|
return writer;
|
|
9446
9471
|
},
|
|
9447
9472
|
decode(input, length) {
|
|
@@ -9469,6 +9494,12 @@ var UserChannelAdded = {
|
|
|
9469
9494
|
case 6:
|
|
9470
9495
|
message.is_public = reader.bool();
|
|
9471
9496
|
break;
|
|
9497
|
+
case 7:
|
|
9498
|
+
message.parent_id = reader.string();
|
|
9499
|
+
break;
|
|
9500
|
+
case 8:
|
|
9501
|
+
message.is_parent_public = reader.bool();
|
|
9502
|
+
break;
|
|
9472
9503
|
default:
|
|
9473
9504
|
reader.skipType(tag & 7);
|
|
9474
9505
|
break;
|
|
@@ -9483,7 +9514,9 @@ var UserChannelAdded = {
|
|
|
9483
9514
|
status: isSet4(object.status) ? String(object.status) : "",
|
|
9484
9515
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
9485
9516
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
|
|
9486
|
-
is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
|
|
9517
|
+
is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false,
|
|
9518
|
+
parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
|
|
9519
|
+
is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
|
|
9487
9520
|
};
|
|
9488
9521
|
},
|
|
9489
9522
|
toJSON(message) {
|
|
@@ -9498,13 +9531,15 @@ var UserChannelAdded = {
|
|
|
9498
9531
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
9499
9532
|
message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
|
|
9500
9533
|
message.is_public !== void 0 && (obj.is_public = message.is_public);
|
|
9534
|
+
message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
|
|
9535
|
+
message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
|
|
9501
9536
|
return obj;
|
|
9502
9537
|
},
|
|
9503
9538
|
create(base) {
|
|
9504
9539
|
return UserChannelAdded.fromPartial(base != null ? base : {});
|
|
9505
9540
|
},
|
|
9506
9541
|
fromPartial(object) {
|
|
9507
|
-
var _a, _b, _c, _d, _e, _f;
|
|
9542
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9508
9543
|
const message = createBaseUserChannelAdded();
|
|
9509
9544
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
9510
9545
|
message.users = ((_b = object.users) == null ? void 0 : _b.map((e) => AddUsers.fromPartial(e))) || [];
|
|
@@ -9512,6 +9547,8 @@ var UserChannelAdded = {
|
|
|
9512
9547
|
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
9513
9548
|
message.channel_type = (_e = object.channel_type) != null ? _e : 0;
|
|
9514
9549
|
message.is_public = (_f = object.is_public) != null ? _f : false;
|
|
9550
|
+
message.parent_id = (_g = object.parent_id) != null ? _g : "";
|
|
9551
|
+
message.is_parent_public = (_h = object.is_parent_public) != null ? _h : false;
|
|
9515
9552
|
return message;
|
|
9516
9553
|
}
|
|
9517
9554
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.45",
|
|
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
|
@@ -835,6 +835,8 @@ export interface ChannelCreatedEvent {
|
|
|
835
835
|
| undefined;
|
|
836
836
|
/** status */
|
|
837
837
|
status: number;
|
|
838
|
+
/** is parent public */
|
|
839
|
+
is_parent_public: boolean;
|
|
838
840
|
}
|
|
839
841
|
|
|
840
842
|
export interface ChannelDeletedEvent {
|
|
@@ -976,6 +978,10 @@ export interface UserChannelAdded {
|
|
|
976
978
|
channel_type: number;
|
|
977
979
|
/** is public */
|
|
978
980
|
is_public: boolean;
|
|
981
|
+
/** the parent_id */
|
|
982
|
+
parent_id: string;
|
|
983
|
+
/** parent public */
|
|
984
|
+
is_parent_public: boolean;
|
|
979
985
|
}
|
|
980
986
|
|
|
981
987
|
/** */
|
|
@@ -5566,6 +5572,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
|
|
|
5566
5572
|
channel_private: 0,
|
|
5567
5573
|
channel_type: undefined,
|
|
5568
5574
|
status: 0,
|
|
5575
|
+
is_parent_public: false,
|
|
5569
5576
|
};
|
|
5570
5577
|
}
|
|
5571
5578
|
|
|
@@ -5598,6 +5605,9 @@ export const ChannelCreatedEvent = {
|
|
|
5598
5605
|
if (message.status !== 0) {
|
|
5599
5606
|
writer.uint32(72).int32(message.status);
|
|
5600
5607
|
}
|
|
5608
|
+
if (message.is_parent_public === true) {
|
|
5609
|
+
writer.uint32(80).bool(message.is_parent_public);
|
|
5610
|
+
}
|
|
5601
5611
|
return writer;
|
|
5602
5612
|
},
|
|
5603
5613
|
|
|
@@ -5635,6 +5645,9 @@ export const ChannelCreatedEvent = {
|
|
|
5635
5645
|
case 9:
|
|
5636
5646
|
message.status = reader.int32();
|
|
5637
5647
|
break;
|
|
5648
|
+
case 10:
|
|
5649
|
+
message.is_parent_public = reader.bool();
|
|
5650
|
+
break;
|
|
5638
5651
|
default:
|
|
5639
5652
|
reader.skipType(tag & 7);
|
|
5640
5653
|
break;
|
|
@@ -5654,6 +5667,7 @@ export const ChannelCreatedEvent = {
|
|
|
5654
5667
|
channel_private: isSet(object.channel_private) ? Number(object.channel_private) : 0,
|
|
5655
5668
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
|
|
5656
5669
|
status: isSet(object.status) ? Number(object.status) : 0,
|
|
5670
|
+
is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
|
|
5657
5671
|
};
|
|
5658
5672
|
},
|
|
5659
5673
|
|
|
@@ -5668,6 +5682,7 @@ export const ChannelCreatedEvent = {
|
|
|
5668
5682
|
message.channel_private !== undefined && (obj.channel_private = Math.round(message.channel_private));
|
|
5669
5683
|
message.channel_type !== undefined && (obj.channel_type = message.channel_type);
|
|
5670
5684
|
message.status !== undefined && (obj.status = Math.round(message.status));
|
|
5685
|
+
message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
|
|
5671
5686
|
return obj;
|
|
5672
5687
|
},
|
|
5673
5688
|
|
|
@@ -5686,6 +5701,7 @@ export const ChannelCreatedEvent = {
|
|
|
5686
5701
|
message.channel_private = object.channel_private ?? 0;
|
|
5687
5702
|
message.channel_type = object.channel_type ?? undefined;
|
|
5688
5703
|
message.status = object.status ?? 0;
|
|
5704
|
+
message.is_parent_public = object.is_parent_public ?? false;
|
|
5689
5705
|
return message;
|
|
5690
5706
|
},
|
|
5691
5707
|
};
|
|
@@ -6516,7 +6532,16 @@ export const AddUsers = {
|
|
|
6516
6532
|
};
|
|
6517
6533
|
|
|
6518
6534
|
function createBaseUserChannelAdded(): UserChannelAdded {
|
|
6519
|
-
return {
|
|
6535
|
+
return {
|
|
6536
|
+
channel_id: "",
|
|
6537
|
+
users: [],
|
|
6538
|
+
status: "",
|
|
6539
|
+
clan_id: "",
|
|
6540
|
+
channel_type: 0,
|
|
6541
|
+
is_public: false,
|
|
6542
|
+
parent_id: "",
|
|
6543
|
+
is_parent_public: false,
|
|
6544
|
+
};
|
|
6520
6545
|
}
|
|
6521
6546
|
|
|
6522
6547
|
export const UserChannelAdded = {
|
|
@@ -6539,6 +6564,12 @@ export const UserChannelAdded = {
|
|
|
6539
6564
|
if (message.is_public === true) {
|
|
6540
6565
|
writer.uint32(48).bool(message.is_public);
|
|
6541
6566
|
}
|
|
6567
|
+
if (message.parent_id !== "") {
|
|
6568
|
+
writer.uint32(58).string(message.parent_id);
|
|
6569
|
+
}
|
|
6570
|
+
if (message.is_parent_public === true) {
|
|
6571
|
+
writer.uint32(64).bool(message.is_parent_public);
|
|
6572
|
+
}
|
|
6542
6573
|
return writer;
|
|
6543
6574
|
},
|
|
6544
6575
|
|
|
@@ -6567,6 +6598,12 @@ export const UserChannelAdded = {
|
|
|
6567
6598
|
case 6:
|
|
6568
6599
|
message.is_public = reader.bool();
|
|
6569
6600
|
break;
|
|
6601
|
+
case 7:
|
|
6602
|
+
message.parent_id = reader.string();
|
|
6603
|
+
break;
|
|
6604
|
+
case 8:
|
|
6605
|
+
message.is_parent_public = reader.bool();
|
|
6606
|
+
break;
|
|
6570
6607
|
default:
|
|
6571
6608
|
reader.skipType(tag & 7);
|
|
6572
6609
|
break;
|
|
@@ -6583,6 +6620,8 @@ export const UserChannelAdded = {
|
|
|
6583
6620
|
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
6584
6621
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
|
|
6585
6622
|
is_public: isSet(object.is_public) ? Boolean(object.is_public) : false,
|
|
6623
|
+
parent_id: isSet(object.parent_id) ? String(object.parent_id) : "",
|
|
6624
|
+
is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
|
|
6586
6625
|
};
|
|
6587
6626
|
},
|
|
6588
6627
|
|
|
@@ -6598,6 +6637,8 @@ export const UserChannelAdded = {
|
|
|
6598
6637
|
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
6599
6638
|
message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
|
|
6600
6639
|
message.is_public !== undefined && (obj.is_public = message.is_public);
|
|
6640
|
+
message.parent_id !== undefined && (obj.parent_id = message.parent_id);
|
|
6641
|
+
message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
|
|
6601
6642
|
return obj;
|
|
6602
6643
|
},
|
|
6603
6644
|
|
|
@@ -6613,6 +6654,8 @@ export const UserChannelAdded = {
|
|
|
6613
6654
|
message.clan_id = object.clan_id ?? "";
|
|
6614
6655
|
message.channel_type = object.channel_type ?? 0;
|
|
6615
6656
|
message.is_public = object.is_public ?? false;
|
|
6657
|
+
message.parent_id = object.parent_id ?? "";
|
|
6658
|
+
message.is_parent_public = object.is_parent_public ?? false;
|
|
6616
6659
|
return message;
|
|
6617
6660
|
},
|
|
6618
6661
|
};
|