UNPKG

40 kBJavaScriptView Raw
1module.exports = require('protobufjs/dist/protobuf-light')
2 .newBuilder({})
3 ['import']({
4 package: 'push_server.messages2',
5 syntax: 'proto2',
6 options: {
7 objc_class_prefix: 'AVIM',
8 },
9 messages: [
10 {
11 name: 'JsonObjectMessage',
12 syntax: 'proto2',
13 fields: [
14 {
15 rule: 'required',
16 type: 'string',
17 name: 'data',
18 id: 1,
19 },
20 ],
21 },
22 {
23 name: 'UnreadTuple',
24 syntax: 'proto2',
25 fields: [
26 {
27 rule: 'required',
28 type: 'string',
29 name: 'cid',
30 id: 1,
31 },
32 {
33 rule: 'required',
34 type: 'int32',
35 name: 'unread',
36 id: 2,
37 },
38 {
39 rule: 'optional',
40 type: 'string',
41 name: 'mid',
42 id: 3,
43 },
44 {
45 rule: 'optional',
46 type: 'int64',
47 name: 'timestamp',
48 id: 4,
49 },
50 {
51 rule: 'optional',
52 type: 'string',
53 name: 'from',
54 id: 5,
55 },
56 {
57 rule: 'optional',
58 type: 'string',
59 name: 'data',
60 id: 6,
61 },
62 {
63 rule: 'optional',
64 type: 'int64',
65 name: 'patchTimestamp',
66 id: 7,
67 },
68 {
69 rule: 'optional',
70 type: 'bool',
71 name: 'mentioned',
72 id: 8,
73 },
74 {
75 rule: 'optional',
76 type: 'bytes',
77 name: 'binaryMsg',
78 id: 9,
79 },
80 {
81 rule: 'optional',
82 type: 'int32',
83 name: 'convType',
84 id: 10,
85 },
86 ],
87 },
88 {
89 name: 'LogItem',
90 syntax: 'proto2',
91 fields: [
92 {
93 rule: 'optional',
94 type: 'string',
95 name: 'from',
96 id: 1,
97 },
98 {
99 rule: 'optional',
100 type: 'string',
101 name: 'data',
102 id: 2,
103 },
104 {
105 rule: 'optional',
106 type: 'int64',
107 name: 'timestamp',
108 id: 3,
109 },
110 {
111 rule: 'optional',
112 type: 'string',
113 name: 'msgId',
114 id: 4,
115 },
116 {
117 rule: 'optional',
118 type: 'int64',
119 name: 'ackAt',
120 id: 5,
121 },
122 {
123 rule: 'optional',
124 type: 'int64',
125 name: 'readAt',
126 id: 6,
127 },
128 {
129 rule: 'optional',
130 type: 'int64',
131 name: 'patchTimestamp',
132 id: 7,
133 },
134 {
135 rule: 'optional',
136 type: 'bool',
137 name: 'mentionAll',
138 id: 8,
139 },
140 {
141 rule: 'repeated',
142 type: 'string',
143 name: 'mentionPids',
144 id: 9,
145 },
146 {
147 rule: 'optional',
148 type: 'bool',
149 name: 'bin',
150 id: 10,
151 },
152 {
153 rule: 'optional',
154 type: 'int32',
155 name: 'convType',
156 id: 11,
157 },
158 ],
159 },
160 {
161 name: 'ConvMemberInfo',
162 syntax: 'proto2',
163 fields: [
164 {
165 rule: 'optional',
166 type: 'string',
167 name: 'pid',
168 id: 1,
169 },
170 {
171 rule: 'optional',
172 type: 'string',
173 name: 'role',
174 id: 2,
175 },
176 {
177 rule: 'optional',
178 type: 'string',
179 name: 'infoId',
180 id: 3,
181 },
182 ],
183 },
184 {
185 name: 'DataCommand',
186 syntax: 'proto2',
187 fields: [
188 {
189 rule: 'repeated',
190 type: 'string',
191 name: 'ids',
192 id: 1,
193 },
194 {
195 rule: 'repeated',
196 type: 'JsonObjectMessage',
197 name: 'msg',
198 id: 2,
199 },
200 {
201 rule: 'optional',
202 type: 'bool',
203 name: 'offline',
204 id: 3,
205 },
206 ],
207 },
208 {
209 name: 'SessionCommand',
210 syntax: 'proto2',
211 fields: [
212 {
213 rule: 'optional',
214 type: 'int64',
215 name: 't',
216 id: 1,
217 },
218 {
219 rule: 'optional',
220 type: 'string',
221 name: 'n',
222 id: 2,
223 },
224 {
225 rule: 'optional',
226 type: 'string',
227 name: 's',
228 id: 3,
229 },
230 {
231 rule: 'optional',
232 type: 'string',
233 name: 'ua',
234 id: 4,
235 },
236 {
237 rule: 'optional',
238 type: 'bool',
239 name: 'r',
240 id: 5,
241 },
242 {
243 rule: 'optional',
244 type: 'string',
245 name: 'tag',
246 id: 6,
247 },
248 {
249 rule: 'optional',
250 type: 'string',
251 name: 'deviceId',
252 id: 7,
253 },
254 {
255 rule: 'repeated',
256 type: 'string',
257 name: 'sessionPeerIds',
258 id: 8,
259 },
260 {
261 rule: 'repeated',
262 type: 'string',
263 name: 'onlineSessionPeerIds',
264 id: 9,
265 },
266 {
267 rule: 'optional',
268 type: 'string',
269 name: 'st',
270 id: 10,
271 },
272 {
273 rule: 'optional',
274 type: 'int32',
275 name: 'stTtl',
276 id: 11,
277 },
278 {
279 rule: 'optional',
280 type: 'int32',
281 name: 'code',
282 id: 12,
283 },
284 {
285 rule: 'optional',
286 type: 'string',
287 name: 'reason',
288 id: 13,
289 },
290 {
291 rule: 'optional',
292 type: 'string',
293 name: 'deviceToken',
294 id: 14,
295 },
296 {
297 rule: 'optional',
298 type: 'bool',
299 name: 'sp',
300 id: 15,
301 },
302 {
303 rule: 'optional',
304 type: 'string',
305 name: 'detail',
306 id: 16,
307 },
308 {
309 rule: 'optional',
310 type: 'int64',
311 name: 'lastUnreadNotifTime',
312 id: 17,
313 },
314 {
315 rule: 'optional',
316 type: 'int64',
317 name: 'lastPatchTime',
318 id: 18,
319 },
320 {
321 rule: 'optional',
322 type: 'int64',
323 name: 'configBitmap',
324 id: 19,
325 },
326 ],
327 },
328 {
329 name: 'ErrorCommand',
330 syntax: 'proto2',
331 fields: [
332 {
333 rule: 'required',
334 type: 'int32',
335 name: 'code',
336 id: 1,
337 },
338 {
339 rule: 'required',
340 type: 'string',
341 name: 'reason',
342 id: 2,
343 },
344 {
345 rule: 'optional',
346 type: 'int32',
347 name: 'appCode',
348 id: 3,
349 },
350 {
351 rule: 'optional',
352 type: 'string',
353 name: 'detail',
354 id: 4,
355 },
356 {
357 rule: 'repeated',
358 type: 'string',
359 name: 'pids',
360 id: 5,
361 },
362 {
363 rule: 'optional',
364 type: 'string',
365 name: 'appMsg',
366 id: 6,
367 },
368 ],
369 },
370 {
371 name: 'DirectCommand',
372 syntax: 'proto2',
373 fields: [
374 {
375 rule: 'optional',
376 type: 'string',
377 name: 'msg',
378 id: 1,
379 },
380 {
381 rule: 'optional',
382 type: 'string',
383 name: 'uid',
384 id: 2,
385 },
386 {
387 rule: 'optional',
388 type: 'string',
389 name: 'fromPeerId',
390 id: 3,
391 },
392 {
393 rule: 'optional',
394 type: 'int64',
395 name: 'timestamp',
396 id: 4,
397 },
398 {
399 rule: 'optional',
400 type: 'bool',
401 name: 'offline',
402 id: 5,
403 },
404 {
405 rule: 'optional',
406 type: 'bool',
407 name: 'hasMore',
408 id: 6,
409 },
410 {
411 rule: 'repeated',
412 type: 'string',
413 name: 'toPeerIds',
414 id: 7,
415 },
416 {
417 rule: 'optional',
418 type: 'bool',
419 name: 'r',
420 id: 10,
421 },
422 {
423 rule: 'optional',
424 type: 'string',
425 name: 'cid',
426 id: 11,
427 },
428 {
429 rule: 'optional',
430 type: 'string',
431 name: 'id',
432 id: 12,
433 },
434 {
435 rule: 'optional',
436 type: 'bool',
437 name: 'transient',
438 id: 13,
439 },
440 {
441 rule: 'optional',
442 type: 'string',
443 name: 'dt',
444 id: 14,
445 },
446 {
447 rule: 'optional',
448 type: 'string',
449 name: 'roomId',
450 id: 15,
451 },
452 {
453 rule: 'optional',
454 type: 'string',
455 name: 'pushData',
456 id: 16,
457 },
458 {
459 rule: 'optional',
460 type: 'bool',
461 name: 'will',
462 id: 17,
463 },
464 {
465 rule: 'optional',
466 type: 'int64',
467 name: 'patchTimestamp',
468 id: 18,
469 },
470 {
471 rule: 'optional',
472 type: 'bytes',
473 name: 'binaryMsg',
474 id: 19,
475 },
476 {
477 rule: 'repeated',
478 type: 'string',
479 name: 'mentionPids',
480 id: 20,
481 },
482 {
483 rule: 'optional',
484 type: 'bool',
485 name: 'mentionAll',
486 id: 21,
487 },
488 {
489 rule: 'optional',
490 type: 'int32',
491 name: 'convType',
492 id: 22,
493 },
494 ],
495 },
496 {
497 name: 'AckCommand',
498 syntax: 'proto2',
499 fields: [
500 {
501 rule: 'optional',
502 type: 'int32',
503 name: 'code',
504 id: 1,
505 },
506 {
507 rule: 'optional',
508 type: 'string',
509 name: 'reason',
510 id: 2,
511 },
512 {
513 rule: 'optional',
514 type: 'string',
515 name: 'mid',
516 id: 3,
517 },
518 {
519 rule: 'optional',
520 type: 'string',
521 name: 'cid',
522 id: 4,
523 },
524 {
525 rule: 'optional',
526 type: 'int64',
527 name: 't',
528 id: 5,
529 },
530 {
531 rule: 'optional',
532 type: 'string',
533 name: 'uid',
534 id: 6,
535 },
536 {
537 rule: 'optional',
538 type: 'int64',
539 name: 'fromts',
540 id: 7,
541 },
542 {
543 rule: 'optional',
544 type: 'int64',
545 name: 'tots',
546 id: 8,
547 },
548 {
549 rule: 'optional',
550 type: 'string',
551 name: 'type',
552 id: 9,
553 },
554 {
555 rule: 'repeated',
556 type: 'string',
557 name: 'ids',
558 id: 10,
559 },
560 {
561 rule: 'optional',
562 type: 'int32',
563 name: 'appCode',
564 id: 11,
565 },
566 {
567 rule: 'optional',
568 type: 'string',
569 name: 'appMsg',
570 id: 12,
571 },
572 ],
573 },
574 {
575 name: 'UnreadCommand',
576 syntax: 'proto2',
577 fields: [
578 {
579 rule: 'repeated',
580 type: 'UnreadTuple',
581 name: 'convs',
582 id: 1,
583 },
584 {
585 rule: 'optional',
586 type: 'int64',
587 name: 'notifTime',
588 id: 2,
589 },
590 ],
591 },
592 {
593 name: 'ConvCommand',
594 syntax: 'proto2',
595 fields: [
596 {
597 rule: 'repeated',
598 type: 'string',
599 name: 'm',
600 id: 1,
601 },
602 {
603 rule: 'optional',
604 type: 'bool',
605 name: 'transient',
606 id: 2,
607 },
608 {
609 rule: 'optional',
610 type: 'bool',
611 name: 'unique',
612 id: 3,
613 },
614 {
615 rule: 'optional',
616 type: 'string',
617 name: 'cid',
618 id: 4,
619 },
620 {
621 rule: 'optional',
622 type: 'string',
623 name: 'cdate',
624 id: 5,
625 },
626 {
627 rule: 'optional',
628 type: 'string',
629 name: 'initBy',
630 id: 6,
631 },
632 {
633 rule: 'optional',
634 type: 'string',
635 name: 'sort',
636 id: 7,
637 },
638 {
639 rule: 'optional',
640 type: 'int32',
641 name: 'limit',
642 id: 8,
643 },
644 {
645 rule: 'optional',
646 type: 'int32',
647 name: 'skip',
648 id: 9,
649 },
650 {
651 rule: 'optional',
652 type: 'int32',
653 name: 'flag',
654 id: 10,
655 },
656 {
657 rule: 'optional',
658 type: 'int32',
659 name: 'count',
660 id: 11,
661 },
662 {
663 rule: 'optional',
664 type: 'string',
665 name: 'udate',
666 id: 12,
667 },
668 {
669 rule: 'optional',
670 type: 'int64',
671 name: 't',
672 id: 13,
673 },
674 {
675 rule: 'optional',
676 type: 'string',
677 name: 'n',
678 id: 14,
679 },
680 {
681 rule: 'optional',
682 type: 'string',
683 name: 's',
684 id: 15,
685 },
686 {
687 rule: 'optional',
688 type: 'bool',
689 name: 'statusSub',
690 id: 16,
691 },
692 {
693 rule: 'optional',
694 type: 'bool',
695 name: 'statusPub',
696 id: 17,
697 },
698 {
699 rule: 'optional',
700 type: 'int32',
701 name: 'statusTTL',
702 id: 18,
703 },
704 {
705 rule: 'optional',
706 type: 'string',
707 name: 'uniqueId',
708 id: 19,
709 },
710 {
711 rule: 'optional',
712 type: 'string',
713 name: 'targetClientId',
714 id: 20,
715 },
716 {
717 rule: 'optional',
718 type: 'int64',
719 name: 'maxReadTimestamp',
720 id: 21,
721 },
722 {
723 rule: 'optional',
724 type: 'int64',
725 name: 'maxAckTimestamp',
726 id: 22,
727 },
728 {
729 rule: 'optional',
730 type: 'bool',
731 name: 'queryAllMembers',
732 id: 23,
733 },
734 {
735 rule: 'repeated',
736 type: 'MaxReadTuple',
737 name: 'maxReadTuples',
738 id: 24,
739 },
740 {
741 rule: 'repeated',
742 type: 'string',
743 name: 'cids',
744 id: 25,
745 },
746 {
747 rule: 'optional',
748 type: 'ConvMemberInfo',
749 name: 'info',
750 id: 26,
751 },
752 {
753 rule: 'optional',
754 type: 'bool',
755 name: 'tempConv',
756 id: 27,
757 },
758 {
759 rule: 'optional',
760 type: 'int32',
761 name: 'tempConvTTL',
762 id: 28,
763 },
764 {
765 rule: 'repeated',
766 type: 'string',
767 name: 'tempConvIds',
768 id: 29,
769 },
770 {
771 rule: 'repeated',
772 type: 'string',
773 name: 'allowedPids',
774 id: 30,
775 },
776 {
777 rule: 'repeated',
778 type: 'ErrorCommand',
779 name: 'failedPids',
780 id: 31,
781 },
782 {
783 rule: 'optional',
784 type: 'string',
785 name: 'next',
786 id: 40,
787 },
788 {
789 rule: 'optional',
790 type: 'JsonObjectMessage',
791 name: 'results',
792 id: 100,
793 },
794 {
795 rule: 'optional',
796 type: 'JsonObjectMessage',
797 name: 'where',
798 id: 101,
799 },
800 {
801 rule: 'optional',
802 type: 'JsonObjectMessage',
803 name: 'attr',
804 id: 103,
805 },
806 {
807 rule: 'optional',
808 type: 'JsonObjectMessage',
809 name: 'attrModified',
810 id: 104,
811 },
812 ],
813 },
814 {
815 name: 'RoomCommand',
816 syntax: 'proto2',
817 fields: [
818 {
819 rule: 'optional',
820 type: 'string',
821 name: 'roomId',
822 id: 1,
823 },
824 {
825 rule: 'optional',
826 type: 'string',
827 name: 's',
828 id: 2,
829 },
830 {
831 rule: 'optional',
832 type: 'int64',
833 name: 't',
834 id: 3,
835 },
836 {
837 rule: 'optional',
838 type: 'string',
839 name: 'n',
840 id: 4,
841 },
842 {
843 rule: 'optional',
844 type: 'bool',
845 name: 'transient',
846 id: 5,
847 },
848 {
849 rule: 'repeated',
850 type: 'string',
851 name: 'roomPeerIds',
852 id: 6,
853 },
854 {
855 rule: 'optional',
856 type: 'string',
857 name: 'byPeerId',
858 id: 7,
859 },
860 ],
861 },
862 {
863 name: 'LogsCommand',
864 syntax: 'proto2',
865 fields: [
866 {
867 rule: 'optional',
868 type: 'string',
869 name: 'cid',
870 id: 1,
871 },
872 {
873 rule: 'optional',
874 type: 'int32',
875 name: 'l',
876 id: 2,
877 },
878 {
879 rule: 'optional',
880 type: 'int32',
881 name: 'limit',
882 id: 3,
883 },
884 {
885 rule: 'optional',
886 type: 'int64',
887 name: 't',
888 id: 4,
889 },
890 {
891 rule: 'optional',
892 type: 'int64',
893 name: 'tt',
894 id: 5,
895 },
896 {
897 rule: 'optional',
898 type: 'string',
899 name: 'tmid',
900 id: 6,
901 },
902 {
903 rule: 'optional',
904 type: 'string',
905 name: 'mid',
906 id: 7,
907 },
908 {
909 rule: 'optional',
910 type: 'string',
911 name: 'checksum',
912 id: 8,
913 },
914 {
915 rule: 'optional',
916 type: 'bool',
917 name: 'stored',
918 id: 9,
919 },
920 {
921 rule: 'optional',
922 type: 'QueryDirection',
923 name: 'direction',
924 id: 10,
925 options: {
926 default: 'OLD',
927 },
928 },
929 {
930 rule: 'optional',
931 type: 'bool',
932 name: 'tIncluded',
933 id: 11,
934 },
935 {
936 rule: 'optional',
937 type: 'bool',
938 name: 'ttIncluded',
939 id: 12,
940 },
941 {
942 rule: 'optional',
943 type: 'int32',
944 name: 'lctype',
945 id: 13,
946 },
947 {
948 rule: 'repeated',
949 type: 'LogItem',
950 name: 'logs',
951 id: 105,
952 },
953 ],
954 enums: [
955 {
956 name: 'QueryDirection',
957 syntax: 'proto2',
958 values: [
959 {
960 name: 'OLD',
961 id: 1,
962 },
963 {
964 name: 'NEW',
965 id: 2,
966 },
967 ],
968 },
969 ],
970 },
971 {
972 name: 'RcpCommand',
973 syntax: 'proto2',
974 fields: [
975 {
976 rule: 'optional',
977 type: 'string',
978 name: 'id',
979 id: 1,
980 },
981 {
982 rule: 'optional',
983 type: 'string',
984 name: 'cid',
985 id: 2,
986 },
987 {
988 rule: 'optional',
989 type: 'int64',
990 name: 't',
991 id: 3,
992 },
993 {
994 rule: 'optional',
995 type: 'bool',
996 name: 'read',
997 id: 4,
998 },
999 {
1000 rule: 'optional',
1001 type: 'string',
1002 name: 'from',
1003 id: 5,
1004 },
1005 ],
1006 },
1007 {
1008 name: 'ReadTuple',
1009 syntax: 'proto2',
1010 fields: [
1011 {
1012 rule: 'required',
1013 type: 'string',
1014 name: 'cid',
1015 id: 1,
1016 },
1017 {
1018 rule: 'optional',
1019 type: 'int64',
1020 name: 'timestamp',
1021 id: 2,
1022 },
1023 {
1024 rule: 'optional',
1025 type: 'string',
1026 name: 'mid',
1027 id: 3,
1028 },
1029 ],
1030 },
1031 {
1032 name: 'MaxReadTuple',
1033 syntax: 'proto2',
1034 fields: [
1035 {
1036 rule: 'optional',
1037 type: 'string',
1038 name: 'pid',
1039 id: 1,
1040 },
1041 {
1042 rule: 'optional',
1043 type: 'int64',
1044 name: 'maxAckTimestamp',
1045 id: 2,
1046 },
1047 {
1048 rule: 'optional',
1049 type: 'int64',
1050 name: 'maxReadTimestamp',
1051 id: 3,
1052 },
1053 ],
1054 },
1055 {
1056 name: 'ReadCommand',
1057 syntax: 'proto2',
1058 fields: [
1059 {
1060 rule: 'optional',
1061 type: 'string',
1062 name: 'cid',
1063 id: 1,
1064 },
1065 {
1066 rule: 'repeated',
1067 type: 'string',
1068 name: 'cids',
1069 id: 2,
1070 },
1071 {
1072 rule: 'repeated',
1073 type: 'ReadTuple',
1074 name: 'convs',
1075 id: 3,
1076 },
1077 ],
1078 },
1079 {
1080 name: 'PresenceCommand',
1081 syntax: 'proto2',
1082 fields: [
1083 {
1084 rule: 'optional',
1085 type: 'StatusType',
1086 name: 'status',
1087 id: 1,
1088 },
1089 {
1090 rule: 'repeated',
1091 type: 'string',
1092 name: 'sessionPeerIds',
1093 id: 2,
1094 },
1095 {
1096 rule: 'optional',
1097 type: 'string',
1098 name: 'cid',
1099 id: 3,
1100 },
1101 ],
1102 },
1103 {
1104 name: 'ReportCommand',
1105 syntax: 'proto2',
1106 fields: [
1107 {
1108 rule: 'optional',
1109 type: 'bool',
1110 name: 'initiative',
1111 id: 1,
1112 },
1113 {
1114 rule: 'optional',
1115 type: 'string',
1116 name: 'type',
1117 id: 2,
1118 },
1119 {
1120 rule: 'optional',
1121 type: 'string',
1122 name: 'data',
1123 id: 3,
1124 },
1125 ],
1126 },
1127 {
1128 name: 'PatchItem',
1129 syntax: 'proto2',
1130 fields: [
1131 {
1132 rule: 'optional',
1133 type: 'string',
1134 name: 'cid',
1135 id: 1,
1136 },
1137 {
1138 rule: 'optional',
1139 type: 'string',
1140 name: 'mid',
1141 id: 2,
1142 },
1143 {
1144 rule: 'optional',
1145 type: 'int64',
1146 name: 'timestamp',
1147 id: 3,
1148 },
1149 {
1150 rule: 'optional',
1151 type: 'bool',
1152 name: 'recall',
1153 id: 4,
1154 },
1155 {
1156 rule: 'optional',
1157 type: 'string',
1158 name: 'data',
1159 id: 5,
1160 },
1161 {
1162 rule: 'optional',
1163 type: 'int64',
1164 name: 'patchTimestamp',
1165 id: 6,
1166 },
1167 {
1168 rule: 'optional',
1169 type: 'string',
1170 name: 'from',
1171 id: 7,
1172 },
1173 {
1174 rule: 'optional',
1175 type: 'bytes',
1176 name: 'binaryMsg',
1177 id: 8,
1178 },
1179 {
1180 rule: 'optional',
1181 type: 'bool',
1182 name: 'mentionAll',
1183 id: 9,
1184 },
1185 {
1186 rule: 'repeated',
1187 type: 'string',
1188 name: 'mentionPids',
1189 id: 10,
1190 },
1191 {
1192 rule: 'optional',
1193 type: 'int64',
1194 name: 'patchCode',
1195 id: 11,
1196 },
1197 {
1198 rule: 'optional',
1199 type: 'string',
1200 name: 'patchReason',
1201 id: 12,
1202 },
1203 ],
1204 },
1205 {
1206 name: 'PatchCommand',
1207 syntax: 'proto2',
1208 fields: [
1209 {
1210 rule: 'repeated',
1211 type: 'PatchItem',
1212 name: 'patches',
1213 id: 1,
1214 },
1215 {
1216 rule: 'optional',
1217 type: 'int64',
1218 name: 'lastPatchTime',
1219 id: 2,
1220 },
1221 ],
1222 },
1223 {
1224 name: 'PubsubCommand',
1225 syntax: 'proto2',
1226 fields: [
1227 {
1228 rule: 'optional',
1229 type: 'string',
1230 name: 'cid',
1231 id: 1,
1232 },
1233 {
1234 rule: 'repeated',
1235 type: 'string',
1236 name: 'cids',
1237 id: 2,
1238 },
1239 {
1240 rule: 'optional',
1241 type: 'string',
1242 name: 'topic',
1243 id: 3,
1244 },
1245 {
1246 rule: 'optional',
1247 type: 'string',
1248 name: 'subtopic',
1249 id: 4,
1250 },
1251 {
1252 rule: 'repeated',
1253 type: 'string',
1254 name: 'topics',
1255 id: 5,
1256 },
1257 {
1258 rule: 'repeated',
1259 type: 'string',
1260 name: 'subtopics',
1261 id: 6,
1262 },
1263 {
1264 rule: 'optional',
1265 type: 'JsonObjectMessage',
1266 name: 'results',
1267 id: 7,
1268 },
1269 ],
1270 },
1271 {
1272 name: 'BlacklistCommand',
1273 syntax: 'proto2',
1274 fields: [
1275 {
1276 rule: 'optional',
1277 type: 'string',
1278 name: 'srcCid',
1279 id: 1,
1280 },
1281 {
1282 rule: 'repeated',
1283 type: 'string',
1284 name: 'toPids',
1285 id: 2,
1286 },
1287 {
1288 rule: 'optional',
1289 type: 'string',
1290 name: 'srcPid',
1291 id: 3,
1292 },
1293 {
1294 rule: 'repeated',
1295 type: 'string',
1296 name: 'toCids',
1297 id: 4,
1298 },
1299 {
1300 rule: 'optional',
1301 type: 'int32',
1302 name: 'limit',
1303 id: 5,
1304 },
1305 {
1306 rule: 'optional',
1307 type: 'string',
1308 name: 'next',
1309 id: 6,
1310 },
1311 {
1312 rule: 'repeated',
1313 type: 'string',
1314 name: 'blockedPids',
1315 id: 8,
1316 },
1317 {
1318 rule: 'repeated',
1319 type: 'string',
1320 name: 'blockedCids',
1321 id: 9,
1322 },
1323 {
1324 rule: 'repeated',
1325 type: 'string',
1326 name: 'allowedPids',
1327 id: 10,
1328 },
1329 {
1330 rule: 'repeated',
1331 type: 'ErrorCommand',
1332 name: 'failedPids',
1333 id: 11,
1334 },
1335 {
1336 rule: 'optional',
1337 type: 'int64',
1338 name: 't',
1339 id: 12,
1340 },
1341 {
1342 rule: 'optional',
1343 type: 'string',
1344 name: 'n',
1345 id: 13,
1346 },
1347 {
1348 rule: 'optional',
1349 type: 'string',
1350 name: 's',
1351 id: 14,
1352 },
1353 ],
1354 },
1355 {
1356 name: 'GenericCommand',
1357 syntax: 'proto2',
1358 fields: [
1359 {
1360 rule: 'optional',
1361 type: 'CommandType',
1362 name: 'cmd',
1363 id: 1,
1364 },
1365 {
1366 rule: 'optional',
1367 type: 'OpType',
1368 name: 'op',
1369 id: 2,
1370 },
1371 {
1372 rule: 'optional',
1373 type: 'string',
1374 name: 'appId',
1375 id: 3,
1376 },
1377 {
1378 rule: 'optional',
1379 type: 'string',
1380 name: 'peerId',
1381 id: 4,
1382 },
1383 {
1384 rule: 'optional',
1385 type: 'int32',
1386 name: 'i',
1387 id: 5,
1388 },
1389 {
1390 rule: 'optional',
1391 type: 'string',
1392 name: 'installationId',
1393 id: 6,
1394 },
1395 {
1396 rule: 'optional',
1397 type: 'int32',
1398 name: 'priority',
1399 id: 7,
1400 },
1401 {
1402 rule: 'optional',
1403 type: 'int32',
1404 name: 'service',
1405 id: 8,
1406 },
1407 {
1408 rule: 'optional',
1409 type: 'int64',
1410 name: 'serverTs',
1411 id: 9,
1412 },
1413 {
1414 rule: 'optional',
1415 type: 'int64',
1416 name: 'clientTs',
1417 id: 10,
1418 },
1419 {
1420 rule: 'optional',
1421 type: 'int32',
1422 name: 'notificationType',
1423 id: 11,
1424 },
1425 {
1426 rule: 'optional',
1427 type: 'DataCommand',
1428 name: 'dataMessage',
1429 id: 101,
1430 },
1431 {
1432 rule: 'optional',
1433 type: 'SessionCommand',
1434 name: 'sessionMessage',
1435 id: 102,
1436 },
1437 {
1438 rule: 'optional',
1439 type: 'ErrorCommand',
1440 name: 'errorMessage',
1441 id: 103,
1442 },
1443 {
1444 rule: 'optional',
1445 type: 'DirectCommand',
1446 name: 'directMessage',
1447 id: 104,
1448 },
1449 {
1450 rule: 'optional',
1451 type: 'AckCommand',
1452 name: 'ackMessage',
1453 id: 105,
1454 },
1455 {
1456 rule: 'optional',
1457 type: 'UnreadCommand',
1458 name: 'unreadMessage',
1459 id: 106,
1460 },
1461 {
1462 rule: 'optional',
1463 type: 'ReadCommand',
1464 name: 'readMessage',
1465 id: 107,
1466 },
1467 {
1468 rule: 'optional',
1469 type: 'RcpCommand',
1470 name: 'rcpMessage',
1471 id: 108,
1472 },
1473 {
1474 rule: 'optional',
1475 type: 'LogsCommand',
1476 name: 'logsMessage',
1477 id: 109,
1478 },
1479 {
1480 rule: 'optional',
1481 type: 'ConvCommand',
1482 name: 'convMessage',
1483 id: 110,
1484 },
1485 {
1486 rule: 'optional',
1487 type: 'RoomCommand',
1488 name: 'roomMessage',
1489 id: 111,
1490 },
1491 {
1492 rule: 'optional',
1493 type: 'PresenceCommand',
1494 name: 'presenceMessage',
1495 id: 112,
1496 },
1497 {
1498 rule: 'optional',
1499 type: 'ReportCommand',
1500 name: 'reportMessage',
1501 id: 113,
1502 },
1503 {
1504 rule: 'optional',
1505 type: 'PatchCommand',
1506 name: 'patchMessage',
1507 id: 114,
1508 },
1509 {
1510 rule: 'optional',
1511 type: 'PubsubCommand',
1512 name: 'pubsubMessage',
1513 id: 115,
1514 },
1515 {
1516 rule: 'optional',
1517 type: 'BlacklistCommand',
1518 name: 'blacklistMessage',
1519 id: 116,
1520 },
1521 ],
1522 },
1523 ],
1524 enums: [
1525 {
1526 name: 'CommandType',
1527 syntax: 'proto2',
1528 values: [
1529 {
1530 name: 'session',
1531 id: 0,
1532 },
1533 {
1534 name: 'conv',
1535 id: 1,
1536 },
1537 {
1538 name: 'direct',
1539 id: 2,
1540 },
1541 {
1542 name: 'ack',
1543 id: 3,
1544 },
1545 {
1546 name: 'rcp',
1547 id: 4,
1548 },
1549 {
1550 name: 'unread',
1551 id: 5,
1552 },
1553 {
1554 name: 'logs',
1555 id: 6,
1556 },
1557 {
1558 name: 'error',
1559 id: 7,
1560 },
1561 {
1562 name: 'login',
1563 id: 8,
1564 },
1565 {
1566 name: 'data',
1567 id: 9,
1568 },
1569 {
1570 name: 'room',
1571 id: 10,
1572 },
1573 {
1574 name: 'read',
1575 id: 11,
1576 },
1577 {
1578 name: 'presence',
1579 id: 12,
1580 },
1581 {
1582 name: 'report',
1583 id: 13,
1584 },
1585 {
1586 name: 'echo',
1587 id: 14,
1588 },
1589 {
1590 name: 'loggedin',
1591 id: 15,
1592 },
1593 {
1594 name: 'logout',
1595 id: 16,
1596 },
1597 {
1598 name: 'loggedout',
1599 id: 17,
1600 },
1601 {
1602 name: 'patch',
1603 id: 18,
1604 },
1605 {
1606 name: 'pubsub',
1607 id: 19,
1608 },
1609 {
1610 name: 'blacklist',
1611 id: 20,
1612 },
1613 {
1614 name: 'goaway',
1615 id: 21,
1616 },
1617 ],
1618 },
1619 {
1620 name: 'OpType',
1621 syntax: 'proto2',
1622 values: [
1623 {
1624 name: 'open',
1625 id: 1,
1626 },
1627 {
1628 name: 'add',
1629 id: 2,
1630 },
1631 {
1632 name: 'remove',
1633 id: 3,
1634 },
1635 {
1636 name: 'close',
1637 id: 4,
1638 },
1639 {
1640 name: 'opened',
1641 id: 5,
1642 },
1643 {
1644 name: 'closed',
1645 id: 6,
1646 },
1647 {
1648 name: 'query',
1649 id: 7,
1650 },
1651 {
1652 name: 'query_result',
1653 id: 8,
1654 },
1655 {
1656 name: 'conflict',
1657 id: 9,
1658 },
1659 {
1660 name: 'added',
1661 id: 10,
1662 },
1663 {
1664 name: 'removed',
1665 id: 11,
1666 },
1667 {
1668 name: 'refresh',
1669 id: 12,
1670 },
1671 {
1672 name: 'refreshed',
1673 id: 13,
1674 },
1675 {
1676 name: 'start',
1677 id: 30,
1678 },
1679 {
1680 name: 'started',
1681 id: 31,
1682 },
1683 {
1684 name: 'joined',
1685 id: 32,
1686 },
1687 {
1688 name: 'members_joined',
1689 id: 33,
1690 },
1691 {
1692 name: 'left',
1693 id: 39,
1694 },
1695 {
1696 name: 'members_left',
1697 id: 40,
1698 },
1699 {
1700 name: 'results',
1701 id: 42,
1702 },
1703 {
1704 name: 'count',
1705 id: 43,
1706 },
1707 {
1708 name: 'result',
1709 id: 44,
1710 },
1711 {
1712 name: 'update',
1713 id: 45,
1714 },
1715 {
1716 name: 'updated',
1717 id: 46,
1718 },
1719 {
1720 name: 'mute',
1721 id: 47,
1722 },
1723 {
1724 name: 'unmute',
1725 id: 48,
1726 },
1727 {
1728 name: 'status',
1729 id: 49,
1730 },
1731 {
1732 name: 'members',
1733 id: 50,
1734 },
1735 {
1736 name: 'max_read',
1737 id: 51,
1738 },
1739 {
1740 name: 'is_member',
1741 id: 52,
1742 },
1743 {
1744 name: 'member_info_update',
1745 id: 53,
1746 },
1747 {
1748 name: 'member_info_updated',
1749 id: 54,
1750 },
1751 {
1752 name: 'member_info_changed',
1753 id: 55,
1754 },
1755 {
1756 name: 'join',
1757 id: 80,
1758 },
1759 {
1760 name: 'invite',
1761 id: 81,
1762 },
1763 {
1764 name: 'leave',
1765 id: 82,
1766 },
1767 {
1768 name: 'kick',
1769 id: 83,
1770 },
1771 {
1772 name: 'reject',
1773 id: 84,
1774 },
1775 {
1776 name: 'invited',
1777 id: 85,
1778 },
1779 {
1780 name: 'kicked',
1781 id: 86,
1782 },
1783 {
1784 name: 'upload',
1785 id: 100,
1786 },
1787 {
1788 name: 'uploaded',
1789 id: 101,
1790 },
1791 {
1792 name: 'subscribe',
1793 id: 120,
1794 },
1795 {
1796 name: 'subscribed',
1797 id: 121,
1798 },
1799 {
1800 name: 'unsubscribe',
1801 id: 122,
1802 },
1803 {
1804 name: 'unsubscribed',
1805 id: 123,
1806 },
1807 {
1808 name: 'is_subscribed',
1809 id: 124,
1810 },
1811 {
1812 name: 'modify',
1813 id: 150,
1814 },
1815 {
1816 name: 'modified',
1817 id: 151,
1818 },
1819 {
1820 name: 'block',
1821 id: 170,
1822 },
1823 {
1824 name: 'unblock',
1825 id: 171,
1826 },
1827 {
1828 name: 'blocked',
1829 id: 172,
1830 },
1831 {
1832 name: 'unblocked',
1833 id: 173,
1834 },
1835 {
1836 name: 'members_blocked',
1837 id: 174,
1838 },
1839 {
1840 name: 'members_unblocked',
1841 id: 175,
1842 },
1843 {
1844 name: 'check_block',
1845 id: 176,
1846 },
1847 {
1848 name: 'check_result',
1849 id: 177,
1850 },
1851 {
1852 name: 'add_shutup',
1853 id: 180,
1854 },
1855 {
1856 name: 'remove_shutup',
1857 id: 181,
1858 },
1859 {
1860 name: 'query_shutup',
1861 id: 182,
1862 },
1863 {
1864 name: 'shutup_added',
1865 id: 183,
1866 },
1867 {
1868 name: 'shutup_removed',
1869 id: 184,
1870 },
1871 {
1872 name: 'shutup_result',
1873 id: 185,
1874 },
1875 {
1876 name: 'shutuped',
1877 id: 186,
1878 },
1879 {
1880 name: 'unshutuped',
1881 id: 187,
1882 },
1883 {
1884 name: 'members_shutuped',
1885 id: 188,
1886 },
1887 {
1888 name: 'members_unshutuped',
1889 id: 189,
1890 },
1891 {
1892 name: 'check_shutup',
1893 id: 190,
1894 },
1895 ],
1896 },
1897 {
1898 name: 'StatusType',
1899 syntax: 'proto2',
1900 values: [
1901 {
1902 name: 'on',
1903 id: 1,
1904 },
1905 {
1906 name: 'off',
1907 id: 2,
1908 },
1909 ],
1910 },
1911 ],
1912 isNamespace: true,
1913 })
1914 .build();