mezon-sdk 2.7.79 → 2.7.81
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/dist/cjs/api/api.d.ts +3285 -465
- package/dist/cjs/api/api.js +2390 -608
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/client.js +3 -3
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/google/protobuf/struct.js +1 -1
- package/dist/cjs/google/protobuf/timestamp.js +1 -1
- package/dist/cjs/google/protobuf/wrappers.js +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mezon-client/channel_manager.d.ts +15 -0
- package/dist/cjs/mezon-client/channel_manager.js +70 -0
- package/dist/cjs/mezon-client/channel_manager.js.map +1 -0
- package/dist/cjs/mezon-client/event_manager.d.ts +7 -0
- package/dist/cjs/mezon-client/event_manager.js +37 -0
- package/dist/cjs/mezon-client/event_manager.js.map +1 -0
- package/dist/cjs/mezon-client/message_manager.d.ts +16 -0
- package/dist/cjs/mezon-client/message_manager.js +60 -0
- package/dist/cjs/mezon-client/message_manager.js.map +1 -0
- package/dist/cjs/mezon-client/mezon_client.d.ts +37 -0
- package/dist/cjs/mezon-client/mezon_client.js +87 -0
- package/dist/cjs/mezon-client/mezon_client.js.map +1 -0
- package/dist/cjs/mezon-client/session_manager.d.ts +10 -0
- package/dist/cjs/mezon-client/session_manager.js +35 -0
- package/dist/cjs/mezon-client/session_manager.js.map +1 -0
- package/dist/cjs/mezon-client/socket_manager.d.ts +31 -0
- package/dist/cjs/mezon-client/socket_manager.js +95 -0
- package/dist/cjs/mezon-client/socket_manager.js.map +1 -0
- package/dist/cjs/rtapi/realtime.d.ts +3376 -968
- package/dist/cjs/rtapi/realtime.js +964 -509
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/esm/api/api.d.ts +3285 -465
- package/dist/esm/api/api.js +2347 -573
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/client.js +3 -3
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/google/protobuf/struct.js +1 -1
- package/dist/esm/google/protobuf/timestamp.js +1 -1
- package/dist/esm/google/protobuf/wrappers.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/mezon-client/channel_manager.d.ts +15 -0
- package/dist/esm/mezon-client/channel_manager.js +69 -0
- package/dist/esm/mezon-client/channel_manager.js.map +1 -0
- package/dist/esm/mezon-client/event_manager.d.ts +7 -0
- package/dist/esm/mezon-client/event_manager.js +31 -0
- package/dist/esm/mezon-client/event_manager.js.map +1 -0
- package/dist/esm/mezon-client/message_manager.d.ts +16 -0
- package/dist/esm/mezon-client/message_manager.js +57 -0
- package/dist/esm/mezon-client/message_manager.js.map +1 -0
- package/dist/esm/mezon-client/mezon_client.d.ts +37 -0
- package/dist/esm/mezon-client/mezon_client.js +94 -0
- package/dist/esm/mezon-client/mezon_client.js.map +1 -0
- package/dist/esm/mezon-client/session_manager.d.ts +10 -0
- package/dist/esm/mezon-client/session_manager.js +33 -0
- package/dist/esm/mezon-client/session_manager.js.map +1 -0
- package/dist/esm/mezon-client/socket_manager.d.ts +31 -0
- package/dist/esm/mezon-client/socket_manager.js +100 -0
- package/dist/esm/mezon-client/socket_manager.js.map +1 -0
- package/dist/esm/rtapi/realtime.d.ts +3376 -968
- package/dist/esm/rtapi/realtime.js +947 -494
- package/dist/esm/rtapi/realtime.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.
|
|
4
|
-
// protoc v5.
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v5.28.3
|
|
5
5
|
// source: rtapi/realtime.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
|
+
import Long from "long";
|
|
7
8
|
import _m0 from "protobufjs/minimal";
|
|
8
|
-
import { ChannelDescription as ChannelDescription1, ChannelMessage, ChannelMessageHeader, CreateEventRequest, GiveCoffeeEvent, MessageAttachment, MessageMention, MessageReaction, MessageRef, Notification, PermissionUpdate, Role, Rpc, TokenSentEvent, UserActivity, } from "../api/api";
|
|
9
|
+
import { ChannelDescription as ChannelDescription1, ChannelMessage, ChannelMessageHeader, CreateEventRequest, GiveCoffeeEvent, MessageAttachment, MessageMention, MessageReaction, MessageRef, Notification, NotificationUserChannel, PermissionUpdate, Role, Rpc, TokenSentEvent, UserActivity, Webhook, } from "../api/api";
|
|
9
10
|
import { Timestamp } from "../google/protobuf/timestamp";
|
|
10
11
|
import { BoolValue, Int32Value, StringValue } from "../google/protobuf/wrappers";
|
|
11
12
|
export const protobufPackage = "mezon.realtime";
|
|
@@ -149,16 +150,19 @@ function createBaseEnvelope() {
|
|
|
149
150
|
message_button_clicked: undefined,
|
|
150
151
|
unmute_event: undefined,
|
|
151
152
|
webrtc_signaling_fwd: undefined,
|
|
152
|
-
join_ptt_channel: undefined,
|
|
153
|
-
talk_ptt_channel: undefined,
|
|
154
153
|
list_activity: undefined,
|
|
155
154
|
dropdown_box_selected: undefined,
|
|
156
155
|
incoming_call_push: undefined,
|
|
157
|
-
ptt_joined_event: undefined,
|
|
158
|
-
ptt_leaved_event: undefined,
|
|
159
156
|
sd_topic_event: undefined,
|
|
160
157
|
follow_event: undefined,
|
|
161
158
|
channel_app_event: undefined,
|
|
159
|
+
user_status_event: undefined,
|
|
160
|
+
remove_friend: undefined,
|
|
161
|
+
webhook_event: undefined,
|
|
162
|
+
noti_user_channel: undefined,
|
|
163
|
+
join_channel_app_data: undefined,
|
|
164
|
+
canvas_event: undefined,
|
|
165
|
+
unpin_message_event: undefined,
|
|
162
166
|
};
|
|
163
167
|
}
|
|
164
168
|
export const Envelope = {
|
|
@@ -349,35 +353,44 @@ export const Envelope = {
|
|
|
349
353
|
if (message.webrtc_signaling_fwd !== undefined) {
|
|
350
354
|
WebrtcSignalingFwd.encode(message.webrtc_signaling_fwd, writer.uint32(498).fork()).ldelim();
|
|
351
355
|
}
|
|
352
|
-
if (message.join_ptt_channel !== undefined) {
|
|
353
|
-
JoinPTTChannel.encode(message.join_ptt_channel, writer.uint32(506).fork()).ldelim();
|
|
354
|
-
}
|
|
355
|
-
if (message.talk_ptt_channel !== undefined) {
|
|
356
|
-
TalkPTTChannel.encode(message.talk_ptt_channel, writer.uint32(514).fork()).ldelim();
|
|
357
|
-
}
|
|
358
356
|
if (message.list_activity !== undefined) {
|
|
359
|
-
ListActivity.encode(message.list_activity, writer.uint32(
|
|
357
|
+
ListActivity.encode(message.list_activity, writer.uint32(506).fork()).ldelim();
|
|
360
358
|
}
|
|
361
359
|
if (message.dropdown_box_selected !== undefined) {
|
|
362
|
-
DropdownBoxSelected.encode(message.dropdown_box_selected, writer.uint32(
|
|
360
|
+
DropdownBoxSelected.encode(message.dropdown_box_selected, writer.uint32(514).fork()).ldelim();
|
|
363
361
|
}
|
|
364
362
|
if (message.incoming_call_push !== undefined) {
|
|
365
|
-
IncomingCallPush.encode(message.incoming_call_push, writer.uint32(
|
|
366
|
-
}
|
|
367
|
-
if (message.ptt_joined_event !== undefined) {
|
|
368
|
-
PTTJoinedEvent.encode(message.ptt_joined_event, writer.uint32(546).fork()).ldelim();
|
|
369
|
-
}
|
|
370
|
-
if (message.ptt_leaved_event !== undefined) {
|
|
371
|
-
PTTLeavedEvent.encode(message.ptt_leaved_event, writer.uint32(554).fork()).ldelim();
|
|
363
|
+
IncomingCallPush.encode(message.incoming_call_push, writer.uint32(522).fork()).ldelim();
|
|
372
364
|
}
|
|
373
365
|
if (message.sd_topic_event !== undefined) {
|
|
374
|
-
SdTopicEvent.encode(message.sd_topic_event, writer.uint32(
|
|
366
|
+
SdTopicEvent.encode(message.sd_topic_event, writer.uint32(530).fork()).ldelim();
|
|
375
367
|
}
|
|
376
368
|
if (message.follow_event !== undefined) {
|
|
377
|
-
FollowEvent.encode(message.follow_event, writer.uint32(
|
|
369
|
+
FollowEvent.encode(message.follow_event, writer.uint32(538).fork()).ldelim();
|
|
378
370
|
}
|
|
379
371
|
if (message.channel_app_event !== undefined) {
|
|
380
|
-
ChannelAppEvent.encode(message.channel_app_event, writer.uint32(
|
|
372
|
+
ChannelAppEvent.encode(message.channel_app_event, writer.uint32(546).fork()).ldelim();
|
|
373
|
+
}
|
|
374
|
+
if (message.user_status_event !== undefined) {
|
|
375
|
+
UserStatusEvent.encode(message.user_status_event, writer.uint32(554).fork()).ldelim();
|
|
376
|
+
}
|
|
377
|
+
if (message.remove_friend !== undefined) {
|
|
378
|
+
RemoveFriend.encode(message.remove_friend, writer.uint32(562).fork()).ldelim();
|
|
379
|
+
}
|
|
380
|
+
if (message.webhook_event !== undefined) {
|
|
381
|
+
Webhook.encode(message.webhook_event, writer.uint32(570).fork()).ldelim();
|
|
382
|
+
}
|
|
383
|
+
if (message.noti_user_channel !== undefined) {
|
|
384
|
+
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
385
|
+
}
|
|
386
|
+
if (message.join_channel_app_data !== undefined) {
|
|
387
|
+
JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
|
|
388
|
+
}
|
|
389
|
+
if (message.canvas_event !== undefined) {
|
|
390
|
+
ChannelCanvas.encode(message.canvas_event, writer.uint32(594).fork()).ldelim();
|
|
391
|
+
}
|
|
392
|
+
if (message.unpin_message_event !== undefined) {
|
|
393
|
+
UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(602).fork()).ldelim();
|
|
381
394
|
}
|
|
382
395
|
return writer;
|
|
383
396
|
},
|
|
@@ -764,61 +777,79 @@ export const Envelope = {
|
|
|
764
777
|
if (tag !== 506) {
|
|
765
778
|
break;
|
|
766
779
|
}
|
|
767
|
-
message.
|
|
780
|
+
message.list_activity = ListActivity.decode(reader, reader.uint32());
|
|
768
781
|
continue;
|
|
769
782
|
case 64:
|
|
770
783
|
if (tag !== 514) {
|
|
771
784
|
break;
|
|
772
785
|
}
|
|
773
|
-
message.
|
|
786
|
+
message.dropdown_box_selected = DropdownBoxSelected.decode(reader, reader.uint32());
|
|
774
787
|
continue;
|
|
775
788
|
case 65:
|
|
776
789
|
if (tag !== 522) {
|
|
777
790
|
break;
|
|
778
791
|
}
|
|
779
|
-
message.
|
|
792
|
+
message.incoming_call_push = IncomingCallPush.decode(reader, reader.uint32());
|
|
780
793
|
continue;
|
|
781
794
|
case 66:
|
|
782
795
|
if (tag !== 530) {
|
|
783
796
|
break;
|
|
784
797
|
}
|
|
785
|
-
message.
|
|
798
|
+
message.sd_topic_event = SdTopicEvent.decode(reader, reader.uint32());
|
|
786
799
|
continue;
|
|
787
800
|
case 67:
|
|
788
801
|
if (tag !== 538) {
|
|
789
802
|
break;
|
|
790
803
|
}
|
|
791
|
-
message.
|
|
804
|
+
message.follow_event = FollowEvent.decode(reader, reader.uint32());
|
|
792
805
|
continue;
|
|
793
806
|
case 68:
|
|
794
807
|
if (tag !== 546) {
|
|
795
808
|
break;
|
|
796
809
|
}
|
|
797
|
-
message.
|
|
810
|
+
message.channel_app_event = ChannelAppEvent.decode(reader, reader.uint32());
|
|
798
811
|
continue;
|
|
799
812
|
case 69:
|
|
800
813
|
if (tag !== 554) {
|
|
801
814
|
break;
|
|
802
815
|
}
|
|
803
|
-
message.
|
|
816
|
+
message.user_status_event = UserStatusEvent.decode(reader, reader.uint32());
|
|
804
817
|
continue;
|
|
805
818
|
case 70:
|
|
806
819
|
if (tag !== 562) {
|
|
807
820
|
break;
|
|
808
821
|
}
|
|
809
|
-
message.
|
|
822
|
+
message.remove_friend = RemoveFriend.decode(reader, reader.uint32());
|
|
810
823
|
continue;
|
|
811
824
|
case 71:
|
|
812
825
|
if (tag !== 570) {
|
|
813
826
|
break;
|
|
814
827
|
}
|
|
815
|
-
message.
|
|
828
|
+
message.webhook_event = Webhook.decode(reader, reader.uint32());
|
|
816
829
|
continue;
|
|
817
830
|
case 72:
|
|
818
831
|
if (tag !== 578) {
|
|
819
832
|
break;
|
|
820
833
|
}
|
|
821
|
-
message.
|
|
834
|
+
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
835
|
+
continue;
|
|
836
|
+
case 73:
|
|
837
|
+
if (tag !== 586) {
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
|
|
841
|
+
continue;
|
|
842
|
+
case 74:
|
|
843
|
+
if (tag !== 594) {
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
846
|
+
message.canvas_event = ChannelCanvas.decode(reader, reader.uint32());
|
|
847
|
+
continue;
|
|
848
|
+
case 75:
|
|
849
|
+
if (tag !== 602) {
|
|
850
|
+
break;
|
|
851
|
+
}
|
|
852
|
+
message.unpin_message_event = UnpinMessageEvent.decode(reader, reader.uint32());
|
|
822
853
|
continue;
|
|
823
854
|
}
|
|
824
855
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -976,8 +1007,6 @@ export const Envelope = {
|
|
|
976
1007
|
webrtc_signaling_fwd: isSet(object.webrtc_signaling_fwd)
|
|
977
1008
|
? WebrtcSignalingFwd.fromJSON(object.webrtc_signaling_fwd)
|
|
978
1009
|
: undefined,
|
|
979
|
-
join_ptt_channel: isSet(object.join_ptt_channel) ? JoinPTTChannel.fromJSON(object.join_ptt_channel) : undefined,
|
|
980
|
-
talk_ptt_channel: isSet(object.talk_ptt_channel) ? TalkPTTChannel.fromJSON(object.talk_ptt_channel) : undefined,
|
|
981
1010
|
list_activity: isSet(object.list_activity) ? ListActivity.fromJSON(object.list_activity) : undefined,
|
|
982
1011
|
dropdown_box_selected: isSet(object.dropdown_box_selected)
|
|
983
1012
|
? DropdownBoxSelected.fromJSON(object.dropdown_box_selected)
|
|
@@ -985,13 +1014,26 @@ export const Envelope = {
|
|
|
985
1014
|
incoming_call_push: isSet(object.incoming_call_push)
|
|
986
1015
|
? IncomingCallPush.fromJSON(object.incoming_call_push)
|
|
987
1016
|
: undefined,
|
|
988
|
-
ptt_joined_event: isSet(object.ptt_joined_event) ? PTTJoinedEvent.fromJSON(object.ptt_joined_event) : undefined,
|
|
989
|
-
ptt_leaved_event: isSet(object.ptt_leaved_event) ? PTTLeavedEvent.fromJSON(object.ptt_leaved_event) : undefined,
|
|
990
1017
|
sd_topic_event: isSet(object.sd_topic_event) ? SdTopicEvent.fromJSON(object.sd_topic_event) : undefined,
|
|
991
1018
|
follow_event: isSet(object.follow_event) ? FollowEvent.fromJSON(object.follow_event) : undefined,
|
|
992
1019
|
channel_app_event: isSet(object.channel_app_event)
|
|
993
1020
|
? ChannelAppEvent.fromJSON(object.channel_app_event)
|
|
994
1021
|
: undefined,
|
|
1022
|
+
user_status_event: isSet(object.user_status_event)
|
|
1023
|
+
? UserStatusEvent.fromJSON(object.user_status_event)
|
|
1024
|
+
: undefined,
|
|
1025
|
+
remove_friend: isSet(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : undefined,
|
|
1026
|
+
webhook_event: isSet(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : undefined,
|
|
1027
|
+
noti_user_channel: isSet(object.noti_user_channel)
|
|
1028
|
+
? NotificationUserChannel.fromJSON(object.noti_user_channel)
|
|
1029
|
+
: undefined,
|
|
1030
|
+
join_channel_app_data: isSet(object.join_channel_app_data)
|
|
1031
|
+
? JoinChannelAppData.fromJSON(object.join_channel_app_data)
|
|
1032
|
+
: undefined,
|
|
1033
|
+
canvas_event: isSet(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : undefined,
|
|
1034
|
+
unpin_message_event: isSet(object.unpin_message_event)
|
|
1035
|
+
? UnpinMessageEvent.fromJSON(object.unpin_message_event)
|
|
1036
|
+
: undefined,
|
|
995
1037
|
};
|
|
996
1038
|
},
|
|
997
1039
|
toJSON(message) {
|
|
@@ -1182,12 +1224,6 @@ export const Envelope = {
|
|
|
1182
1224
|
if (message.webrtc_signaling_fwd !== undefined) {
|
|
1183
1225
|
obj.webrtc_signaling_fwd = WebrtcSignalingFwd.toJSON(message.webrtc_signaling_fwd);
|
|
1184
1226
|
}
|
|
1185
|
-
if (message.join_ptt_channel !== undefined) {
|
|
1186
|
-
obj.join_ptt_channel = JoinPTTChannel.toJSON(message.join_ptt_channel);
|
|
1187
|
-
}
|
|
1188
|
-
if (message.talk_ptt_channel !== undefined) {
|
|
1189
|
-
obj.talk_ptt_channel = TalkPTTChannel.toJSON(message.talk_ptt_channel);
|
|
1190
|
-
}
|
|
1191
1227
|
if (message.list_activity !== undefined) {
|
|
1192
1228
|
obj.list_activity = ListActivity.toJSON(message.list_activity);
|
|
1193
1229
|
}
|
|
@@ -1197,12 +1233,6 @@ export const Envelope = {
|
|
|
1197
1233
|
if (message.incoming_call_push !== undefined) {
|
|
1198
1234
|
obj.incoming_call_push = IncomingCallPush.toJSON(message.incoming_call_push);
|
|
1199
1235
|
}
|
|
1200
|
-
if (message.ptt_joined_event !== undefined) {
|
|
1201
|
-
obj.ptt_joined_event = PTTJoinedEvent.toJSON(message.ptt_joined_event);
|
|
1202
|
-
}
|
|
1203
|
-
if (message.ptt_leaved_event !== undefined) {
|
|
1204
|
-
obj.ptt_leaved_event = PTTLeavedEvent.toJSON(message.ptt_leaved_event);
|
|
1205
|
-
}
|
|
1206
1236
|
if (message.sd_topic_event !== undefined) {
|
|
1207
1237
|
obj.sd_topic_event = SdTopicEvent.toJSON(message.sd_topic_event);
|
|
1208
1238
|
}
|
|
@@ -1212,6 +1242,27 @@ export const Envelope = {
|
|
|
1212
1242
|
if (message.channel_app_event !== undefined) {
|
|
1213
1243
|
obj.channel_app_event = ChannelAppEvent.toJSON(message.channel_app_event);
|
|
1214
1244
|
}
|
|
1245
|
+
if (message.user_status_event !== undefined) {
|
|
1246
|
+
obj.user_status_event = UserStatusEvent.toJSON(message.user_status_event);
|
|
1247
|
+
}
|
|
1248
|
+
if (message.remove_friend !== undefined) {
|
|
1249
|
+
obj.remove_friend = RemoveFriend.toJSON(message.remove_friend);
|
|
1250
|
+
}
|
|
1251
|
+
if (message.webhook_event !== undefined) {
|
|
1252
|
+
obj.webhook_event = Webhook.toJSON(message.webhook_event);
|
|
1253
|
+
}
|
|
1254
|
+
if (message.noti_user_channel !== undefined) {
|
|
1255
|
+
obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
|
|
1256
|
+
}
|
|
1257
|
+
if (message.join_channel_app_data !== undefined) {
|
|
1258
|
+
obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
|
|
1259
|
+
}
|
|
1260
|
+
if (message.canvas_event !== undefined) {
|
|
1261
|
+
obj.canvas_event = ChannelCanvas.toJSON(message.canvas_event);
|
|
1262
|
+
}
|
|
1263
|
+
if (message.unpin_message_event !== undefined) {
|
|
1264
|
+
obj.unpin_message_event = UnpinMessageEvent.toJSON(message.unpin_message_event);
|
|
1265
|
+
}
|
|
1215
1266
|
return obj;
|
|
1216
1267
|
},
|
|
1217
1268
|
create(base) {
|
|
@@ -1418,12 +1469,6 @@ export const Envelope = {
|
|
|
1418
1469
|
message.webrtc_signaling_fwd = (object.webrtc_signaling_fwd !== undefined && object.webrtc_signaling_fwd !== null)
|
|
1419
1470
|
? WebrtcSignalingFwd.fromPartial(object.webrtc_signaling_fwd)
|
|
1420
1471
|
: undefined;
|
|
1421
|
-
message.join_ptt_channel = (object.join_ptt_channel !== undefined && object.join_ptt_channel !== null)
|
|
1422
|
-
? JoinPTTChannel.fromPartial(object.join_ptt_channel)
|
|
1423
|
-
: undefined;
|
|
1424
|
-
message.talk_ptt_channel = (object.talk_ptt_channel !== undefined && object.talk_ptt_channel !== null)
|
|
1425
|
-
? TalkPTTChannel.fromPartial(object.talk_ptt_channel)
|
|
1426
|
-
: undefined;
|
|
1427
1472
|
message.list_activity = (object.list_activity !== undefined && object.list_activity !== null)
|
|
1428
1473
|
? ListActivity.fromPartial(object.list_activity)
|
|
1429
1474
|
: undefined;
|
|
@@ -1434,12 +1479,6 @@ export const Envelope = {
|
|
|
1434
1479
|
message.incoming_call_push = (object.incoming_call_push !== undefined && object.incoming_call_push !== null)
|
|
1435
1480
|
? IncomingCallPush.fromPartial(object.incoming_call_push)
|
|
1436
1481
|
: undefined;
|
|
1437
|
-
message.ptt_joined_event = (object.ptt_joined_event !== undefined && object.ptt_joined_event !== null)
|
|
1438
|
-
? PTTJoinedEvent.fromPartial(object.ptt_joined_event)
|
|
1439
|
-
: undefined;
|
|
1440
|
-
message.ptt_leaved_event = (object.ptt_leaved_event !== undefined && object.ptt_leaved_event !== null)
|
|
1441
|
-
? PTTLeavedEvent.fromPartial(object.ptt_leaved_event)
|
|
1442
|
-
: undefined;
|
|
1443
1482
|
message.sd_topic_event = (object.sd_topic_event !== undefined && object.sd_topic_event !== null)
|
|
1444
1483
|
? SdTopicEvent.fromPartial(object.sd_topic_event)
|
|
1445
1484
|
: undefined;
|
|
@@ -1449,6 +1488,28 @@ export const Envelope = {
|
|
|
1449
1488
|
message.channel_app_event = (object.channel_app_event !== undefined && object.channel_app_event !== null)
|
|
1450
1489
|
? ChannelAppEvent.fromPartial(object.channel_app_event)
|
|
1451
1490
|
: undefined;
|
|
1491
|
+
message.user_status_event = (object.user_status_event !== undefined && object.user_status_event !== null)
|
|
1492
|
+
? UserStatusEvent.fromPartial(object.user_status_event)
|
|
1493
|
+
: undefined;
|
|
1494
|
+
message.remove_friend = (object.remove_friend !== undefined && object.remove_friend !== null)
|
|
1495
|
+
? RemoveFriend.fromPartial(object.remove_friend)
|
|
1496
|
+
: undefined;
|
|
1497
|
+
message.webhook_event = (object.webhook_event !== undefined && object.webhook_event !== null)
|
|
1498
|
+
? Webhook.fromPartial(object.webhook_event)
|
|
1499
|
+
: undefined;
|
|
1500
|
+
message.noti_user_channel = (object.noti_user_channel !== undefined && object.noti_user_channel !== null)
|
|
1501
|
+
? NotificationUserChannel.fromPartial(object.noti_user_channel)
|
|
1502
|
+
: undefined;
|
|
1503
|
+
message.join_channel_app_data =
|
|
1504
|
+
(object.join_channel_app_data !== undefined && object.join_channel_app_data !== null)
|
|
1505
|
+
? JoinChannelAppData.fromPartial(object.join_channel_app_data)
|
|
1506
|
+
: undefined;
|
|
1507
|
+
message.canvas_event = (object.canvas_event !== undefined && object.canvas_event !== null)
|
|
1508
|
+
? ChannelCanvas.fromPartial(object.canvas_event)
|
|
1509
|
+
: undefined;
|
|
1510
|
+
message.unpin_message_event = (object.unpin_message_event !== undefined && object.unpin_message_event !== null)
|
|
1511
|
+
? UnpinMessageEvent.fromPartial(object.unpin_message_event)
|
|
1512
|
+
: undefined;
|
|
1452
1513
|
return message;
|
|
1453
1514
|
},
|
|
1454
1515
|
};
|
|
@@ -1489,6 +1550,165 @@ export const FollowEvent = {
|
|
|
1489
1550
|
return message;
|
|
1490
1551
|
},
|
|
1491
1552
|
};
|
|
1553
|
+
function createBaseChannelCanvas() {
|
|
1554
|
+
return {
|
|
1555
|
+
id: "",
|
|
1556
|
+
title: "",
|
|
1557
|
+
content: "",
|
|
1558
|
+
creator_id: "",
|
|
1559
|
+
editor_id: "",
|
|
1560
|
+
is_default: false,
|
|
1561
|
+
channel_id: "",
|
|
1562
|
+
status: 0,
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
export const ChannelCanvas = {
|
|
1566
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1567
|
+
if (message.id !== "") {
|
|
1568
|
+
writer.uint32(10).string(message.id);
|
|
1569
|
+
}
|
|
1570
|
+
if (message.title !== "") {
|
|
1571
|
+
writer.uint32(18).string(message.title);
|
|
1572
|
+
}
|
|
1573
|
+
if (message.content !== "") {
|
|
1574
|
+
writer.uint32(26).string(message.content);
|
|
1575
|
+
}
|
|
1576
|
+
if (message.creator_id !== "") {
|
|
1577
|
+
writer.uint32(34).string(message.creator_id);
|
|
1578
|
+
}
|
|
1579
|
+
if (message.editor_id !== "") {
|
|
1580
|
+
writer.uint32(42).string(message.editor_id);
|
|
1581
|
+
}
|
|
1582
|
+
if (message.is_default !== false) {
|
|
1583
|
+
writer.uint32(48).bool(message.is_default);
|
|
1584
|
+
}
|
|
1585
|
+
if (message.channel_id !== "") {
|
|
1586
|
+
writer.uint32(58).string(message.channel_id);
|
|
1587
|
+
}
|
|
1588
|
+
if (message.status !== 0) {
|
|
1589
|
+
writer.uint32(64).int32(message.status);
|
|
1590
|
+
}
|
|
1591
|
+
return writer;
|
|
1592
|
+
},
|
|
1593
|
+
decode(input, length) {
|
|
1594
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1595
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1596
|
+
const message = createBaseChannelCanvas();
|
|
1597
|
+
while (reader.pos < end) {
|
|
1598
|
+
const tag = reader.uint32();
|
|
1599
|
+
switch (tag >>> 3) {
|
|
1600
|
+
case 1:
|
|
1601
|
+
if (tag !== 10) {
|
|
1602
|
+
break;
|
|
1603
|
+
}
|
|
1604
|
+
message.id = reader.string();
|
|
1605
|
+
continue;
|
|
1606
|
+
case 2:
|
|
1607
|
+
if (tag !== 18) {
|
|
1608
|
+
break;
|
|
1609
|
+
}
|
|
1610
|
+
message.title = reader.string();
|
|
1611
|
+
continue;
|
|
1612
|
+
case 3:
|
|
1613
|
+
if (tag !== 26) {
|
|
1614
|
+
break;
|
|
1615
|
+
}
|
|
1616
|
+
message.content = reader.string();
|
|
1617
|
+
continue;
|
|
1618
|
+
case 4:
|
|
1619
|
+
if (tag !== 34) {
|
|
1620
|
+
break;
|
|
1621
|
+
}
|
|
1622
|
+
message.creator_id = reader.string();
|
|
1623
|
+
continue;
|
|
1624
|
+
case 5:
|
|
1625
|
+
if (tag !== 42) {
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
message.editor_id = reader.string();
|
|
1629
|
+
continue;
|
|
1630
|
+
case 6:
|
|
1631
|
+
if (tag !== 48) {
|
|
1632
|
+
break;
|
|
1633
|
+
}
|
|
1634
|
+
message.is_default = reader.bool();
|
|
1635
|
+
continue;
|
|
1636
|
+
case 7:
|
|
1637
|
+
if (tag !== 58) {
|
|
1638
|
+
break;
|
|
1639
|
+
}
|
|
1640
|
+
message.channel_id = reader.string();
|
|
1641
|
+
continue;
|
|
1642
|
+
case 8:
|
|
1643
|
+
if (tag !== 64) {
|
|
1644
|
+
break;
|
|
1645
|
+
}
|
|
1646
|
+
message.status = reader.int32();
|
|
1647
|
+
continue;
|
|
1648
|
+
}
|
|
1649
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1650
|
+
break;
|
|
1651
|
+
}
|
|
1652
|
+
reader.skipType(tag & 7);
|
|
1653
|
+
}
|
|
1654
|
+
return message;
|
|
1655
|
+
},
|
|
1656
|
+
fromJSON(object) {
|
|
1657
|
+
return {
|
|
1658
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1659
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
1660
|
+
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
1661
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
1662
|
+
editor_id: isSet(object.editor_id) ? globalThis.String(object.editor_id) : "",
|
|
1663
|
+
is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
1664
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
1665
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
1666
|
+
};
|
|
1667
|
+
},
|
|
1668
|
+
toJSON(message) {
|
|
1669
|
+
const obj = {};
|
|
1670
|
+
if (message.id !== "") {
|
|
1671
|
+
obj.id = message.id;
|
|
1672
|
+
}
|
|
1673
|
+
if (message.title !== "") {
|
|
1674
|
+
obj.title = message.title;
|
|
1675
|
+
}
|
|
1676
|
+
if (message.content !== "") {
|
|
1677
|
+
obj.content = message.content;
|
|
1678
|
+
}
|
|
1679
|
+
if (message.creator_id !== "") {
|
|
1680
|
+
obj.creator_id = message.creator_id;
|
|
1681
|
+
}
|
|
1682
|
+
if (message.editor_id !== "") {
|
|
1683
|
+
obj.editor_id = message.editor_id;
|
|
1684
|
+
}
|
|
1685
|
+
if (message.is_default !== false) {
|
|
1686
|
+
obj.is_default = message.is_default;
|
|
1687
|
+
}
|
|
1688
|
+
if (message.channel_id !== "") {
|
|
1689
|
+
obj.channel_id = message.channel_id;
|
|
1690
|
+
}
|
|
1691
|
+
if (message.status !== 0) {
|
|
1692
|
+
obj.status = Math.round(message.status);
|
|
1693
|
+
}
|
|
1694
|
+
return obj;
|
|
1695
|
+
},
|
|
1696
|
+
create(base) {
|
|
1697
|
+
return ChannelCanvas.fromPartial(base ?? {});
|
|
1698
|
+
},
|
|
1699
|
+
fromPartial(object) {
|
|
1700
|
+
const message = createBaseChannelCanvas();
|
|
1701
|
+
message.id = object.id ?? "";
|
|
1702
|
+
message.title = object.title ?? "";
|
|
1703
|
+
message.content = object.content ?? "";
|
|
1704
|
+
message.creator_id = object.creator_id ?? "";
|
|
1705
|
+
message.editor_id = object.editor_id ?? "";
|
|
1706
|
+
message.is_default = object.is_default ?? false;
|
|
1707
|
+
message.channel_id = object.channel_id ?? "";
|
|
1708
|
+
message.status = object.status ?? 0;
|
|
1709
|
+
return message;
|
|
1710
|
+
},
|
|
1711
|
+
};
|
|
1492
1712
|
function createBaseIncomingCallPush() {
|
|
1493
1713
|
return { receiver_id: "", json_data: "", channel_id: "", caller_id: "" };
|
|
1494
1714
|
}
|
|
@@ -1691,23 +1911,32 @@ export const WebrtcSignalingFwd = {
|
|
|
1691
1911
|
return message;
|
|
1692
1912
|
},
|
|
1693
1913
|
};
|
|
1694
|
-
function
|
|
1695
|
-
return { clan_id: "",
|
|
1914
|
+
function createBaseSFUSignalingFwd() {
|
|
1915
|
+
return { clan_id: "", channel_id: "", data_type: 0, json_data: "", user_id: "" };
|
|
1696
1916
|
}
|
|
1697
|
-
export const
|
|
1917
|
+
export const SFUSignalingFwd = {
|
|
1698
1918
|
encode(message, writer = _m0.Writer.create()) {
|
|
1699
1919
|
if (message.clan_id !== "") {
|
|
1700
1920
|
writer.uint32(10).string(message.clan_id);
|
|
1701
1921
|
}
|
|
1702
|
-
if (message.
|
|
1703
|
-
|
|
1922
|
+
if (message.channel_id !== "") {
|
|
1923
|
+
writer.uint32(18).string(message.channel_id);
|
|
1924
|
+
}
|
|
1925
|
+
if (message.data_type !== 0) {
|
|
1926
|
+
writer.uint32(24).int32(message.data_type);
|
|
1927
|
+
}
|
|
1928
|
+
if (message.json_data !== "") {
|
|
1929
|
+
writer.uint32(34).string(message.json_data);
|
|
1930
|
+
}
|
|
1931
|
+
if (message.user_id !== "") {
|
|
1932
|
+
writer.uint32(42).string(message.user_id);
|
|
1704
1933
|
}
|
|
1705
1934
|
return writer;
|
|
1706
1935
|
},
|
|
1707
1936
|
decode(input, length) {
|
|
1708
1937
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1709
1938
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1710
|
-
const message =
|
|
1939
|
+
const message = createBaseSFUSignalingFwd();
|
|
1711
1940
|
while (reader.pos < end) {
|
|
1712
1941
|
const tag = reader.uint32();
|
|
1713
1942
|
switch (tag >>> 3) {
|
|
@@ -1721,7 +1950,25 @@ export const AddClanUserEvent = {
|
|
|
1721
1950
|
if (tag !== 18) {
|
|
1722
1951
|
break;
|
|
1723
1952
|
}
|
|
1724
|
-
message.
|
|
1953
|
+
message.channel_id = reader.string();
|
|
1954
|
+
continue;
|
|
1955
|
+
case 3:
|
|
1956
|
+
if (tag !== 24) {
|
|
1957
|
+
break;
|
|
1958
|
+
}
|
|
1959
|
+
message.data_type = reader.int32();
|
|
1960
|
+
continue;
|
|
1961
|
+
case 4:
|
|
1962
|
+
if (tag !== 34) {
|
|
1963
|
+
break;
|
|
1964
|
+
}
|
|
1965
|
+
message.json_data = reader.string();
|
|
1966
|
+
continue;
|
|
1967
|
+
case 5:
|
|
1968
|
+
if (tag !== 42) {
|
|
1969
|
+
break;
|
|
1970
|
+
}
|
|
1971
|
+
message.user_id = reader.string();
|
|
1725
1972
|
continue;
|
|
1726
1973
|
}
|
|
1727
1974
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1734,7 +1981,10 @@ export const AddClanUserEvent = {
|
|
|
1734
1981
|
fromJSON(object) {
|
|
1735
1982
|
return {
|
|
1736
1983
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
1737
|
-
|
|
1984
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
1985
|
+
data_type: isSet(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
1986
|
+
json_data: isSet(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
1987
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
1738
1988
|
};
|
|
1739
1989
|
},
|
|
1740
1990
|
toJSON(message) {
|
|
@@ -1742,29 +1992,107 @@ export const AddClanUserEvent = {
|
|
|
1742
1992
|
if (message.clan_id !== "") {
|
|
1743
1993
|
obj.clan_id = message.clan_id;
|
|
1744
1994
|
}
|
|
1745
|
-
if (message.
|
|
1746
|
-
obj.
|
|
1995
|
+
if (message.channel_id !== "") {
|
|
1996
|
+
obj.channel_id = message.channel_id;
|
|
1997
|
+
}
|
|
1998
|
+
if (message.data_type !== 0) {
|
|
1999
|
+
obj.data_type = Math.round(message.data_type);
|
|
2000
|
+
}
|
|
2001
|
+
if (message.json_data !== "") {
|
|
2002
|
+
obj.json_data = message.json_data;
|
|
2003
|
+
}
|
|
2004
|
+
if (message.user_id !== "") {
|
|
2005
|
+
obj.user_id = message.user_id;
|
|
1747
2006
|
}
|
|
1748
2007
|
return obj;
|
|
1749
2008
|
},
|
|
1750
2009
|
create(base) {
|
|
1751
|
-
return
|
|
2010
|
+
return SFUSignalingFwd.fromPartial(base ?? {});
|
|
1752
2011
|
},
|
|
1753
2012
|
fromPartial(object) {
|
|
1754
|
-
const message =
|
|
2013
|
+
const message = createBaseSFUSignalingFwd();
|
|
1755
2014
|
message.clan_id = object.clan_id ?? "";
|
|
1756
|
-
message.
|
|
1757
|
-
|
|
1758
|
-
|
|
2015
|
+
message.channel_id = object.channel_id ?? "";
|
|
2016
|
+
message.data_type = object.data_type ?? 0;
|
|
2017
|
+
message.json_data = object.json_data ?? "";
|
|
2018
|
+
message.user_id = object.user_id ?? "";
|
|
1759
2019
|
return message;
|
|
1760
2020
|
},
|
|
1761
2021
|
};
|
|
1762
|
-
function
|
|
1763
|
-
return {
|
|
2022
|
+
function createBaseAddClanUserEvent() {
|
|
2023
|
+
return { clan_id: "", user: undefined };
|
|
1764
2024
|
}
|
|
1765
|
-
export const
|
|
2025
|
+
export const AddClanUserEvent = {
|
|
1766
2026
|
encode(message, writer = _m0.Writer.create()) {
|
|
1767
|
-
if (message.
|
|
2027
|
+
if (message.clan_id !== "") {
|
|
2028
|
+
writer.uint32(10).string(message.clan_id);
|
|
2029
|
+
}
|
|
2030
|
+
if (message.user !== undefined) {
|
|
2031
|
+
UserProfileRedis.encode(message.user, writer.uint32(18).fork()).ldelim();
|
|
2032
|
+
}
|
|
2033
|
+
return writer;
|
|
2034
|
+
},
|
|
2035
|
+
decode(input, length) {
|
|
2036
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2037
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2038
|
+
const message = createBaseAddClanUserEvent();
|
|
2039
|
+
while (reader.pos < end) {
|
|
2040
|
+
const tag = reader.uint32();
|
|
2041
|
+
switch (tag >>> 3) {
|
|
2042
|
+
case 1:
|
|
2043
|
+
if (tag !== 10) {
|
|
2044
|
+
break;
|
|
2045
|
+
}
|
|
2046
|
+
message.clan_id = reader.string();
|
|
2047
|
+
continue;
|
|
2048
|
+
case 2:
|
|
2049
|
+
if (tag !== 18) {
|
|
2050
|
+
break;
|
|
2051
|
+
}
|
|
2052
|
+
message.user = UserProfileRedis.decode(reader, reader.uint32());
|
|
2053
|
+
continue;
|
|
2054
|
+
}
|
|
2055
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2056
|
+
break;
|
|
2057
|
+
}
|
|
2058
|
+
reader.skipType(tag & 7);
|
|
2059
|
+
}
|
|
2060
|
+
return message;
|
|
2061
|
+
},
|
|
2062
|
+
fromJSON(object) {
|
|
2063
|
+
return {
|
|
2064
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
2065
|
+
user: isSet(object.user) ? UserProfileRedis.fromJSON(object.user) : undefined,
|
|
2066
|
+
};
|
|
2067
|
+
},
|
|
2068
|
+
toJSON(message) {
|
|
2069
|
+
const obj = {};
|
|
2070
|
+
if (message.clan_id !== "") {
|
|
2071
|
+
obj.clan_id = message.clan_id;
|
|
2072
|
+
}
|
|
2073
|
+
if (message.user !== undefined) {
|
|
2074
|
+
obj.user = UserProfileRedis.toJSON(message.user);
|
|
2075
|
+
}
|
|
2076
|
+
return obj;
|
|
2077
|
+
},
|
|
2078
|
+
create(base) {
|
|
2079
|
+
return AddClanUserEvent.fromPartial(base ?? {});
|
|
2080
|
+
},
|
|
2081
|
+
fromPartial(object) {
|
|
2082
|
+
const message = createBaseAddClanUserEvent();
|
|
2083
|
+
message.clan_id = object.clan_id ?? "";
|
|
2084
|
+
message.user = (object.user !== undefined && object.user !== null)
|
|
2085
|
+
? UserProfileRedis.fromPartial(object.user)
|
|
2086
|
+
: undefined;
|
|
2087
|
+
return message;
|
|
2088
|
+
},
|
|
2089
|
+
};
|
|
2090
|
+
function createBaseRoleAssignedEvent() {
|
|
2091
|
+
return { ClanId: "", role_id: "", user_ids_assigned: [], user_ids_removed: [] };
|
|
2092
|
+
}
|
|
2093
|
+
export const RoleAssignedEvent = {
|
|
2094
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2095
|
+
if (message.ClanId !== "") {
|
|
1768
2096
|
writer.uint32(10).string(message.ClanId);
|
|
1769
2097
|
}
|
|
1770
2098
|
if (message.role_id !== "") {
|
|
@@ -1932,7 +2260,7 @@ function createBaseHashtagDm() {
|
|
|
1932
2260
|
meeting_code: "",
|
|
1933
2261
|
type: 0,
|
|
1934
2262
|
channel_private: 0,
|
|
1935
|
-
|
|
2263
|
+
parent_id: "",
|
|
1936
2264
|
};
|
|
1937
2265
|
}
|
|
1938
2266
|
export const HashtagDm = {
|
|
@@ -1958,8 +2286,8 @@ export const HashtagDm = {
|
|
|
1958
2286
|
if (message.channel_private !== 0) {
|
|
1959
2287
|
writer.uint32(56).int32(message.channel_private);
|
|
1960
2288
|
}
|
|
1961
|
-
if (message.
|
|
1962
|
-
writer.uint32(66).string(message.
|
|
2289
|
+
if (message.parent_id !== "") {
|
|
2290
|
+
writer.uint32(66).string(message.parent_id);
|
|
1963
2291
|
}
|
|
1964
2292
|
return writer;
|
|
1965
2293
|
},
|
|
@@ -2016,7 +2344,7 @@ export const HashtagDm = {
|
|
|
2016
2344
|
if (tag !== 66) {
|
|
2017
2345
|
break;
|
|
2018
2346
|
}
|
|
2019
|
-
message.
|
|
2347
|
+
message.parent_id = reader.string();
|
|
2020
2348
|
continue;
|
|
2021
2349
|
}
|
|
2022
2350
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -2035,7 +2363,7 @@ export const HashtagDm = {
|
|
|
2035
2363
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
2036
2364
|
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
2037
2365
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
2038
|
-
|
|
2366
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
2039
2367
|
};
|
|
2040
2368
|
},
|
|
2041
2369
|
toJSON(message) {
|
|
@@ -2061,8 +2389,8 @@ export const HashtagDm = {
|
|
|
2061
2389
|
if (message.channel_private !== 0) {
|
|
2062
2390
|
obj.channel_private = Math.round(message.channel_private);
|
|
2063
2391
|
}
|
|
2064
|
-
if (message.
|
|
2065
|
-
obj.
|
|
2392
|
+
if (message.parent_id !== "") {
|
|
2393
|
+
obj.parent_id = message.parent_id;
|
|
2066
2394
|
}
|
|
2067
2395
|
return obj;
|
|
2068
2396
|
},
|
|
@@ -2078,7 +2406,7 @@ export const HashtagDm = {
|
|
|
2078
2406
|
message.meeting_code = object.meeting_code ?? "";
|
|
2079
2407
|
message.type = object.type ?? 0;
|
|
2080
2408
|
message.channel_private = object.channel_private ?? 0;
|
|
2081
|
-
message.
|
|
2409
|
+
message.parent_id = object.parent_id ?? "";
|
|
2082
2410
|
return message;
|
|
2083
2411
|
},
|
|
2084
2412
|
};
|
|
@@ -2091,7 +2419,7 @@ function createBaseChannelDescription() {
|
|
|
2091
2419
|
channel_private: 0,
|
|
2092
2420
|
meeting_code: "",
|
|
2093
2421
|
clan_name: "",
|
|
2094
|
-
|
|
2422
|
+
parent_id: "",
|
|
2095
2423
|
last_sent_message: undefined,
|
|
2096
2424
|
};
|
|
2097
2425
|
}
|
|
@@ -2118,8 +2446,8 @@ export const ChannelDescription = {
|
|
|
2118
2446
|
if (message.clan_name !== "") {
|
|
2119
2447
|
writer.uint32(58).string(message.clan_name);
|
|
2120
2448
|
}
|
|
2121
|
-
if (message.
|
|
2122
|
-
writer.uint32(66).string(message.
|
|
2449
|
+
if (message.parent_id !== "") {
|
|
2450
|
+
writer.uint32(66).string(message.parent_id);
|
|
2123
2451
|
}
|
|
2124
2452
|
if (message.last_sent_message !== undefined) {
|
|
2125
2453
|
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
|
|
@@ -2179,7 +2507,7 @@ export const ChannelDescription = {
|
|
|
2179
2507
|
if (tag !== 66) {
|
|
2180
2508
|
break;
|
|
2181
2509
|
}
|
|
2182
|
-
message.
|
|
2510
|
+
message.parent_id = reader.string();
|
|
2183
2511
|
continue;
|
|
2184
2512
|
case 12:
|
|
2185
2513
|
if (tag !== 98) {
|
|
@@ -2204,7 +2532,7 @@ export const ChannelDescription = {
|
|
|
2204
2532
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
2205
2533
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
2206
2534
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
2207
|
-
|
|
2535
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
2208
2536
|
last_sent_message: isSet(object.last_sent_message)
|
|
2209
2537
|
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
2210
2538
|
: undefined,
|
|
@@ -2233,8 +2561,8 @@ export const ChannelDescription = {
|
|
|
2233
2561
|
if (message.clan_name !== "") {
|
|
2234
2562
|
obj.clan_name = message.clan_name;
|
|
2235
2563
|
}
|
|
2236
|
-
if (message.
|
|
2237
|
-
obj.
|
|
2564
|
+
if (message.parent_id !== "") {
|
|
2565
|
+
obj.parent_id = message.parent_id;
|
|
2238
2566
|
}
|
|
2239
2567
|
if (message.last_sent_message !== undefined) {
|
|
2240
2568
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
@@ -2253,7 +2581,7 @@ export const ChannelDescription = {
|
|
|
2253
2581
|
message.channel_private = object.channel_private ?? 0;
|
|
2254
2582
|
message.meeting_code = object.meeting_code ?? "";
|
|
2255
2583
|
message.clan_name = object.clan_name ?? "";
|
|
2256
|
-
message.
|
|
2584
|
+
message.parent_id = object.parent_id ?? "";
|
|
2257
2585
|
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
2258
2586
|
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
2259
2587
|
: undefined;
|
|
@@ -3200,6 +3528,7 @@ function createBaseChannelMessageUpdate() {
|
|
|
3200
3528
|
is_public: false,
|
|
3201
3529
|
hide_editted: false,
|
|
3202
3530
|
topic_id: "",
|
|
3531
|
+
is_update_msg_topic: false,
|
|
3203
3532
|
};
|
|
3204
3533
|
}
|
|
3205
3534
|
export const ChannelMessageUpdate = {
|
|
@@ -3234,6 +3563,9 @@ export const ChannelMessageUpdate = {
|
|
|
3234
3563
|
if (message.topic_id !== "") {
|
|
3235
3564
|
writer.uint32(82).string(message.topic_id);
|
|
3236
3565
|
}
|
|
3566
|
+
if (message.is_update_msg_topic !== false) {
|
|
3567
|
+
writer.uint32(88).bool(message.is_update_msg_topic);
|
|
3568
|
+
}
|
|
3237
3569
|
return writer;
|
|
3238
3570
|
},
|
|
3239
3571
|
decode(input, length) {
|
|
@@ -3303,6 +3635,12 @@ export const ChannelMessageUpdate = {
|
|
|
3303
3635
|
}
|
|
3304
3636
|
message.topic_id = reader.string();
|
|
3305
3637
|
continue;
|
|
3638
|
+
case 11:
|
|
3639
|
+
if (tag !== 88) {
|
|
3640
|
+
break;
|
|
3641
|
+
}
|
|
3642
|
+
message.is_update_msg_topic = reader.bool();
|
|
3643
|
+
continue;
|
|
3306
3644
|
}
|
|
3307
3645
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3308
3646
|
break;
|
|
@@ -3327,6 +3665,7 @@ export const ChannelMessageUpdate = {
|
|
|
3327
3665
|
is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
3328
3666
|
hide_editted: isSet(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
|
|
3329
3667
|
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
3668
|
+
is_update_msg_topic: isSet(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
|
|
3330
3669
|
};
|
|
3331
3670
|
},
|
|
3332
3671
|
toJSON(message) {
|
|
@@ -3361,6 +3700,9 @@ export const ChannelMessageUpdate = {
|
|
|
3361
3700
|
if (message.topic_id !== "") {
|
|
3362
3701
|
obj.topic_id = message.topic_id;
|
|
3363
3702
|
}
|
|
3703
|
+
if (message.is_update_msg_topic !== false) {
|
|
3704
|
+
obj.is_update_msg_topic = message.is_update_msg_topic;
|
|
3705
|
+
}
|
|
3364
3706
|
return obj;
|
|
3365
3707
|
},
|
|
3366
3708
|
create(base) {
|
|
@@ -3378,11 +3720,20 @@ export const ChannelMessageUpdate = {
|
|
|
3378
3720
|
message.is_public = object.is_public ?? false;
|
|
3379
3721
|
message.hide_editted = object.hide_editted ?? false;
|
|
3380
3722
|
message.topic_id = object.topic_id ?? "";
|
|
3723
|
+
message.is_update_msg_topic = object.is_update_msg_topic ?? false;
|
|
3381
3724
|
return message;
|
|
3382
3725
|
},
|
|
3383
3726
|
};
|
|
3384
3727
|
function createBaseChannelMessageRemove() {
|
|
3385
|
-
return {
|
|
3728
|
+
return {
|
|
3729
|
+
clan_id: "",
|
|
3730
|
+
channel_id: "",
|
|
3731
|
+
message_id: "",
|
|
3732
|
+
mode: 0,
|
|
3733
|
+
is_public: false,
|
|
3734
|
+
has_attachment: false,
|
|
3735
|
+
topic_id: "",
|
|
3736
|
+
};
|
|
3386
3737
|
}
|
|
3387
3738
|
export const ChannelMessageRemove = {
|
|
3388
3739
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -3404,6 +3755,9 @@ export const ChannelMessageRemove = {
|
|
|
3404
3755
|
if (message.has_attachment !== false) {
|
|
3405
3756
|
writer.uint32(48).bool(message.has_attachment);
|
|
3406
3757
|
}
|
|
3758
|
+
if (message.topic_id !== "") {
|
|
3759
|
+
writer.uint32(58).string(message.topic_id);
|
|
3760
|
+
}
|
|
3407
3761
|
return writer;
|
|
3408
3762
|
},
|
|
3409
3763
|
decode(input, length) {
|
|
@@ -3449,6 +3803,12 @@ export const ChannelMessageRemove = {
|
|
|
3449
3803
|
}
|
|
3450
3804
|
message.has_attachment = reader.bool();
|
|
3451
3805
|
continue;
|
|
3806
|
+
case 7:
|
|
3807
|
+
if (tag !== 58) {
|
|
3808
|
+
break;
|
|
3809
|
+
}
|
|
3810
|
+
message.topic_id = reader.string();
|
|
3811
|
+
continue;
|
|
3452
3812
|
}
|
|
3453
3813
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3454
3814
|
break;
|
|
@@ -3465,6 +3825,7 @@ export const ChannelMessageRemove = {
|
|
|
3465
3825
|
mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
|
|
3466
3826
|
is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
3467
3827
|
has_attachment: isSet(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false,
|
|
3828
|
+
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
3468
3829
|
};
|
|
3469
3830
|
},
|
|
3470
3831
|
toJSON(message) {
|
|
@@ -3487,6 +3848,9 @@ export const ChannelMessageRemove = {
|
|
|
3487
3848
|
if (message.has_attachment !== false) {
|
|
3488
3849
|
obj.has_attachment = message.has_attachment;
|
|
3489
3850
|
}
|
|
3851
|
+
if (message.topic_id !== "") {
|
|
3852
|
+
obj.topic_id = message.topic_id;
|
|
3853
|
+
}
|
|
3490
3854
|
return obj;
|
|
3491
3855
|
},
|
|
3492
3856
|
create(base) {
|
|
@@ -3500,6 +3864,7 @@ export const ChannelMessageRemove = {
|
|
|
3500
3864
|
message.mode = object.mode ?? 0;
|
|
3501
3865
|
message.is_public = object.is_public ?? false;
|
|
3502
3866
|
message.has_attachment = object.has_attachment ?? false;
|
|
3867
|
+
message.topic_id = object.topic_id ?? "";
|
|
3503
3868
|
return message;
|
|
3504
3869
|
},
|
|
3505
3870
|
};
|
|
@@ -3844,6 +4209,56 @@ export const Notifications = {
|
|
|
3844
4209
|
return message;
|
|
3845
4210
|
},
|
|
3846
4211
|
};
|
|
4212
|
+
function createBaseRemoveFriend() {
|
|
4213
|
+
return { user_id: "" };
|
|
4214
|
+
}
|
|
4215
|
+
export const RemoveFriend = {
|
|
4216
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
4217
|
+
if (message.user_id !== "") {
|
|
4218
|
+
writer.uint32(10).string(message.user_id);
|
|
4219
|
+
}
|
|
4220
|
+
return writer;
|
|
4221
|
+
},
|
|
4222
|
+
decode(input, length) {
|
|
4223
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
4224
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4225
|
+
const message = createBaseRemoveFriend();
|
|
4226
|
+
while (reader.pos < end) {
|
|
4227
|
+
const tag = reader.uint32();
|
|
4228
|
+
switch (tag >>> 3) {
|
|
4229
|
+
case 1:
|
|
4230
|
+
if (tag !== 10) {
|
|
4231
|
+
break;
|
|
4232
|
+
}
|
|
4233
|
+
message.user_id = reader.string();
|
|
4234
|
+
continue;
|
|
4235
|
+
}
|
|
4236
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4237
|
+
break;
|
|
4238
|
+
}
|
|
4239
|
+
reader.skipType(tag & 7);
|
|
4240
|
+
}
|
|
4241
|
+
return message;
|
|
4242
|
+
},
|
|
4243
|
+
fromJSON(object) {
|
|
4244
|
+
return { user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "" };
|
|
4245
|
+
},
|
|
4246
|
+
toJSON(message) {
|
|
4247
|
+
const obj = {};
|
|
4248
|
+
if (message.user_id !== "") {
|
|
4249
|
+
obj.user_id = message.user_id;
|
|
4250
|
+
}
|
|
4251
|
+
return obj;
|
|
4252
|
+
},
|
|
4253
|
+
create(base) {
|
|
4254
|
+
return RemoveFriend.fromPartial(base ?? {});
|
|
4255
|
+
},
|
|
4256
|
+
fromPartial(object) {
|
|
4257
|
+
const message = createBaseRemoveFriend();
|
|
4258
|
+
message.user_id = object.user_id ?? "";
|
|
4259
|
+
return message;
|
|
4260
|
+
},
|
|
4261
|
+
};
|
|
3847
4262
|
function createBasePing() {
|
|
3848
4263
|
return {};
|
|
3849
4264
|
}
|
|
@@ -5299,13 +5714,14 @@ function createBaseChannelCreatedEvent() {
|
|
|
5299
5714
|
clan_id: "",
|
|
5300
5715
|
category_id: "",
|
|
5301
5716
|
creator_id: "",
|
|
5302
|
-
|
|
5717
|
+
parent_id: "",
|
|
5303
5718
|
channel_id: "",
|
|
5304
5719
|
channel_label: "",
|
|
5305
5720
|
channel_private: 0,
|
|
5306
5721
|
channel_type: undefined,
|
|
5307
5722
|
status: 0,
|
|
5308
5723
|
app_url: "",
|
|
5724
|
+
clan_name: "",
|
|
5309
5725
|
};
|
|
5310
5726
|
}
|
|
5311
5727
|
export const ChannelCreatedEvent = {
|
|
@@ -5319,8 +5735,8 @@ export const ChannelCreatedEvent = {
|
|
|
5319
5735
|
if (message.creator_id !== "") {
|
|
5320
5736
|
writer.uint32(26).string(message.creator_id);
|
|
5321
5737
|
}
|
|
5322
|
-
if (message.
|
|
5323
|
-
writer.uint32(34).string(message.
|
|
5738
|
+
if (message.parent_id !== "") {
|
|
5739
|
+
writer.uint32(34).string(message.parent_id);
|
|
5324
5740
|
}
|
|
5325
5741
|
if (message.channel_id !== "") {
|
|
5326
5742
|
writer.uint32(42).string(message.channel_id);
|
|
@@ -5340,6 +5756,9 @@ export const ChannelCreatedEvent = {
|
|
|
5340
5756
|
if (message.app_url !== "") {
|
|
5341
5757
|
writer.uint32(82).string(message.app_url);
|
|
5342
5758
|
}
|
|
5759
|
+
if (message.clan_name !== "") {
|
|
5760
|
+
writer.uint32(90).string(message.clan_name);
|
|
5761
|
+
}
|
|
5343
5762
|
return writer;
|
|
5344
5763
|
},
|
|
5345
5764
|
decode(input, length) {
|
|
@@ -5371,7 +5790,7 @@ export const ChannelCreatedEvent = {
|
|
|
5371
5790
|
if (tag !== 34) {
|
|
5372
5791
|
break;
|
|
5373
5792
|
}
|
|
5374
|
-
message.
|
|
5793
|
+
message.parent_id = reader.string();
|
|
5375
5794
|
continue;
|
|
5376
5795
|
case 5:
|
|
5377
5796
|
if (tag !== 42) {
|
|
@@ -5409,6 +5828,12 @@ export const ChannelCreatedEvent = {
|
|
|
5409
5828
|
}
|
|
5410
5829
|
message.app_url = reader.string();
|
|
5411
5830
|
continue;
|
|
5831
|
+
case 11:
|
|
5832
|
+
if (tag !== 90) {
|
|
5833
|
+
break;
|
|
5834
|
+
}
|
|
5835
|
+
message.clan_name = reader.string();
|
|
5836
|
+
continue;
|
|
5412
5837
|
}
|
|
5413
5838
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5414
5839
|
break;
|
|
@@ -5422,13 +5847,14 @@ export const ChannelCreatedEvent = {
|
|
|
5422
5847
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
5423
5848
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
5424
5849
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
5425
|
-
|
|
5850
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
5426
5851
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
5427
5852
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
5428
5853
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
5429
5854
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
|
|
5430
5855
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
5431
5856
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
5857
|
+
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
5432
5858
|
};
|
|
5433
5859
|
},
|
|
5434
5860
|
toJSON(message) {
|
|
@@ -5442,8 +5868,8 @@ export const ChannelCreatedEvent = {
|
|
|
5442
5868
|
if (message.creator_id !== "") {
|
|
5443
5869
|
obj.creator_id = message.creator_id;
|
|
5444
5870
|
}
|
|
5445
|
-
if (message.
|
|
5446
|
-
obj.
|
|
5871
|
+
if (message.parent_id !== "") {
|
|
5872
|
+
obj.parent_id = message.parent_id;
|
|
5447
5873
|
}
|
|
5448
5874
|
if (message.channel_id !== "") {
|
|
5449
5875
|
obj.channel_id = message.channel_id;
|
|
@@ -5463,6 +5889,9 @@ export const ChannelCreatedEvent = {
|
|
|
5463
5889
|
if (message.app_url !== "") {
|
|
5464
5890
|
obj.app_url = message.app_url;
|
|
5465
5891
|
}
|
|
5892
|
+
if (message.clan_name !== "") {
|
|
5893
|
+
obj.clan_name = message.clan_name;
|
|
5894
|
+
}
|
|
5466
5895
|
return obj;
|
|
5467
5896
|
},
|
|
5468
5897
|
create(base) {
|
|
@@ -5473,13 +5902,14 @@ export const ChannelCreatedEvent = {
|
|
|
5473
5902
|
message.clan_id = object.clan_id ?? "";
|
|
5474
5903
|
message.category_id = object.category_id ?? "";
|
|
5475
5904
|
message.creator_id = object.creator_id ?? "";
|
|
5476
|
-
message.
|
|
5905
|
+
message.parent_id = object.parent_id ?? "";
|
|
5477
5906
|
message.channel_id = object.channel_id ?? "";
|
|
5478
5907
|
message.channel_label = object.channel_label ?? "";
|
|
5479
5908
|
message.channel_private = object.channel_private ?? 0;
|
|
5480
5909
|
message.channel_type = object.channel_type ?? undefined;
|
|
5481
5910
|
message.status = object.status ?? 0;
|
|
5482
5911
|
message.app_url = object.app_url ?? "";
|
|
5912
|
+
message.clan_name = object.clan_name ?? "";
|
|
5483
5913
|
return message;
|
|
5484
5914
|
},
|
|
5485
5915
|
};
|
|
@@ -5636,7 +6066,7 @@ export const RoleEvent = {
|
|
|
5636
6066
|
},
|
|
5637
6067
|
};
|
|
5638
6068
|
function createBaseChannelDeletedEvent() {
|
|
5639
|
-
return { clan_id: "", category_id: "",
|
|
6069
|
+
return { clan_id: "", category_id: "", parent_id: "", channel_id: "", deletor: "" };
|
|
5640
6070
|
}
|
|
5641
6071
|
export const ChannelDeletedEvent = {
|
|
5642
6072
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -5646,8 +6076,8 @@ export const ChannelDeletedEvent = {
|
|
|
5646
6076
|
if (message.category_id !== "") {
|
|
5647
6077
|
writer.uint32(18).string(message.category_id);
|
|
5648
6078
|
}
|
|
5649
|
-
if (message.
|
|
5650
|
-
writer.uint32(26).string(message.
|
|
6079
|
+
if (message.parent_id !== "") {
|
|
6080
|
+
writer.uint32(26).string(message.parent_id);
|
|
5651
6081
|
}
|
|
5652
6082
|
if (message.channel_id !== "") {
|
|
5653
6083
|
writer.uint32(34).string(message.channel_id);
|
|
@@ -5680,7 +6110,7 @@ export const ChannelDeletedEvent = {
|
|
|
5680
6110
|
if (tag !== 26) {
|
|
5681
6111
|
break;
|
|
5682
6112
|
}
|
|
5683
|
-
message.
|
|
6113
|
+
message.parent_id = reader.string();
|
|
5684
6114
|
continue;
|
|
5685
6115
|
case 4:
|
|
5686
6116
|
if (tag !== 34) {
|
|
@@ -5706,7 +6136,7 @@ export const ChannelDeletedEvent = {
|
|
|
5706
6136
|
return {
|
|
5707
6137
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
5708
6138
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
5709
|
-
|
|
6139
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
5710
6140
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
5711
6141
|
deletor: isSet(object.deletor) ? globalThis.String(object.deletor) : "",
|
|
5712
6142
|
};
|
|
@@ -5719,8 +6149,8 @@ export const ChannelDeletedEvent = {
|
|
|
5719
6149
|
if (message.category_id !== "") {
|
|
5720
6150
|
obj.category_id = message.category_id;
|
|
5721
6151
|
}
|
|
5722
|
-
if (message.
|
|
5723
|
-
obj.
|
|
6152
|
+
if (message.parent_id !== "") {
|
|
6153
|
+
obj.parent_id = message.parent_id;
|
|
5724
6154
|
}
|
|
5725
6155
|
if (message.channel_id !== "") {
|
|
5726
6156
|
obj.channel_id = message.channel_id;
|
|
@@ -5737,7 +6167,7 @@ export const ChannelDeletedEvent = {
|
|
|
5737
6167
|
const message = createBaseChannelDeletedEvent();
|
|
5738
6168
|
message.clan_id = object.clan_id ?? "";
|
|
5739
6169
|
message.category_id = object.category_id ?? "";
|
|
5740
|
-
message.
|
|
6170
|
+
message.parent_id = object.parent_id ?? "";
|
|
5741
6171
|
message.channel_id = object.channel_id ?? "";
|
|
5742
6172
|
message.deletor = object.deletor ?? "";
|
|
5743
6173
|
return message;
|
|
@@ -6119,7 +6549,7 @@ function createBaseChannelUpdatedEvent() {
|
|
|
6119
6549
|
clan_id: "",
|
|
6120
6550
|
category_id: "",
|
|
6121
6551
|
creator_id: "",
|
|
6122
|
-
|
|
6552
|
+
parent_id: "",
|
|
6123
6553
|
channel_id: "",
|
|
6124
6554
|
channel_label: "",
|
|
6125
6555
|
channel_type: undefined,
|
|
@@ -6144,8 +6574,8 @@ export const ChannelUpdatedEvent = {
|
|
|
6144
6574
|
if (message.creator_id !== "") {
|
|
6145
6575
|
writer.uint32(26).string(message.creator_id);
|
|
6146
6576
|
}
|
|
6147
|
-
if (message.
|
|
6148
|
-
writer.uint32(34).string(message.
|
|
6577
|
+
if (message.parent_id !== "") {
|
|
6578
|
+
writer.uint32(34).string(message.parent_id);
|
|
6149
6579
|
}
|
|
6150
6580
|
if (message.channel_id !== "") {
|
|
6151
6581
|
writer.uint32(42).string(message.channel_id);
|
|
@@ -6211,7 +6641,7 @@ export const ChannelUpdatedEvent = {
|
|
|
6211
6641
|
if (tag !== 34) {
|
|
6212
6642
|
break;
|
|
6213
6643
|
}
|
|
6214
|
-
message.
|
|
6644
|
+
message.parent_id = reader.string();
|
|
6215
6645
|
continue;
|
|
6216
6646
|
case 5:
|
|
6217
6647
|
if (tag !== 42) {
|
|
@@ -6292,7 +6722,7 @@ export const ChannelUpdatedEvent = {
|
|
|
6292
6722
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
6293
6723
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
6294
6724
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
6295
|
-
|
|
6725
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
6296
6726
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
6297
6727
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
6298
6728
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
|
|
@@ -6317,8 +6747,8 @@ export const ChannelUpdatedEvent = {
|
|
|
6317
6747
|
if (message.creator_id !== "") {
|
|
6318
6748
|
obj.creator_id = message.creator_id;
|
|
6319
6749
|
}
|
|
6320
|
-
if (message.
|
|
6321
|
-
obj.
|
|
6750
|
+
if (message.parent_id !== "") {
|
|
6751
|
+
obj.parent_id = message.parent_id;
|
|
6322
6752
|
}
|
|
6323
6753
|
if (message.channel_id !== "") {
|
|
6324
6754
|
obj.channel_id = message.channel_id;
|
|
@@ -6363,7 +6793,7 @@ export const ChannelUpdatedEvent = {
|
|
|
6363
6793
|
message.clan_id = object.clan_id ?? "";
|
|
6364
6794
|
message.category_id = object.category_id ?? "";
|
|
6365
6795
|
message.creator_id = object.creator_id ?? "";
|
|
6366
|
-
message.
|
|
6796
|
+
message.parent_id = object.parent_id ?? "";
|
|
6367
6797
|
message.channel_id = object.channel_id ?? "";
|
|
6368
6798
|
message.channel_label = object.channel_label ?? "";
|
|
6369
6799
|
message.channel_type = object.channel_type ?? undefined;
|
|
@@ -6899,7 +7329,7 @@ export const UserPresence = {
|
|
|
6899
7329
|
},
|
|
6900
7330
|
};
|
|
6901
7331
|
function createBaseCustomStatusEvent() {
|
|
6902
|
-
return { clan_id: "", user_id: "", username: "", status: "" };
|
|
7332
|
+
return { clan_id: "", user_id: "", username: "", status: "", time_reset: 0, no_clear: false };
|
|
6903
7333
|
}
|
|
6904
7334
|
export const CustomStatusEvent = {
|
|
6905
7335
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -6915,6 +7345,12 @@ export const CustomStatusEvent = {
|
|
|
6915
7345
|
if (message.status !== "") {
|
|
6916
7346
|
writer.uint32(34).string(message.status);
|
|
6917
7347
|
}
|
|
7348
|
+
if (message.time_reset !== 0) {
|
|
7349
|
+
writer.uint32(40).int32(message.time_reset);
|
|
7350
|
+
}
|
|
7351
|
+
if (message.no_clear !== false) {
|
|
7352
|
+
writer.uint32(48).bool(message.no_clear);
|
|
7353
|
+
}
|
|
6918
7354
|
return writer;
|
|
6919
7355
|
},
|
|
6920
7356
|
decode(input, length) {
|
|
@@ -6948,6 +7384,18 @@ export const CustomStatusEvent = {
|
|
|
6948
7384
|
}
|
|
6949
7385
|
message.status = reader.string();
|
|
6950
7386
|
continue;
|
|
7387
|
+
case 5:
|
|
7388
|
+
if (tag !== 40) {
|
|
7389
|
+
break;
|
|
7390
|
+
}
|
|
7391
|
+
message.time_reset = reader.int32();
|
|
7392
|
+
continue;
|
|
7393
|
+
case 6:
|
|
7394
|
+
if (tag !== 48) {
|
|
7395
|
+
break;
|
|
7396
|
+
}
|
|
7397
|
+
message.no_clear = reader.bool();
|
|
7398
|
+
continue;
|
|
6951
7399
|
}
|
|
6952
7400
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6953
7401
|
break;
|
|
@@ -6962,6 +7410,8 @@ export const CustomStatusEvent = {
|
|
|
6962
7410
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
6963
7411
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
6964
7412
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
7413
|
+
time_reset: isSet(object.time_reset) ? globalThis.Number(object.time_reset) : 0,
|
|
7414
|
+
no_clear: isSet(object.no_clear) ? globalThis.Boolean(object.no_clear) : false,
|
|
6965
7415
|
};
|
|
6966
7416
|
},
|
|
6967
7417
|
toJSON(message) {
|
|
@@ -6978,6 +7428,12 @@ export const CustomStatusEvent = {
|
|
|
6978
7428
|
if (message.status !== "") {
|
|
6979
7429
|
obj.status = message.status;
|
|
6980
7430
|
}
|
|
7431
|
+
if (message.time_reset !== 0) {
|
|
7432
|
+
obj.time_reset = Math.round(message.time_reset);
|
|
7433
|
+
}
|
|
7434
|
+
if (message.no_clear !== false) {
|
|
7435
|
+
obj.no_clear = message.no_clear;
|
|
7436
|
+
}
|
|
6981
7437
|
return obj;
|
|
6982
7438
|
},
|
|
6983
7439
|
create(base) {
|
|
@@ -6989,6 +7445,8 @@ export const CustomStatusEvent = {
|
|
|
6989
7445
|
message.user_id = object.user_id ?? "";
|
|
6990
7446
|
message.username = object.username ?? "";
|
|
6991
7447
|
message.status = object.status ?? "";
|
|
7448
|
+
message.time_reset = object.time_reset ?? 0;
|
|
7449
|
+
message.no_clear = object.no_clear ?? false;
|
|
6992
7450
|
return message;
|
|
6993
7451
|
},
|
|
6994
7452
|
};
|
|
@@ -7141,7 +7599,7 @@ export const UserChannelAdded = {
|
|
|
7141
7599
|
},
|
|
7142
7600
|
};
|
|
7143
7601
|
function createBaseUserChannelRemoved() {
|
|
7144
|
-
return { channel_id: "", user_ids: [], channel_type: 0 };
|
|
7602
|
+
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "" };
|
|
7145
7603
|
}
|
|
7146
7604
|
export const UserChannelRemoved = {
|
|
7147
7605
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7154,6 +7612,9 @@ export const UserChannelRemoved = {
|
|
|
7154
7612
|
if (message.channel_type !== 0) {
|
|
7155
7613
|
writer.uint32(24).int32(message.channel_type);
|
|
7156
7614
|
}
|
|
7615
|
+
if (message.clan_id !== "") {
|
|
7616
|
+
writer.uint32(34).string(message.clan_id);
|
|
7617
|
+
}
|
|
7157
7618
|
return writer;
|
|
7158
7619
|
},
|
|
7159
7620
|
decode(input, length) {
|
|
@@ -7181,6 +7642,12 @@ export const UserChannelRemoved = {
|
|
|
7181
7642
|
}
|
|
7182
7643
|
message.channel_type = reader.int32();
|
|
7183
7644
|
continue;
|
|
7645
|
+
case 4:
|
|
7646
|
+
if (tag !== 34) {
|
|
7647
|
+
break;
|
|
7648
|
+
}
|
|
7649
|
+
message.clan_id = reader.string();
|
|
7650
|
+
continue;
|
|
7184
7651
|
}
|
|
7185
7652
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7186
7653
|
break;
|
|
@@ -7194,6 +7661,7 @@ export const UserChannelRemoved = {
|
|
|
7194
7661
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7195
7662
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
7196
7663
|
channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
7664
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
7197
7665
|
};
|
|
7198
7666
|
},
|
|
7199
7667
|
toJSON(message) {
|
|
@@ -7207,6 +7675,9 @@ export const UserChannelRemoved = {
|
|
|
7207
7675
|
if (message.channel_type !== 0) {
|
|
7208
7676
|
obj.channel_type = Math.round(message.channel_type);
|
|
7209
7677
|
}
|
|
7678
|
+
if (message.clan_id !== "") {
|
|
7679
|
+
obj.clan_id = message.clan_id;
|
|
7680
|
+
}
|
|
7210
7681
|
return obj;
|
|
7211
7682
|
},
|
|
7212
7683
|
create(base) {
|
|
@@ -7217,6 +7688,7 @@ export const UserChannelRemoved = {
|
|
|
7217
7688
|
message.channel_id = object.channel_id ?? "";
|
|
7218
7689
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
7219
7690
|
message.channel_type = object.channel_type ?? 0;
|
|
7691
|
+
message.clan_id = object.clan_id ?? "";
|
|
7220
7692
|
return message;
|
|
7221
7693
|
},
|
|
7222
7694
|
};
|
|
@@ -7287,7 +7759,7 @@ export const UserClanRemoved = {
|
|
|
7287
7759
|
},
|
|
7288
7760
|
};
|
|
7289
7761
|
function createBaseClanUpdatedEvent() {
|
|
7290
|
-
return { clan_id: "", clan_name: "",
|
|
7762
|
+
return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
|
|
7291
7763
|
}
|
|
7292
7764
|
export const ClanUpdatedEvent = {
|
|
7293
7765
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7297,8 +7769,20 @@ export const ClanUpdatedEvent = {
|
|
|
7297
7769
|
if (message.clan_name !== "") {
|
|
7298
7770
|
writer.uint32(18).string(message.clan_name);
|
|
7299
7771
|
}
|
|
7300
|
-
if (message.
|
|
7301
|
-
writer.uint32(26).string(message.
|
|
7772
|
+
if (message.logo !== "") {
|
|
7773
|
+
writer.uint32(26).string(message.logo);
|
|
7774
|
+
}
|
|
7775
|
+
if (message.banner !== "") {
|
|
7776
|
+
writer.uint32(34).string(message.banner);
|
|
7777
|
+
}
|
|
7778
|
+
if (message.status !== 0) {
|
|
7779
|
+
writer.uint32(40).int32(message.status);
|
|
7780
|
+
}
|
|
7781
|
+
if (message.is_onboarding !== false) {
|
|
7782
|
+
writer.uint32(48).bool(message.is_onboarding);
|
|
7783
|
+
}
|
|
7784
|
+
if (message.welcome_channel_id !== "") {
|
|
7785
|
+
writer.uint32(58).string(message.welcome_channel_id);
|
|
7302
7786
|
}
|
|
7303
7787
|
return writer;
|
|
7304
7788
|
},
|
|
@@ -7325,7 +7809,31 @@ export const ClanUpdatedEvent = {
|
|
|
7325
7809
|
if (tag !== 26) {
|
|
7326
7810
|
break;
|
|
7327
7811
|
}
|
|
7328
|
-
message.
|
|
7812
|
+
message.logo = reader.string();
|
|
7813
|
+
continue;
|
|
7814
|
+
case 4:
|
|
7815
|
+
if (tag !== 34) {
|
|
7816
|
+
break;
|
|
7817
|
+
}
|
|
7818
|
+
message.banner = reader.string();
|
|
7819
|
+
continue;
|
|
7820
|
+
case 5:
|
|
7821
|
+
if (tag !== 40) {
|
|
7822
|
+
break;
|
|
7823
|
+
}
|
|
7824
|
+
message.status = reader.int32();
|
|
7825
|
+
continue;
|
|
7826
|
+
case 6:
|
|
7827
|
+
if (tag !== 48) {
|
|
7828
|
+
break;
|
|
7829
|
+
}
|
|
7830
|
+
message.is_onboarding = reader.bool();
|
|
7831
|
+
continue;
|
|
7832
|
+
case 7:
|
|
7833
|
+
if (tag !== 58) {
|
|
7834
|
+
break;
|
|
7835
|
+
}
|
|
7836
|
+
message.welcome_channel_id = reader.string();
|
|
7329
7837
|
continue;
|
|
7330
7838
|
}
|
|
7331
7839
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7339,7 +7847,11 @@ export const ClanUpdatedEvent = {
|
|
|
7339
7847
|
return {
|
|
7340
7848
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
7341
7849
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
7342
|
-
|
|
7850
|
+
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
7851
|
+
banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
|
|
7852
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
7853
|
+
is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
7854
|
+
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
7343
7855
|
};
|
|
7344
7856
|
},
|
|
7345
7857
|
toJSON(message) {
|
|
@@ -7350,8 +7862,20 @@ export const ClanUpdatedEvent = {
|
|
|
7350
7862
|
if (message.clan_name !== "") {
|
|
7351
7863
|
obj.clan_name = message.clan_name;
|
|
7352
7864
|
}
|
|
7353
|
-
if (message.
|
|
7354
|
-
obj.
|
|
7865
|
+
if (message.logo !== "") {
|
|
7866
|
+
obj.logo = message.logo;
|
|
7867
|
+
}
|
|
7868
|
+
if (message.banner !== "") {
|
|
7869
|
+
obj.banner = message.banner;
|
|
7870
|
+
}
|
|
7871
|
+
if (message.status !== 0) {
|
|
7872
|
+
obj.status = Math.round(message.status);
|
|
7873
|
+
}
|
|
7874
|
+
if (message.is_onboarding !== false) {
|
|
7875
|
+
obj.is_onboarding = message.is_onboarding;
|
|
7876
|
+
}
|
|
7877
|
+
if (message.welcome_channel_id !== "") {
|
|
7878
|
+
obj.welcome_channel_id = message.welcome_channel_id;
|
|
7355
7879
|
}
|
|
7356
7880
|
return obj;
|
|
7357
7881
|
},
|
|
@@ -7362,7 +7886,11 @@ export const ClanUpdatedEvent = {
|
|
|
7362
7886
|
const message = createBaseClanUpdatedEvent();
|
|
7363
7887
|
message.clan_id = object.clan_id ?? "";
|
|
7364
7888
|
message.clan_name = object.clan_name ?? "";
|
|
7365
|
-
message.
|
|
7889
|
+
message.logo = object.logo ?? "";
|
|
7890
|
+
message.banner = object.banner ?? "";
|
|
7891
|
+
message.status = object.status ?? 0;
|
|
7892
|
+
message.is_onboarding = object.is_onboarding ?? false;
|
|
7893
|
+
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
7366
7894
|
return message;
|
|
7367
7895
|
},
|
|
7368
7896
|
};
|
|
@@ -7461,7 +7989,15 @@ export const ClanProfileUpdatedEvent = {
|
|
|
7461
7989
|
},
|
|
7462
7990
|
};
|
|
7463
7991
|
function createBaseUserProfileUpdatedEvent() {
|
|
7464
|
-
return {
|
|
7992
|
+
return {
|
|
7993
|
+
user_id: "",
|
|
7994
|
+
display_name: "",
|
|
7995
|
+
avatar: "",
|
|
7996
|
+
about_me: "",
|
|
7997
|
+
channel_id: "",
|
|
7998
|
+
clan_id: "",
|
|
7999
|
+
encrypt_private_key: "",
|
|
8000
|
+
};
|
|
7465
8001
|
}
|
|
7466
8002
|
export const UserProfileUpdatedEvent = {
|
|
7467
8003
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7483,6 +8019,9 @@ export const UserProfileUpdatedEvent = {
|
|
|
7483
8019
|
if (message.clan_id !== "") {
|
|
7484
8020
|
writer.uint32(50).string(message.clan_id);
|
|
7485
8021
|
}
|
|
8022
|
+
if (message.encrypt_private_key !== "") {
|
|
8023
|
+
writer.uint32(58).string(message.encrypt_private_key);
|
|
8024
|
+
}
|
|
7486
8025
|
return writer;
|
|
7487
8026
|
},
|
|
7488
8027
|
decode(input, length) {
|
|
@@ -7528,6 +8067,12 @@ export const UserProfileUpdatedEvent = {
|
|
|
7528
8067
|
}
|
|
7529
8068
|
message.clan_id = reader.string();
|
|
7530
8069
|
continue;
|
|
8070
|
+
case 7:
|
|
8071
|
+
if (tag !== 58) {
|
|
8072
|
+
break;
|
|
8073
|
+
}
|
|
8074
|
+
message.encrypt_private_key = reader.string();
|
|
8075
|
+
continue;
|
|
7531
8076
|
}
|
|
7532
8077
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7533
8078
|
break;
|
|
@@ -7544,6 +8089,7 @@ export const UserProfileUpdatedEvent = {
|
|
|
7544
8089
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
7545
8090
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7546
8091
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8092
|
+
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
7547
8093
|
};
|
|
7548
8094
|
},
|
|
7549
8095
|
toJSON(message) {
|
|
@@ -7566,6 +8112,9 @@ export const UserProfileUpdatedEvent = {
|
|
|
7566
8112
|
if (message.clan_id !== "") {
|
|
7567
8113
|
obj.clan_id = message.clan_id;
|
|
7568
8114
|
}
|
|
8115
|
+
if (message.encrypt_private_key !== "") {
|
|
8116
|
+
obj.encrypt_private_key = message.encrypt_private_key;
|
|
8117
|
+
}
|
|
7569
8118
|
return obj;
|
|
7570
8119
|
},
|
|
7571
8120
|
create(base) {
|
|
@@ -7579,6 +8128,7 @@ export const UserProfileUpdatedEvent = {
|
|
|
7579
8128
|
message.about_me = object.about_me ?? "";
|
|
7580
8129
|
message.channel_id = object.channel_id ?? "";
|
|
7581
8130
|
message.clan_id = object.clan_id ?? "";
|
|
8131
|
+
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
7582
8132
|
return message;
|
|
7583
8133
|
},
|
|
7584
8134
|
};
|
|
@@ -7595,6 +8145,7 @@ function createBaseUserProfileRedis() {
|
|
|
7595
8145
|
online: false,
|
|
7596
8146
|
metadata: "",
|
|
7597
8147
|
is_disabled: false,
|
|
8148
|
+
joined_clans: [],
|
|
7598
8149
|
};
|
|
7599
8150
|
}
|
|
7600
8151
|
export const UserProfileRedis = {
|
|
@@ -7632,6 +8183,11 @@ export const UserProfileRedis = {
|
|
|
7632
8183
|
if (message.is_disabled !== false) {
|
|
7633
8184
|
writer.uint32(88).bool(message.is_disabled);
|
|
7634
8185
|
}
|
|
8186
|
+
writer.uint32(98).fork();
|
|
8187
|
+
for (const v of message.joined_clans) {
|
|
8188
|
+
writer.int64(v);
|
|
8189
|
+
}
|
|
8190
|
+
writer.ldelim();
|
|
7635
8191
|
return writer;
|
|
7636
8192
|
},
|
|
7637
8193
|
decode(input, length) {
|
|
@@ -7707,6 +8263,19 @@ export const UserProfileRedis = {
|
|
|
7707
8263
|
}
|
|
7708
8264
|
message.is_disabled = reader.bool();
|
|
7709
8265
|
continue;
|
|
8266
|
+
case 12:
|
|
8267
|
+
if (tag === 96) {
|
|
8268
|
+
message.joined_clans.push(longToNumber(reader.int64()));
|
|
8269
|
+
continue;
|
|
8270
|
+
}
|
|
8271
|
+
if (tag === 98) {
|
|
8272
|
+
const end2 = reader.uint32() + reader.pos;
|
|
8273
|
+
while (reader.pos < end2) {
|
|
8274
|
+
message.joined_clans.push(longToNumber(reader.int64()));
|
|
8275
|
+
}
|
|
8276
|
+
continue;
|
|
8277
|
+
}
|
|
8278
|
+
break;
|
|
7710
8279
|
}
|
|
7711
8280
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7712
8281
|
break;
|
|
@@ -7730,6 +8299,9 @@ export const UserProfileRedis = {
|
|
|
7730
8299
|
online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
|
|
7731
8300
|
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
7732
8301
|
is_disabled: isSet(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
|
|
8302
|
+
joined_clans: globalThis.Array.isArray(object?.joined_clans)
|
|
8303
|
+
? object.joined_clans.map((e) => globalThis.Number(e))
|
|
8304
|
+
: [],
|
|
7733
8305
|
};
|
|
7734
8306
|
},
|
|
7735
8307
|
toJSON(message) {
|
|
@@ -7767,6 +8339,9 @@ export const UserProfileRedis = {
|
|
|
7767
8339
|
if (message.is_disabled !== false) {
|
|
7768
8340
|
obj.is_disabled = message.is_disabled;
|
|
7769
8341
|
}
|
|
8342
|
+
if (message.joined_clans?.length) {
|
|
8343
|
+
obj.joined_clans = message.joined_clans.map((e) => Math.round(e));
|
|
8344
|
+
}
|
|
7770
8345
|
return obj;
|
|
7771
8346
|
},
|
|
7772
8347
|
create(base) {
|
|
@@ -7785,6 +8360,7 @@ export const UserProfileRedis = {
|
|
|
7785
8360
|
message.online = object.online ?? false;
|
|
7786
8361
|
message.metadata = object.metadata ?? "";
|
|
7787
8362
|
message.is_disabled = object.is_disabled ?? false;
|
|
8363
|
+
message.joined_clans = object.joined_clans?.map((e) => e) || [];
|
|
7788
8364
|
return message;
|
|
7789
8365
|
},
|
|
7790
8366
|
};
|
|
@@ -8676,215 +9252,13 @@ export const UnmuteEvent = {
|
|
|
8676
9252
|
return message;
|
|
8677
9253
|
},
|
|
8678
9254
|
};
|
|
8679
|
-
function
|
|
8680
|
-
return {
|
|
9255
|
+
function createBaseListActivity() {
|
|
9256
|
+
return { acts: [] };
|
|
8681
9257
|
}
|
|
8682
|
-
export const
|
|
9258
|
+
export const ListActivity = {
|
|
8683
9259
|
encode(message, writer = _m0.Writer.create()) {
|
|
8684
|
-
|
|
8685
|
-
writer.uint32(10).
|
|
8686
|
-
}
|
|
8687
|
-
if (message.data_type !== 0) {
|
|
8688
|
-
writer.uint32(16).int32(message.data_type);
|
|
8689
|
-
}
|
|
8690
|
-
if (message.json_data !== "") {
|
|
8691
|
-
writer.uint32(26).string(message.json_data);
|
|
8692
|
-
}
|
|
8693
|
-
if (message.user_id !== "") {
|
|
8694
|
-
writer.uint32(34).string(message.user_id);
|
|
8695
|
-
}
|
|
8696
|
-
if (message.clan_id !== "") {
|
|
8697
|
-
writer.uint32(42).string(message.clan_id);
|
|
8698
|
-
}
|
|
8699
|
-
return writer;
|
|
8700
|
-
},
|
|
8701
|
-
decode(input, length) {
|
|
8702
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8703
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8704
|
-
const message = createBaseJoinPTTChannel();
|
|
8705
|
-
while (reader.pos < end) {
|
|
8706
|
-
const tag = reader.uint32();
|
|
8707
|
-
switch (tag >>> 3) {
|
|
8708
|
-
case 1:
|
|
8709
|
-
if (tag !== 10) {
|
|
8710
|
-
break;
|
|
8711
|
-
}
|
|
8712
|
-
message.channel_id = reader.string();
|
|
8713
|
-
continue;
|
|
8714
|
-
case 2:
|
|
8715
|
-
if (tag !== 16) {
|
|
8716
|
-
break;
|
|
8717
|
-
}
|
|
8718
|
-
message.data_type = reader.int32();
|
|
8719
|
-
continue;
|
|
8720
|
-
case 3:
|
|
8721
|
-
if (tag !== 26) {
|
|
8722
|
-
break;
|
|
8723
|
-
}
|
|
8724
|
-
message.json_data = reader.string();
|
|
8725
|
-
continue;
|
|
8726
|
-
case 4:
|
|
8727
|
-
if (tag !== 34) {
|
|
8728
|
-
break;
|
|
8729
|
-
}
|
|
8730
|
-
message.user_id = reader.string();
|
|
8731
|
-
continue;
|
|
8732
|
-
case 5:
|
|
8733
|
-
if (tag !== 42) {
|
|
8734
|
-
break;
|
|
8735
|
-
}
|
|
8736
|
-
message.clan_id = reader.string();
|
|
8737
|
-
continue;
|
|
8738
|
-
}
|
|
8739
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8740
|
-
break;
|
|
8741
|
-
}
|
|
8742
|
-
reader.skipType(tag & 7);
|
|
8743
|
-
}
|
|
8744
|
-
return message;
|
|
8745
|
-
},
|
|
8746
|
-
fromJSON(object) {
|
|
8747
|
-
return {
|
|
8748
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
8749
|
-
data_type: isSet(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
8750
|
-
json_data: isSet(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
8751
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
8752
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8753
|
-
};
|
|
8754
|
-
},
|
|
8755
|
-
toJSON(message) {
|
|
8756
|
-
const obj = {};
|
|
8757
|
-
if (message.channel_id !== "") {
|
|
8758
|
-
obj.channel_id = message.channel_id;
|
|
8759
|
-
}
|
|
8760
|
-
if (message.data_type !== 0) {
|
|
8761
|
-
obj.data_type = Math.round(message.data_type);
|
|
8762
|
-
}
|
|
8763
|
-
if (message.json_data !== "") {
|
|
8764
|
-
obj.json_data = message.json_data;
|
|
8765
|
-
}
|
|
8766
|
-
if (message.user_id !== "") {
|
|
8767
|
-
obj.user_id = message.user_id;
|
|
8768
|
-
}
|
|
8769
|
-
if (message.clan_id !== "") {
|
|
8770
|
-
obj.clan_id = message.clan_id;
|
|
8771
|
-
}
|
|
8772
|
-
return obj;
|
|
8773
|
-
},
|
|
8774
|
-
create(base) {
|
|
8775
|
-
return JoinPTTChannel.fromPartial(base ?? {});
|
|
8776
|
-
},
|
|
8777
|
-
fromPartial(object) {
|
|
8778
|
-
const message = createBaseJoinPTTChannel();
|
|
8779
|
-
message.channel_id = object.channel_id ?? "";
|
|
8780
|
-
message.data_type = object.data_type ?? 0;
|
|
8781
|
-
message.json_data = object.json_data ?? "";
|
|
8782
|
-
message.user_id = object.user_id ?? "";
|
|
8783
|
-
message.clan_id = object.clan_id ?? "";
|
|
8784
|
-
return message;
|
|
8785
|
-
},
|
|
8786
|
-
};
|
|
8787
|
-
function createBaseTalkPTTChannel() {
|
|
8788
|
-
return { user_id: "", clan_id: "", channel_id: "", is_talk: false };
|
|
8789
|
-
}
|
|
8790
|
-
export const TalkPTTChannel = {
|
|
8791
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
8792
|
-
if (message.user_id !== "") {
|
|
8793
|
-
writer.uint32(10).string(message.user_id);
|
|
8794
|
-
}
|
|
8795
|
-
if (message.clan_id !== "") {
|
|
8796
|
-
writer.uint32(18).string(message.clan_id);
|
|
8797
|
-
}
|
|
8798
|
-
if (message.channel_id !== "") {
|
|
8799
|
-
writer.uint32(26).string(message.channel_id);
|
|
8800
|
-
}
|
|
8801
|
-
if (message.is_talk !== false) {
|
|
8802
|
-
writer.uint32(32).bool(message.is_talk);
|
|
8803
|
-
}
|
|
8804
|
-
return writer;
|
|
8805
|
-
},
|
|
8806
|
-
decode(input, length) {
|
|
8807
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8808
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8809
|
-
const message = createBaseTalkPTTChannel();
|
|
8810
|
-
while (reader.pos < end) {
|
|
8811
|
-
const tag = reader.uint32();
|
|
8812
|
-
switch (tag >>> 3) {
|
|
8813
|
-
case 1:
|
|
8814
|
-
if (tag !== 10) {
|
|
8815
|
-
break;
|
|
8816
|
-
}
|
|
8817
|
-
message.user_id = reader.string();
|
|
8818
|
-
continue;
|
|
8819
|
-
case 2:
|
|
8820
|
-
if (tag !== 18) {
|
|
8821
|
-
break;
|
|
8822
|
-
}
|
|
8823
|
-
message.clan_id = reader.string();
|
|
8824
|
-
continue;
|
|
8825
|
-
case 3:
|
|
8826
|
-
if (tag !== 26) {
|
|
8827
|
-
break;
|
|
8828
|
-
}
|
|
8829
|
-
message.channel_id = reader.string();
|
|
8830
|
-
continue;
|
|
8831
|
-
case 4:
|
|
8832
|
-
if (tag !== 32) {
|
|
8833
|
-
break;
|
|
8834
|
-
}
|
|
8835
|
-
message.is_talk = reader.bool();
|
|
8836
|
-
continue;
|
|
8837
|
-
}
|
|
8838
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8839
|
-
break;
|
|
8840
|
-
}
|
|
8841
|
-
reader.skipType(tag & 7);
|
|
8842
|
-
}
|
|
8843
|
-
return message;
|
|
8844
|
-
},
|
|
8845
|
-
fromJSON(object) {
|
|
8846
|
-
return {
|
|
8847
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
8848
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8849
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
8850
|
-
is_talk: isSet(object.is_talk) ? globalThis.Boolean(object.is_talk) : false,
|
|
8851
|
-
};
|
|
8852
|
-
},
|
|
8853
|
-
toJSON(message) {
|
|
8854
|
-
const obj = {};
|
|
8855
|
-
if (message.user_id !== "") {
|
|
8856
|
-
obj.user_id = message.user_id;
|
|
8857
|
-
}
|
|
8858
|
-
if (message.clan_id !== "") {
|
|
8859
|
-
obj.clan_id = message.clan_id;
|
|
8860
|
-
}
|
|
8861
|
-
if (message.channel_id !== "") {
|
|
8862
|
-
obj.channel_id = message.channel_id;
|
|
8863
|
-
}
|
|
8864
|
-
if (message.is_talk !== false) {
|
|
8865
|
-
obj.is_talk = message.is_talk;
|
|
8866
|
-
}
|
|
8867
|
-
return obj;
|
|
8868
|
-
},
|
|
8869
|
-
create(base) {
|
|
8870
|
-
return TalkPTTChannel.fromPartial(base ?? {});
|
|
8871
|
-
},
|
|
8872
|
-
fromPartial(object) {
|
|
8873
|
-
const message = createBaseTalkPTTChannel();
|
|
8874
|
-
message.user_id = object.user_id ?? "";
|
|
8875
|
-
message.clan_id = object.clan_id ?? "";
|
|
8876
|
-
message.channel_id = object.channel_id ?? "";
|
|
8877
|
-
message.is_talk = object.is_talk ?? false;
|
|
8878
|
-
return message;
|
|
8879
|
-
},
|
|
8880
|
-
};
|
|
8881
|
-
function createBaseListActivity() {
|
|
8882
|
-
return { acts: [] };
|
|
8883
|
-
}
|
|
8884
|
-
export const ListActivity = {
|
|
8885
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
8886
|
-
for (const v of message.acts) {
|
|
8887
|
-
UserActivity.encode(v, writer.uint32(10).fork()).ldelim();
|
|
9260
|
+
for (const v of message.acts) {
|
|
9261
|
+
UserActivity.encode(v, writer.uint32(10).fork()).ldelim();
|
|
8888
9262
|
}
|
|
8889
9263
|
return writer;
|
|
8890
9264
|
},
|
|
@@ -9052,10 +9426,18 @@ export const DropdownBoxSelected = {
|
|
|
9052
9426
|
return message;
|
|
9053
9427
|
},
|
|
9054
9428
|
};
|
|
9055
|
-
function
|
|
9056
|
-
return {
|
|
9429
|
+
function createBaseSdTopicEvent() {
|
|
9430
|
+
return {
|
|
9431
|
+
id: "",
|
|
9432
|
+
clan_id: "",
|
|
9433
|
+
channel_id: "",
|
|
9434
|
+
message_id: "",
|
|
9435
|
+
user_id: "",
|
|
9436
|
+
last_sent_message: undefined,
|
|
9437
|
+
message: undefined,
|
|
9438
|
+
};
|
|
9057
9439
|
}
|
|
9058
|
-
export const
|
|
9440
|
+
export const SdTopicEvent = {
|
|
9059
9441
|
encode(message, writer = _m0.Writer.create()) {
|
|
9060
9442
|
if (message.id !== "") {
|
|
9061
9443
|
writer.uint32(10).string(message.id);
|
|
@@ -9066,15 +9448,24 @@ export const PTTLeavedEvent = {
|
|
|
9066
9448
|
if (message.channel_id !== "") {
|
|
9067
9449
|
writer.uint32(26).string(message.channel_id);
|
|
9068
9450
|
}
|
|
9451
|
+
if (message.message_id !== "") {
|
|
9452
|
+
writer.uint32(34).string(message.message_id);
|
|
9453
|
+
}
|
|
9069
9454
|
if (message.user_id !== "") {
|
|
9070
|
-
writer.uint32(
|
|
9455
|
+
writer.uint32(42).string(message.user_id);
|
|
9456
|
+
}
|
|
9457
|
+
if (message.last_sent_message !== undefined) {
|
|
9458
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(50).fork()).ldelim();
|
|
9459
|
+
}
|
|
9460
|
+
if (message.message !== undefined) {
|
|
9461
|
+
ChannelMessage.encode(message.message, writer.uint32(58).fork()).ldelim();
|
|
9071
9462
|
}
|
|
9072
9463
|
return writer;
|
|
9073
9464
|
},
|
|
9074
9465
|
decode(input, length) {
|
|
9075
9466
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9076
9467
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9077
|
-
const message =
|
|
9468
|
+
const message = createBaseSdTopicEvent();
|
|
9078
9469
|
while (reader.pos < end) {
|
|
9079
9470
|
const tag = reader.uint32();
|
|
9080
9471
|
switch (tag >>> 3) {
|
|
@@ -9100,8 +9491,26 @@ export const PTTLeavedEvent = {
|
|
|
9100
9491
|
if (tag !== 34) {
|
|
9101
9492
|
break;
|
|
9102
9493
|
}
|
|
9494
|
+
message.message_id = reader.string();
|
|
9495
|
+
continue;
|
|
9496
|
+
case 5:
|
|
9497
|
+
if (tag !== 42) {
|
|
9498
|
+
break;
|
|
9499
|
+
}
|
|
9103
9500
|
message.user_id = reader.string();
|
|
9104
9501
|
continue;
|
|
9502
|
+
case 6:
|
|
9503
|
+
if (tag !== 50) {
|
|
9504
|
+
break;
|
|
9505
|
+
}
|
|
9506
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
9507
|
+
continue;
|
|
9508
|
+
case 7:
|
|
9509
|
+
if (tag !== 58) {
|
|
9510
|
+
break;
|
|
9511
|
+
}
|
|
9512
|
+
message.message = ChannelMessage.decode(reader, reader.uint32());
|
|
9513
|
+
continue;
|
|
9105
9514
|
}
|
|
9106
9515
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9107
9516
|
break;
|
|
@@ -9115,7 +9524,12 @@ export const PTTLeavedEvent = {
|
|
|
9115
9524
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
9116
9525
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9117
9526
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9527
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
9118
9528
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
9529
|
+
last_sent_message: isSet(object.last_sent_message)
|
|
9530
|
+
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
9531
|
+
: undefined,
|
|
9532
|
+
message: isSet(object.message) ? ChannelMessage.fromJSON(object.message) : undefined,
|
|
9119
9533
|
};
|
|
9120
9534
|
},
|
|
9121
9535
|
toJSON(message) {
|
|
@@ -9129,55 +9543,65 @@ export const PTTLeavedEvent = {
|
|
|
9129
9543
|
if (message.channel_id !== "") {
|
|
9130
9544
|
obj.channel_id = message.channel_id;
|
|
9131
9545
|
}
|
|
9546
|
+
if (message.message_id !== "") {
|
|
9547
|
+
obj.message_id = message.message_id;
|
|
9548
|
+
}
|
|
9132
9549
|
if (message.user_id !== "") {
|
|
9133
9550
|
obj.user_id = message.user_id;
|
|
9134
9551
|
}
|
|
9552
|
+
if (message.last_sent_message !== undefined) {
|
|
9553
|
+
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
9554
|
+
}
|
|
9555
|
+
if (message.message !== undefined) {
|
|
9556
|
+
obj.message = ChannelMessage.toJSON(message.message);
|
|
9557
|
+
}
|
|
9135
9558
|
return obj;
|
|
9136
9559
|
},
|
|
9137
9560
|
create(base) {
|
|
9138
|
-
return
|
|
9561
|
+
return SdTopicEvent.fromPartial(base ?? {});
|
|
9139
9562
|
},
|
|
9140
9563
|
fromPartial(object) {
|
|
9141
|
-
const message =
|
|
9564
|
+
const message = createBaseSdTopicEvent();
|
|
9142
9565
|
message.id = object.id ?? "";
|
|
9143
9566
|
message.clan_id = object.clan_id ?? "";
|
|
9144
9567
|
message.channel_id = object.channel_id ?? "";
|
|
9568
|
+
message.message_id = object.message_id ?? "";
|
|
9145
9569
|
message.user_id = object.user_id ?? "";
|
|
9570
|
+
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
9571
|
+
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
9572
|
+
: undefined;
|
|
9573
|
+
message.message = (object.message !== undefined && object.message !== null)
|
|
9574
|
+
? ChannelMessage.fromPartial(object.message)
|
|
9575
|
+
: undefined;
|
|
9146
9576
|
return message;
|
|
9147
9577
|
},
|
|
9148
9578
|
};
|
|
9149
|
-
function
|
|
9150
|
-
return {
|
|
9579
|
+
function createBaseChannelAppEvent() {
|
|
9580
|
+
return { user_id: "", username: "", clan_id: "", channel_id: "", action: 0 };
|
|
9151
9581
|
}
|
|
9152
|
-
export const
|
|
9582
|
+
export const ChannelAppEvent = {
|
|
9153
9583
|
encode(message, writer = _m0.Writer.create()) {
|
|
9154
|
-
if (message.clan_id !== "") {
|
|
9155
|
-
writer.uint32(10).string(message.clan_id);
|
|
9156
|
-
}
|
|
9157
|
-
if (message.clan_name !== "") {
|
|
9158
|
-
writer.uint32(18).string(message.clan_name);
|
|
9159
|
-
}
|
|
9160
|
-
if (message.id !== "") {
|
|
9161
|
-
writer.uint32(26).string(message.id);
|
|
9162
|
-
}
|
|
9163
|
-
if (message.participant !== "") {
|
|
9164
|
-
writer.uint32(34).string(message.participant);
|
|
9165
|
-
}
|
|
9166
9584
|
if (message.user_id !== "") {
|
|
9167
|
-
writer.uint32(
|
|
9585
|
+
writer.uint32(10).string(message.user_id);
|
|
9168
9586
|
}
|
|
9169
|
-
if (message.
|
|
9170
|
-
writer.uint32(
|
|
9587
|
+
if (message.username !== "") {
|
|
9588
|
+
writer.uint32(18).string(message.username);
|
|
9589
|
+
}
|
|
9590
|
+
if (message.clan_id !== "") {
|
|
9591
|
+
writer.uint32(26).string(message.clan_id);
|
|
9171
9592
|
}
|
|
9172
9593
|
if (message.channel_id !== "") {
|
|
9173
|
-
writer.uint32(
|
|
9594
|
+
writer.uint32(34).string(message.channel_id);
|
|
9595
|
+
}
|
|
9596
|
+
if (message.action !== 0) {
|
|
9597
|
+
writer.uint32(40).int32(message.action);
|
|
9174
9598
|
}
|
|
9175
9599
|
return writer;
|
|
9176
9600
|
},
|
|
9177
9601
|
decode(input, length) {
|
|
9178
9602
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9179
9603
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9180
|
-
const message =
|
|
9604
|
+
const message = createBaseChannelAppEvent();
|
|
9181
9605
|
while (reader.pos < end) {
|
|
9182
9606
|
const tag = reader.uint32();
|
|
9183
9607
|
switch (tag >>> 3) {
|
|
@@ -9185,43 +9609,31 @@ export const PTTJoinedEvent = {
|
|
|
9185
9609
|
if (tag !== 10) {
|
|
9186
9610
|
break;
|
|
9187
9611
|
}
|
|
9188
|
-
message.
|
|
9612
|
+
message.user_id = reader.string();
|
|
9189
9613
|
continue;
|
|
9190
9614
|
case 2:
|
|
9191
9615
|
if (tag !== 18) {
|
|
9192
9616
|
break;
|
|
9193
9617
|
}
|
|
9194
|
-
message.
|
|
9618
|
+
message.username = reader.string();
|
|
9195
9619
|
continue;
|
|
9196
9620
|
case 3:
|
|
9197
9621
|
if (tag !== 26) {
|
|
9198
9622
|
break;
|
|
9199
9623
|
}
|
|
9200
|
-
message.
|
|
9624
|
+
message.clan_id = reader.string();
|
|
9201
9625
|
continue;
|
|
9202
9626
|
case 4:
|
|
9203
9627
|
if (tag !== 34) {
|
|
9204
9628
|
break;
|
|
9205
9629
|
}
|
|
9206
|
-
message.
|
|
9630
|
+
message.channel_id = reader.string();
|
|
9207
9631
|
continue;
|
|
9208
9632
|
case 5:
|
|
9209
|
-
if (tag !==
|
|
9210
|
-
break;
|
|
9211
|
-
}
|
|
9212
|
-
message.user_id = reader.string();
|
|
9213
|
-
continue;
|
|
9214
|
-
case 6:
|
|
9215
|
-
if (tag !== 50) {
|
|
9216
|
-
break;
|
|
9217
|
-
}
|
|
9218
|
-
message.channel_label = reader.string();
|
|
9219
|
-
continue;
|
|
9220
|
-
case 7:
|
|
9221
|
-
if (tag !== 58) {
|
|
9633
|
+
if (tag !== 40) {
|
|
9222
9634
|
break;
|
|
9223
9635
|
}
|
|
9224
|
-
message.
|
|
9636
|
+
message.action = reader.int32();
|
|
9225
9637
|
continue;
|
|
9226
9638
|
}
|
|
9227
9639
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9233,78 +9645,131 @@ export const PTTJoinedEvent = {
|
|
|
9233
9645
|
},
|
|
9234
9646
|
fromJSON(object) {
|
|
9235
9647
|
return {
|
|
9236
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9237
|
-
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
9238
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
9239
|
-
participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
|
|
9240
9648
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
9241
|
-
|
|
9649
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
9650
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9242
9651
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9652
|
+
action: isSet(object.action) ? globalThis.Number(object.action) : 0,
|
|
9243
9653
|
};
|
|
9244
9654
|
},
|
|
9245
9655
|
toJSON(message) {
|
|
9246
9656
|
const obj = {};
|
|
9657
|
+
if (message.user_id !== "") {
|
|
9658
|
+
obj.user_id = message.user_id;
|
|
9659
|
+
}
|
|
9660
|
+
if (message.username !== "") {
|
|
9661
|
+
obj.username = message.username;
|
|
9662
|
+
}
|
|
9247
9663
|
if (message.clan_id !== "") {
|
|
9248
9664
|
obj.clan_id = message.clan_id;
|
|
9249
9665
|
}
|
|
9250
|
-
if (message.
|
|
9251
|
-
obj.
|
|
9666
|
+
if (message.channel_id !== "") {
|
|
9667
|
+
obj.channel_id = message.channel_id;
|
|
9252
9668
|
}
|
|
9253
|
-
if (message.
|
|
9254
|
-
obj.
|
|
9669
|
+
if (message.action !== 0) {
|
|
9670
|
+
obj.action = Math.round(message.action);
|
|
9255
9671
|
}
|
|
9256
|
-
|
|
9257
|
-
|
|
9672
|
+
return obj;
|
|
9673
|
+
},
|
|
9674
|
+
create(base) {
|
|
9675
|
+
return ChannelAppEvent.fromPartial(base ?? {});
|
|
9676
|
+
},
|
|
9677
|
+
fromPartial(object) {
|
|
9678
|
+
const message = createBaseChannelAppEvent();
|
|
9679
|
+
message.user_id = object.user_id ?? "";
|
|
9680
|
+
message.username = object.username ?? "";
|
|
9681
|
+
message.clan_id = object.clan_id ?? "";
|
|
9682
|
+
message.channel_id = object.channel_id ?? "";
|
|
9683
|
+
message.action = object.action ?? 0;
|
|
9684
|
+
return message;
|
|
9685
|
+
},
|
|
9686
|
+
};
|
|
9687
|
+
function createBaseUserStatusEvent() {
|
|
9688
|
+
return { user_id: "", custom_status: "" };
|
|
9689
|
+
}
|
|
9690
|
+
export const UserStatusEvent = {
|
|
9691
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
9692
|
+
if (message.user_id !== "") {
|
|
9693
|
+
writer.uint32(10).string(message.user_id);
|
|
9694
|
+
}
|
|
9695
|
+
if (message.custom_status !== "") {
|
|
9696
|
+
writer.uint32(18).string(message.custom_status);
|
|
9697
|
+
}
|
|
9698
|
+
return writer;
|
|
9699
|
+
},
|
|
9700
|
+
decode(input, length) {
|
|
9701
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9702
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9703
|
+
const message = createBaseUserStatusEvent();
|
|
9704
|
+
while (reader.pos < end) {
|
|
9705
|
+
const tag = reader.uint32();
|
|
9706
|
+
switch (tag >>> 3) {
|
|
9707
|
+
case 1:
|
|
9708
|
+
if (tag !== 10) {
|
|
9709
|
+
break;
|
|
9710
|
+
}
|
|
9711
|
+
message.user_id = reader.string();
|
|
9712
|
+
continue;
|
|
9713
|
+
case 2:
|
|
9714
|
+
if (tag !== 18) {
|
|
9715
|
+
break;
|
|
9716
|
+
}
|
|
9717
|
+
message.custom_status = reader.string();
|
|
9718
|
+
continue;
|
|
9719
|
+
}
|
|
9720
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9721
|
+
break;
|
|
9722
|
+
}
|
|
9723
|
+
reader.skipType(tag & 7);
|
|
9258
9724
|
}
|
|
9725
|
+
return message;
|
|
9726
|
+
},
|
|
9727
|
+
fromJSON(object) {
|
|
9728
|
+
return {
|
|
9729
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
9730
|
+
custom_status: isSet(object.custom_status) ? globalThis.String(object.custom_status) : "",
|
|
9731
|
+
};
|
|
9732
|
+
},
|
|
9733
|
+
toJSON(message) {
|
|
9734
|
+
const obj = {};
|
|
9259
9735
|
if (message.user_id !== "") {
|
|
9260
9736
|
obj.user_id = message.user_id;
|
|
9261
9737
|
}
|
|
9262
|
-
if (message.
|
|
9263
|
-
obj.
|
|
9264
|
-
}
|
|
9265
|
-
if (message.channel_id !== "") {
|
|
9266
|
-
obj.channel_id = message.channel_id;
|
|
9738
|
+
if (message.custom_status !== "") {
|
|
9739
|
+
obj.custom_status = message.custom_status;
|
|
9267
9740
|
}
|
|
9268
9741
|
return obj;
|
|
9269
9742
|
},
|
|
9270
9743
|
create(base) {
|
|
9271
|
-
return
|
|
9744
|
+
return UserStatusEvent.fromPartial(base ?? {});
|
|
9272
9745
|
},
|
|
9273
9746
|
fromPartial(object) {
|
|
9274
|
-
const message =
|
|
9275
|
-
message.clan_id = object.clan_id ?? "";
|
|
9276
|
-
message.clan_name = object.clan_name ?? "";
|
|
9277
|
-
message.id = object.id ?? "";
|
|
9278
|
-
message.participant = object.participant ?? "";
|
|
9747
|
+
const message = createBaseUserStatusEvent();
|
|
9279
9748
|
message.user_id = object.user_id ?? "";
|
|
9280
|
-
message.
|
|
9281
|
-
message.channel_id = object.channel_id ?? "";
|
|
9749
|
+
message.custom_status = object.custom_status ?? "";
|
|
9282
9750
|
return message;
|
|
9283
9751
|
},
|
|
9284
9752
|
};
|
|
9285
|
-
function
|
|
9286
|
-
return {
|
|
9753
|
+
function createBaseJoinChannelAppData() {
|
|
9754
|
+
return { user_id: "", username: "", hash: "" };
|
|
9287
9755
|
}
|
|
9288
|
-
export const
|
|
9756
|
+
export const JoinChannelAppData = {
|
|
9289
9757
|
encode(message, writer = _m0.Writer.create()) {
|
|
9290
|
-
if (message.
|
|
9291
|
-
writer.uint32(10).string(message.
|
|
9292
|
-
}
|
|
9293
|
-
if (message.clan_id !== "") {
|
|
9294
|
-
writer.uint32(18).string(message.clan_id);
|
|
9758
|
+
if (message.user_id !== "") {
|
|
9759
|
+
writer.uint32(10).string(message.user_id);
|
|
9295
9760
|
}
|
|
9296
|
-
if (message.
|
|
9297
|
-
writer.uint32(
|
|
9761
|
+
if (message.username !== "") {
|
|
9762
|
+
writer.uint32(18).string(message.username);
|
|
9298
9763
|
}
|
|
9299
|
-
if (message.
|
|
9300
|
-
writer.uint32(
|
|
9764
|
+
if (message.hash !== "") {
|
|
9765
|
+
writer.uint32(26).string(message.hash);
|
|
9301
9766
|
}
|
|
9302
9767
|
return writer;
|
|
9303
9768
|
},
|
|
9304
9769
|
decode(input, length) {
|
|
9305
9770
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9306
9771
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9307
|
-
const message =
|
|
9772
|
+
const message = createBaseJoinChannelAppData();
|
|
9308
9773
|
while (reader.pos < end) {
|
|
9309
9774
|
const tag = reader.uint32();
|
|
9310
9775
|
switch (tag >>> 3) {
|
|
@@ -9312,25 +9777,19 @@ export const SdTopicEvent = {
|
|
|
9312
9777
|
if (tag !== 10) {
|
|
9313
9778
|
break;
|
|
9314
9779
|
}
|
|
9315
|
-
message.
|
|
9780
|
+
message.user_id = reader.string();
|
|
9316
9781
|
continue;
|
|
9317
9782
|
case 2:
|
|
9318
9783
|
if (tag !== 18) {
|
|
9319
9784
|
break;
|
|
9320
9785
|
}
|
|
9321
|
-
message.
|
|
9786
|
+
message.username = reader.string();
|
|
9322
9787
|
continue;
|
|
9323
9788
|
case 3:
|
|
9324
9789
|
if (tag !== 26) {
|
|
9325
9790
|
break;
|
|
9326
9791
|
}
|
|
9327
|
-
message.
|
|
9328
|
-
continue;
|
|
9329
|
-
case 4:
|
|
9330
|
-
if (tag !== 34) {
|
|
9331
|
-
break;
|
|
9332
|
-
}
|
|
9333
|
-
message.message_id = reader.string();
|
|
9792
|
+
message.hash = reader.string();
|
|
9334
9793
|
continue;
|
|
9335
9794
|
}
|
|
9336
9795
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9342,66 +9801,58 @@ export const SdTopicEvent = {
|
|
|
9342
9801
|
},
|
|
9343
9802
|
fromJSON(object) {
|
|
9344
9803
|
return {
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
9804
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
9805
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
9806
|
+
hash: isSet(object.hash) ? globalThis.String(object.hash) : "",
|
|
9349
9807
|
};
|
|
9350
9808
|
},
|
|
9351
9809
|
toJSON(message) {
|
|
9352
9810
|
const obj = {};
|
|
9353
|
-
if (message.
|
|
9354
|
-
obj.
|
|
9355
|
-
}
|
|
9356
|
-
if (message.clan_id !== "") {
|
|
9357
|
-
obj.clan_id = message.clan_id;
|
|
9811
|
+
if (message.user_id !== "") {
|
|
9812
|
+
obj.user_id = message.user_id;
|
|
9358
9813
|
}
|
|
9359
|
-
if (message.
|
|
9360
|
-
obj.
|
|
9814
|
+
if (message.username !== "") {
|
|
9815
|
+
obj.username = message.username;
|
|
9361
9816
|
}
|
|
9362
|
-
if (message.
|
|
9363
|
-
obj.
|
|
9817
|
+
if (message.hash !== "") {
|
|
9818
|
+
obj.hash = message.hash;
|
|
9364
9819
|
}
|
|
9365
9820
|
return obj;
|
|
9366
9821
|
},
|
|
9367
9822
|
create(base) {
|
|
9368
|
-
return
|
|
9823
|
+
return JoinChannelAppData.fromPartial(base ?? {});
|
|
9369
9824
|
},
|
|
9370
9825
|
fromPartial(object) {
|
|
9371
|
-
const message =
|
|
9372
|
-
message.
|
|
9373
|
-
message.
|
|
9374
|
-
message.
|
|
9375
|
-
message.message_id = object.message_id ?? "";
|
|
9826
|
+
const message = createBaseJoinChannelAppData();
|
|
9827
|
+
message.user_id = object.user_id ?? "";
|
|
9828
|
+
message.username = object.username ?? "";
|
|
9829
|
+
message.hash = object.hash ?? "";
|
|
9376
9830
|
return message;
|
|
9377
9831
|
},
|
|
9378
9832
|
};
|
|
9379
|
-
function
|
|
9380
|
-
return {
|
|
9833
|
+
function createBaseUnpinMessageEvent() {
|
|
9834
|
+
return { id: "", message_id: "", channel_id: "", clan_id: "" };
|
|
9381
9835
|
}
|
|
9382
|
-
export const
|
|
9836
|
+
export const UnpinMessageEvent = {
|
|
9383
9837
|
encode(message, writer = _m0.Writer.create()) {
|
|
9384
|
-
if (message.
|
|
9385
|
-
writer.uint32(10).string(message.
|
|
9386
|
-
}
|
|
9387
|
-
if (message.username !== "") {
|
|
9388
|
-
writer.uint32(18).string(message.username);
|
|
9838
|
+
if (message.id !== "") {
|
|
9839
|
+
writer.uint32(10).string(message.id);
|
|
9389
9840
|
}
|
|
9390
|
-
if (message.
|
|
9391
|
-
writer.uint32(
|
|
9841
|
+
if (message.message_id !== "") {
|
|
9842
|
+
writer.uint32(18).string(message.message_id);
|
|
9392
9843
|
}
|
|
9393
9844
|
if (message.channel_id !== "") {
|
|
9394
|
-
writer.uint32(
|
|
9845
|
+
writer.uint32(26).string(message.channel_id);
|
|
9395
9846
|
}
|
|
9396
|
-
if (message.
|
|
9397
|
-
writer.uint32(
|
|
9847
|
+
if (message.clan_id !== "") {
|
|
9848
|
+
writer.uint32(34).string(message.clan_id);
|
|
9398
9849
|
}
|
|
9399
9850
|
return writer;
|
|
9400
9851
|
},
|
|
9401
9852
|
decode(input, length) {
|
|
9402
9853
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9403
9854
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9404
|
-
const message =
|
|
9855
|
+
const message = createBaseUnpinMessageEvent();
|
|
9405
9856
|
while (reader.pos < end) {
|
|
9406
9857
|
const tag = reader.uint32();
|
|
9407
9858
|
switch (tag >>> 3) {
|
|
@@ -9409,31 +9860,25 @@ export const ChannelAppEvent = {
|
|
|
9409
9860
|
if (tag !== 10) {
|
|
9410
9861
|
break;
|
|
9411
9862
|
}
|
|
9412
|
-
message.
|
|
9863
|
+
message.id = reader.string();
|
|
9413
9864
|
continue;
|
|
9414
9865
|
case 2:
|
|
9415
9866
|
if (tag !== 18) {
|
|
9416
9867
|
break;
|
|
9417
9868
|
}
|
|
9418
|
-
message.
|
|
9869
|
+
message.message_id = reader.string();
|
|
9419
9870
|
continue;
|
|
9420
9871
|
case 3:
|
|
9421
9872
|
if (tag !== 26) {
|
|
9422
9873
|
break;
|
|
9423
9874
|
}
|
|
9424
|
-
message.
|
|
9875
|
+
message.channel_id = reader.string();
|
|
9425
9876
|
continue;
|
|
9426
9877
|
case 4:
|
|
9427
9878
|
if (tag !== 34) {
|
|
9428
9879
|
break;
|
|
9429
9880
|
}
|
|
9430
|
-
message.
|
|
9431
|
-
continue;
|
|
9432
|
-
case 5:
|
|
9433
|
-
if (tag !== 40) {
|
|
9434
|
-
break;
|
|
9435
|
-
}
|
|
9436
|
-
message.action = reader.int32();
|
|
9881
|
+
message.clan_id = reader.string();
|
|
9437
9882
|
continue;
|
|
9438
9883
|
}
|
|
9439
9884
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9445,42 +9890,37 @@ export const ChannelAppEvent = {
|
|
|
9445
9890
|
},
|
|
9446
9891
|
fromJSON(object) {
|
|
9447
9892
|
return {
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9893
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
9894
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
9451
9895
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9452
|
-
|
|
9896
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9453
9897
|
};
|
|
9454
9898
|
},
|
|
9455
9899
|
toJSON(message) {
|
|
9456
9900
|
const obj = {};
|
|
9457
|
-
if (message.
|
|
9458
|
-
obj.
|
|
9459
|
-
}
|
|
9460
|
-
if (message.username !== "") {
|
|
9461
|
-
obj.username = message.username;
|
|
9901
|
+
if (message.id !== "") {
|
|
9902
|
+
obj.id = message.id;
|
|
9462
9903
|
}
|
|
9463
|
-
if (message.
|
|
9464
|
-
obj.
|
|
9904
|
+
if (message.message_id !== "") {
|
|
9905
|
+
obj.message_id = message.message_id;
|
|
9465
9906
|
}
|
|
9466
9907
|
if (message.channel_id !== "") {
|
|
9467
9908
|
obj.channel_id = message.channel_id;
|
|
9468
9909
|
}
|
|
9469
|
-
if (message.
|
|
9470
|
-
obj.
|
|
9910
|
+
if (message.clan_id !== "") {
|
|
9911
|
+
obj.clan_id = message.clan_id;
|
|
9471
9912
|
}
|
|
9472
9913
|
return obj;
|
|
9473
9914
|
},
|
|
9474
9915
|
create(base) {
|
|
9475
|
-
return
|
|
9916
|
+
return UnpinMessageEvent.fromPartial(base ?? {});
|
|
9476
9917
|
},
|
|
9477
9918
|
fromPartial(object) {
|
|
9478
|
-
const message =
|
|
9479
|
-
message.
|
|
9480
|
-
message.
|
|
9481
|
-
message.clan_id = object.clan_id ?? "";
|
|
9919
|
+
const message = createBaseUnpinMessageEvent();
|
|
9920
|
+
message.id = object.id ?? "";
|
|
9921
|
+
message.message_id = object.message_id ?? "";
|
|
9482
9922
|
message.channel_id = object.channel_id ?? "";
|
|
9483
|
-
message.
|
|
9923
|
+
message.clan_id = object.clan_id ?? "";
|
|
9484
9924
|
return message;
|
|
9485
9925
|
},
|
|
9486
9926
|
};
|
|
@@ -9505,6 +9945,19 @@ function fromJsonTimestamp(o) {
|
|
|
9505
9945
|
return fromTimestamp(Timestamp.fromJSON(o));
|
|
9506
9946
|
}
|
|
9507
9947
|
}
|
|
9948
|
+
function longToNumber(long) {
|
|
9949
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
9950
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
9951
|
+
}
|
|
9952
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
9953
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
9954
|
+
}
|
|
9955
|
+
return long.toNumber();
|
|
9956
|
+
}
|
|
9957
|
+
if (_m0.util.Long !== Long) {
|
|
9958
|
+
_m0.util.Long = Long;
|
|
9959
|
+
_m0.configure();
|
|
9960
|
+
}
|
|
9508
9961
|
function isObject(value) {
|
|
9509
9962
|
return typeof value === "object" && value !== null;
|
|
9510
9963
|
}
|