@juzi/wechaty-grpc 1.0.93 → 1.0.95

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 (63) hide show
  1. package/dist/cjs/out/wechaty/puppet/channel-card_grpc_pb.js +1 -0
  2. package/dist/cjs/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
  3. package/dist/cjs/out/wechaty/puppet/channel-card_pb.js +320 -0
  4. package/dist/cjs/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
  5. package/dist/cjs/out/wechaty/puppet/channel-card_pb_service.js +3 -0
  6. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
  7. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +56 -2
  8. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +90 -0
  9. package/dist/cjs/out/wechaty/puppet/message_pb.js +1708 -1025
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +85 -1
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +130 -4
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  14. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  15. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  16. package/dist/cjs/proto/wechaty/puppet/channel-card.proto +15 -0
  17. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +3 -0
  18. package/dist/cjs/proto/wechaty/puppet/message.proto +39 -23
  19. package/dist/cjs/proto/wechaty/puppet.proto +11 -0
  20. package/dist/cjs/src/package-json.js +1 -1
  21. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  23. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  24. package/dist/esm/out/wechaty/puppet/channel-card_grpc_pb.js +1 -0
  25. package/dist/esm/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
  26. package/dist/esm/out/wechaty/puppet/channel-card_pb.js +320 -0
  27. package/dist/esm/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
  28. package/dist/esm/out/wechaty/puppet/channel-card_pb_service.js +3 -0
  29. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
  30. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +56 -2
  31. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +90 -0
  32. package/dist/esm/out/wechaty/puppet/message_pb.js +1708 -1025
  33. package/dist/esm/out/wechaty/puppet.openapi.yaml +85 -1
  34. package/dist/esm/out/wechaty/puppet.swagger.json +130 -4
  35. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  37. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  38. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  39. package/dist/esm/proto/wechaty/puppet/channel-card.proto +15 -0
  40. package/dist/esm/proto/wechaty/puppet/chat-history.proto +3 -0
  41. package/dist/esm/proto/wechaty/puppet/message.proto +39 -23
  42. package/dist/esm/proto/wechaty/puppet.proto +11 -0
  43. package/dist/esm/src/package-json.js +1 -1
  44. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  45. package/dist/esm/tests/puppet-server-impl.js +10 -0
  46. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  47. package/out/wechaty/puppet/channel-card_grpc_pb.js +1 -0
  48. package/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
  49. package/out/wechaty/puppet/channel-card_pb.js +320 -0
  50. package/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
  51. package/out/wechaty/puppet/channel-card_pb_service.js +3 -0
  52. package/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
  53. package/out/wechaty/puppet/chat-history_pb.js +56 -2
  54. package/out/wechaty/puppet/message_pb.d.ts +90 -0
  55. package/out/wechaty/puppet/message_pb.js +1708 -1025
  56. package/out/wechaty/puppet.openapi.yaml +85 -1
  57. package/out/wechaty/puppet.swagger.json +130 -4
  58. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  59. package/out/wechaty/puppet_grpc_pb.js +66 -0
  60. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  61. package/out/wechaty/puppet_pb_service.js +80 -0
  62. package/package.json +1 -1
  63. package/src/package-json.ts +1 -1
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,45 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/channel-card.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class ChannelCardPayload extends jspb.Message {
7
+ getAvatar(): string;
8
+ setAvatar(value: string): void;
9
+
10
+ getExtras(): string;
11
+ setExtras(value: string): void;
12
+
13
+ getNickname(): string;
14
+ setNickname(value: string): void;
15
+
16
+ getUrl(): string;
17
+ setUrl(value: string): void;
18
+
19
+ getAuthIconUrl(): string;
20
+ setAuthIconUrl(value: string): void;
21
+
22
+ getAuthJob(): string;
23
+ setAuthJob(value: string): void;
24
+
25
+ serializeBinary(): Uint8Array;
26
+ toObject(includeInstance?: boolean): ChannelCardPayload.AsObject;
27
+ static toObject(includeInstance: boolean, msg: ChannelCardPayload): ChannelCardPayload.AsObject;
28
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
29
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
30
+ static serializeBinaryToWriter(message: ChannelCardPayload, writer: jspb.BinaryWriter): void;
31
+ static deserializeBinary(bytes: Uint8Array): ChannelCardPayload;
32
+ static deserializeBinaryFromReader(message: ChannelCardPayload, reader: jspb.BinaryReader): ChannelCardPayload;
33
+ }
34
+
35
+ export namespace ChannelCardPayload {
36
+ export type AsObject = {
37
+ avatar: string,
38
+ extras: string,
39
+ nickname: string,
40
+ url: string,
41
+ authIconUrl: string,
42
+ authJob: string,
43
+ }
44
+ }
45
+
@@ -0,0 +1,320 @@
1
+ // source: wechaty/puppet/channel-card.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.ChannelCardPayload', 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.ChannelCardPayload = function(opt_data) {
30
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
31
+ };
32
+ goog.inherits(proto.wechaty.puppet.ChannelCardPayload, jspb.Message);
33
+ if (goog.DEBUG && !COMPILED) {
34
+ /**
35
+ * @public
36
+ * @override
37
+ */
38
+ proto.wechaty.puppet.ChannelCardPayload.displayName = 'proto.wechaty.puppet.ChannelCardPayload';
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.ChannelCardPayload.prototype.toObject = function(opt_includeInstance) {
57
+ return proto.wechaty.puppet.ChannelCardPayload.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.ChannelCardPayload} msg The msg instance to transform.
67
+ * @return {!Object}
68
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69
+ */
70
+ proto.wechaty.puppet.ChannelCardPayload.toObject = function(includeInstance, msg) {
71
+ var f, obj = {
72
+ avatar: jspb.Message.getFieldWithDefault(msg, 1, ""),
73
+ extras: jspb.Message.getFieldWithDefault(msg, 2, ""),
74
+ nickname: jspb.Message.getFieldWithDefault(msg, 3, ""),
75
+ url: jspb.Message.getFieldWithDefault(msg, 4, ""),
76
+ authIconUrl: jspb.Message.getFieldWithDefault(msg, 5, ""),
77
+ authJob: jspb.Message.getFieldWithDefault(msg, 6, "")
78
+ };
79
+
80
+ if (includeInstance) {
81
+ obj.$jspbMessageInstance = msg;
82
+ }
83
+ return obj;
84
+ };
85
+ }
86
+
87
+
88
+ /**
89
+ * Deserializes binary data (in protobuf wire format).
90
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
91
+ * @return {!proto.wechaty.puppet.ChannelCardPayload}
92
+ */
93
+ proto.wechaty.puppet.ChannelCardPayload.deserializeBinary = function(bytes) {
94
+ var reader = new jspb.BinaryReader(bytes);
95
+ var msg = new proto.wechaty.puppet.ChannelCardPayload;
96
+ return proto.wechaty.puppet.ChannelCardPayload.deserializeBinaryFromReader(msg, reader);
97
+ };
98
+
99
+
100
+ /**
101
+ * Deserializes binary data (in protobuf wire format) from the
102
+ * given reader into the given message object.
103
+ * @param {!proto.wechaty.puppet.ChannelCardPayload} msg The message object to deserialize into.
104
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
105
+ * @return {!proto.wechaty.puppet.ChannelCardPayload}
106
+ */
107
+ proto.wechaty.puppet.ChannelCardPayload.deserializeBinaryFromReader = function(msg, reader) {
108
+ while (reader.nextField()) {
109
+ if (reader.isEndGroup()) {
110
+ break;
111
+ }
112
+ var field = reader.getFieldNumber();
113
+ switch (field) {
114
+ case 1:
115
+ var value = /** @type {string} */ (reader.readString());
116
+ msg.setAvatar(value);
117
+ break;
118
+ case 2:
119
+ var value = /** @type {string} */ (reader.readString());
120
+ msg.setExtras(value);
121
+ break;
122
+ case 3:
123
+ var value = /** @type {string} */ (reader.readString());
124
+ msg.setNickname(value);
125
+ break;
126
+ case 4:
127
+ var value = /** @type {string} */ (reader.readString());
128
+ msg.setUrl(value);
129
+ break;
130
+ case 5:
131
+ var value = /** @type {string} */ (reader.readString());
132
+ msg.setAuthIconUrl(value);
133
+ break;
134
+ case 6:
135
+ var value = /** @type {string} */ (reader.readString());
136
+ msg.setAuthJob(value);
137
+ break;
138
+ default:
139
+ reader.skipField();
140
+ break;
141
+ }
142
+ }
143
+ return msg;
144
+ };
145
+
146
+
147
+ /**
148
+ * Serializes the message to binary data (in protobuf wire format).
149
+ * @return {!Uint8Array}
150
+ */
151
+ proto.wechaty.puppet.ChannelCardPayload.prototype.serializeBinary = function() {
152
+ var writer = new jspb.BinaryWriter();
153
+ proto.wechaty.puppet.ChannelCardPayload.serializeBinaryToWriter(this, writer);
154
+ return writer.getResultBuffer();
155
+ };
156
+
157
+
158
+ /**
159
+ * Serializes the given message to binary data (in protobuf wire
160
+ * format), writing to the given BinaryWriter.
161
+ * @param {!proto.wechaty.puppet.ChannelCardPayload} message
162
+ * @param {!jspb.BinaryWriter} writer
163
+ * @suppress {unusedLocalVariables} f is only used for nested messages
164
+ */
165
+ proto.wechaty.puppet.ChannelCardPayload.serializeBinaryToWriter = function(message, writer) {
166
+ var f = undefined;
167
+ f = message.getAvatar();
168
+ if (f.length > 0) {
169
+ writer.writeString(
170
+ 1,
171
+ f
172
+ );
173
+ }
174
+ f = message.getExtras();
175
+ if (f.length > 0) {
176
+ writer.writeString(
177
+ 2,
178
+ f
179
+ );
180
+ }
181
+ f = message.getNickname();
182
+ if (f.length > 0) {
183
+ writer.writeString(
184
+ 3,
185
+ f
186
+ );
187
+ }
188
+ f = message.getUrl();
189
+ if (f.length > 0) {
190
+ writer.writeString(
191
+ 4,
192
+ f
193
+ );
194
+ }
195
+ f = message.getAuthIconUrl();
196
+ if (f.length > 0) {
197
+ writer.writeString(
198
+ 5,
199
+ f
200
+ );
201
+ }
202
+ f = message.getAuthJob();
203
+ if (f.length > 0) {
204
+ writer.writeString(
205
+ 6,
206
+ f
207
+ );
208
+ }
209
+ };
210
+
211
+
212
+ /**
213
+ * optional string avatar = 1;
214
+ * @return {string}
215
+ */
216
+ proto.wechaty.puppet.ChannelCardPayload.prototype.getAvatar = function() {
217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
218
+ };
219
+
220
+
221
+ /**
222
+ * @param {string} value
223
+ * @return {!proto.wechaty.puppet.ChannelCardPayload} returns this
224
+ */
225
+ proto.wechaty.puppet.ChannelCardPayload.prototype.setAvatar = function(value) {
226
+ return jspb.Message.setProto3StringField(this, 1, value);
227
+ };
228
+
229
+
230
+ /**
231
+ * optional string extras = 2;
232
+ * @return {string}
233
+ */
234
+ proto.wechaty.puppet.ChannelCardPayload.prototype.getExtras = function() {
235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
236
+ };
237
+
238
+
239
+ /**
240
+ * @param {string} value
241
+ * @return {!proto.wechaty.puppet.ChannelCardPayload} returns this
242
+ */
243
+ proto.wechaty.puppet.ChannelCardPayload.prototype.setExtras = function(value) {
244
+ return jspb.Message.setProto3StringField(this, 2, value);
245
+ };
246
+
247
+
248
+ /**
249
+ * optional string nickname = 3;
250
+ * @return {string}
251
+ */
252
+ proto.wechaty.puppet.ChannelCardPayload.prototype.getNickname = function() {
253
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
254
+ };
255
+
256
+
257
+ /**
258
+ * @param {string} value
259
+ * @return {!proto.wechaty.puppet.ChannelCardPayload} returns this
260
+ */
261
+ proto.wechaty.puppet.ChannelCardPayload.prototype.setNickname = function(value) {
262
+ return jspb.Message.setProto3StringField(this, 3, value);
263
+ };
264
+
265
+
266
+ /**
267
+ * optional string url = 4;
268
+ * @return {string}
269
+ */
270
+ proto.wechaty.puppet.ChannelCardPayload.prototype.getUrl = function() {
271
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
272
+ };
273
+
274
+
275
+ /**
276
+ * @param {string} value
277
+ * @return {!proto.wechaty.puppet.ChannelCardPayload} returns this
278
+ */
279
+ proto.wechaty.puppet.ChannelCardPayload.prototype.setUrl = function(value) {
280
+ return jspb.Message.setProto3StringField(this, 4, value);
281
+ };
282
+
283
+
284
+ /**
285
+ * optional string auth_icon_url = 5;
286
+ * @return {string}
287
+ */
288
+ proto.wechaty.puppet.ChannelCardPayload.prototype.getAuthIconUrl = function() {
289
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
290
+ };
291
+
292
+
293
+ /**
294
+ * @param {string} value
295
+ * @return {!proto.wechaty.puppet.ChannelCardPayload} returns this
296
+ */
297
+ proto.wechaty.puppet.ChannelCardPayload.prototype.setAuthIconUrl = function(value) {
298
+ return jspb.Message.setProto3StringField(this, 5, value);
299
+ };
300
+
301
+
302
+ /**
303
+ * optional string auth_job = 6;
304
+ * @return {string}
305
+ */
306
+ proto.wechaty.puppet.ChannelCardPayload.prototype.getAuthJob = function() {
307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
308
+ };
309
+
310
+
311
+ /**
312
+ * @param {string} value
313
+ * @return {!proto.wechaty.puppet.ChannelCardPayload} returns this
314
+ */
315
+ proto.wechaty.puppet.ChannelCardPayload.prototype.setAuthJob = function(value) {
316
+ return jspb.Message.setProto3StringField(this, 6, value);
317
+ };
318
+
319
+
320
+ goog.object.extend(exports, proto.wechaty.puppet);
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/channel-card.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/channel-card.proto
3
+
@@ -6,6 +6,7 @@ import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
6
6
  import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
7
7
  import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
8
8
  import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
9
+ import * as wechaty_puppet_channel_card_pb from "../../wechaty/puppet/channel-card_pb";
9
10
 
10
11
  export class ChatHistoryContent extends jspb.Message {
11
12
  getType(): ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap];
@@ -42,6 +43,11 @@ export class ChatHistoryContent extends jspb.Message {
42
43
  setChatHistoryList(value: Array<ChatHistoryPayload>): void;
43
44
  addChatHistory(value?: ChatHistoryPayload, index?: number): ChatHistoryPayload;
44
45
 
46
+ hasChannelCard(): boolean;
47
+ clearChannelCard(): void;
48
+ getChannelCard(): wechaty_puppet_channel_card_pb.ChannelCardPayload | undefined;
49
+ setChannelCard(value?: wechaty_puppet_channel_card_pb.ChannelCardPayload): void;
50
+
45
51
  serializeBinary(): Uint8Array;
46
52
  toObject(includeInstance?: boolean): ChatHistoryContent.AsObject;
47
53
  static toObject(includeInstance: boolean, msg: ChatHistoryContent): ChatHistoryContent.AsObject;
@@ -62,6 +68,7 @@ export namespace ChatHistoryContent {
62
68
  miniProgram?: wechaty_puppet_mini_program_pb.MiniProgramPayload.AsObject,
63
69
  channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
64
70
  chatHistoryList: Array<ChatHistoryPayload.AsObject>,
71
+ channelCard?: wechaty_puppet_channel_card_pb.ChannelCardPayload.AsObject,
65
72
  }
66
73
  }
67
74
 
@@ -119,6 +126,7 @@ export interface ChatHistoryContentTypeMap {
119
126
  MINI_PROGRAM: 4;
120
127
  CHANNEL: 5;
121
128
  CHAT_HISTORY: 6;
129
+ CHANNEL_CARD: 7;
122
130
  }
123
131
 
124
132
  export const ChatHistoryContentType: ChatHistoryContentTypeMap;
@@ -23,6 +23,8 @@ var wechaty_puppet_url$link_pb = require('../../wechaty/puppet/url-link_pb.js');
23
23
  goog.object.extend(proto, wechaty_puppet_url$link_pb);
24
24
  var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
25
25
  goog.object.extend(proto, wechaty_puppet_channel_pb);
26
+ var wechaty_puppet_channel$card_pb = require('../../wechaty/puppet/channel-card_pb.js');
27
+ goog.object.extend(proto, wechaty_puppet_channel$card_pb);
26
28
  goog.exportSymbol('proto.wechaty.puppet.ChatHistoryContent', null, global);
27
29
  goog.exportSymbol('proto.wechaty.puppet.ChatHistoryContentType', null, global);
28
30
  goog.exportSymbol('proto.wechaty.puppet.ChatHistoryPayload', null, global);
@@ -115,7 +117,8 @@ proto.wechaty.puppet.ChatHistoryContent.toObject = function(includeInstance, msg
115
117
  miniProgram: (f = msg.getMiniProgram()) && wechaty_puppet_mini$program_pb.MiniProgramPayload.toObject(includeInstance, f),
116
118
  channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f),
