@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.
Files changed (65) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  4. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  5. package/dist/cjs/out/wechaty/puppet/verify-code_grpc_pb.js +1 -0
  6. package/dist/cjs/out/wechaty/puppet/verify-code_pb.d.ts +45 -0
  7. package/dist/cjs/out/wechaty/puppet/verify-code_pb.js +323 -0
  8. package/dist/cjs/out/wechaty/puppet/verify-code_pb_service.d.ts +3 -0
  9. package/dist/cjs/out/wechaty/puppet/verify-code_pb_service.js +3 -0
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +27 -1
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +42 -2
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +34 -0
  14. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  15. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +20 -0
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +41 -0
  18. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  19. package/dist/cjs/proto/wechaty/puppet/verify-code.proto +14 -0
  20. package/dist/cjs/proto/wechaty/puppet.proto +6 -1
  21. package/dist/cjs/src/package-json.js +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  24. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  25. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  26. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  27. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  28. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  29. package/dist/esm/out/wechaty/puppet/verify-code_grpc_pb.js +1 -0
  30. package/dist/esm/out/wechaty/puppet/verify-code_pb.d.ts +45 -0
  31. package/dist/esm/out/wechaty/puppet/verify-code_pb.js +323 -0
  32. package/dist/esm/out/wechaty/puppet/verify-code_pb_service.d.ts +3 -0
  33. package/dist/esm/out/wechaty/puppet/verify-code_pb_service.js +3 -0
  34. package/dist/esm/out/wechaty/puppet.openapi.yaml +27 -1
  35. package/dist/esm/out/wechaty/puppet.swagger.json +42 -2
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  37. package/dist/esm/out/wechaty/puppet_grpc_pb.js +34 -0
  38. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  39. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  40. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +20 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.js +41 -0
  42. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  43. package/dist/esm/proto/wechaty/puppet/verify-code.proto +14 -0
  44. package/dist/esm/proto/wechaty/puppet.proto +6 -1
  45. package/dist/esm/src/package-json.js +1 -1
  46. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  47. package/dist/esm/tests/puppet-server-impl.js +5 -0
  48. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  49. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  50. package/out/wechaty/puppet/event_pb.js +2 -1
  51. package/out/wechaty/puppet/verify-code_grpc_pb.js +1 -0
  52. package/out/wechaty/puppet/verify-code_pb.d.ts +45 -0
  53. package/out/wechaty/puppet/verify-code_pb.js +323 -0
  54. package/out/wechaty/puppet/verify-code_pb_service.d.ts +3 -0
  55. package/out/wechaty/puppet/verify-code_pb_service.js +3 -0
  56. package/out/wechaty/puppet.openapi.yaml +27 -1
  57. package/out/wechaty/puppet.swagger.json +42 -2
  58. package/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  59. package/out/wechaty/puppet_grpc_pb.js +34 -0
  60. package/out/wechaty/puppet_pb.d.ts +1 -0
  61. package/out/wechaty/puppet_pb.js +2 -0
  62. package/out/wechaty/puppet_pb_service.d.ts +20 -0
  63. package/out/wechaty/puppet_pb_service.js +41 -0
  64. package/package.json +1 -1
  65. package/src/package-json.ts +1 -1
@@ -18,6 +18,7 @@ const puppetFileList = [
18
18
  '../../out/wechaty/puppet/post_pb.js',
19
19
  '../../out/wechaty/puppet/conversation_pb.js',
20
20
  '../../out/wechaty/puppet/util_pb.js',
21
+ '../../out/wechaty/puppet/verify-code_pb.js',
21
22
 
22
23
  '../../out/wechaty/puppet_grpc_pb.js',
23
24
  '../../out/wechaty/puppet_pb.js',
@@ -40,6 +40,7 @@ export * from '../../out/wechaty/puppet/moment_pb.js'
40
40
  export * from '../../out/wechaty/puppet/post_pb.js'
41
41
  export * from '../../out/wechaty/puppet/conversation_pb.js'
42
42
  export * from '../../out/wechaty/puppet/util_pb.js'
43
+ export * from '../../out/wechaty/puppet/verify-code_pb.js'
43
44
 
44
45
  export * from '../../out/wechaty/puppet_grpc_pb.js'
45
46
  export * from '../../out/wechaty/puppet_pb.js'
@@ -78,6 +78,7 @@ export interface EventTypeMap {
78
78
  EVENT_TYPE_POST_COMMENT: 30;
79
79
  EVENT_TYPE_POST_TAP: 31;
80
80
  EVENT_TYPE_ROOM_ANNOUNCE: 32;
81
+ EVENT_TYPE_VERIFY_CODE: 33;
81
82
  }
82
83
 
83
84
  export const EventType: EventTypeMap;
@@ -435,7 +435,8 @@ proto.wechaty.puppet.EventType = {
435
435
  EVENT_TYPE_TAG_GROUP: 29,
436
436
  EVENT_TYPE_POST_COMMENT: 30,
437
437
  EVENT_TYPE_POST_TAP: 31,
438
- EVENT_TYPE_ROOM_ANNOUNCE: 32
438
+ EVENT_TYPE_ROOM_ANNOUNCE: 32,
439
+ EVENT_TYPE_VERIFY_CODE: 33
439
440
  };
440
441
 
441
442
  goog.object.extend(exports, proto.wechaty.puppet);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,45 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/verify-code.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class EnterVerifyCodeRequest extends jspb.Message {
7
+ getId(): string;
8
+ setId(value: string): void;
9
+
10
+ getCode(): string;
11
+ setCode(value: string): void;
12
+
13
+ serializeBinary(): Uint8Array;
14
+ toObject(includeInstance?: boolean): EnterVerifyCodeRequest.AsObject;
15
+ static toObject(includeInstance: boolean, msg: EnterVerifyCodeRequest): EnterVerifyCodeRequest.AsObject;
16
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
17
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
18
+ static serializeBinaryToWriter(message: EnterVerifyCodeRequest, writer: jspb.BinaryWriter): void;
19
+ static deserializeBinary(bytes: Uint8Array): EnterVerifyCodeRequest;
20
+ static deserializeBinaryFromReader(message: EnterVerifyCodeRequest, reader: jspb.BinaryReader): EnterVerifyCodeRequest;
21
+ }
22
+
23
+ export namespace EnterVerifyCodeRequest {
24
+ export type AsObject = {
25
+ id: string,
26
+ code: string,
27
+ }
28
+ }
29
+
30
+ export class EnterVerifyCodeResponse extends jspb.Message {
31
+ serializeBinary(): Uint8Array;
32
+ toObject(includeInstance?: boolean): EnterVerifyCodeResponse.AsObject;
33
+ static toObject(includeInstance: boolean, msg: EnterVerifyCodeResponse): EnterVerifyCodeResponse.AsObject;
34
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
35
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
36
+ static serializeBinaryToWriter(message: EnterVerifyCodeResponse, writer: jspb.BinaryWriter): void;
37
+ static deserializeBinary(bytes: Uint8Array): EnterVerifyCodeResponse;
38
+ static deserializeBinaryFromReader(message: EnterVerifyCodeResponse, reader: jspb.BinaryReader): EnterVerifyCodeResponse;
39
+ }
40
+
41
+ export namespace EnterVerifyCodeResponse {
42
+ export type AsObject = {
43
+ }
44
+ }
45
+
@@ -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);
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/verify-code.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/verify-code.proto
3
+
@@ -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.59
12
+ version: 1.0.61
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -777,6 +777,29 @@ paths:
777
777
  type: string
778
778
  tags:
779
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
780
803
  /events:
781
804
  get:
782
805
  summary: '*'
@@ -2611,6 +2634,8 @@ definitions:
2611
2634
  chunk:
2612
2635
  type: string
2613
2636
  format: byte
2637
+ puppetEnterVerifyCodeResponse:
2638
+ type: object
2614
2639
  puppetEventResponse:
2615
2640
  type: object
2616
2641
  properties:
@@ -2648,6 +2673,7 @@ definitions:
2648
2673
  - EVENT_TYPE_POST_COMMENT
2649
2674
  - EVENT_TYPE_POST_TAP
2650
2675
  - EVENT_TYPE_ROOM_ANNOUNCE
2676
+ - EVENT_TYPE_VERIFY_CODE
2651
2677
  default: EVENT_TYPE_UNSPECIFIED
2652
2678
  puppetFriendshipAcceptResponse:
2653
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.59",
6
+ "version": "1.0.61",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -1142,6 +1142,42 @@
1142
1142
  ]
1143
1143
  }
1144
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
+ },
1145
1181
  "/events": {
1146
1182
  "get": {
1147
1183
  "summary": "*",
@@ -3841,6 +3877,9 @@
3841
3877
  }
3842
3878
  }
3843
3879
  },
3880
+ "puppetEnterVerifyCodeResponse": {
3881
+ "type": "object"
3882
+ },
3844
3883
  "puppetEventResponse": {
3845
3884
  "type": "object",
3846
3885
  "properties": {
@@ -3882,7 +3921,8 @@
3882
3921
  "EVENT_TYPE_TAG_GROUP",
3883
3922
  "EVENT_TYPE_POST_COMMENT",
3884
3923
  "EVENT_TYPE_POST_TAP",
3885
- "EVENT_TYPE_ROOM_ANNOUNCE"
3924
+ "EVENT_TYPE_ROOM_ANNOUNCE",
3925
+ "EVENT_TYPE_VERIFY_CODE"
3886
3926
  ],
3887
3927
  "default": "EVENT_TYPE_UNSPECIFIED"
3888
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,6 +30,7 @@ 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;
@@ -168,6 +170,15 @@ interface IPuppetService_IVersion extends grpc.MethodDefinition<wechaty_puppet_b
168
170
  responseSerialize: grpc.serialize<wechaty_puppet_base_pb.VersionResponse>;
169
171
  responseDeserialize: grpc.deserialize<wechaty_puppet_base_pb.VersionResponse>;
170
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
+ }
171
182
  interface IPuppetService_IEvent extends grpc.MethodDefinition<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse> {
172
183
  path: "/wechaty.Puppet/Event";
173
184
  requestStream: false;
@@ -925,6 +936,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
925
936
  ding: grpc.handleUnaryCall<wechaty_puppet_base_pb.DingRequest, wechaty_puppet_base_pb.DingResponse>;
926
937
  currentUser: grpc.handleUnaryCall<wechaty_puppet_base_pb.CurrentUserRequest, wechaty_puppet_base_pb.CurrentUserResponse>;
927
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>;
928
940
  event: grpc.handleServerStreamingCall<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse>;
929
941
  dirtyPayload: grpc.handleUnaryCall<wechaty_puppet_base_pb.DirtyPayloadRequest, wechaty_puppet_base_pb.DirtyPayloadResponse>;
930
942
  contactSelfQRCode: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfQRCodeRequest, wechaty_puppet_contact_pb.ContactSelfQRCodeResponse>;
@@ -1029,6 +1041,9 @@ export interface IPuppetClient {
1029
1041
  version(request: wechaty_puppet_base_pb.VersionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
1030
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;
1031
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;
1032
1047
  event(request: wechaty_puppet_event_pb.EventRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
1033
1048
  event(request: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
1034
1049
  dirtyPayload(request: wechaty_puppet_base_pb.DirtyPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DirtyPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -1299,6 +1314,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1299
1314
  public version(request: wechaty_puppet_base_pb.VersionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
1300
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;
1301
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;
1302
1320
  public event(request: wechaty_puppet_event_pb.EventRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
1303
1321
  public event(request: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
1304
1322
  public dirtyPayload(request: wechaty_puppet_base_pb.DirtyPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DirtyPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -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)) {
@@ -449,6 +450,28 @@ function deserialize_wechaty_puppet_DownloadResponse(buffer_arg) {
449
450
  return wechaty_puppet_download$upload_pb.DownloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
450
451
  }
451
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
+
452
475
  function serialize_wechaty_puppet_EventRequest(arg) {
453
476
  if (!(arg instanceof wechaty_puppet_event_pb.EventRequest)) {
454
477
  throw new Error('Expected argument of type wechaty.puppet.EventRequest');
@@ -2039,6 +2062,17 @@ start: {
2039
2062
  responseSerialize: serialize_wechaty_puppet_VersionResponse,
2040
2063
  responseDeserialize: deserialize_wechaty_puppet_VersionResponse,
2041
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
+ },
2042
2076
  // *
2043
2077
  //
2044
2078
  // Event - Server Stream
@@ -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
 
@@ -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);