@juzi/wechaty-grpc 1.0.103 → 1.0.105
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/message_pb.d.ts +84 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +638 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +360 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +98 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +155 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +15 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +8 -0
- package/dist/cjs/proto/wechaty/puppet.proto +13 -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 +15 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +638 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +360 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +98 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +155 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +15 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +8 -0
- package/dist/esm/proto/wechaty/puppet.proto +13 -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 +15 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/out/wechaty/puppet/message_pb.js +638 -0
- package/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/out/wechaty/puppet/room_pb.js +360 -0
- package/out/wechaty/puppet.openapi.yaml +98 -1
- package/out/wechaty/puppet.swagger.json +155 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/out/wechaty/puppet_grpc_pb.js +99 -0
- package/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/out/wechaty/puppet_pb_service.js +120 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -61,6 +61,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
61
61
|
conversationRead: IPuppetService_IConversationRead;
|
|
62
62
|
messageFile: IPuppetService_IMessageFile;
|
|
63
63
|
messageImage: IPuppetService_IMessageImage;
|
|
64
|
+
messageVoice: IPuppetService_IMessageVoice;
|
|
65
|
+
messageVoiceText: IPuppetService_IMessageVoiceText;
|
|
64
66
|
messageSendFile: IPuppetService_IMessageSendFile;
|
|
65
67
|
messagePayload: IPuppetService_IMessagePayload;
|
|
66
68
|
messageContact: IPuppetService_IMessageContact;
|
|
@@ -103,6 +105,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
103
105
|
createMessageBroadcast: IPuppetService_ICreateMessageBroadcast;
|
|
104
106
|
getMessageBroadcastStatus: IPuppetService_IGetMessageBroadcastStatus;
|
|
105
107
|
roomPayload: IPuppetService_IRoomPayload;
|
|
108
|
+
batchRoomPayload: IPuppetService_IBatchRoomPayload;
|
|
106
109
|
roomList: IPuppetService_IRoomList;
|
|
107
110
|
roomAdd: IPuppetService_IRoomAdd;
|
|
108
111
|
roomAvatar: IPuppetService_IRoomAvatar;
|
|
@@ -482,6 +485,24 @@ interface IPuppetService_IMessageImage extends grpc.MethodDefinition<wechaty_pup
|
|
|
482
485
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageImageResponse>;
|
|
483
486
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageImageResponse>;
|
|
484
487
|
}
|
|
488
|
+
interface IPuppetService_IMessageVoice extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageVoiceRequest, wechaty_puppet_message_pb.MessageVoiceResponse> {
|
|
489
|
+
path: "/wechaty.Puppet/MessageVoice";
|
|
490
|
+
requestStream: false;
|
|
491
|
+
responseStream: false;
|
|
492
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageVoiceRequest>;
|
|
493
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageVoiceRequest>;
|
|
494
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageVoiceResponse>;
|
|
495
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageVoiceResponse>;
|
|
496
|
+
}
|
|
497
|
+
interface IPuppetService_IMessageVoiceText extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageVoiceTextRequest, wechaty_puppet_message_pb.MessageVoiceTextResponse> {
|
|
498
|
+
path: "/wechaty.Puppet/MessageVoiceText";
|
|
499
|
+
requestStream: false;
|
|
500
|
+
responseStream: false;
|
|
501
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageVoiceTextRequest>;
|
|
502
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageVoiceTextRequest>;
|
|
503
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageVoiceTextResponse>;
|
|
504
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageVoiceTextResponse>;
|
|
505
|
+
}
|
|
485
506
|
interface IPuppetService_IMessageSendFile extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageSendFileRequest, wechaty_puppet_message_pb.MessageSendFileResponse> {
|
|
486
507
|
path: "/wechaty.Puppet/MessageSendFile";
|
|
487
508
|
requestStream: false;
|
|
@@ -860,6 +881,15 @@ interface IPuppetService_IRoomPayload extends grpc.MethodDefinition<wechaty_pupp
|
|
|
860
881
|
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomPayloadResponse>;
|
|
861
882
|
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomPayloadResponse>;
|
|
862
883
|
}
|
|
884
|
+
interface IPuppetService_IBatchRoomPayload extends grpc.MethodDefinition<wechaty_puppet_room_pb.BatchRoomPayloadRequest, wechaty_puppet_room_pb.BatchRoomPayloadResponse> {
|
|
885
|
+
path: "/wechaty.Puppet/BatchRoomPayload";
|
|
886
|
+
requestStream: false;
|
|
887
|
+
responseStream: false;
|
|
888
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_pb.BatchRoomPayloadRequest>;
|
|
889
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.BatchRoomPayloadRequest>;
|
|
890
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.BatchRoomPayloadResponse>;
|
|
891
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.BatchRoomPayloadResponse>;
|
|
892
|
+
}
|
|
863
893
|
interface IPuppetService_IRoomList extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomListRequest, wechaty_puppet_room_pb.RoomListResponse> {
|
|
864
894
|
path: "/wechaty.Puppet/RoomList";
|
|
865
895
|
requestStream: false;
|
|
@@ -1377,6 +1407,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
1377
1407
|
conversationRead: grpc.handleUnaryCall<wechaty_puppet_conversation_pb.ConversationReadRequest, wechaty_puppet_conversation_pb.ConversationReadResponse>;
|
|
1378
1408
|
messageFile: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageFileRequest, wechaty_puppet_message_pb.MessageFileResponse>;
|
|
1379
1409
|
messageImage: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageImageRequest, wechaty_puppet_message_pb.MessageImageResponse>;
|
|
1410
|
+
messageVoice: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageVoiceRequest, wechaty_puppet_message_pb.MessageVoiceResponse>;
|
|
1411
|
+
messageVoiceText: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageVoiceTextRequest, wechaty_puppet_message_pb.MessageVoiceTextResponse>;
|
|
1380
1412
|
messageSendFile: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendFileRequest, wechaty_puppet_message_pb.MessageSendFileResponse>;
|
|
1381
1413
|
messagePayload: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessagePayloadRequest, wechaty_puppet_message_pb.MessagePayloadResponse>;
|
|
1382
1414
|
messageContact: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageContactRequest, wechaty_puppet_message_pb.MessageContactResponse>;
|
|
@@ -1419,6 +1451,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
1419
1451
|
createMessageBroadcast: grpc.handleUnaryCall<wechaty_puppet_message_pb.CreateMessageBroadcastRequest, wechaty_puppet_message_pb.CreateMessageBroadcastResponse>;
|
|
1420
1452
|
getMessageBroadcastStatus: grpc.handleUnaryCall<wechaty_puppet_message_pb.GetMessageBroadcastStatusRequest, wechaty_puppet_message_pb.GetMessageBroadcastStatusResponse>;
|
|
1421
1453
|
roomPayload: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse>;
|
|
1454
|
+
batchRoomPayload: grpc.handleUnaryCall<wechaty_puppet_room_pb.BatchRoomPayloadRequest, wechaty_puppet_room_pb.BatchRoomPayloadResponse>;
|
|
1422
1455
|
roomList: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomListRequest, wechaty_puppet_room_pb.RoomListResponse>;
|
|
1423
1456
|
roomAdd: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAddRequest, wechaty_puppet_room_pb.RoomAddResponse>;
|
|
1424
1457
|
roomAvatar: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAvatarRequest, wechaty_puppet_room_pb.RoomAvatarResponse>;
|
|
@@ -1582,6 +1615,12 @@ export interface IPuppetClient {
|
|
|
1582
1615
|
messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1583
1616
|
messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1584
1617
|
messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1618
|
+
messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
1619
|
+
messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
1620
|
+
messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
1621
|
+
messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
1622
|
+
messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
1623
|
+
messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
1585
1624
|
messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
1586
1625
|
messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
1587
1626
|
messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1708,6 +1747,9 @@ export interface IPuppetClient {
|
|
|
1708
1747
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1709
1748
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1710
1749
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1750
|
+
batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1751
|
+
batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1752
|
+
batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1711
1753
|
roomList(request: wechaty_puppet_room_pb.RoomListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
|
|
1712
1754
|
roomList(request: wechaty_puppet_room_pb.RoomListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
|
|
1713
1755
|
roomList(request: wechaty_puppet_room_pb.RoomListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1978,6 +2020,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1978
2020
|
public messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1979
2021
|
public messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1980
2022
|
public messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
2023
|
+
public messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
2024
|
+
public messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
2025
|
+
public messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
2026
|
+
public messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
2027
|
+
public messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
2028
|
+
public messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
1981
2029
|
public messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
1982
2030
|
public messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
1983
2031
|
public messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -2104,6 +2152,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
2104
2152
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
2105
2153
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
2106
2154
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
2155
|
+
public batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
2156
|
+
public batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
2157
|
+
public batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
2107
2158
|
public roomList(request: wechaty_puppet_room_pb.RoomListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
|
|
2108
2159
|
public roomList(request: wechaty_puppet_room_pb.RoomListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
|
|
2109
2160
|
public roomList(request: wechaty_puppet_room_pb.RoomListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -99,6 +99,28 @@ function deserialize_wechaty_puppet_BatchRoomMemberPayloadResponse(buffer_arg) {
|
|
|
99
99
|
return wechaty_puppet_room$member_pb.BatchRoomMemberPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
function serialize_wechaty_puppet_BatchRoomPayloadRequest(arg) {
|
|
103
|
+
if (!(arg instanceof wechaty_puppet_room_pb.BatchRoomPayloadRequest)) {
|
|
104
|
+
throw new Error('Expected argument of type wechaty.puppet.BatchRoomPayloadRequest');
|
|
105
|
+
}
|
|
106
|
+
return Buffer.from(arg.serializeBinary());
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function deserialize_wechaty_puppet_BatchRoomPayloadRequest(buffer_arg) {
|
|
110
|
+
return wechaty_puppet_room_pb.BatchRoomPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function serialize_wechaty_puppet_BatchRoomPayloadResponse(arg) {
|
|
114
|
+
if (!(arg instanceof wechaty_puppet_room_pb.BatchRoomPayloadResponse)) {
|
|
115
|
+
throw new Error('Expected argument of type wechaty.puppet.BatchRoomPayloadResponse');
|
|
116
|
+
}
|
|
117
|
+
return Buffer.from(arg.serializeBinary());
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function deserialize_wechaty_puppet_BatchRoomPayloadResponse(buffer_arg) {
|
|
121
|
+
return wechaty_puppet_room_pb.BatchRoomPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
122
|
+
}
|
|
123
|
+
|
|
102
124
|
function serialize_wechaty_puppet_CallAcceptRequest(arg) {
|
|
103
125
|
if (!(arg instanceof wechaty_puppet_call_pb.CallAcceptRequest)) {
|
|
104
126
|
throw new Error('Expected argument of type wechaty.puppet.CallAcceptRequest');
|
|
@@ -1771,6 +1793,50 @@ function deserialize_wechaty_puppet_MessageUrlResponse(buffer_arg) {
|
|
|
1771
1793
|
return wechaty_puppet_message_pb.MessageUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1772
1794
|
}
|
|
1773
1795
|
|
|
1796
|
+
function serialize_wechaty_puppet_MessageVoiceRequest(arg) {
|
|
1797
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageVoiceRequest)) {
|
|
1798
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageVoiceRequest');
|
|
1799
|
+
}
|
|
1800
|
+
return Buffer.from(arg.serializeBinary());
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
function deserialize_wechaty_puppet_MessageVoiceRequest(buffer_arg) {
|
|
1804
|
+
return wechaty_puppet_message_pb.MessageVoiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
function serialize_wechaty_puppet_MessageVoiceResponse(arg) {
|
|
1808
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageVoiceResponse)) {
|
|
1809
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageVoiceResponse');
|
|
1810
|
+
}
|
|
1811
|
+
return Buffer.from(arg.serializeBinary());
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
function deserialize_wechaty_puppet_MessageVoiceResponse(buffer_arg) {
|
|
1815
|
+
return wechaty_puppet_message_pb.MessageVoiceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
function serialize_wechaty_puppet_MessageVoiceTextRequest(arg) {
|
|
1819
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageVoiceTextRequest)) {
|
|
1820
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageVoiceTextRequest');
|
|
1821
|
+
}
|
|
1822
|
+
return Buffer.from(arg.serializeBinary());
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
function deserialize_wechaty_puppet_MessageVoiceTextRequest(buffer_arg) {
|
|
1826
|
+
return wechaty_puppet_message_pb.MessageVoiceTextRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
function serialize_wechaty_puppet_MessageVoiceTextResponse(arg) {
|
|
1830
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageVoiceTextResponse)) {
|
|
1831
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageVoiceTextResponse');
|
|
1832
|
+
}
|
|
1833
|
+
return Buffer.from(arg.serializeBinary());
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
function deserialize_wechaty_puppet_MessageVoiceTextResponse(buffer_arg) {
|
|
1837
|
+
return wechaty_puppet_message_pb.MessageVoiceTextResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1774
1840
|
function serialize_wechaty_puppet_MomentCoverageRequest(arg) {
|
|
1775
1841
|
if (!(arg instanceof wechaty_puppet_moment_pb.MomentCoverageRequest)) {
|
|
1776
1842
|
throw new Error('Expected argument of type wechaty.puppet.MomentCoverageRequest');
|
|
@@ -3292,6 +3358,28 @@ messageFile: {
|
|
|
3292
3358
|
responseSerialize: serialize_wechaty_puppet_MessageImageResponse,
|
|
3293
3359
|
responseDeserialize: deserialize_wechaty_puppet_MessageImageResponse,
|
|
3294
3360
|
},
|
|
3361
|
+
messageVoice: {
|
|
3362
|
+
path: '/wechaty.Puppet/MessageVoice',
|
|
3363
|
+
requestStream: false,
|
|
3364
|
+
responseStream: false,
|
|
3365
|
+
requestType: wechaty_puppet_message_pb.MessageVoiceRequest,
|
|
3366
|
+
responseType: wechaty_puppet_message_pb.MessageVoiceResponse,
|
|
3367
|
+
requestSerialize: serialize_wechaty_puppet_MessageVoiceRequest,
|
|
3368
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageVoiceRequest,
|
|
3369
|
+
responseSerialize: serialize_wechaty_puppet_MessageVoiceResponse,
|
|
3370
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageVoiceResponse,
|
|
3371
|
+
},
|
|
3372
|
+
messageVoiceText: {
|
|
3373
|
+
path: '/wechaty.Puppet/MessageVoiceText',
|
|
3374
|
+
requestStream: false,
|
|
3375
|
+
responseStream: false,
|
|
3376
|
+
requestType: wechaty_puppet_message_pb.MessageVoiceTextRequest,
|
|
3377
|
+
responseType: wechaty_puppet_message_pb.MessageVoiceTextResponse,
|
|
3378
|
+
requestSerialize: serialize_wechaty_puppet_MessageVoiceTextRequest,
|
|
3379
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageVoiceTextRequest,
|
|
3380
|
+
responseSerialize: serialize_wechaty_puppet_MessageVoiceTextResponse,
|
|
3381
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageVoiceTextResponse,
|
|
3382
|
+
},
|
|
3295
3383
|
messageSendFile: {
|
|
3296
3384
|
path: '/wechaty.Puppet/MessageSendFile',
|
|
3297
3385
|
requestStream: false,
|
|
@@ -3759,6 +3847,17 @@ roomPayload: {
|
|
|
3759
3847
|
responseSerialize: serialize_wechaty_puppet_RoomPayloadResponse,
|
|
3760
3848
|
responseDeserialize: deserialize_wechaty_puppet_RoomPayloadResponse,
|
|
3761
3849
|
},
|
|
3850
|
+
batchRoomPayload: {
|
|
3851
|
+
path: '/wechaty.Puppet/BatchRoomPayload',
|
|
3852
|
+
requestStream: false,
|
|
3853
|
+
responseStream: false,
|
|
3854
|
+
requestType: wechaty_puppet_room_pb.BatchRoomPayloadRequest,
|
|
3855
|
+
responseType: wechaty_puppet_room_pb.BatchRoomPayloadResponse,
|
|
3856
|
+
requestSerialize: serialize_wechaty_puppet_BatchRoomPayloadRequest,
|
|
3857
|
+
requestDeserialize: deserialize_wechaty_puppet_BatchRoomPayloadRequest,
|
|
3858
|
+
responseSerialize: serialize_wechaty_puppet_BatchRoomPayloadResponse,
|
|
3859
|
+
responseDeserialize: deserialize_wechaty_puppet_BatchRoomPayloadResponse,
|
|
3860
|
+
},
|
|
3762
3861
|
roomList: {
|
|
3763
3862
|
path: '/wechaty.Puppet/RoomList',
|
|
3764
3863
|
requestStream: false,
|
|
@@ -344,6 +344,24 @@ type PuppetMessageImage = {
|
|
|
344
344
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageImageResponse;
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
+
type PuppetMessageVoice = {
|
|
348
|
+
readonly methodName: string;
|
|
349
|
+
readonly service: typeof Puppet;
|
|
350
|
+
readonly requestStream: false;
|
|
351
|
+
readonly responseStream: false;
|
|
352
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageVoiceRequest;
|
|
353
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageVoiceResponse;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
type PuppetMessageVoiceText = {
|
|
357
|
+
readonly methodName: string;
|
|
358
|
+
readonly service: typeof Puppet;
|
|
359
|
+
readonly requestStream: false;
|
|
360
|
+
readonly responseStream: false;
|
|
361
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageVoiceTextRequest;
|
|
362
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageVoiceTextResponse;
|
|
363
|
+
};
|
|
364
|
+
|
|
347
365
|
type PuppetMessageSendFile = {
|
|
348
366
|
readonly methodName: string;
|
|
349
367
|
readonly service: typeof Puppet;
|
|
@@ -722,6 +740,15 @@ type PuppetRoomPayload = {
|
|
|
722
740
|
readonly responseType: typeof wechaty_puppet_room_pb.RoomPayloadResponse;
|
|
723
741
|
};
|
|
724
742
|
|
|
743
|
+
type PuppetBatchRoomPayload = {
|
|
744
|
+
readonly methodName: string;
|
|
745
|
+
readonly service: typeof Puppet;
|
|
746
|
+
readonly requestStream: false;
|
|
747
|
+
readonly responseStream: false;
|
|
748
|
+
readonly requestType: typeof wechaty_puppet_room_pb.BatchRoomPayloadRequest;
|
|
749
|
+
readonly responseType: typeof wechaty_puppet_room_pb.BatchRoomPayloadResponse;
|
|
750
|
+
};
|
|
751
|
+
|
|
725
752
|
type PuppetRoomList = {
|
|
726
753
|
readonly methodName: string;
|
|
727
754
|
readonly service: typeof Puppet;
|
|
@@ -1237,6 +1264,8 @@ export class Puppet {
|
|
|
1237
1264
|
static readonly ConversationRead: PuppetConversationRead;
|
|
1238
1265
|
static readonly MessageFile: PuppetMessageFile;
|
|
1239
1266
|
static readonly MessageImage: PuppetMessageImage;
|
|
1267
|
+
static readonly MessageVoice: PuppetMessageVoice;
|
|
1268
|
+
static readonly MessageVoiceText: PuppetMessageVoiceText;
|
|
1240
1269
|
static readonly MessageSendFile: PuppetMessageSendFile;
|
|
1241
1270
|
static readonly MessagePayload: PuppetMessagePayload;
|
|
1242
1271
|
static readonly MessageContact: PuppetMessageContact;
|
|
@@ -1279,6 +1308,7 @@ export class Puppet {
|
|
|
1279
1308
|
static readonly CreateMessageBroadcast: PuppetCreateMessageBroadcast;
|
|
1280
1309
|
static readonly GetMessageBroadcastStatus: PuppetGetMessageBroadcastStatus;
|
|
1281
1310
|
static readonly RoomPayload: PuppetRoomPayload;
|
|
1311
|
+
static readonly BatchRoomPayload: PuppetBatchRoomPayload;
|
|
1282
1312
|
static readonly RoomList: PuppetRoomList;
|
|
1283
1313
|
static readonly RoomAdd: PuppetRoomAdd;
|
|
1284
1314
|
static readonly RoomAvatar: PuppetRoomAvatar;
|
|
@@ -1682,6 +1712,24 @@ export class PuppetClient {
|
|
|
1682
1712
|
requestMessage: wechaty_puppet_message_pb.MessageImageRequest,
|
|
1683
1713
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageImageResponse|null) => void
|
|
1684
1714
|
): UnaryResponse;
|
|
1715
|
+
messageVoice(
|
|
1716
|
+
requestMessage: wechaty_puppet_message_pb.MessageVoiceRequest,
|
|
1717
|
+
metadata: grpc.Metadata,
|
|
1718
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageVoiceResponse|null) => void
|
|
1719
|
+
): UnaryResponse;
|
|
1720
|
+
messageVoice(
|
|
1721
|
+
requestMessage: wechaty_puppet_message_pb.MessageVoiceRequest,
|
|
1722
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageVoiceResponse|null) => void
|
|
1723
|
+
): UnaryResponse;
|
|
1724
|
+
messageVoiceText(
|
|
1725
|
+
requestMessage: wechaty_puppet_message_pb.MessageVoiceTextRequest,
|
|
1726
|
+
metadata: grpc.Metadata,
|
|
1727
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageVoiceTextResponse|null) => void
|
|
1728
|
+
): UnaryResponse;
|
|
1729
|
+
messageVoiceText(
|
|
1730
|
+
requestMessage: wechaty_puppet_message_pb.MessageVoiceTextRequest,
|
|
1731
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageVoiceTextResponse|null) => void
|
|
1732
|
+
): UnaryResponse;
|
|
1685
1733
|
messageSendFile(
|
|
1686
1734
|
requestMessage: wechaty_puppet_message_pb.MessageSendFileRequest,
|
|
1687
1735
|
metadata: grpc.Metadata,
|
|
@@ -2060,6 +2108,15 @@ export class PuppetClient {
|
|
|
2060
2108
|
requestMessage: wechaty_puppet_room_pb.RoomPayloadRequest,
|
|
2061
2109
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomPayloadResponse|null) => void
|
|
2062
2110
|
): UnaryResponse;
|
|
2111
|
+
batchRoomPayload(
|
|
2112
|
+
requestMessage: wechaty_puppet_room_pb.BatchRoomPayloadRequest,
|
|
2113
|
+
metadata: grpc.Metadata,
|
|
2114
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.BatchRoomPayloadResponse|null) => void
|
|
2115
|
+
): UnaryResponse;
|
|
2116
|
+
batchRoomPayload(
|
|
2117
|
+
requestMessage: wechaty_puppet_room_pb.BatchRoomPayloadRequest,
|
|
2118
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.BatchRoomPayloadResponse|null) => void
|
|
2119
|
+
): UnaryResponse;
|
|
2063
2120
|
roomList(
|
|
2064
2121
|
requestMessage: wechaty_puppet_room_pb.RoomListRequest,
|
|
2065
2122
|
metadata: grpc.Metadata,
|
|
@@ -350,6 +350,24 @@ Puppet.MessageImage = {
|
|
|
350
350
|
responseType: wechaty_puppet_message_pb.MessageImageResponse
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
+
Puppet.MessageVoice = {
|
|
354
|
+
methodName: "MessageVoice",
|
|
355
|
+
service: Puppet,
|
|
356
|
+
requestStream: false,
|
|
357
|
+
responseStream: false,
|
|
358
|
+
requestType: wechaty_puppet_message_pb.MessageVoiceRequest,
|
|
359
|
+
responseType: wechaty_puppet_message_pb.MessageVoiceResponse
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
Puppet.MessageVoiceText = {
|
|
363
|
+
methodName: "MessageVoiceText",
|
|
364
|
+
service: Puppet,
|
|
365
|
+
requestStream: false,
|
|
366
|
+
responseStream: false,
|
|
367
|
+
requestType: wechaty_puppet_message_pb.MessageVoiceTextRequest,
|
|
368
|
+
responseType: wechaty_puppet_message_pb.MessageVoiceTextResponse
|
|
369
|
+
};
|
|
370
|
+
|
|
353
371
|
Puppet.MessageSendFile = {
|
|
354
372
|
methodName: "MessageSendFile",
|
|
355
373
|
service: Puppet,
|
|
@@ -728,6 +746,15 @@ Puppet.RoomPayload = {
|
|
|
728
746
|
responseType: wechaty_puppet_room_pb.RoomPayloadResponse
|
|
729
747
|
};
|
|
730
748
|
|
|
749
|
+
Puppet.BatchRoomPayload = {
|
|
750
|
+
methodName: "BatchRoomPayload",
|
|
751
|
+
service: Puppet,
|
|
752
|
+
requestStream: false,
|
|
753
|
+
responseStream: false,
|
|
754
|
+
requestType: wechaty_puppet_room_pb.BatchRoomPayloadRequest,
|
|
755
|
+
responseType: wechaty_puppet_room_pb.BatchRoomPayloadResponse
|
|
756
|
+
};
|
|
757
|
+
|
|
731
758
|
Puppet.RoomList = {
|
|
732
759
|
methodName: "RoomList",
|
|
733
760
|
service: Puppet,
|
|
@@ -2336,6 +2363,68 @@ PuppetClient.prototype.messageImage = function messageImage(requestMessage, meta
|
|
|
2336
2363
|
};
|
|
2337
2364
|
};
|
|
2338
2365
|
|
|
2366
|
+
PuppetClient.prototype.messageVoice = function messageVoice(requestMessage, metadata, callback) {
|
|
2367
|
+
if (arguments.length === 2) {
|
|
2368
|
+
callback = arguments[1];
|
|
2369
|
+
}
|
|
2370
|
+
var client = grpc.unary(Puppet.MessageVoice, {
|
|
2371
|
+
request: requestMessage,
|
|
2372
|
+
host: this.serviceHost,
|
|
2373
|
+
metadata: metadata,
|
|
2374
|
+
transport: this.options.transport,
|
|
2375
|
+
debug: this.options.debug,
|
|
2376
|
+
onEnd: function (response) {
|
|
2377
|
+
if (callback) {
|
|
2378
|
+
if (response.status !== grpc.Code.OK) {
|
|
2379
|
+
var err = new Error(response.statusMessage);
|
|
2380
|
+
err.code = response.status;
|
|
2381
|
+
err.metadata = response.trailers;
|
|
2382
|
+
callback(err, null);
|
|
2383
|
+
} else {
|
|
2384
|
+
callback(null, response.message);
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
});
|
|
2389
|
+
return {
|
|
2390
|
+
cancel: function () {
|
|
2391
|
+
callback = null;
|
|
2392
|
+
client.close();
|
|
2393
|
+
}
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
|
|
2397
|
+
PuppetClient.prototype.messageVoiceText = function messageVoiceText(requestMessage, metadata, callback) {
|
|
2398
|
+
if (arguments.length === 2) {
|
|
2399
|
+
callback = arguments[1];
|
|
2400
|
+
}
|
|
2401
|
+
var client = grpc.unary(Puppet.MessageVoiceText, {
|
|
2402
|
+
request: requestMessage,
|
|
2403
|
+
host: this.serviceHost,
|
|
2404
|
+
metadata: metadata,
|
|
2405
|
+
transport: this.options.transport,
|
|
2406
|
+
debug: this.options.debug,
|
|
2407
|
+
onEnd: function (response) {
|
|
2408
|
+
if (callback) {
|
|
2409
|
+
if (response.status !== grpc.Code.OK) {
|
|
2410
|
+
var err = new Error(response.statusMessage);
|
|
2411
|
+
err.code = response.status;
|
|
2412
|
+
err.metadata = response.trailers;
|
|
2413
|
+
callback(err, null);
|
|
2414
|
+
} else {
|
|
2415
|
+
callback(null, response.message);
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
});
|
|
2420
|
+
return {
|
|
2421
|
+
cancel: function () {
|
|
2422
|
+
callback = null;
|
|
2423
|
+
client.close();
|
|
2424
|
+
}
|
|
2425
|
+
};
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2339
2428
|
PuppetClient.prototype.messageSendFile = function messageSendFile(requestMessage, metadata, callback) {
|
|
2340
2429
|
if (arguments.length === 2) {
|
|
2341
2430
|
callback = arguments[1];
|
|
@@ -3638,6 +3727,37 @@ PuppetClient.prototype.roomPayload = function roomPayload(requestMessage, metada
|
|
|
3638
3727
|
};
|
|
3639
3728
|
};
|
|
3640
3729
|
|
|
3730
|
+
PuppetClient.prototype.batchRoomPayload = function batchRoomPayload(requestMessage, metadata, callback) {
|
|
3731
|
+
if (arguments.length === 2) {
|
|
3732
|
+
callback = arguments[1];
|
|
3733
|
+
}
|
|
3734
|
+
var client = grpc.unary(Puppet.BatchRoomPayload, {
|
|
3735
|
+
request: requestMessage,
|
|
3736
|
+
host: this.serviceHost,
|
|
3737
|
+
metadata: metadata,
|
|
3738
|
+
transport: this.options.transport,
|
|
3739
|
+
debug: this.options.debug,
|
|
3740
|
+
onEnd: function (response) {
|
|
3741
|
+
if (callback) {
|
|
3742
|
+
if (response.status !== grpc.Code.OK) {
|
|
3743
|
+
var err = new Error(response.statusMessage);
|
|
3744
|
+
err.code = response.status;
|
|
3745
|
+
err.metadata = response.trailers;
|
|
3746
|
+
callback(err, null);
|
|
3747
|
+
} else {
|
|
3748
|
+
callback(null, response.message);
|
|
3749
|
+
}
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3752
|
+
});
|
|
3753
|
+
return {
|
|
3754
|
+
cancel: function () {
|
|
3755
|
+
callback = null;
|
|
3756
|
+
client.close();
|
|
3757
|
+
}
|
|
3758
|
+
};
|
|
3759
|
+
};
|
|
3760
|
+
|
|
3641
3761
|
PuppetClient.prototype.roomList = function roomList(requestMessage, metadata, callback) {
|
|
3642
3762
|
if (arguments.length === 2) {
|
|
3643
3763
|
callback = arguments[1];
|
|
@@ -112,6 +112,21 @@ message MessageFileResponse {
|
|
|
112
112
|
string file_box = 1;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
message MessageVoiceRequest {
|
|
116
|
+
string id = 1;
|
|
117
|
+
}
|
|
118
|
+
message MessageVoiceResponse {
|
|
119
|
+
string file_box = 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message MessageVoiceTextRequest {
|
|
123
|
+
string id = 1;
|
|
124
|
+
}
|
|
125
|
+
message MessageVoiceTextResponse {
|
|
126
|
+
string text = 1;
|
|
127
|
+
bool no_speech = 2;
|
|
128
|
+
}
|
|
129
|
+
|
|
115
130
|
message MessageMiniProgramRequest {
|
|
116
131
|
string id = 1;
|
|
117
132
|
}
|
|
@@ -171,3 +171,11 @@ message RoomDismissRequest {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
message RoomDismissResponse {}
|
|
174
|
+
|
|
175
|
+
message BatchRoomPayloadRequest {
|
|
176
|
+
repeated string ids = 1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message BatchRoomPayloadResponse {
|
|
180
|
+
repeated RoomPayloadResponse room_payloads = 1;
|
|
181
|
+
}
|
|
@@ -348,6 +348,12 @@ service Puppet {
|
|
|
348
348
|
rpc MessageImage (puppet.MessageImageRequest) returns (puppet.MessageImageResponse) {
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
+
rpc MessageVoice (puppet.MessageVoiceRequest) returns (puppet.MessageVoiceResponse) {
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
rpc MessageVoiceText (puppet.MessageVoiceTextRequest) returns (puppet.MessageVoiceTextResponse) {
|
|
355
|
+
}
|
|
356
|
+
|
|
351
357
|
rpc MessageSendFile (puppet.MessageSendFileRequest) returns (puppet.MessageSendFileResponse) {
|
|
352
358
|
}
|
|
353
359
|
|
|
@@ -598,6 +604,13 @@ service Puppet {
|
|
|
598
604
|
};
|
|
599
605
|
}
|
|
600
606
|
|
|
607
|
+
rpc BatchRoomPayload (puppet.BatchRoomPayloadRequest) returns (puppet.BatchRoomPayloadResponse) {
|
|
608
|
+
option (google.api.http) = {
|
|
609
|
+
post: "/rooms/batch-payload"
|
|
610
|
+
body: "*"
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
|
|
601
614
|
rpc RoomList (puppet.RoomListRequest) returns (puppet.RoomListResponse) {
|
|
602
615
|
option (google.api.http) = {
|
|
603
616
|
get: "/rooms"
|
|
@@ -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.105",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puppet-server-impl.d.ts","sourceRoot":"","sources":["../../../tests/puppet-server-impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACP,MAAM,eAAe,CAAA;AAEtB,aAAK,aAAa,GAAG,MAAM,CAAC,aAAa,CAAA;AAEzC;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"puppet-server-impl.d.ts","sourceRoot":"","sources":["../../../tests/puppet-server-impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACP,MAAM,eAAe,CAAA;AAEtB,aAAK,aAAa,GAAG,MAAM,CAAC,aAAa,CAAA;AAEzC;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAqyB9B,CAAA"}
|
|
@@ -214,6 +214,16 @@ exports.puppetServerImpl = {
|
|
|
214
214
|
void callback;
|
|
215
215
|
throw new Error('not implemented.');
|
|
216
216
|
},
|
|
217
|
+
messageVoice: (call, callback) => {
|
|
218
|
+
void call;
|
|
219
|
+
void callback;
|
|
220
|
+
throw new Error('not implemented.');
|
|
221
|
+
},
|
|
222
|
+
messageVoiceText: (call, callback) => {
|
|
223
|
+
void call;
|
|
224
|
+
void callback;
|
|
225
|
+
throw new Error('not implemented.');
|
|
226
|
+
},
|
|
217
227
|
messageLocation: (call, callback) => {
|
|
218
228
|
void call;
|
|
219
229
|
void callback;
|
|
@@ -424,6 +434,11 @@ exports.puppetServerImpl = {
|
|
|
424
434
|
void callback;
|
|
425
435
|
throw new Error('not implemented.');
|
|
426
436
|
},
|
|
437
|
+
batchRoomPayload: (call, callback) => {
|
|
438
|
+
void call;
|
|
439
|
+
void callback;
|
|
440
|
+
throw new Error('not implemented.');
|
|
441
|
+
},
|
|
427
442
|
roomQRCode: (call, callback) => {
|
|
428
443
|
void call;
|
|
429
444
|
void callback;
|