@juzi/wechaty-grpc 1.0.5 → 1.0.6

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 (38) hide show
  1. package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +36 -0
  2. package/dist/cjs/out/wechaty/puppet/base_pb.js +275 -0
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +20 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +31 -1
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  9. package/dist/cjs/proto/wechaty/puppet/base.proto +7 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +5 -0
  11. package/dist/cjs/src/package-json.js +1 -1
  12. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  14. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  15. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +36 -0
  16. package/dist/esm/out/wechaty/puppet/base_pb.js +275 -0
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +20 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +31 -1
  19. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  21. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  22. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  23. package/dist/esm/proto/wechaty/puppet/base.proto +7 -0
  24. package/dist/esm/proto/wechaty/puppet.proto +5 -0
  25. package/dist/esm/src/package-json.js +1 -1
  26. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/esm/tests/puppet-server-impl.js +5 -0
  28. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  29. package/out/wechaty/puppet/base_pb.d.ts +36 -0
  30. package/out/wechaty/puppet/base_pb.js +275 -0
  31. package/out/wechaty/puppet.openapi.yaml +20 -1
  32. package/out/wechaty/puppet.swagger.json +31 -1
  33. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  34. package/out/wechaty/puppet_grpc_pb.js +33 -0
  35. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  36. package/out/wechaty/puppet_pb_service.js +40 -0
  37. package/package.json +1 -1
  38. package/src/package-json.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"puppet-server-impl.js","sourceRoot":"","sources":["../../../tests/puppet-server-impl.ts"],"names":[],"mappings":";;;AAOA;;GAEG;AACU,QAAA,gBAAgB,GAAkB;IAE7C,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC/B,KAAK,IAAI,CAAA;QACT,KAAK,QAAQ,CAAA;QACb,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;IAED,aAAa,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QAChC,KAAK,IAAI,CAAA;QACT,KAAK,QAAQ,CAAA;QACb,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;IAED,wBAAwB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC3C,KAAK,IAAI,CAAA;QACT,KAAK,QAAQ,CAAA;QACb,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED,kBAAkB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QACrC,KAAK,IAAI,CAAA;QACT,KAAK,QAAQ,CAAA;QACb,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC9B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QACb,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;IAED,gBAAgB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QACnC,KAAK,IAAI,CAAA;QACT,KAAK,QAAQ,CAAA;QACb,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;IAED,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC1B,KAAK,IAAI,CAAA;QACT,KAAK,QAAQ,CAAA;QACb,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;IAED,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QACjB,KAAK,IAAI,CAAA;QACT,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;IAED,MAAM,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QACzB,KAAK,IAAI,CAAA;QACT,KAAK,QAAQ,CAAA;QACb,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;CAEF,CAAA"}
@@ -211,6 +211,42 @@ export namespace DirtyPayloadResponse {
211
211
  }
212
212
  }
213
213
 
