@juzi/wechaty-grpc 1.0.17 → 1.0.19

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.
Files changed (98) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +2 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +2 -0
  3. package/dist/cjs/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +128 -0
  5. package/dist/cjs/out/wechaty/puppet/moment_pb.js +953 -0
  6. package/dist/cjs/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/moment_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/post_grpc_pb.js +1 -0
  9. package/dist/cjs/out/wechaty/puppet/post_pb.d.ts +348 -0
  10. package/dist/cjs/out/wechaty/puppet/post_pb.js +2508 -0
  11. package/dist/cjs/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  12. package/dist/cjs/out/wechaty/puppet/post_pb_service.js +3 -0
  13. package/dist/cjs/out/wechaty/puppet.openapi.yaml +286 -1
  14. package/dist/cjs/out/wechaty/puppet.swagger.json +444 -1
  15. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  16. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +238 -0
  17. package/dist/cjs/out/wechaty/puppet_pb.d.ts +2 -0
  18. package/dist/cjs/out/wechaty/puppet_pb.js +4 -0
  19. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +135 -0
  20. package/dist/cjs/out/wechaty/puppet_pb_service.js +282 -0
  21. package/dist/cjs/proto/wechaty/puppet/channel.proto +8 -8
  22. package/dist/cjs/proto/wechaty/puppet/contact.proto +29 -29
  23. package/dist/cjs/proto/wechaty/puppet/friendship.proto +14 -14
  24. package/dist/cjs/proto/wechaty/puppet/location.proto +5 -5
  25. package/dist/cjs/proto/wechaty/puppet/message.proto +42 -43
  26. package/dist/cjs/proto/wechaty/puppet/mini-program.proto +9 -9
  27. package/dist/cjs/proto/wechaty/puppet/moment.proto +33 -0
  28. package/dist/cjs/proto/wechaty/puppet/post.proto +91 -0
  29. package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -8
  30. package/dist/cjs/proto/wechaty/puppet/room-member.proto +4 -4
  31. package/dist/cjs/proto/wechaty/puppet/room.proto +11 -11
  32. package/dist/cjs/proto/wechaty/puppet/tag.proto +6 -6
  33. package/dist/cjs/proto/wechaty/puppet/url-link.proto +4 -4
  34. package/dist/cjs/proto/wechaty/puppet.proto +58 -0
  35. package/dist/cjs/src/package-json.js +2 -2
  36. package/dist/cjs/src/package-json.js.map +1 -1
  37. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  38. package/dist/cjs/tests/puppet-server-impl.js +35 -0
  39. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  40. package/dist/esm/commonjs/generated/puppet.cjs +2 -0
  41. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +2 -0
  42. package/dist/esm/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  43. package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +128 -0
  44. package/dist/esm/out/wechaty/puppet/moment_pb.js +953 -0
  45. package/dist/esm/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  46. package/dist/esm/out/wechaty/puppet/moment_pb_service.js +3 -0
  47. package/dist/esm/out/wechaty/puppet/post_grpc_pb.js +1 -0
  48. package/dist/esm/out/wechaty/puppet/post_pb.d.ts +348 -0
  49. package/dist/esm/out/wechaty/puppet/post_pb.js +2508 -0
  50. package/dist/esm/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  51. package/dist/esm/out/wechaty/puppet/post_pb_service.js +3 -0
  52. package/dist/esm/out/wechaty/puppet.openapi.yaml +286 -1
  53. package/dist/esm/out/wechaty/puppet.swagger.json +444 -1
  54. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  55. package/dist/esm/out/wechaty/puppet_grpc_pb.js +238 -0
  56. package/dist/esm/out/wechaty/puppet_pb.d.ts +2 -0
  57. package/dist/esm/out/wechaty/puppet_pb.js +4 -0
  58. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +135 -0
  59. package/dist/esm/out/wechaty/puppet_pb_service.js +282 -0
  60. package/dist/esm/proto/wechaty/puppet/channel.proto +8 -8
  61. package/dist/esm/proto/wechaty/puppet/contact.proto +29 -29
  62. package/dist/esm/proto/wechaty/puppet/friendship.proto +14 -14
  63. package/dist/esm/proto/wechaty/puppet/location.proto +5 -5
  64. package/dist/esm/proto/wechaty/puppet/message.proto +42 -43
  65. package/dist/esm/proto/wechaty/puppet/mini-program.proto +9 -9
  66. package/dist/esm/proto/wechaty/puppet/moment.proto +33 -0
  67. package/dist/esm/proto/wechaty/puppet/post.proto +91 -0
  68. package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -8
  69. package/dist/esm/proto/wechaty/puppet/room-member.proto +4 -4
  70. package/dist/esm/proto/wechaty/puppet/room.proto +11 -11
  71. package/dist/esm/proto/wechaty/puppet/tag.proto +6 -6
  72. package/dist/esm/proto/wechaty/puppet/url-link.proto +4 -4
  73. package/dist/esm/proto/wechaty/puppet.proto +58 -0
  74. package/dist/esm/src/package-json.js +2 -2
  75. package/dist/esm/src/package-json.js.map +1 -1
  76. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  77. package/dist/esm/tests/puppet-server-impl.js +35 -0
  78. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  79. package/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  80. package/out/wechaty/puppet/moment_pb.d.ts +128 -0
  81. package/out/wechaty/puppet/moment_pb.js +953 -0
  82. package/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  83. package/out/wechaty/puppet/moment_pb_service.js +3 -0
  84. package/out/wechaty/puppet/post_grpc_pb.js +1 -0
  85. package/out/wechaty/puppet/post_pb.d.ts +348 -0
  86. package/out/wechaty/puppet/post_pb.js +2508 -0
  87. package/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  88. package/out/wechaty/puppet/post_pb_service.js +3 -0
  89. package/out/wechaty/puppet.openapi.yaml +286 -1
  90. package/out/wechaty/puppet.swagger.json +444 -1
  91. package/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  92. package/out/wechaty/puppet_grpc_pb.js +238 -0
  93. package/out/wechaty/puppet_pb.d.ts +2 -0
  94. package/out/wechaty/puppet_pb.js +4 -0
  95. package/out/wechaty/puppet_pb_service.d.ts +135 -0
  96. package/out/wechaty/puppet_pb_service.js +282 -0
  97. package/package.json +1 -1
  98. package/src/package-json.ts +2 -2
