@juzi/wechaty-grpc 1.0.42 → 1.0.44
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/commonjs/generated/puppet.cjs +0 -2
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -2
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +105 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +794 -21
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +69 -142
- package/dist/cjs/out/wechaty/puppet.swagger.json +106 -194
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -50
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -102
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -34
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -147
- package/dist/cjs/proto/wechaty/puppet/message.proto +25 -0
- package/dist/cjs/proto/wechaty/puppet.proto +13 -9
- package/dist/cjs/src/package-json.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +3 -2
- package/dist/cjs/src/package-json.js.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +10 -13
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +0 -2
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -2
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +105 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +794 -21
- package/dist/esm/out/wechaty/puppet.openapi.yaml +69 -142
- package/dist/esm/out/wechaty/puppet.swagger.json +106 -194
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -50
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -102
- package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet_pb.js +0 -2
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -34
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -147
- package/dist/esm/proto/wechaty/puppet/message.proto +25 -0
- package/dist/esm/proto/wechaty/puppet.proto +13 -9
- package/dist/esm/src/package-json.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +3 -2
- package/dist/esm/src/package-json.js.map +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +10 -13
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/message_pb.d.ts +105 -0
- package/out/wechaty/puppet/message_pb.js +794 -21
- package/out/wechaty/puppet.openapi.yaml +69 -142
- package/out/wechaty/puppet.swagger.json +106 -194
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -50
- package/out/wechaty/puppet_grpc_pb.js +66 -102
- package/out/wechaty/puppet_pb.d.ts +0 -1
- package/out/wechaty/puppet_pb.js +0 -2
- package/out/wechaty/puppet_pb_service.d.ts +38 -34
- package/out/wechaty/puppet_pb_service.js +80 -147
- package/package.json +3 -2
- package/src/package-json.ts +3 -2
- package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +0 -3
- package/dist/cjs/proto/wechaty/deprecated/file-box.proto +0 -61
- package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/dist/esm/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +0 -3
- package/dist/esm/proto/wechaty/deprecated/file-box.proto +0 -61
- package/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/out/wechaty/deprecated/file-box_pb_service.js +0 -3
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
8
|
import * as wechaty_puppet_pb from "../wechaty/puppet_pb";
|
|
9
9
|
import * as protoc_gen_openapiv2_options_annotations_pb from "../protoc-gen-openapiv2/options/annotations_pb";
|
|
10
|
-
import * as wechaty_deprecated_file_box_pb from "../wechaty/deprecated/file-box_pb";
|
|
11
10
|
import * as wechaty_puppet_base_pb from "../wechaty/puppet/base_pb";
|
|
12
11
|
import * as wechaty_puppet_contact_pb from "../wechaty/puppet/contact_pb";
|
|
13
12
|
import * as wechaty_puppet_download_upload_pb from "../wechaty/puppet/download-upload_pb";
|
|
@@ -24,9 +23,6 @@ import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
|
24
23
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
25
24
|
|
|
26
25
|
interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
27
|
-
messageFileStream: IPuppetService_IMessageFileStream;
|
|
28
|
-
messageImageStream: IPuppetService_IMessageImageStream;
|
|
29
|
-
messageSendFileStream: IPuppetService_IMessageSendFileStream;
|
|
30
26
|
start: IPuppetService_IStart;
|
|
31
27
|
stop: IPuppetService_IStop;
|
|
32
28
|
logout: IPuppetService_ILogout;
|
|
@@ -72,6 +68,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
72
68
|
messageSendLocation: IPuppetService_IMessageSendLocation;
|
|
73
69
|
messageSendChannel: IPuppetService_IMessageSendChannel;
|
|
74
70
|
messagePreview: IPuppetService_IMessagePreview;
|
|
71
|
+
getMessageBroadcastTarget: IPuppetService_IGetMessageBroadcastTarget;
|
|
72
|
+
createMessageBroadcast: IPuppetService_ICreateMessageBroadcast;
|
|
75
73
|
roomPayload: IPuppetService_IRoomPayload;
|
|
76
74
|
roomList: IPuppetService_IRoomList;
|
|
77
75
|
roomAdd: IPuppetService_IRoomAdd;
|
|
@@ -111,33 +109,6 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
111
109
|
upload: IPuppetService_IUpload;
|
|
112
110
|
}
|
|
113
111
|
|
|
114
|
-
interface IPuppetService_IMessageFileStream extends grpc.MethodDefinition<wechaty_deprecated_file_box_pb.MessageFileStreamRequest, wechaty_deprecated_file_box_pb.MessageFileStreamResponse> {
|
|
115
|
-
path: "/wechaty.Puppet/MessageFileStream";
|
|
116
|
-
requestStream: false;
|
|
117
|
-
responseStream: true;
|
|
118
|
-
requestSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageFileStreamRequest>;
|
|
119
|
-
requestDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageFileStreamRequest>;
|
|
120
|
-
responseSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
121
|
-
responseDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
122
|
-
}
|
|
123
|
-
interface IPuppetService_IMessageImageStream extends grpc.MethodDefinition<wechaty_deprecated_file_box_pb.MessageImageStreamRequest, wechaty_deprecated_file_box_pb.MessageImageStreamResponse> {
|
|
124
|
-
path: "/wechaty.Puppet/MessageImageStream";
|
|
125
|
-
requestStream: false;
|
|
126
|
-
responseStream: true;
|
|
127
|
-
requestSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageImageStreamRequest>;
|
|
128
|
-
requestDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageImageStreamRequest>;
|
|
129
|
-
responseSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
130
|
-
responseDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
131
|
-
}
|
|
132
|
-
interface IPuppetService_IMessageSendFileStream extends grpc.MethodDefinition<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest, wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse> {
|
|
133
|
-
path: "/wechaty.Puppet/MessageSendFileStream";
|
|
134
|
-
requestStream: true;
|
|
135
|
-
responseStream: false;
|
|
136
|
-
requestSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
137
|
-
requestDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
138
|
-
responseSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse>;
|
|
139
|
-
responseDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse>;
|
|
140
|
-
}
|
|
141
112
|
interface IPuppetService_IStart extends grpc.MethodDefinition<wechaty_puppet_base_pb.StartRequest, wechaty_puppet_base_pb.StartResponse> {
|
|
142
113
|
path: "/wechaty.Puppet/Start";
|
|
143
114
|
requestStream: false;
|
|
@@ -543,6 +514,24 @@ interface IPuppetService_IMessagePreview extends grpc.MethodDefinition<wechaty_p
|
|
|
543
514
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessagePreviewResponse>;
|
|
544
515
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessagePreviewResponse>;
|
|
545
516
|
}
|
|
517
|
+
interface IPuppetService_IGetMessageBroadcastTarget extends grpc.MethodDefinition<wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse> {
|
|
518
|
+
path: "/wechaty.Puppet/GetMessageBroadcastTarget";
|
|
519
|
+
requestStream: false;
|
|
520
|
+
responseStream: false;
|
|
521
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest>;
|
|
522
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest>;
|
|
523
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse>;
|
|
524
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse>;
|
|
525
|
+
}
|
|
526
|
+
interface IPuppetService_ICreateMessageBroadcast extends grpc.MethodDefinition<wechaty_puppet_message_pb.CreateMessageBroadcastRequest, wechaty_puppet_message_pb.CreateMessageBroadcastResponse> {
|
|
527
|
+
path: "/wechaty.Puppet/CreateMessageBroadcast";
|
|
528
|
+
requestStream: false;
|
|
529
|
+
responseStream: false;
|
|
530
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.CreateMessageBroadcastRequest>;
|
|
531
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.CreateMessageBroadcastRequest>;
|
|
532
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.CreateMessageBroadcastResponse>;
|
|
533
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.CreateMessageBroadcastResponse>;
|
|
534
|
+
}
|
|
546
535
|
interface IPuppetService_IRoomPayload extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse> {
|
|
547
536
|
path: "/wechaty.Puppet/RoomPayload";
|
|
548
537
|
requestStream: false;
|
|
@@ -880,9 +869,6 @@ interface IPuppetService_IUpload extends grpc.MethodDefinition<wechaty_puppet_do
|
|
|
880
869
|
export const PuppetService: IPuppetService;
|
|
881
870
|
|
|
882
871
|
export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
883
|
-
messageFileStream: grpc.handleServerStreamingCall<wechaty_deprecated_file_box_pb.MessageFileStreamRequest, wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
884
|
-
messageImageStream: grpc.handleServerStreamingCall<wechaty_deprecated_file_box_pb.MessageImageStreamRequest, wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
885
|
-
messageSendFileStream: grpc.handleClientStreamingCall<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest, wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse>;
|
|
886
872
|
start: grpc.handleUnaryCall<wechaty_puppet_base_pb.StartRequest, wechaty_puppet_base_pb.StartResponse>;
|
|
887
873
|
stop: grpc.handleUnaryCall<wechaty_puppet_base_pb.StopRequest, wechaty_puppet_base_pb.StopResponse>;
|
|
888
874
|
logout: grpc.handleUnaryCall<wechaty_puppet_base_pb.LogoutRequest, wechaty_puppet_base_pb.LogoutResponse>;
|
|
@@ -928,6 +914,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
928
914
|
messageSendLocation: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendLocationRequest, wechaty_puppet_message_pb.MessageSendLocationResponse>;
|
|
929
915
|
messageSendChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendChannelRequest, wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
930
916
|
messagePreview: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessagePreviewRequest, wechaty_puppet_message_pb.MessagePreviewResponse>;
|
|
917
|
+
getMessageBroadcastTarget: grpc.handleUnaryCall<wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse>;
|
|
918
|
+
createMessageBroadcast: grpc.handleUnaryCall<wechaty_puppet_message_pb.CreateMessageBroadcastRequest, wechaty_puppet_message_pb.CreateMessageBroadcastResponse>;
|
|
931
919
|
roomPayload: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse>;
|
|
932
920
|
roomList: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomListRequest, wechaty_puppet_room_pb.RoomListResponse>;
|
|
933
921
|
roomAdd: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAddRequest, wechaty_puppet_room_pb.RoomAddResponse>;
|
|
@@ -968,14 +956,6 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
968
956
|
}
|
|
969
957
|
|
|
970
958
|
export interface IPuppetClient {
|
|
971
|
-
messageFileStream(request: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
972
|
-
messageFileStream(request: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
973
|
-
messageImageStream(request: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
974
|
-
messageImageStream(request: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
975
|
-
messageSendFileStream(callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
976
|
-
messageSendFileStream(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
977
|
-
messageSendFileStream(options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
978
|
-
messageSendFileStream(metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
979
959
|
start(request: wechaty_puppet_base_pb.StartRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
980
960
|
start(request: wechaty_puppet_base_pb.StartRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
981
961
|
start(request: wechaty_puppet_base_pb.StartRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1110,6 +1090,12 @@ export interface IPuppetClient {
|
|
|
1110
1090
|
messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1111
1091
|
messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1112
1092
|
messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1093
|
+
getMessageBroadcastTarget(request: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse) => void): grpc.ClientUnaryCall;
|
|
1094
|
+
getMessageBroadcastTarget(request: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse) => void): grpc.ClientUnaryCall;
|
|
1095
|
+
getMessageBroadcastTarget(request: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse) => void): grpc.ClientUnaryCall;
|
|
1096
|
+
createMessageBroadcast(request: wechaty_puppet_message_pb.CreateMessageBroadcastRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.CreateMessageBroadcastResponse) => void): grpc.ClientUnaryCall;
|
|
1097
|
+
createMessageBroadcast(request: wechaty_puppet_message_pb.CreateMessageBroadcastRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.CreateMessageBroadcastResponse) => void): grpc.ClientUnaryCall;
|
|
1098
|
+
createMessageBroadcast(request: wechaty_puppet_message_pb.CreateMessageBroadcastRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.CreateMessageBroadcastResponse) => void): grpc.ClientUnaryCall;
|
|
1113
1099
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1114
1100
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1115
1101
|
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;
|
|
@@ -1225,14 +1211,6 @@ export interface IPuppetClient {
|
|
|
1225
1211
|
|
|
1226
1212
|
export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
1227
1213
|
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
1228
|
-
public messageFileStream(request: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
1229
|
-
public messageFileStream(request: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
1230
|
-
public messageImageStream(request: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
1231
|
-
public messageImageStream(request: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
1232
|
-
public messageSendFileStream(callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
1233
|
-
public messageSendFileStream(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
1234
|
-
public messageSendFileStream(options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
1235
|
-
public messageSendFileStream(metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
1236
1214
|
public start(request: wechaty_puppet_base_pb.StartRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
1237
1215
|
public start(request: wechaty_puppet_base_pb.StartRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
1238
1216
|
public start(request: wechaty_puppet_base_pb.StartRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1367,6 +1345,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1367
1345
|
public messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1368
1346
|
public messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1369
1347
|
public messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1348
|
+
public getMessageBroadcastTarget(request: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse) => void): grpc.ClientUnaryCall;
|
|
1349
|
+
public getMessageBroadcastTarget(request: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse) => void): grpc.ClientUnaryCall;
|
|
1350
|
+
public getMessageBroadcastTarget(request: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse) => void): grpc.ClientUnaryCall;
|
|
1351
|
+
public createMessageBroadcast(request: wechaty_puppet_message_pb.CreateMessageBroadcastRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.CreateMessageBroadcastResponse) => void): grpc.ClientUnaryCall;
|
|
1352
|
+
public createMessageBroadcast(request: wechaty_puppet_message_pb.CreateMessageBroadcastRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.CreateMessageBroadcastResponse) => void): grpc.ClientUnaryCall;
|
|
1353
|
+
public createMessageBroadcast(request: wechaty_puppet_message_pb.CreateMessageBroadcastRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.CreateMessageBroadcastResponse) => void): grpc.ClientUnaryCall;
|
|
1370
1354
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1371
1355
|
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;
|
|
1372
1356
|
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;
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
var grpc = require('@grpc/grpc-js');
|
|
17
17
|
var google_api_annotations_pb = require('../google/api/annotations_pb.js');
|
|
18
18
|
var protoc$gen$openapiv2_options_annotations_pb = require('../protoc-gen-openapiv2/options/annotations_pb.js');
|
|
19
|
-
var wechaty_deprecated_file$box_pb = require('../wechaty/deprecated/file-box_pb.js');
|
|
20
19
|
var wechaty_puppet_base_pb = require('../wechaty/puppet/base_pb.js');
|
|
21
20
|
var wechaty_puppet_contact_pb = require('../wechaty/puppet/contact_pb.js');
|
|
22
21
|
var wechaty_puppet_download$upload_pb = require('../wechaty/puppet/download-upload_pb.js');
|
|
@@ -318,6 +317,28 @@ function deserialize_wechaty_puppet_ConversationReadResponse(buffer_arg) {
|
|
|
318
317
|
return wechaty_puppet_conversation_pb.ConversationReadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
319
318
|
}
|
|
320
319
|
|
|
320
|
+
function serialize_wechaty_puppet_CreateMessageBroadcastRequest(arg) {
|
|
321
|
+
if (!(arg instanceof wechaty_puppet_message_pb.CreateMessageBroadcastRequest)) {
|
|
322
|
+
throw new Error('Expected argument of type wechaty.puppet.CreateMessageBroadcastRequest');
|
|
323
|
+
}
|
|
324
|
+
return Buffer.from(arg.serializeBinary());
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
function deserialize_wechaty_puppet_CreateMessageBroadcastRequest(buffer_arg) {
|
|
328
|
+
return wechaty_puppet_message_pb.CreateMessageBroadcastRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
function serialize_wechaty_puppet_CreateMessageBroadcastResponse(arg) {
|
|
332
|
+
if (!(arg instanceof wechaty_puppet_message_pb.CreateMessageBroadcastResponse)) {
|
|
333
|
+
throw new Error('Expected argument of type wechaty.puppet.CreateMessageBroadcastResponse');
|
|
334
|
+
}
|
|
335
|
+
return Buffer.from(arg.serializeBinary());
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
function deserialize_wechaty_puppet_CreateMessageBroadcastResponse(buffer_arg) {
|
|
339
|
+
return wechaty_puppet_message_pb.CreateMessageBroadcastResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
340
|
+
}
|
|
341
|
+
|
|
321
342
|
function serialize_wechaty_puppet_CurrentUserRequest(arg) {
|
|
322
343
|
if (!(arg instanceof wechaty_puppet_base_pb.CurrentUserRequest)) {
|
|
323
344
|
throw new Error('Expected argument of type wechaty.puppet.CurrentUserRequest');
|
|
@@ -538,6 +559,28 @@ function deserialize_wechaty_puppet_FriendshipSearchPhoneResponse(buffer_arg) {
|
|
|
538
559
|
return wechaty_puppet_friendship_pb.FriendshipSearchPhoneResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
539
560
|
}
|
|
540
561
|
|
|
562
|
+
function serialize_wechaty_puppet_GetMessageBroadcastTargetRequest(arg) {
|
|
563
|
+
if (!(arg instanceof wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest)) {
|
|
564
|
+
throw new Error('Expected argument of type wechaty.puppet.GetMessageBroadcastTargetRequest');
|
|
565
|
+
}
|
|
566
|
+
return Buffer.from(arg.serializeBinary());
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
function deserialize_wechaty_puppet_GetMessageBroadcastTargetRequest(buffer_arg) {
|
|
570
|
+
return wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
function serialize_wechaty_puppet_GetMessageBroadcastTargetResponse(arg) {
|
|
574
|
+
if (!(arg instanceof wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse)) {
|
|
575
|
+
throw new Error('Expected argument of type wechaty.puppet.GetMessageBroadcastTargetResponse');
|
|
576
|
+
}
|
|
577
|
+
return Buffer.from(arg.serializeBinary());
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
function deserialize_wechaty_puppet_GetMessageBroadcastTargetResponse(buffer_arg) {
|
|
581
|
+
return wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
582
|
+
}
|
|
583
|
+
|
|
541
584
|
function serialize_wechaty_puppet_LogoutRequest(arg) {
|
|
542
585
|
if (!(arg instanceof wechaty_puppet_base_pb.LogoutRequest)) {
|
|
543
586
|
throw new Error('Expected argument of type wechaty.puppet.LogoutRequest');
|
|
@@ -626,28 +669,6 @@ function deserialize_wechaty_puppet_MessageFileResponse(buffer_arg) {
|
|
|
626
669
|
return wechaty_puppet_message_pb.MessageFileResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
627
670
|
}
|
|
628
671
|
|
|
629
|
-
function serialize_wechaty_puppet_MessageFileStreamRequest(arg) {
|
|
630
|
-
if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageFileStreamRequest)) {
|
|
631
|
-
throw new Error('Expected argument of type wechaty.puppet.MessageFileStreamRequest');
|
|
632
|
-
}
|
|
633
|
-
return Buffer.from(arg.serializeBinary());
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
function deserialize_wechaty_puppet_MessageFileStreamRequest(buffer_arg) {
|
|
637
|
-
return wechaty_deprecated_file$box_pb.MessageFileStreamRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
function serialize_wechaty_puppet_MessageFileStreamResponse(arg) {
|
|
641
|
-
if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageFileStreamResponse)) {
|
|
642
|
-
throw new Error('Expected argument of type wechaty.puppet.MessageFileStreamResponse');
|
|
643
|
-
}
|
|
644
|
-
return Buffer.from(arg.serializeBinary());
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
function deserialize_wechaty_puppet_MessageFileStreamResponse(buffer_arg) {
|
|
648
|
-
return wechaty_deprecated_file$box_pb.MessageFileStreamResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
649
|
-
}
|
|
650
|
-
|
|
651
672
|
function serialize_wechaty_puppet_MessageForwardRequest(arg) {
|
|
652
673
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageForwardRequest)) {
|
|
653
674
|
throw new Error('Expected argument of type wechaty.puppet.MessageForwardRequest');
|
|
@@ -692,28 +713,6 @@ function deserialize_wechaty_puppet_MessageImageResponse(buffer_arg) {
|
|
|
692
713
|
return wechaty_puppet_message_pb.MessageImageResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
693
714
|
}
|
|
694
715
|
|
|
695
|
-
function serialize_wechaty_puppet_MessageImageStreamRequest(arg) {
|
|
696
|
-
if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageImageStreamRequest)) {
|
|
697
|
-
throw new Error('Expected argument of type wechaty.puppet.MessageImageStreamRequest');
|
|
698
|
-
}
|
|
699
|
-
return Buffer.from(arg.serializeBinary());
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
function deserialize_wechaty_puppet_MessageImageStreamRequest(buffer_arg) {
|
|
703
|
-
return wechaty_deprecated_file$box_pb.MessageImageStreamRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
function serialize_wechaty_puppet_MessageImageStreamResponse(arg) {
|
|
707
|
-
if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageImageStreamResponse)) {
|
|
708
|
-
throw new Error('Expected argument of type wechaty.puppet.MessageImageStreamResponse');
|
|
709
|
-
}
|
|
710
|
-
return Buffer.from(arg.serializeBinary());
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
function deserialize_wechaty_puppet_MessageImageStreamResponse(buffer_arg) {
|
|
714
|
-
return wechaty_deprecated_file$box_pb.MessageImageStreamResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
715
|
-
}
|
|
716
|
-
|
|
717
716
|
function serialize_wechaty_puppet_MessageLocationRequest(arg) {
|
|
718
717
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageLocationRequest)) {
|
|
719
718
|
throw new Error('Expected argument of type wechaty.puppet.MessageLocationRequest');
|
|
@@ -890,28 +889,6 @@ function deserialize_wechaty_puppet_MessageSendFileResponse(buffer_arg) {
|
|
|
890
889
|
return wechaty_puppet_message_pb.MessageSendFileResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
891
890
|
}
|
|
892
891
|
|
|
893
|
-
function serialize_wechaty_puppet_MessageSendFileStreamRequest(arg) {
|
|
894
|
-
if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageSendFileStreamRequest)) {
|
|
895
|
-
throw new Error('Expected argument of type wechaty.puppet.MessageSendFileStreamRequest');
|
|
896
|
-
}
|
|
897
|
-
return Buffer.from(arg.serializeBinary());
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
function deserialize_wechaty_puppet_MessageSendFileStreamRequest(buffer_arg) {
|
|
901
|
-
return wechaty_deprecated_file$box_pb.MessageSendFileStreamRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
function serialize_wechaty_puppet_MessageSendFileStreamResponse(arg) {
|
|
905
|
-
if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageSendFileStreamResponse)) {
|
|
906
|
-
throw new Error('Expected argument of type wechaty.puppet.MessageSendFileStreamResponse');
|
|
907
|
-
}
|
|
908
|
-
return Buffer.from(arg.serializeBinary());
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
function deserialize_wechaty_puppet_MessageSendFileStreamResponse(buffer_arg) {
|
|
912
|
-
return wechaty_deprecated_file$box_pb.MessageSendFileStreamResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
913
|
-
}
|
|
914
|
-
|
|
915
892
|
function serialize_wechaty_puppet_MessageSendLocationRequest(arg) {
|
|
916
893
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageSendLocationRequest)) {
|
|
917
894
|
throw new Error('Expected argument of type wechaty.puppet.MessageSendLocationRequest');
|
|
@@ -1883,41 +1860,6 @@ function deserialize_wechaty_puppet_VersionResponse(buffer_arg) {
|
|
|
1883
1860
|
|
|
1884
1861
|
var PuppetService = exports.PuppetService = {
|
|
1885
1862
|
// *
|
|
1886
|
-
// Deprecated: will be removed after Dec 31, 2022
|
|
1887
|
-
messageFileStream: {
|
|
1888
|
-
path: '/wechaty.Puppet/MessageFileStream',
|
|
1889
|
-
requestStream: false,
|
|
1890
|
-
responseStream: true,
|
|
1891
|
-
requestType: wechaty_deprecated_file$box_pb.MessageFileStreamRequest,
|
|
1892
|
-
responseType: wechaty_deprecated_file$box_pb.MessageFileStreamResponse,
|
|
1893
|
-
requestSerialize: serialize_wechaty_puppet_MessageFileStreamRequest,
|
|
1894
|
-
requestDeserialize: deserialize_wechaty_puppet_MessageFileStreamRequest,
|
|
1895
|
-
responseSerialize: serialize_wechaty_puppet_MessageFileStreamResponse,
|
|
1896
|
-
responseDeserialize: deserialize_wechaty_puppet_MessageFileStreamResponse,
|
|
1897
|
-
},
|
|
1898
|
-
messageImageStream: {
|
|
1899
|
-
path: '/wechaty.Puppet/MessageImageStream',
|
|
1900
|
-
requestStream: false,
|
|
1901
|
-
responseStream: true,
|
|
1902
|
-
requestType: wechaty_deprecated_file$box_pb.MessageImageStreamRequest,
|
|
1903
|
-
responseType: wechaty_deprecated_file$box_pb.MessageImageStreamResponse,
|
|
1904
|
-
requestSerialize: serialize_wechaty_puppet_MessageImageStreamRequest,
|
|
1905
|
-
requestDeserialize: deserialize_wechaty_puppet_MessageImageStreamRequest,
|
|
1906
|
-
responseSerialize: serialize_wechaty_puppet_MessageImageStreamResponse,
|
|
1907
|
-
responseDeserialize: deserialize_wechaty_puppet_MessageImageStreamResponse,
|
|
1908
|
-
},
|
|
1909
|
-
messageSendFileStream: {
|
|
1910
|
-
path: '/wechaty.Puppet/MessageSendFileStream',
|
|
1911
|
-
requestStream: true,
|
|
1912
|
-
responseStream: false,
|
|
1913
|
-
requestType: wechaty_deprecated_file$box_pb.MessageSendFileStreamRequest,
|
|
1914
|
-
responseType: wechaty_deprecated_file$box_pb.MessageSendFileStreamResponse,
|
|
1915
|
-
requestSerialize: serialize_wechaty_puppet_MessageSendFileStreamRequest,
|
|
1916
|
-
requestDeserialize: deserialize_wechaty_puppet_MessageSendFileStreamRequest,
|
|
1917
|
-
responseSerialize: serialize_wechaty_puppet_MessageSendFileStreamResponse,
|
|
1918
|
-
responseDeserialize: deserialize_wechaty_puppet_MessageSendFileStreamResponse,
|
|
1919
|
-
},
|
|
1920
|
-
// *
|
|
1921
1863
|
//
|
|
1922
1864
|
// Base
|
|
1923
1865
|
//
|
|
@@ -2446,6 +2388,28 @@ messageFile: {
|
|
|
2446
2388
|
responseSerialize: serialize_wechaty_puppet_MessagePreviewResponse,
|
|
2447
2389
|
responseDeserialize: deserialize_wechaty_puppet_MessagePreviewResponse,
|
|
2448
2390
|
},
|
|
2391
|
+
getMessageBroadcastTarget: {
|
|
2392
|
+
path: '/wechaty.Puppet/GetMessageBroadcastTarget',
|
|
2393
|
+
requestStream: false,
|
|
2394
|
+
responseStream: false,
|
|
2395
|
+
requestType: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest,
|
|
2396
|
+
responseType: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse,
|
|
2397
|
+
requestSerialize: serialize_wechaty_puppet_GetMessageBroadcastTargetRequest,
|
|
2398
|
+
requestDeserialize: deserialize_wechaty_puppet_GetMessageBroadcastTargetRequest,
|
|
2399
|
+
responseSerialize: serialize_wechaty_puppet_GetMessageBroadcastTargetResponse,
|
|
2400
|
+
responseDeserialize: deserialize_wechaty_puppet_GetMessageBroadcastTargetResponse,
|
|
2401
|
+
},
|
|
2402
|
+
createMessageBroadcast: {
|
|
2403
|
+
path: '/wechaty.Puppet/CreateMessageBroadcast',
|
|
2404
|
+
requestStream: false,
|
|
2405
|
+
responseStream: false,
|
|
2406
|
+
requestType: wechaty_puppet_message_pb.CreateMessageBroadcastRequest,
|
|
2407
|
+
responseType: wechaty_puppet_message_pb.CreateMessageBroadcastResponse,
|
|
2408
|
+
requestSerialize: serialize_wechaty_puppet_CreateMessageBroadcastRequest,
|
|
2409
|
+
requestDeserialize: deserialize_wechaty_puppet_CreateMessageBroadcastRequest,
|
|
2410
|
+
responseSerialize: serialize_wechaty_puppet_CreateMessageBroadcastResponse,
|
|
2411
|
+
responseDeserialize: deserialize_wechaty_puppet_CreateMessageBroadcastResponse,
|
|
2412
|
+
},
|
|
2449
2413
|
// *
|
|
2450
2414
|
//
|
|
2451
2415
|
// Room
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_api_annotations_pb from "../google/api/annotations_pb";
|
|
6
6
|
import * as protoc_gen_openapiv2_options_annotations_pb from "../protoc-gen-openapiv2/options/annotations_pb";
|
|
7
|
-
import * as wechaty_deprecated_file_box_pb from "../wechaty/deprecated/file-box_pb";
|
|
8
7
|
import * as wechaty_puppet_base_pb from "../wechaty/puppet/base_pb";
|
|
9
8
|
import * as wechaty_puppet_contact_pb from "../wechaty/puppet/contact_pb";
|
|
10
9
|
import * as wechaty_puppet_download_upload_pb from "../wechaty/puppet/download-upload_pb";
|
|
@@ -19,8 +19,6 @@ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
|
|
|
19
19
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
20
20
|
var protoc$gen$openapiv2_options_annotations_pb = require('../protoc-gen-openapiv2/options/annotations_pb.js');
|
|
21
21
|
goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
|
|
22
|
-
var wechaty_deprecated_file$box_pb = require('../wechaty/deprecated/file-box_pb.js');
|
|
23
|
-
goog.object.extend(proto, wechaty_deprecated_file$box_pb);
|
|
24
22
|
var wechaty_puppet_base_pb = require('../wechaty/puppet/base_pb.js');
|
|
25
23
|
goog.object.extend(proto, wechaty_puppet_base_pb);
|
|
26
24
|
var wechaty_puppet_contact_pb = require('../wechaty/puppet/contact_pb.js');
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// file: wechaty/puppet.proto
|
|
3
3
|
|
|
4
4
|
import * as wechaty_puppet_pb from "../wechaty/puppet_pb";
|
|
5
|
-
import * as wechaty_deprecated_file_box_pb from "../wechaty/deprecated/file-box_pb";
|
|
6
5
|
import * as wechaty_puppet_base_pb from "../wechaty/puppet/base_pb";
|
|
7
6
|
import * as wechaty_puppet_contact_pb from "../wechaty/puppet/contact_pb";
|
|
8
7
|
import * as wechaty_puppet_download_upload_pb from "../wechaty/puppet/download-upload_pb";
|
|
@@ -18,33 +17,6 @@ import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
|
18
17
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
19
18
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
20
19
|
|
|
21
|
-
type PuppetMessageFileStream = {
|
|
22
|
-
readonly methodName: string;
|
|
23
|
-
readonly service: typeof Puppet;
|
|
24
|
-
readonly requestStream: false;
|
|
25
|
-
readonly responseStream: true;
|
|
26
|
-
readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageFileStreamRequest;
|
|
27
|
-
readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageFileStreamResponse;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
type PuppetMessageImageStream = {
|
|
31
|
-
readonly methodName: string;
|
|
32
|
-
readonly service: typeof Puppet;
|
|
33
|
-
readonly requestStream: false;
|
|
34
|
-
readonly responseStream: true;
|
|
35
|
-
readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageImageStreamRequest;
|
|
36
|
-
readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageImageStreamResponse;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type PuppetMessageSendFileStream = {
|
|
40
|
-
readonly methodName: string;
|
|
41
|
-
readonly service: typeof Puppet;
|
|
42
|
-
readonly requestStream: true;
|
|
43
|
-
readonly responseStream: false;
|
|
44
|
-
readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest;
|
|
45
|
-
readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
20
|
type PuppetStart = {
|
|
49
21
|
readonly methodName: string;
|
|
50
22
|
readonly service: typeof Puppet;
|
|
@@ -450,6 +422,24 @@ type PuppetMessagePreview = {
|
|
|
450
422
|
readonly responseType: typeof wechaty_puppet_message_pb.MessagePreviewResponse;
|
|
451
423
|
};
|
|
452
424
|
|
|
425
|
+
type PuppetGetMessageBroadcastTarget = {
|
|
426
|
+
readonly methodName: string;
|
|
427
|
+
readonly service: typeof Puppet;
|
|
428
|
+
readonly requestStream: false;
|
|
429
|
+
readonly responseStream: false;
|
|
430
|
+
readonly requestType: typeof wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest;
|
|
431
|
+
readonly responseType: typeof wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
type PuppetCreateMessageBroadcast = {
|
|
435
|
+
readonly methodName: string;
|
|
436
|
+
readonly service: typeof Puppet;
|
|
437
|
+
readonly requestStream: false;
|
|
438
|
+
readonly responseStream: false;
|
|
439
|
+
readonly requestType: typeof wechaty_puppet_message_pb.CreateMessageBroadcastRequest;
|
|
440
|
+
readonly responseType: typeof wechaty_puppet_message_pb.CreateMessageBroadcastResponse;
|
|
441
|
+
};
|
|
442
|
+
|
|
453
443
|
type PuppetRoomPayload = {
|
|
454
444
|
readonly methodName: string;
|
|
455
445
|
readonly service: typeof Puppet;
|
|
@@ -785,9 +775,6 @@ type PuppetUpload = {
|
|
|
785
775
|
|
|
786
776
|
export class Puppet {
|
|
787
777
|
static readonly serviceName: string;
|
|
788
|
-
static readonly MessageFileStream: PuppetMessageFileStream;
|
|
789
|
-
static readonly MessageImageStream: PuppetMessageImageStream;
|
|
790
|
-
static readonly MessageSendFileStream: PuppetMessageSendFileStream;
|
|
791
778
|
static readonly Start: PuppetStart;
|
|
792
779
|
static readonly Stop: PuppetStop;
|
|
793
780
|
static readonly Logout: PuppetLogout;
|
|
@@ -833,6 +820,8 @@ export class Puppet {
|
|
|
833
820
|
static readonly MessageSendLocation: PuppetMessageSendLocation;
|
|
834
821
|
static readonly MessageSendChannel: PuppetMessageSendChannel;
|
|
835
822
|
static readonly MessagePreview: PuppetMessagePreview;
|
|
823
|
+
static readonly GetMessageBroadcastTarget: PuppetGetMessageBroadcastTarget;
|
|
824
|
+
static readonly CreateMessageBroadcast: PuppetCreateMessageBroadcast;
|
|
836
825
|
static readonly RoomPayload: PuppetRoomPayload;
|
|
837
826
|
static readonly RoomList: PuppetRoomList;
|
|
838
827
|
static readonly RoomAdd: PuppetRoomAdd;
|
|
@@ -904,9 +893,6 @@ export class PuppetClient {
|
|
|
904
893
|
readonly serviceHost: string;
|
|
905
894
|
|
|
906
895
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
907
|
-
messageFileStream(requestMessage: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
908
|
-
messageImageStream(requestMessage: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
909
|
-
messageSendFileStream(metadata?: grpc.Metadata): RequestStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
910
896
|
start(
|
|
911
897
|
requestMessage: wechaty_puppet_base_pb.StartRequest,
|
|
912
898
|
metadata: grpc.Metadata,
|
|
@@ -1304,6 +1290,24 @@ export class PuppetClient {
|
|
|
1304
1290
|
requestMessage: wechaty_puppet_message_pb.MessagePreviewRequest,
|
|
1305
1291
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessagePreviewResponse|null) => void
|
|
1306
1292
|
): UnaryResponse;
|
|
1293
|
+
getMessageBroadcastTarget(
|
|
1294
|
+
requestMessage: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest,
|
|
1295
|
+
metadata: grpc.Metadata,
|
|
1296
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse|null) => void
|
|
1297
|
+
): UnaryResponse;
|
|
1298
|
+
getMessageBroadcastTarget(
|
|
1299
|
+
requestMessage: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest,
|
|
1300
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse|null) => void
|
|
1301
|
+
): UnaryResponse;
|
|
1302
|
+
createMessageBroadcast(
|
|
1303
|
+
requestMessage: wechaty_puppet_message_pb.CreateMessageBroadcastRequest,
|
|
1304
|
+
metadata: grpc.Metadata,
|
|
1305
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.CreateMessageBroadcastResponse|null) => void
|
|
1306
|
+
): UnaryResponse;
|
|
1307
|
+
createMessageBroadcast(
|
|
1308
|
+
requestMessage: wechaty_puppet_message_pb.CreateMessageBroadcastRequest,
|
|
1309
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.CreateMessageBroadcastResponse|null) => void
|
|
1310
|
+
): UnaryResponse;
|
|
1307
1311
|
roomPayload(
|
|
1308
1312
|
requestMessage: wechaty_puppet_room_pb.RoomPayloadRequest,
|
|
1309
1313
|
metadata: grpc.Metadata,
|