117
119
  chatHistoryList: jspb.Message.toObjectList(msg.getChatHistoryList(),
118
- proto.wechaty.puppet.ChatHistoryPayload.toObject, includeInstance)
120
+ proto.wechaty.puppet.ChatHistoryPayload.toObject, includeInstance),
121
+ channelCard: (f = msg.getChannelCard()) && wechaty_puppet_channel$card_pb.ChannelCardPayload.toObject(includeInstance, f)
119
122
  };
120
123
 
121
124
  if (includeInstance) {
@@ -189,6 +192,11 @@ proto.wechaty.puppet.ChatHistoryContent.deserializeBinaryFromReader = function(m
189
192
  reader.readMessage(value,proto.wechaty.puppet.ChatHistoryPayload.deserializeBinaryFromReader);
190
193
  msg.addChatHistory(value);
191
194
  break;
195
+ case 9:
196
+ var value = new wechaty_puppet_channel$card_pb.ChannelCardPayload;
197
+ reader.readMessage(value,wechaty_puppet_channel$card_pb.ChannelCardPayload.deserializeBinaryFromReader);
198
+ msg.setChannelCard(value);
199
+ break;
192
200
  default:
193
201
  reader.skipField();
194
202
  break;
@@ -279,6 +287,14 @@ proto.wechaty.puppet.ChatHistoryContent.serializeBinaryToWriter = function(messa
279
287
  proto.wechaty.puppet.ChatHistoryPayload.serializeBinaryToWriter
280
288
  );
281
289
  }
290
+ f = message.getChannelCard();
291
+ if (f != null) {
292
+ writer.writeMessage(
293
+ 9,
294
+ f,
295
+ wechaty_puppet_channel$card_pb.ChannelCardPayload.serializeBinaryToWriter
296
+ );
297
+ }
282
298
  };
283
299
 
284
300
 
@@ -522,6 +538,43 @@ proto.wechaty.puppet.ChatHistoryContent.prototype.clearChatHistoryList = functio
522
538
  };
523
539
 
524
540
 
541
+ /**
542
+ * optional ChannelCardPayload channel_card = 9;
543
+ * @return {?proto.wechaty.puppet.ChannelCardPayload}
544
+ */
545
+ proto.wechaty.puppet.ChatHistoryContent.prototype.getChannelCard = function() {
546
+ return /** @type{?proto.wechaty.puppet.ChannelCardPayload} */ (
547
+ jspb.Message.getWrapperField(this, wechaty_puppet_channel$card_pb.ChannelCardPayload, 9));
548
+ };
549
+
550
+
551
+ /**
552
+ * @param {?proto.wechaty.puppet.ChannelCardPayload|undefined} value
553
+ * @return {!proto.wechaty.puppet.ChatHistoryContent} returns this
554
+ */
555
+ proto.wechaty.puppet.ChatHistoryContent.prototype.setChannelCard = function(value) {
556
+ return jspb.Message.setWrapperField(this, 9, value);
557
+ };
558
+
559
+
560
+ /**
561
+ * Clears the message field making it undefined.
562
+ * @return {!proto.wechaty.puppet.ChatHistoryContent} returns this
563
+ */
564
+ proto.wechaty.puppet.ChatHistoryContent.prototype.clearChannelCard = function() {
565
+ return this.setChannelCard(undefined);
566
+ };
567
+
568
+
569
+ /**
570
+ * Returns whether this field is set.
571
+ * @return {boolean}
572
+ */
573
+ proto.wechaty.puppet.ChatHistoryContent.prototype.hasChannelCard = function() {
574
+ return jspb.Message.getField(this, 9) != null;
575
+ };
576
+
577
+
525
578
 
526
579
 
527
580
 
@@ -863,7 +916,8 @@ proto.wechaty.puppet.ChatHistoryContentType = {
863
916
  URL: 3,
864
917
  MINI_PROGRAM: 4,
865
918
  CHANNEL: 5,
866
- CHAT_HISTORY: 6
919
+ CHAT_HISTORY: 6,
920
+ CHANNEL_CARD: 7
867
921
  };
868
922
 
869
923
  goog.object.extend(exports, proto.wechaty.puppet);
@@ -12,6 +12,7 @@ import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
12
12
  import * as wechaty_puppet_post_pb from "../../wechaty/puppet/post_pb";
13
13
  import * as wechaty_puppet_call_pb from "../../wechaty/puppet/call_pb";
14
14
  import * as wechaty_puppet_chat_history_pb from "../../wechaty/puppet/chat-history_pb";
15
+ import * as wechaty_puppet_channel_card_pb from "../../wechaty/puppet/channel-card_pb";
15
16
 
16
17
  export class TextContentData extends jspb.Message {
17
18
  getContactId(): string;
@@ -419,6 +420,48 @@ export namespace MessageChannelResponse {
419
420
  }
420
421
  }
421
422
 
423
+ export class MessageChannelCardRequest extends jspb.Message {
424
+ getId(): string;
425
+ setId(value: string): void;
426
+
427
+ serializeBinary(): Uint8Array;
428
+ toObject(includeInstance?: boolean): MessageChannelCardRequest.AsObject;
429
+ static toObject(includeInstance: boolean, msg: MessageChannelCardRequest): MessageChannelCardRequest.AsObject;
430
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
431
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
432
+ static serializeBinaryToWriter(message: MessageChannelCardRequest, writer: jspb.BinaryWriter): void;
433
+ static deserializeBinary(bytes: Uint8Array): MessageChannelCardRequest;
434
+ static deserializeBinaryFromReader(message: MessageChannelCardRequest, reader: jspb.BinaryReader): MessageChannelCardRequest;
435
+ }
436
+
437
+ export namespace MessageChannelCardRequest {
438
+ export type AsObject = {
439
+ id: string,
440
+ }
441
+ }
442
+
443
+ export class MessageChannelCardResponse extends jspb.Message {
444
+ hasChannelCard(): boolean;
445
+ clearChannelCard(): void;
446
+ getChannelCard(): wechaty_puppet_channel_card_pb.ChannelCardPayload | undefined;
447
+ setChannelCard(value?: wechaty_puppet_channel_card_pb.ChannelCardPayload): void;
448
+
449
+ serializeBinary(): Uint8Array;
450
+ toObject(includeInstance?: boolean): MessageChannelCardResponse.AsObject;
451
+ static toObject(includeInstance: boolean, msg: MessageChannelCardResponse): MessageChannelCardResponse.AsObject;
452
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
453
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
454
+ static serializeBinaryToWriter(message: MessageChannelCardResponse, writer: jspb.BinaryWriter): void;
455
+ static deserializeBinary(bytes: Uint8Array): MessageChannelCardResponse;
456
+ static deserializeBinaryFromReader(message: MessageChannelCardResponse, reader: jspb.BinaryReader): MessageChannelCardResponse;
457
+ }
458
+
459
+ export namespace MessageChannelCardResponse {
460
+ export type AsObject = {
461
+ channelCard?: wechaty_puppet_channel_card_pb.ChannelCardPayload.AsObject,
462
+ }
463
+ }
464
+
422
465
  export class MessageCallRecordRequest extends jspb.Message {
423
466
  getId(): string;
424
467
  setId(value: string): void;
@@ -1053,6 +1096,52 @@ export namespace MessageSendChannelResponse {
1053
1096
  }
1054
1097
  }
1055
1098
 
1099
+ export class MessageSendChannelCardRequest extends jspb.Message {
1100
+ getConversationId(): string;
1101
+ setConversationId(value: string): void;
1102
+
1103
+ hasChannelCard(): boolean;
1104
+ clearChannelCard(): void;
1105
+ getChannelCard(): wechaty_puppet_channel_card_pb.ChannelCardPayload | undefined;
1106
+ setChannelCard(value?: wechaty_puppet_channel_card_pb.ChannelCardPayload): void;
1107
+
1108
+ serializeBinary(): Uint8Array;
1109
+ toObject(includeInstance?: boolean): MessageSendChannelCardRequest.AsObject;
1110
+ static toObject(includeInstance: boolean, msg: MessageSendChannelCardRequest): MessageSendChannelCardRequest.AsObject;
1111
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1112
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1113
+ static serializeBinaryToWriter(message: MessageSendChannelCardRequest, writer: jspb.BinaryWriter): void;
1114
+ static deserializeBinary(bytes: Uint8Array): MessageSendChannelCardRequest;
1115
+ static deserializeBinaryFromReader(message: MessageSendChannelCardRequest, reader: jspb.BinaryReader): MessageSendChannelCardRequest;
1116
+ }
1117
+
1118
+ export namespace MessageSendChannelCardRequest {
1119
+ export type AsObject = {
1120
+ conversationId: string,
1121
+ channelCard?: wechaty_puppet_channel_card_pb.ChannelCardPayload.AsObject,
1122
+ }
1123
+ }
1124
+
1125
+ export class MessageSendChannelCardResponse extends jspb.Message {
1126
+ getId(): string;
1127
+ setId(value: string): void;
1128
+
1129
+ serializeBinary(): Uint8Array;
1130
+ toObject(includeInstance?: boolean): MessageSendChannelCardResponse.AsObject;
1131
+ static toObject(includeInstance: boolean, msg: MessageSendChannelCardResponse): MessageSendChannelCardResponse.AsObject;
1132
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1133
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1134
+ static serializeBinaryToWriter(message: MessageSendChannelCardResponse, writer: jspb.BinaryWriter): void;
1135
+ static deserializeBinary(bytes: Uint8Array): MessageSendChannelCardResponse;
1136
+ static deserializeBinaryFromReader(message: MessageSendChannelCardResponse, reader: jspb.BinaryReader): MessageSendChannelCardResponse;
1137
+ }
1138
+
1139
+ export namespace MessageSendChannelCardResponse {
1140
+ export type AsObject = {
1141
+ id: string,
1142
+ }
1143
+ }
1144
+
1056
1145
  export class MessagePreviewRequest extends jspb.Message {
1057
1146
  getId(): string;
1058
1147
  setId(value: string): void;
@@ -1281,6 +1370,7 @@ export interface MessageTypeMap {
1281
1370
  MESSAGE_TYPE_SYSTEM: 18;
1282
1371
  MESSAGE_TYPE_MARKDOWN: 19;
1283
1372
  MESSAGE_TYPE_CALL_RECORD: 20;
1373
+ MESSAGE_TYPE_CHANNEL_CARD: 21;
1284
1374
  }
1285
1375
 
1286
1376
  export const MessageType: MessageTypeMap;