@@ -28,6 +28,8 @@ var wechaty_puppet_room$member_pb = require('../wechaty/puppet/room-member_pb.js
28
28
  var wechaty_puppet_room_pb = require('../wechaty/puppet/room_pb.js');
29
29
  var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
30
30
  var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
31
+ var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
32
+ var wechaty_puppet_moment_pb = require('../wechaty/puppet/moment_pb.js');
31
33
 
32
34
  function serialize_wechaty_puppet_ContactAliasRequest(arg) {
33
35
  if (!(arg instanceof wechaty_puppet_contact_pb.ContactAliasRequest)) {
@@ -953,6 +955,160 @@ function deserialize_wechaty_puppet_MessageUrlResponse(buffer_arg) {
953
955
  return wechaty_puppet_message_pb.MessageUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
954
956
  }
955
957
 
958
+ function serialize_wechaty_puppet_MomentCoverageRequest(arg) {
959
+ if (!(arg instanceof wechaty_puppet_moment_pb.MomentCoverageRequest)) {
960
+ throw new Error('Expected argument of type wechaty.puppet.MomentCoverageRequest');
961
+ }
962
+ return Buffer.from(arg.serializeBinary());
963
+ }
964
+
965
+ function deserialize_wechaty_puppet_MomentCoverageRequest(buffer_arg) {
966
+ return wechaty_puppet_moment_pb.MomentCoverageRequest.deserializeBinary(new Uint8Array(buffer_arg));
967
+ }
968
+
969
+ function serialize_wechaty_puppet_MomentCoverageResponse(arg) {
970
+ if (!(arg instanceof wechaty_puppet_moment_pb.MomentCoverageResponse)) {
971
+ throw new Error('Expected argument of type wechaty.puppet.MomentCoverageResponse');
972
+ }
973
+ return Buffer.from(arg.serializeBinary());
974
+ }
975
+
976
+ function deserialize_wechaty_puppet_MomentCoverageResponse(buffer_arg) {
977
+ return wechaty_puppet_moment_pb.MomentCoverageResponse.deserializeBinary(new Uint8Array(buffer_arg));
978
+ }
979
+
980
+ function serialize_wechaty_puppet_MomentPublishRequest(arg) {
981
+ if (!(arg instanceof wechaty_puppet_moment_pb.MomentPublishRequest)) {
982
+ throw new Error('Expected argument of type wechaty.puppet.MomentPublishRequest');
983
+ }
984
+ return Buffer.from(arg.serializeBinary());
985
+ }
986
+
987
+ function deserialize_wechaty_puppet_MomentPublishRequest(buffer_arg) {
988
+ return wechaty_puppet_moment_pb.MomentPublishRequest.deserializeBinary(new Uint8Array(buffer_arg));
989
+ }
990
+
991
+ function serialize_wechaty_puppet_MomentPublishResponse(arg) {
992
+ if (!(arg instanceof wechaty_puppet_moment_pb.MomentPublishResponse)) {
993
+ throw new Error('Expected argument of type wechaty.puppet.MomentPublishResponse');
994
+ }
995
+ return Buffer.from(arg.serializeBinary());
996
+ }
997
+
998
+ function deserialize_wechaty_puppet_MomentPublishResponse(buffer_arg) {
999
+ return wechaty_puppet_moment_pb.MomentPublishResponse.deserializeBinary(new Uint8Array(buffer_arg));
1000
+ }
1001
+
1002
+ function serialize_wechaty_puppet_MomentSignatureRequest(arg) {
1003
+ if (!(arg instanceof wechaty_puppet_moment_pb.MomentSignatureRequest)) {
1004
+ throw new Error('Expected argument of type wechaty.puppet.MomentSignatureRequest');
1005
+ }
1006
+ return Buffer.from(arg.serializeBinary());
1007
+ }
1008
+
1009
+ function deserialize_wechaty_puppet_MomentSignatureRequest(buffer_arg) {
1010
+ return wechaty_puppet_moment_pb.MomentSignatureRequest.deserializeBinary(new Uint8Array(buffer_arg));
1011
+ }
1012
+
1013
+ function serialize_wechaty_puppet_MomentSignatureResponse(arg) {
1014
+ if (!(arg instanceof wechaty_puppet_moment_pb.MomentSignatureResponse)) {
1015
+ throw new Error('Expected argument of type wechaty.puppet.MomentSignatureResponse');
1016
+ }
1017
+ return Buffer.from(arg.serializeBinary());
1018
+ }
1019
+
1020
+ function deserialize_wechaty_puppet_MomentSignatureResponse(buffer_arg) {
1021
+ return wechaty_puppet_moment_pb.MomentSignatureResponse.deserializeBinary(new Uint8Array(buffer_arg));
1022
+ }
1023
+
1024
+ function serialize_wechaty_puppet_PostCommentRequest(arg) {
1025
+ if (!(arg instanceof wechaty_puppet_post_pb.PostCommentRequest)) {
1026
+ throw new Error('Expected argument of type wechaty.puppet.PostCommentRequest');
1027
+ }
1028
+ return Buffer.from(arg.serializeBinary());
1029
+ }
1030
+
1031
+ function deserialize_wechaty_puppet_PostCommentRequest(buffer_arg) {
1032
+ return wechaty_puppet_post_pb.PostCommentRequest.deserializeBinary(new Uint8Array(buffer_arg));
1033
+ }
1034
+
1035
+ function serialize_wechaty_puppet_PostCommentResponse(arg) {
1036
+ if (!(arg instanceof wechaty_puppet_post_pb.PostCommentResponse)) {
1037
+ throw new Error('Expected argument of type wechaty.puppet.PostCommentResponse');
1038
+ }
1039
+ return Buffer.from(arg.serializeBinary());
1040
+ }
1041
+
1042
+ function deserialize_wechaty_puppet_PostCommentResponse(buffer_arg) {
1043
+ return wechaty_puppet_post_pb.PostCommentResponse.deserializeBinary(new Uint8Array(buffer_arg));
1044
+ }
1045
+
1046
+ function serialize_wechaty_puppet_PostLikeRequest(arg) {
1047
+ if (!(arg instanceof wechaty_puppet_post_pb.PostLikeRequest)) {
1048
+ throw new Error('Expected argument of type wechaty.puppet.PostLikeRequest');
1049
+ }
1050
+ return Buffer.from(arg.serializeBinary());
1051
+ }
1052
+
1053
+ function deserialize_wechaty_puppet_PostLikeRequest(buffer_arg) {
1054
+ return wechaty_puppet_post_pb.PostLikeRequest.deserializeBinary(new Uint8Array(buffer_arg));
1055
+ }
1056
+
1057
+ function serialize_wechaty_puppet_PostLikeResponse(arg) {
1058
+ if (!(arg instanceof wechaty_puppet_post_pb.PostLikeResponse)) {
1059
+ throw new Error('Expected argument of type wechaty.puppet.PostLikeResponse');
1060
+ }
1061
+ return Buffer.from(arg.serializeBinary());
1062
+ }
1063
+
1064
+ function deserialize_wechaty_puppet_PostLikeResponse(buffer_arg) {
1065
+ return wechaty_puppet_post_pb.PostLikeResponse.deserializeBinary(new Uint8Array(buffer_arg));
1066
+ }
1067
+
1068
+ function serialize_wechaty_puppet_PostPayloadRequest(arg) {
1069
+ if (!(arg instanceof wechaty_puppet_post_pb.PostPayloadRequest)) {
1070
+ throw new Error('Expected argument of type wechaty.puppet.PostPayloadRequest');
1071
+ }
1072
+ return Buffer.from(arg.serializeBinary());
1073
+ }
1074
+
1075
+ function deserialize_wechaty_puppet_PostPayloadRequest(buffer_arg) {
1076
+ return wechaty_puppet_post_pb.PostPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
1077
+ }
1078
+
1079
+ function serialize_wechaty_puppet_PostPayloadResponse(arg) {
1080
+ if (!(arg instanceof wechaty_puppet_post_pb.PostPayloadResponse)) {
1081
+ throw new Error('Expected argument of type wechaty.puppet.PostPayloadResponse');
1082
+ }
1083
+ return Buffer.from(arg.serializeBinary());
1084
+ }
1085
+
1086
+ function deserialize_wechaty_puppet_PostPayloadResponse(buffer_arg) {
1087
+ return wechaty_puppet_post_pb.PostPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
1088
+ }
1089
+
1090
+ function serialize_wechaty_puppet_PostPayloadSayableRequest(arg) {
1091
+ if (!(arg instanceof wechaty_puppet_post_pb.PostPayloadSayableRequest)) {
1092
+ throw new Error('Expected argument of type wechaty.puppet.PostPayloadSayableRequest');
1093
+ }
1094
+ return Buffer.from(arg.serializeBinary());
1095
+ }
1096
+
1097
+ function deserialize_wechaty_puppet_PostPayloadSayableRequest(buffer_arg) {
1098
+ return wechaty_puppet_post_pb.PostPayloadSayableRequest.deserializeBinary(new Uint8Array(buffer_arg));
1099
+ }
1100
+
1101
+ function serialize_wechaty_puppet_PostPayloadSayableResponse(arg) {
1102
+ if (!(arg instanceof wechaty_puppet_post_pb.PostPayloadSayableResponse)) {
1103
+ throw new Error('Expected argument of type wechaty.puppet.PostPayloadSayableResponse');
1104
+ }
1105
+ return Buffer.from(arg.serializeBinary());
1106
+ }
1107
+
1108
+ function deserialize_wechaty_puppet_PostPayloadSayableResponse(buffer_arg) {
1109
+ return wechaty_puppet_post_pb.PostPayloadSayableResponse.deserializeBinary(new Uint8Array(buffer_arg));
1110
+ }
1111
+
956
1112
  function serialize_wechaty_puppet_RoomAddRequest(arg) {
957
1113
  if (!(arg instanceof wechaty_puppet_room_pb.RoomAddRequest)) {
958
1114
  throw new Error('Expected argument of type wechaty.puppet.RoomAddRequest');
@@ -2479,6 +2635,88 @@ tagContactTagAdd: {
2479
2635
  responseDeserialize: deserialize_wechaty_puppet_TagTagContactListResponse,
2480
2636
  },
2481
2637
  // *
2638
+ //
2639
+ // Moment & Post
2640
+ //
2641
+ //
2642
+ momentPublish: {
2643
+ path: '/wechaty.Puppet/momentPublish',
2644
+ requestStream: false,
2645
+ responseStream: false,
2646
+ requestType: wechaty_puppet_moment_pb.MomentPublishRequest,
2647
+ responseType: wechaty_puppet_moment_pb.MomentPublishResponse,
2648
+ requestSerialize: serialize_wechaty_puppet_MomentPublishRequest,
2649
+ requestDeserialize: deserialize_wechaty_puppet_MomentPublishRequest,
2650
+ responseSerialize: serialize_wechaty_puppet_MomentPublishResponse,
2651
+ responseDeserialize: deserialize_wechaty_puppet_MomentPublishResponse,
2652
+ },
2653
+ postComment: {
2654
+ path: '/wechaty.Puppet/postComment',
2655
+ requestStream: false,
2656
+ responseStream: false,
2657
+ requestType: wechaty_puppet_post_pb.PostCommentRequest,
2658
+ responseType: wechaty_puppet_post_pb.PostCommentResponse,
2659
+ requestSerialize: serialize_wechaty_puppet_PostCommentRequest,
2660
+ requestDeserialize: deserialize_wechaty_puppet_PostCommentRequest,
2661
+ responseSerialize: serialize_wechaty_puppet_PostCommentResponse,
2662
+ responseDeserialize: deserialize_wechaty_puppet_PostCommentResponse,
2663
+ },
2664
+ postLike: {
2665
+ path: '/wechaty.Puppet/postLike',
2666
+ requestStream: false,
2667
+ responseStream: false,
2668
+ requestType: wechaty_puppet_post_pb.PostLikeRequest,
2669
+ responseType: wechaty_puppet_post_pb.PostLikeResponse,
2670
+ requestSerialize: serialize_wechaty_puppet_PostLikeRequest,
2671
+ requestDeserialize: deserialize_wechaty_puppet_PostLikeRequest,
2672
+ responseSerialize: serialize_wechaty_puppet_PostLikeResponse,
2673
+ responseDeserialize: deserialize_wechaty_puppet_PostLikeResponse,
2674
+ },
2675
+ momentSignature: {
2676
+ path: '/wechaty.Puppet/momentSignature',
2677
+ requestStream: false,
2678
+ responseStream: false,
2679
+ requestType: wechaty_puppet_moment_pb.MomentSignatureRequest,
2680
+ responseType: wechaty_puppet_moment_pb.MomentSignatureResponse,
2681
+ requestSerialize: serialize_wechaty_puppet_MomentSignatureRequest,
2682
+ requestDeserialize: deserialize_wechaty_puppet_MomentSignatureRequest,
2683
+ responseSerialize: serialize_wechaty_puppet_MomentSignatureResponse,
2684
+ responseDeserialize: deserialize_wechaty_puppet_MomentSignatureResponse,
2685
+ },
2686
+ momentCoverage: {
2687
+ path: '/wechaty.Puppet/momentCoverage',
2688
+ requestStream: false,
2689
+ responseStream: false,
2690
+ requestType: wechaty_puppet_moment_pb.MomentCoverageRequest,
2691
+ responseType: wechaty_puppet_moment_pb.MomentCoverageResponse,
2692
+ requestSerialize: serialize_wechaty_puppet_MomentCoverageRequest,
2693
+ requestDeserialize: deserialize_wechaty_puppet_MomentCoverageRequest,
2694
+ responseSerialize: serialize_wechaty_puppet_MomentCoverageResponse,
2695
+ responseDeserialize: deserialize_wechaty_puppet_MomentCoverageResponse,
2696
+ },
2697
+ postPayload: {
2698
+ path: '/wechaty.Puppet/postPayload',
2699
+ requestStream: false,
2700
+ responseStream: false,
2701
+ requestType: wechaty_puppet_post_pb.PostPayloadRequest,
2702
+ responseType: wechaty_puppet_post_pb.PostPayloadResponse,
2703
+ requestSerialize: serialize_wechaty_puppet_PostPayloadRequest,
2704
+ requestDeserialize: deserialize_wechaty_puppet_PostPayloadRequest,
2705
+ responseSerialize: serialize_wechaty_puppet_PostPayloadResponse,
2706
+ responseDeserialize: deserialize_wechaty_puppet_PostPayloadResponse,
2707
+ },
2708
+ postPayloadSayable: {
2709
+ path: '/wechaty.Puppet/postPayloadSayable',
2710
+ requestStream: false,
2711
+ responseStream: false,
2712
+ requestType: wechaty_puppet_post_pb.PostPayloadSayableRequest,
2713
+ responseType: wechaty_puppet_post_pb.PostPayloadSayableResponse,
2714
+ requestSerialize: serialize_wechaty_puppet_PostPayloadSayableRequest,
2715
+ requestDeserialize: deserialize_wechaty_puppet_PostPayloadSayableRequest,
2716
+ responseSerialize: serialize_wechaty_puppet_PostPayloadSayableResponse,
2717
+ responseDeserialize: deserialize_wechaty_puppet_PostPayloadSayableResponse,
2718
+ },
2719
+ // *
2482
2720
  // File/Blob download & upload
2483
2721
  download: {
2484
2722
  path: '/wechaty.Puppet/Download',
@@ -16,4 +16,6 @@ import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb
16
16
  import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
17
17
  import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
18
18
  import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
19
+ import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
20
+ import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
19
21
 
@@ -43,3 +43,7 @@ var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
43
43
  goog.object.extend(proto, wechaty_puppet_tag_pb);
44
44
  var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
45
45
  goog.object.extend(proto, wechaty_puppet_channel_pb);
46
+ var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
47
+ goog.object.extend(proto, wechaty_puppet_post_pb);
48
+ var wechaty_puppet_moment_pb = require('../wechaty/puppet/moment_pb.js');
49
+ goog.object.extend(proto, wechaty_puppet_moment_pb);
@@ -13,6 +13,8 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
13
13
  import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
14
14
  import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
15
15
  import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
16
+ import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
17
+ import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
16
18
  import {grpc} from "@improbable-eng/grpc-web";
17
19
 
18
20
  type PuppetMessageFileStream = {
@@ -663,6 +665,69 @@ type PuppetTagTagContactList = {
663
665
  readonly responseType: typeof wechaty_puppet_tag_pb.TagTagContactListResponse;
664
666
  };
665
667
 
668
+ type PuppetmomentPublish = {
669
+ readonly methodName: string;
670
+ readonly service: typeof Puppet;
671
+ readonly requestStream: false;
672
+ readonly responseStream: false;
673
+ readonly requestType: typeof wechaty_puppet_moment_pb.MomentPublishRequest;
674
+ readonly responseType: typeof wechaty_puppet_moment_pb.MomentPublishResponse;
675
+ };
676
+
677
+ type PuppetpostComment = {
678
+ readonly methodName: string;
679
+ readonly service: typeof Puppet;
680
+ readonly requestStream: false;
681
+ readonly responseStream: false;
682
+ readonly requestType: typeof wechaty_puppet_post_pb.PostCommentRequest;
683
+ readonly responseType: typeof wechaty_puppet_post_pb.PostCommentResponse;
684
+ };
685
+
686
+ type PuppetpostLike = {
687
+ readonly methodName: string;
688
+ readonly service: typeof Puppet;
689
+ readonly requestStream: false;
690
+ readonly responseStream: false;
691
+ readonly requestType: typeof wechaty_puppet_post_pb.PostLikeRequest;
692
+ readonly responseType: typeof wechaty_puppet_post_pb.PostLikeResponse;
693
+ };
694
+
695
+ type PuppetmomentSignature = {
696
+ readonly methodName: string;
697
+ readonly service: typeof Puppet;
698
+ readonly requestStream: false;
699
+ readonly responseStream: false;
700
+ readonly requestType: typeof wechaty_puppet_moment_pb.MomentSignatureRequest;
701
+ readonly responseType: typeof wechaty_puppet_moment_pb.MomentSignatureResponse;
702
+ };
703
+
704
+ type PuppetmomentCoverage = {
705
+ readonly methodName: string;
706
+ readonly service: typeof Puppet;
707
+ readonly requestStream: false;
708
+ readonly responseStream: false;
709
+ readonly requestType: typeof wechaty_puppet_moment_pb.MomentCoverageRequest;
710
+ readonly responseType: typeof wechaty_puppet_moment_pb.MomentCoverageResponse;
711
+ };
712
+
713
+ type PuppetpostPayload = {
714
+ readonly methodName: string;
715
+ readonly service: typeof Puppet;
716
+ readonly requestStream: false;
717
+ readonly responseStream: false;
718
+ readonly requestType: typeof wechaty_puppet_post_pb.PostPayloadRequest;
719
+ readonly responseType: typeof wechaty_puppet_post_pb.PostPayloadResponse;
720
+ };
721
+
722
+ type PuppetpostPayloadSayable = {
723
+ readonly methodName: string;
724
+ readonly service: typeof Puppet;
725
+ readonly requestStream: false;
726
+ readonly responseStream: false;
727
+ readonly requestType: typeof wechaty_puppet_post_pb.PostPayloadSayableRequest;
728
+ readonly responseType: typeof wechaty_puppet_post_pb.PostPayloadSayableResponse;
729
+ };
730
+
666
731
  type PuppetDownload = {
667
732
  readonly methodName: string;
668
733
  readonly service: typeof Puppet;
@@ -755,6 +820,13 @@ export class Puppet {
755
820
  static readonly TagTagList: PuppetTagTagList;
756
821
  static readonly TagContactTagList: PuppetTagContactTagList;
757
822
  static readonly TagTagContactList: PuppetTagTagContactList;
823
+ static readonly momentPublish: PuppetmomentPublish;
824
+ static readonly postComment: PuppetpostComment;
825
+ static readonly postLike: PuppetpostLike;
826
+ static readonly momentSignature: PuppetmomentSignature;
827
+ static readonly momentCoverage: PuppetmomentCoverage;
828
+ static readonly postPayload: PuppetpostPayload;
829
+ static readonly postPayloadSayable: PuppetpostPayloadSayable;
758
830
  static readonly Download: PuppetDownload;
759
831
  static readonly Upload: PuppetUpload;
760
832
  }
@@ -1407,6 +1479,69 @@ export class PuppetClient {
1407
1479
  requestMessage: wechaty_puppet_tag_pb.TagTagContactListRequest,
1408
1480
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagTagContactListResponse|null) => void
1409
1481
  ): UnaryResponse;
1482
+ momentPublish(
1483
+ requestMessage: wechaty_puppet_moment_pb.MomentPublishRequest,
1484
+ metadata: grpc.Metadata,
1485
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentPublishResponse|null) => void
1486
+ ): UnaryResponse;
1487
+ momentPublish(
1488
+ requestMessage: wechaty_puppet_moment_pb.MomentPublishRequest,
1489
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentPublishResponse|null) => void
1490
+ ): UnaryResponse;
1491
+ postComment(
1492
+ requestMessage: wechaty_puppet_post_pb.PostCommentRequest,
1493
+ metadata: grpc.Metadata,
1494
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostCommentResponse|null) => void
1495
+ ): UnaryResponse;
1496
+ postComment(
1497
+ requestMessage: wechaty_puppet_post_pb.PostCommentRequest,
1498
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostCommentResponse|null) => void
1499
+ ): UnaryResponse;
1500
+ postLike(
1501
+ requestMessage: wechaty_puppet_post_pb.PostLikeRequest,
1502
+ metadata: grpc.Metadata,
1503
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostLikeResponse|null) => void
1504
+ ): UnaryResponse;
1505
+ postLike(
1506
+ requestMessage: wechaty_puppet_post_pb.PostLikeRequest,
1507
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostLikeResponse|null) => void
1508
+ ): UnaryResponse;
1509
+ momentSignature(
1510
+ requestMessage: wechaty_puppet_moment_pb.MomentSignatureRequest,
1511
+ metadata: grpc.Metadata,
1512
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentSignatureResponse|null) => void
1513
+ ): UnaryResponse;
1514
+ momentSignature(
1515
+ requestMessage: wechaty_puppet_moment_pb.MomentSignatureRequest,
1516
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentSignatureResponse|null) => void
1517
+ ): UnaryResponse;
1518
+ momentCoverage(
1519
+ requestMessage: wechaty_puppet_moment_pb.MomentCoverageRequest,
1520
+ metadata: grpc.Metadata,
1521
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentCoverageResponse|null) => void
1522
+ ): UnaryResponse;
1523
+ momentCoverage(
1524
+ requestMessage: wechaty_puppet_moment_pb.MomentCoverageRequest,
1525
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentCoverageResponse|null) => void
1526
+ ): UnaryResponse;
1527
+ postPayload(
1528
+ requestMessage: wechaty_puppet_post_pb.PostPayloadRequest,
1529
+ metadata: grpc.Metadata,
1530
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadResponse|null) => void
1531
+ ): UnaryResponse;
1532
+ postPayload(
1533
+ requestMessage: wechaty_puppet_post_pb.PostPayloadRequest,
1534
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadResponse|null) => void
1535
+ ): UnaryResponse;
1536
+ postPayloadSayable(
1537
+ requestMessage: wechaty_puppet_post_pb.PostPayloadSayableRequest,
1538
+ metadata: grpc.Metadata,
1539
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadSayableResponse|null) => void
1540
+ ): UnaryResponse;
1541
+ postPayloadSayable(
1542
+ requestMessage: wechaty_puppet_post_pb.PostPayloadSayableRequest,
1543
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadSayableResponse|null) => void
1544
+ ): UnaryResponse;
1410
1545
  download(requestMessage: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
1411
1546
  upload(metadata?: grpc.Metadata): RequestStream<wechaty_puppet_download_upload_pb.UploadRequest>;
1412
1547
  }