214
+ export class CurrentUserRequest extends jspb.Message {
215
+ serializeBinary(): Uint8Array;
216
+ toObject(includeInstance?: boolean): CurrentUserRequest.AsObject;
217
+ static toObject(includeInstance: boolean, msg: CurrentUserRequest): CurrentUserRequest.AsObject;
218
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
219
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
220
+ static serializeBinaryToWriter(message: CurrentUserRequest, writer: jspb.BinaryWriter): void;
221
+ static deserializeBinary(bytes: Uint8Array): CurrentUserRequest;
222
+ static deserializeBinaryFromReader(message: CurrentUserRequest, reader: jspb.BinaryReader): CurrentUserRequest;
223
+ }
224
+
225
+ export namespace CurrentUserRequest {
226
+ export type AsObject = {
227
+ }
228
+ }
229
+
230
+ export class CurrentUserResponse extends jspb.Message {
231
+ getUserId(): string;
232
+ setUserId(value: string): void;
233
+
234
+ serializeBinary(): Uint8Array;
235
+ toObject(includeInstance?: boolean): CurrentUserResponse.AsObject;
236
+ static toObject(includeInstance: boolean, msg: CurrentUserResponse): CurrentUserResponse.AsObject;
237
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
238
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
239
+ static serializeBinaryToWriter(message: CurrentUserResponse, writer: jspb.BinaryWriter): void;
240
+ static deserializeBinary(bytes: Uint8Array): CurrentUserResponse;
241
+ static deserializeBinaryFromReader(message: CurrentUserResponse, reader: jspb.BinaryReader): CurrentUserResponse;
242
+ }
243
+
244
+ export namespace CurrentUserResponse {
245
+ export type AsObject = {
246
+ userId: string,
247
+ }
248
+ }
249
+
214
250
  export interface PayloadTypeMap {
215
251
  PAYLOAD_TYPE_UNSPECIFIED: 0;
216
252
  PAYLOAD_TYPE_MESSAGE: 1;
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
17
 
18
+ goog.exportSymbol('proto.wechaty.puppet.CurrentUserRequest', null, global);
19
+ goog.exportSymbol('proto.wechaty.puppet.CurrentUserResponse', null, global);
18
20
  goog.exportSymbol('proto.wechaty.puppet.DingRequest', null, global);
19
21
  goog.exportSymbol('proto.wechaty.puppet.DingResponse', null, global);
20
22
  goog.exportSymbol('proto.wechaty.puppet.DirtyPayloadRequest', null, global);
@@ -280,6 +282,48 @@ if (goog.DEBUG && !COMPILED) {
280
282
  */
281
283
  proto.wechaty.puppet.DirtyPayloadResponse.displayName = 'proto.wechaty.puppet.DirtyPayloadResponse';
282
284
  }
285
+ /**
286
+ * Generated by JsPbCodeGenerator.
287
+ * @param {Array=} opt_data Optional initial data array, typically from a
288
+ * server response, or constructed directly in Javascript. The array is used
289
+ * in place and becomes part of the constructed object. It is not cloned.
290
+ * If no data is provided, the constructed object will be empty, but still
291
+ * valid.
292
+ * @extends {jspb.Message}
293
+ * @constructor
294
+ */
295
+ proto.wechaty.puppet.CurrentUserRequest = function(opt_data) {
296
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
297
+ };
298
+ goog.inherits(proto.wechaty.puppet.CurrentUserRequest, jspb.Message);
299
+ if (goog.DEBUG && !COMPILED) {
300
+ /**
301
+ * @public
302
+ * @override
303
+ */
304
+ proto.wechaty.puppet.CurrentUserRequest.displayName = 'proto.wechaty.puppet.CurrentUserRequest';
305
+ }
306
+ /**
307
+ * Generated by JsPbCodeGenerator.
308
+ * @param {Array=} opt_data Optional initial data array, typically from a
309
+ * server response, or constructed directly in Javascript. The array is used
310
+ * in place and becomes part of the constructed object. It is not cloned.
311
+ * If no data is provided, the constructed object will be empty, but still
312
+ * valid.
313
+ * @extends {jspb.Message}
314
+ * @constructor
315
+ */
316
+ proto.wechaty.puppet.CurrentUserResponse = function(opt_data) {
317
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
318
+ };
319
+ goog.inherits(proto.wechaty.puppet.CurrentUserResponse, jspb.Message);
320
+ if (goog.DEBUG && !COMPILED) {
321
+ /**
322
+ * @public
323
+ * @override
324
+ */
325
+ proto.wechaty.puppet.CurrentUserResponse.displayName = 'proto.wechaty.puppet.CurrentUserResponse';
326
+ }
283
327
 
284
328
 
285
329
 
@@ -1609,6 +1653,237 @@ proto.wechaty.puppet.DirtyPayloadResponse.serializeBinaryToWriter = function(mes
1609
1653
  };
1610
1654
 
1611
1655
 
1656
+
1657
+
1658
+
1659
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1660
+ /**
1661
+ * Creates an object representation of this proto.
1662
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1663
+ * Optional fields that are not set will be set to undefined.
1664
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1665
+ * For the list of reserved names please see:
1666
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1667
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1668
+ * JSPB instance for transitional soy proto support:
1669
+ * http://goto/soy-param-migration
1670
+ * @return {!Object}
1671
+ */
1672
+ proto.wechaty.puppet.CurrentUserRequest.prototype.toObject = function(opt_includeInstance) {
1673
+ return proto.wechaty.puppet.CurrentUserRequest.toObject(opt_includeInstance, this);
1674
+ };
1675
+
1676
+
1677
+ /**
1678
+ * Static version of the {@see toObject} method.
1679
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1680
+ * the JSPB instance for transitional soy proto support:
1681
+ * http://goto/soy-param-migration
1682
+ * @param {!proto.wechaty.puppet.CurrentUserRequest} msg The msg instance to transform.
1683
+ * @return {!Object}
1684
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1685
+ */
1686
+ proto.wechaty.puppet.CurrentUserRequest.toObject = function(includeInstance, msg) {
1687
+ var f, obj = {
1688
+
1689
+ };
1690
+
1691
+ if (includeInstance) {
1692
+ obj.$jspbMessageInstance = msg;
1693
+ }
1694
+ return obj;
1695
+ };
1696
+ }
1697
+
1698
+
1699
+ /**
1700
+ * Deserializes binary data (in protobuf wire format).
1701
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1702
+ * @return {!proto.wechaty.puppet.CurrentUserRequest}
1703
+ */
1704
+ proto.wechaty.puppet.CurrentUserRequest.deserializeBinary = function(bytes) {
1705
+ var reader = new jspb.BinaryReader(bytes);
1706
+ var msg = new proto.wechaty.puppet.CurrentUserRequest;
1707
+ return proto.wechaty.puppet.CurrentUserRequest.deserializeBinaryFromReader(msg, reader);
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * Deserializes binary data (in protobuf wire format) from the
1713
+ * given reader into the given message object.
1714
+ * @param {!proto.wechaty.puppet.CurrentUserRequest} msg The message object to deserialize into.
1715
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1716
+ * @return {!proto.wechaty.puppet.CurrentUserRequest}
1717
+ */
1718
+ proto.wechaty.puppet.CurrentUserRequest.deserializeBinaryFromReader = function(msg, reader) {
1719
+ while (reader.nextField()) {
1720
+ if (reader.isEndGroup()) {
1721
+ break;
1722
+ }
1723
+ var field = reader.getFieldNumber();
1724
+ switch (field) {
1725
+ default:
1726
+ reader.skipField();
1727
+ break;
1728
+ }
1729
+ }
1730
+ return msg;
1731
+ };
1732
+
1733
+
1734
+ /**
1735
+ * Serializes the message to binary data (in protobuf wire format).
1736
+ * @return {!Uint8Array}
1737
+ */
1738
+ proto.wechaty.puppet.CurrentUserRequest.prototype.serializeBinary = function() {
1739
+ var writer = new jspb.BinaryWriter();
1740
+ proto.wechaty.puppet.CurrentUserRequest.serializeBinaryToWriter(this, writer);
1741
+ return writer.getResultBuffer();
1742
+ };
1743
+
1744
+
1745
+ /**
1746
+ * Serializes the given message to binary data (in protobuf wire
1747
+ * format), writing to the given BinaryWriter.
1748
+ * @param {!proto.wechaty.puppet.CurrentUserRequest} message
1749
+ * @param {!jspb.BinaryWriter} writer
1750
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1751
+ */
1752
+ proto.wechaty.puppet.CurrentUserRequest.serializeBinaryToWriter = function(message, writer) {
1753
+ var f = undefined;
1754
+ };
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1761
+ /**
1762
+ * Creates an object representation of this proto.
1763
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1764
+ * Optional fields that are not set will be set to undefined.
1765
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1766
+ * For the list of reserved names please see:
1767
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1768
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1769
+ * JSPB instance for transitional soy proto support:
1770
+ * http://goto/soy-param-migration
1771
+ * @return {!Object}
1772
+ */
1773
+ proto.wechaty.puppet.CurrentUserResponse.prototype.toObject = function(opt_includeInstance) {
1774
+ return proto.wechaty.puppet.CurrentUserResponse.toObject(opt_includeInstance, this);
1775
+ };
1776
+
1777
+
1778
+ /**
1779
+ * Static version of the {@see toObject} method.
1780
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1781
+ * the JSPB instance for transitional soy proto support:
1782
+ * http://goto/soy-param-migration
1783
+ * @param {!proto.wechaty.puppet.CurrentUserResponse} msg The msg instance to transform.
1784
+ * @return {!Object}
1785
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1786
+ */
1787
+ proto.wechaty.puppet.CurrentUserResponse.toObject = function(includeInstance, msg) {
1788
+ var f, obj = {
1789
+ userId: jspb.Message.getFieldWithDefault(msg, 1, "")
1790
+ };
1791
+
1792
+ if (includeInstance) {
1793
+ obj.$jspbMessageInstance = msg;
1794
+ }
1795
+ return obj;
1796
+ };
1797
+ }
1798
+
1799
+
1800
+ /**
1801
+ * Deserializes binary data (in protobuf wire format).
1802
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1803
+ * @return {!proto.wechaty.puppet.CurrentUserResponse}
1804
+ */
1805
+ proto.wechaty.puppet.CurrentUserResponse.deserializeBinary = function(bytes) {
1806
+ var reader = new jspb.BinaryReader(bytes);
1807
+ var msg = new proto.wechaty.puppet.CurrentUserResponse;
1808
+ return proto.wechaty.puppet.CurrentUserResponse.deserializeBinaryFromReader(msg, reader);
1809
+ };
1810
+
1811
+
1812
+ /**
1813
+ * Deserializes binary data (in protobuf wire format) from the
1814
+ * given reader into the given message object.
1815
+ * @param {!proto.wechaty.puppet.CurrentUserResponse} msg The message object to deserialize into.
1816
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1817
+ * @return {!proto.wechaty.puppet.CurrentUserResponse}
1818
+ */
1819
+ proto.wechaty.puppet.CurrentUserResponse.deserializeBinaryFromReader = function(msg, reader) {
1820
+ while (reader.nextField()) {
1821
+ if (reader.isEndGroup()) {
1822
+ break;
1823
+ }
1824
+ var field = reader.getFieldNumber();
1825
+ switch (field) {
1826
+ case 1:
1827
+ var value = /** @type {string} */ (reader.readString());
1828
+ msg.setUserId(value);
1829
+ break;
1830
+ default:
1831
+ reader.skipField();
1832
+ break;
1833
+ }
1834
+ }
1835
+ return msg;
1836
+ };
1837
+
1838
+
1839
+ /**
1840
+ * Serializes the message to binary data (in protobuf wire format).
1841
+ * @return {!Uint8Array}
1842
+ */
1843
+ proto.wechaty.puppet.CurrentUserResponse.prototype.serializeBinary = function() {
1844
+ var writer = new jspb.BinaryWriter();
1845
+ proto.wechaty.puppet.CurrentUserResponse.serializeBinaryToWriter(this, writer);
1846
+ return writer.getResultBuffer();
1847
+ };
1848
+
1849
+
1850
+ /**
1851
+ * Serializes the given message to binary data (in protobuf wire
1852
+ * format), writing to the given BinaryWriter.
1853
+ * @param {!proto.wechaty.puppet.CurrentUserResponse} message
1854
+ * @param {!jspb.BinaryWriter} writer
1855
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1856
+ */
1857
+ proto.wechaty.puppet.CurrentUserResponse.serializeBinaryToWriter = function(message, writer) {
1858
+ var f = undefined;
1859
+ f = message.getUserId();
1860
+ if (f.length > 0) {
1861
+ writer.writeString(
1862
+ 1,
1863
+ f
1864
+ );
1865
+ }
1866
+ };
1867
+
1868
+
1869
+ /**
1870
+ * optional string user_id = 1;
1871
+ * @return {string}
1872
+ */
1873
+ proto.wechaty.puppet.CurrentUserResponse.prototype.getUserId = function() {
1874
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1875
+ };
1876
+
1877
+
1878
+ /**
1879
+ * @param {string} value
1880
+ * @return {!proto.wechaty.puppet.CurrentUserResponse} returns this
1881
+ */
1882
+ proto.wechaty.puppet.CurrentUserResponse.prototype.setUserId = function(value) {
1883
+ return jspb.Message.setProto3StringField(this, 1, value);
1884
+ };
1885
+
1886
+
1612
1887
  /**
1613
1888
  * @enum {number}
1614
1889
  */
