@juzi/wechaty-grpc 1.0.0 → 1.0.1

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/channel_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +53 -0
  5. package/dist/cjs/out/wechaty/puppet/channel_pb.js +380 -0
  6. package/dist/cjs/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/channel_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +90 -0
  9. package/dist/cjs/out/wechaty/puppet/message_pb.js +1394 -711
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +78 -1
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +122 -2
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +35 -0
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +67 -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 +38 -0
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  18. package/dist/cjs/proto/wechaty/puppet/channel.proto +17 -0
  19. package/dist/cjs/proto/wechaty/puppet/message.proto +19 -0
  20. package/dist/cjs/proto/wechaty/puppet.proto +13 -0
  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 +10 -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/channel_grpc_pb.js +1 -0
  28. package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +53 -0
  29. package/dist/esm/out/wechaty/puppet/channel_pb.js +380 -0
  30. package/dist/esm/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
  31. package/dist/esm/out/wechaty/puppet/channel_pb_service.js +3 -0
  32. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +90 -0
  33. package/dist/esm/out/wechaty/puppet/message_pb.js +1394 -711
  34. package/dist/esm/out/wechaty/puppet.openapi.yaml +78 -1
  35. package/dist/esm/out/wechaty/puppet.swagger.json +122 -2
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +35 -0
  37. package/dist/esm/out/wechaty/puppet_grpc_pb.js +67 -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 +38 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  42. package/dist/esm/proto/wechaty/puppet/channel.proto +17 -0
  43. package/dist/esm/proto/wechaty/puppet/message.proto +19 -0
  44. package/dist/esm/proto/wechaty/puppet.proto +13 -0
  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 +10 -0
  48. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  49. package/out/wechaty/puppet/channel_grpc_pb.js +1 -0
  50. package/out/wechaty/puppet/channel_pb.d.ts +53 -0
  51. package/out/wechaty/puppet/channel_pb.js +380 -0
  52. package/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
  53. package/out/wechaty/puppet/channel_pb_service.js +3 -0
  54. package/out/wechaty/puppet/message_pb.d.ts +90 -0
  55. package/out/wechaty/puppet/message_pb.js +1394 -711
  56. package/out/wechaty/puppet.openapi.yaml +78 -1
  57. package/out/wechaty/puppet.swagger.json +122 -2
  58. package/out/wechaty/puppet_grpc_pb.d.ts +35 -0
  59. package/out/wechaty/puppet_grpc_pb.js +67 -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 +38 -0
  63. package/out/wechaty/puppet_pb_service.js +80 -0
  64. package/package.json +1 -1
  65. package/src/package-json.ts +1 -1
@@ -15,6 +15,7 @@ const puppetFileList = [
15
15
  '../../out/wechaty/puppet/room-member_pb.js',
16
16
  '../../out/wechaty/puppet/tag_pb.js',
17
17
  '../../out/wechaty/puppet/url-link_pb.js',
18
+ '../../out/wechaty/puppet/channel_pb.js',
18
19
 
19
20
  '../../out/wechaty/puppet_grpc_pb.js',
20
21
  '../../out/wechaty/puppet_pb.js',
@@ -37,6 +37,7 @@ export * from '../../out/wechaty/puppet/room-invitation_pb.js'
37
37
  export * from '../../out/wechaty/puppet/room-member_pb.js'
38
38
  export * from '../../out/wechaty/puppet/tag_pb.js'
39
39
  export * from '../../out/wechaty/puppet/url-link_pb.js'
40
+ export * from '../../out/wechaty/puppet/channel_pb.js'
40
41
 
41
42
  export * from '../../out/wechaty/puppet_grpc_pb.js'
42
43
  export * from '../../out/wechaty/puppet_pb.js'
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,53 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/channel.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class ChannelPayload extends jspb.Message {
7
+ getAvatar(): string;
8
+ setAvatar(value: string): void;
9
+
10
+ getCoverUrl(): string;
11
+ setCoverUrl(value: string): void;
12
+
13
+ getDesc(): string;
14
+ setDesc(value: string): void;
15
+
16
+ getExtras(): string;
17
+ setExtras(value: string): void;
18
+
19
+ getFeedType(): number;
20
+ setFeedType(value: number): void;
21
+
22
+ getNickname(): string;
23
+ setNickname(value: string): void;
24
+
25
+ getThumbUrl(): string;
26
+ setThumbUrl(value: string): void;
27
+
28
+ getUrl(): string;
29
+ setUrl(value: string): void;
30
+
31
+ serializeBinary(): Uint8Array;
32
+ toObject(includeInstance?: boolean): ChannelPayload.AsObject;
33
+ static toObject(includeInstance: boolean, msg: ChannelPayload): ChannelPayload.AsObject;
34
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
35
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
36
+ static serializeBinaryToWriter(message: ChannelPayload, writer: jspb.BinaryWriter): void;
37
+ static deserializeBinary(bytes: Uint8Array): ChannelPayload;
38
+ static deserializeBinaryFromReader(message: ChannelPayload, reader: jspb.BinaryReader): ChannelPayload;
39
+ }
40
+
41
+ export namespace ChannelPayload {
42
+ export type AsObject = {
43
+ avatar: string,
44
+ coverUrl: string,
45
+ desc: string,
46
+ extras: string,
47
+ feedType: number,
48
+ nickname: string,
49
+ thumbUrl: string,
50
+ url: string,
51
+ }
52
+ }
53
+
@@ -0,0 +1,380 @@
1
+ // source: wechaty/puppet/channel.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.ChannelPayload', null, global);
19
+ /**
20
+ * Generated by JsPbCodeGenerator.
21
+ * @param {Array=} opt_data Optional initial data array, typically from a
22
+ * server response, or constructed directly in Javascript. The array is used
23
+ * in place and becomes part of the constructed object. It is not cloned.
24
+ * If no data is provided, the constructed object will be empty, but still
25
+ * valid.
26
+ * @extends {jspb.Message}
27
+ * @constructor
28
+ */
29
+ proto.wechaty.puppet.ChannelPayload = function(opt_data) {
30
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
31
+ };
32
+ goog.inherits(proto.wechaty.puppet.ChannelPayload, jspb.Message);
33
+ if (goog.DEBUG && !COMPILED) {
34
+ /**
35
+ * @public
36
+ * @override
37
+ */
38
+ proto.wechaty.puppet.ChannelPayload.displayName = 'proto.wechaty.puppet.ChannelPayload';
39
+ }
40
+
41
+
42
+
43
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44
+ /**
45
+ * Creates an object representation of this proto.
46
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47
+ * Optional fields that are not set will be set to undefined.
48
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49
+ * For the list of reserved names please see:
50
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
51
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52
+ * JSPB instance for transitional soy proto support:
53
+ * http://goto/soy-param-migration
54
+ * @return {!Object}
55
+ */
56
+ proto.wechaty.puppet.ChannelPayload.prototype.toObject = function(opt_includeInstance) {
57
+ return proto.wechaty.puppet.ChannelPayload.toObject(opt_includeInstance, this);
58
+ };
59
+
60
+
61
+ /**
62
+ * Static version of the {@see toObject} method.
63
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64
+ * the JSPB instance for transitional soy proto support:
65
+ * http://goto/soy-param-migration
66
+ * @param {!proto.wechaty.puppet.ChannelPayload} msg The msg instance to transform.
67
+ * @return {!Object}
68
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69
+ */
70
+ proto.wechaty.puppet.ChannelPayload.toObject = function(includeInstance, msg) {
71
+ var f, obj = {
72
+ avatar: jspb.Message.getFieldWithDefault(msg, 1, ""),
73
+ coverUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
74
+ desc: jspb.Message.getFieldWithDefault(msg, 3, ""),
75
+ extras: jspb.Message.getFieldWithDefault(msg, 4, ""),
76
+ feedType: jspb.Message.getFieldWithDefault(msg, 5, 0),
77
+ nickname: jspb.Message.getFieldWithDefault(msg, 6, ""),
78
+ thumbUrl: jspb.Message.getFieldWithDefault(msg, 7, ""),
79
+ url: jspb.Message.getFieldWithDefault(msg, 8, "")
80
+ };
81
+
82
+ if (includeInstance) {
83
+ obj.$jspbMessageInstance = msg;
84
+ }
85
+ return obj;
86
+ };
87
+ }
88
+
89
+
90
+ /**
91
+ * Deserializes binary data (in protobuf wire format).
92
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
93
+ * @return {!proto.wechaty.puppet.ChannelPayload}
94
+ */
95
+ proto.wechaty.puppet.ChannelPayload.deserializeBinary = function(bytes) {
96
+ var reader = new jspb.BinaryReader(bytes);
97
+ var msg = new proto.wechaty.puppet.ChannelPayload;
98
+ return proto.wechaty.puppet.ChannelPayload.deserializeBinaryFromReader(msg, reader);
99
+ };
100
+
101
+
102
+ /**
103
+ * Deserializes binary data (in protobuf wire format) from the
104
+ * given reader into the given message object.
105
+ * @param {!proto.wechaty.puppet.ChannelPayload} msg The message object to deserialize into.
106
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
107
+ * @return {!proto.wechaty.puppet.ChannelPayload}
108
+ */
109
+ proto.wechaty.puppet.ChannelPayload.deserializeBinaryFromReader = function(msg, reader) {
110
+ while (reader.nextField()) {
111
+ if (reader.isEndGroup()) {
112
+ break;
113
+ }
114
+ var field = reader.getFieldNumber();
115
+ switch (field) {
116
+ case 1:
117
+ var value = /** @type {string} */ (reader.readString());
118
+ msg.setAvatar(value);
119
+ break;
120
+ case 2:
121
+ var value = /** @type {string} */ (reader.readString());
122
+ msg.setCoverUrl(value);
123
+ break;
124
+ case 3:
125
+ var value = /** @type {string} */ (reader.readString());
126
+ msg.setDesc(value);
127
+ break;
128
+ case 4:
129
+ var value = /** @type {string} */ (reader.readString());
130
+ msg.setExtras(value);
131
+ break;
132
+ case 5:
133
+ var value = /** @type {number} */ (reader.readInt32());
134
+ msg.setFeedType(value);
135
+ break;
136
+ case 6:
137
+ var value = /** @type {string} */ (reader.readString());
138
+ msg.setNickname(value);
139
+ break;
140
+ case 7:
141
+ var value = /** @type {string} */ (reader.readString());
142
+ msg.setThumbUrl(value);
143
+ break;
144
+ case 8:
145
+ var value = /** @type {string} */ (reader.readString());
146
+ msg.setUrl(value);
147
+ break;
148
+ default:
149
+ reader.skipField();
150
+ break;
151
+ }
152
+ }
153
+ return msg;
154
+ };
155
+
156
+
157
+ /**
158
+ * Serializes the message to binary data (in protobuf wire format).
159
+ * @return {!Uint8Array}
160
+ */
161
+ proto.wechaty.puppet.ChannelPayload.prototype.serializeBinary = function() {
162
+ var writer = new jspb.BinaryWriter();
163
+ proto.wechaty.puppet.ChannelPayload.serializeBinaryToWriter(this, writer);
164
+ return writer.getResultBuffer();
165
+ };
166
+
167
+
168
+ /**
169
+ * Serializes the given message to binary data (in protobuf wire
170
+ * format), writing to the given BinaryWriter.
171
+ * @param {!proto.wechaty.puppet.ChannelPayload} message
172
+ * @param {!jspb.BinaryWriter} writer
173
+ * @suppress {unusedLocalVariables} f is only used for nested messages
174
+ */
175
+ proto.wechaty.puppet.ChannelPayload.serializeBinaryToWriter = function(message, writer) {
176
+ var f = undefined;
177
+ f = message.getAvatar();
178
+ if (f.length > 0) {
179
+ writer.writeString(
180
+ 1,
181
+ f
182
+ );
183
+ }
184
+ f = message.getCoverUrl();
185
+ if (f.length > 0) {
186
+ writer.writeString(
187
+ 2,
188
+ f
189
+ );
190
+ }
191
+ f = message.getDesc();
192
+ if (f.length > 0) {
193
+ writer.writeString(
194
+ 3,
195
+ f
196
+ );
197
+ }
198
+ f = message.getExtras();
199
+ if (f.length > 0) {
200
+ writer.writeString(
201
+ 4,
202
+ f
203
+ );
204
+ }
205
+ f = message.getFeedType();
206
+ if (f !== 0) {
207
+ writer.writeInt32(
208
+ 5,
209
+ f
210
+ );
211
+ }
212
+ f = message.getNickname();
213
+ if (f.length > 0) {
214
+ writer.writeString(
215
+ 6,
216
+ f
217
+ );
218
+ }
219
+ f = message.getThumbUrl();
220
+ if (f.length > 0) {
221
+ writer.writeString(
222
+ 7,
223
+ f
224
+ );
225
+ }
226
+ f = message.getUrl();
227
+ if (f.length > 0) {
228
+ writer.writeString(
229
+ 8,
230
+ f
231
+ );
232
+ }
233
+ };
234
+
235
+
236
+ /**
237
+ * optional string avatar = 1;
238
+ * @return {string}
239
+ */
240
+ proto.wechaty.puppet.ChannelPayload.prototype.getAvatar = function() {
241
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
242
+ };
243
+
244
+
245
+ /**
246
+ * @param {string} value
247
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
248
+ */
249
+ proto.wechaty.puppet.ChannelPayload.prototype.setAvatar = function(value) {
250
+ return jspb.Message.setProto3StringField(this, 1, value);
251
+ };
252
+
253
+
254
+ /**
255
+ * optional string cover_url = 2;
256
+ * @return {string}
257
+ */
258
+ proto.wechaty.puppet.ChannelPayload.prototype.getCoverUrl = function() {
259
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
260
+ };
261
+
262
+
263
+ /**
264
+ * @param {string} value
265
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
266
+ */
267
+ proto.wechaty.puppet.ChannelPayload.prototype.setCoverUrl = function(value) {
268
+ return jspb.Message.setProto3StringField(this, 2, value);
269
+ };
270
+
271
+
272
+ /**
273
+ * optional string desc = 3;
274
+ * @return {string}
275
+ */
276
+ proto.wechaty.puppet.ChannelPayload.prototype.getDesc = function() {
277
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
278
+ };
279
+
280
+
281
+ /**
282
+ * @param {string} value
283
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
284
+ */
285
+ proto.wechaty.puppet.ChannelPayload.prototype.setDesc = function(value) {
286
+ return jspb.Message.setProto3StringField(this, 3, value);
287
+ };
288
+
289
+
290
+ /**
291
+ * optional string extras = 4;
292
+ * @return {string}
293
+ */
294
+ proto.wechaty.puppet.ChannelPayload.prototype.getExtras = function() {
295
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
296
+ };
297
+
298
+
299
+ /**
300
+ * @param {string} value
301
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
302
+ */
303
+ proto.wechaty.puppet.ChannelPayload.prototype.setExtras = function(value) {
304
+ return jspb.Message.setProto3StringField(this, 4, value);
305
+ };
306
+
307
+
308
+ /**
309
+ * optional int32 feed_type = 5;
310
+ * @return {number}
311
+ */
312
+ proto.wechaty.puppet.ChannelPayload.prototype.getFeedType = function() {
313
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
314
+ };
315
+
316
+
317
+ /**
318
+ * @param {number} value
319
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
320
+ */
321
+ proto.wechaty.puppet.ChannelPayload.prototype.setFeedType = function(value) {
322
+ return jspb.Message.setProto3IntField(this, 5, value);
323
+ };
324
+
325
+
326
+ /**
327
+ * optional string nickname = 6;
328
+ * @return {string}
329
+ */
330
+ proto.wechaty.puppet.ChannelPayload.prototype.getNickname = function() {
331
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
332
+ };
333
+
334
+
335
+ /**
336
+ * @param {string} value
337
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
338
+ */
339
+ proto.wechaty.puppet.ChannelPayload.prototype.setNickname = function(value) {
340
+ return jspb.Message.setProto3StringField(this, 6, value);
341
+ };
342
+
343
+
344
+ /**
345
+ * optional string thumb_url = 7;
346
+ * @return {string}
347
+ */
348
+ proto.wechaty.puppet.ChannelPayload.prototype.getThumbUrl = function() {
349
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
350
+ };
351
+
352
+
353
+ /**
354
+ * @param {string} value
355
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
356
+ */
357
+ proto.wechaty.puppet.ChannelPayload.prototype.setThumbUrl = function(value) {
358
+ return jspb.Message.setProto3StringField(this, 7, value);
359
+ };
360
+
361
+
362
+ /**
363
+ * optional string url = 8;
364
+ * @return {string}
365
+ */
366
+ proto.wechaty.puppet.ChannelPayload.prototype.getUrl = function() {
367
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
368
+ };
369
+
370
+
371
+ /**
372
+ * @param {string} value
373
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
374
+ */
375
+ proto.wechaty.puppet.ChannelPayload.prototype.setUrl = function(value) {
376
+ return jspb.Message.setProto3StringField(this, 8, value);
377
+ };
378
+
379
+
380
+ goog.object.extend(exports, proto.wechaty.puppet);
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/channel.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/channel.proto
3
+
@@ -8,6 +8,7 @@ import * as wechaty_puppet_image_pb from "../../wechaty/puppet/image_pb";
8
8
  import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
9
9
  import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
10
10
  import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
11
+ import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
11
12
 
12
13
  export class MessagePayloadRequest extends jspb.Message {
13
14
  getId(): string;
@@ -305,6 +306,48 @@ export namespace MessageUrlResponse {
305
306
  }
306
307
  }
307
308
 
309
+ export class MessageChannelRequest extends jspb.Message {
310
+ getId(): string;
311
+ setId(value: string): void;
312
+
313
+ serializeBinary(): Uint8Array;
314
+ toObject(includeInstance?: boolean): MessageChannelRequest.AsObject;
315
+ static toObject(includeInstance: boolean, msg: MessageChannelRequest): MessageChannelRequest.AsObject;
316
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
317
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
318
+ static serializeBinaryToWriter(message: MessageChannelRequest, writer: jspb.BinaryWriter): void;
319
+ static deserializeBinary(bytes: Uint8Array): MessageChannelRequest;
320
+ static deserializeBinaryFromReader(message: MessageChannelRequest, reader: jspb.BinaryReader): MessageChannelRequest;
321
+ }
322
+
323
+ export namespace MessageChannelRequest {
324
+ export type AsObject = {
325
+ id: string,
326
+ }
327
+ }
328
+
329
+ export class MessageChannelResponse extends jspb.Message {
330
+ hasChannel(): boolean;
331
+ clearChannel(): void;
332
+ getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
333
+ setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
334
+
335
+ serializeBinary(): Uint8Array;
336
+ toObject(includeInstance?: boolean): MessageChannelResponse.AsObject;
337
+ static toObject(includeInstance: boolean, msg: MessageChannelResponse): MessageChannelResponse.AsObject;
338
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
339
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
340
+ static serializeBinaryToWriter(message: MessageChannelResponse, writer: jspb.BinaryWriter): void;
341
+ static deserializeBinary(bytes: Uint8Array): MessageChannelResponse;
342
+ static deserializeBinaryFromReader(message: MessageChannelResponse, reader: jspb.BinaryReader): MessageChannelResponse;
343
+ }
344
+
345
+ export namespace MessageChannelResponse {
346
+ export type AsObject = {
347
+ channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
348
+ }
349
+ }
350
+
308
351
  export class MessageSendContactRequest extends jspb.Message {
309
352
  getConversationId(): string;
310
353
  setConversationId(value: string): void;
@@ -751,6 +794,52 @@ export namespace MessageSendLocationResponse {
751
794
  }
752
795
  }
753
796
 
797
+ export class MessageSendChannelRequest extends jspb.Message {
798
+ getConversationId(): string;
799
+ setConversationId(value: string): void;
800
+
801
+ hasChannel(): boolean;
802
+ clearChannel(): void;
803
+ getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
804
+ setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
805
+
806
+ serializeBinary(): Uint8Array;
807
+ toObject(includeInstance?: boolean): MessageSendChannelRequest.AsObject;
808
+ static toObject(includeInstance: boolean, msg: MessageSendChannelRequest): MessageSendChannelRequest.AsObject;
809
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
810
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
811
+ static serializeBinaryToWriter(message: MessageSendChannelRequest, writer: jspb.BinaryWriter): void;
812
+ static deserializeBinary(bytes: Uint8Array): MessageSendChannelRequest;
813
+ static deserializeBinaryFromReader(message: MessageSendChannelRequest, reader: jspb.BinaryReader): MessageSendChannelRequest;
814
+ }
815
+
816
+ export namespace MessageSendChannelRequest {
817
+ export type AsObject = {
818
+ conversationId: string,
819
+ channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
820
+ }
821
+ }
822
+
823
+ export class MessageSendChannelResponse extends jspb.Message {
824
+ getId(): string;
825
+ setId(value: string): void;
826
+
827
+ serializeBinary(): Uint8Array;
828
+ toObject(includeInstance?: boolean): MessageSendChannelResponse.AsObject;
829
+ static toObject(includeInstance: boolean, msg: MessageSendChannelResponse): MessageSendChannelResponse.AsObject;
830
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
831
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
832
+ static serializeBinaryToWriter(message: MessageSendChannelResponse, writer: jspb.BinaryWriter): void;
833
+ static deserializeBinary(bytes: Uint8Array): MessageSendChannelResponse;
834
+ static deserializeBinaryFromReader(message: MessageSendChannelResponse, reader: jspb.BinaryReader): MessageSendChannelResponse;
835
+ }
836
+
837
+ export namespace MessageSendChannelResponse {
838
+ export type AsObject = {
839
+ id: string,
840
+ }
841
+ }
842
+
754
843
  export interface MessageTypeMap {
755
844
  MESSAGE_TYPE_UNSPECIFIED: 0;
756
845
  MESSAGE_TYPE_ATTACHMENT: 1;
@@ -767,6 +856,7 @@ export interface MessageTypeMap {
767
856
  MESSAGE_TYPE_RED_ENVELOPE: 12;
768
857
  MESSAGE_TYPE_RECALLED: 13;
769
858
  MESSAGE_TYPE_URL: 14;
859
+ MESSAGE_TYPE_CHANNEL: 15;
770
860
  }
771
861
 
772
862
  export const MessageType: MessageTypeMap;