@juzi/wechaty-grpc 1.0.70 → 1.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  4. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +35 -5
  5. package/dist/cjs/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
  6. package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +77 -0
  7. package/dist/cjs/out/wechaty/puppet/wecom_pb.js +590 -0
  8. package/dist/cjs/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
  9. package/dist/cjs/out/wechaty/puppet/wecom_pb_service.js +3 -0
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +47 -1
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +73 -1
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +37 -0
  14. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  15. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +20 -0
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +41 -0
  18. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +2 -1
  19. package/dist/cjs/proto/wechaty/puppet/wecom.proto +20 -0
  20. package/dist/cjs/proto/wechaty/puppet.proto +11 -0
  21. package/dist/cjs/src/package-json.js +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  24. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  25. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  26. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  27. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  28. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +35 -5
  29. package/dist/esm/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
  30. package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +77 -0
  31. package/dist/esm/out/wechaty/puppet/wecom_pb.js +590 -0
  32. package/dist/esm/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
  33. package/dist/esm/out/wechaty/puppet/wecom_pb_service.js +3 -0
  34. package/dist/esm/out/wechaty/puppet.openapi.yaml +47 -1
  35. package/dist/esm/out/wechaty/puppet.swagger.json +73 -1
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  37. package/dist/esm/out/wechaty/puppet_grpc_pb.js +37 -0
  38. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  39. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  40. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +20 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.js +41 -0
  42. package/dist/esm/proto/wechaty/puppet/chat-history.proto +2 -1
  43. package/dist/esm/proto/wechaty/puppet/wecom.proto +20 -0
  44. package/dist/esm/proto/wechaty/puppet.proto +11 -0
  45. package/dist/esm/src/package-json.js +1 -1
  46. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  47. package/dist/esm/tests/puppet-server-impl.js +5 -0
  48. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  49. package/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  50. package/out/wechaty/puppet/chat-history_pb.js +35 -5
  51. package/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
  52. package/out/wechaty/puppet/wecom_pb.d.ts +77 -0
  53. package/out/wechaty/puppet/wecom_pb.js +590 -0
  54. package/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
  55. package/out/wechaty/puppet/wecom_pb_service.js +3 -0
  56. package/out/wechaty/puppet.openapi.yaml +47 -1
  57. package/out/wechaty/puppet.swagger.json +73 -1
  58. package/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  59. package/out/wechaty/puppet_grpc_pb.js +37 -0
  60. package/out/wechaty/puppet_pb.d.ts +1 -0
  61. package/out/wechaty/puppet_pb.js +2 -0
  62. package/out/wechaty/puppet_pb_service.d.ts +20 -0
  63. package/out/wechaty/puppet_pb_service.js +41 -0
  64. package/package.json +1 -1
  65. package/src/package-json.ts +1 -1
@@ -0,0 +1,590 @@
1
+ // source: wechaty/puppet/wecom.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.ContactExternalUserIdPair', null, global);
19
+ goog.exportSymbol('proto.wechaty.puppet.GetContactExternalUserIdRequest', null, global);
20
+ goog.exportSymbol('proto.wechaty.puppet.GetContactExternalUserIdResponse', null, global);
21
+ /**
22
+ * Generated by JsPbCodeGenerator.
23
+ * @param {Array=} opt_data Optional initial data array, typically from a
24
+ * server response, or constructed directly in Javascript. The array is used
25
+ * in place and becomes part of the constructed object. It is not cloned.
26
+ * If no data is provided, the constructed object will be empty, but still
27
+ * valid.
28
+ * @extends {jspb.Message}
29
+ * @constructor
30
+ */
31
+ proto.wechaty.puppet.ContactExternalUserIdPair = function(opt_data) {
32
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
33
+ };
34
+ goog.inherits(proto.wechaty.puppet.ContactExternalUserIdPair, jspb.Message);
35
+ if (goog.DEBUG && !COMPILED) {
36
+ /**
37
+ * @public
38
+ * @override
39
+ */
40
+ proto.wechaty.puppet.ContactExternalUserIdPair.displayName = 'proto.wechaty.puppet.ContactExternalUserIdPair';
41
+ }
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.wechaty.puppet.GetContactExternalUserIdRequest = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.GetContactExternalUserIdRequest.repeatedFields_, null);
54
+ };
55
+ goog.inherits(proto.wechaty.puppet.GetContactExternalUserIdRequest, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.displayName = 'proto.wechaty.puppet.GetContactExternalUserIdRequest';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.wechaty.puppet.GetContactExternalUserIdResponse = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.GetContactExternalUserIdResponse.repeatedFields_, null);
75
+ };
76
+ goog.inherits(proto.wechaty.puppet.GetContactExternalUserIdResponse, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.displayName = 'proto.wechaty.puppet.GetContactExternalUserIdResponse';
83
+ }
84
+
85
+
86
+
87
+ if (jspb.Message.GENERATE_TO_OBJECT) {
88
+ /**
89
+ * Creates an object representation of this proto.
90
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
91
+ * Optional fields that are not set will be set to undefined.
92
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
93
+ * For the list of reserved names please see:
94
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
95
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
96
+ * JSPB instance for transitional soy proto support:
97
+ * http://goto/soy-param-migration
98
+ * @return {!Object}
99
+ */
100
+ proto.wechaty.puppet.ContactExternalUserIdPair.prototype.toObject = function(opt_includeInstance) {
101
+ return proto.wechaty.puppet.ContactExternalUserIdPair.toObject(opt_includeInstance, this);
102
+ };
103
+
104
+
105
+ /**
106
+ * Static version of the {@see toObject} method.
107
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
108
+ * the JSPB instance for transitional soy proto support:
109
+ * http://goto/soy-param-migration
110
+ * @param {!proto.wechaty.puppet.ContactExternalUserIdPair} msg The msg instance to transform.
111
+ * @return {!Object}
112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
113
+ */
114
+ proto.wechaty.puppet.ContactExternalUserIdPair.toObject = function(includeInstance, msg) {
115
+ var f, obj = {
116
+ contactId: jspb.Message.getFieldWithDefault(msg, 1, ""),
117
+ externalUserId: jspb.Message.getFieldWithDefault(msg, 2, "")
118
+ };
119
+
120
+ if (includeInstance) {
121
+ obj.$jspbMessageInstance = msg;
122
+ }
123
+ return obj;
124
+ };
125
+ }
126
+
127
+
128
+ /**
129
+ * Deserializes binary data (in protobuf wire format).
130
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
131
+ * @return {!proto.wechaty.puppet.ContactExternalUserIdPair}
132
+ */
133
+ proto.wechaty.puppet.ContactExternalUserIdPair.deserializeBinary = function(bytes) {
134
+ var reader = new jspb.BinaryReader(bytes);
135
+ var msg = new proto.wechaty.puppet.ContactExternalUserIdPair;
136
+ return proto.wechaty.puppet.ContactExternalUserIdPair.deserializeBinaryFromReader(msg, reader);
137
+ };
138
+
139
+
140
+ /**
141
+ * Deserializes binary data (in protobuf wire format) from the
142
+ * given reader into the given message object.
143
+ * @param {!proto.wechaty.puppet.ContactExternalUserIdPair} msg The message object to deserialize into.
144
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
145
+ * @return {!proto.wechaty.puppet.ContactExternalUserIdPair}
146
+ */
147
+ proto.wechaty.puppet.ContactExternalUserIdPair.deserializeBinaryFromReader = function(msg, reader) {
148
+ while (reader.nextField()) {
149
+ if (reader.isEndGroup()) {
150
+ break;
151
+ }
152
+ var field = reader.getFieldNumber();
153
+ switch (field) {
154
+ case 1:
155
+ var value = /** @type {string} */ (reader.readString());
156
+ msg.setContactId(value);
157
+ break;
158
+ case 2:
159
+ var value = /** @type {string} */ (reader.readString());
160
+ msg.setExternalUserId(value);
161
+ break;
162
+ default:
163
+ reader.skipField();
164
+ break;
165
+ }
166
+ }
167
+ return msg;
168
+ };
169
+
170
+
171
+ /**
172
+ * Serializes the message to binary data (in protobuf wire format).
173
+ * @return {!Uint8Array}
174
+ */
175
+ proto.wechaty.puppet.ContactExternalUserIdPair.prototype.serializeBinary = function() {
176
+ var writer = new jspb.BinaryWriter();
177
+ proto.wechaty.puppet.ContactExternalUserIdPair.serializeBinaryToWriter(this, writer);
178
+ return writer.getResultBuffer();
179
+ };
180
+
181
+
182
+ /**
183
+ * Serializes the given message to binary data (in protobuf wire
184
+ * format), writing to the given BinaryWriter.
185
+ * @param {!proto.wechaty.puppet.ContactExternalUserIdPair} message
186
+ * @param {!jspb.BinaryWriter} writer
187
+ * @suppress {unusedLocalVariables} f is only used for nested messages
188
+ */
189
+ proto.wechaty.puppet.ContactExternalUserIdPair.serializeBinaryToWriter = function(message, writer) {
190
+ var f = undefined;
191
+ f = message.getContactId();
192
+ if (f.length > 0) {
193
+ writer.writeString(
194
+ 1,
195
+ f
196
+ );
197
+ }
198
+ f = message.getExternalUserId();
199
+ if (f.length > 0) {
200
+ writer.writeString(
201
+ 2,
202
+ f
203
+ );
204
+ }
205
+ };
206
+
207
+
208
+ /**
209
+ * optional string contact_id = 1;
210
+ * @return {string}
211
+ */
212
+ proto.wechaty.puppet.ContactExternalUserIdPair.prototype.getContactId = function() {
213
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
214
+ };
215
+
216
+
217
+ /**
218
+ * @param {string} value
219
+ * @return {!proto.wechaty.puppet.ContactExternalUserIdPair} returns this
220
+ */
221
+ proto.wechaty.puppet.ContactExternalUserIdPair.prototype.setContactId = function(value) {
222
+ return jspb.Message.setProto3StringField(this, 1, value);
223
+ };
224
+
225
+
226
+ /**
227
+ * optional string external_user_id = 2;
228
+ * @return {string}
229
+ */
230
+ proto.wechaty.puppet.ContactExternalUserIdPair.prototype.getExternalUserId = function() {
231
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
232
+ };
233
+
234
+
235
+ /**
236
+ * @param {string} value
237
+ * @return {!proto.wechaty.puppet.ContactExternalUserIdPair} returns this
238
+ */
239
+ proto.wechaty.puppet.ContactExternalUserIdPair.prototype.setExternalUserId = function(value) {
240
+ return jspb.Message.setProto3StringField(this, 2, value);
241
+ };
242
+
243
+
244
+
245
+ /**
246
+ * List of repeated fields within this message type.
247
+ * @private {!Array<number>}
248
+ * @const
249
+ */
250
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.repeatedFields_ = [1];
251
+
252
+
253
+
254
+ if (jspb.Message.GENERATE_TO_OBJECT) {
255
+ /**
256
+ * Creates an object representation of this proto.
257
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
258
+ * Optional fields that are not set will be set to undefined.
259
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
260
+ * For the list of reserved names please see:
261
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
262
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
263
+ * JSPB instance for transitional soy proto support:
264
+ * http://goto/soy-param-migration
265
+ * @return {!Object}
266
+ */
267
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.prototype.toObject = function(opt_includeInstance) {
268
+ return proto.wechaty.puppet.GetContactExternalUserIdRequest.toObject(opt_includeInstance, this);
269
+ };
270
+
271
+
272
+ /**
273
+ * Static version of the {@see toObject} method.
274
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
275
+ * the JSPB instance for transitional soy proto support:
276
+ * http://goto/soy-param-migration
277
+ * @param {!proto.wechaty.puppet.GetContactExternalUserIdRequest} msg The msg instance to transform.
278
+ * @return {!Object}
279
+ * @suppress {unusedLocalVariables} f is only used for nested messages
280
+ */
281
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.toObject = function(includeInstance, msg) {
282
+ var f, obj = {
283
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
284
+ serviceProviderId: jspb.Message.getFieldWithDefault(msg, 2, "")
285
+ };
286
+
287
+ if (includeInstance) {
288
+ obj.$jspbMessageInstance = msg;
289
+ }
290
+ return obj;
291
+ };
292
+ }
293
+
294
+
295
+ /**
296
+ * Deserializes binary data (in protobuf wire format).
297
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
298
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdRequest}
299
+ */
300
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.deserializeBinary = function(bytes) {
301
+ var reader = new jspb.BinaryReader(bytes);
302
+ var msg = new proto.wechaty.puppet.GetContactExternalUserIdRequest;
303
+ return proto.wechaty.puppet.GetContactExternalUserIdRequest.deserializeBinaryFromReader(msg, reader);
304
+ };
305
+
306
+
307
+ /**
308
+ * Deserializes binary data (in protobuf wire format) from the
309
+ * given reader into the given message object.
310
+ * @param {!proto.wechaty.puppet.GetContactExternalUserIdRequest} msg The message object to deserialize into.
311
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
312
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdRequest}
313
+ */
314
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.deserializeBinaryFromReader = function(msg, reader) {
315
+ while (reader.nextField()) {
316
+ if (reader.isEndGroup()) {
317
+ break;
318
+ }
319
+ var field = reader.getFieldNumber();
320
+ switch (field) {
321
+ case 1:
322
+ var value = /** @type {string} */ (reader.readString());
323
+ msg.addContactIds(value);
324
+ break;
325
+ case 2:
326
+ var value = /** @type {string} */ (reader.readString());
327
+ msg.setServiceProviderId(value);
328
+ break;
329
+ default:
330
+ reader.skipField();
331
+ break;
332
+ }
333
+ }
334
+ return msg;
335
+ };
336
+
337
+
338
+ /**
339
+ * Serializes the message to binary data (in protobuf wire format).
340
+ * @return {!Uint8Array}
341
+ */
342
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.prototype.serializeBinary = function() {
343
+ var writer = new jspb.BinaryWriter();
344
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.serializeBinaryToWriter(this, writer);
345
+ return writer.getResultBuffer();
346
+ };
347
+
348
+
349
+ /**
350
+ * Serializes the given message to binary data (in protobuf wire
351
+ * format), writing to the given BinaryWriter.
352
+ * @param {!proto.wechaty.puppet.GetContactExternalUserIdRequest} message
353
+ * @param {!jspb.BinaryWriter} writer
354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
355
+ */
356
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.serializeBinaryToWriter = function(message, writer) {
357
+ var f = undefined;
358
+ f = message.getContactIdsList();
359
+ if (f.length > 0) {
360
+ writer.writeRepeatedString(
361
+ 1,
362
+ f
363
+ );
364
+ }
365
+ f = message.getServiceProviderId();
366
+ if (f.length > 0) {
367
+ writer.writeString(
368
+ 2,
369
+ f
370
+ );
371
+ }
372
+ };
373
+
374
+
375
+ /**
376
+ * repeated string contact_ids = 1;
377
+ * @return {!Array<string>}
378
+ */
379
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.prototype.getContactIdsList = function() {
380
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
381
+ };
382
+
383
+
384
+ /**
385
+ * @param {!Array<string>} value
386
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdRequest} returns this
387
+ */
388
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.prototype.setContactIdsList = function(value) {
389
+ return jspb.Message.setField(this, 1, value || []);
390
+ };
391
+
392
+
393
+ /**
394
+ * @param {string} value
395
+ * @param {number=} opt_index
396
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdRequest} returns this
397
+ */
398
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.prototype.addContactIds = function(value, opt_index) {
399
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
400
+ };
401
+
402
+
403
+ /**
404
+ * Clears the list making it empty but non-null.
405
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdRequest} returns this
406
+ */
407
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.prototype.clearContactIdsList = function() {
408
+ return this.setContactIdsList([]);
409
+ };
410
+
411
+
412
+ /**
413
+ * optional string service_provider_id = 2;
414
+ * @return {string}
415
+ */
416
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.prototype.getServiceProviderId = function() {
417
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
418
+ };
419
+
420
+
421
+ /**
422
+ * @param {string} value
423
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdRequest} returns this
424
+ */
425
+ proto.wechaty.puppet.GetContactExternalUserIdRequest.prototype.setServiceProviderId = function(value) {
426
+ return jspb.Message.setProto3StringField(this, 2, value);
427
+ };
428
+
429
+
430
+
431
+ /**
432
+ * List of repeated fields within this message type.
433
+ * @private {!Array<number>}
434
+ * @const
435
+ */
436
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.repeatedFields_ = [1];
437
+
438
+
439
+
440
+ if (jspb.Message.GENERATE_TO_OBJECT) {
441
+ /**
442
+ * Creates an object representation of this proto.
443
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
444
+ * Optional fields that are not set will be set to undefined.
445
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
446
+ * For the list of reserved names please see:
447
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
448
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
449
+ * JSPB instance for transitional soy proto support:
450
+ * http://goto/soy-param-migration
451
+ * @return {!Object}
452
+ */
453
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.prototype.toObject = function(opt_includeInstance) {
454
+ return proto.wechaty.puppet.GetContactExternalUserIdResponse.toObject(opt_includeInstance, this);
455
+ };
456
+
457
+
458
+ /**
459
+ * Static version of the {@see toObject} method.
460
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
461
+ * the JSPB instance for transitional soy proto support:
462
+ * http://goto/soy-param-migration
463
+ * @param {!proto.wechaty.puppet.GetContactExternalUserIdResponse} msg The msg instance to transform.
464
+ * @return {!Object}
465
+ * @suppress {unusedLocalVariables} f is only used for nested messages
466
+ */
467
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.toObject = function(includeInstance, msg) {
468
+ var f, obj = {
469
+ contactExternalUserIdParisList: jspb.Message.toObjectList(msg.getContactExternalUserIdParisList(),
470
+ proto.wechaty.puppet.ContactExternalUserIdPair.toObject, includeInstance)
471
+ };
472
+
473
+ if (includeInstance) {
474
+ obj.$jspbMessageInstance = msg;
475
+ }
476
+ return obj;
477
+ };
478
+ }
479
+
480
+
481
+ /**
482
+ * Deserializes binary data (in protobuf wire format).
483
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
484
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdResponse}
485
+ */
486
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.deserializeBinary = function(bytes) {
487
+ var reader = new jspb.BinaryReader(bytes);
488
+ var msg = new proto.wechaty.puppet.GetContactExternalUserIdResponse;
489
+ return proto.wechaty.puppet.GetContactExternalUserIdResponse.deserializeBinaryFromReader(msg, reader);
490
+ };
491
+
492
+
493
+ /**
494
+ * Deserializes binary data (in protobuf wire format) from the
495
+ * given reader into the given message object.
496
+ * @param {!proto.wechaty.puppet.GetContactExternalUserIdResponse} msg The message object to deserialize into.
497
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
498
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdResponse}
499
+ */
500
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.deserializeBinaryFromReader = function(msg, reader) {
501
+ while (reader.nextField()) {
502
+ if (reader.isEndGroup()) {
503
+ break;
504
+ }
505
+ var field = reader.getFieldNumber();
506
+ switch (field) {
507
+ case 1:
508
+ var value = new proto.wechaty.puppet.ContactExternalUserIdPair;
509
+ reader.readMessage(value,proto.wechaty.puppet.ContactExternalUserIdPair.deserializeBinaryFromReader);
510
+ msg.addContactExternalUserIdParis(value);
511
+ break;
512
+ default:
513
+ reader.skipField();
514
+ break;
515
+ }
516
+ }
517
+ return msg;
518
+ };
519
+
520
+
521
+ /**
522
+ * Serializes the message to binary data (in protobuf wire format).
523
+ * @return {!Uint8Array}
524
+ */
525
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.prototype.serializeBinary = function() {
526
+ var writer = new jspb.BinaryWriter();
527
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.serializeBinaryToWriter(this, writer);
528
+ return writer.getResultBuffer();
529
+ };
530
+
531
+
532
+ /**
533
+ * Serializes the given message to binary data (in protobuf wire
534
+ * format), writing to the given BinaryWriter.
535
+ * @param {!proto.wechaty.puppet.GetContactExternalUserIdResponse} message
536
+ * @param {!jspb.BinaryWriter} writer
537
+ * @suppress {unusedLocalVariables} f is only used for nested messages
538
+ */
539
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.serializeBinaryToWriter = function(message, writer) {
540
+ var f = undefined;
541
+ f = message.getContactExternalUserIdParisList();
542
+ if (f.length > 0) {
543
+ writer.writeRepeatedMessage(
544
+ 1,
545
+ f,
546
+ proto.wechaty.puppet.ContactExternalUserIdPair.serializeBinaryToWriter
547
+ );
548
+ }
549
+ };
550
+
551
+
552
+ /**
553
+ * repeated ContactExternalUserIdPair contact_external_user_id_paris = 1;
554
+ * @return {!Array<!proto.wechaty.puppet.ContactExternalUserIdPair>}
555
+ */
556
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.prototype.getContactExternalUserIdParisList = function() {
557
+ return /** @type{!Array<!proto.wechaty.puppet.ContactExternalUserIdPair>} */ (
558
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.ContactExternalUserIdPair, 1));
559
+ };
560
+
561
+
562
+ /**
563
+ * @param {!Array<!proto.wechaty.puppet.ContactExternalUserIdPair>} value
564
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdResponse} returns this
565
+ */
566
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.prototype.setContactExternalUserIdParisList = function(value) {
567
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
568
+ };
569
+
570
+
571
+ /**
572
+ * @param {!proto.wechaty.puppet.ContactExternalUserIdPair=} opt_value
573
+ * @param {number=} opt_index
574
+ * @return {!proto.wechaty.puppet.ContactExternalUserIdPair}
575
+ */
576
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.prototype.addContactExternalUserIdParis = function(opt_value, opt_index) {
577
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.ContactExternalUserIdPair, opt_index);
578
+ };
579
+
580
+
581
+ /**
582
+ * Clears the list making it empty but non-null.
583
+ * @return {!proto.wechaty.puppet.GetContactExternalUserIdResponse} returns this
584
+ */
585
+ proto.wechaty.puppet.GetContactExternalUserIdResponse.prototype.clearContactExternalUserIdParisList = function() {
586
+ return this.setContactExternalUserIdParisList([]);
587
+ };
588
+
589
+
590
+ goog.object.extend(exports, proto.wechaty.puppet);
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/wecom.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/wecom.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.70
12
+ version: 1.0.72
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -43,6 +43,26 @@ paths:
43
43
  type: string
44
44
  tags:
45
45
  - Puppet
46
+ /contact/externalUserId:
47
+ post:
48
+ operationId: Puppet_GetContactExternalUserId
49
+ responses:
50
+ '200':
51
+ description: A successful response.
52
+ schema:
53
+ $ref: '#/definitions/puppetGetContactExternalUserIdResponse'
54
+ default:
55
+ description: An unexpected error response.
56
+ schema:
57
+ $ref: '#/definitions/rpcStatus'
58
+ parameters:
59
+ - name: body
60
+ in: body
61
+ required: true
62
+ schema:
63
+ $ref: '#/definitions/puppetGetContactExternalUserIdRequest'
64
+ tags:
65
+ - Puppet
46
66
  /contact/room/{roomId}/alias/{alias}:
47
67
  put:
48
68
  operationId: Puppet_ContactSelfRoomAlias
@@ -2715,6 +2735,8 @@ definitions:
2715
2735
  time:
2716
2736
  type: integer
2717
2737
  format: int32
2738
+ title:
2739
+ type: string
2718
2740
  message:
2719
2741
  $ref: '#/definitions/puppetChatHistoryContent'
2720
2742
  puppetContactAliasResponse:
@@ -2739,6 +2761,13 @@ definitions:
2739
2761
  type: object
