mezon-js-protobuf 1.7.30 → 1.7.32
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 +39739 -40112
- package/dist/mezon-js-protobuf/api/api.d.ts +25 -194
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +235 -155
- package/dist/mezon-js-protobuf.cjs.js +132 -5
- package/dist/mezon-js-protobuf.esm.mjs +132 -5
- package/google/protobuf/struct.ts +554 -554
- package/google/protobuf/timestamp.ts +223 -223
- package/google/protobuf/wrappers.ts +670 -670
- package/package.json +1 -1
- package/rtapi/realtime.ts +12577 -12432
|
@@ -5570,7 +5570,8 @@ function createBaseCreateEventRequest() {
|
|
|
5570
5570
|
channel_id: "",
|
|
5571
5571
|
action: 0,
|
|
5572
5572
|
repeat_type: 0,
|
|
5573
|
-
creator_id: ""
|
|
5573
|
+
creator_id: "",
|
|
5574
|
+
user_id: ""
|
|
5574
5575
|
};
|
|
5575
5576
|
}
|
|
5576
5577
|
var CreateEventRequest = {
|
|
@@ -5617,6 +5618,9 @@ var CreateEventRequest = {
|
|
|
5617
5618
|
if (message.creator_id !== "") {
|
|
5618
5619
|
writer.uint32(114).string(message.creator_id);
|
|
5619
5620
|
}
|
|
5621
|
+
if (message.user_id !== "") {
|
|
5622
|
+
writer.uint32(122).string(message.user_id);
|
|
5623
|
+
}
|
|
5620
5624
|
return writer;
|
|
5621
5625
|
},
|
|
5622
5626
|
decode(input, length) {
|
|
@@ -5710,6 +5714,12 @@ var CreateEventRequest = {
|
|
|
5710
5714
|
}
|
|
5711
5715
|
message.creator_id = reader.string();
|
|
5712
5716
|
continue;
|
|
5717
|
+
case 15:
|
|
5718
|
+
if (tag !== 122) {
|
|
5719
|
+
break;
|
|
5720
|
+
}
|
|
5721
|
+
message.user_id = reader.string();
|
|
5722
|
+
continue;
|
|
5713
5723
|
}
|
|
5714
5724
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5715
5725
|
break;
|
|
@@ -5733,7 +5743,8 @@ var CreateEventRequest = {
|
|
|
5733
5743
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
5734
5744
|
action: isSet3(object.action) ? globalThis.Number(object.action) : 0,
|
|
5735
5745
|
repeat_type: isSet3(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
5736
|
-
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : ""
|
|
5746
|
+
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
5747
|
+
user_id: isSet3(object.user_id) ? globalThis.String(object.user_id) : ""
|
|
5737
5748
|
};
|
|
5738
5749
|
},
|
|
5739
5750
|
toJSON(message) {
|
|
@@ -5780,13 +5791,16 @@ var CreateEventRequest = {
|
|
|
5780
5791
|
if (message.creator_id !== "") {
|
|
5781
5792
|
obj.creator_id = message.creator_id;
|
|
5782
5793
|
}
|
|
5794
|
+
if (message.user_id !== "") {
|
|
5795
|
+
obj.user_id = message.user_id;
|
|
5796
|
+
}
|
|
5783
5797
|
return obj;
|
|
5784
5798
|
},
|
|
5785
5799
|
create(base) {
|
|
5786
5800
|
return CreateEventRequest.fromPartial(base != null ? base : {});
|
|
5787
5801
|
},
|
|
5788
5802
|
fromPartial(object) {
|
|
5789
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
5803
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
5790
5804
|
const message = createBaseCreateEventRequest();
|
|
5791
5805
|
message.title = (_a = object.title) != null ? _a : "";
|
|
5792
5806
|
message.logo = (_b = object.logo) != null ? _b : "";
|
|
@@ -5802,6 +5816,7 @@ var CreateEventRequest = {
|
|
|
5802
5816
|
message.action = (_l = object.action) != null ? _l : 0;
|
|
5803
5817
|
message.repeat_type = (_m = object.repeat_type) != null ? _m : 0;
|
|
5804
5818
|
message.creator_id = (_n = object.creator_id) != null ? _n : "";
|
|
5819
|
+
message.user_id = (_o = object.user_id) != null ? _o : "";
|
|
5805
5820
|
return message;
|
|
5806
5821
|
}
|
|
5807
5822
|
};
|
|
@@ -6618,7 +6633,8 @@ function createBaseEnvelope() {
|
|
|
6618
6633
|
join_channel_app_data: void 0,
|
|
6619
6634
|
canvas_event: void 0,
|
|
6620
6635
|
unpin_message_event: void 0,
|
|
6621
|
-
category_event: void 0
|
|
6636
|
+
category_event: void 0,
|
|
6637
|
+
handle_participant_meet_state_event: void 0
|
|
6622
6638
|
};
|
|
6623
6639
|
}
|
|
6624
6640
|
var Envelope = {
|
|
@@ -6851,6 +6867,9 @@ var Envelope = {
|
|
|
6851
6867
|
if (message.category_event !== void 0) {
|
|
6852
6868
|
CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
|
|
6853
6869
|
}
|
|
6870
|
+
if (message.handle_participant_meet_state_event !== void 0) {
|
|
6871
|
+
HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(618).fork()).ldelim();
|
|
6872
|
+
}
|
|
6854
6873
|
return writer;
|
|
6855
6874
|
},
|
|
6856
6875
|
decode(input, length) {
|
|
@@ -7316,6 +7335,12 @@ var Envelope = {
|
|
|
7316
7335
|
}
|
|
7317
7336
|
message.category_event = CategoryEvent.decode(reader, reader.uint32());
|
|
7318
7337
|
continue;
|
|
7338
|
+
case 77:
|
|
7339
|
+
if (tag !== 618) {
|
|
7340
|
+
break;
|
|
7341
|
+
}
|
|
7342
|
+
message.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.decode(reader, reader.uint32());
|
|
7343
|
+
continue;
|
|
7319
7344
|
}
|
|
7320
7345
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7321
7346
|
break;
|
|
@@ -7401,7 +7426,8 @@ var Envelope = {
|
|
|
7401
7426
|
join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0,
|
|
7402
7427
|
canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0,
|
|
7403
7428
|
unpin_message_event: isSet4(object.unpin_message_event) ? UnpinMessageEvent.fromJSON(object.unpin_message_event) : void 0,
|
|
7404
|
-
category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0
|
|
7429
|
+
category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0,
|
|
7430
|
+
handle_participant_meet_state_event: isSet4(object.handle_participant_meet_state_event) ? HandleParticipantMeetStateEvent.fromJSON(object.handle_participant_meet_state_event) : void 0
|
|
7405
7431
|
};
|
|
7406
7432
|
},
|
|
7407
7433
|
toJSON(message) {
|
|
@@ -7634,6 +7660,11 @@ var Envelope = {
|
|
|
7634
7660
|
if (message.category_event !== void 0) {
|
|
7635
7661
|
obj.category_event = CategoryEvent.toJSON(message.category_event);
|
|
7636
7662
|
}
|
|
7663
|
+
if (message.handle_participant_meet_state_event !== void 0) {
|
|
7664
|
+
obj.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.toJSON(
|
|
7665
|
+
message.handle_participant_meet_state_event
|
|
7666
|
+
);
|
|
7667
|
+
}
|
|
7637
7668
|
return obj;
|
|
7638
7669
|
},
|
|
7639
7670
|
create(base) {
|
|
@@ -7718,6 +7749,7 @@ var Envelope = {
|
|
|
7718
7749
|
message.canvas_event = object.canvas_event !== void 0 && object.canvas_event !== null ? ChannelCanvas.fromPartial(object.canvas_event) : void 0;
|
|
7719
7750
|
message.unpin_message_event = object.unpin_message_event !== void 0 && object.unpin_message_event !== null ? UnpinMessageEvent.fromPartial(object.unpin_message_event) : void 0;
|
|
7720
7751
|
message.category_event = object.category_event !== void 0 && object.category_event !== null ? CategoryEvent.fromPartial(object.category_event) : void 0;
|
|
7752
|
+
message.handle_participant_meet_state_event = object.handle_participant_meet_state_event !== void 0 && object.handle_participant_meet_state_event !== null ? HandleParticipantMeetStateEvent.fromPartial(object.handle_participant_meet_state_event) : void 0;
|
|
7721
7753
|
return message;
|
|
7722
7754
|
}
|
|
7723
7755
|
};
|
|
@@ -15576,6 +15608,101 @@ var UnpinMessageEvent = {
|
|
|
15576
15608
|
return message;
|
|
15577
15609
|
}
|
|
15578
15610
|
};
|
|
15611
|
+
function createBaseHandleParticipantMeetStateEvent() {
|
|
15612
|
+
return { clan_id: "", channel_id: "", display_name: "", state: 0 };
|
|
15613
|
+
}
|
|
15614
|
+
var HandleParticipantMeetStateEvent = {
|
|
15615
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
15616
|
+
if (message.clan_id !== "") {
|
|
15617
|
+
writer.uint32(10).string(message.clan_id);
|
|
15618
|
+
}
|
|
15619
|
+
if (message.channel_id !== "") {
|
|
15620
|
+
writer.uint32(18).string(message.channel_id);
|
|
15621
|
+
}
|
|
15622
|
+
if (message.display_name !== "") {
|
|
15623
|
+
writer.uint32(26).string(message.display_name);
|
|
15624
|
+
}
|
|
15625
|
+
if (message.state !== 0) {
|
|
15626
|
+
writer.uint32(32).int32(message.state);
|
|
15627
|
+
}
|
|
15628
|
+
return writer;
|
|
15629
|
+
},
|
|
15630
|
+
decode(input, length) {
|
|
15631
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
15632
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
15633
|
+
const message = createBaseHandleParticipantMeetStateEvent();
|
|
15634
|
+
while (reader.pos < end) {
|
|
15635
|
+
const tag = reader.uint32();
|
|
15636
|
+
switch (tag >>> 3) {
|
|
15637
|
+
case 1:
|
|
15638
|
+
if (tag !== 10) {
|
|
15639
|
+
break;
|
|
15640
|
+
}
|
|
15641
|
+
message.clan_id = reader.string();
|
|
15642
|
+
continue;
|
|
15643
|
+
case 2:
|
|
15644
|
+
if (tag !== 18) {
|
|
15645
|
+
break;
|
|
15646
|
+
}
|
|
15647
|
+
message.channel_id = reader.string();
|
|
15648
|
+
continue;
|
|
15649
|
+
case 3:
|
|
15650
|
+
if (tag !== 26) {
|
|
15651
|
+
break;
|
|
15652
|
+
}
|
|
15653
|
+
message.display_name = reader.string();
|
|
15654
|
+
continue;
|
|
15655
|
+
case 4:
|
|
15656
|
+
if (tag !== 32) {
|
|
15657
|
+
break;
|
|
15658
|
+
}
|
|
15659
|
+
message.state = reader.int32();
|
|
15660
|
+
continue;
|
|
15661
|
+
}
|
|
15662
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15663
|
+
break;
|
|
15664
|
+
}
|
|
15665
|
+
reader.skipType(tag & 7);
|
|
15666
|
+
}
|
|
15667
|
+
return message;
|
|
15668
|
+
},
|
|
15669
|
+
fromJSON(object) {
|
|
15670
|
+
return {
|
|
15671
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
15672
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
15673
|
+
display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
15674
|
+
state: isSet4(object.state) ? globalThis.Number(object.state) : 0
|
|
15675
|
+
};
|
|
15676
|
+
},
|
|
15677
|
+
toJSON(message) {
|
|
15678
|
+
const obj = {};
|
|
15679
|
+
if (message.clan_id !== "") {
|
|
15680
|
+
obj.clan_id = message.clan_id;
|
|
15681
|
+
}
|
|
15682
|
+
if (message.channel_id !== "") {
|
|
15683
|
+
obj.channel_id = message.channel_id;
|
|
15684
|
+
}
|
|
15685
|
+
if (message.display_name !== "") {
|
|
15686
|
+
obj.display_name = message.display_name;
|
|
15687
|
+
}
|
|
15688
|
+
if (message.state !== 0) {
|
|
15689
|
+
obj.state = Math.round(message.state);
|
|
15690
|
+
}
|
|
15691
|
+
return obj;
|
|
15692
|
+
},
|
|
15693
|
+
create(base) {
|
|
15694
|
+
return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
|
|
15695
|
+
},
|
|
15696
|
+
fromPartial(object) {
|
|
15697
|
+
var _a, _b, _c, _d;
|
|
15698
|
+
const message = createBaseHandleParticipantMeetStateEvent();
|
|
15699
|
+
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
15700
|
+
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
15701
|
+
message.display_name = (_c = object.display_name) != null ? _c : "";
|
|
15702
|
+
message.state = (_d = object.state) != null ? _d : 0;
|
|
15703
|
+
return message;
|
|
15704
|
+
}
|
|
15705
|
+
};
|
|
15579
15706
|
function toTimestamp2(date) {
|
|
15580
15707
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
15581
15708
|
const nanos = date.getTime() % 1e3 * 1e6;
|
|
@@ -5557,7 +5557,8 @@ function createBaseCreateEventRequest() {
|
|
|
5557
5557
|
channel_id: "",
|
|
5558
5558
|
action: 0,
|
|
5559
5559
|
repeat_type: 0,
|
|
5560
|
-
creator_id: ""
|
|
5560
|
+
creator_id: "",
|
|
5561
|
+
user_id: ""
|
|
5561
5562
|
};
|
|
5562
5563
|
}
|
|
5563
5564
|
var CreateEventRequest = {
|
|
@@ -5604,6 +5605,9 @@ var CreateEventRequest = {
|
|
|
5604
5605
|
if (message.creator_id !== "") {
|
|
5605
5606
|
writer.uint32(114).string(message.creator_id);
|
|
5606
5607
|
}
|
|
5608
|
+
if (message.user_id !== "") {
|
|
5609
|
+
writer.uint32(122).string(message.user_id);
|
|
5610
|
+
}
|
|
5607
5611
|
return writer;
|
|
5608
5612
|
},
|
|
5609
5613
|
decode(input, length) {
|
|
@@ -5697,6 +5701,12 @@ var CreateEventRequest = {
|
|
|
5697
5701
|
}
|
|
5698
5702
|
message.creator_id = reader.string();
|
|
5699
5703
|
continue;
|
|
5704
|
+
case 15:
|
|
5705
|
+
if (tag !== 122) {
|
|
5706
|
+
break;
|
|
5707
|
+
}
|
|
5708
|
+
message.user_id = reader.string();
|
|
5709
|
+
continue;
|
|
5700
5710
|
}
|
|
5701
5711
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5702
5712
|
break;
|
|
@@ -5720,7 +5730,8 @@ var CreateEventRequest = {
|
|
|
5720
5730
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
5721
5731
|
action: isSet3(object.action) ? globalThis.Number(object.action) : 0,
|
|
5722
5732
|
repeat_type: isSet3(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
5723
|
-
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : ""
|
|
5733
|
+
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
5734
|
+
user_id: isSet3(object.user_id) ? globalThis.String(object.user_id) : ""
|
|
5724
5735
|
};
|
|
5725
5736
|
},
|
|
5726
5737
|
toJSON(message) {
|
|
@@ -5767,13 +5778,16 @@ var CreateEventRequest = {
|
|
|
5767
5778
|
if (message.creator_id !== "") {
|
|
5768
5779
|
obj.creator_id = message.creator_id;
|
|
5769
5780
|
}
|
|
5781
|
+
if (message.user_id !== "") {
|
|
5782
|
+
obj.user_id = message.user_id;
|
|
5783
|
+
}
|
|
5770
5784
|
return obj;
|
|
5771
5785
|
},
|
|
5772
5786
|
create(base) {
|
|
5773
5787
|
return CreateEventRequest.fromPartial(base != null ? base : {});
|
|
5774
5788
|
},
|
|
5775
5789
|
fromPartial(object) {
|
|
5776
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
5790
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
5777
5791
|
const message = createBaseCreateEventRequest();
|
|
5778
5792
|
message.title = (_a = object.title) != null ? _a : "";
|
|
5779
5793
|
message.logo = (_b = object.logo) != null ? _b : "";
|
|
@@ -5789,6 +5803,7 @@ var CreateEventRequest = {
|
|
|
5789
5803
|
message.action = (_l = object.action) != null ? _l : 0;
|
|
5790
5804
|
message.repeat_type = (_m = object.repeat_type) != null ? _m : 0;
|
|
5791
5805
|
message.creator_id = (_n = object.creator_id) != null ? _n : "";
|
|
5806
|
+
message.user_id = (_o = object.user_id) != null ? _o : "";
|
|
5792
5807
|
return message;
|
|
5793
5808
|
}
|
|
5794
5809
|
};
|
|
@@ -6605,7 +6620,8 @@ function createBaseEnvelope() {
|
|
|
6605
6620
|
join_channel_app_data: void 0,
|
|
6606
6621
|
canvas_event: void 0,
|
|
6607
6622
|
unpin_message_event: void 0,
|
|
6608
|
-
category_event: void 0
|
|
6623
|
+
category_event: void 0,
|
|
6624
|
+
handle_participant_meet_state_event: void 0
|
|
6609
6625
|
};
|
|
6610
6626
|
}
|
|
6611
6627
|
var Envelope = {
|
|
@@ -6838,6 +6854,9 @@ var Envelope = {
|
|
|
6838
6854
|
if (message.category_event !== void 0) {
|
|
6839
6855
|
CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
|
|
6840
6856
|
}
|
|
6857
|
+
if (message.handle_participant_meet_state_event !== void 0) {
|
|
6858
|
+
HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(618).fork()).ldelim();
|
|
6859
|
+
}
|
|
6841
6860
|
return writer;
|
|
6842
6861
|
},
|
|
6843
6862
|
decode(input, length) {
|
|
@@ -7303,6 +7322,12 @@ var Envelope = {
|
|
|
7303
7322
|
}
|
|
7304
7323
|
message.category_event = CategoryEvent.decode(reader, reader.uint32());
|
|
7305
7324
|
continue;
|
|
7325
|
+
case 77:
|
|
7326
|
+
if (tag !== 618) {
|
|
7327
|
+
break;
|
|
7328
|
+
}
|
|
7329
|
+
message.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.decode(reader, reader.uint32());
|
|
7330
|
+
continue;
|
|
7306
7331
|
}
|
|
7307
7332
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7308
7333
|
break;
|
|
@@ -7388,7 +7413,8 @@ var Envelope = {
|
|
|
7388
7413
|
join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0,
|
|
7389
7414
|
canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0,
|
|
7390
7415
|
unpin_message_event: isSet4(object.unpin_message_event) ? UnpinMessageEvent.fromJSON(object.unpin_message_event) : void 0,
|
|
7391
|
-
category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0
|
|
7416
|
+
category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0,
|
|
7417
|
+
handle_participant_meet_state_event: isSet4(object.handle_participant_meet_state_event) ? HandleParticipantMeetStateEvent.fromJSON(object.handle_participant_meet_state_event) : void 0
|
|
7392
7418
|
};
|
|
7393
7419
|
},
|
|
7394
7420
|
toJSON(message) {
|
|
@@ -7621,6 +7647,11 @@ var Envelope = {
|
|
|
7621
7647
|
if (message.category_event !== void 0) {
|
|
7622
7648
|
obj.category_event = CategoryEvent.toJSON(message.category_event);
|
|
7623
7649
|
}
|
|
7650
|
+
if (message.handle_participant_meet_state_event !== void 0) {
|
|
7651
|
+
obj.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.toJSON(
|
|
7652
|
+
message.handle_participant_meet_state_event
|
|
7653
|
+
);
|
|
7654
|
+
}
|
|
7624
7655
|
return obj;
|
|
7625
7656
|
},
|
|
7626
7657
|
create(base) {
|
|
@@ -7705,6 +7736,7 @@ var Envelope = {
|
|
|
7705
7736
|
message.canvas_event = object.canvas_event !== void 0 && object.canvas_event !== null ? ChannelCanvas.fromPartial(object.canvas_event) : void 0;
|
|
7706
7737
|
message.unpin_message_event = object.unpin_message_event !== void 0 && object.unpin_message_event !== null ? UnpinMessageEvent.fromPartial(object.unpin_message_event) : void 0;
|
|
7707
7738
|
message.category_event = object.category_event !== void 0 && object.category_event !== null ? CategoryEvent.fromPartial(object.category_event) : void 0;
|
|
7739
|
+
message.handle_participant_meet_state_event = object.handle_participant_meet_state_event !== void 0 && object.handle_participant_meet_state_event !== null ? HandleParticipantMeetStateEvent.fromPartial(object.handle_participant_meet_state_event) : void 0;
|
|
7708
7740
|
return message;
|
|
7709
7741
|
}
|
|
7710
7742
|
};
|
|
@@ -15563,6 +15595,101 @@ var UnpinMessageEvent = {
|
|
|
15563
15595
|
return message;
|
|
15564
15596
|
}
|
|
15565
15597
|
};
|
|
15598
|
+
function createBaseHandleParticipantMeetStateEvent() {
|
|
15599
|
+
return { clan_id: "", channel_id: "", display_name: "", state: 0 };
|
|
15600
|
+
}
|
|
15601
|
+
var HandleParticipantMeetStateEvent = {
|
|
15602
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
15603
|
+
if (message.clan_id !== "") {
|
|
15604
|
+
writer.uint32(10).string(message.clan_id);
|
|
15605
|
+
}
|
|
15606
|
+
if (message.channel_id !== "") {
|
|
15607
|
+
writer.uint32(18).string(message.channel_id);
|
|
15608
|
+
}
|
|
15609
|
+
if (message.display_name !== "") {
|
|
15610
|
+
writer.uint32(26).string(message.display_name);
|
|
15611
|
+
}
|
|
15612
|
+
if (message.state !== 0) {
|
|
15613
|
+
writer.uint32(32).int32(message.state);
|
|
15614
|
+
}
|
|
15615
|
+
return writer;
|
|
15616
|
+
},
|
|
15617
|
+
decode(input, length) {
|
|
15618
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
15619
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
15620
|
+
const message = createBaseHandleParticipantMeetStateEvent();
|
|
15621
|
+
while (reader.pos < end) {
|
|
15622
|
+
const tag = reader.uint32();
|
|
15623
|
+
switch (tag >>> 3) {
|
|
15624
|
+
case 1:
|
|
15625
|
+
if (tag !== 10) {
|
|
15626
|
+
break;
|
|
15627
|
+
}
|
|
15628
|
+
message.clan_id = reader.string();
|
|
15629
|
+
continue;
|
|
15630
|
+
case 2:
|
|
15631
|
+
if (tag !== 18) {
|
|
15632
|
+
break;
|
|
15633
|
+
}
|
|
15634
|
+
message.channel_id = reader.string();
|
|
15635
|
+
continue;
|
|
15636
|
+
case 3:
|
|
15637
|
+
if (tag !== 26) {
|
|
15638
|
+
break;
|
|
15639
|
+
}
|
|
15640
|
+
message.display_name = reader.string();
|
|
15641
|
+
continue;
|
|
15642
|
+
case 4:
|
|
15643
|
+
if (tag !== 32) {
|
|
15644
|
+
break;
|
|
15645
|
+
}
|
|
15646
|
+
message.state = reader.int32();
|
|
15647
|
+
continue;
|
|
15648
|
+
}
|
|
15649
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15650
|
+
break;
|
|
15651
|
+
}
|
|
15652
|
+
reader.skipType(tag & 7);
|
|
15653
|
+
}
|
|
15654
|
+
return message;
|
|
15655
|
+
},
|
|
15656
|
+
fromJSON(object) {
|
|
15657
|
+
return {
|
|
15658
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
15659
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
15660
|
+
display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
15661
|
+
state: isSet4(object.state) ? globalThis.Number(object.state) : 0
|
|
15662
|
+
};
|
|
15663
|
+
},
|
|
15664
|
+
toJSON(message) {
|
|
15665
|
+
const obj = {};
|
|
15666
|
+
if (message.clan_id !== "") {
|
|
15667
|
+
obj.clan_id = message.clan_id;
|
|
15668
|
+
}
|
|
15669
|
+
if (message.channel_id !== "") {
|
|
15670
|
+
obj.channel_id = message.channel_id;
|
|
15671
|
+
}
|
|
15672
|
+
if (message.display_name !== "") {
|
|
15673
|
+
obj.display_name = message.display_name;
|
|
15674
|
+
}
|
|
15675
|
+
if (message.state !== 0) {
|
|
15676
|
+
obj.state = Math.round(message.state);
|
|
15677
|
+
}
|
|
15678
|
+
return obj;
|
|
15679
|
+
},
|
|
15680
|
+
create(base) {
|
|
15681
|
+
return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
|
|
15682
|
+
},
|
|
15683
|
+
fromPartial(object) {
|
|
15684
|
+
var _a, _b, _c, _d;
|
|
15685
|
+
const message = createBaseHandleParticipantMeetStateEvent();
|
|
15686
|
+
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
15687
|
+
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
15688
|
+
message.display_name = (_c = object.display_name) != null ? _c : "";
|
|
15689
|
+
message.state = (_d = object.state) != null ? _d : 0;
|
|
15690
|
+
return message;
|
|
15691
|
+
}
|
|
15692
|
+
};
|
|
15566
15693
|
function toTimestamp2(date) {
|
|
15567
15694
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
15568
15695
|
const nanos = date.getTime() % 1e3 * 1e6;
|