@juzi/wechaty-grpc 1.0.23 → 1.0.25
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/out/wechaty/puppet/post_pb.d.ts +34 -45
- package/dist/cjs/out/wechaty/puppet/post_pb.js +114 -254
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +24 -47
- package/dist/cjs/out/wechaty/puppet.swagger.json +34 -72
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +14 -31
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +30 -63
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +10 -29
- package/dist/cjs/out/wechaty/puppet_pb_service.js +6 -46
- package/dist/cjs/proto/wechaty/puppet/post.proto +15 -13
- package/dist/cjs/proto/wechaty/puppet.proto +1 -8
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +1 -6
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/post_pb.d.ts +34 -45
- package/dist/esm/out/wechaty/puppet/post_pb.js +114 -254
- package/dist/esm/out/wechaty/puppet.openapi.yaml +24 -47
- package/dist/esm/out/wechaty/puppet.swagger.json +34 -72
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +14 -31
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +30 -63
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +10 -29
- package/dist/esm/out/wechaty/puppet_pb_service.js +6 -46
- package/dist/esm/proto/wechaty/puppet/post.proto +15 -13
- package/dist/esm/proto/wechaty/puppet.proto +1 -8
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +1 -6
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/post_pb.d.ts +34 -45
- package/out/wechaty/puppet/post_pb.js +114 -254
- package/out/wechaty/puppet.openapi.yaml +24 -47
- package/out/wechaty/puppet.swagger.json +34 -72
- package/out/wechaty/puppet_grpc_pb.d.ts +14 -31
- package/out/wechaty/puppet_grpc_pb.js +30 -63
- package/out/wechaty/puppet_pb_service.d.ts +10 -29
- package/out/wechaty/puppet_pb_service.js +6 -46
- package/package.json +1 -1
- 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.
|
|
12
|
+
version: 1.0.25
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -1058,34 +1058,14 @@ paths:
|
|
|
1058
1058
|
$ref: '#/definitions/puppetMomentSignatureRequest'
|
|
1059
1059
|
tags:
|
|
1060
1060
|
- 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
1061
|
/post/like:
|
|
1082
1062
|
post:
|
|
1083
|
-
operationId:
|
|
1063
|
+
operationId: Puppet_postTap
|
|
1084
1064
|
responses:
|
|
1085
1065
|
'200':
|
|
1086
1066
|
description: A successful response.
|
|
1087
1067
|
schema:
|
|
1088
|
-
$ref: '#/definitions/
|
|
1068
|
+
$ref: '#/definitions/puppetPostTapResponse'
|
|
1089
1069
|
default:
|
|
1090
1070
|
description: An unexpected error response.
|
|
1091
1071
|
schema:
|
|
@@ -1095,7 +1075,7 @@ paths:
|
|
|
1095
1075
|
in: body
|
|
1096
1076
|
required: true
|
|
1097
1077
|
schema:
|
|
1098
|
-
$ref: '#/definitions/
|
|
1078
|
+
$ref: '#/definitions/puppetPostTapRequest'
|
|
1099
1079
|
tags:
|
|
1100
1080
|
- Puppet
|
|
1101
1081
|
/post/payload:
|
|
@@ -2673,29 +2653,6 @@ definitions:
|
|
|
2673
2653
|
- PAYLOAD_TYPE_TAG
|
|
2674
2654
|
- PAYLOAD_TYPE_TAG_GROUP
|
|
2675
2655
|
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
2656
|
puppetPostPayloadClient:
|
|
2700
2657
|
type: object
|
|
2701
2658
|
properties:
|
|
@@ -2778,6 +2735,20 @@ definitions:
|
|
|
2778
2735
|
type: array
|
|
2779
2736
|
items:
|
|
2780
2737
|
type: string
|
|
2738
|
+
puppetPostTapRequest:
|
|
2739
|
+
type: object
|
|
2740
|
+
properties:
|
|
2741
|
+
postId:
|
|
2742
|
+
type: string
|
|
2743
|
+
type:
|
|
2744
|
+
$ref: '#/definitions/puppetTapType'
|
|
2745
|
+
tap:
|
|
2746
|
+
type: boolean
|
|
2747
|
+
puppetPostTapResponse:
|
|
2748
|
+
type: object
|
|
2749
|
+
properties:
|
|
2750
|
+
tap:
|
|
2751
|
+
type: boolean
|
|
2781
2752
|
puppetPostType:
|
|
2782
2753
|
type: string
|
|
2783
2754
|
enum:
|
|
@@ -3085,6 +3056,12 @@ definitions:
|
|
|
3085
3056
|
- PERSONAL
|
|
3086
3057
|
- CORPORATION
|
|
3087
3058
|
default: Unspecific
|
|
3059
|
+
puppetTapType:
|
|
3060
|
+
type: string
|
|
3061
|
+
enum:
|
|
3062
|
+
- TAP_TYPE_UNSPECIFIED
|
|
3063
|
+
- TAP_TYPE_LIKE
|
|
3064
|
+
default: TAP_TYPE_UNSPECIFIED
|
|
3088
3065
|
puppetUploadRequest:
|
|
3089
3066
|
type: object
|
|
3090
3067
|
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.
|
|
6
|
+
"version": "1.0.25",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -1585,46 +1585,14 @@
|
|
|
1585
1585
|
]
|
|
1586
1586
|
}
|
|
1587
1587
|
},
|
|
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
1588
|
"/post/like": {
|
|
1621
1589
|
"post": {
|
|
1622
|
-
"operationId": "
|
|
1590
|
+
"operationId": "Puppet_postTap",
|
|
1623
1591
|
"responses": {
|
|
1624
1592
|
"200": {
|
|
1625
1593
|
"description": "A successful response.",
|
|
1626
1594
|
"schema": {
|
|
1627
|
-
"$ref": "#/definitions/
|
|
1595
|
+
"$ref": "#/definitions/puppetPostTapResponse"
|
|
1628
1596
|
}
|
|
1629
1597
|
},
|
|
1630
1598
|
"default": {
|
|
@@ -1640,7 +1608,7 @@
|
|
|
1640
1608
|
"in": "body",
|
|
1641
1609
|
"required": true,
|
|
1642
1610
|
"schema": {
|
|
1643
|
-
"$ref": "#/definitions/
|
|
1611
|
+
"$ref": "#/definitions/puppetPostTapRequest"
|
|
1644
1612
|
}
|
|
1645
1613
|
}
|
|
1646
1614
|
],
|
|
@@ -3885,42 +3853,6 @@
|
|
|
3885
3853
|
],
|
|
3886
3854
|
"default": "PAYLOAD_TYPE_UNSPECIFIED"
|
|
3887
3855
|
},
|
|
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
|
-
},
|
|
3924
3856
|
"puppetPostPayloadClient": {
|
|
3925
3857
|
"type": "object",
|
|
3926
3858
|
"properties": {
|
|
@@ -4045,6 +3977,28 @@
|
|
|
4045
3977
|
}
|
|
4046
3978
|
}
|
|
4047
3979
|
},
|
|
3980
|
+
"puppetPostTapRequest": {
|
|
3981
|
+
"type": "object",
|
|
3982
|
+
"properties": {
|
|
3983
|
+
"postId": {
|
|
3984
|
+
"type": "string"
|
|
3985
|
+
},
|
|
3986
|
+
"type": {
|
|
3987
|
+
"$ref": "#/definitions/puppetTapType"
|
|
3988
|
+
},
|
|
3989
|
+
"tap": {
|
|
3990
|
+
"type": "boolean"
|
|
3991
|
+
}
|
|
3992
|
+
}
|
|
3993
|
+
},
|
|
3994
|
+
"puppetPostTapResponse": {
|
|
3995
|
+
"type": "object",
|
|
3996
|
+
"properties": {
|
|
3997
|
+
"tap": {
|
|
3998
|
+
"type": "boolean"
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
},
|
|
4048
4002
|
"puppetPostType": {
|
|
4049
4003
|
"type": "string",
|
|
4050
4004
|
"enum": [
|
|
@@ -4501,6 +4455,14 @@
|
|
|
4501
4455
|
],
|
|
4502
4456
|
"default": "Unspecific"
|
|
4503
4457
|
},
|
|
4458
|
+
"puppetTapType": {
|
|
4459
|
+
"type": "string",
|
|
4460
|
+
"enum": [
|
|
4461
|
+
"TAP_TYPE_UNSPECIFIED",
|
|
4462
|
+
"TAP_TYPE_LIKE"
|
|
4463
|
+
],
|
|
4464
|
+
"default": "TAP_TYPE_UNSPECIFIED"
|
|
4465
|
+
},
|
|
4504
4466
|
"puppetUploadRequest": {
|
|
4505
4467
|
"type": "object",
|
|
4506
4468
|
"properties": {
|
|
@@ -96,8 +96,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
96
96
|
tagContactTagList: IPuppetService_ITagContactTagList;
|
|
97
97
|
tagTagContactList: IPuppetService_ITagTagContactList;
|
|
98
98
|
momentPublish: IPuppetService_ImomentPublish;
|
|
99
|
-
|
|
100
|
-
postLike: IPuppetService_IpostLike;
|
|
99
|
+
postTap: IPuppetService_IpostTap;
|
|
101
100
|
momentSignature: IPuppetService_ImomentSignature;
|
|
102
101
|
momentCoverage: IPuppetService_ImomentCoverage;
|
|
103
102
|
postPayload: IPuppetService_IpostPayload;
|
|
@@ -763,23 +762,14 @@ interface IPuppetService_ImomentPublish extends grpc.MethodDefinition<wechaty_pu
|
|
|
763
762
|
responseSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
764
763
|
responseDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
765
764
|
}
|
|
766
|
-
interface
|
|
767
|
-
path: "/wechaty.Puppet/
|
|
765
|
+
interface IPuppetService_IpostTap extends grpc.MethodDefinition<wechaty_puppet_post_pb.PostTapRequest, wechaty_puppet_post_pb.PostTapResponse> {
|
|
766
|
+
path: "/wechaty.Puppet/postTap";
|
|
768
767
|
requestStream: false;
|
|
769
768
|
responseStream: false;
|
|
770
|
-
requestSerialize: grpc.serialize<wechaty_puppet_post_pb.
|
|
771
|
-
requestDeserialize: grpc.deserialize<wechaty_puppet_post_pb.
|
|
772
|
-
responseSerialize: grpc.serialize<wechaty_puppet_post_pb.
|
|
773
|
-
responseDeserialize: grpc.deserialize<wechaty_puppet_post_pb.
|
|
774
|
-
}
|
|
775
|
-
interface IPuppetService_IpostLike extends grpc.MethodDefinition<wechaty_puppet_post_pb.PostLikeRequest, wechaty_puppet_post_pb.PostLikeResponse> {
|
|
776
|
-
path: "/wechaty.Puppet/postLike";
|
|
777
|
-
requestStream: false;
|
|
778
|
-
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>;
|
|
769
|
+
requestSerialize: grpc.serialize<wechaty_puppet_post_pb.PostTapRequest>;
|
|
770
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostTapRequest>;
|
|
771
|
+
responseSerialize: grpc.serialize<wechaty_puppet_post_pb.PostTapResponse>;
|
|
772
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostTapResponse>;
|
|
783
773
|
}
|
|
784
774
|
interface IPuppetService_ImomentSignature extends grpc.MethodDefinition<wechaty_puppet_moment_pb.MomentSignatureRequest, wechaty_puppet_moment_pb.MomentSignatureResponse> {
|
|
785
775
|
path: "/wechaty.Puppet/momentSignature";
|
|
@@ -912,8 +902,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
912
902
|
tagContactTagList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagContactTagListRequest, wechaty_puppet_tag_pb.TagContactTagListResponse>;
|
|
913
903
|
tagTagContactList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagContactListRequest, wechaty_puppet_tag_pb.TagTagContactListResponse>;
|
|
914
904
|
momentPublish: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentPublishRequest, wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
915
|
-
|
|
916
|
-
postLike: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostLikeRequest, wechaty_puppet_post_pb.PostLikeResponse>;
|
|
905
|
+
postTap: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostTapRequest, wechaty_puppet_post_pb.PostTapResponse>;
|
|
917
906
|
momentSignature: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentSignatureRequest, wechaty_puppet_moment_pb.MomentSignatureResponse>;
|
|
918
907
|
momentCoverage: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentCoverageRequest, wechaty_puppet_moment_pb.MomentCoverageResponse>;
|
|
919
908
|
postPayload: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostPayloadRequest, wechaty_puppet_post_pb.PostPayloadResponse>;
|
|
@@ -1140,12 +1129,9 @@ export interface IPuppetClient {
|
|
|
1140
1129
|
momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1141
1130
|
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
1131
|
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
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
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;
|
|
1132
|
+
postTap(request: wechaty_puppet_post_pb.PostTapRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1133
|
+
postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1134
|
+
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
1135
|
momentSignature(request: wechaty_puppet_moment_pb.MomentSignatureRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1150
1136
|
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
1137
|
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;
|
|
@@ -1385,12 +1371,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1385
1371
|
public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1386
1372
|
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
1373
|
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
|
|
1389
|
-
public
|
|
1390
|
-
public
|
|
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;
|
|
1374
|
+
public postTap(request: wechaty_puppet_post_pb.PostTapRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1375
|
+
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;
|
|
1376
|
+
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
1377
|
public momentSignature(request: wechaty_puppet_moment_pb.MomentSignatureRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1395
1378
|
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
1379
|
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;
|
|
@@ -1021,50 +1021,6 @@ function deserialize_wechaty_puppet_MomentSignatureResponse(buffer_arg) {
|
|
|
1021
1021
|
return wechaty_puppet_moment_pb.MomentSignatureResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1022
1022
|
}
|
|
1023
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
1024
|
function serialize_wechaty_puppet_PostPayloadRequest(arg) {
|
|
1069
1025
|
if (!(arg instanceof wechaty_puppet_post_pb.PostPayloadRequest)) {
|
|
1070
1026
|
throw new Error('Expected argument of type wechaty.puppet.PostPayloadRequest');
|
|
@@ -1109,6 +1065,28 @@ function deserialize_wechaty_puppet_PostPayloadSayableResponse(buffer_arg) {
|
|
|
1109
1065
|
return wechaty_puppet_post_pb.PostPayloadSayableResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1110
1066
|
}
|
|
1111
1067
|
|
|
1068
|
+
function serialize_wechaty_puppet_PostTapRequest(arg) {
|
|
1069
|
+
if (!(arg instanceof wechaty_puppet_post_pb.PostTapRequest)) {
|
|
1070
|
+
throw new Error('Expected argument of type wechaty.puppet.PostTapRequest');
|
|
1071
|
+
}
|
|
1072
|
+
return Buffer.from(arg.serializeBinary());
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
function deserialize_wechaty_puppet_PostTapRequest(buffer_arg) {
|
|
1076
|
+
return wechaty_puppet_post_pb.PostTapRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
function serialize_wechaty_puppet_PostTapResponse(arg) {
|
|
1080
|
+
if (!(arg instanceof wechaty_puppet_post_pb.PostTapResponse)) {
|
|
1081
|
+
throw new Error('Expected argument of type wechaty.puppet.PostTapResponse');
|
|
1082
|
+
}
|
|
1083
|
+
return Buffer.from(arg.serializeBinary());
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
function deserialize_wechaty_puppet_PostTapResponse(buffer_arg) {
|
|
1087
|
+
return wechaty_puppet_post_pb.PostTapResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1112
1090
|
function serialize_wechaty_puppet_RoomAddRequest(arg) {
|
|
1113
1091
|
if (!(arg instanceof wechaty_puppet_room_pb.RoomAddRequest)) {
|
|
1114
1092
|
throw new Error('Expected argument of type wechaty.puppet.RoomAddRequest');
|
|
@@ -2650,27 +2628,16 @@ momentPublish: {
|
|
|
2650
2628
|
responseSerialize: serialize_wechaty_puppet_MomentPublishResponse,
|
|
2651
2629
|
responseDeserialize: deserialize_wechaty_puppet_MomentPublishResponse,
|
|
2652
2630
|
},
|
|
2653
|
-
|
|
2654
|
-
path: '/wechaty.Puppet/
|
|
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',
|
|
2631
|
+
postTap: {
|
|
2632
|
+
path: '/wechaty.Puppet/postTap',
|
|
2666
2633
|
requestStream: false,
|
|
2667
2634
|
responseStream: false,
|
|
2668
|
-
requestType: wechaty_puppet_post_pb.
|
|
2669
|
-
responseType: wechaty_puppet_post_pb.
|
|
2670
|
-
requestSerialize:
|
|
2671
|
-
requestDeserialize:
|
|
2672
|
-
responseSerialize:
|
|
2673
|
-
responseDeserialize:
|
|
2635
|
+
requestType: wechaty_puppet_post_pb.PostTapRequest,
|
|
2636
|
+
responseType: wechaty_puppet_post_pb.PostTapResponse,
|
|
2637
|
+
requestSerialize: serialize_wechaty_puppet_PostTapRequest,
|
|
2638
|
+
requestDeserialize: deserialize_wechaty_puppet_PostTapRequest,
|
|
2639
|
+
responseSerialize: serialize_wechaty_puppet_PostTapResponse,
|
|
2640
|
+
responseDeserialize: deserialize_wechaty_puppet_PostTapResponse,
|
|
2674
2641
|
},
|
|
2675
2642
|
momentSignature: {
|
|
2676
2643
|
path: '/wechaty.Puppet/momentSignature',
|
|
@@ -674,22 +674,13 @@ type PuppetmomentPublish = {
|
|
|
674
674
|
readonly responseType: typeof wechaty_puppet_moment_pb.MomentPublishResponse;
|
|
675
675
|
};
|
|
676
676
|
|
|
677
|
-
type
|
|
677
|
+
type PuppetpostTap = {
|
|
678
678
|
readonly methodName: string;
|
|
679
679
|
readonly service: typeof Puppet;
|
|
680
680
|
readonly requestStream: false;
|
|
681
681
|
readonly responseStream: false;
|
|
682
|
-
readonly requestType: typeof wechaty_puppet_post_pb.
|
|
683
|
-
readonly responseType: typeof wechaty_puppet_post_pb.
|
|
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;
|
|
682
|
+
readonly requestType: typeof wechaty_puppet_post_pb.PostTapRequest;
|
|
683
|
+
readonly responseType: typeof wechaty_puppet_post_pb.PostTapResponse;
|
|
693
684
|
};
|
|
694
685
|
|
|
695
686
|
type PuppetmomentSignature = {
|
|
@@ -821,8 +812,7 @@ export class Puppet {
|
|
|
821
812
|
static readonly TagContactTagList: PuppetTagContactTagList;
|
|
822
813
|
static readonly TagTagContactList: PuppetTagTagContactList;
|
|
823
814
|
static readonly momentPublish: PuppetmomentPublish;
|
|
824
|
-
static readonly
|
|
825
|
-
static readonly postLike: PuppetpostLike;
|
|
815
|
+
static readonly postTap: PuppetpostTap;
|
|
826
816
|
static readonly momentSignature: PuppetmomentSignature;
|
|
827
817
|
static readonly momentCoverage: PuppetmomentCoverage;
|
|
828
818
|
static readonly postPayload: PuppetpostPayload;
|
|
@@ -1488,23 +1478,14 @@ export class PuppetClient {
|
|
|
1488
1478
|
requestMessage: wechaty_puppet_moment_pb.MomentPublishRequest,
|
|
1489
1479
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentPublishResponse|null) => void
|
|
1490
1480
|
): UnaryResponse;
|
|
1491
|
-
|
|
1492
|
-
requestMessage: wechaty_puppet_post_pb.
|
|
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,
|
|
1481
|
+
postTap(
|
|
1482
|
+
requestMessage: wechaty_puppet_post_pb.PostTapRequest,
|
|
1502
1483
|
metadata: grpc.Metadata,
|
|
1503
|
-
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.
|
|
1484
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostTapResponse|null) => void
|
|
1504
1485
|
): UnaryResponse;
|
|
1505
|
-
|
|
1506
|
-
requestMessage: wechaty_puppet_post_pb.
|
|
1507
|
-
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.
|
|
1486
|
+
postTap(
|
|
1487
|
+
requestMessage: wechaty_puppet_post_pb.PostTapRequest,
|
|
1488
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostTapResponse|null) => void
|
|
1508
1489
|
): UnaryResponse;
|
|
1509
1490
|
momentSignature(
|
|
1510
1491
|
requestMessage: wechaty_puppet_moment_pb.MomentSignatureRequest,
|
|
@@ -680,22 +680,13 @@ Puppet.momentPublish = {
|
|
|
680
680
|
responseType: wechaty_puppet_moment_pb.MomentPublishResponse
|
|
681
681
|
};
|
|
682
682
|
|
|
683
|
-
Puppet.
|
|
684
|
-
methodName: "
|
|
683
|
+
Puppet.postTap = {
|
|
684
|
+
methodName: "postTap",
|
|
685
685
|
service: Puppet,
|
|
686
686
|
requestStream: false,
|
|
687
687
|
responseStream: false,
|
|
688
|
-
requestType: wechaty_puppet_post_pb.
|
|
689
|
-
responseType: wechaty_puppet_post_pb.
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
Puppet.postLike = {
|
|
693
|
-
methodName: "postLike",
|
|
694
|
-
service: Puppet,
|
|
695
|
-
requestStream: false,
|
|
696
|
-
responseStream: false,
|
|
697
|
-
requestType: wechaty_puppet_post_pb.PostLikeRequest,
|
|
698
|
-
responseType: wechaty_puppet_post_pb.PostLikeResponse
|
|
688
|
+
requestType: wechaty_puppet_post_pb.PostTapRequest,
|
|
689
|
+
responseType: wechaty_puppet_post_pb.PostTapResponse
|
|
699
690
|
};
|
|
700
691
|
|
|
701
692
|
Puppet.momentSignature = {
|
|
@@ -3056,42 +3047,11 @@ PuppetClient.prototype.momentPublish = function momentPublish(requestMessage, me
|
|
|
3056
3047
|
};
|
|
3057
3048
|
};
|
|
3058
3049
|
|
|
3059
|
-
PuppetClient.prototype.
|
|
3060
|
-
if (arguments.length === 2) {
|
|
3061
|
-
callback = arguments[1];
|
|
3062
|
-
}
|
|
3063
|
-
var client = grpc.unary(Puppet.postComment, {
|
|
3064
|
-
request: requestMessage,
|
|
3065
|
-
host: this.serviceHost,
|
|
3066
|
-
metadata: metadata,
|
|
3067
|
-
transport: this.options.transport,
|
|
3068
|
-
debug: this.options.debug,
|
|
3069
|
-
onEnd: function (response) {
|
|
3070
|
-
if (callback) {
|
|
3071
|
-
if (response.status !== grpc.Code.OK) {
|
|
3072
|
-
var err = new Error(response.statusMessage);
|
|
3073
|
-
err.code = response.status;
|
|
3074
|
-
err.metadata = response.trailers;
|
|
3075
|
-
callback(err, null);
|
|
3076
|
-
} else {
|
|
3077
|
-
callback(null, response.message);
|
|
3078
|
-
}
|
|
3079
|
-
}
|
|
3080
|
-
}
|
|
3081
|
-
});
|
|
3082
|
-
return {
|
|
3083
|
-
cancel: function () {
|
|
3084
|
-
callback = null;
|
|
3085
|
-
client.close();
|
|
3086
|
-
}
|
|
3087
|
-
};
|
|
3088
|
-
};
|
|
3089
|
-
|
|
3090
|
-
PuppetClient.prototype.postLike = function postLike(requestMessage, metadata, callback) {
|
|
3050
|
+
PuppetClient.prototype.postTap = function postTap(requestMessage, metadata, callback) {
|
|
3091
3051
|
if (arguments.length === 2) {
|
|
3092
3052
|
callback = arguments[1];
|
|
3093
3053
|
}
|
|
3094
|
-
var client = grpc.unary(Puppet.
|
|
3054
|
+
var client = grpc.unary(Puppet.postTap, {
|
|
3095
3055
|
request: requestMessage,
|
|
3096
3056
|
host: this.serviceHost,
|
|
3097
3057
|
metadata: metadata,
|
|
@@ -24,6 +24,11 @@ enum SayableType {
|
|
|
24
24
|
SAYABLE_TYPE_CHANNEL = 3;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
enum TapType {
|
|
28
|
+
TAP_TYPE_UNSPECIFIED = 0;
|
|
29
|
+
TAP_TYPE_LIKE = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
message PostSayable {
|
|
28
33
|
SayableType type = 1;
|
|
29
34
|
|
|
@@ -37,15 +42,15 @@ message PostSayable {
|
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
message PostPayloadClient {
|
|
40
|
-
string parent_id = 1; // 转发的上一级id
|
|
41
|
-
string root_id = 2; // 转发的根id
|
|
45
|
+
string parent_id = 1; // 转发的上一级id,评论时如果是回复,则是回复的评论的id,否则是朋友圈的id
|
|
46
|
+
string root_id = 2; // 转发的根id,评论时应该是朋友圈的id
|
|
42
47
|
PostType type = 3;
|
|
43
48
|
repeated PostSayable sayable_list = 4;
|
|
44
49
|
}
|
|
45
50
|
|
|
46
51
|
message PostPayloadServer {
|
|
47
|
-
string parent_id = 1; // 转发的上一级id
|
|
48
|
-
string root_id = 2; // 转发的根id
|
|
52
|
+
string parent_id = 1; // 转发的上一级id
|
|
53
|
+
string root_id = 2; // 转发的根id
|
|
49
54
|
PostType type = 3;
|
|
50
55
|
repeated PostSayable sayable_list = 4;
|
|
51
56
|
string contact_id = 5;
|
|
@@ -57,21 +62,18 @@ message PostPayloadServer {
|
|
|
57
62
|
int32 like = 9;
|
|
58
63
|
}
|
|
59
64
|
|
|
60
|
-
message
|
|
65
|
+
message PostTapRequest {
|
|
61
66
|
string post_id = 1;
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
TapType type = 2;
|
|
68
|
+
bool tap = 3; // 点赞还是取消
|
|
64
69
|
}
|
|
65
70
|
|
|
66
|
-
message
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
message PostLikeRequest {
|
|
71
|
-
string post_id = 1;
|
|
71
|
+
message PostTapResponse {
|
|
72
|
+
bool tap = 1;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
message PostLikeResponse {
|
|
76
|
+
string tap_id = 1;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
message PostPayloadRequest {
|