@juzi/wechaty-grpc 1.0.59 → 1.0.61
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 +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/cjs/out/wechaty/puppet/verify-code_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.d.ts +45 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.js +323 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +27 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +42 -2
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +18 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +34 -0
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +20 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +41 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/verify-code.proto +14 -0
- package/dist/cjs/proto/wechaty/puppet.proto +6 -1
- 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 +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/esm/out/wechaty/puppet/verify-code_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.d.ts +45 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.js +323 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +27 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +42 -2
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +18 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +34 -0
- package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet_pb.js +2 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +20 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +41 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/verify-code.proto +14 -0
- package/dist/esm/proto/wechaty/puppet.proto +6 -1
- 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 +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/out/wechaty/puppet/event_pb.js +2 -1
- package/out/wechaty/puppet/verify-code_grpc_pb.js +1 -0
- package/out/wechaty/puppet/verify-code_pb.d.ts +45 -0
- package/out/wechaty/puppet/verify-code_pb.js +323 -0
- package/out/wechaty/puppet/verify-code_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/verify-code_pb_service.js +3 -0
- package/out/wechaty/puppet.openapi.yaml +27 -1
- package/out/wechaty/puppet.swagger.json +42 -2
- package/out/wechaty/puppet_grpc_pb.d.ts +18 -0
- package/out/wechaty/puppet_grpc_pb.js +34 -0
- package/out/wechaty/puppet_pb.d.ts +1 -0
- package/out/wechaty/puppet_pb.js +2 -0
- package/out/wechaty/puppet_pb_service.d.ts +20 -0
- package/out/wechaty/puppet_pb_service.js +41 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -15,6 +15,7 @@ var wechaty_puppet_tag_pb = require("../wechaty/puppet/tag_pb");
|
|
|
15
15
|
var wechaty_puppet_conversation_pb = require("../wechaty/puppet/conversation_pb");
|
|
16
16
|
var wechaty_puppet_post_pb = require("../wechaty/puppet/post_pb");
|
|
17
17
|
var wechaty_puppet_moment_pb = require("../wechaty/puppet/moment_pb");
|
|
18
|
+
var wechaty_puppet_verify_code_pb = require("../wechaty/puppet/verify-code_pb");
|
|
18
19
|
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
19
20
|
|
|
20
21
|
var Puppet = (function () {
|
|
@@ -77,6 +78,15 @@ Puppet.Version = {
|
|
|
77
78
|
responseType: wechaty_puppet_base_pb.VersionResponse
|
|
78
79
|
};
|
|
79
80
|
|
|
81
|
+
Puppet.EnterVerifyCode = {
|
|
82
|
+
methodName: "EnterVerifyCode",
|
|
83
|
+
service: Puppet,
|
|
84
|
+
requestStream: false,
|
|
85
|
+
responseStream: false,
|
|
86
|
+
requestType: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest,
|
|
87
|
+
responseType: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse
|
|
88
|
+
};
|
|
89
|
+
|
|
80
90
|
Puppet.Event = {
|
|
81
91
|
methodName: "Event",
|
|
82
92
|
service: Puppet,
|
|
@@ -1017,6 +1027,37 @@ PuppetClient.prototype.version = function version(requestMessage, metadata, call
|
|
|
1017
1027
|
};
|
|
1018
1028
|
};
|
|
1019
1029
|
|
|
1030
|
+
PuppetClient.prototype.enterVerifyCode = function enterVerifyCode(requestMessage, metadata, callback) {
|
|
1031
|
+
if (arguments.length === 2) {
|
|
1032
|
+
callback = arguments[1];
|
|
1033
|
+
}
|
|
1034
|
+
var client = grpc.unary(Puppet.EnterVerifyCode, {
|
|
1035
|
+
request: requestMessage,
|
|
1036
|
+
host: this.serviceHost,
|
|
1037
|
+
metadata: metadata,
|
|
1038
|
+
transport: this.options.transport,
|
|
1039
|
+
debug: this.options.debug,
|
|
1040
|
+
onEnd: function (response) {
|
|
1041
|
+
if (callback) {
|
|
1042
|
+
if (response.status !== grpc.Code.OK) {
|
|
1043
|
+
var err = new Error(response.statusMessage);
|
|
1044
|
+
err.code = response.status;
|
|
1045
|
+
err.metadata = response.trailers;
|
|
1046
|
+
callback(err, null);
|
|
1047
|
+
} else {
|
|
1048
|
+
callback(null, response.message);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
return {
|
|
1054
|
+
cancel: function () {
|
|
1055
|
+
callback = null;
|
|
1056
|
+
client.close();
|
|
1057
|
+
}
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1020
1061
|
PuppetClient.prototype.event = function event(requestMessage, metadata) {
|
|
1021
1062
|
var listeners = {
|
|
1022
1063
|
data: [],
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED