@juzi/wechaty-grpc 1.0.0 → 1.0.3

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 +102 -0
  9. package/dist/cjs/out/wechaty/puppet/message_pb.js +1500 -721
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +82 -4
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +129 -4
  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 +21 -3
  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 +102 -0
  33. package/dist/esm/out/wechaty/puppet/message_pb.js +1500 -721
  34. package/dist/esm/out/wechaty/puppet.openapi.yaml +82 -4
  35. package/dist/esm/out/wechaty/puppet.swagger.json +129 -4
  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 +21 -3
  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 +102 -0
  55. package/out/wechaty/puppet/message_pb.js +1500 -721
  56. package/out/wechaty/puppet.openapi.yaml +82 -4
  57. package/out/wechaty/puppet.swagger.json +129 -4
  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
@@ -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;
@@ -64,6 +65,11 @@ export class MessagePayloadResponse extends jspb.Message {
64
65
  getReceiveTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
65
66
  setReceiveTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
66
67
 
68
+ hasQuoteId(): boolean;
69
+ clearQuoteId(): void;
70
+ getQuoteId(): string;
71
+ setQuoteId(value: string): void;
72
+
67
73
  serializeBinary(): Uint8Array;
68
74
  toObject(includeInstance?: boolean): MessagePayloadResponse.AsObject;
69
75
  static toObject(includeInstance: boolean, msg: MessagePayloadResponse): MessagePayloadResponse.AsObject;
@@ -86,6 +92,7 @@ export namespace MessagePayloadResponse {
86
92
  listenerId: string,
87
93
  mentionIdsList: Array<string>,
88
94
  receiveTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
95
+ quoteId: string,
89
96
  }
90
97
  }
91
98
 
@@ -305,6 +312,48 @@ export namespace MessageUrlResponse {
305
312
  }
306
313
  }
307
314
 
315
+ export class MessageChannelRequest extends jspb.Message {
316
+ getId(): string;
317
+ setId(value: string): void;
318
+
319
+ serializeBinary(): Uint8Array;
320
+ toObject(includeInstance?: boolean): MessageChannelRequest.AsObject;
321
+ static toObject(includeInstance: boolean, msg: MessageChannelRequest): MessageChannelRequest.AsObject;
322
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
323
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
324
+ static serializeBinaryToWriter(message: MessageChannelRequest, writer: jspb.BinaryWriter): void;
325
+ static deserializeBinary(bytes: Uint8Array): MessageChannelRequest;
326
+ static deserializeBinaryFromReader(message: MessageChannelRequest, reader: jspb.BinaryReader): MessageChannelRequest;
327
+ }
328
+
329
+ export namespace MessageChannelRequest {
330
+ export type AsObject = {
331
+ id: string,
332
+ }
333
+ }
334
+
335
+ export class MessageChannelResponse extends jspb.Message {
336
+ hasChannel(): boolean;
337
+ clearChannel(): void;
338
+ getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
339
+ setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
340
+
341
+ serializeBinary(): Uint8Array;
342
+ toObject(includeInstance?: boolean): MessageChannelResponse.AsObject;
343
+ static toObject(includeInstance: boolean, msg: MessageChannelResponse): MessageChannelResponse.AsObject;
344
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
345
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
346
+ static serializeBinaryToWriter(message: MessageChannelResponse, writer: jspb.BinaryWriter): void;
347
+ static deserializeBinary(bytes: Uint8Array): MessageChannelResponse;
348
+ static deserializeBinaryFromReader(message: MessageChannelResponse, reader: jspb.BinaryReader): MessageChannelResponse;
349
+ }
350
+
351
+ export namespace MessageChannelResponse {
352
+ export type AsObject = {
353
+ channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
354
+ }
355
+ }
356
+
308
357
  export class MessageSendContactRequest extends jspb.Message {
309
358
  getConversationId(): string;
310
359
  setConversationId(value: string): void;
@@ -417,6 +466,11 @@ export class MessageSendTextRequest extends jspb.Message {
417
466
  setMentionalIdsList(value: Array<string>): void;
418
467
  addMentionalIds(value: string, index?: number): string;
419
468
 
469
+ hasQuoteId(): boolean;
470
+ clearQuoteId(): void;
471
+ getQuoteId(): string;
472
+ setQuoteId(value: string): void;
473
+
420
474
  serializeBinary(): Uint8Array;
421
475
  toObject(includeInstance?: boolean): MessageSendTextRequest.AsObject;
422
476
  static toObject(includeInstance: boolean, msg: MessageSendTextRequest): MessageSendTextRequest.AsObject;
@@ -432,6 +486,7 @@ export namespace MessageSendTextRequest {
432
486
  conversationId: string,
433
487
  text: string,
434
488
  mentionalIdsList: Array<string>,
489
+ quoteId: string,
435
490
  }
436
491
  }
437
492
 
@@ -751,6 +806,52 @@ export namespace MessageSendLocationResponse {
751
806
  }
752
807
  }
753
808
 
809
+ export class MessageSendChannelRequest extends jspb.Message {
810
+ getConversationId(): string;
811
+ setConversationId(value: string): void;
812
+
813
+ hasChannel(): boolean;
814
+ clearChannel(): void;
815
+ getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
816
+ setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
817
+
818
+ serializeBinary(): Uint8Array;
819
+ toObject(includeInstance?: boolean): MessageSendChannelRequest.AsObject;
820
+ static toObject(includeInstance: boolean, msg: MessageSendChannelRequest): MessageSendChannelRequest.AsObject;
821
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
822
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
823
+ static serializeBinaryToWriter(message: MessageSendChannelRequest, writer: jspb.BinaryWriter): void;
824
+ static deserializeBinary(bytes: Uint8Array): MessageSendChannelRequest;
825
+ static deserializeBinaryFromReader(message: MessageSendChannelRequest, reader: jspb.BinaryReader): MessageSendChannelRequest;
826
+ }
827
+
828
+ export namespace MessageSendChannelRequest {
829
+ export type AsObject = {
830
+ conversationId: string,
831
+ channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
832
+ }
833
+ }
834
+
835
+ export class MessageSendChannelResponse extends jspb.Message {
836
+ getId(): string;
837
+ setId(value: string): void;
838
+
839
+ serializeBinary(): Uint8Array;
840
+ toObject(includeInstance?: boolean): MessageSendChannelResponse.AsObject;
841
+ static toObject(includeInstance: boolean, msg: MessageSendChannelResponse): MessageSendChannelResponse.AsObject;
842
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
843
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
844
+ static serializeBinaryToWriter(message: MessageSendChannelResponse, writer: jspb.BinaryWriter): void;
845
+ static deserializeBinary(bytes: Uint8Array): MessageSendChannelResponse;
846
+ static deserializeBinaryFromReader(message: MessageSendChannelResponse, reader: jspb.BinaryReader): MessageSendChannelResponse;
847
+ }
848
+
849
+ export namespace MessageSendChannelResponse {
850
+ export type AsObject = {
851
+ id: string,
852
+ }
853
+ }
854
+
754
855
  export interface MessageTypeMap {
755
856
  MESSAGE_TYPE_UNSPECIFIED: 0;
756
857
  MESSAGE_TYPE_ATTACHMENT: 1;
@@ -767,6 +868,7 @@ export interface MessageTypeMap {
767
868
  MESSAGE_TYPE_RED_ENVELOPE: 12;
768
869
  MESSAGE_TYPE_RECALLED: 13;
769
870
  MESSAGE_TYPE_URL: 14;
871
+ MESSAGE_TYPE_CHANNEL: 15;
770
872
  }
771
873
 
772
874
  export const MessageType: MessageTypeMap;