@juzi/wechaty-grpc 1.0.86 → 1.0.89
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/room-invitation_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +56 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +426 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +75 -6
- package/dist/cjs/out/wechaty/puppet.swagger.json +110 -6
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +11 -0
- package/dist/cjs/proto/wechaty/puppet.proto +11 -0
- 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 +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +56 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +426 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +75 -6
- package/dist/esm/out/wechaty/puppet.swagger.json +110 -6
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +11 -0
- package/dist/esm/proto/wechaty/puppet.proto +11 -0
- 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 +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
- package/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/out/wechaty/puppet/room_pb.d.ts +56 -0
- package/out/wechaty/puppet/room_pb.js +426 -2
- package/out/wechaty/puppet.openapi.yaml +75 -6
- package/out/wechaty/puppet.swagger.json +110 -6
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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.89",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
"PAYLOAD_TYPE_TAG",
|
|
629
629
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
630
630
|
],
|
|
631
|
-
"pattern": "
|
|
631
|
+
"pattern": "PAYLOAD_TYPE_CONTACT"
|
|
632
632
|
}
|
|
633
633
|
],
|
|
634
634
|
"tags": [
|
|
@@ -1457,7 +1457,7 @@
|
|
|
1457
1457
|
"PAYLOAD_TYPE_TAG",
|
|
1458
1458
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
1459
1459
|
],
|
|
1460
|
-
"pattern": "
|
|
1460
|
+
"pattern": "PAYLOAD_TYPE_FRIENDSHIP"
|
|
1461
1461
|
}
|
|
1462
1462
|
],
|
|
1463
1463
|
"tags": [
|
|
@@ -1761,7 +1761,7 @@
|
|
|
1761
1761
|
"PAYLOAD_TYPE_TAG",
|
|
1762
1762
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
1763
1763
|
],
|
|
1764
|
-
"pattern": "
|
|
1764
|
+
"pattern": "PAYLOAD_TYPE_MESSAGE"
|
|
1765
1765
|
}
|
|
1766
1766
|
],
|
|
1767
1767
|
"tags": [
|
|
@@ -2309,6 +2309,36 @@
|
|
|
2309
2309
|
]
|
|
2310
2310
|
}
|
|
2311
2311
|
},
|
|
2312
|
+
"/room-invitations/{qrcode}/accept-by-qrcode": {
|
|
2313
|
+
"put": {
|
|
2314
|
+
"operationId": "Puppet_RoomInvitationAcceptByQRCode",
|
|
2315
|
+
"responses": {
|
|
2316
|
+
"200": {
|
|
2317
|
+
"description": "A successful response.",
|
|
2318
|
+
"schema": {
|
|
2319
|
+
"$ref": "#/definitions/puppetRoomInvitationAcceptByQRCodeResponse"
|
|
2320
|
+
}
|
|
2321
|
+
},
|
|
2322
|
+
"default": {
|
|
2323
|
+
"description": "An unexpected error response.",
|
|
2324
|
+
"schema": {
|
|
2325
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
"parameters": [
|
|
2330
|
+
{
|
|
2331
|
+
"name": "qrcode",
|
|
2332
|
+
"in": "path",
|
|
2333
|
+
"required": true,
|
|
2334
|
+
"type": "string"
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
"tags": [
|
|
2338
|
+
"Puppet"
|
|
2339
|
+
]
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2312
2342
|
"/rooms": {
|
|
2313
2343
|
"get": {
|
|
2314
2344
|
"operationId": "Puppet_RoomList",
|
|
@@ -2726,7 +2756,7 @@
|
|
|
2726
2756
|
"PAYLOAD_TYPE_TAG",
|
|
2727
2757
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
2728
2758
|
],
|
|
2729
|
-
"pattern": "
|
|
2759
|
+
"pattern": "PAYLOAD_TYPE_ROOM_MEMBER"
|
|
2730
2760
|
}
|
|
2731
2761
|
],
|
|
2732
2762
|
"tags": [
|
|
@@ -2774,7 +2804,7 @@
|
|
|
2774
2804
|
"PAYLOAD_TYPE_TAG",
|
|
2775
2805
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
2776
2806
|
],
|
|
2777
|
-
"pattern": "
|
|
2807
|
+
"pattern": "PAYLOAD_TYPE_ROOM"
|
|
2778
2808
|
}
|
|
2779
2809
|
],
|
|
2780
2810
|
"tags": [
|
|
@@ -2980,6 +3010,18 @@
|
|
|
2980
3010
|
"BOOL_TRUE"
|
|
2981
3011
|
],
|
|
2982
3012
|
"default": "BOOL_UNSET"
|
|
3013
|
+
},
|
|
3014
|
+
{
|
|
3015
|
+
"name": "disableMemberMutualAdd",
|
|
3016
|
+
"in": "query",
|
|
3017
|
+
"required": false,
|
|
3018
|
+
"type": "string",
|
|
3019
|
+
"enum": [
|
|
3020
|
+
"BOOL_UNSET",
|
|
3021
|
+
"BOOL_FALSE",
|
|
3022
|
+
"BOOL_TRUE"
|
|
3023
|
+
],
|
|
3024
|
+
"default": "BOOL_UNSET"
|
|
2983
3025
|
}
|
|
2984
3026
|
],
|
|
2985
3027
|
"tags": [
|
|
@@ -3132,6 +3174,37 @@
|
|
|
3132
3174
|
]
|
|
3133
3175
|
}
|
|
3134
3176
|
},
|
|
3177
|
+
"/rooms/{url}/parse-dynamic-qrcode": {
|
|
3178
|
+
"get": {
|
|
3179
|
+
"operationId": "Puppet_RoomParseDynamicQRCode",
|
|
3180
|
+
"responses": {
|
|
3181
|
+
"200": {
|
|
3182
|
+
"description": "A successful response.",
|
|
3183
|
+
"schema": {
|
|
3184
|
+
"$ref": "#/definitions/puppetRoomParseDynamicQRCodeResponse"
|
|
3185
|
+
}
|
|
3186
|
+
},
|
|
3187
|
+
"default": {
|
|
3188
|
+
"description": "An unexpected error response.",
|
|
3189
|
+
"schema": {
|
|
3190
|
+
"$ref": "#/definitions/rpcStatus"
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
},
|
|
3194
|
+
"parameters": [
|
|
3195
|
+
{
|
|
3196
|
+
"name": "url",
|
|
3197
|
+
"description": "群活码链接",
|
|
3198
|
+
"in": "path",
|
|
3199
|
+
"required": true,
|
|
3200
|
+
"type": "string"
|
|
3201
|
+
}
|
|
3202
|
+
],
|
|
3203
|
+
"tags": [
|
|
3204
|
+
"Puppet"
|
|
3205
|
+
]
|
|
3206
|
+
}
|
|
3207
|
+
},
|
|
3135
3208
|
"/start": {
|
|
3136
3209
|
"put": {
|
|
3137
3210
|
"summary": "*",
|
|
@@ -5710,6 +5783,17 @@
|
|
|
5710
5783
|
"puppetRoomDismissResponse": {
|
|
5711
5784
|
"type": "object"
|
|
5712
5785
|
},
|
|
5786
|
+
"puppetRoomInvitationAcceptByQRCodeResponse": {
|
|
5787
|
+
"type": "object",
|
|
5788
|
+
"properties": {
|
|
5789
|
+
"roomId": {
|
|
5790
|
+
"type": "string"
|
|
5791
|
+
},
|
|
5792
|
+
"chatId": {
|
|
5793
|
+
"type": "string"
|
|
5794
|
+
}
|
|
5795
|
+
}
|
|
5796
|
+
},
|
|
5713
5797
|
"puppetRoomInvitationAcceptResponse": {
|
|
5714
5798
|
"type": "object"
|
|
5715
5799
|
},
|
|
@@ -5835,6 +5919,23 @@
|
|
|
5835
5919
|
"puppetRoomOwnerTransferResponse": {
|
|
5836
5920
|
"type": "object"
|
|
5837
5921
|
},
|
|
5922
|
+
"puppetRoomParseDynamicQRCodeResponse": {
|
|
5923
|
+
"type": "object",
|
|
5924
|
+
"properties": {
|
|
5925
|
+
"qrcode": {
|
|
5926
|
+
"type": "string",
|
|
5927
|
+
"title": "二维码url"
|
|
5928
|
+
},
|
|
5929
|
+
"qrcodeImageUrl": {
|
|
5930
|
+
"type": "string",
|
|
5931
|
+
"title": "二维码图片url"
|
|
5932
|
+
},
|
|
5933
|
+
"roomName": {
|
|
5934
|
+
"type": "string",
|
|
5935
|
+
"title": "群名称"
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5938
|
+
},
|
|
5838
5939
|
"puppetRoomPayloadResponse": {
|
|
5839
5940
|
"type": "object",
|
|
5840
5941
|
"properties": {
|
|
@@ -5903,6 +6004,9 @@
|
|
|
5903
6004
|
},
|
|
5904
6005
|
"forbidRoomTopicEdit": {
|
|
5905
6006
|
"$ref": "#/definitions/puppetOptionalBoolean"
|
|
6007
|
+
},
|
|
6008
|
+
"disableMemberMutualAdd": {
|
|
6009
|
+
"$ref": "#/definitions/puppetOptionalBoolean"
|
|
5906
6010
|
}
|
|
5907
6011
|
}
|
|
5908
6012
|
},
|
|
@@ -91,6 +91,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
91
91
|
roomTopic: IPuppetService_IRoomTopic;
|
|
92
92
|
roomRemark: IPuppetService_IRoomRemark;
|
|
93
93
|
roomQRCode: IPuppetService_IRoomQRCode;
|
|
94
|
+
roomParseDynamicQRCode: IPuppetService_IRoomParseDynamicQRCode;
|
|
94
95
|
roomAnnounce: IPuppetService_IRoomAnnounce;
|
|
95
96
|
roomOwnerTransfer: IPuppetService_IRoomOwnerTransfer;
|
|
96
97
|
roomPermission: IPuppetService_IRoomPermission;
|
|
@@ -101,6 +102,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
101
102
|
roomMemberList: IPuppetService_IRoomMemberList;
|
|
102
103
|
roomInvitationPayload: IPuppetService_IRoomInvitationPayload;
|
|
103
104
|
roomInvitationAccept: IPuppetService_IRoomInvitationAccept;
|
|
105
|
+
roomInvitationAcceptByQRCode: IPuppetService_IRoomInvitationAcceptByQRCode;
|
|
104
106
|
tagContactTagAdd: IPuppetService_ITagContactTagAdd;
|
|
105
107
|
tagContactTagRemove: IPuppetService_ITagContactTagRemove;
|
|
106
108
|
tagGroupAdd: IPuppetService_ITagGroupAdd;
|
|
@@ -735,6 +737,15 @@ interface IPuppetService_IRoomQRCode extends grpc.MethodDefinition<wechaty_puppe
|
|
|
735
737
|
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomQRCodeResponse>;
|
|
736
738
|
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomQRCodeResponse>;
|
|
737
739
|
}
|
|
740
|
+
interface IPuppetService_IRoomParseDynamicQRCode extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest, wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse> {
|
|
741
|
+
path: "/wechaty.Puppet/RoomParseDynamicQRCode";
|
|
742
|
+
requestStream: false;
|
|
743
|
+
responseStream: false;
|
|
744
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest>;
|
|
745
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest>;
|
|
746
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse>;
|
|
747
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse>;
|
|
748
|
+
}
|
|
738
749
|
interface IPuppetService_IRoomAnnounce extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomAnnounceRequest, wechaty_puppet_room_pb.RoomAnnounceResponse> {
|
|
739
750
|
path: "/wechaty.Puppet/RoomAnnounce";
|
|
740
751
|
requestStream: false;
|
|
@@ -825,6 +836,15 @@ interface IPuppetService_IRoomInvitationAccept extends grpc.MethodDefinition<wec
|
|
|
825
836
|
responseSerialize: grpc.serialize<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse>;
|
|
826
837
|
responseDeserialize: grpc.deserialize<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse>;
|
|
827
838
|
}
|
|
839
|
+
interface IPuppetService_IRoomInvitationAcceptByQRCode extends grpc.MethodDefinition<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse> {
|
|
840
|
+
path: "/wechaty.Puppet/RoomInvitationAcceptByQRCode";
|
|
841
|
+
requestStream: false;
|
|
842
|
+
responseStream: false;
|
|
843
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest>;
|
|
844
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest>;
|
|
845
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse>;
|
|
846
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse>;
|
|
847
|
+
}
|
|
828
848
|
interface IPuppetService_ITagContactTagAdd extends grpc.MethodDefinition<wechaty_puppet_tag_pb.TagContactTagAddRequest, wechaty_puppet_tag_pb.TagContactTagAddResponse> {
|
|
829
849
|
path: "/wechaty.Puppet/TagContactTagAdd";
|
|
830
850
|
requestStream: false;
|
|
@@ -1157,6 +1177,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
1157
1177
|
roomTopic: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomTopicRequest, wechaty_puppet_room_pb.RoomTopicResponse>;
|
|
1158
1178
|
roomRemark: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomRemarkRequest, wechaty_puppet_room_pb.RoomRemarkResponse>;
|
|
1159
1179
|
roomQRCode: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomQRCodeRequest, wechaty_puppet_room_pb.RoomQRCodeResponse>;
|
|
1180
|
+
roomParseDynamicQRCode: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest, wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse>;
|
|
1160
1181
|
roomAnnounce: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAnnounceRequest, wechaty_puppet_room_pb.RoomAnnounceResponse>;
|
|
1161
1182
|
roomOwnerTransfer: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomOwnerTransferRequest, wechaty_puppet_room_pb.RoomOwnerTransferResponse>;
|
|
1162
1183
|
roomPermission: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPermissionRequest, wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
@@ -1167,6 +1188,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
1167
1188
|
roomMemberList: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberListRequest, wechaty_puppet_room_member_pb.RoomMemberListResponse>;
|
|
1168
1189
|
roomInvitationPayload: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse>;
|
|
1169
1190
|
roomInvitationAccept: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse>;
|
|
1191
|
+
roomInvitationAcceptByQRCode: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse>;
|
|
1170
1192
|
tagContactTagAdd: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagContactTagAddRequest, wechaty_puppet_tag_pb.TagContactTagAddResponse>;
|
|
1171
1193
|
tagContactTagRemove: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagContactTagRemoveRequest, wechaty_puppet_tag_pb.TagContactTagRemoveResponse>;
|
|
1172
1194
|
tagGroupAdd: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupAddRequest, wechaty_puppet_tag_pb.TagGroupAddResponse>;
|
|
@@ -1399,6 +1421,9 @@ export interface IPuppetClient {
|
|
|
1399
1421
|
roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1400
1422
|
roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1401
1423
|
roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1424
|
+
roomParseDynamicQRCode(request: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1425
|
+
roomParseDynamicQRCode(request: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1426
|
+
roomParseDynamicQRCode(request: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1402
1427
|
roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
|
|
1403
1428
|
roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
|
|
1404
1429
|
roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1429,6 +1454,9 @@ export interface IPuppetClient {
|
|
|
1429
1454
|
roomInvitationAccept(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse) => void): grpc.ClientUnaryCall;
|
|
1430
1455
|
roomInvitationAccept(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse) => void): grpc.ClientUnaryCall;
|
|
1431
1456
|
roomInvitationAccept(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse) => void): grpc.ClientUnaryCall;
|
|
1457
|
+
roomInvitationAcceptByQRCode(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1458
|
+
roomInvitationAcceptByQRCode(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1459
|
+
roomInvitationAcceptByQRCode(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1432
1460
|
tagContactTagAdd(request: wechaty_puppet_tag_pb.TagContactTagAddRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagContactTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1433
1461
|
tagContactTagAdd(request: wechaty_puppet_tag_pb.TagContactTagAddRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagContactTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1434
1462
|
tagContactTagAdd(request: wechaty_puppet_tag_pb.TagContactTagAddRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagContactTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1720,6 +1748,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1720
1748
|
public roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1721
1749
|
public roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1722
1750
|
public roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1751
|
+
public roomParseDynamicQRCode(request: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1752
|
+
public roomParseDynamicQRCode(request: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1753
|
+
public roomParseDynamicQRCode(request: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1723
1754
|
public roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
|
|
1724
1755
|
public roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
|
|
1725
1756
|
public roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1750,6 +1781,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1750
1781
|
public roomInvitationAccept(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse) => void): grpc.ClientUnaryCall;
|
|
1751
1782
|
public roomInvitationAccept(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse) => void): grpc.ClientUnaryCall;
|
|
1752
1783
|
public roomInvitationAccept(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse) => void): grpc.ClientUnaryCall;
|
|
1784
|
+
public roomInvitationAcceptByQRCode(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1785
|
+
public roomInvitationAcceptByQRCode(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1786
|
+
public roomInvitationAcceptByQRCode(request: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1753
1787
|
public tagContactTagAdd(request: wechaty_puppet_tag_pb.TagContactTagAddRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagContactTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1754
1788
|
public tagContactTagAdd(request: wechaty_puppet_tag_pb.TagContactTagAddRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagContactTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1755
1789
|
public tagContactTagAdd(request: wechaty_puppet_tag_pb.TagContactTagAddRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagContactTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1649,6 +1649,28 @@ function deserialize_wechaty_puppet_RoomDismissResponse(buffer_arg) {
|
|
|
1649
1649
|
return wechaty_puppet_room_pb.RoomDismissResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1650
1650
|
}
|
|
1651
1651
|
|
|
1652
|
+
function serialize_wechaty_puppet_RoomInvitationAcceptByQRCodeRequest(arg) {
|
|
1653
|
+
if (!(arg instanceof wechaty_puppet_room$invitation_pb.RoomInvitationAcceptByQRCodeRequest)) {
|
|
1654
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomInvitationAcceptByQRCodeRequest');
|
|
1655
|
+
}
|
|
1656
|
+
return Buffer.from(arg.serializeBinary());
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
function deserialize_wechaty_puppet_RoomInvitationAcceptByQRCodeRequest(buffer_arg) {
|
|
1660
|
+
return wechaty_puppet_room$invitation_pb.RoomInvitationAcceptByQRCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
function serialize_wechaty_puppet_RoomInvitationAcceptByQRCodeResponse(arg) {
|
|
1664
|
+
if (!(arg instanceof wechaty_puppet_room$invitation_pb.RoomInvitationAcceptByQRCodeResponse)) {
|
|
1665
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomInvitationAcceptByQRCodeResponse');
|
|
1666
|
+
}
|
|
1667
|
+
return Buffer.from(arg.serializeBinary());
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
function deserialize_wechaty_puppet_RoomInvitationAcceptByQRCodeResponse(buffer_arg) {
|
|
1671
|
+
return wechaty_puppet_room$invitation_pb.RoomInvitationAcceptByQRCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1652
1674
|
function serialize_wechaty_puppet_RoomInvitationAcceptRequest(arg) {
|
|
1653
1675
|
if (!(arg instanceof wechaty_puppet_room$invitation_pb.RoomInvitationAcceptRequest)) {
|
|
1654
1676
|
throw new Error('Expected argument of type wechaty.puppet.RoomInvitationAcceptRequest');
|
|
@@ -1781,6 +1803,28 @@ function deserialize_wechaty_puppet_RoomOwnerTransferResponse(buffer_arg) {
|
|
|
1781
1803
|
return wechaty_puppet_room_pb.RoomOwnerTransferResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1782
1804
|
}
|
|
1783
1805
|
|
|
1806
|
+
function serialize_wechaty_puppet_RoomParseDynamicQRCodeRequest(arg) {
|
|
1807
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest)) {
|
|
1808
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomParseDynamicQRCodeRequest');
|
|
1809
|
+
}
|
|
1810
|
+
return Buffer.from(arg.serializeBinary());
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
function deserialize_wechaty_puppet_RoomParseDynamicQRCodeRequest(buffer_arg) {
|
|
1814
|
+
return wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
function serialize_wechaty_puppet_RoomParseDynamicQRCodeResponse(arg) {
|
|
1818
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse)) {
|
|
1819
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomParseDynamicQRCodeResponse');
|
|
1820
|
+
}
|
|
1821
|
+
return Buffer.from(arg.serializeBinary());
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
function deserialize_wechaty_puppet_RoomParseDynamicQRCodeResponse(buffer_arg) {
|
|
1825
|
+
return wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1784
1828
|
function serialize_wechaty_puppet_RoomPayloadRequest(arg) {
|
|
1785
1829
|
if (!(arg instanceof wechaty_puppet_room_pb.RoomPayloadRequest)) {
|
|
1786
1830
|
throw new Error('Expected argument of type wechaty.puppet.RoomPayloadRequest');
|
|
@@ -3086,6 +3130,17 @@ roomPayload: {
|
|
|
3086
3130
|
responseSerialize: serialize_wechaty_puppet_RoomQRCodeResponse,
|
|
3087
3131
|
responseDeserialize: deserialize_wechaty_puppet_RoomQRCodeResponse,
|
|
3088
3132
|
},
|
|
3133
|
+
roomParseDynamicQRCode: {
|
|
3134
|
+
path: '/wechaty.Puppet/RoomParseDynamicQRCode',
|
|
3135
|
+
requestStream: false,
|
|
3136
|
+
responseStream: false,
|
|
3137
|
+
requestType: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest,
|
|
3138
|
+
responseType: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse,
|
|
3139
|
+
requestSerialize: serialize_wechaty_puppet_RoomParseDynamicQRCodeRequest,
|
|
3140
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomParseDynamicQRCodeRequest,
|
|
3141
|
+
responseSerialize: serialize_wechaty_puppet_RoomParseDynamicQRCodeResponse,
|
|
3142
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomParseDynamicQRCodeResponse,
|
|
3143
|
+
},
|
|
3089
3144
|
roomAnnounce: {
|
|
3090
3145
|
path: '/wechaty.Puppet/RoomAnnounce',
|
|
3091
3146
|
requestStream: false,
|
|
@@ -3204,6 +3259,17 @@ roomInvitationPayload: {
|
|
|
3204
3259
|
responseSerialize: serialize_wechaty_puppet_RoomInvitationAcceptResponse,
|
|
3205
3260
|
responseDeserialize: deserialize_wechaty_puppet_RoomInvitationAcceptResponse,
|
|
3206
3261
|
},
|
|
3262
|
+
roomInvitationAcceptByQRCode: {
|
|
3263
|
+
path: '/wechaty.Puppet/RoomInvitationAcceptByQRCode',
|
|
3264
|
+
requestStream: false,
|
|
3265
|
+
responseStream: false,
|
|
3266
|
+
requestType: wechaty_puppet_room$invitation_pb.RoomInvitationAcceptByQRCodeRequest,
|
|
3267
|
+
responseType: wechaty_puppet_room$invitation_pb.RoomInvitationAcceptByQRCodeResponse,
|
|
3268
|
+
requestSerialize: serialize_wechaty_puppet_RoomInvitationAcceptByQRCodeRequest,
|
|
3269
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomInvitationAcceptByQRCodeRequest,
|
|
3270
|
+
responseSerialize: serialize_wechaty_puppet_RoomInvitationAcceptByQRCodeResponse,
|
|
3271
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomInvitationAcceptByQRCodeResponse,
|
|
3272
|
+
},
|
|
3207
3273
|
// *
|
|
3208
3274
|
//
|
|
3209
3275
|
// Tag
|
|
@@ -622,6 +622,15 @@ type PuppetRoomQRCode = {
|
|
|
622
622
|
readonly responseType: typeof wechaty_puppet_room_pb.RoomQRCodeResponse;
|
|
623
623
|
};
|
|
624
624
|
|
|
625
|
+
type PuppetRoomParseDynamicQRCode = {
|
|
626
|
+
readonly methodName: string;
|
|
627
|
+
readonly service: typeof Puppet;
|
|
628
|
+
readonly requestStream: false;
|
|
629
|
+
readonly responseStream: false;
|
|
630
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest;
|
|
631
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse;
|
|
632
|
+
};
|
|
633
|
+
|
|
625
634
|
type PuppetRoomAnnounce = {
|
|
626
635
|
readonly methodName: string;
|
|
627
636
|
readonly service: typeof Puppet;
|
|
@@ -712,6 +721,15 @@ type PuppetRoomInvitationAccept = {
|
|
|
712
721
|
readonly responseType: typeof wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse;
|
|
713
722
|
};
|
|
714
723
|
|
|
724
|
+
type PuppetRoomInvitationAcceptByQRCode = {
|
|
725
|
+
readonly methodName: string;
|
|
726
|
+
readonly service: typeof Puppet;
|
|
727
|
+
readonly requestStream: false;
|
|
728
|
+
readonly responseStream: false;
|
|
729
|
+
readonly requestType: typeof wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest;
|
|
730
|
+
readonly responseType: typeof wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse;
|
|
731
|
+
};
|
|
732
|
+
|
|
715
733
|
type PuppetTagContactTagAdd = {
|
|
716
734
|
readonly methodName: string;
|
|
717
735
|
readonly service: typeof Puppet;
|
|
@@ -1042,6 +1060,7 @@ export class Puppet {
|
|
|
1042
1060
|
static readonly RoomTopic: PuppetRoomTopic;
|
|
1043
1061
|
static readonly RoomRemark: PuppetRoomRemark;
|
|
1044
1062
|
static readonly RoomQRCode: PuppetRoomQRCode;
|
|
1063
|
+
static readonly RoomParseDynamicQRCode: PuppetRoomParseDynamicQRCode;
|
|
1045
1064
|
static readonly RoomAnnounce: PuppetRoomAnnounce;
|
|
1046
1065
|
static readonly RoomOwnerTransfer: PuppetRoomOwnerTransfer;
|
|
1047
1066
|
static readonly RoomPermission: PuppetRoomPermission;
|
|
@@ -1052,6 +1071,7 @@ export class Puppet {
|
|
|
1052
1071
|
static readonly RoomMemberList: PuppetRoomMemberList;
|
|
1053
1072
|
static readonly RoomInvitationPayload: PuppetRoomInvitationPayload;
|
|
1054
1073
|
static readonly RoomInvitationAccept: PuppetRoomInvitationAccept;
|
|
1074
|
+
static readonly RoomInvitationAcceptByQRCode: PuppetRoomInvitationAcceptByQRCode;
|
|
1055
1075
|
static readonly TagContactTagAdd: PuppetTagContactTagAdd;
|
|
1056
1076
|
static readonly TagContactTagRemove: PuppetTagContactTagRemove;
|
|
1057
1077
|
static readonly TagGroupAdd: PuppetTagGroupAdd;
|
|
@@ -1710,6 +1730,15 @@ export class PuppetClient {
|
|
|
1710
1730
|
requestMessage: wechaty_puppet_room_pb.RoomQRCodeRequest,
|
|
1711
1731
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomQRCodeResponse|null) => void
|
|
1712
1732
|
): UnaryResponse;
|
|
1733
|
+
roomParseDynamicQRCode(
|
|
1734
|
+
requestMessage: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest,
|
|
1735
|
+
metadata: grpc.Metadata,
|
|
1736
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse|null) => void
|
|
1737
|
+
): UnaryResponse;
|
|
1738
|
+
roomParseDynamicQRCode(
|
|
1739
|
+
requestMessage: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest,
|
|
1740
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse|null) => void
|
|
1741
|
+
): UnaryResponse;
|
|
1713
1742
|
roomAnnounce(
|
|
1714
1743
|
requestMessage: wechaty_puppet_room_pb.RoomAnnounceRequest,
|
|
1715
1744
|
metadata: grpc.Metadata,
|
|
@@ -1800,6 +1829,15 @@ export class PuppetClient {
|
|
|
1800
1829
|
requestMessage: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest,
|
|
1801
1830
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse|null) => void
|
|
1802
1831
|
): UnaryResponse;
|
|
1832
|
+
roomInvitationAcceptByQRCode(
|
|
1833
|
+
requestMessage: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest,
|
|
1834
|
+
metadata: grpc.Metadata,
|
|
1835
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse|null) => void
|
|
1836
|
+
): UnaryResponse;
|
|
1837
|
+
roomInvitationAcceptByQRCode(
|
|
1838
|
+
requestMessage: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest,
|
|
1839
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse|null) => void
|
|
1840
|
+
): UnaryResponse;
|
|
1803
1841
|
tagContactTagAdd(
|
|
1804
1842
|
requestMessage: wechaty_puppet_tag_pb.TagContactTagAddRequest,
|
|
1805
1843
|
metadata: grpc.Metadata,
|
|
@@ -628,6 +628,15 @@ Puppet.RoomQRCode = {
|
|
|
628
628
|
responseType: wechaty_puppet_room_pb.RoomQRCodeResponse
|
|
629
629
|
};
|
|
630
630
|
|
|
631
|
+
Puppet.RoomParseDynamicQRCode = {
|
|
632
|
+
methodName: "RoomParseDynamicQRCode",
|
|
633
|
+
service: Puppet,
|
|
634
|
+
requestStream: false,
|
|
635
|
+
responseStream: false,
|
|
636
|
+
requestType: wechaty_puppet_room_pb.RoomParseDynamicQRCodeRequest,
|
|
637
|
+
responseType: wechaty_puppet_room_pb.RoomParseDynamicQRCodeResponse
|
|
638
|
+
};
|
|
639
|
+
|
|
631
640
|
Puppet.RoomAnnounce = {
|
|
632
641
|
methodName: "RoomAnnounce",
|
|
633
642
|
service: Puppet,
|
|
@@ -718,6 +727,15 @@ Puppet.RoomInvitationAccept = {
|
|
|
718
727
|
responseType: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse
|
|
719
728
|
};
|
|
720
729
|
|
|
730
|
+
Puppet.RoomInvitationAcceptByQRCode = {
|
|
731
|
+
methodName: "RoomInvitationAcceptByQRCode",
|
|
732
|
+
service: Puppet,
|
|
733
|
+
requestStream: false,
|
|
734
|
+
responseStream: false,
|
|
735
|
+
requestType: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest,
|
|
736
|
+
responseType: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse
|
|
737
|
+
};
|
|
738
|
+
|
|
721
739
|
Puppet.TagContactTagAdd = {
|
|
722
740
|
methodName: "TagContactTagAdd",
|
|
723
741
|
service: Puppet,
|
|
@@ -3071,6 +3089,37 @@ PuppetClient.prototype.roomQRCode = function roomQRCode(requestMessage, metadata
|
|
|
3071
3089
|
};
|
|
3072
3090
|
};
|
|
3073
3091
|
|
|
3092
|
+
PuppetClient.prototype.roomParseDynamicQRCode = function roomParseDynamicQRCode(requestMessage, metadata, callback) {
|
|
3093
|
+
if (arguments.length === 2) {
|
|
3094
|
+
callback = arguments[1];
|
|
3095
|
+
}
|
|
3096
|
+
var client = grpc.unary(Puppet.RoomParseDynamicQRCode, {
|
|
3097
|
+
request: requestMessage,
|
|
3098
|
+
host: this.serviceHost,
|
|
3099
|
+
metadata: metadata,
|
|
3100
|
+
transport: this.options.transport,
|
|
3101
|
+
debug: this.options.debug,
|
|
3102
|
+
onEnd: function (response) {
|
|
3103
|
+
if (callback) {
|
|
3104
|
+
if (response.status !== grpc.Code.OK) {
|
|
3105
|
+
var err = new Error(response.statusMessage);
|
|
3106
|
+
err.code = response.status;
|
|
3107
|
+
err.metadata = response.trailers;
|
|
3108
|
+
callback(err, null);
|
|
3109
|
+
} else {
|
|
3110
|
+
callback(null, response.message);
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
});
|
|
3115
|
+
return {
|
|
3116
|
+
cancel: function () {
|
|
3117
|
+
callback = null;
|
|
3118
|
+
client.close();
|
|
3119
|
+
}
|
|
3120
|
+
};
|
|
3121
|
+
};
|
|
3122
|
+
|
|
3074
3123
|
PuppetClient.prototype.roomAnnounce = function roomAnnounce(requestMessage, metadata, callback) {
|
|
3075
3124
|
if (arguments.length === 2) {
|
|
3076
3125
|
callback = arguments[1];
|
|
@@ -3381,6 +3430,37 @@ PuppetClient.prototype.roomInvitationAccept = function roomInvitationAccept(requ
|
|
|
3381
3430
|
};
|
|
3382
3431
|
};
|
|
3383
3432
|
|
|
3433
|
+
PuppetClient.prototype.roomInvitationAcceptByQRCode = function roomInvitationAcceptByQRCode(requestMessage, metadata, callback) {
|
|
3434
|
+
if (arguments.length === 2) {
|
|
3435
|
+
callback = arguments[1];
|
|
3436
|
+
}
|
|
3437
|
+
var client = grpc.unary(Puppet.RoomInvitationAcceptByQRCode, {
|
|
3438
|
+
request: requestMessage,
|
|
3439
|
+
host: this.serviceHost,
|
|
3440
|
+
metadata: metadata,
|
|
3441
|
+
transport: this.options.transport,
|
|
3442
|
+
debug: this.options.debug,
|
|
3443
|
+
onEnd: function (response) {
|
|
3444
|
+
if (callback) {
|
|
3445
|
+
if (response.status !== grpc.Code.OK) {
|
|
3446
|
+
var err = new Error(response.statusMessage);
|
|
3447
|
+
err.code = response.status;
|
|
3448
|
+
err.metadata = response.trailers;
|
|
3449
|
+
callback(err, null);
|
|
3450
|
+
} else {
|
|
3451
|
+
callback(null, response.message);
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
});
|
|
3456
|
+
return {
|
|
3457
|
+
cancel: function () {
|
|
3458
|
+
callback = null;
|
|
3459
|
+
client.close();
|
|
3460
|
+
}
|
|
3461
|
+
};
|
|
3462
|
+
};
|
|
3463
|
+
|
|
3384
3464
|
PuppetClient.prototype.tagContactTagAdd = function tagContactTagAdd(requestMessage, metadata, callback) {
|
|
3385
3465
|
if (arguments.length === 2) {
|
|
3386
3466
|
callback = arguments[1];
|
|
@@ -49,3 +49,11 @@ message RoomInvitationAcceptRequest {
|
|
|
49
49
|
string id = 1;
|
|
50
50
|
}
|
|
51
51
|
message RoomInvitationAcceptResponse {}
|
|
52
|
+
|
|
53
|
+
message RoomInvitationAcceptByQRCodeRequest {
|
|
54
|
+
string qrcode = 1;
|
|
55
|
+
}
|
|
56
|
+
message RoomInvitationAcceptByQRCodeResponse {
|
|
57
|
+
string room_id = 1;
|
|
58
|
+
string chat_id = 2;
|
|
59
|
+
}
|
|
@@ -83,6 +83,15 @@ message RoomQRCodeResponse {
|
|
|
83
83
|
string qrcode = 1;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
message RoomParseDynamicQRCodeRequest {
|
|
87
|
+
string url = 1; // 群活码链接
|
|
88
|
+
}
|
|
89
|
+
message RoomParseDynamicQRCodeResponse {
|
|
90
|
+
string qrcode = 1; // 二维码url
|
|
91
|
+
string qrcode_image_url = 2; // 二维码图片url
|
|
92
|
+
string room_name = 3; // 群名称
|
|
93
|
+
}
|
|
94
|
+
|
|
86
95
|
message RoomAnnounceRequest { // 群公告
|
|
87
96
|
string id = 1;
|
|
88
97
|
google.protobuf.StringValue text_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
@@ -114,6 +123,7 @@ message RoomPermissionRequest {
|
|
|
114
123
|
OptionalBoolean admin_only_at_all = 4;
|
|
115
124
|
OptionalBoolean mute_all = 5;
|
|
116
125
|
OptionalBoolean forbid_room_topic_edit = 6;
|
|
126
|
+
OptionalBoolean disable_member_mutual_add = 7;
|
|
117
127
|
}
|
|
118
128
|
|
|
119
129
|
message RoomPermissionResponse {
|
|
@@ -122,6 +132,7 @@ message RoomPermissionResponse {
|
|
|
122
132
|
OptionalBoolean admin_only_at_all = 3;
|
|
123
133
|
OptionalBoolean mute_all = 4;
|
|
124
134
|
OptionalBoolean forbid_room_topic_edit = 5;
|
|
135
|
+
OptionalBoolean disable_member_mutual_add = 6;
|
|
125
136
|
}
|
|
126
137
|
|
|
127
138
|
message RoomAdminsRequest {
|
|
@@ -527,6 +527,12 @@ service Puppet {
|
|
|
527
527
|
get: "/rooms/{id}/qrcode"
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
+
rpc RoomParseDynamicQRCode (puppet.RoomParseDynamicQRCodeRequest) returns (puppet.RoomParseDynamicQRCodeResponse) {
|
|
531
|
+
option (google.api.http) = {
|
|
532
|
+
get: "/rooms/{url}/parse-dynamic-qrcode"
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
|
|
530
536
|
rpc RoomAnnounce (puppet.RoomAnnounceRequest) returns (puppet.RoomAnnounceResponse) {
|
|
531
537
|
option (google.api.http) = {
|
|
532
538
|
get: "/rooms/{id}/announcement" // TODO: disable other get parameters
|
|
@@ -598,6 +604,11 @@ service Puppet {
|
|
|
598
604
|
put: "/room-invitations/{id}/accept"
|
|
599
605
|
};
|
|
600
606
|
}
|
|
607
|
+
rpc RoomInvitationAcceptByQRCode (puppet.RoomInvitationAcceptByQRCodeRequest) returns (puppet.RoomInvitationAcceptByQRCodeResponse) {
|
|
608
|
+
option (google.api.http) = {
|
|
609
|
+
put: "/room-invitations/{qrcode}/accept-by-qrcode"
|
|
610
|
+
};
|
|
611
|
+
}
|
|
601
612
|
|
|
602
613
|
/**
|
|
603
614
|
*
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.packageJson = void 0;
|
|
4
4
|
exports.packageJson = {
|
|
5
5
|
"name": "@juzi/wechaty-grpc",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.89",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|