@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
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
// source: wechaty/puppet/verify-code.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
|
+
|
|
18
|
+
goog.exportSymbol('proto.wechaty.puppet.EnterVerifyCodeRequest', null, global);
|
|
19
|
+
goog.exportSymbol('proto.wechaty.puppet.EnterVerifyCodeResponse', null, global);
|
|
20
|
+
/**
|
|
21
|
+
* Generated by JsPbCodeGenerator.
|
|
22
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
23
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
24
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
25
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
26
|
+
* valid.
|
|
27
|
+
* @extends {jspb.Message}
|
|
28
|
+
* @constructor
|
|
29
|
+
*/
|
|
30
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest = function(opt_data) {
|
|
31
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
32
|
+
};
|
|
33
|
+
goog.inherits(proto.wechaty.puppet.EnterVerifyCodeRequest, jspb.Message);
|
|
34
|
+
if (goog.DEBUG && !COMPILED) {
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
* @override
|
|
38
|
+
*/
|
|
39
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.displayName = 'proto.wechaty.puppet.EnterVerifyCodeRequest';
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Generated by JsPbCodeGenerator.
|
|
43
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
44
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
45
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
46
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
47
|
+
* valid.
|
|
48
|
+
* @extends {jspb.Message}
|
|
49
|
+
* @constructor
|
|
50
|
+
*/
|
|
51
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse = function(opt_data) {
|
|
52
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
53
|
+
};
|
|
54
|
+
goog.inherits(proto.wechaty.puppet.EnterVerifyCodeResponse, jspb.Message);
|
|
55
|
+
if (goog.DEBUG && !COMPILED) {
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
* @override
|
|
59
|
+
*/
|
|
60
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse.displayName = 'proto.wechaty.puppet.EnterVerifyCodeResponse';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
66
|
+
/**
|
|
67
|
+
* Creates an object representation of this proto.
|
|
68
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
69
|
+
* Optional fields that are not set will be set to undefined.
|
|
70
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71
|
+
* For the list of reserved names please see:
|
|
72
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
73
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
74
|
+
* JSPB instance for transitional soy proto support:
|
|
75
|
+
* http://goto/soy-param-migration
|
|
76
|
+
* @return {!Object}
|
|
77
|
+
*/
|
|
78
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
79
|
+
return proto.wechaty.puppet.EnterVerifyCodeRequest.toObject(opt_includeInstance, this);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Static version of the {@see toObject} method.
|
|
85
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
86
|
+
* the JSPB instance for transitional soy proto support:
|
|
87
|
+
* http://goto/soy-param-migration
|
|
88
|
+
* @param {!proto.wechaty.puppet.EnterVerifyCodeRequest} msg The msg instance to transform.
|
|
89
|
+
* @return {!Object}
|
|
90
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91
|
+
*/
|
|
92
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.toObject = function(includeInstance, msg) {
|
|
93
|
+
var f, obj = {
|
|
94
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
95
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
if (includeInstance) {
|
|
99
|
+
obj.$jspbMessageInstance = msg;
|
|
100
|
+
}
|
|
101
|
+
return obj;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Deserializes binary data (in protobuf wire format).
|
|
108
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
109
|
+
* @return {!proto.wechaty.puppet.EnterVerifyCodeRequest}
|
|
110
|
+
*/
|
|
111
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.deserializeBinary = function(bytes) {
|
|
112
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
113
|
+
var msg = new proto.wechaty.puppet.EnterVerifyCodeRequest;
|
|
114
|
+
return proto.wechaty.puppet.EnterVerifyCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
120
|
+
* given reader into the given message object.
|
|
121
|
+
* @param {!proto.wechaty.puppet.EnterVerifyCodeRequest} msg The message object to deserialize into.
|
|
122
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
123
|
+
* @return {!proto.wechaty.puppet.EnterVerifyCodeRequest}
|
|
124
|
+
*/
|
|
125
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
126
|
+
while (reader.nextField()) {
|
|
127
|
+
if (reader.isEndGroup()) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
var field = reader.getFieldNumber();
|
|
131
|
+
switch (field) {
|
|
132
|
+
case 1:
|
|
133
|
+
var value = /** @type {string} */ (reader.readString());
|
|
134
|
+
msg.setId(value);
|
|
135
|
+
break;
|
|
136
|
+
case 2:
|
|
137
|
+
var value = /** @type {string} */ (reader.readString());
|
|
138
|
+
msg.setCode(value);
|
|
139
|
+
break;
|
|
140
|
+
default:
|
|
141
|
+
reader.skipField();
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return msg;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
151
|
+
* @return {!Uint8Array}
|
|
152
|
+
*/
|
|
153
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.prototype.serializeBinary = function() {
|
|
154
|
+
var writer = new jspb.BinaryWriter();
|
|
155
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.serializeBinaryToWriter(this, writer);
|
|
156
|
+
return writer.getResultBuffer();
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
162
|
+
* format), writing to the given BinaryWriter.
|
|
163
|
+
* @param {!proto.wechaty.puppet.EnterVerifyCodeRequest} message
|
|
164
|
+
* @param {!jspb.BinaryWriter} writer
|
|
165
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
166
|
+
*/
|
|
167
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
168
|
+
var f = undefined;
|
|
169
|
+
f = message.getId();
|
|
170
|
+
if (f.length > 0) {
|
|
171
|
+
writer.writeString(
|
|
172
|
+
1,
|
|
173
|
+
f
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
f = message.getCode();
|
|
177
|
+
if (f.length > 0) {
|
|
178
|
+
writer.writeString(
|
|
179
|
+
2,
|
|
180
|
+
f
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* optional string id = 1;
|
|
188
|
+
* @return {string}
|
|
189
|
+
*/
|
|
190
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.prototype.getId = function() {
|
|
191
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @param {string} value
|
|
197
|
+
* @return {!proto.wechaty.puppet.EnterVerifyCodeRequest} returns this
|
|
198
|
+
*/
|
|
199
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.prototype.setId = function(value) {
|
|
200
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* optional string code = 2;
|
|
206
|
+
* @return {string}
|
|
207
|
+
*/
|
|
208
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.prototype.getCode = function() {
|
|
209
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @param {string} value
|
|
215
|
+
* @return {!proto.wechaty.puppet.EnterVerifyCodeRequest} returns this
|
|
216
|
+
*/
|
|
217
|
+
proto.wechaty.puppet.EnterVerifyCodeRequest.prototype.setCode = function(value) {
|
|
218
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
226
|
+
/**
|
|
227
|
+
* Creates an object representation of this proto.
|
|
228
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
229
|
+
* Optional fields that are not set will be set to undefined.
|
|
230
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
231
|
+
* For the list of reserved names please see:
|
|
232
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
233
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
234
|
+
* JSPB instance for transitional soy proto support:
|
|
235
|
+
* http://goto/soy-param-migration
|
|
236
|
+
* @return {!Object}
|
|
237
|
+
*/
|
|
238
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
239
|
+
return proto.wechaty.puppet.EnterVerifyCodeResponse.toObject(opt_includeInstance, this);
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Static version of the {@see toObject} method.
|
|
245
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
246
|
+
* the JSPB instance for transitional soy proto support:
|
|
247
|
+
* http://goto/soy-param-migration
|
|
248
|
+
* @param {!proto.wechaty.puppet.EnterVerifyCodeResponse} msg The msg instance to transform.
|
|
249
|
+
* @return {!Object}
|
|
250
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
251
|
+
*/
|
|
252
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse.toObject = function(includeInstance, msg) {
|
|
253
|
+
var f, obj = {
|
|
254
|
+
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
if (includeInstance) {
|
|
258
|
+
obj.$jspbMessageInstance = msg;
|
|
259
|
+
}
|
|
260
|
+
return obj;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Deserializes binary data (in protobuf wire format).
|
|
267
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
268
|
+
* @return {!proto.wechaty.puppet.EnterVerifyCodeResponse}
|
|
269
|
+
*/
|
|
270
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse.deserializeBinary = function(bytes) {
|
|
271
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
272
|
+
var msg = new proto.wechaty.puppet.EnterVerifyCodeResponse;
|
|
273
|
+
return proto.wechaty.puppet.EnterVerifyCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
279
|
+
* given reader into the given message object.
|
|
280
|
+
* @param {!proto.wechaty.puppet.EnterVerifyCodeResponse} msg The message object to deserialize into.
|
|
281
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
282
|
+
* @return {!proto.wechaty.puppet.EnterVerifyCodeResponse}
|
|
283
|
+
*/
|
|
284
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
285
|
+
while (reader.nextField()) {
|
|
286
|
+
if (reader.isEndGroup()) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
var field = reader.getFieldNumber();
|
|
290
|
+
switch (field) {
|
|
291
|
+
default:
|
|
292
|
+
reader.skipField();
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return msg;
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
302
|
+
* @return {!Uint8Array}
|
|
303
|
+
*/
|
|
304
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse.prototype.serializeBinary = function() {
|
|
305
|
+
var writer = new jspb.BinaryWriter();
|
|
306
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse.serializeBinaryToWriter(this, writer);
|
|
307
|
+
return writer.getResultBuffer();
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
313
|
+
* format), writing to the given BinaryWriter.
|
|
314
|
+
* @param {!proto.wechaty.puppet.EnterVerifyCodeResponse} message
|
|
315
|
+
* @param {!jspb.BinaryWriter} writer
|
|
316
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
317
|
+
*/
|
|
318
|
+
proto.wechaty.puppet.EnterVerifyCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
319
|
+
var f = undefined;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -9,7 +9,7 @@ info:
|
|
|
9
9
|
|
|
10
10
|
Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
|
|
11
11
|
top of the Wechaty Puppet Abstraction and the gRPC proto definition.
|
|
12
|
-
version: 1.0.
|
|
12
|
+
version: 1.0.60
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -24,6 +24,29 @@ consumes:
|
|
|
24
24
|
produces:
|
|
25
25
|
- application/json
|
|
26
26
|
paths:
|
|
27
|
+
'/contact/room/{roomId}/alias/{alias}':
|
|
28
|
+
put:
|
|
29
|
+
operationId: Puppet_ContactSelfRoomAlias
|
|
30
|
+
responses:
|
|
31
|
+
'200':
|
|
32
|
+
description: A successful response.
|
|
33
|
+
schema:
|
|
34
|
+
$ref: '#/definitions/puppetContactSelfRoomAliasResponse'
|
|
35
|
+
default:
|
|
36
|
+
description: An unexpected error response.
|
|
37
|
+
schema:
|
|
38
|
+
$ref: '#/definitions/rpcStatus'
|
|
39
|
+
parameters:
|
|
40
|
+
- name: roomId
|
|
41
|
+
in: path
|
|
42
|
+
required: true
|
|
43
|
+
type: string
|
|
44
|
+
- name: alias
|
|
45
|
+
in: path
|
|
46
|
+
required: true
|
|
47
|
+
type: string
|
|
48
|
+
tags:
|
|
49
|
+
- Puppet
|
|
27
50
|
/contacts:
|
|
28
51
|
get:
|
|
29
52
|
summary: >-
|
|
@@ -754,6 +777,29 @@ paths:
|
|
|
754
777
|
type: string
|
|
755
778
|
tags:
|
|
756
779
|
- Puppet
|
|
780
|
+
/enter_verify_code:
|
|
781
|
+
post:
|
|
782
|
+
operationId: Puppet_EnterVerifyCode
|
|
783
|
+
responses:
|
|
784
|
+
'200':
|
|
785
|
+
description: A successful response.
|
|
786
|
+
schema:
|
|
787
|
+
$ref: '#/definitions/puppetEnterVerifyCodeResponse'
|
|
788
|
+
default:
|
|
789
|
+
description: An unexpected error response.
|
|
790
|
+
schema:
|
|
791
|
+
$ref: '#/definitions/rpcStatus'
|
|
792
|
+
parameters:
|
|
793
|
+
- name: id
|
|
794
|
+
in: query
|
|
795
|
+
required: false
|
|
796
|
+
type: string
|
|
797
|
+
- name: code
|
|
798
|
+
in: query
|
|
799
|
+
required: false
|
|
800
|
+
type: string
|
|
801
|
+
tags:
|
|
802
|
+
- Puppet
|
|
757
803
|
/events:
|
|
758
804
|
get:
|
|
759
805
|
summary: '*'
|
|
@@ -2520,6 +2566,8 @@ definitions:
|
|
|
2520
2566
|
properties:
|
|
2521
2567
|
qrcode:
|
|
2522
2568
|
type: string
|
|
2569
|
+
puppetContactSelfRoomAliasResponse:
|
|
2570
|
+
type: object
|
|
2523
2571
|
puppetContactSelfSignatureRequest:
|
|
2524
2572
|
type: object
|
|
2525
2573
|
properties:
|
|
@@ -2586,6 +2634,8 @@ definitions:
|
|
|
2586
2634
|
chunk:
|
|
2587
2635
|
type: string
|
|
2588
2636
|
format: byte
|
|
2637
|
+
puppetEnterVerifyCodeResponse:
|
|
2638
|
+
type: object
|
|
2589
2639
|
puppetEventResponse:
|
|
2590
2640
|
type: object
|
|
2591
2641
|
properties:
|
|
@@ -2623,6 +2673,7 @@ definitions:
|
|
|
2623
2673
|
- EVENT_TYPE_POST_COMMENT
|
|
2624
2674
|
- EVENT_TYPE_POST_TAP
|
|
2625
2675
|
- EVENT_TYPE_ROOM_ANNOUNCE
|
|
2676
|
+
- EVENT_TYPE_VERIFY_CODE
|
|
2626
2677
|
default: EVENT_TYPE_UNSPECIFIED
|
|
2627
2678
|
puppetFriendshipAcceptResponse:
|
|
2628
2679
|
type: object
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Wechaty Puppet Service OpenAPI Specification",
|
|
5
5
|
"description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.60",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -26,6 +26,42 @@
|
|
|
26
26
|
"application/json"
|
|
27
27
|
],
|
|
28
28
|
"paths": {
|
|
29
|
+
"/contact/room/{roomId}/alias/{alias}": {
|
|
30
|
+
"put": {
|
|
31
|
+
"operationId": "Puppet_ContactSelfRoomAlias",
|
|
32
|
+
"responses": {
|
|
33
|
+
"200": {
|
|
34
|
+
"description": "A successful response.",
|
|
35
|
+
"schema": {
|
|
36
|
+
"$ref": "#/definitions/puppetContactSelfRoomAliasResponse"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"default": {
|
|
40
|
+
"description": "An unexpected error response.",
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/definitions/rpcStatus"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"parameters": [
|
|
47
|
+
{
|
|
48
|
+
"name": "roomId",
|
|
49
|
+
"in": "path",
|
|
50
|
+
"required": true,
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "alias",
|
|
55
|
+
"in": "path",
|
|
56
|
+
"required": true,
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"tags": [
|
|
61
|
+
"Puppet"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
29
65
|
"/contacts": {
|
|
30
66
|
"get": {
|
|
31
67
|
"summary": "*\nHuan(202002): consider changing response to a stream in the future for better performance",
|
|
@@ -1106,6 +1142,42 @@
|
|
|
1106
1142
|
]
|
|
1107
1143
|
}
|
|
1108
1144
|
},
|
|
1145
|
+
"/enter_verify_code": {
|
|
1146
|
+
"post": {
|
|
1147
|
+
"operationId": "Puppet_EnterVerifyCode",
|
|
1148
|
+
"responses": {
|
|
1149
|
+
"200": {
|
|
1150
|
+
"description": "A successful response.",
|
|
1151
|
+
"schema": {
|
|
1152
|
+
"$ref": "#/definitions/puppetEnterVerifyCodeResponse"
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
"default": {
|
|
1156
|
+
"description": "An unexpected error response.",
|
|
1157
|
+
"schema": {
|
|
1158
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"parameters": [
|
|
1163
|
+
{
|
|
1164
|
+
"name": "id",
|
|
1165
|
+
"in": "query",
|
|
1166
|
+
"required": false,
|
|
1167
|
+
"type": "string"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"name": "code",
|
|
1171
|
+
"in": "query",
|
|
1172
|
+
"required": false,
|
|
1173
|
+
"type": "string"
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
"tags": [
|
|
1177
|
+
"Puppet"
|
|
1178
|
+
]
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1109
1181
|
"/events": {
|
|
1110
1182
|
"get": {
|
|
1111
1183
|
"summary": "*",
|
|
@@ -3716,6 +3788,9 @@
|
|
|
3716
3788
|
}
|
|
3717
3789
|
}
|
|
3718
3790
|
},
|
|
3791
|
+
"puppetContactSelfRoomAliasResponse": {
|
|
3792
|
+
"type": "object"
|
|
3793
|
+
},
|
|
3719
3794
|
"puppetContactSelfSignatureRequest": {
|
|
3720
3795
|
"type": "object",
|
|
3721
3796
|
"properties": {
|
|
@@ -3802,6 +3877,9 @@
|
|
|
3802
3877
|
}
|
|
3803
3878
|
}
|
|
3804
3879
|
},
|
|
3880
|
+
"puppetEnterVerifyCodeResponse": {
|
|
3881
|
+
"type": "object"
|
|
3882
|
+
},
|
|
3805
3883
|
"puppetEventResponse": {
|
|
3806
3884
|
"type": "object",
|
|
3807
3885
|
"properties": {
|
|
@@ -3843,7 +3921,8 @@
|
|
|
3843
3921
|
"EVENT_TYPE_TAG_GROUP",
|
|
3844
3922
|
"EVENT_TYPE_POST_COMMENT",
|
|
3845
3923
|
"EVENT_TYPE_POST_TAP",
|
|
3846
|
-
"EVENT_TYPE_ROOM_ANNOUNCE"
|
|
3924
|
+
"EVENT_TYPE_ROOM_ANNOUNCE",
|
|
3925
|
+
"EVENT_TYPE_VERIFY_CODE"
|
|
3847
3926
|
],
|
|
3848
3927
|
"default": "EVENT_TYPE_UNSPECIFIED"
|
|
3849
3928
|
},
|
|
@@ -21,6 +21,7 @@ import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_
|
|
|
21
21
|
import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
|
|
22
22
|
import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
23
23
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
24
|
+
import * as wechaty_puppet_verify_code_pb from "../wechaty/puppet/verify-code_pb";
|
|
24
25
|
|
|
25
26
|
interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
26
27
|
start: IPuppetService_IStart;
|
|
@@ -29,11 +30,13 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
29
30
|
ding: IPuppetService_IDing;
|
|
30
31
|
currentUser: IPuppetService_ICurrentUser;
|
|
31
32
|
version: IPuppetService_IVersion;
|
|
33
|
+
enterVerifyCode: IPuppetService_IEnterVerifyCode;
|
|
32
34
|
event: IPuppetService_IEvent;
|
|
33
35
|
dirtyPayload: IPuppetService_IDirtyPayload;
|
|
34
36
|
contactSelfQRCode: IPuppetService_IContactSelfQRCode;
|
|
35
37
|
contactSelfName: IPuppetService_IContactSelfName;
|
|
36
38
|
contactSelfSignature: IPuppetService_IContactSelfSignature;
|
|
39
|
+
contactSelfRoomAlias: IPuppetService_IContactSelfRoomAlias;
|
|
37
40
|
contactPayload: IPuppetService_IContactPayload;
|
|
38
41
|
contactAlias: IPuppetService_IContactAlias;
|
|
39
42
|
contactAvatar: IPuppetService_IContactAvatar;
|
|
@@ -167,6 +170,15 @@ interface IPuppetService_IVersion extends grpc.MethodDefinition<wechaty_puppet_b
|
|
|
167
170
|
responseSerialize: grpc.serialize<wechaty_puppet_base_pb.VersionResponse>;
|
|
168
171
|
responseDeserialize: grpc.deserialize<wechaty_puppet_base_pb.VersionResponse>;
|
|
169
172
|
}
|
|
173
|
+
interface IPuppetService_IEnterVerifyCode extends grpc.MethodDefinition<wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse> {
|
|
174
|
+
path: "/wechaty.Puppet/EnterVerifyCode";
|
|
175
|
+
requestStream: false;
|
|
176
|
+
responseStream: false;
|
|
177
|
+
requestSerialize: grpc.serialize<wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest>;
|
|
178
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest>;
|
|
179
|
+
responseSerialize: grpc.serialize<wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
180
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
181
|
+
}
|
|
170
182
|
interface IPuppetService_IEvent extends grpc.MethodDefinition<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse> {
|
|
171
183
|
path: "/wechaty.Puppet/Event";
|
|
172
184
|
requestStream: false;
|
|
@@ -212,6 +224,15 @@ interface IPuppetService_IContactSelfSignature extends grpc.MethodDefinition<wec
|
|
|
212
224
|
responseSerialize: grpc.serialize<wechaty_puppet_contact_pb.ContactSelfSignatureResponse>;
|
|
213
225
|
responseDeserialize: grpc.deserialize<wechaty_puppet_contact_pb.ContactSelfSignatureResponse>;
|
|
214
226
|
}
|
|
227
|
+
interface IPuppetService_IContactSelfRoomAlias extends grpc.MethodDefinition<wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse> {
|
|
228
|
+
path: "/wechaty.Puppet/ContactSelfRoomAlias";
|
|
229
|
+
requestStream: false;
|
|
230
|
+
responseStream: false;
|
|
231
|
+
requestSerialize: grpc.serialize<wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest>;
|
|
232
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest>;
|
|
233
|
+
responseSerialize: grpc.serialize<wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse>;
|
|
234
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse>;
|
|
235
|
+
}
|
|
215
236
|
interface IPuppetService_IContactPayload extends grpc.MethodDefinition<wechaty_puppet_contact_pb.ContactPayloadRequest, wechaty_puppet_contact_pb.ContactPayloadResponse> {
|
|
216
237
|
path: "/wechaty.Puppet/ContactPayload";
|
|
217
238
|
requestStream: false;
|
|
@@ -915,11 +936,13 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
915
936
|
ding: grpc.handleUnaryCall<wechaty_puppet_base_pb.DingRequest, wechaty_puppet_base_pb.DingResponse>;
|
|
916
937
|
currentUser: grpc.handleUnaryCall<wechaty_puppet_base_pb.CurrentUserRequest, wechaty_puppet_base_pb.CurrentUserResponse>;
|
|
917
938
|
version: grpc.handleUnaryCall<wechaty_puppet_base_pb.VersionRequest, wechaty_puppet_base_pb.VersionResponse>;
|
|
939
|
+
enterVerifyCode: grpc.handleUnaryCall<wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
918
940
|
event: grpc.handleServerStreamingCall<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse>;
|
|
919
941
|
dirtyPayload: grpc.handleUnaryCall<wechaty_puppet_base_pb.DirtyPayloadRequest, wechaty_puppet_base_pb.DirtyPayloadResponse>;
|
|
920
942
|
contactSelfQRCode: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfQRCodeRequest, wechaty_puppet_contact_pb.ContactSelfQRCodeResponse>;
|
|
921
943
|
contactSelfName: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfNameRequest, wechaty_puppet_contact_pb.ContactSelfNameResponse>;
|
|
922
944
|
contactSelfSignature: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfSignatureRequest, wechaty_puppet_contact_pb.ContactSelfSignatureResponse>;
|
|
945
|
+
contactSelfRoomAlias: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse>;
|
|
923
946
|
contactPayload: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactPayloadRequest, wechaty_puppet_contact_pb.ContactPayloadResponse>;
|
|
924
947
|
contactAlias: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactAliasRequest, wechaty_puppet_contact_pb.ContactAliasResponse>;
|
|
925
948
|
contactAvatar: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactAvatarRequest, wechaty_puppet_contact_pb.ContactAvatarResponse>;
|
|
@@ -1018,6 +1041,9 @@ export interface IPuppetClient {
|
|
|
1018
1041
|
version(request: wechaty_puppet_base_pb.VersionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
|
|
1019
1042
|
version(request: wechaty_puppet_base_pb.VersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
|
|
1020
1043
|
version(request: wechaty_puppet_base_pb.VersionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
|
|
1044
|
+
enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1045
|
+
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
|
+
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;
|
|
1021
1047
|
event(request: wechaty_puppet_event_pb.EventRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1022
1048
|
event(request: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1023
1049
|
dirtyPayload(request: wechaty_puppet_base_pb.DirtyPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DirtyPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1032,6 +1058,9 @@ export interface IPuppetClient {
|
|
|
1032
1058
|
contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1033
1059
|
contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1034
1060
|
contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1061
|
+
contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1062
|
+
contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1063
|
+
contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1035
1064
|
contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1036
1065
|
contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1037
1066
|
contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1285,6 +1314,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1285
1314
|
public version(request: wechaty_puppet_base_pb.VersionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
|
|
1286
1315
|
public version(request: wechaty_puppet_base_pb.VersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
|
|
1287
1316
|
public version(request: wechaty_puppet_base_pb.VersionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
|
|
1317
|
+
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
|
+
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
|
+
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;
|
|
1288
1320
|
public event(request: wechaty_puppet_event_pb.EventRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1289
1321
|
public event(request: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1290
1322
|
public dirtyPayload(request: wechaty_puppet_base_pb.DirtyPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DirtyPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1299,6 +1331,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1299
1331
|
public contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1300
1332
|
public contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1301
1333
|
public contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1334
|
+
public contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1335
|
+
public contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1336
|
+
public contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1302
1337
|
public contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1303
1338
|
public contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1304
1339
|
public contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|