@juzi/wechaty-grpc 1.0.24 → 1.0.26

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 (65) hide show
  1. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  2. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  3. package/dist/cjs/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  5. package/dist/cjs/out/wechaty/puppet/conversation_pb.js +293 -0
  6. package/dist/cjs/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/conversation_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/post_pb.d.ts +30 -45
  9. package/dist/cjs/out/wechaty/puppet/post_pb.js +92 -261
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +52 -50
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +77 -77
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +32 -31
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +68 -63
  14. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  15. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +30 -29
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +47 -46
  18. package/dist/cjs/proto/wechaty/puppet/conversation.proto +12 -0
  19. package/dist/cjs/proto/wechaty/puppet/post.proto +14 -13
  20. package/dist/cjs/proto/wechaty/puppet.proto +14 -8
  21. package/dist/cjs/src/package-json.js +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.js +6 -6
  23. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  24. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  25. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  26. package/dist/esm/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  27. package/dist/esm/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  28. package/dist/esm/out/wechaty/puppet/conversation_pb.js +293 -0
  29. package/dist/esm/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  30. package/dist/esm/out/wechaty/puppet/conversation_pb_service.js +3 -0
  31. package/dist/esm/out/wechaty/puppet/post_pb.d.ts +30 -45
  32. package/dist/esm/out/wechaty/puppet/post_pb.js +92 -261
  33. package/dist/esm/out/wechaty/puppet.openapi.yaml +52 -50
  34. package/dist/esm/out/wechaty/puppet.swagger.json +77 -77
  35. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +32 -31
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.js +68 -63
  37. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  38. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  39. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +30 -29
  40. package/dist/esm/out/wechaty/puppet_pb_service.js +47 -46
  41. package/dist/esm/proto/wechaty/puppet/conversation.proto +12 -0
  42. package/dist/esm/proto/wechaty/puppet/post.proto +14 -13
  43. package/dist/esm/proto/wechaty/puppet.proto +14 -8
  44. package/dist/esm/src/package-json.js +1 -1
  45. package/dist/esm/tests/puppet-server-impl.js +6 -6
  46. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  47. package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  48. package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  49. package/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  50. package/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  51. package/out/wechaty/puppet/conversation_pb.js +293 -0
  52. package/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  53. package/out/wechaty/puppet/conversation_pb_service.js +3 -0
  54. package/out/wechaty/puppet/post_pb.d.ts +30 -45
  55. package/out/wechaty/puppet/post_pb.js +92 -261
  56. package/out/wechaty/puppet.openapi.yaml +52 -50
  57. package/out/wechaty/puppet.swagger.json +77 -77
  58. package/out/wechaty/puppet_grpc_pb.d.ts +32 -31
  59. package/out/wechaty/puppet_grpc_pb.js +68 -63
  60. package/out/wechaty/puppet_pb.d.ts +1 -0
  61. package/out/wechaty/puppet_pb.js +2 -0
  62. package/out/wechaty/puppet_pb_service.d.ts +30 -29
  63. package/out/wechaty/puppet_pb_service.js +47 -46
  64. package/package.json +1 -1
  65. package/src/package-json.ts +1 -1
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.24
12
+ version: 1.0.26
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -315,6 +315,32 @@ paths:
315
315
  pattern: PAYLOADTYPECONTACT
316
316
  tags:
317
317
  - Puppet
318
+ '/conversation/{conversationId}/read':
319
+ put:
320
+ summary: '*'
321
+ description: Conversation
322
+ operationId: Puppet_ConversationRead
323
+ responses:
324
+ '200':
325
+ description: A successful response.
326
+ schema:
327
+ $ref: '#/definitions/puppetConversationReadResponse'
328
+ default:
329
+ description: An unexpected error response.
330
+ schema:
331
+ $ref: '#/definitions/rpcStatus'
332
+ parameters:
333
+ - name: conversationId
334
+ in: path
335
+ required: true
336
+ type: string
337
+ - name: body
338
+ in: body
339
+ required: true
340
+ schema:
341
+ type: object
342
+ tags:
343
+ - Puppet
318
344
  '/conversations/{conversationId}/channel':
319
345
  post:
320
346
  operationId: Puppet_MessageSendChannel
@@ -1058,34 +1084,14 @@ paths:
1058
1084
  $ref: '#/definitions/puppetMomentSignatureRequest'
1059
1085
  tags:
