@juzi/wechaty-grpc 1.0.62 → 1.0.64

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 (105) 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/examples/auth/raw-https/client.js.map +1 -1
  4. package/dist/cjs/examples/auth/server.js +5 -6
  5. package/dist/cjs/examples/auth/server.js.map +1 -1
  6. package/dist/cjs/examples/client.js +2 -1
  7. package/dist/cjs/examples/client.js.map +1 -1
  8. package/dist/cjs/out/wechaty/puppet/call_grpc_pb.js +1 -0
  9. package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +61 -0
  10. package/dist/cjs/out/wechaty/puppet/call_pb.js +338 -0
  11. package/dist/cjs/out/wechaty/puppet/call_pb_service.d.ts +3 -0
  12. package/dist/cjs/out/wechaty/puppet/call_pb_service.js +3 -0
  13. package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +12 -3
  14. package/dist/cjs/out/wechaty/puppet/channel_pb.js +19 -8
  15. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +45 -0
  16. package/dist/cjs/out/wechaty/puppet/message_pb.js +330 -1
  17. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +42 -0
  18. package/dist/cjs/out/wechaty/puppet/room_pb.js +331 -0
  19. package/dist/cjs/out/wechaty/puppet.openapi.yaml +218 -84
  20. package/dist/cjs/out/wechaty/puppet.swagger.json +186 -5
  21. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -1
  22. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +77 -1
  23. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  24. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  25. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +57 -0
  26. package/dist/cjs/out/wechaty/puppet_pb_service.js +120 -0
  27. package/dist/cjs/proto/wechaty/puppet/call.proto +28 -0
  28. package/dist/cjs/proto/wechaty/puppet/channel.proto +8 -1
  29. package/dist/cjs/proto/wechaty/puppet/message.proto +11 -0
  30. package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
  31. package/dist/cjs/proto/wechaty/puppet.proto +17 -1
  32. package/dist/cjs/src/package-json.d.ts.map +1 -1
  33. package/dist/cjs/src/package-json.js +7 -6
  34. package/dist/cjs/src/package-json.js.map +1 -1
  35. package/dist/cjs/tests/health-check.spec.js +2 -2
  36. package/dist/cjs/tests/health-check.spec.js.map +1 -1
  37. package/dist/cjs/tests/integration.spec.js.map +1 -1
  38. package/dist/cjs/tests/nullable.spec.js +4 -0
  39. package/dist/cjs/tests/nullable.spec.js.map +1 -1
  40. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  41. package/dist/cjs/tests/puppet-server-impl.js +15 -0
  42. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  43. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  44. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  45. package/dist/esm/examples/auth/raw-https/client.js.map +1 -1
  46. package/dist/esm/examples/auth/server.js +2 -3
  47. package/dist/esm/examples/auth/server.js.map +1 -1
  48. package/dist/esm/examples/client.js +2 -1
  49. package/dist/esm/examples/client.js.map +1 -1
  50. package/dist/esm/out/wechaty/puppet/call_grpc_pb.js +1 -0
  51. package/dist/esm/out/wechaty/puppet/call_pb.d.ts +61 -0
  52. package/dist/esm/out/wechaty/puppet/call_pb.js +338 -0
  53. package/dist/esm/out/wechaty/puppet/call_pb_service.d.ts +3 -0
  54. package/dist/esm/out/wechaty/puppet/call_pb_service.js +3 -0
  55. package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +12 -3
  56. package/dist/esm/out/wechaty/puppet/channel_pb.js +19 -8
  57. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +45 -0
  58. package/dist/esm/out/wechaty/puppet/message_pb.js +330 -1
  59. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +42 -0
  60. package/dist/esm/out/wechaty/puppet/room_pb.js +331 -0
  61. package/dist/esm/out/wechaty/puppet.openapi.yaml +218 -84
  62. package/dist/esm/out/wechaty/puppet.swagger.json +186 -5
  63. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -1
  64. package/dist/esm/out/wechaty/puppet_grpc_pb.js +77 -1
  65. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  66. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  67. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +57 -0
  68. package/dist/esm/out/wechaty/puppet_pb_service.js +120 -0
  69. package/dist/esm/proto/wechaty/puppet/call.proto +28 -0
  70. package/dist/esm/proto/wechaty/puppet/channel.proto +8 -1
  71. package/dist/esm/proto/wechaty/puppet/message.proto +11 -0
  72. package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
  73. package/dist/esm/proto/wechaty/puppet.proto +17 -1
  74. package/dist/esm/src/package-json.d.ts.map +1 -1
  75. package/dist/esm/src/package-json.js +7 -6
  76. package/dist/esm/src/package-json.js.map +1 -1
  77. package/dist/esm/tests/health-check.spec.js +2 -2
  78. package/dist/esm/tests/health-check.spec.js.map +1 -1
  79. package/dist/esm/tests/integration.spec.js.map +1 -1
  80. package/dist/esm/tests/nullable.spec.js +4 -0
  81. package/dist/esm/tests/nullable.spec.js.map +1 -1
  82. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  83. package/dist/esm/tests/puppet-server-impl.js +15 -0
  84. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  85. package/out/wechaty/puppet/call_grpc_pb.js +1 -0
  86. package/out/wechaty/puppet/call_pb.d.ts +61 -0
  87. package/out/wechaty/puppet/call_pb.js +338 -0
  88. package/out/wechaty/puppet/call_pb_service.d.ts +3 -0
  89. package/out/wechaty/puppet/call_pb_service.js +3 -0
  90. package/out/wechaty/puppet/channel_pb.d.ts +12 -3
  91. package/out/wechaty/puppet/channel_pb.js +19 -8
  92. package/out/wechaty/puppet/message_pb.d.ts +45 -0
  93. package/out/wechaty/puppet/message_pb.js +330 -1
  94. package/out/wechaty/puppet/room_pb.d.ts +42 -0
  95. package/out/wechaty/puppet/room_pb.js +331 -0
  96. package/out/wechaty/puppet.openapi.yaml +218 -84
  97. package/out/wechaty/puppet.swagger.json +186 -5
  98. package/out/wechaty/puppet_grpc_pb.d.ts +51 -1
  99. package/out/wechaty/puppet_grpc_pb.js +77 -1
  100. package/out/wechaty/puppet_pb.d.ts +0 -1
  101. package/out/wechaty/puppet_pb.js +0 -2
  102. package/out/wechaty/puppet_pb_service.d.ts +57 -0
  103. package/out/wechaty/puppet_pb_service.js +120 -0
  104. package/package.json +7 -6
  105. package/src/package-json.ts +7 -6