2740
2762
  puppetContactDescriptionResponse:
2741
2763
  type: object
2764
+ puppetContactExternalUserIdPair:
2765
+ type: object
2766
+ properties:
2767
+ contactId:
2768
+ type: string
2769
+ externalUserId:
2770
+ type: string
2742
2771
  puppetContactGender:
2743
2772
  type: string
2744
2773
  enum:
@@ -3082,6 +3111,23 @@ definitions:
3082
3111
  - FRIENDSHIP_TYPE_DELETE: 删除——主动删除好友时触发
3083
3112
  - FRIENDSHIP_TYPE_REMOVED: 被删除——被他人删除好友时触发
3084
3113
  title: 事件类型
3114
+ puppetGetContactExternalUserIdRequest:
3115
+ type: object
3116
+ properties:
3117
+ contactIds:
3118
+ type: array
3119
+ items:
3120
+ type: string
3121
+ serviceProviderId:
3122
+ type: string
3123
+ puppetGetContactExternalUserIdResponse:
3124
+ type: object
3125
+ properties:
3126
+ contactExternalUserIdParis:
3127
+ type: array
3128
+ items:
3129
+ type: object
3130
+ $ref: '#/definitions/puppetContactExternalUserIdPair'
3085
3131
  puppetGetMessageBroadcastStatusResponse:
3086
3132
  type: object
3087
3133
  properties: