@juzi/wechaty-grpc 1.0.61 → 1.0.63
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.
- package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +246 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +94 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +144 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +160 -0
- package/dist/cjs/proto/wechaty/puppet/base.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +22 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +20 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +246 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +94 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +144 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +160 -0
- package/dist/esm/proto/wechaty/puppet/base.proto +6 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +22 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +20 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/out/wechaty/puppet/base_pb.js +246 -0
- package/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/out/wechaty/puppet/room_pb.js +331 -0
- package/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/out/wechaty/puppet.openapi.yaml +94 -1
- package/out/wechaty/puppet.swagger.json +144 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/out/wechaty/puppet_grpc_pb.js +99 -0
- package/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/out/wechaty/puppet_pb_service.js +160 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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);
|
|
@@ -43,3 +43,39 @@ export namespace EnterVerifyCodeResponse {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export class CancelVerifyCodeRequest extends jspb.Message {
|
|
47
|
+
getId(): string;
|
|
48
|
+
setId(value: string): void;
|
|
49
|
+
|
|
50
|
+
serializeBinary(): Uint8Array;
|
|
51
|
+
toObject(includeInstance?: boolean): CancelVerifyCodeRequest.AsObject;
|
|
52
|
+
static toObject(includeInstance: boolean, msg: CancelVerifyCodeRequest): CancelVerifyCodeRequest.AsObject;
|
|
53
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
54
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
55
|
+
static serializeBinaryToWriter(message: CancelVerifyCodeRequest, writer: jspb.BinaryWriter): void;
|
|
56
|
+
static deserializeBinary(bytes: Uint8Array): CancelVerifyCodeRequest;
|
|
57
|
+
static deserializeBinaryFromReader(message: CancelVerifyCodeRequest, reader: jspb.BinaryReader): CancelVerifyCodeRequest;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export namespace CancelVerifyCodeRequest {
|
|
61
|
+
export type AsObject = {
|
|
62
|
+
id: string,
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class CancelVerifyCodeResponse extends jspb.Message {
|
|
67
|
+
serializeBinary(): Uint8Array;
|
|
68
|
+
toObject(includeInstance?: boolean): CancelVerifyCodeResponse.AsObject;
|
|
69
|
+
static toObject(includeInstance: boolean, msg: CancelVerifyCodeResponse): CancelVerifyCodeResponse.AsObject;
|
|
70
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
71
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
72
|
+
static serializeBinaryToWriter(message: CancelVerifyCodeResponse, writer: jspb.BinaryWriter): void;
|
|
73
|
+
static deserializeBinary(bytes: Uint8Array): CancelVerifyCodeResponse;
|
|
74
|
+
static deserializeBinaryFromReader(message: CancelVerifyCodeResponse, reader: jspb.BinaryReader): CancelVerifyCodeResponse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace CancelVerifyCodeResponse {
|
|
78
|
+
export type AsObject = {
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -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.CancelVerifyCodeRequest', null, global);
|
|
19
|
+
goog.exportSymbol('proto.wechaty.puppet.CancelVerifyCodeResponse', null, global);
|
|
18
20
|
goog.exportSymbol('proto.wechaty.puppet.EnterVerifyCodeRequest', null, global);
|
|
19
21
|
goog.exportSymbol('proto.wechaty.puppet.EnterVerifyCodeResponse', null, global);
|
|
20
22
|
/**
|
|
@@ -59,6 +61,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
59
61
|
*/
|
|
60
62
|
proto.wechaty.puppet.EnterVerifyCodeResponse.displayName = 'proto.wechaty.puppet.EnterVerifyCodeResponse';
|
|
61
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Generated by JsPbCodeGenerator.
|
|
66
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
67
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
68
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
69
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
70
|
+
* valid.
|
|
71
|
+
* @extends {jspb.Message}
|
|
72
|
+
* @constructor
|
|
73
|
+
*/
|
|
74
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest = function(opt_data) {
|
|
75
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
76
|
+
};
|
|
77
|
+
goog.inherits(proto.wechaty.puppet.CancelVerifyCodeRequest, jspb.Message);
|
|
78
|
+
if (goog.DEBUG && !COMPILED) {
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
* @override
|
|
82
|
+
*/
|
|
83
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.displayName = 'proto.wechaty.puppet.CancelVerifyCodeRequest';
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Generated by JsPbCodeGenerator.
|
|
87
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
88
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
89
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
90
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
91
|
+
* valid.
|
|
92
|
+
* @extends {jspb.Message}
|
|
93
|
+
* @constructor
|
|
94
|
+
*/
|
|
95
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse = function(opt_data) {
|
|
96
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
97
|
+
};
|
|
98
|
+
goog.inherits(proto.wechaty.puppet.CancelVerifyCodeResponse, jspb.Message);
|
|
99
|
+
if (goog.DEBUG && !COMPILED) {
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
* @override
|
|
103
|
+
*/
|
|
104
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.displayName = 'proto.wechaty.puppet.CancelVerifyCodeResponse';
|
|
105
|
+
}
|
|
62
106
|
|
|
63
107
|
|
|
64
108
|
|
|
@@ -320,4 +364,235 @@ proto.wechaty.puppet.EnterVerifyCodeResponse.serializeBinaryToWriter = function(
|
|
|
320
364
|
};
|
|
321
365
|
|
|
322
366
|
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
371
|
+
/**
|
|
372
|
+
* Creates an object representation of this proto.
|
|
373
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
374
|
+
* Optional fields that are not set will be set to undefined.
|
|
375
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
376
|
+
* For the list of reserved names please see:
|
|
377
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
378
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
379
|
+
* JSPB instance for transitional soy proto support:
|
|
380
|
+
* http://goto/soy-param-migration
|
|
381
|
+
* @return {!Object}
|
|
382
|
+
*/
|
|
383
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
384
|
+
return proto.wechaty.puppet.CancelVerifyCodeRequest.toObject(opt_includeInstance, this);
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Static version of the {@see toObject} method.
|
|
390
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
391
|
+
* the JSPB instance for transitional soy proto support:
|
|
392
|
+
* http://goto/soy-param-migration
|
|
393
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} msg The msg instance to transform.
|
|
394
|
+
* @return {!Object}
|
|
395
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
396
|
+
*/
|
|
397
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.toObject = function(includeInstance, msg) {
|
|
398
|
+
var f, obj = {
|
|
399
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
if (includeInstance) {
|
|
403
|
+
obj.$jspbMessageInstance = msg;
|
|
404
|
+
}
|
|
405
|
+
return obj;
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Deserializes binary data (in protobuf wire format).
|
|
412
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
413
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest}
|
|
414
|
+
*/
|
|
415
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinary = function(bytes) {
|
|
416
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
417
|
+
var msg = new proto.wechaty.puppet.CancelVerifyCodeRequest;
|
|
418
|
+
return proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
424
|
+
* given reader into the given message object.
|
|
425
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} msg The message object to deserialize into.
|
|
426
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
427
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest}
|
|
428
|
+
*/
|
|
429
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
430
|
+
while (reader.nextField()) {
|
|
431
|
+
if (reader.isEndGroup()) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
var field = reader.getFieldNumber();
|
|
435
|
+
switch (field) {
|
|
436
|
+
case 1:
|
|
437
|
+
var value = /** @type {string} */ (reader.readString());
|
|
438
|
+
msg.setId(value);
|
|
439
|
+
break;
|
|
440
|
+
default:
|
|
441
|
+
reader.skipField();
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return msg;
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
451
|
+
* @return {!Uint8Array}
|
|
452
|
+
*/
|
|
453
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.serializeBinary = function() {
|
|
454
|
+
var writer = new jspb.BinaryWriter();
|
|
455
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.serializeBinaryToWriter(this, writer);
|
|
456
|
+
return writer.getResultBuffer();
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
462
|
+
* format), writing to the given BinaryWriter.
|
|
463
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} message
|
|
464
|
+
* @param {!jspb.BinaryWriter} writer
|
|
465
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
466
|
+
*/
|
|
467
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
468
|
+
var f = undefined;
|
|
469
|
+
f = message.getId();
|
|
470
|
+
if (f.length > 0) {
|
|
471
|
+
writer.writeString(
|
|
472
|
+
1,
|
|
473
|
+
f
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* optional string id = 1;
|
|
481
|
+
* @return {string}
|
|
482
|
+
*/
|
|
483
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.getId = function() {
|
|
484
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @param {string} value
|
|
490
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest} returns this
|
|
491
|
+
*/
|
|
492
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.setId = function(value) {
|
|
493
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
501
|
+
/**
|
|
502
|
+
* Creates an object representation of this proto.
|
|
503
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
504
|
+
* Optional fields that are not set will be set to undefined.
|
|
505
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
506
|
+
* For the list of reserved names please see:
|
|
507
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
508
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
509
|
+
* JSPB instance for transitional soy proto support:
|
|
510
|
+
* http://goto/soy-param-migration
|
|
511
|
+
* @return {!Object}
|
|
512
|
+
*/
|
|
513
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
514
|
+
return proto.wechaty.puppet.CancelVerifyCodeResponse.toObject(opt_includeInstance, this);
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Static version of the {@see toObject} method.
|
|
520
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
521
|
+
* the JSPB instance for transitional soy proto support:
|
|
522
|
+
* http://goto/soy-param-migration
|
|
523
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} msg The msg instance to transform.
|
|
524
|
+
* @return {!Object}
|
|
525
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
526
|
+
*/
|
|
527
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.toObject = function(includeInstance, msg) {
|
|
528
|
+
var f, obj = {
|
|
529
|
+
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
if (includeInstance) {
|
|
533
|
+
obj.$jspbMessageInstance = msg;
|
|
534
|
+
}
|
|
535
|
+
return obj;
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Deserializes binary data (in protobuf wire format).
|
|
542
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
543
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeResponse}
|
|
544
|
+
*/
|
|
545
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinary = function(bytes) {
|
|
546
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
547
|
+
var msg = new proto.wechaty.puppet.CancelVerifyCodeResponse;
|
|
548
|
+
return proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
554
|
+
* given reader into the given message object.
|
|
555
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} msg The message object to deserialize into.
|
|
556
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
557
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeResponse}
|
|
558
|
+
*/
|
|
559
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
560
|
+
while (reader.nextField()) {
|
|
561
|
+
if (reader.isEndGroup()) {
|
|
562
|
+
break;
|
|
563
|
+
}
|
|
564
|
+
var field = reader.getFieldNumber();
|
|
565
|
+
switch (field) {
|
|
566
|
+
default:
|
|
567
|
+
reader.skipField();
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
return msg;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
577
|
+
* @return {!Uint8Array}
|
|
578
|
+
*/
|
|
579
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.prototype.serializeBinary = function() {
|
|
580
|
+
var writer = new jspb.BinaryWriter();
|
|
581
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.serializeBinaryToWriter(this, writer);
|
|
582
|
+
return writer.getResultBuffer();
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
588
|
+
* format), writing to the given BinaryWriter.
|
|
589
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} message
|
|
590
|
+
* @param {!jspb.BinaryWriter} writer
|
|
591
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
592
|
+
*/
|
|
593
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
594
|
+
var f = undefined;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
|
|
323
598
|
goog.object.extend(exports, proto.wechaty.puppet);
|