@juzi/wechaty-grpc 1.0.94 → 1.0.96

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 (75) 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-card_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
  5. package/dist/cjs/out/wechaty/puppet/channel-card_pb.js +320 -0
  6. package/dist/cjs/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/channel-card_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +0 -8
  9. package/dist/cjs/out/wechaty/puppet/channel_pb.js +1 -61
  10. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
  11. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +56 -2
  12. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +90 -0
  13. package/dist/cjs/out/wechaty/puppet/message_pb.js +1708 -1025
  14. package/dist/cjs/out/wechaty/puppet.openapi.yaml +85 -8
  15. package/dist/cjs/out/wechaty/puppet.swagger.json +130 -13
  16. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  17. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  18. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  19. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  20. package/dist/cjs/proto/wechaty/puppet/channel-card.proto +15 -0
  21. package/dist/cjs/proto/wechaty/puppet/channel.proto +0 -4
  22. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +3 -0
  23. package/dist/cjs/proto/wechaty/puppet/message.proto +39 -23
  24. package/dist/cjs/proto/wechaty/puppet.proto +11 -0
  25. package/dist/cjs/src/package-json.js +1 -1
  26. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  28. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  29. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  30. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  31. package/dist/esm/out/wechaty/puppet/channel-card_grpc_pb.js +1 -0
  32. package/dist/esm/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
  33. package/dist/esm/out/wechaty/puppet/channel-card_pb.js +320 -0
  34. package/dist/esm/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
  35. package/dist/esm/out/wechaty/puppet/channel-card_pb_service.js +3 -0
  36. package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +0 -8
  37. package/dist/esm/out/wechaty/puppet/channel_pb.js +1 -61
  38. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
  39. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +56 -2
  40. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +90 -0
  41. package/dist/esm/out/wechaty/puppet/message_pb.js +1708 -1025
  42. package/dist/esm/out/wechaty/puppet.openapi.yaml +85 -8
  43. package/dist/esm/out/wechaty/puppet.swagger.json +130 -13
  44. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  45. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  46. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  47. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  48. package/dist/esm/proto/wechaty/puppet/channel-card.proto +15 -0
  49. package/dist/esm/proto/wechaty/puppet/channel.proto +0 -4
  50. package/dist/esm/proto/wechaty/puppet/chat-history.proto +3 -0
  51. package/dist/esm/proto/wechaty/puppet/message.proto +39 -23
  52. package/dist/esm/proto/wechaty/puppet.proto +11 -0
  53. package/dist/esm/src/package-json.js +1 -1
  54. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  55. package/dist/esm/tests/puppet-server-impl.js +10 -0
  56. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  57. package/out/wechaty/puppet/channel-card_grpc_pb.js +1 -0
  58. package/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
  59. package/out/wechaty/puppet/channel-card_pb.js +320 -0
  60. package/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
  61. package/out/wechaty/puppet/channel-card_pb_service.js +3 -0
  62. package/out/wechaty/puppet/channel_pb.d.ts +0 -8
  63. package/out/wechaty/puppet/channel_pb.js +1 -61
  64. package/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
  65. package/out/wechaty/puppet/chat-history_pb.js +56 -2
  66. package/out/wechaty/puppet/message_pb.d.ts +90 -0
  67. package/out/wechaty/puppet/message_pb.js +1708 -1025
  68. package/out/wechaty/puppet.openapi.yaml +85 -8
  69. package/out/wechaty/puppet.swagger.json +130 -13
  70. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  71. package/out/wechaty/puppet_grpc_pb.js +66 -0
  72. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  73. package/out/wechaty/puppet_pb_service.js +80 -0
  74. package/package.json +1 -1
  75. package/src/package-json.ts +1 -1
@@ -14,6 +14,7 @@ const puppetFileList = [
14
14
  '../../out/wechaty/puppet/tag_pb.js',
15
15
  '../../out/wechaty/puppet/url-link_pb.js',
16
16
  '../../out/wechaty/puppet/channel_pb.js',
17
+ '../../out/wechaty/puppet/channel-card_pb.js',
17
18
  '../../out/wechaty/puppet/moment_pb.js',
18
19
  '../../out/wechaty/puppet/post_pb.js',
19
20
  '../../out/wechaty/puppet/conversation_pb.js',
@@ -36,6 +36,7 @@ export * from '../../out/wechaty/puppet/room-member_pb.js'
36
36
  export * from '../../out/wechaty/puppet/tag_pb.js'
37
37
  export * from '../../out/wechaty/puppet/url-link_pb.js'
38
38
  export * from '../../out/wechaty/puppet/channel_pb.js'
39
+ export * from '../../out/wechaty/puppet/channel-card_pb.js'
39
40
  export * from '../../out/wechaty/puppet/moment_pb.js'
40
41
  export * from '../../out/wechaty/puppet/post_pb.js'
41
42
  export * from '../../out/wechaty/puppet/conversation_pb.js'
@@ -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
+
@@ -34,12 +34,6 @@ export class ChannelPayload extends jspb.Message {
34
34
  getObjectNonceId(): string;
35
35
  setObjectNonceId(value: string): void;
36
36
 
37
- getAuthIconUrl(): string;
38
- setAuthIconUrl(value: string): void;
39
-
40
- getAuthJob(): string;
41
- setAuthJob(value: string): void;
42
-
43
37
  serializeBinary(): Uint8Array;
44
38
  toObject(includeInstance?: boolean): ChannelPayload.AsObject;
45
39
  static toObject(includeInstance: boolean, msg: ChannelPayload): ChannelPayload.AsObject;
@@ -62,8 +56,6 @@ export namespace ChannelPayload {
62
56
  url: string,
63
57
  objectId: string,
64
58
  objectNonceId: string,
65
- authIconUrl: string,
66
- authJob: string,
67
59
  }
68
60
  }
69
61
 
@@ -79,9 +79,7 @@ proto.wechaty.puppet.ChannelPayload.toObject = function(includeInstance, msg) {
79
79
  thumbUrl: jspb.Message.getFieldWithDefault(msg, 7, ""),
80
80
  url: jspb.Message.getFieldWithDefault(msg, 8, ""),
81
81
  objectId: jspb.Message.getFieldWithDefault(msg, 9, ""),
82
- objectNonceId: jspb.Message.getFieldWithDefault(msg, 10, ""),
83
- authIconUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
84
- authJob: jspb.Message.getFieldWithDefault(msg, 12, "")
82
+ objectNonceId: jspb.Message.getFieldWithDefault(msg, 10, "")
85
83
  };
86
84
 
87
85
  if (includeInstance) {
@@ -158,14 +156,6 @@ proto.wechaty.puppet.ChannelPayload.deserializeBinaryFromReader = function(msg,
158
156
  var value = /** @type {string} */ (reader.readString());
159
157
  msg.setObjectNonceId(value);
160
158
  break;
161
- case 11:
162
- var value = /** @type {string} */ (reader.readString());
163
- msg.setAuthIconUrl(value);
164
- break;
165
- case 12:
166
- var value = /** @type {string} */ (reader.readString());
167
- msg.setAuthJob(value);
168
- break;
169
159
  default:
170
160
  reader.skipField();
171
161
  break;
@@ -265,20 +255,6 @@ proto.wechaty.puppet.ChannelPayload.serializeBinaryToWriter = function(message,
265
255
  f
266
256
  );
267
257
  }
268
- f = message.getAuthIconUrl();
269
- if (f.length > 0) {
270
- writer.writeString(
271
- 11,
272
- f
273
- );
274
- }
275
- f = message.getAuthJob();
276
- if (f.length > 0) {
277
- writer.writeString(
278
- 12,
279
- f
280
- );
281
- }
282
258
  };
283
259
 
284
260
 
@@ -462,42 +438,6 @@ proto.wechaty.puppet.ChannelPayload.prototype.setObjectNonceId = function(value)
462
438
  };
463
439
 
464
440
 
465
- /**
466
- * optional string auth_icon_url = 11;
467
- * @return {string}
468
- */
469
- proto.wechaty.puppet.ChannelPayload.prototype.getAuthIconUrl = function() {
470
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
471
- };
472
-
473
-
474
- /**
475
- * @param {string} value
476
- * @return {!proto.wechaty.puppet.ChannelPayload} returns this
477
- */
478
- proto.wechaty.puppet.ChannelPayload.prototype.setAuthIconUrl = function(value) {
479
- return jspb.Message.setProto3StringField(this, 11, value);
480
- };
481
-
482
-
483
- /**
484
- * optional string auth_job = 12;
485
- * @return {string}
486
- */
487
- proto.wechaty.puppet.ChannelPayload.prototype.getAuthJob = function() {
488
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
489
- };
490
-
491
-
492
- /**
493
- * @param {string} value
494
- * @return {!proto.wechaty.puppet.ChannelPayload} returns this
495
- */
496
- proto.wechaty.puppet.ChannelPayload.prototype.setAuthJob = function(value) {
497
- return jspb.Message.setProto3StringField(this, 12, value);
498
- };
499
-
500
-
501
441
  /**
502
442
  * @enum {number}
503
443
  */
@@ -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);