@juzi/wechaty-grpc 1.0.58 → 1.0.60
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/contact_pb.d.ts +40 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +305 -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 +52 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +81 -2
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +67 -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 +39 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +81 -0
- package/dist/cjs/proto/wechaty/puppet/contact.proto +7 -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 +11 -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 +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +40 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +305 -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 +52 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +81 -2
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +67 -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 +39 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +81 -0
- package/dist/esm/proto/wechaty/puppet/contact.proto +7 -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 +11 -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 +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +40 -0
- package/out/wechaty/puppet/contact_pb.js +305 -0
- 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 +52 -1
- package/out/wechaty/puppet.swagger.json +81 -2
- package/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/out/wechaty/puppet_grpc_pb.js +67 -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 +39 -0
- package/out/wechaty/puppet_pb_service.js +81 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -30,6 +30,7 @@ var wechaty_puppet_conversation_pb = require('../wechaty/puppet/conversation_pb.
|
|
|
30
30
|
var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
|
|
31
31
|
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
|
+
var wechaty_puppet_verify$code_pb = require('../wechaty/puppet/verify-code_pb.js');
|
|
33
34
|
|
|
34
35
|
function serialize_wechaty_puppet_ContactAliasRequest(arg) {
|
|
35
36
|
if (!(arg instanceof wechaty_puppet_contact_pb.ContactAliasRequest)) {
|
|
@@ -273,6 +274,28 @@ function deserialize_wechaty_puppet_ContactSelfQRCodeResponse(buffer_arg) {
|
|
|
273
274
|
return wechaty_puppet_contact_pb.ContactSelfQRCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
274
275
|
}
|
|
275
276
|
|
|
277
|
+
function serialize_wechaty_puppet_ContactSelfRoomAliasRequest(arg) {
|
|
278
|
+
if (!(arg instanceof wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest)) {
|
|
279
|
+
throw new Error('Expected argument of type wechaty.puppet.ContactSelfRoomAliasRequest');
|
|
280
|
+
}
|
|
281
|
+
return Buffer.from(arg.serializeBinary());
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function deserialize_wechaty_puppet_ContactSelfRoomAliasRequest(buffer_arg) {
|
|
285
|
+
return wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function serialize_wechaty_puppet_ContactSelfRoomAliasResponse(arg) {
|
|
289
|
+
if (!(arg instanceof wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse)) {
|
|
290
|
+
throw new Error('Expected argument of type wechaty.puppet.ContactSelfRoomAliasResponse');
|
|
291
|
+
}
|
|
292
|
+
return Buffer.from(arg.serializeBinary());
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function deserialize_wechaty_puppet_ContactSelfRoomAliasResponse(buffer_arg) {
|
|
296
|
+
return wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
297
|
+
}
|
|
298
|
+
|
|
276
299
|
function serialize_wechaty_puppet_ContactSelfSignatureRequest(arg) {
|
|
277
300
|
if (!(arg instanceof wechaty_puppet_contact_pb.ContactSelfSignatureRequest)) {
|
|
278
301
|
throw new Error('Expected argument of type wechaty.puppet.ContactSelfSignatureRequest');
|
|
@@ -427,6 +450,28 @@ function deserialize_wechaty_puppet_DownloadResponse(buffer_arg) {
|
|
|
427
450
|
return wechaty_puppet_download$upload_pb.DownloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
428
451
|
}
|
|
429
452
|
|
|
453
|
+
function serialize_wechaty_puppet_EnterVerifyCodeRequest(arg) {
|
|
454
|
+
if (!(arg instanceof wechaty_puppet_verify$code_pb.EnterVerifyCodeRequest)) {
|
|
455
|
+
throw new Error('Expected argument of type wechaty.puppet.EnterVerifyCodeRequest');
|
|
456
|
+
}
|
|
457
|
+
return Buffer.from(arg.serializeBinary());
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
function deserialize_wechaty_puppet_EnterVerifyCodeRequest(buffer_arg) {
|
|
461
|
+
return wechaty_puppet_verify$code_pb.EnterVerifyCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
function serialize_wechaty_puppet_EnterVerifyCodeResponse(arg) {
|
|
465
|
+
if (!(arg instanceof wechaty_puppet_verify$code_pb.EnterVerifyCodeResponse)) {
|
|
466
|
+
throw new Error('Expected argument of type wechaty.puppet.EnterVerifyCodeResponse');
|
|
467
|
+
}
|
|
468
|
+
return Buffer.from(arg.serializeBinary());
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
function deserialize_wechaty_puppet_EnterVerifyCodeResponse(buffer_arg) {
|
|
472
|
+
return wechaty_puppet_verify$code_pb.EnterVerifyCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
473
|
+
}
|
|
474
|
+
|
|
430
475
|
function serialize_wechaty_puppet_EventRequest(arg) {
|
|
431
476
|
if (!(arg instanceof wechaty_puppet_event_pb.EventRequest)) {
|
|
432
477
|
throw new Error('Expected argument of type wechaty.puppet.EventRequest');
|
|
@@ -2017,6 +2062,17 @@ start: {
|
|
|
2017
2062
|
responseSerialize: serialize_wechaty_puppet_VersionResponse,
|
|
2018
2063
|
responseDeserialize: deserialize_wechaty_puppet_VersionResponse,
|
|
2019
2064
|
},
|
|
2065
|
+
enterVerifyCode: {
|
|
2066
|
+
path: '/wechaty.Puppet/EnterVerifyCode',
|
|
2067
|
+
requestStream: false,
|
|
2068
|
+
responseStream: false,
|
|
2069
|
+
requestType: wechaty_puppet_verify$code_pb.EnterVerifyCodeRequest,
|
|
2070
|
+
responseType: wechaty_puppet_verify$code_pb.EnterVerifyCodeResponse,
|
|
2071
|
+
requestSerialize: serialize_wechaty_puppet_EnterVerifyCodeRequest,
|
|
2072
|
+
requestDeserialize: deserialize_wechaty_puppet_EnterVerifyCodeRequest,
|
|
2073
|
+
responseSerialize: serialize_wechaty_puppet_EnterVerifyCodeResponse,
|
|
2074
|
+
responseDeserialize: deserialize_wechaty_puppet_EnterVerifyCodeResponse,
|
|
2075
|
+
},
|
|
2020
2076
|
// *
|
|
2021
2077
|
//
|
|
2022
2078
|
// Event - Server Stream
|
|
@@ -2080,6 +2136,17 @@ contactSelfQRCode: {
|
|
|
2080
2136
|
responseSerialize: serialize_wechaty_puppet_ContactSelfSignatureResponse,
|
|
2081
2137
|
responseDeserialize: deserialize_wechaty_puppet_ContactSelfSignatureResponse,
|
|
2082
2138
|
},
|
|
2139
|
+
contactSelfRoomAlias: {
|
|
2140
|
+
path: '/wechaty.Puppet/ContactSelfRoomAlias',
|
|
2141
|
+
requestStream: false,
|
|
2142
|
+
responseStream: false,
|
|
2143
|
+
requestType: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest,
|
|
2144
|
+
responseType: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse,
|
|
2145
|
+
requestSerialize: serialize_wechaty_puppet_ContactSelfRoomAliasRequest,
|
|
2146
|
+
requestDeserialize: deserialize_wechaty_puppet_ContactSelfRoomAliasRequest,
|
|
2147
|
+
responseSerialize: serialize_wechaty_puppet_ContactSelfRoomAliasResponse,
|
|
2148
|
+
responseDeserialize: deserialize_wechaty_puppet_ContactSelfRoomAliasResponse,
|
|
2149
|
+
},
|
|
2083
2150
|
// *
|
|
2084
2151
|
//
|
|
2085
2152
|
// Contact
|
|
@@ -18,4 +18,5 @@ import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_
|
|
|
18
18
|
import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
|
|
19
19
|
import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
20
20
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
21
|
+
import * as wechaty_puppet_verify_code_pb from "../wechaty/puppet/verify-code_pb";
|
|
21
22
|
|
package/out/wechaty/puppet_pb.js
CHANGED
|
@@ -47,3 +47,5 @@ var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
|
|
|
47
47
|
goog.object.extend(proto, wechaty_puppet_post_pb);
|
|
48
48
|
var wechaty_puppet_moment_pb = require('../wechaty/puppet/moment_pb.js');
|
|
49
49
|
goog.object.extend(proto, wechaty_puppet_moment_pb);
|
|
50
|
+
var wechaty_puppet_verify$code_pb = require('../wechaty/puppet/verify-code_pb.js');
|
|
51
|
+
goog.object.extend(proto, wechaty_puppet_verify$code_pb);
|
|
@@ -15,6 +15,7 @@ import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
|
|
|
15
15
|
import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_pb";
|
|
16
16
|
import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
17
17
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
18
|
+
import * as wechaty_puppet_verify_code_pb from "../wechaty/puppet/verify-code_pb";
|
|
18
19
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
19
20
|
|
|
20
21
|
type PuppetStart = {
|
|
@@ -71,6 +72,15 @@ type PuppetVersion = {
|
|
|
71
72
|
readonly responseType: typeof wechaty_puppet_base_pb.VersionResponse;
|
|
72
73
|
};
|
|
73
74
|
|
|
75
|
+
type PuppetEnterVerifyCode = {
|
|
76
|
+
readonly methodName: string;
|
|
77
|
+
readonly service: typeof Puppet;
|
|
78
|
+
readonly requestStream: false;
|
|
79
|
+
readonly responseStream: false;
|
|
80
|
+
readonly requestType: typeof wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest;
|
|
81
|
+
readonly responseType: typeof wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse;
|
|
82
|
+
};
|
|
83
|
+
|
|
74
84
|
type PuppetEvent = {
|
|
75
85
|
readonly methodName: string;
|
|
76
86
|
readonly service: typeof Puppet;
|
|
@@ -116,6 +126,15 @@ type PuppetContactSelfSignature = {
|
|
|
116
126
|
readonly responseType: typeof wechaty_puppet_contact_pb.ContactSelfSignatureResponse;
|
|
117
127
|
};
|
|
118
128
|
|
|
129
|
+
type PuppetContactSelfRoomAlias = {
|
|
130
|
+
readonly methodName: string;
|
|
131
|
+
readonly service: typeof Puppet;
|
|
132
|
+
readonly requestStream: false;
|
|
133
|
+
readonly responseStream: false;
|
|
134
|
+
readonly requestType: typeof wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest;
|
|
135
|
+
readonly responseType: typeof wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse;
|
|
136
|
+
};
|
|
137
|
+
|
|
119
138
|
type PuppetContactPayload = {
|
|
120
139
|
readonly methodName: string;
|
|
121
140
|
readonly service: typeof Puppet;
|
|
@@ -817,11 +836,13 @@ export class Puppet {
|
|
|
817
836
|
static readonly Ding: PuppetDing;
|
|
818
837
|
static readonly CurrentUser: PuppetCurrentUser;
|
|
819
838
|
static readonly Version: PuppetVersion;
|
|
839
|
+
static readonly EnterVerifyCode: PuppetEnterVerifyCode;
|
|
820
840
|
static readonly Event: PuppetEvent;
|
|
821
841
|
static readonly DirtyPayload: PuppetDirtyPayload;
|
|
822
842
|
static readonly ContactSelfQRCode: PuppetContactSelfQRCode;
|
|
823
843
|
static readonly ContactSelfName: PuppetContactSelfName;
|
|
824
844
|
static readonly ContactSelfSignature: PuppetContactSelfSignature;
|
|
845
|
+
static readonly ContactSelfRoomAlias: PuppetContactSelfRoomAlias;
|
|
825
846
|
static readonly ContactPayload: PuppetContactPayload;
|
|
826
847
|
static readonly ContactAlias: PuppetContactAlias;
|
|
827
848
|
static readonly ContactAvatar: PuppetContactAvatar;
|
|
@@ -987,6 +1008,15 @@ export class PuppetClient {
|
|
|
987
1008
|
requestMessage: wechaty_puppet_base_pb.VersionRequest,
|
|
988
1009
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.VersionResponse|null) => void
|
|
989
1010
|
): UnaryResponse;
|
|
1011
|
+
enterVerifyCode(
|
|
1012
|
+
requestMessage: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest,
|
|
1013
|
+
metadata: grpc.Metadata,
|
|
1014
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse|null) => void
|
|
1015
|
+
): UnaryResponse;
|
|
1016
|
+
enterVerifyCode(
|
|
1017
|
+
requestMessage: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest,
|
|
1018
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse|null) => void
|
|
1019
|
+
): UnaryResponse;
|
|
990
1020
|
event(requestMessage: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_puppet_event_pb.EventResponse>;
|
|
991
1021
|
dirtyPayload(
|
|
992
1022
|
requestMessage: wechaty_puppet_base_pb.DirtyPayloadRequest,
|
|
@@ -1024,6 +1054,15 @@ export class PuppetClient {
|
|
|
1024
1054
|
requestMessage: wechaty_puppet_contact_pb.ContactSelfSignatureRequest,
|
|
1025
1055
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_contact_pb.ContactSelfSignatureResponse|null) => void
|
|
1026
1056
|
): UnaryResponse;
|
|
1057
|
+
contactSelfRoomAlias(
|
|
1058
|
+
requestMessage: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest,
|
|
1059
|
+
metadata: grpc.Metadata,
|
|
1060
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse|null) => void
|
|
1061
|
+
): UnaryResponse;
|
|
1062
|
+
contactSelfRoomAlias(
|
|
1063
|
+
requestMessage: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest,
|
|
1064
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse|null) => void
|
|
1065
|
+
): UnaryResponse;
|
|
1027
1066
|
contactPayload(
|
|
1028
1067
|
requestMessage: wechaty_puppet_contact_pb.ContactPayloadRequest,
|
|
1029
1068
|
metadata: grpc.Metadata,
|
|
@@ -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,
|
|
@@ -122,6 +132,15 @@ Puppet.ContactSelfSignature = {
|
|
|
122
132
|
responseType: wechaty_puppet_contact_pb.ContactSelfSignatureResponse
|
|
123
133
|
};
|
|
124
134
|
|
|
135
|
+
Puppet.ContactSelfRoomAlias = {
|
|
136
|
+
methodName: "ContactSelfRoomAlias",
|
|
137
|
+
service: Puppet,
|
|
138
|
+
requestStream: false,
|
|
139
|
+
responseStream: false,
|
|
140
|
+
requestType: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest,
|
|
141
|
+
responseType: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse
|
|
142
|
+
};
|
|
143
|
+
|
|
125
144
|
Puppet.ContactPayload = {
|
|
126
145
|
methodName: "ContactPayload",
|
|
127
146
|
service: Puppet,
|
|
@@ -1008,6 +1027,37 @@ PuppetClient.prototype.version = function version(requestMessage, metadata, call
|
|
|
1008
1027
|
};
|
|
1009
1028
|
};
|
|
1010
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
|
+
|
|
1011
1061
|
PuppetClient.prototype.event = function event(requestMessage, metadata) {
|
|
1012
1062
|
var listeners = {
|
|
1013
1063
|
data: [],
|
|
@@ -1171,6 +1221,37 @@ PuppetClient.prototype.contactSelfSignature = function contactSelfSignature(requ
|
|
|
1171
1221
|
};
|
|
1172
1222
|
};
|
|
1173
1223
|
|
|
1224
|
+
PuppetClient.prototype.contactSelfRoomAlias = function contactSelfRoomAlias(requestMessage, metadata, callback) {
|
|
1225
|
+
if (arguments.length === 2) {
|
|
1226
|
+
callback = arguments[1];
|
|
1227
|
+
}
|
|
1228
|
+
var client = grpc.unary(Puppet.ContactSelfRoomAlias, {
|
|
1229
|
+
request: requestMessage,
|
|
1230
|
+
host: this.serviceHost,
|
|
1231
|
+
metadata: metadata,
|
|
1232
|
+
transport: this.options.transport,
|
|
1233
|
+
debug: this.options.debug,
|
|
1234
|
+
onEnd: function (response) {
|
|
1235
|
+
if (callback) {
|
|
1236
|
+
if (response.status !== grpc.Code.OK) {
|
|
1237
|
+
var err = new Error(response.statusMessage);
|
|
1238
|
+
err.code = response.status;
|
|
1239
|
+
err.metadata = response.trailers;
|
|
1240
|
+
callback(err, null);
|
|
1241
|
+
} else {
|
|
1242
|
+
callback(null, response.message);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
return {
|
|
1248
|
+
cancel: function () {
|
|
1249
|
+
callback = null;
|
|
1250
|
+
client.close();
|
|
1251
|
+
}
|
|
1252
|
+
};
|
|
1253
|
+
};
|
|
1254
|
+
|
|
1174
1255
|
PuppetClient.prototype.contactPayload = function contactPayload(requestMessage, metadata, callback) {
|
|
1175
1256
|
if (arguments.length === 2) {
|
|
1176
1257
|
callback = arguments[1];
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED