@juzi/wechaty-grpc 1.0.61 → 1.0.63
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/base_pb.d.ts +32 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +246 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +94 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +144 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +160 -0
- package/dist/cjs/proto/wechaty/puppet/base.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +22 -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 +20 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +246 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +94 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +144 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +160 -0
- package/dist/esm/proto/wechaty/puppet/base.proto +6 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +22 -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 +20 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/out/wechaty/puppet/base_pb.js +246 -0
- package/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/out/wechaty/puppet/room_pb.js +331 -0
- package/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/out/wechaty/puppet.openapi.yaml +94 -1
- package/out/wechaty/puppet.swagger.json +144 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/out/wechaty/puppet_grpc_pb.js +99 -0
- package/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/out/wechaty/puppet_pb_service.js +160 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -31,6 +31,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
31
31
|
currentUser: IPuppetService_ICurrentUser;
|
|
32
32
|
version: IPuppetService_IVersion;
|
|
33
33
|
enterVerifyCode: IPuppetService_IEnterVerifyCode;
|
|
34
|
+
cancelVerifyCode: IPuppetService_ICancelVerifyCode;
|
|
35
|
+
refreshQRCode: IPuppetService_IRefreshQRCode;
|
|
34
36
|
event: IPuppetService_IEvent;
|
|
35
37
|
dirtyPayload: IPuppetService_IDirtyPayload;
|
|
36
38
|
contactSelfQRCode: IPuppetService_IContactSelfQRCode;
|
|
@@ -87,6 +89,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
87
89
|
roomAnnounce: IPuppetService_IRoomAnnounce;
|
|
88
90
|
roomOwnerTransfer: IPuppetService_IRoomOwnerTransfer;
|
|
89
91
|
roomPermission: IPuppetService_IRoomPermission;
|
|
92
|
+
roomAddAdmins: IPuppetService_IRoomAddAdmins;
|
|
93
|
+
roomDelAdmins: IPuppetService_IRoomDelAdmins;
|
|
90
94
|
roomMemberPayload: IPuppetService_IRoomMemberPayload;
|
|
91
95
|
roomMemberList: IPuppetService_IRoomMemberList;
|
|
92
96
|
roomInvitationPayload: IPuppetService_IRoomInvitationPayload;
|
|
@@ -179,6 +183,24 @@ interface IPuppetService_IEnterVerifyCode extends grpc.MethodDefinition<wechaty_
|
|
|
179
183
|
responseSerialize: grpc.serialize<wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
180
184
|
responseDeserialize: grpc.deserialize<wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
181
185
|
}
|
|
186
|
+
interface IPuppetService_ICancelVerifyCode extends grpc.MethodDefinition<wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse> {
|
|
187
|
+
path: "/wechaty.Puppet/CancelVerifyCode";
|
|
188
|
+
requestStream: false;
|
|
189
|
+
responseStream: false;
|
|
190
|
+
requestSerialize: grpc.serialize<wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest>;
|
|
191
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest>;
|
|
192
|
+
responseSerialize: grpc.serialize<wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse>;
|
|
193
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse>;
|
|
194
|
+
}
|
|
195
|
+
interface IPuppetService_IRefreshQRCode extends grpc.MethodDefinition<wechaty_puppet_base_pb.RefreshQRCodeRequest, wechaty_puppet_base_pb.RefreshQRCodeRequest> {
|
|
196
|
+
path: "/wechaty.Puppet/RefreshQRCode";
|
|
197
|
+
requestStream: false;
|
|
198
|
+
responseStream: false;
|
|
199
|
+
requestSerialize: grpc.serialize<wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
200
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
201
|
+
responseSerialize: grpc.serialize<wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
202
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
203
|
+
}
|
|
182
204
|
interface IPuppetService_IEvent extends grpc.MethodDefinition<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse> {
|
|
183
205
|
path: "/wechaty.Puppet/Event";
|
|
184
206
|
requestStream: false;
|
|
@@ -683,6 +705,24 @@ interface IPuppetService_IRoomPermission extends grpc.MethodDefinition<wechaty_p
|
|
|
683
705
|
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
684
706
|
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
685
707
|
}
|
|
708
|
+
interface IPuppetService_IRoomAddAdmins extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse> {
|
|
709
|
+
path: "/wechaty.Puppet/RoomAddAdmins";
|
|
710
|
+
requestStream: false;
|
|
711
|
+
responseStream: false;
|
|
712
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
713
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
714
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
715
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
716
|
+
}
|
|
717
|
+
interface IPuppetService_IRoomDelAdmins extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse> {
|
|
718
|
+
path: "/wechaty.Puppet/RoomDelAdmins";
|
|
719
|
+
requestStream: false;
|
|
720
|
+
responseStream: false;
|
|
721
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
722
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
723
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
724
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
725
|
+
}
|
|
686
726
|
interface IPuppetService_IRoomMemberPayload extends grpc.MethodDefinition<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse> {
|
|
687
727
|
path: "/wechaty.Puppet/RoomMemberPayload";
|
|
688
728
|
requestStream: false;
|
|
@@ -937,6 +977,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
937
977
|
currentUser: grpc.handleUnaryCall<wechaty_puppet_base_pb.CurrentUserRequest, wechaty_puppet_base_pb.CurrentUserResponse>;
|
|
938
978
|
version: grpc.handleUnaryCall<wechaty_puppet_base_pb.VersionRequest, wechaty_puppet_base_pb.VersionResponse>;
|
|
939
979
|
enterVerifyCode: grpc.handleUnaryCall<wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
980
|
+
cancelVerifyCode: grpc.handleUnaryCall<wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse>;
|
|
981
|
+
refreshQRCode: grpc.handleUnaryCall<wechaty_puppet_base_pb.RefreshQRCodeRequest, wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
940
982
|
event: grpc.handleServerStreamingCall<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse>;
|
|
941
983
|
dirtyPayload: grpc.handleUnaryCall<wechaty_puppet_base_pb.DirtyPayloadRequest, wechaty_puppet_base_pb.DirtyPayloadResponse>;
|
|
942
984
|
contactSelfQRCode: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfQRCodeRequest, wechaty_puppet_contact_pb.ContactSelfQRCodeResponse>;
|
|
@@ -993,6 +1035,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
993
1035
|
roomAnnounce: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAnnounceRequest, wechaty_puppet_room_pb.RoomAnnounceResponse>;
|
|
994
1036
|
roomOwnerTransfer: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomOwnerTransferRequest, wechaty_puppet_room_pb.RoomOwnerTransferResponse>;
|
|
995
1037
|
roomPermission: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPermissionRequest, wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
1038
|
+
roomAddAdmins: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
1039
|
+
roomDelAdmins: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
996
1040
|
roomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse>;
|
|
997
1041
|
roomMemberList: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberListRequest, wechaty_puppet_room_member_pb.RoomMemberListResponse>;
|
|
998
1042
|
roomInvitationPayload: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse>;
|
|
@@ -1044,6 +1088,12 @@ export interface IPuppetClient {
|
|
|
1044
1088
|
enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1045
1089
|
enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1046
1090
|
enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1091
|
+
cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1092
|
+
cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1093
|
+
cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1094
|
+
refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1095
|
+
refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1096
|
+
refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1047
1097
|
event(request: wechaty_puppet_event_pb.EventRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1048
1098
|
event(request: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1049
1099
|
dirtyPayload(request: wechaty_puppet_base_pb.DirtyPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DirtyPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1211,6 +1261,12 @@ export interface IPuppetClient {
|
|
|
1211
1261
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1212
1262
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1213
1263
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1264
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1265
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1266
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1267
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1268
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1269
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1214
1270
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1215
1271
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1216
1272
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1317,6 +1373,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1317
1373
|
public enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1318
1374
|
public enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1319
1375
|
public enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1376
|
+
public cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1377
|
+
public cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1378
|
+
public cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1379
|
+
public refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1380
|
+
public refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1381
|
+
public refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1320
1382
|
public event(request: wechaty_puppet_event_pb.EventRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1321
1383
|
public event(request: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1322
1384
|
public dirtyPayload(request: wechaty_puppet_base_pb.DirtyPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DirtyPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1484,6 +1546,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1484
1546
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1485
1547
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1486
1548
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1549
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1550
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1551
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1552
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1553
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1554
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1487
1555
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1488
1556
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1489
1557
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -32,6 +32,28 @@ var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
|
|
|
32
32
|
var wechaty_puppet_moment_pb = require('../wechaty/puppet/moment_pb.js');
|
|
33
33
|
var wechaty_puppet_verify$code_pb = require('../wechaty/puppet/verify-code_pb.js');
|
|
34
34
|
|
|
35
|
+
function serialize_wechaty_puppet_CancelVerifyCodeRequest(arg) {
|
|
36
|
+
if (!(arg instanceof wechaty_puppet_verify$code_pb.CancelVerifyCodeRequest)) {
|
|
37
|
+
throw new Error('Expected argument of type wechaty.puppet.CancelVerifyCodeRequest');
|
|
38
|
+
}
|
|
39
|
+
return Buffer.from(arg.serializeBinary());
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function deserialize_wechaty_puppet_CancelVerifyCodeRequest(buffer_arg) {
|
|
43
|
+
return wechaty_puppet_verify$code_pb.CancelVerifyCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function serialize_wechaty_puppet_CancelVerifyCodeResponse(arg) {
|
|
47
|
+
if (!(arg instanceof wechaty_puppet_verify$code_pb.CancelVerifyCodeResponse)) {
|
|
48
|
+
throw new Error('Expected argument of type wechaty.puppet.CancelVerifyCodeResponse');
|
|
49
|
+
}
|
|
50
|
+
return Buffer.from(arg.serializeBinary());
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function deserialize_wechaty_puppet_CancelVerifyCodeResponse(buffer_arg) {
|
|
54
|
+
return wechaty_puppet_verify$code_pb.CancelVerifyCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
55
|
+
}
|
|
56
|
+
|
|
35
57
|
function serialize_wechaty_puppet_ContactAliasRequest(arg) {
|
|
36
58
|
if (!(arg instanceof wechaty_puppet_contact_pb.ContactAliasRequest)) {
|
|
37
59
|
throw new Error('Expected argument of type wechaty.puppet.ContactAliasRequest');
|
|
@@ -1242,6 +1264,17 @@ function deserialize_wechaty_puppet_PostTapResponse(buffer_arg) {
|
|
|
1242
1264
|
return wechaty_puppet_post_pb.PostTapResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1243
1265
|
}
|
|
1244
1266
|
|
|
1267
|
+
function serialize_wechaty_puppet_RefreshQRCodeRequest(arg) {
|
|
1268
|
+
if (!(arg instanceof wechaty_puppet_base_pb.RefreshQRCodeRequest)) {
|
|
1269
|
+
throw new Error('Expected argument of type wechaty.puppet.RefreshQRCodeRequest');
|
|
1270
|
+
}
|
|
1271
|
+
return Buffer.from(arg.serializeBinary());
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
function deserialize_wechaty_puppet_RefreshQRCodeRequest(buffer_arg) {
|
|
1275
|
+
return wechaty_puppet_base_pb.RefreshQRCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1245
1278
|
function serialize_wechaty_puppet_RoomAddRequest(arg) {
|
|
1246
1279
|
if (!(arg instanceof wechaty_puppet_room_pb.RoomAddRequest)) {
|
|
1247
1280
|
throw new Error('Expected argument of type wechaty.puppet.RoomAddRequest');
|
|
@@ -1264,6 +1297,28 @@ function deserialize_wechaty_puppet_RoomAddResponse(buffer_arg) {
|
|
|
1264
1297
|
return wechaty_puppet_room_pb.RoomAddResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1265
1298
|
}
|
|
1266
1299
|
|
|
1300
|
+
function serialize_wechaty_puppet_RoomAdminsRequest(arg) {
|
|
1301
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomAdminsRequest)) {
|
|
1302
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomAdminsRequest');
|
|
1303
|
+
}
|
|
1304
|
+
return Buffer.from(arg.serializeBinary());
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
function deserialize_wechaty_puppet_RoomAdminsRequest(buffer_arg) {
|
|
1308
|
+
return wechaty_puppet_room_pb.RoomAdminsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
function serialize_wechaty_puppet_RoomAdminsResponse(arg) {
|
|
1312
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomAdminsResponse)) {
|
|
1313
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomAdminsResponse');
|
|
1314
|
+
}
|
|
1315
|
+
return Buffer.from(arg.serializeBinary());
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
function deserialize_wechaty_puppet_RoomAdminsResponse(buffer_arg) {
|
|
1319
|
+
return wechaty_puppet_room_pb.RoomAdminsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1267
1322
|
function serialize_wechaty_puppet_RoomAnnounceRequest(arg) {
|
|
1268
1323
|
if (!(arg instanceof wechaty_puppet_room_pb.RoomAnnounceRequest)) {
|
|
1269
1324
|
throw new Error('Expected argument of type wechaty.puppet.RoomAnnounceRequest');
|
|
@@ -2073,6 +2128,28 @@ start: {
|
|
|
2073
2128
|
responseSerialize: serialize_wechaty_puppet_EnterVerifyCodeResponse,
|
|
2074
2129
|
responseDeserialize: deserialize_wechaty_puppet_EnterVerifyCodeResponse,
|
|
2075
2130
|
},
|
|
2131
|
+
cancelVerifyCode: {
|
|
2132
|
+
path: '/wechaty.Puppet/CancelVerifyCode',
|
|
2133
|
+
requestStream: false,
|
|
2134
|
+
responseStream: false,
|
|
2135
|
+
requestType: wechaty_puppet_verify$code_pb.CancelVerifyCodeRequest,
|
|
2136
|
+
responseType: wechaty_puppet_verify$code_pb.CancelVerifyCodeResponse,
|
|
2137
|
+
requestSerialize: serialize_wechaty_puppet_CancelVerifyCodeRequest,
|
|
2138
|
+
requestDeserialize: deserialize_wechaty_puppet_CancelVerifyCodeRequest,
|
|
2139
|
+
responseSerialize: serialize_wechaty_puppet_CancelVerifyCodeResponse,
|
|
2140
|
+
responseDeserialize: deserialize_wechaty_puppet_CancelVerifyCodeResponse,
|
|
2141
|
+
},
|
|
2142
|
+
refreshQRCode: {
|
|
2143
|
+
path: '/wechaty.Puppet/RefreshQRCode',
|
|
2144
|
+
requestStream: false,
|
|
2145
|
+
responseStream: false,
|
|
2146
|
+
requestType: wechaty_puppet_base_pb.RefreshQRCodeRequest,
|
|
2147
|
+
responseType: wechaty_puppet_base_pb.RefreshQRCodeRequest,
|
|
2148
|
+
requestSerialize: serialize_wechaty_puppet_RefreshQRCodeRequest,
|
|
2149
|
+
requestDeserialize: deserialize_wechaty_puppet_RefreshQRCodeRequest,
|
|
2150
|
+
responseSerialize: serialize_wechaty_puppet_RefreshQRCodeRequest,
|
|
2151
|
+
responseDeserialize: deserialize_wechaty_puppet_RefreshQRCodeRequest,
|
|
2152
|
+
},
|
|
2076
2153
|
// *
|
|
2077
2154
|
//
|
|
2078
2155
|
// Event - Server Stream
|
|
@@ -2723,6 +2800,28 @@ roomPayload: {
|
|
|
2723
2800
|
responseSerialize: serialize_wechaty_puppet_RoomPermissionResponse,
|
|
2724
2801
|
responseDeserialize: deserialize_wechaty_puppet_RoomPermissionResponse,
|
|
2725
2802
|
},
|
|
2803
|
+
roomAddAdmins: {
|
|
2804
|
+
path: '/wechaty.Puppet/RoomAddAdmins',
|
|
2805
|
+
requestStream: false,
|
|
2806
|
+
responseStream: false,
|
|
2807
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
2808
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse,
|
|
2809
|
+
requestSerialize: serialize_wechaty_puppet_RoomAdminsRequest,
|
|
2810
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomAdminsRequest,
|
|
2811
|
+
responseSerialize: serialize_wechaty_puppet_RoomAdminsResponse,
|
|
2812
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomAdminsResponse,
|
|
2813
|
+
},
|
|
2814
|
+
roomDelAdmins: {
|
|
2815
|
+
path: '/wechaty.Puppet/RoomDelAdmins',
|
|
2816
|
+
requestStream: false,
|
|
2817
|
+
responseStream: false,
|
|
2818
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
2819
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse,
|
|
2820
|
+
requestSerialize: serialize_wechaty_puppet_RoomAdminsRequest,
|
|
2821
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomAdminsRequest,
|
|
2822
|
+
responseSerialize: serialize_wechaty_puppet_RoomAdminsResponse,
|
|
2823
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomAdminsResponse,
|
|
2824
|
+
},
|
|
2726
2825
|
// *
|
|
2727
2826
|
//
|
|
2728
2827
|
// Room Member
|
|
@@ -81,6 +81,24 @@ type PuppetEnterVerifyCode = {
|
|
|
81
81
|
readonly responseType: typeof wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
+
type PuppetCancelVerifyCode = {
|
|
85
|
+
readonly methodName: string;
|
|
86
|
+
readonly service: typeof Puppet;
|
|
87
|
+
readonly requestStream: false;
|
|
88
|
+
readonly responseStream: false;
|
|
89
|
+
readonly requestType: typeof wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest;
|
|
90
|
+
readonly responseType: typeof wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
type PuppetRefreshQRCode = {
|
|
94
|
+
readonly methodName: string;
|
|
95
|
+
readonly service: typeof Puppet;
|
|
96
|
+
readonly requestStream: false;
|
|
97
|
+
readonly responseStream: false;
|
|
98
|
+
readonly requestType: typeof wechaty_puppet_base_pb.RefreshQRCodeRequest;
|
|
99
|
+
readonly responseType: typeof wechaty_puppet_base_pb.RefreshQRCodeRequest;
|
|
100
|
+
};
|
|
101
|
+
|
|
84
102
|
type PuppetEvent = {
|
|
85
103
|
readonly methodName: string;
|
|
86
104
|
readonly service: typeof Puppet;
|
|
@@ -585,6 +603,24 @@ type PuppetRoomPermission = {
|
|
|
585
603
|
readonly responseType: typeof wechaty_puppet_room_pb.RoomPermissionResponse;
|
|
586
604
|
};
|
|
587
605
|
|
|
606
|
+
type PuppetRoomAddAdmins = {
|
|
607
|
+
readonly methodName: string;
|
|
608
|
+
readonly service: typeof Puppet;
|
|
609
|
+
readonly requestStream: false;
|
|
610
|
+
readonly responseStream: false;
|
|
611
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomAdminsRequest;
|
|
612
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomAdminsResponse;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
type PuppetRoomDelAdmins = {
|
|
616
|
+
readonly methodName: string;
|
|
617
|
+
readonly service: typeof Puppet;
|
|
618
|
+
readonly requestStream: false;
|
|
619
|
+
readonly responseStream: false;
|
|
620
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomAdminsRequest;
|
|
621
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomAdminsResponse;
|
|
622
|
+
};
|
|
623
|
+
|
|
588
624
|
type PuppetRoomMemberPayload = {
|
|
589
625
|
readonly methodName: string;
|
|
590
626
|
readonly service: typeof Puppet;
|
|
@@ -837,6 +873,8 @@ export class Puppet {
|
|
|
837
873
|
static readonly CurrentUser: PuppetCurrentUser;
|
|
838
874
|
static readonly Version: PuppetVersion;
|
|
839
875
|
static readonly EnterVerifyCode: PuppetEnterVerifyCode;
|
|
876
|
+
static readonly CancelVerifyCode: PuppetCancelVerifyCode;
|
|
877
|
+
static readonly RefreshQRCode: PuppetRefreshQRCode;
|
|
840
878
|
static readonly Event: PuppetEvent;
|
|
841
879
|
static readonly DirtyPayload: PuppetDirtyPayload;
|
|
842
880
|
static readonly ContactSelfQRCode: PuppetContactSelfQRCode;
|
|
@@ -893,6 +931,8 @@ export class Puppet {
|
|
|
893
931
|
static readonly RoomAnnounce: PuppetRoomAnnounce;
|
|
894
932
|
static readonly RoomOwnerTransfer: PuppetRoomOwnerTransfer;
|
|
895
933
|
static readonly RoomPermission: PuppetRoomPermission;
|
|
934
|
+
static readonly RoomAddAdmins: PuppetRoomAddAdmins;
|
|
935
|
+
static readonly RoomDelAdmins: PuppetRoomDelAdmins;
|
|
896
936
|
static readonly RoomMemberPayload: PuppetRoomMemberPayload;
|
|
897
937
|
static readonly RoomMemberList: PuppetRoomMemberList;
|
|
898
938
|
static readonly RoomInvitationPayload: PuppetRoomInvitationPayload;
|
|
@@ -1017,6 +1057,24 @@ export class PuppetClient {
|
|
|
1017
1057
|
requestMessage: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest,
|
|
1018
1058
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse|null) => void
|
|
1019
1059
|
): UnaryResponse;
|
|
1060
|
+
cancelVerifyCode(
|
|
1061
|
+
requestMessage: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest,
|
|
1062
|
+
metadata: grpc.Metadata,
|
|
1063
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse|null) => void
|
|
1064
|
+
): UnaryResponse;
|
|
1065
|
+
cancelVerifyCode(
|
|
1066
|
+
requestMessage: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest,
|
|
1067
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse|null) => void
|
|
1068
|
+
): UnaryResponse;
|
|
1069
|
+
refreshQRCode(
|
|
1070
|
+
requestMessage: wechaty_puppet_base_pb.RefreshQRCodeRequest,
|
|
1071
|
+
metadata: grpc.Metadata,
|
|
1072
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.RefreshQRCodeRequest|null) => void
|
|
1073
|
+
): UnaryResponse;
|
|
1074
|
+
refreshQRCode(
|
|
1075
|
+
requestMessage: wechaty_puppet_base_pb.RefreshQRCodeRequest,
|
|
1076
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.RefreshQRCodeRequest|null) => void
|
|
1077
|
+
): UnaryResponse;
|
|
1020
1078
|
event(requestMessage: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1021
1079
|
dirtyPayload(
|
|
1022
1080
|
requestMessage: wechaty_puppet_base_pb.DirtyPayloadRequest,
|
|
@@ -1513,6 +1571,24 @@ export class PuppetClient {
|
|
|
1513
1571
|
requestMessage: wechaty_puppet_room_pb.RoomPermissionRequest,
|
|
1514
1572
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomPermissionResponse|null) => void
|
|
1515
1573
|
): UnaryResponse;
|
|
1574
|
+
roomAddAdmins(
|
|
1575
|
+
requestMessage: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
1576
|
+
metadata: grpc.Metadata,
|
|
1577
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAdminsResponse|null) => void
|
|
1578
|
+
): UnaryResponse;
|
|
1579
|
+
roomAddAdmins(
|
|
1580
|
+
requestMessage: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
1581
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAdminsResponse|null) => void
|
|
1582
|
+
): UnaryResponse;
|
|
1583
|
+
roomDelAdmins(
|
|
1584
|
+
requestMessage: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
1585
|
+
metadata: grpc.Metadata,
|
|
1586
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAdminsResponse|null) => void
|
|
1587
|
+
): UnaryResponse;
|
|
1588
|
+
roomDelAdmins(
|
|
1589
|
+
requestMessage: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
1590
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAdminsResponse|null) => void
|
|
1591
|
+
): UnaryResponse;
|
|
1516
1592
|
roomMemberPayload(
|
|
1517
1593
|
requestMessage: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest,
|
|
1518
1594
|
metadata: grpc.Metadata,
|
|
@@ -87,6 +87,24 @@ Puppet.EnterVerifyCode = {
|
|
|
87
87
|
responseType: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
+
Puppet.CancelVerifyCode = {
|
|
91
|
+
methodName: "CancelVerifyCode",
|
|
92
|
+
service: Puppet,
|
|
93
|
+
requestStream: false,
|
|
94
|
+
responseStream: false,
|
|
95
|
+
requestType: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest,
|
|
96
|
+
responseType: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
Puppet.RefreshQRCode = {
|
|
100
|
+
methodName: "RefreshQRCode",
|
|
101
|
+
service: Puppet,
|
|
102
|
+
requestStream: false,
|
|
103
|
+
responseStream: false,
|
|
104
|
+
requestType: wechaty_puppet_base_pb.RefreshQRCodeRequest,
|
|
105
|
+
responseType: wechaty_puppet_base_pb.RefreshQRCodeRequest
|
|
106
|
+
};
|
|
107
|
+
|
|
90
108
|
Puppet.Event = {
|
|
91
109
|
methodName: "Event",
|
|
92
110
|
service: Puppet,
|
|
@@ -591,6 +609,24 @@ Puppet.RoomPermission = {
|
|
|
591
609
|
responseType: wechaty_puppet_room_pb.RoomPermissionResponse
|
|
592
610
|
};
|
|
593
611
|
|
|
612
|
+
Puppet.RoomAddAdmins = {
|
|
613
|
+
methodName: "RoomAddAdmins",
|
|
614
|
+
service: Puppet,
|
|
615
|
+
requestStream: false,
|
|
616
|
+
responseStream: false,
|
|
617
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
618
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
Puppet.RoomDelAdmins = {
|
|
622
|
+
methodName: "RoomDelAdmins",
|
|
623
|
+
service: Puppet,
|
|
624
|
+
requestStream: false,
|
|
625
|
+
responseStream: false,
|
|
626
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
627
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse
|
|
628
|
+
};
|
|
629
|
+
|
|
594
630
|
Puppet.RoomMemberPayload = {
|
|
595
631
|
methodName: "RoomMemberPayload",
|
|
596
632
|
service: Puppet,
|
|
@@ -1058,6 +1094,68 @@ PuppetClient.prototype.enterVerifyCode = function enterVerifyCode(requestMessage
|
|
|
1058
1094
|
};
|
|
1059
1095
|
};
|
|
1060
1096
|
|
|
1097
|
+
PuppetClient.prototype.cancelVerifyCode = function cancelVerifyCode(requestMessage, metadata, callback) {
|
|
1098
|
+
if (arguments.length === 2) {
|
|
1099
|
+
callback = arguments[1];
|
|
1100
|
+
}
|
|
1101
|
+
var client = grpc.unary(Puppet.CancelVerifyCode, {
|
|
1102
|
+
request: requestMessage,
|
|
1103
|
+
host: this.serviceHost,
|
|
1104
|
+
metadata: metadata,
|
|
1105
|
+
transport: this.options.transport,
|
|
1106
|
+
debug: this.options.debug,
|
|
1107
|
+
onEnd: function (response) {
|
|
1108
|
+
if (callback) {
|
|
1109
|
+
if (response.status !== grpc.Code.OK) {
|
|
1110
|
+
var err = new Error(response.statusMessage);
|
|
1111
|
+
err.code = response.status;
|
|
1112
|
+
err.metadata = response.trailers;
|
|
1113
|
+
callback(err, null);
|
|
1114
|
+
} else {
|
|
1115
|
+
callback(null, response.message);
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
});
|
|
1120
|
+
return {
|
|
1121
|
+
cancel: function () {
|
|
1122
|
+
callback = null;
|
|
1123
|
+
client.close();
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
PuppetClient.prototype.refreshQRCode = function refreshQRCode(requestMessage, metadata, callback) {
|
|
1129
|
+
if (arguments.length === 2) {
|
|
1130
|
+
callback = arguments[1];
|
|
1131
|
+
}
|
|
1132
|
+
var client = grpc.unary(Puppet.RefreshQRCode, {
|
|
1133
|
+
request: requestMessage,
|
|
1134
|
+
host: this.serviceHost,
|
|
1135
|
+
metadata: metadata,
|
|
1136
|
+
transport: this.options.transport,
|
|
1137
|
+
debug: this.options.debug,
|
|
1138
|
+
onEnd: function (response) {
|
|
1139
|
+
if (callback) {
|
|
1140
|
+
if (response.status !== grpc.Code.OK) {
|
|
1141
|
+
var err = new Error(response.statusMessage);
|
|
1142
|
+
err.code = response.status;
|
|
1143
|
+
err.metadata = response.trailers;
|
|
1144
|
+
callback(err, null);
|
|
1145
|
+
} else {
|
|
1146
|
+
callback(null, response.message);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
});
|
|
1151
|
+
return {
|
|
1152
|
+
cancel: function () {
|
|
1153
|
+
callback = null;
|
|
1154
|
+
client.close();
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1061
1159
|
PuppetClient.prototype.event = function event(requestMessage, metadata) {
|
|
1062
1160
|
var listeners = {
|
|
1063
1161
|
data: [],
|
|
@@ -2802,6 +2900,68 @@ PuppetClient.prototype.roomPermission = function roomPermission(requestMessage,
|
|
|
2802
2900
|
};
|
|
2803
2901
|
};
|
|
2804
2902
|
|
|
2903
|
+
PuppetClient.prototype.roomAddAdmins = function roomAddAdmins(requestMessage, metadata, callback) {
|
|
2904
|
+
if (arguments.length === 2) {
|
|
2905
|
+
callback = arguments[1];
|
|
2906
|
+
}
|
|
2907
|
+
var client = grpc.unary(Puppet.RoomAddAdmins, {
|
|
2908
|
+
request: requestMessage,
|
|
2909
|
+
host: this.serviceHost,
|
|
2910
|
+
metadata: metadata,
|
|
2911
|
+
transport: this.options.transport,
|
|
2912
|
+
debug: this.options.debug,
|
|
2913
|
+
onEnd: function (response) {
|
|
2914
|
+
if (callback) {
|
|
2915
|
+
if (response.status !== grpc.Code.OK) {
|
|
2916
|
+
var err = new Error(response.statusMessage);
|
|
2917
|
+
err.code = response.status;
|
|
2918
|
+
err.metadata = response.trailers;
|
|
2919
|
+
callback(err, null);
|
|
2920
|
+
} else {
|
|
2921
|
+
callback(null, response.message);
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
});
|
|
2926
|
+
return {
|
|
2927
|
+
cancel: function () {
|
|
2928
|
+
callback = null;
|
|
2929
|
+
client.close();
|
|
2930
|
+
}
|
|
2931
|
+
};
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
PuppetClient.prototype.roomDelAdmins = function roomDelAdmins(requestMessage, metadata, callback) {
|
|
2935
|
+
if (arguments.length === 2) {
|
|
2936
|
+
callback = arguments[1];
|
|
2937
|
+
}
|
|
2938
|
+
var client = grpc.unary(Puppet.RoomDelAdmins, {
|
|
2939
|
+
request: requestMessage,
|
|
2940
|
+
host: this.serviceHost,
|
|
2941
|
+
metadata: metadata,
|
|
2942
|
+
transport: this.options.transport,
|
|
2943
|
+
debug: this.options.debug,
|
|
2944
|
+
onEnd: function (response) {
|
|
2945
|
+
if (callback) {
|
|
2946
|
+
if (response.status !== grpc.Code.OK) {
|
|
2947
|
+
var err = new Error(response.statusMessage);
|
|
2948
|
+
err.code = response.status;
|
|
2949
|
+
err.metadata = response.trailers;
|
|
2950
|
+
callback(err, null);
|
|
2951
|
+
} else {
|
|
2952
|
+
callback(null, response.message);
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
});
|
|
2957
|
+
return {
|
|
2958
|
+
cancel: function () {
|
|
2959
|
+
callback = null;
|
|
2960
|
+
client.close();
|
|
2961
|
+
}
|
|
2962
|
+
};
|
|
2963
|
+
};
|
|
2964
|
+
|
|
2805
2965
|
PuppetClient.prototype.roomMemberPayload = function roomMemberPayload(requestMessage, metadata, callback) {
|
|
2806
2966
|
if (arguments.length === 2) {
|
|
2807
2967
|
callback = arguments[1];
|
|
@@ -120,3 +120,10 @@ message RoomPermissionResponse {
|
|
|
120
120
|
OptionalBoolean mute_all = 4;
|
|
121
121
|
OptionalBoolean forbid_room_topic_edit = 5;
|
|
122
122
|
}
|
|
123
|
+
|
|
124
|
+
message RoomAdminsRequest {
|
|
125
|
+
string id = 1;
|
|
126
|
+
repeated string contact_ids = 2;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
message RoomAdminsResponse {}
|
|
@@ -109,6 +109,16 @@ service Puppet {
|
|
|
109
109
|
post: "/enter_verify_code"
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
+
rpc CancelVerifyCode (puppet.CancelVerifyCodeRequest) returns (puppet.CancelVerifyCodeResponse) {
|
|
113
|
+
option (google.api.http) = {
|
|
114
|
+
post: "/cancel_verify_code"
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
rpc RefreshQRCode (puppet.RefreshQRCodeRequest) returns (puppet.RefreshQRCodeRequest) {
|
|
118
|
+
option (google.api.http) = {
|
|
119
|
+
post: "/refresh_qr_code"
|
|
120
|
+
};
|
|
121
|
+
}
|
|
112
122
|
|
|
113
123
|
/**
|
|
114
124
|
*
|
|
@@ -514,6 +524,18 @@ service Puppet {
|
|
|
514
524
|
};
|
|
515
525
|
}
|
|
516
526
|
|
|
527
|
+
rpc RoomAddAdmins (puppet.RoomAdminsRequest) returns (puppet.RoomAdminsResponse) {
|
|
528
|
+
option (google.api.http) = {
|
|
529
|
+
put: "/rooms/{id}/add/admins/{contact_ids}"
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
rpc RoomDelAdmins (puppet.RoomAdminsRequest) returns (puppet.RoomAdminsResponse) {
|
|
534
|
+
option (google.api.http) = {
|
|
535
|
+
delete: "/rooms/{id}/del/admins/{contact_ids}"
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
517
539
|
/**
|
|
518
540
|
*
|
|
519
541
|
* Room Member
|
|
@@ -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.63",
|
|
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,MAA4B,eAAe,CAAA;AAE5C,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,MAA4B,eAAe,CAAA;AAE5C,aAAK,aAAa,GAAG,MAAM,CAAC,aAAa,CAAA;AAEzC;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAqjB9B,CAAA"}
|