@juzi/wechaty-grpc 1.0.25 → 1.0.26

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 (59) hide show
  1. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  2. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  3. package/dist/cjs/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  5. package/dist/cjs/out/wechaty/puppet/conversation_pb.js +293 -0
  6. package/dist/cjs/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/conversation_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet.openapi.yaml +29 -1
  9. package/dist/cjs/out/wechaty/puppet.swagger.json +44 -1
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +38 -0
  12. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  13. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  14. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +20 -0
  15. package/dist/cjs/out/wechaty/puppet_pb_service.js +41 -0
  16. package/dist/cjs/proto/wechaty/puppet/conversation.proto +12 -0
  17. package/dist/cjs/proto/wechaty/puppet.proto +13 -0
  18. package/dist/cjs/src/package-json.js +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  20. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  21. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  22. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  23. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  24. package/dist/esm/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  25. package/dist/esm/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  26. package/dist/esm/out/wechaty/puppet/conversation_pb.js +293 -0
  27. package/dist/esm/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  28. package/dist/esm/out/wechaty/puppet/conversation_pb_service.js +3 -0
  29. package/dist/esm/out/wechaty/puppet.openapi.yaml +29 -1
  30. package/dist/esm/out/wechaty/puppet.swagger.json +44 -1
  31. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  32. package/dist/esm/out/wechaty/puppet_grpc_pb.js +38 -0
  33. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  34. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  35. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +20 -0
  36. package/dist/esm/out/wechaty/puppet_pb_service.js +41 -0
  37. package/dist/esm/proto/wechaty/puppet/conversation.proto +12 -0
  38. package/dist/esm/proto/wechaty/puppet.proto +13 -0
  39. package/dist/esm/src/package-json.js +1 -1
  40. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  41. package/dist/esm/tests/puppet-server-impl.js +5 -0
  42. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  43. package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  44. package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  45. package/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  46. package/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  47. package/out/wechaty/puppet/conversation_pb.js +293 -0
  48. package/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  49. package/out/wechaty/puppet/conversation_pb_service.js +3 -0
  50. package/out/wechaty/puppet.openapi.yaml +29 -1
  51. package/out/wechaty/puppet.swagger.json +44 -1
  52. package/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  53. package/out/wechaty/puppet_grpc_pb.js +38 -0
  54. package/out/wechaty/puppet_pb.d.ts +1 -0
  55. package/out/wechaty/puppet_pb.js +2 -0
  56. package/out/wechaty/puppet_pb_service.d.ts +20 -0
  57. package/out/wechaty/puppet_pb_service.js +41 -0
  58. package/package.json +1 -1
  59. package/src/package-json.ts +1 -1