1060
1086
  - Puppet
1061
- /post/comment:
1062
- post:
1063
- operationId: Puppet_postComment
1064
- responses:
1065
- '200':
1066
- description: A successful response.
1067
- schema:
1068
- $ref: '#/definitions/puppetPostCommentResponse'
1069
- default:
1070
- description: An unexpected error response.
1071
- schema:
1072
- $ref: '#/definitions/rpcStatus'
1073
- parameters:
1074
- - name: body
1075
- in: body
1076
- required: true
1077
- schema:
1078
- $ref: '#/definitions/puppetPostCommentRequest'
1079
- tags:
1080
- - Puppet
1081
1087
  /post/like:
1082
1088
  post:
1083
- operationId: Puppet_postLike
1089
+ operationId: Puppet_postTap
1084
1090
  responses:
1085
1091
  '200':
1086
1092
  description: A successful response.
1087
1093
  schema:
1088
- $ref: '#/definitions/puppetPostLikeResponse'
1094
+ $ref: '#/definitions/puppetPostTapResponse'
1089
1095
  default:
1090
1096
  description: An unexpected error response.
1091
1097
  schema:
@@ -1095,7 +1101,7 @@ paths:
1095
1101
  in: body
1096
1102
  required: true
1097
1103
  schema:
1098
- $ref: '#/definitions/puppetPostLikeRequest'
1104
+ $ref: '#/definitions/puppetPostTapRequest'
1099
1105
  tags:
1100
1106
  - Puppet
1101
1107
  /post/payload:
@@ -2165,6 +2171,8 @@ definitions:
2165
2171
  - CONTACT_TYPE_OFFICIAL
2166
2172
  - CONTACT_TYPE_CORPORATION
2167
2173
  default: CONTACT_TYPE_UNSPECIFIED
2174
+ puppetConversationReadResponse:
2175
+ type: object
2168
2176
  puppetCurrentUserResponse:
2169
2177
  type: object
2170
2178
  properties:
@@ -2673,32 +2681,6 @@ definitions:
2673
2681
  - PAYLOAD_TYPE_TAG
2674
2682
  - PAYLOAD_TYPE_TAG_GROUP
2675
2683
  default: PAYLOAD_TYPE_UNSPECIFIED
2676
- puppetPostCommentRequest:
2677
- type: object
2678
- properties:
2679
- postId:
2680
- type: string
2681
- text:
2682
- type: string
2683
- mentionIdList:
2684
- type: array
2685
- items:
2686
- type: string
2687
- puppetPostCommentResponse:
2688
- type: object
2689
- properties:
2690
- commentId:
2691
- type: string
2692
- puppetPostLikeRequest:
2693
- type: object
2694
- properties:
2695
- postId:
2696
- type: string
2697
- puppetPostLikeResponse:
2698
- type: object
2699
- properties:
2700
- tapId:
2701
- type: string
2702
2684
  puppetPostPayloadClient:
2703
2685
  type: object
2704
2686
  properties:
@@ -2781,6 +2763,20 @@ definitions:
2781
2763
  type: array
2782
2764
  items:
2783
2765
  type: string
2766
+ puppetPostTapRequest:
2767
+ type: object
2768
+ properties:
2769
+ postId:
2770
+ type: string
2771
+ type:
2772
+ $ref: '#/definitions/puppetTapType'
2773
+ tap:
2774
+ type: boolean
2775
+ puppetPostTapResponse:
2776
+ type: object
2777
+ properties:
2778
+ tap:
2779
+ type: boolean
2784
2780
  puppetPostType:
2785
2781
  type: string
2786
2782
  enum:
@@ -3088,6 +3084,12 @@ definitions:
3088
3084
  - PERSONAL
3089
3085
  - CORPORATION
3090
3086
  default: Unspecific
3087
+ puppetTapType:
3088
+ type: string
3089
+ enum:
3090
+ - TAP_TYPE_UNSPECIFIED
3091
+ - TAP_TYPE_LIKE
3092
+ default: TAP_TYPE_UNSPECIFIED
3091
3093
  puppetUploadRequest:
3092
3094
  type: object
3093
3095
  properties:
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.24",
6
+ "version": "1.0.26",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -471,6 +471,46 @@
471
471
  ]
472
472
  }
473
473
  },
474
+ "/conversation/{conversationId}/read": {
475
+ "put": {
476
+ "summary": "*",
477
+ "description": "Conversation",
478
+ "operationId": "Puppet_ConversationRead",
479
+ "responses": {
480
+ "200": {
481
+ "description": "A successful response.",
482
+ "schema": {
483
+ "$ref": "#/definitions/puppetConversationReadResponse"
484
+ }
485
+ },
486
+ "default": {
487
+ "description": "An unexpected error response.",
488
+ "schema": {
489
+ "$ref": "#/definitions/rpcStatus"
490
+ }
491
+ }
492
+ },
493
+ "parameters": [
494
+ {
495
+ "name": "conversationId",
496
+ "in": "path",
497
+ "required": true,
498
+ "type": "string"
499
+ },
500
+ {
501
+ "name": "body",
502
+ "in": "body",
503
+ "required": true,
504
+ "schema": {
505
+ "type": "object"
506
+ }
507
+ }
508
+ ],
509
+ "tags": [
510
+ "Puppet"
511
+ ]
512
+ }
513
+ },
474
514
  "/conversations/{conversationId}/channel": {
475
515
  "post": {
476
516
  "operationId": "Puppet_MessageSendChannel",
@@ -1585,46 +1625,14 @@
1585
1625
  ]
1586
1626
  }
1587
1627
  },
1588
- "/post/comment": {
1589
- "post": {
1590
- "operationId": "Puppet_postComment",
1591
- "responses": {
1592
- "200": {
1593
- "description": "A successful response.",
1594
- "schema": {
1595
- "$ref": "#/definitions/puppetPostCommentResponse"
1596
- }
1597
- },
1598
- "default": {
1599
- "description": "An unexpected error response.",
1600
- "schema": {
1601
- "$ref": "#/definitions/rpcStatus"
1602
- }
1603
- }
1604
- },
1605
- "parameters": [
1606
- {
1607
- "name": "body",
1608
- "in": "body",
1609
- "required": true,
1610
- "schema": {
1611
- "$ref": "#/definitions/puppetPostCommentRequest"
1612
- }
1613
- }
1614
- ],
1615
- "tags": [
1616
- "Puppet"
1617
- ]
1618
- }
1619
- },
1620
1628
  "/post/like": {
1621
1629
  "post": {
1622
- "operationId": "Puppet_postLike",
1630
+ "operationId": "Puppet_postTap",
1623
1631
  "responses": {
1624
1632
  "200": {
1625
1633
  "description": "A successful response.",
1626
1634
  "schema": {
1627
- "$ref": "#/definitions/puppetPostLikeResponse"
1635
+ "$ref": "#/definitions/puppetPostTapResponse"
1628
1636
  }
1629
1637
  },
1630
1638
  "default": {
@@ -1640,7 +1648,7 @@
1640
1648
  "in": "body",
1641
1649
  "required": true,
1642
1650
  "schema": {
1643
- "$ref": "#/definitions/puppetPostLikeRequest"
1651
+ "$ref": "#/definitions/puppetPostTapRequest"
1644
1652
  }
1645
1653
  }
1646
1654
  ],
@@ -3249,6 +3257,9 @@
3249
3257
  ],
3250
3258
  "default": "CONTACT_TYPE_UNSPECIFIED"
3251
3259
  },
3260
+ "puppetConversationReadResponse": {
3261
+ "type": "object"
3262
+ },
3252
3263
  "puppetCurrentUserResponse": {
3253
3264
  "type": "object",
3254
3265
  "properties": {
@@ -3885,47 +3896,6 @@
3885
3896
  ],
3886
3897
  "default": "PAYLOAD_TYPE_UNSPECIFIED"
3887
3898
  },
3888
- "puppetPostCommentRequest": {
3889
- "type": "object",
3890
- "properties": {
3891
- "postId": {
3892
- "type": "string"
3893
- },
3894
- "text": {
3895
- "type": "string"
3896
- },
3897
- "mentionIdList": {
3898
- "type": "array",
3899
- "items": {
3900
- "type": "string"
3901
- }
3902
- }
3903
- }
3904
- },
3905
- "puppetPostCommentResponse": {
3906
- "type": "object",
3907
- "properties": {
3908
- "commentId": {
3909
- "type": "string"
3910
- }
3911
- }
3912
- },
3913
- "puppetPostLikeRequest": {
3914
- "type": "object",
3915
- "properties": {
3916
- "postId": {
3917
- "type": "string"
3918
- }
3919
- }
3920
- },
3921
- "puppetPostLikeResponse": {
3922
- "type": "object",
3923
- "properties": {
3924
- "tapId": {
3925
- "type": "string"
3926
- }
3927
- }
3928
- },
3929
3899
  "puppetPostPayloadClient": {
3930
3900
  "type": "object",
3931
3901
  "properties": {
@@ -4050,6 +4020,28 @@
4050
4020
  }
4051
4021
  }
4052
4022
  },
4023
+ "puppetPostTapRequest": {
4024
+ "type": "object",
4025
+ "properties": {
4026
+ "postId": {
4027
+ "type": "string"
4028
+ },
4029
+ "type": {
4030
+ "$ref": "#/definitions/puppetTapType"
4031
+ },
4032
+ "tap": {
4033
+ "type": "boolean"
4034
+ }
4035
+ }
4036
+ },
4037
+ "puppetPostTapResponse": {
4038
+ "type": "object",
4039
+ "properties": {
4040
+ "tap": {
4041
+ "type": "boolean"
4042
+ }
4043
+ }
4044
+ },
4053
4045
  "puppetPostType": {
4054
4046
  "type": "string",
4055
4047
  "enum": [
@@ -4506,6 +4498,14 @@
4506
4498
  ],
4507
4499
  "default": "Unspecific"
4508
4500
  },
4501
+ "puppetTapType": {
4502
+ "type": "string",
4503
+ "enum": [
4504
+ "TAP_TYPE_UNSPECIFIED",
4505
+ "TAP_TYPE_LIKE"
4506
+ ],
4507
+ "default": "TAP_TYPE_UNSPECIFIED"
4508
+ },
4509
4509
  "puppetUploadRequest": {
4510
4510
  "type": "object",
4511
4511
  "properties": {
@@ -18,6 +18,7 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
18
18
  import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
19
19
  import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
20
20
  import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
21
+ import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_pb";
21
22
  import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
22
23
  import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
23
24
  import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
@@ -50,6 +51,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
50
51
  friendshipSearchHandle: IPuppetService_IFriendshipSearchHandle;
51
52
  friendshipAdd: IPuppetService_IFriendshipAdd;
52
53
  friendshipAccept: IPuppetService_IFriendshipAccept;
54
+ conversationRead: IPuppetService_IConversationRead;
53
55
  messageFile: IPuppetService_IMessageFile;
54
56
  messageImage: IPuppetService_IMessageImage;
55
57
  messageSendFile: IPuppetService_IMessageSendFile;
@@ -96,8 +98,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
96
98
  tagContactTagList: IPuppetService_ITagContactTagList;
97
99
  tagTagContactList: IPuppetService_ITagTagContactList;
98
100
  momentPublish: IPuppetService_ImomentPublish;
99
- postComment: IPuppetService_IpostComment;
100
- postLike: IPuppetService_IpostLike;
101
+ postTap: IPuppetService_IpostTap;
101
102
  momentSignature: IPuppetService_ImomentSignature;
102
103
  momentCoverage: IPuppetService_ImomentCoverage;
103
104
  postPayload: IPuppetService_IpostPayload;
@@ -349,6 +350,15 @@ interface IPuppetService_IFriendshipAccept extends grpc.MethodDefinition<wechaty
349
350
  responseSerialize: grpc.serialize<wechaty_puppet_friendship_pb.FriendshipAcceptResponse>;
350
351
  responseDeserialize: grpc.deserialize<wechaty_puppet_friendship_pb.FriendshipAcceptResponse>;
351
352
  }
353
+ interface IPuppetService_IConversationRead extends grpc.MethodDefinition<wechaty_puppet_conversation_pb.ConversationReadRequest, wechaty_puppet_conversation_pb.ConversationReadResponse> {
354
+ path: "/wechaty.Puppet/ConversationRead";
355
+ requestStream: false;
356
+ responseStream: false;
357
+ requestSerialize: grpc.serialize<wechaty_puppet_conversation_pb.ConversationReadRequest>;
358
+ requestDeserialize: grpc.deserialize<wechaty_puppet_conversation_pb.ConversationReadRequest>;
359
+ responseSerialize: grpc.serialize<wechaty_puppet_conversation_pb.ConversationReadResponse>;
360
+ responseDeserialize: grpc.deserialize<wechaty_puppet_conversation_pb.ConversationReadResponse>;
361
+ }
352
362
  interface IPuppetService_IMessageFile extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageFileRequest, wechaty_puppet_message_pb.MessageFileResponse> {
353
363
  path: "/wechaty.Puppet/MessageFile";
354
364
  requestStream: false;
@@ -763,23 +773,14 @@ interface IPuppetService_ImomentPublish extends grpc.MethodDefinition<wechaty_pu
763
773
  responseSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentPublishResponse>;
764
774
  responseDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentPublishResponse>;
765
775
  }
766
- interface IPuppetService_IpostComment extends grpc.MethodDefinition<wechaty_puppet_post_pb.PostCommentRequest, wechaty_puppet_post_pb.PostCommentResponse> {
767
- path: "/wechaty.Puppet/postComment";
768
- requestStream: false;
769
- responseStream: false;
770
- requestSerialize: grpc.serialize<wechaty_puppet_post_pb.PostCommentRequest>;
771
- requestDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostCommentRequest>;
772
- responseSerialize: grpc.serialize<wechaty_puppet_post_pb.PostCommentResponse>;
773
- responseDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostCommentResponse>;
774
- }
775
- interface IPuppetService_IpostLike extends grpc.MethodDefinition<wechaty_puppet_post_pb.PostLikeRequest, wechaty_puppet_post_pb.PostLikeResponse> {
776
- path: "/wechaty.Puppet/postLike";
776
+ interface IPuppetService_IpostTap extends grpc.MethodDefinition<wechaty_puppet_post_pb.PostTapRequest, wechaty_puppet_post_pb.PostTapResponse> {
777
+ path: "/wechaty.Puppet/postTap";
777
778
  requestStream: false;
778
779
  responseStream: false;
779
- requestSerialize: grpc.serialize<wechaty_puppet_post_pb.PostLikeRequest>;
780
- requestDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostLikeRequest>;
781
- responseSerialize: grpc.serialize<wechaty_puppet_post_pb.PostLikeResponse>;
782
- responseDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostLikeResponse>;
780
+ requestSerialize: grpc.serialize<wechaty_puppet_post_pb.PostTapRequest>;
781
+ requestDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostTapRequest>;
782
+ responseSerialize: grpc.serialize<wechaty_puppet_post_pb.PostTapResponse>;
783
+ responseDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostTapResponse>;
783
784
  }
784
785
  interface IPuppetService_ImomentSignature extends grpc.MethodDefinition<wechaty_puppet_moment_pb.MomentSignatureRequest, wechaty_puppet_moment_pb.MomentSignatureResponse> {
785
786
  path: "/wechaty.Puppet/momentSignature";
@@ -866,6 +867,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
866
867
  friendshipSearchHandle: grpc.handleUnaryCall<wechaty_puppet_friendship_pb.FriendshipSearchHandleRequest, wechaty_puppet_friendship_pb.FriendshipSearchHandleResponse>;
867
868
  friendshipAdd: grpc.handleUnaryCall<wechaty_puppet_friendship_pb.FriendshipAddRequest, wechaty_puppet_friendship_pb.FriendshipAddResponse>;
868
869
  friendshipAccept: grpc.handleUnaryCall<wechaty_puppet_friendship_pb.FriendshipAcceptRequest, wechaty_puppet_friendship_pb.FriendshipAcceptResponse>;
870
+ conversationRead: grpc.handleUnaryCall<wechaty_puppet_conversation_pb.ConversationReadRequest, wechaty_puppet_conversation_pb.ConversationReadResponse>;
869
871
  messageFile: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageFileRequest, wechaty_puppet_message_pb.MessageFileResponse>;
870
872
  messageImage: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageImageRequest, wechaty_puppet_message_pb.MessageImageResponse>;
871
873
  messageSendFile: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendFileRequest, wechaty_puppet_message_pb.MessageSendFileResponse>;
@@ -912,8 +914,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
912
914
  tagContactTagList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagContactTagListRequest, wechaty_puppet_tag_pb.TagContactTagListResponse>;
913
915
  tagTagContactList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagContactListRequest, wechaty_puppet_tag_pb.TagTagContactListResponse>;
914
916
  momentPublish: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentPublishRequest, wechaty_puppet_moment_pb.MomentPublishResponse>;
915
- postComment: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostCommentRequest, wechaty_puppet_post_pb.PostCommentResponse>;
916
- postLike: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostLikeRequest, wechaty_puppet_post_pb.PostLikeResponse>;
917
+ postTap: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostTapRequest, wechaty_puppet_post_pb.PostTapResponse>;
917
918
  momentSignature: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentSignatureRequest, wechaty_puppet_moment_pb.MomentSignatureResponse>;
918
919
  momentCoverage: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentCoverageRequest, wechaty_puppet_moment_pb.MomentCoverageResponse>;
919
920
  postPayload: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostPayloadRequest, wechaty_puppet_post_pb.PostPayloadResponse>;
@@ -1002,6 +1003,9 @@ export interface IPuppetClient {
1002
1003
  friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1003
1004
  friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1004
1005
  friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1006
+ conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1007
+ conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1008
+ conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1005
1009
  messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
1006
1010
  messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
1007
1011
  messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
@@ -1140,12 +1144,9 @@ export interface IPuppetClient {
1140
1144
  momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
1141
1145
  momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
1142
1146
  momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
1143
- postComment(request: wechaty_puppet_post_pb.PostCommentRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostCommentResponse) => void): grpc.ClientUnaryCall;
1144
- postComment(request: wechaty_puppet_post_pb.PostCommentRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostCommentResponse) => void): grpc.ClientUnaryCall;
1145
- postComment(request: wechaty_puppet_post_pb.PostCommentRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostCommentResponse) => void): grpc.ClientUnaryCall;
1146
- postLike(request: wechaty_puppet_post_pb.PostLikeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostLikeResponse) => void): grpc.ClientUnaryCall;
1147
- postLike(request: wechaty_puppet_post_pb.PostLikeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostLikeResponse) => void): grpc.ClientUnaryCall;
1148
- postLike(request: wechaty_puppet_post_pb.PostLikeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostLikeResponse) => void): grpc.ClientUnaryCall;
1147
+ postTap(request: wechaty_puppet_post_pb.PostTapRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
1148
+ postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
1149
+ postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
1149
1150
  momentSignature(request: wechaty_puppet_moment_pb.MomentSignatureRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentSignatureResponse) => void): grpc.ClientUnaryCall;
1150
1151
  momentSignature(request: wechaty_puppet_moment_pb.MomentSignatureRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentSignatureResponse) => void): grpc.ClientUnaryCall;
1151
1152
  momentSignature(request: wechaty_puppet_moment_pb.MomentSignatureRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentSignatureResponse) => void): grpc.ClientUnaryCall;
@@ -1247,6 +1248,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1247
1248
  public friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1248
1249
  public friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1249
1250
  public friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1251
+ public conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1252
+ public conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1253
+ public conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1250
1254
  public messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
1251
1255
  public messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
1252
1256
  public messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
@@ -1385,12 +1389,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1385
1389
  public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
1386
1390
  public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
1387
1391
  public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
1388
- public postComment(request: wechaty_puppet_post_pb.PostCommentRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostCommentResponse) => void): grpc.ClientUnaryCall;
1389
- public postComment(request: wechaty_puppet_post_pb.PostCommentRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostCommentResponse) => void): grpc.ClientUnaryCall;
1390
- public postComment(request: wechaty_puppet_post_pb.PostCommentRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostCommentResponse) => void): grpc.ClientUnaryCall;
1391
- public postLike(request: wechaty_puppet_post_pb.PostLikeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostLikeResponse) => void): grpc.ClientUnaryCall;
1392
- public postLike(request: wechaty_puppet_post_pb.PostLikeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostLikeResponse) => void): grpc.ClientUnaryCall;
1393
- public postLike(request: wechaty_puppet_post_pb.PostLikeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostLikeResponse) => void): grpc.ClientUnaryCall;
1392
+ public postTap(request: wechaty_puppet_post_pb.PostTapRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
1393
+ public postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
1394
+ public postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
1394
1395
  public momentSignature(request: wechaty_puppet_moment_pb.MomentSignatureRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentSignatureResponse) => void): grpc.ClientUnaryCall;
1395
1396
  public momentSignature(request: wechaty_puppet_moment_pb.MomentSignatureRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentSignatureResponse) => void): grpc.ClientUnaryCall;
1396
1397
  public momentSignature(request: wechaty_puppet_moment_pb.MomentSignatureRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentSignatureResponse) => void): grpc.ClientUnaryCall;