@@ -21,6 +21,8 @@ var wechaty_puppet_util_pb = require('../../wechaty/puppet/util_pb.js');
21
21
  goog.object.extend(proto, wechaty_puppet_util_pb);
22
22
  goog.exportSymbol('proto.wechaty.puppet.RoomAddRequest', null, global);
23
23
  goog.exportSymbol('proto.wechaty.puppet.RoomAddResponse', null, global);
24
+ goog.exportSymbol('proto.wechaty.puppet.RoomAdminsRequest', null, global);
25
+ goog.exportSymbol('proto.wechaty.puppet.RoomAdminsResponse', null, global);
24
26
  goog.exportSymbol('proto.wechaty.puppet.RoomAnnounceRequest', null, global);
25
27
  goog.exportSymbol('proto.wechaty.puppet.RoomAnnounceResponse', null, global);
26
28
  goog.exportSymbol('proto.wechaty.puppet.RoomAvatarRequest', null, global);
@@ -591,6 +593,48 @@ if (goog.DEBUG && !COMPILED) {
591
593
  */
592
594
  proto.wechaty.puppet.RoomPermissionResponse.displayName = 'proto.wechaty.puppet.RoomPermissionResponse';
593
595
  }
596
+ /**
597
+ * Generated by JsPbCodeGenerator.
598
+ * @param {Array=} opt_data Optional initial data array, typically from a
599
+ * server response, or constructed directly in Javascript. The array is used
600
+ * in place and becomes part of the constructed object. It is not cloned.
601
+ * If no data is provided, the constructed object will be empty, but still
602
+ * valid.
603
+ * @extends {jspb.Message}
604
+ * @constructor
605
+ */
606
+ proto.wechaty.puppet.RoomAdminsRequest = function(opt_data) {
607
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomAdminsRequest.repeatedFields_, null);
608
+ };
609
+ goog.inherits(proto.wechaty.puppet.RoomAdminsRequest, jspb.Message);
610
+ if (goog.DEBUG && !COMPILED) {
611
+ /**
612
+ * @public
613
+ * @override
614
+ */
615
+ proto.wechaty.puppet.RoomAdminsRequest.displayName = 'proto.wechaty.puppet.RoomAdminsRequest';
616
+ }
617
+ /**
618
+ * Generated by JsPbCodeGenerator.
619
+ * @param {Array=} opt_data Optional initial data array, typically from a
620
+ * server response, or constructed directly in Javascript. The array is used
621
+ * in place and becomes part of the constructed object. It is not cloned.
622
+ * If no data is provided, the constructed object will be empty, but still
623
+ * valid.
624
+ * @extends {jspb.Message}
625
+ * @constructor
626
+ */
627
+ proto.wechaty.puppet.RoomAdminsResponse = function(opt_data) {
628
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
629
+ };
630
+ goog.inherits(proto.wechaty.puppet.RoomAdminsResponse, jspb.Message);
631
+ if (goog.DEBUG && !COMPILED) {
632
+ /**
633
+ * @public
634
+ * @override
635
+ */
636
+ proto.wechaty.puppet.RoomAdminsResponse.displayName = 'proto.wechaty.puppet.RoomAdminsResponse';
637
+ }
594
638
 
595
639
 
596
640
 
@@ -4940,4 +4984,291 @@ proto.wechaty.puppet.RoomPermissionResponse.prototype.setForbidRoomTopicEdit = f
4940
4984
  };
4941
4985
 
4942
4986
 
4987
+
4988
+ /**
4989
+ * List of repeated fields within this message type.
4990
+ * @private {!Array<number>}
4991
+ * @const
4992
+ */
4993
+ proto.wechaty.puppet.RoomAdminsRequest.repeatedFields_ = [2];
4994
+
4995
+
4996
+
4997
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4998
+ /**
4999
+ * Creates an object representation of this proto.
5000
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5001
+ * Optional fields that are not set will be set to undefined.
5002
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5003
+ * For the list of reserved names please see:
5004
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5005
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5006
+ * JSPB instance for transitional soy proto support:
5007
+ * http://goto/soy-param-migration
5008
+ * @return {!Object}
5009
+ */
5010
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.toObject = function(opt_includeInstance) {
5011
+ return proto.wechaty.puppet.RoomAdminsRequest.toObject(opt_includeInstance, this);
5012
+ };
5013
+
5014
+
5015
+ /**
5016
+ * Static version of the {@see toObject} method.
5017
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5018
+ * the JSPB instance for transitional soy proto support:
5019
+ * http://goto/soy-param-migration
5020
+ * @param {!proto.wechaty.puppet.RoomAdminsRequest} msg The msg instance to transform.
5021
+ * @return {!Object}
5022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5023
+ */
5024
+ proto.wechaty.puppet.RoomAdminsRequest.toObject = function(includeInstance, msg) {
5025
+ var f, obj = {
5026
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
5027
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
5028
+ };
5029
+
5030
+ if (includeInstance) {
5031
+ obj.$jspbMessageInstance = msg;
5032
+ }
5033
+ return obj;
5034
+ };
5035
+ }
5036
+
5037
+
5038
+ /**
5039
+ * Deserializes binary data (in protobuf wire format).
5040
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5041
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest}
5042
+ */
5043
+ proto.wechaty.puppet.RoomAdminsRequest.deserializeBinary = function(bytes) {
5044
+ var reader = new jspb.BinaryReader(bytes);
5045
+ var msg = new proto.wechaty.puppet.RoomAdminsRequest;
5046
+ return proto.wechaty.puppet.RoomAdminsRequest.deserializeBinaryFromReader(msg, reader);
5047
+ };
5048
+
5049
+
5050
+ /**
5051
+ * Deserializes binary data (in protobuf wire format) from the
5052
+ * given reader into the given message object.
5053
+ * @param {!proto.wechaty.puppet.RoomAdminsRequest} msg The message object to deserialize into.
5054
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5055
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest}
5056
+ */
5057
+ proto.wechaty.puppet.RoomAdminsRequest.deserializeBinaryFromReader = function(msg, reader) {
5058
+ while (reader.nextField()) {
5059
+ if (reader.isEndGroup()) {
5060
+ break;
5061
+ }
5062
+ var field = reader.getFieldNumber();
5063
+ switch (field) {
5064
+ case 1:
5065
+ var value = /** @type {string} */ (reader.readString());
5066
+ msg.setId(value);
5067
+ break;
5068
+ case 2:
5069
+ var value = /** @type {string} */ (reader.readString());
5070
+ msg.addContactIds(value);
5071
+ break;
5072
+ default:
5073
+ reader.skipField();
5074
+ break;
5075
+ }
5076
+ }
5077
+ return msg;
5078
+ };
5079
+
5080
+
5081
+ /**
5082
+ * Serializes the message to binary data (in protobuf wire format).
5083
+ * @return {!Uint8Array}
5084
+ */
5085
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.serializeBinary = function() {
5086
+ var writer = new jspb.BinaryWriter();
5087
+ proto.wechaty.puppet.RoomAdminsRequest.serializeBinaryToWriter(this, writer);
5088
+ return writer.getResultBuffer();
5089
+ };
5090
+
5091
+
5092
+ /**
5093
+ * Serializes the given message to binary data (in protobuf wire
5094
+ * format), writing to the given BinaryWriter.
5095
+ * @param {!proto.wechaty.puppet.RoomAdminsRequest} message
5096
+ * @param {!jspb.BinaryWriter} writer
5097
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5098
+ */
5099
+ proto.wechaty.puppet.RoomAdminsRequest.serializeBinaryToWriter = function(message, writer) {
5100
+ var f = undefined;
5101
+ f = message.getId();
5102
+ if (f.length > 0) {
5103
+ writer.writeString(
5104
+ 1,
5105
+ f
5106
+ );
5107
+ }
5108
+ f = message.getContactIdsList();
5109
+ if (f.length > 0) {
5110
+ writer.writeRepeatedString(
5111
+ 2,
5112
+ f
5113
+ );
5114
+ }
5115
+ };
5116
+
5117
+
5118
+ /**
5119
+ * optional string id = 1;
5120
+ * @return {string}
5121
+ */
5122
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.getId = function() {
5123
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5124
+ };
5125
+
5126
+
5127
+ /**
5128
+ * @param {string} value
5129
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest} returns this
5130
+ */
5131
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.setId = function(value) {
5132
+ return jspb.Message.setProto3StringField(this, 1, value);
5133
+ };
5134
+
5135
+
5136
+ /**
5137
+ * repeated string contact_ids = 2;
5138
+ * @return {!Array<string>}
5139
+ */
5140
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.getContactIdsList = function() {
5141
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
5142
+ };
5143
+
5144
+
5145
+ /**
5146
+ * @param {!Array<string>} value
5147
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest} returns this
5148
+ */
5149
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.setContactIdsList = function(value) {
5150
+ return jspb.Message.setField(this, 2, value || []);
5151
+ };
5152
+
5153
+
5154
+ /**
5155
+ * @param {string} value
5156
+ * @param {number=} opt_index
5157
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest} returns this
5158
+ */
5159
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.addContactIds = function(value, opt_index) {
5160
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
5161
+ };
5162
+
5163
+
5164
+ /**
5165
+ * Clears the list making it empty but non-null.
5166
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest} returns this
5167
+ */
5168
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.clearContactIdsList = function() {
5169
+ return this.setContactIdsList([]);
5170
+ };
5171
+
5172
+
5173
+
5174
+
5175
+
5176
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5177
+ /**
5178
+ * Creates an object representation of this proto.
5179
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5180
+ * Optional fields that are not set will be set to undefined.
5181
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5182
+ * For the list of reserved names please see:
5183
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5184
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5185
+ * JSPB instance for transitional soy proto support:
5186
+ * http://goto/soy-param-migration
5187
+ * @return {!Object}
5188
+ */
5189
+ proto.wechaty.puppet.RoomAdminsResponse.prototype.toObject = function(opt_includeInstance) {
5190
+ return proto.wechaty.puppet.RoomAdminsResponse.toObject(opt_includeInstance, this);
5191
+ };
5192
+
5193
+
5194
+ /**
5195
+ * Static version of the {@see toObject} method.
5196
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5197
+ * the JSPB instance for transitional soy proto support:
5198
+ * http://goto/soy-param-migration
5199
+ * @param {!proto.wechaty.puppet.RoomAdminsResponse} msg The msg instance to transform.
5200
+ * @return {!Object}
5201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5202
+ */
5203
+ proto.wechaty.puppet.RoomAdminsResponse.toObject = function(includeInstance, msg) {
5204
+ var f, obj = {
5205
+
5206
+ };
5207
+
5208
+ if (includeInstance) {
5209
+ obj.$jspbMessageInstance = msg;
5210
+ }
5211
+ return obj;
5212
+ };
5213
+ }
5214
+
5215
+
5216
+ /**
5217
+ * Deserializes binary data (in protobuf wire format).
5218
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5219
+ * @return {!proto.wechaty.puppet.RoomAdminsResponse}
5220
+ */
5221
+ proto.wechaty.puppet.RoomAdminsResponse.deserializeBinary = function(bytes) {
5222
+ var reader = new jspb.BinaryReader(bytes);
5223
+ var msg = new proto.wechaty.puppet.RoomAdminsResponse;
5224
+ return proto.wechaty.puppet.RoomAdminsResponse.deserializeBinaryFromReader(msg, reader);
5225
+ };
5226
+
5227
+
5228
+ /**
5229
+ * Deserializes binary data (in protobuf wire format) from the
5230
+ * given reader into the given message object.
5231
+ * @param {!proto.wechaty.puppet.RoomAdminsResponse} msg The message object to deserialize into.
5232
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5233
+ * @return {!proto.wechaty.puppet.RoomAdminsResponse}
5234
+ */
5235
+ proto.wechaty.puppet.RoomAdminsResponse.deserializeBinaryFromReader = function(msg, reader) {
5236
+ while (reader.nextField()) {
5237
+ if (reader.isEndGroup()) {
5238
+ break;
5239
+ }
5240
+ var field = reader.getFieldNumber();
5241
+ switch (field) {
5242
+ default:
5243
+ reader.skipField();
5244
+ break;
5245
+ }
5246
+ }
5247
+ return msg;
5248
+ };
5249
+
5250
+
5251
+ /**
5252
+ * Serializes the message to binary data (in protobuf wire format).
5253
+ * @return {!Uint8Array}
5254
+ */
5255
+ proto.wechaty.puppet.RoomAdminsResponse.prototype.serializeBinary = function() {
5256
+ var writer = new jspb.BinaryWriter();
5257
+ proto.wechaty.puppet.RoomAdminsResponse.serializeBinaryToWriter(this, writer);
5258
+ return writer.getResultBuffer();
5259
+ };
5260
+
5261
+
5262
+ /**
5263
+ * Serializes the given message to binary data (in protobuf wire
5264
+ * format), writing to the given BinaryWriter.
5265
+ * @param {!proto.wechaty.puppet.RoomAdminsResponse} message
5266
+ * @param {!jspb.BinaryWriter} writer
5267
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5268
+ */
5269
+ proto.wechaty.puppet.RoomAdminsResponse.serializeBinaryToWriter = function(message, writer) {
5270
+ var f = undefined;
5271
+ };
5272
+
5273
+
4943
5274
  goog.object.extend(exports, proto.wechaty.puppet);