@@ -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.5
12
+ version: 1.0.6
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -598,6 +598,20 @@ paths:
598
598
  $ref: '#/definitions/puppetUrlLinkPayload'
599
599
  tags:
600
600
  - Puppet
601
+ /currentUser:
602
+ get:
603
+ operationId: Puppet_CurrentUser
604
+ responses:
605
+ '200':
606
+ description: A successful response.
607
+ schema:
608
+ $ref: '#/definitions/puppetCurrentUserResponse'
609
+ default:
610
+ description: An unexpected error response.
611
+ schema:
612
+ $ref: '#/definitions/rpcStatus'
613
+ tags:
614
+ - Puppet
601
615
  /ding:
602
616
  post:
603
617
  operationId: Puppet_Ding
@@ -1828,6 +1842,11 @@ definitions:
1828
1842
  - CONTACT_TYPE_OFFICIAL
1829
1843
  - CONTACT_TYPE_CORPORATION
1830
1844
  default: CONTACT_TYPE_UNSPECIFIED
1845
+ puppetCurrentUserResponse:
1846
+ type: object
1847
+ properties:
1848
+ userId:
1849
+ type: string
1831
1850
  puppetDingRequest:
1832
1851
  type: object
1833
1852
  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.5",
6
+ "version": "1.0.6",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -890,6 +890,28 @@
890
890
  ]
891
891
  }
892
892
  },
893
+ "/currentUser": {
894
+ "get": {
895
+ "operationId": "Puppet_CurrentUser",
896
+ "responses": {
897
+ "200": {
898
+ "description": "A successful response.",
899
+ "schema": {
900
+ "$ref": "#/definitions/puppetCurrentUserResponse"
901
+ }
902
+ },
903
+ "default": {
904
+ "description": "An unexpected error response.",
905
+ "schema": {
906
+ "$ref": "#/definitions/rpcStatus"
907
+ }
908
+ }
909
+ },
910
+ "tags": [
911
+ "Puppet"
912
+ ]
913
+ }
914
+ },
893
915
  "/ding": {
894
916
  "post": {
895
917
  "operationId": "Puppet_Ding",
@@ -2723,6 +2745,14 @@
2723
2745
  ],
2724
2746
  "default": "CONTACT_TYPE_UNSPECIFIED"
2725
2747
  },
2748
+ "puppetCurrentUserResponse": {
2749
+ "type": "object",
2750
+ "properties": {
2751
+ "userId": {
2752
+ "type": "string"
2753
+ }
2754
+ }
2755
+ },
2726
2756
  "puppetDingRequest": {
2727
2757
  "type": "object",
2728
2758
  "properties": {
@@ -28,6 +28,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
28
28
  stop: IPuppetService_IStop;
29
29
  logout: IPuppetService_ILogout;
30
30
  ding: IPuppetService_IDing;
31
+ currentUser: IPuppetService_ICurrentUser;
31
32
  version: IPuppetService_IVersion;
32
33
  event: IPuppetService_IEvent;
33
34
  dirtyPayload: IPuppetService_IDirtyPayload;
@@ -150,6 +151,15 @@ interface IPuppetService_IDing extends grpc.MethodDefinition<wechaty_puppet_base
150
151
  responseSerialize: grpc.serialize<wechaty_puppet_base_pb.DingResponse>;
151
152
  responseDeserialize: grpc.deserialize<wechaty_puppet_base_pb.DingResponse>;
152
153
  }
154
+ interface IPuppetService_ICurrentUser extends grpc.MethodDefinition<wechaty_puppet_base_pb.CurrentUserRequest, wechaty_puppet_base_pb.CurrentUserResponse> {
155
+ path: "/wechaty.Puppet/CurrentUser";
156
+ requestStream: false;
157
+ responseStream: false;
158
+ requestSerialize: grpc.serialize<wechaty_puppet_base_pb.CurrentUserRequest>;
159
+ requestDeserialize: grpc.deserialize<wechaty_puppet_base_pb.CurrentUserRequest>;
160
+ responseSerialize: grpc.serialize<wechaty_puppet_base_pb.CurrentUserResponse>;
161
+ responseDeserialize: grpc.deserialize<wechaty_puppet_base_pb.CurrentUserResponse>;
162
+ }
153
163
  interface IPuppetService_IVersion extends grpc.MethodDefinition<wechaty_puppet_base_pb.VersionRequest, wechaty_puppet_base_pb.VersionResponse> {
154
164
  path: "/wechaty.Puppet/Version";
155
165
  requestStream: false;
@@ -674,6 +684,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
674
684
  stop: grpc.handleUnaryCall<wechaty_puppet_base_pb.StopRequest, wechaty_puppet_base_pb.StopResponse>;
675
685
  logout: grpc.handleUnaryCall<wechaty_puppet_base_pb.LogoutRequest, wechaty_puppet_base_pb.LogoutResponse>;
676
686
  ding: grpc.handleUnaryCall<wechaty_puppet_base_pb.DingRequest, wechaty_puppet_base_pb.DingResponse>;
687
+ currentUser: grpc.handleUnaryCall<wechaty_puppet_base_pb.CurrentUserRequest, wechaty_puppet_base_pb.CurrentUserResponse>;
677
688
  version: grpc.handleUnaryCall<wechaty_puppet_base_pb.VersionRequest, wechaty_puppet_base_pb.VersionResponse>;
678
689
  event: grpc.handleServerStreamingCall<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse>;
679
690
  dirtyPayload: grpc.handleUnaryCall<wechaty_puppet_base_pb.DirtyPayloadRequest, wechaty_puppet_base_pb.DirtyPayloadResponse>;
@@ -754,6 +765,9 @@ export interface IPuppetClient {
754
765
  ding(request: wechaty_puppet_base_pb.DingRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DingResponse) => void): grpc.ClientUnaryCall;
755
766
  ding(request: wechaty_puppet_base_pb.DingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DingResponse) => void): grpc.ClientUnaryCall;
756
767
  ding(request: wechaty_puppet_base_pb.DingRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DingResponse) => void): grpc.ClientUnaryCall;