@@ -0,0 +1,41 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/conversation.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class ConversationReadRequest extends jspb.Message {
7
+ getConversationId(): string;
8
+ setConversationId(value: string): void;
9
+
10
+ serializeBinary(): Uint8Array;
11
+ toObject(includeInstance?: boolean): ConversationReadRequest.AsObject;
12
+ static toObject(includeInstance: boolean, msg: ConversationReadRequest): ConversationReadRequest.AsObject;
13
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
15
+ static serializeBinaryToWriter(message: ConversationReadRequest, writer: jspb.BinaryWriter): void;
16
+ static deserializeBinary(bytes: Uint8Array): ConversationReadRequest;
17
+ static deserializeBinaryFromReader(message: ConversationReadRequest, reader: jspb.BinaryReader): ConversationReadRequest;
18
+ }
19
+
20
+ export namespace ConversationReadRequest {
21
+ export type AsObject = {
22
+ conversationId: string,
23
+ }
24
+ }
25
+
26
+ export class ConversationReadResponse extends jspb.Message {
27
+ serializeBinary(): Uint8Array;
28
+ toObject(includeInstance?: boolean): ConversationReadResponse.AsObject;
29
+ static toObject(includeInstance: boolean, msg: ConversationReadResponse): ConversationReadResponse.AsObject;
30
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
31
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
32
+ static serializeBinaryToWriter(message: ConversationReadResponse, writer: jspb.BinaryWriter): void;
33
+ static deserializeBinary(bytes: Uint8Array): ConversationReadResponse;
34
+ static deserializeBinaryFromReader(message: ConversationReadResponse, reader: jspb.BinaryReader): ConversationReadResponse;
35
+ }
36
+
37
+ export namespace ConversationReadResponse {
38
+ export type AsObject = {
39
+ }
40
+ }
41
+
@@ -0,0 +1,293 @@
1
+ // source: wechaty/puppet/conversation.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.ConversationReadRequest', null, global);
19
+ goog.exportSymbol('proto.wechaty.puppet.ConversationReadResponse', null, global);
20
+ /**
21
+ * Generated by JsPbCodeGenerator.
22
+ * @param {Array=} opt_data Optional initial data array, typically from a
23
+ * server response, or constructed directly in Javascript. The array is used
24
+ * in place and becomes part of the constructed object. It is not cloned.
25
+ * If no data is provided, the constructed object will be empty, but still
26
+ * valid.
27
+ * @extends {jspb.Message}
28
+ * @constructor
29
+ */
30
+ proto.wechaty.puppet.ConversationReadRequest = function(opt_data) {
31
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
32
+ };
33
+ goog.inherits(proto.wechaty.puppet.ConversationReadRequest, jspb.Message);
34
+ if (goog.DEBUG && !COMPILED) {
35
+ /**
36
+ * @public
37
+ * @override
38
+ */
39
+ proto.wechaty.puppet.ConversationReadRequest.displayName = 'proto.wechaty.puppet.ConversationReadRequest';
40
+ }
41
+ /**
42
+ * Generated by JsPbCodeGenerator.
43
+ * @param {Array=} opt_data Optional initial data array, typically from a
44
+ * server response, or constructed directly in Javascript. The array is used
45
+ * in place and becomes part of the constructed object. It is not cloned.
46
+ * If no data is provided, the constructed object will be empty, but still
47
+ * valid.
48
+ * @extends {jspb.Message}
49
+ * @constructor
50
+ */
51
+ proto.wechaty.puppet.ConversationReadResponse = function(opt_data) {
52
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
53
+ };
54
+ goog.inherits(proto.wechaty.puppet.ConversationReadResponse, jspb.Message);
55
+ if (goog.DEBUG && !COMPILED) {
56
+ /**
57
+ * @public
58
+ * @override
59
+ */
60
+ proto.wechaty.puppet.ConversationReadResponse.displayName = 'proto.wechaty.puppet.ConversationReadResponse';
61
+ }
62
+
63
+
64
+
65
+ if (jspb.Message.GENERATE_TO_OBJECT) {
66
+ /**
67
+ * Creates an object representation of this proto.
68
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
69
+ * Optional fields that are not set will be set to undefined.
70
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71
+ * For the list of reserved names please see:
72
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
73
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
74
+ * JSPB instance for transitional soy proto support:
75
+ * http://goto/soy-param-migration
76
+ * @return {!Object}
77
+ */
78
+ proto.wechaty.puppet.ConversationReadRequest.prototype.toObject = function(opt_includeInstance) {
79
+ return proto.wechaty.puppet.ConversationReadRequest.toObject(opt_includeInstance, this);
80
+ };
81
+
82
+
83
+ /**
84
+ * Static version of the {@see toObject} method.
85
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
86
+ * the JSPB instance for transitional soy proto support:
87
+ * http://goto/soy-param-migration
88
+ * @param {!proto.wechaty.puppet.ConversationReadRequest} msg The msg instance to transform.
89
+ * @return {!Object}
90
+ * @suppress {unusedLocalVariables} f is only used for nested messages
91
+ */
92
+ proto.wechaty.puppet.ConversationReadRequest.toObject = function(includeInstance, msg) {
93
+ var f, obj = {
94
+ conversationId: jspb.Message.getFieldWithDefault(msg, 1, "")
95
+ };
96
+
97
+ if (includeInstance) {
98
+ obj.$jspbMessageInstance = msg;
99
+ }
100
+ return obj;
101
+ };
102
+ }
103
+
104
+
105
+ /**
106
+ * Deserializes binary data (in protobuf wire format).
107
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
108
+ * @return {!proto.wechaty.puppet.ConversationReadRequest}
109
+ */
110
+ proto.wechaty.puppet.ConversationReadRequest.deserializeBinary = function(bytes) {
111
+ var reader = new jspb.BinaryReader(bytes);
112
+ var msg = new proto.wechaty.puppet.ConversationReadRequest;
113
+ return proto.wechaty.puppet.ConversationReadRequest.deserializeBinaryFromReader(msg, reader);
114
+ };
115
+
116
+
117
+ /**
118
+ * Deserializes binary data (in protobuf wire format) from the
119
+ * given reader into the given message object.
120
+ * @param {!proto.wechaty.puppet.ConversationReadRequest} msg The message object to deserialize into.
121
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
122
+ * @return {!proto.wechaty.puppet.ConversationReadRequest}
123
+ */
124
+ proto.wechaty.puppet.ConversationReadRequest.deserializeBinaryFromReader = function(msg, reader) {
125
+ while (reader.nextField()) {
126
+ if (reader.isEndGroup()) {
127
+ break;
128
+ }
129
+ var field = reader.getFieldNumber();
130
+ switch (field) {
131
+ case 1:
132
+ var value = /** @type {string} */ (reader.readString());
133
+ msg.setConversationId(value);
134
+ break;
135
+ default:
136
+ reader.skipField();
137
+ break;
138
+ }
139
+ }
140
+ return msg;
141
+ };
142
+
143
+
144
+ /**
145
+ * Serializes the message to binary data (in protobuf wire format).
146
+ * @return {!Uint8Array}
147
+ */
148
+ proto.wechaty.puppet.ConversationReadRequest.prototype.serializeBinary = function() {
149
+ var writer = new jspb.BinaryWriter();
150
+ proto.wechaty.puppet.ConversationReadRequest.serializeBinaryToWriter(this, writer);
151
+ return writer.getResultBuffer();
152
+ };
153
+
154
+
155
+ /**
156
+ * Serializes the given message to binary data (in protobuf wire
157
+ * format), writing to the given BinaryWriter.
158
+ * @param {!proto.wechaty.puppet.ConversationReadRequest} message
159
+ * @param {!jspb.BinaryWriter} writer
160
+ * @suppress {unusedLocalVariables} f is only used for nested messages
161
+ */
162
+ proto.wechaty.puppet.ConversationReadRequest.serializeBinaryToWriter = function(message, writer) {
163
+ var f = undefined;
164
+ f = message.getConversationId();
165
+ if (f.length > 0) {
166
+ writer.writeString(
167
+ 1,
168
+ f
169
+ );
170
+ }
171
+ };
172
+
173
+
174
+ /**
175
+ * optional string conversation_id = 1;
176
+ * @return {string}
177
+ */
178
+ proto.wechaty.puppet.ConversationReadRequest.prototype.getConversationId = function() {
179
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
180
+ };
181
+
182
+
183
+ /**
184
+ * @param {string} value
185
+ * @return {!proto.wechaty.puppet.ConversationReadRequest} returns this
186
+ */
187
+ proto.wechaty.puppet.ConversationReadRequest.prototype.setConversationId = function(value) {
188
+ return jspb.Message.setProto3StringField(this, 1, value);
189
+ };
190
+
191
+
192
+
193
+
194
+
195
+ if (jspb.Message.GENERATE_TO_OBJECT) {
196
+ /**
197
+ * Creates an object representation of this proto.
198
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
199
+ * Optional fields that are not set will be set to undefined.
200
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
201
+ * For the list of reserved names please see:
202
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
203
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
204
+ * JSPB instance for transitional soy proto support:
205
+ * http://goto/soy-param-migration
206
+ * @return {!Object}
207
+ */
208
+ proto.wechaty.puppet.ConversationReadResponse.prototype.toObject = function(opt_includeInstance) {
209
+ return proto.wechaty.puppet.ConversationReadResponse.toObject(opt_includeInstance, this);
210
+ };
211
+
212
+
213
+ /**
214
+ * Static version of the {@see toObject} method.
215
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
216
+ * the JSPB instance for transitional soy proto support:
217
+ * http://goto/soy-param-migration
218
+ * @param {!proto.wechaty.puppet.ConversationReadResponse} msg The msg instance to transform.
219
+ * @return {!Object}
220
+ * @suppress {unusedLocalVariables} f is only used for nested messages
221
+ */
222
+ proto.wechaty.puppet.ConversationReadResponse.toObject = function(includeInstance, msg) {
223
+ var f, obj = {
224
+
225
+ };
226
+
227
+ if (includeInstance) {
228
+ obj.$jspbMessageInstance = msg;
229
+ }
230
+ return obj;
231
+ };
232
+ }
233
+
234
+
235
+ /**
236
+ * Deserializes binary data (in protobuf wire format).
237
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
238
+ * @return {!proto.wechaty.puppet.ConversationReadResponse}
239
+ */
240
+ proto.wechaty.puppet.ConversationReadResponse.deserializeBinary = function(bytes) {
241
+ var reader = new jspb.BinaryReader(bytes);
242
+ var msg = new proto.wechaty.puppet.ConversationReadResponse;
243
+ return proto.wechaty.puppet.ConversationReadResponse.deserializeBinaryFromReader(msg, reader);
244
+ };
245
+
246
+
247
+ /**
248
+ * Deserializes binary data (in protobuf wire format) from the
249
+ * given reader into the given message object.
250
+ * @param {!proto.wechaty.puppet.ConversationReadResponse} msg The message object to deserialize into.
251
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
252
+ * @return {!proto.wechaty.puppet.ConversationReadResponse}
253
+ */
254
+ proto.wechaty.puppet.ConversationReadResponse.deserializeBinaryFromReader = function(msg, reader) {
255
+ while (reader.nextField()) {
256
+ if (reader.isEndGroup()) {
257
+ break;
258
+ }
259
+ var field = reader.getFieldNumber();
260
+ switch (field) {
261
+ default:
262
+ reader.skipField();
263
+ break;
264
+ }
265
+ }
266
+ return msg;
267
+ };
268
+
269
+
270
+ /**
271
+ * Serializes the message to binary data (in protobuf wire format).
272
+ * @return {!Uint8Array}
273
+ */
274
+ proto.wechaty.puppet.ConversationReadResponse.prototype.serializeBinary = function() {
275
+ var writer = new jspb.BinaryWriter();
276
+ proto.wechaty.puppet.ConversationReadResponse.serializeBinaryToWriter(this, writer);
277
+ return writer.getResultBuffer();
278
+ };
279
+
280
+
281
+ /**
282
+ * Serializes the given message to binary data (in protobuf wire
283
+ * format), writing to the given BinaryWriter.
284
+ * @param {!proto.wechaty.puppet.ConversationReadResponse} message
285
+ * @param {!jspb.BinaryWriter} writer
286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
287
+ */
288
+ proto.wechaty.puppet.ConversationReadResponse.serializeBinaryToWriter = function(message, writer) {
289
+ var f = undefined;
290
+ };
291
+
292
+
293
+ goog.object.extend(exports, proto.wechaty.puppet);
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/conversation.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/conversation.proto
3
+
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.25
12
+ version: 1.0.26
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -315,6 +315,32 @@ paths:
315
315
  pattern: PAYLOADTYPECONTACT
316
316
  tags:
317
317
  - Puppet
318
+ '/conversation/{conversationId}/read':
319
+ put:
320
+ summary: '*'
321
+ description: Conversation
322
+ operationId: Puppet_ConversationRead
323
+ responses:
324
+ '200':
325
+ description: A successful response.
326
+ schema:
327
+ $ref: '#/definitions/puppetConversationReadResponse'
328
+ default:
329
+ description: An unexpected error response.
330
+ schema:
331
+ $ref: '#/definitions/rpcStatus'
332
+ parameters:
333
+ - name: conversationId
334
+ in: path
335
+ required: true
336
+ type: string
337
+ - name: body
338
+ in: body
339
+ required: true
340
+ schema:
341
+ type: object
342
+ tags:
343
+ - Puppet
318
344
  '/conversations/{conversationId}/channel':
319
345
  post:
320
346
  operationId: Puppet_MessageSendChannel
@@ -2145,6 +2171,8 @@ definitions:
2145
2171
  - CONTACT_TYPE_OFFICIAL
2146
2172
  - CONTACT_TYPE_CORPORATION
2147
2173
  default: CONTACT_TYPE_UNSPECIFIED
2174
+ puppetConversationReadResponse:
2175
+ type: object
2148
2176
  puppetCurrentUserResponse:
2149
2177
  type: object
2150
2178
  properties:
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.25",
6
+ "version": "1.0.26",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -471,6 +471,46 @@
471
471
  ]
472
472
  }
473
473
  },
474
+ "/conversation/{conversationId}/read": {
475
+ "put": {
476
+ "summary": "*",
477
+ "description": "Conversation",
478
+ "operationId": "Puppet_ConversationRead",
479
+ "responses": {
480
+ "200": {
481
+ "description": "A successful response.",
482
+ "schema": {
483
+ "$ref": "#/definitions/puppetConversationReadResponse"
484
+ }
485
+ },
486
+ "default": {
487
+ "description": "An unexpected error response.",
488
+ "schema": {
489
+ "$ref": "#/definitions/rpcStatus"
490
+ }
491
+ }
492
+ },
493
+ "parameters": [
494
+ {
495
+ "name": "conversationId",
496
+ "in": "path",
497
+ "required": true,
498
+ "type": "string"
499
+ },
500
+ {
501
+ "name": "body",
502
+ "in": "body",
503
+ "required": true,
504
+ "schema": {
505
+ "type": "object"
506
+ }
507
+ }
508
+ ],
509
+ "tags": [
510
+ "Puppet"
511
+ ]
512
+ }
513
+ },
474
514
  "/conversations/{conversationId}/channel": {
475
515
  "post": {
476
516
  "operationId": "Puppet_MessageSendChannel",
@@ -3217,6 +3257,9 @@
3217
3257
  ],
3218
3258
  "default": "CONTACT_TYPE_UNSPECIFIED"
3219
3259
  },