768
+ currentUser(request: wechaty_puppet_base_pb.CurrentUserRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.CurrentUserResponse) => void): grpc.ClientUnaryCall;
769
+ currentUser(request: wechaty_puppet_base_pb.CurrentUserRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.CurrentUserResponse) => void): grpc.ClientUnaryCall;
770
+ currentUser(request: wechaty_puppet_base_pb.CurrentUserRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.CurrentUserResponse) => void): grpc.ClientUnaryCall;
757
771
  version(request: wechaty_puppet_base_pb.VersionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
758
772
  version(request: wechaty_puppet_base_pb.VersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
759
773
  version(request: wechaty_puppet_base_pb.VersionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
@@ -948,6 +962,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
948
962
  public ding(request: wechaty_puppet_base_pb.DingRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DingResponse) => void): grpc.ClientUnaryCall;
949
963
  public ding(request: wechaty_puppet_base_pb.DingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DingResponse) => void): grpc.ClientUnaryCall;
950
964
  public ding(request: wechaty_puppet_base_pb.DingRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DingResponse) => void): grpc.ClientUnaryCall;
965
+ public currentUser(request: wechaty_puppet_base_pb.CurrentUserRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.CurrentUserResponse) => void): grpc.ClientUnaryCall;
966
+ public currentUser(request: wechaty_puppet_base_pb.CurrentUserRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.CurrentUserResponse) => void): grpc.ClientUnaryCall;
967
+ public currentUser(request: wechaty_puppet_base_pb.CurrentUserRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.CurrentUserResponse) => void): grpc.ClientUnaryCall;
951
968
  public version(request: wechaty_puppet_base_pb.VersionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
952
969
  public version(request: wechaty_puppet_base_pb.VersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
953
970
  public version(request: wechaty_puppet_base_pb.VersionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.VersionResponse) => void): grpc.ClientUnaryCall;
@@ -249,6 +249,28 @@ function deserialize_wechaty_puppet_ContactSelfSignatureResponse(buffer_arg) {
249
249
  return wechaty_puppet_contact_pb.ContactSelfSignatureResponse.deserializeBinary(new Uint8Array(buffer_arg));
250
250
  }
251
251
 
252
+ function serialize_wechaty_puppet_CurrentUserRequest(arg) {
253
+ if (!(arg instanceof wechaty_puppet_base_pb.CurrentUserRequest)) {
254
+ throw new Error('Expected argument of type wechaty.puppet.CurrentUserRequest');
255
+ }
256
+ return Buffer.from(arg.serializeBinary());
257
+ }
258
+
259
+ function deserialize_wechaty_puppet_CurrentUserRequest(buffer_arg) {
260
+ return wechaty_puppet_base_pb.CurrentUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
261
+ }
262
+
263
+ function serialize_wechaty_puppet_CurrentUserResponse(arg) {
264
+ if (!(arg instanceof wechaty_puppet_base_pb.CurrentUserResponse)) {
265
+ throw new Error('Expected argument of type wechaty.puppet.CurrentUserResponse');
266
+ }
267
+ return Buffer.from(arg.serializeBinary());
268
+ }
269
+
270
+ function deserialize_wechaty_puppet_CurrentUserResponse(buffer_arg) {
271
+ return wechaty_puppet_base_pb.CurrentUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
272
+ }
273
+
252
274
  function serialize_wechaty_puppet_DingRequest(arg) {
253
275
  if (!(arg instanceof wechaty_puppet_base_pb.DingRequest)) {
254
276
  throw new Error('Expected argument of type wechaty.puppet.DingRequest');
@@ -1500,6 +1522,17 @@ start: {
1500
1522
  responseSerialize: serialize_wechaty_puppet_DingResponse,
1501
1523
  responseDeserialize: deserialize_wechaty_puppet_DingResponse,
1502
1524
  },
1525
+ currentUser: {
1526
+ path: '/wechaty.Puppet/CurrentUser',
1527
+ requestStream: false,
1528
+ responseStream: false,
1529
+ requestType: wechaty_puppet_base_pb.CurrentUserRequest,
1530
+ responseType: wechaty_puppet_base_pb.CurrentUserResponse,
1531
+ requestSerialize: serialize_wechaty_puppet_CurrentUserRequest,
1532
+ requestDeserialize: deserialize_wechaty_puppet_CurrentUserRequest,
1533
+ responseSerialize: serialize_wechaty_puppet_CurrentUserResponse,
1534
+ responseDeserialize: deserialize_wechaty_puppet_CurrentUserResponse,
1535
+ },
1503
1536
  version: {
1504
1537
  path: '/wechaty.Puppet/Version',
1505
1538
  requestStream: false,
@@ -78,6 +78,15 @@ type PuppetDing = {
78
78
  readonly responseType: typeof wechaty_puppet_base_pb.DingResponse;
79
79
  };
80
80
 
81
+ type PuppetCurrentUser = {
82
+ readonly methodName: string;
83
+ readonly service: typeof Puppet;
84
+ readonly requestStream: false;
85
+ readonly responseStream: false;
86
+ readonly requestType: typeof wechaty_puppet_base_pb.CurrentUserRequest;
87
+ readonly responseType: typeof wechaty_puppet_base_pb.CurrentUserResponse;
88
+ };
89
+
81
90
  type PuppetVersion = {
82
91
  readonly methodName: string;
83
92
  readonly service: typeof Puppet;
@@ -600,6 +609,7 @@ export class Puppet {
600
609
  static readonly Stop: PuppetStop;
601
610
  static readonly Logout: PuppetLogout;
602
611
  static readonly Ding: PuppetDing;
612
+ static readonly CurrentUser: PuppetCurrentUser;
603
613
  static readonly Version: PuppetVersion;
604
614
  static readonly Event: PuppetEvent;
605
615
  static readonly DirtyPayload: PuppetDirtyPayload;
@@ -730,6 +740,15 @@ export class PuppetClient {
730
740
  requestMessage: wechaty_puppet_base_pb.DingRequest,
731
741
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.DingResponse|null) => void
732
742
  ): UnaryResponse;
743
+ currentUser(
744
+ requestMessage: wechaty_puppet_base_pb.CurrentUserRequest,
745
+ metadata: grpc.Metadata,
746
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.CurrentUserResponse|null) => void
747
+ ): UnaryResponse;
748
+ currentUser(
749
+ requestMessage: wechaty_puppet_base_pb.CurrentUserRequest,
750
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.CurrentUserResponse|null) => void
751
+ ): UnaryResponse;
733
752
  version(
734
753
  requestMessage: wechaty_puppet_base_pb.VersionRequest,
735
754
  metadata: grpc.Metadata,
@@ -84,6 +84,15 @@ Puppet.Ding = {
84
84
  responseType: wechaty_puppet_base_pb.DingResponse
85
85
  };
86
86
 
87
+ Puppet.CurrentUser = {
88
+ methodName: "CurrentUser",
89
+ service: Puppet,
90
+ requestStream: false,
91
+ responseStream: false,
92
+ requestType: wechaty_puppet_base_pb.CurrentUserRequest,
93
+ responseType: wechaty_puppet_base_pb.CurrentUserResponse
94
+ };
95
+
87
96
  Puppet.Version = {
88
97
  methodName: "Version",
89
98
  service: Puppet,
@@ -847,6 +856,37 @@ PuppetClient.prototype.ding = function ding(requestMessage, metadata, callback)
847
856
  };
848
857
  };
849
858
 
859
+ PuppetClient.prototype.currentUser = function currentUser(requestMessage, metadata, callback) {
860
+ if (arguments.length === 2) {
861
+ callback = arguments[1];
862
+ }
863
+ var client = grpc.unary(Puppet.CurrentUser, {
864
+ request: requestMessage,
865
+ host: this.serviceHost,
866
+ metadata: metadata,
867
+ transport: this.options.transport,
868
+ debug: this.options.debug,
869
+ onEnd: function (response) {
870
+ if (callback) {
871
+ if (response.status !== grpc.Code.OK) {
872
+ var err = new Error(response.statusMessage);
873
+ err.code = response.status;
874
+ err.metadata = response.trailers;
875
+ callback(err, null);
876
+ } else {
877
+ callback(null, response.message);
878
+ }
879
+ }
880
+ }
881
+ });
882
+ return {
883
+ cancel: function () {
884
+ callback = null;
885
+ client.close();
886
+ }
887
+ };
888
+ };
889
+
850
890
  PuppetClient.prototype.version = function version(requestMessage, metadata, callback) {
851
891
  if (arguments.length === 2) {
852
892
  callback = arguments[1];