3260
+ "puppetConversationReadResponse": {
3261
+ "type": "object"
3262
+ },
3220
3263
  "puppetCurrentUserResponse": {
3221
3264
  "type": "object",
3222
3265
  "properties": {
@@ -18,6 +18,7 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
18
18
  import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
19
19
  import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
20
20
  import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
21
+ import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_pb";
21
22
  import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
22
23
  import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
23
24
  import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
@@ -50,6 +51,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
50
51
  friendshipSearchHandle: IPuppetService_IFriendshipSearchHandle;
51
52
  friendshipAdd: IPuppetService_IFriendshipAdd;
52
53
  friendshipAccept: IPuppetService_IFriendshipAccept;
54
+ conversationRead: IPuppetService_IConversationRead;
53
55
  messageFile: IPuppetService_IMessageFile;
54
56
  messageImage: IPuppetService_IMessageImage;
55
57
  messageSendFile: IPuppetService_IMessageSendFile;
@@ -348,6 +350,15 @@ interface IPuppetService_IFriendshipAccept extends grpc.MethodDefinition<wechaty
348
350
  responseSerialize: grpc.serialize<wechaty_puppet_friendship_pb.FriendshipAcceptResponse>;
349
351
  responseDeserialize: grpc.deserialize<wechaty_puppet_friendship_pb.FriendshipAcceptResponse>;
350
352
  }
353
+ interface IPuppetService_IConversationRead extends grpc.MethodDefinition<wechaty_puppet_conversation_pb.ConversationReadRequest, wechaty_puppet_conversation_pb.ConversationReadResponse> {
354
+ path: "/wechaty.Puppet/ConversationRead";
355
+ requestStream: false;
356
+ responseStream: false;
357
+ requestSerialize: grpc.serialize<wechaty_puppet_conversation_pb.ConversationReadRequest>;
358
+ requestDeserialize: grpc.deserialize<wechaty_puppet_conversation_pb.ConversationReadRequest>;
359
+ responseSerialize: grpc.serialize<wechaty_puppet_conversation_pb.ConversationReadResponse>;
360
+ responseDeserialize: grpc.deserialize<wechaty_puppet_conversation_pb.ConversationReadResponse>;
361
+ }
351
362
  interface IPuppetService_IMessageFile extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageFileRequest, wechaty_puppet_message_pb.MessageFileResponse> {
352
363
  path: "/wechaty.Puppet/MessageFile";
353
364
  requestStream: false;
@@ -856,6 +867,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
856
867
  friendshipSearchHandle: grpc.handleUnaryCall<wechaty_puppet_friendship_pb.FriendshipSearchHandleRequest, wechaty_puppet_friendship_pb.FriendshipSearchHandleResponse>;
857
868
  friendshipAdd: grpc.handleUnaryCall<wechaty_puppet_friendship_pb.FriendshipAddRequest, wechaty_puppet_friendship_pb.FriendshipAddResponse>;
858
869
  friendshipAccept: grpc.handleUnaryCall<wechaty_puppet_friendship_pb.FriendshipAcceptRequest, wechaty_puppet_friendship_pb.FriendshipAcceptResponse>;
870
+ conversationRead: grpc.handleUnaryCall<wechaty_puppet_conversation_pb.ConversationReadRequest, wechaty_puppet_conversation_pb.ConversationReadResponse>;
859
871
  messageFile: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageFileRequest, wechaty_puppet_message_pb.MessageFileResponse>;
860
872
  messageImage: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageImageRequest, wechaty_puppet_message_pb.MessageImageResponse>;
861
873
  messageSendFile: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendFileRequest, wechaty_puppet_message_pb.MessageSendFileResponse>;
@@ -991,6 +1003,9 @@ export interface IPuppetClient {
991
1003
  friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
992
1004
  friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
993
1005
  friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1006
+ conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1007
+ conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1008
+ conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
994
1009
  messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
995
1010
  messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
996
1011
  messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
@@ -1233,6 +1248,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1233
1248
  public friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1234
1249
  public friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1235
1250
  public friendshipAccept(request: wechaty_puppet_friendship_pb.FriendshipAcceptRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_friendship_pb.FriendshipAcceptResponse) => void): grpc.ClientUnaryCall;
1251
+ public conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1252
+ public conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1253
+ public conversationRead(request: wechaty_puppet_conversation_pb.ConversationReadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_conversation_pb.ConversationReadResponse) => void): grpc.ClientUnaryCall;
1236
1254
  public messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
1237
1255
  public messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
1238
1256
  public messageFile(request: wechaty_puppet_message_pb.MessageFileRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageFileResponse) => void): grpc.ClientUnaryCall;
@@ -27,6 +27,7 @@ var wechaty_puppet_room$invitation_pb = require('../wechaty/puppet/room-invitati
27
27
  var wechaty_puppet_room$member_pb = require('../wechaty/puppet/room-member_pb.js');
28
28
  var wechaty_puppet_room_pb = require('../wechaty/puppet/room_pb.js');
29
29
  var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
30
+ var wechaty_puppet_conversation_pb = require('../wechaty/puppet/conversation_pb.js');
30
31
  var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
31
32
  var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
32
33
  var wechaty_puppet_moment_pb = require('../wechaty/puppet/moment_pb.js');
@@ -251,6 +252,28 @@ function deserialize_wechaty_puppet_ContactSelfSignatureResponse(buffer_arg) {
251
252
  return wechaty_puppet_contact_pb.ContactSelfSignatureResponse.deserializeBinary(new Uint8Array(buffer_arg));
252
253
  }
253
254
 
255
+ function serialize_wechaty_puppet_ConversationReadRequest(arg) {
256
+ if (!(arg instanceof wechaty_puppet_conversation_pb.ConversationReadRequest)) {
257
+ throw new Error('Expected argument of type wechaty.puppet.ConversationReadRequest');
258
+ }
259
+ return Buffer.from(arg.serializeBinary());
260
+ }
261
+
262
+ function deserialize_wechaty_puppet_ConversationReadRequest(buffer_arg) {
263
+ return wechaty_puppet_conversation_pb.ConversationReadRequest.deserializeBinary(new Uint8Array(buffer_arg));
264
+ }
265
+
266
+ function serialize_wechaty_puppet_ConversationReadResponse(arg) {
267
+ if (!(arg instanceof wechaty_puppet_conversation_pb.ConversationReadResponse)) {
268
+ throw new Error('Expected argument of type wechaty.puppet.ConversationReadResponse');
269
+ }
270
+ return Buffer.from(arg.serializeBinary());
271
+ }
272
+
273
+ function deserialize_wechaty_puppet_ConversationReadResponse(buffer_arg) {
274
+ return wechaty_puppet_conversation_pb.ConversationReadResponse.deserializeBinary(new Uint8Array(buffer_arg));
275
+ }
276
+
254
277
  function serialize_wechaty_puppet_CurrentUserRequest(arg) {
255
278
  if (!(arg instanceof wechaty_puppet_base_pb.CurrentUserRequest)) {
256
279
  throw new Error('Expected argument of type wechaty.puppet.CurrentUserRequest');
@@ -2097,6 +2120,21 @@ friendshipSearchWeixin: {
2097
2120
  },
2098
2121
  // *
2099
2122
  //
2123
+ // Conversation
2124
+ //
2125
+ conversationRead: {
2126
+ path: '/wechaty.Puppet/ConversationRead',
2127
+ requestStream: false,
2128
+ responseStream: false,
2129
+ requestType: wechaty_puppet_conversation_pb.ConversationReadRequest,
2130
+ responseType: wechaty_puppet_conversation_pb.ConversationReadResponse,
2131
+ requestSerialize: serialize_wechaty_puppet_ConversationReadRequest,
2132
+ requestDeserialize: deserialize_wechaty_puppet_ConversationReadRequest,
2133
+ responseSerialize: serialize_wechaty_puppet_ConversationReadResponse,
2134
+ responseDeserialize: deserialize_wechaty_puppet_ConversationReadResponse,
2135
+ },
2136
+ // *
2137
+ //
2100
2138
  // Message
2101
2139
  //
2102
2140
  //
@@ -15,6 +15,7 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
15
15
  import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
16
16
  import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
17
17
  import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
18
+ import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_pb";
18
19
  import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
19
20
  import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
20
21
  import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
@@ -41,6 +41,8 @@ var wechaty_puppet_room_pb = require('../wechaty/puppet/room_pb.js');
41
41
  goog.object.extend(proto, wechaty_puppet_room_pb);
42
42
  var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
43
43
  goog.object.extend(proto, wechaty_puppet_tag_pb);
44
+ var wechaty_puppet_conversation_pb = require('../wechaty/puppet/conversation_pb.js');
45
+ goog.object.extend(proto, wechaty_puppet_conversation_pb);
44
46
  var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
45
47
  goog.object.extend(proto, wechaty_puppet_channel_pb);
46
48
  var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
@@ -13,6 +13,7 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
13
13
  import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
14
14
  import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
15
15
  import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
16
+ import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_pb";
16
17
  import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
17
18
  import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
18
19
  import {grpc} from "@improbable-eng/grpc-web";
@@ -260,6 +261,15 @@ type PuppetFriendshipAccept = {
260
261
  readonly responseType: typeof wechaty_puppet_friendship_pb.FriendshipAcceptResponse;
261
262
  };
262
263
 
264
+ type PuppetConversationRead = {
265
+ readonly methodName: string;
266
+ readonly service: typeof Puppet;
267
+ readonly requestStream: false;
268
+ readonly responseStream: false;
269
+ readonly requestType: typeof wechaty_puppet_conversation_pb.ConversationReadRequest;
270
+ readonly responseType: typeof wechaty_puppet_conversation_pb.ConversationReadResponse;
271
+ };
272
+
263
273
  type PuppetMessageFile = {
264
274
  readonly methodName: string;
265
275
  readonly service: typeof Puppet;
@@ -766,6 +776,7 @@ export class Puppet {
766
776
  static readonly FriendshipSearchHandle: PuppetFriendshipSearchHandle;
767
777
  static readonly FriendshipAdd: PuppetFriendshipAdd;
768
778
  static readonly FriendshipAccept: PuppetFriendshipAccept;
779
+ static readonly ConversationRead: PuppetConversationRead;
769
780
  static readonly MessageFile: PuppetMessageFile;
770
781
  static readonly MessageImage: PuppetMessageImage;
771
782
  static readonly MessageSendFile: PuppetMessageSendFile;
@@ -1064,6 +1075,15 @@ export class PuppetClient {
1064
1075
  requestMessage: wechaty_puppet_friendship_pb.FriendshipAcceptRequest,
1065
1076
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_friendship_pb.FriendshipAcceptResponse|null) => void
1066
1077
  ): UnaryResponse;
1078
+ conversationRead(
1079
+ requestMessage: wechaty_puppet_conversation_pb.ConversationReadRequest,
1080
+ metadata: grpc.Metadata,
1081
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_conversation_pb.ConversationReadResponse|null) => void
1082
+ ): UnaryResponse;
1083
+ conversationRead(
1084
+ requestMessage: wechaty_puppet_conversation_pb.ConversationReadRequest,
1085
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_conversation_pb.ConversationReadResponse|null) => void
1086
+ ): UnaryResponse;
1067
1087
  messageFile(
1068
1088
  requestMessage: wechaty_puppet_message_pb.MessageFileRequest,
1069
1089
  metadata: grpc.Metadata,