@juzi/wechaty-grpc 1.0.89 → 1.0.91
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/google/api/health_check/v1/health_check_grpc_pb.js +1 -1
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +48 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb.js +390 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +48 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +73 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +34 -1
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/room-member.proto +9 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -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 +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/google/api/health_check/v1/health_check_grpc_pb.js +1 -1
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +48 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb.js +390 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +48 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +73 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +34 -1
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/room-member.proto +9 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +1 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -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 +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/google/api/health_check/v1/health_check_grpc_pb.js +1 -1
- package/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
- package/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
- package/out/wechaty/puppet/room-member_pb.d.ts +48 -0
- package/out/wechaty/puppet/room-member_pb.js +390 -0
- package/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/out/wechaty/puppet/room_pb.js +58 -2
- package/out/wechaty/puppet.openapi.yaml +48 -1
- package/out/wechaty/puppet.swagger.json +73 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +34 -1
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -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.BatchRoomMemberPayloadRequest', null, global);
|
|
19
|
+
goog.exportSymbol('proto.wechaty.puppet.BatchRoomMemberPayloadResponse', null, global);
|
|
18
20
|
goog.exportSymbol('proto.wechaty.puppet.RoomMemberJoinSceneType', null, global);
|
|
19
21
|
goog.exportSymbol('proto.wechaty.puppet.RoomMemberListRequest', null, global);
|
|
20
22
|
goog.exportSymbol('proto.wechaty.puppet.RoomMemberListResponse', null, global);
|
|
@@ -104,6 +106,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
104
106
|
*/
|
|
105
107
|
proto.wechaty.puppet.RoomMemberListResponse.displayName = 'proto.wechaty.puppet.RoomMemberListResponse';
|
|
106
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Generated by JsPbCodeGenerator.
|
|
111
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
112
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
113
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
114
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
115
|
+
* valid.
|
|
116
|
+
* @extends {jspb.Message}
|
|
117
|
+
* @constructor
|
|
118
|
+
*/
|
|
119
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest = function(opt_data) {
|
|
120
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchRoomMemberPayloadRequest.repeatedFields_, null);
|
|
121
|
+
};
|
|
122
|
+
goog.inherits(proto.wechaty.puppet.BatchRoomMemberPayloadRequest, jspb.Message);
|
|
123
|
+
if (goog.DEBUG && !COMPILED) {
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
* @override
|
|
127
|
+
*/
|
|
128
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.displayName = 'proto.wechaty.puppet.BatchRoomMemberPayloadRequest';
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Generated by JsPbCodeGenerator.
|
|
132
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
133
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
134
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
135
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
136
|
+
* valid.
|
|
137
|
+
* @extends {jspb.Message}
|
|
138
|
+
* @constructor
|
|
139
|
+
*/
|
|
140
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse = function(opt_data) {
|
|
141
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchRoomMemberPayloadResponse.repeatedFields_, null);
|
|
142
|
+
};
|
|
143
|
+
goog.inherits(proto.wechaty.puppet.BatchRoomMemberPayloadResponse, jspb.Message);
|
|
144
|
+
if (goog.DEBUG && !COMPILED) {
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
* @override
|
|
148
|
+
*/
|
|
149
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.displayName = 'proto.wechaty.puppet.BatchRoomMemberPayloadResponse';
|
|
150
|
+
}
|
|
107
151
|
|
|
108
152
|
|
|
109
153
|
|
|
@@ -890,6 +934,352 @@ proto.wechaty.puppet.RoomMemberListResponse.prototype.clearMemberIdsList = funct
|
|
|
890
934
|
};
|
|
891
935
|
|
|
892
936
|
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* List of repeated fields within this message type.
|
|
940
|
+
* @private {!Array<number>}
|
|
941
|
+
* @const
|
|
942
|
+
*/
|
|
943
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.repeatedFields_ = [2];
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
948
|
+
/**
|
|
949
|
+
* Creates an object representation of this proto.
|
|
950
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
951
|
+
* Optional fields that are not set will be set to undefined.
|
|
952
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
953
|
+
* For the list of reserved names please see:
|
|
954
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
955
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
956
|
+
* JSPB instance for transitional soy proto support:
|
|
957
|
+
* http://goto/soy-param-migration
|
|
958
|
+
* @return {!Object}
|
|
959
|
+
*/
|
|
960
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.toObject = function(opt_includeInstance) {
|
|
961
|
+
return proto.wechaty.puppet.BatchRoomMemberPayloadRequest.toObject(opt_includeInstance, this);
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Static version of the {@see toObject} method.
|
|
967
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
968
|
+
* the JSPB instance for transitional soy proto support:
|
|
969
|
+
* http://goto/soy-param-migration
|
|
970
|
+
* @param {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest} msg The msg instance to transform.
|
|
971
|
+
* @return {!Object}
|
|
972
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
973
|
+
*/
|
|
974
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.toObject = function(includeInstance, msg) {
|
|
975
|
+
var f, obj = {
|
|
976
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
977
|
+
memberIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
if (includeInstance) {
|
|
981
|
+
obj.$jspbMessageInstance = msg;
|
|
982
|
+
}
|
|
983
|
+
return obj;
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Deserializes binary data (in protobuf wire format).
|
|
990
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
991
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest}
|
|
992
|
+
*/
|
|
993
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.deserializeBinary = function(bytes) {
|
|
994
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
995
|
+
var msg = new proto.wechaty.puppet.BatchRoomMemberPayloadRequest;
|
|
996
|
+
return proto.wechaty.puppet.BatchRoomMemberPayloadRequest.deserializeBinaryFromReader(msg, reader);
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1002
|
+
* given reader into the given message object.
|
|
1003
|
+
* @param {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest} msg The message object to deserialize into.
|
|
1004
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1005
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest}
|
|
1006
|
+
*/
|
|
1007
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1008
|
+
while (reader.nextField()) {
|
|
1009
|
+
if (reader.isEndGroup()) {
|
|
1010
|
+
break;
|
|
1011
|
+
}
|
|
1012
|
+
var field = reader.getFieldNumber();
|
|
1013
|
+
switch (field) {
|
|
1014
|
+
case 1:
|
|
1015
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1016
|
+
msg.setId(value);
|
|
1017
|
+
break;
|
|
1018
|
+
case 2:
|
|
1019
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1020
|
+
msg.addMemberIds(value);
|
|
1021
|
+
break;
|
|
1022
|
+
default:
|
|
1023
|
+
reader.skipField();
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
return msg;
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1033
|
+
* @return {!Uint8Array}
|
|
1034
|
+
*/
|
|
1035
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.serializeBinary = function() {
|
|
1036
|
+
var writer = new jspb.BinaryWriter();
|
|
1037
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.serializeBinaryToWriter(this, writer);
|
|
1038
|
+
return writer.getResultBuffer();
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1044
|
+
* format), writing to the given BinaryWriter.
|
|
1045
|
+
* @param {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest} message
|
|
1046
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1047
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1048
|
+
*/
|
|
1049
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1050
|
+
var f = undefined;
|
|
1051
|
+
f = message.getId();
|
|
1052
|
+
if (f.length > 0) {
|
|
1053
|
+
writer.writeString(
|
|
1054
|
+
1,
|
|
1055
|
+
f
|
|
1056
|
+
);
|
|
1057
|
+
}
|
|
1058
|
+
f = message.getMemberIdsList();
|
|
1059
|
+
if (f.length > 0) {
|
|
1060
|
+
writer.writeRepeatedString(
|
|
1061
|
+
2,
|
|
1062
|
+
f
|
|
1063
|
+
);
|
|
1064
|
+
}
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* optional string id = 1;
|
|
1070
|
+
* @return {string}
|
|
1071
|
+
*/
|
|
1072
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.getId = function() {
|
|
1073
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* @param {string} value
|
|
1079
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest} returns this
|
|
1080
|
+
*/
|
|
1081
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.setId = function(value) {
|
|
1082
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* repeated string member_ids = 2;
|
|
1088
|
+
* @return {!Array<string>}
|
|
1089
|
+
*/
|
|
1090
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.getMemberIdsList = function() {
|
|
1091
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* @param {!Array<string>} value
|
|
1097
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest} returns this
|
|
1098
|
+
*/
|
|
1099
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.setMemberIdsList = function(value) {
|
|
1100
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* @param {string} value
|
|
1106
|
+
* @param {number=} opt_index
|
|
1107
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest} returns this
|
|
1108
|
+
*/
|
|
1109
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.addMemberIds = function(value, opt_index) {
|
|
1110
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Clears the list making it empty but non-null.
|
|
1116
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadRequest} returns this
|
|
1117
|
+
*/
|
|
1118
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.clearMemberIdsList = function() {
|
|
1119
|
+
return this.setMemberIdsList([]);
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* List of repeated fields within this message type.
|
|
1126
|
+
* @private {!Array<number>}
|
|
1127
|
+
* @const
|
|
1128
|
+
*/
|
|
1129
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.repeatedFields_ = [1];
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1134
|
+
/**
|
|
1135
|
+
* Creates an object representation of this proto.
|
|
1136
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1137
|
+
* Optional fields that are not set will be set to undefined.
|
|
1138
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1139
|
+
* For the list of reserved names please see:
|
|
1140
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1141
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1142
|
+
* JSPB instance for transitional soy proto support:
|
|
1143
|
+
* http://goto/soy-param-migration
|
|
1144
|
+
* @return {!Object}
|
|
1145
|
+
*/
|
|
1146
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1147
|
+
return proto.wechaty.puppet.BatchRoomMemberPayloadResponse.toObject(opt_includeInstance, this);
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* Static version of the {@see toObject} method.
|
|
1153
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1154
|
+
* the JSPB instance for transitional soy proto support:
|
|
1155
|
+
* http://goto/soy-param-migration
|
|
1156
|
+
* @param {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} msg The msg instance to transform.
|
|
1157
|
+
* @return {!Object}
|
|
1158
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1159
|
+
*/
|
|
1160
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.toObject = function(includeInstance, msg) {
|
|
1161
|
+
var f, obj = {
|
|
1162
|
+
membersList: jspb.Message.toObjectList(msg.getMembersList(),
|
|
1163
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.toObject, includeInstance)
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
if (includeInstance) {
|
|
1167
|
+
obj.$jspbMessageInstance = msg;
|
|
1168
|
+
}
|
|
1169
|
+
return obj;
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1176
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1177
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse}
|
|
1178
|
+
*/
|
|
1179
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.deserializeBinary = function(bytes) {
|
|
1180
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1181
|
+
var msg = new proto.wechaty.puppet.BatchRoomMemberPayloadResponse;
|
|
1182
|
+
return proto.wechaty.puppet.BatchRoomMemberPayloadResponse.deserializeBinaryFromReader(msg, reader);
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1188
|
+
* given reader into the given message object.
|
|
1189
|
+
* @param {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} msg The message object to deserialize into.
|
|
1190
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1191
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse}
|
|
1192
|
+
*/
|
|
1193
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1194
|
+
while (reader.nextField()) {
|
|
1195
|
+
if (reader.isEndGroup()) {
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
1198
|
+
var field = reader.getFieldNumber();
|
|
1199
|
+
switch (field) {
|
|
1200
|
+
case 1:
|
|
1201
|
+
var value = new proto.wechaty.puppet.RoomMemberPayloadResponse;
|
|
1202
|
+
reader.readMessage(value,proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader);
|
|
1203
|
+
msg.addMembers(value);
|
|
1204
|
+
break;
|
|
1205
|
+
default:
|
|
1206
|
+
reader.skipField();
|
|
1207
|
+
break;
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
return msg;
|
|
1211
|
+
};
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1216
|
+
* @return {!Uint8Array}
|
|
1217
|
+
*/
|
|
1218
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.serializeBinary = function() {
|
|
1219
|
+
var writer = new jspb.BinaryWriter();
|
|
1220
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.serializeBinaryToWriter(this, writer);
|
|
1221
|
+
return writer.getResultBuffer();
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1227
|
+
* format), writing to the given BinaryWriter.
|
|
1228
|
+
* @param {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} message
|
|
1229
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1230
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1231
|
+
*/
|
|
1232
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1233
|
+
var f = undefined;
|
|
1234
|
+
f = message.getMembersList();
|
|
1235
|
+
if (f.length > 0) {
|
|
1236
|
+
writer.writeRepeatedMessage(
|
|
1237
|
+
1,
|
|
1238
|
+
f,
|
|
1239
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.serializeBinaryToWriter
|
|
1240
|
+
);
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* repeated RoomMemberPayloadResponse members = 1;
|
|
1247
|
+
* @return {!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>}
|
|
1248
|
+
*/
|
|
1249
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.getMembersList = function() {
|
|
1250
|
+
return /** @type{!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>} */ (
|
|
1251
|
+
jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.RoomMemberPayloadResponse, 1));
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* @param {!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>} value
|
|
1257
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} returns this
|
|
1258
|
+
*/
|
|
1259
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.setMembersList = function(value) {
|
|
1260
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* @param {!proto.wechaty.puppet.RoomMemberPayloadResponse=} opt_value
|
|
1266
|
+
* @param {number=} opt_index
|
|
1267
|
+
* @return {!proto.wechaty.puppet.RoomMemberPayloadResponse}
|
|
1268
|
+
*/
|
|
1269
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.addMembers = function(opt_value, opt_index) {
|
|
1270
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.RoomMemberPayloadResponse, opt_index);
|
|
1271
|
+
};
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* Clears the list making it empty but non-null.
|
|
1276
|
+
* @return {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} returns this
|
|
1277
|
+
*/
|
|
1278
|
+
proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.clearMembersList = function() {
|
|
1279
|
+
return this.setMembersList([]);
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
|
|
893
1283
|
/**
|
|
894
1284
|
* @enum {number}
|
|
895
1285
|
*/
|
|
@@ -140,6 +140,11 @@ export class RoomAddRequest extends jspb.Message {
|
|
|
140
140
|
getInviteOnly(): boolean;
|
|
141
141
|
setInviteOnly(value: boolean): void;
|
|
142
142
|
|
|
143
|
+
clearQuoteIdsList(): void;
|
|
144
|
+
getQuoteIdsList(): Array<string>;
|
|
145
|
+
setQuoteIdsList(value: Array<string>): void;
|
|
146
|
+
addQuoteIds(value: string, index?: number): string;
|
|
147
|
+
|
|
143
148
|
serializeBinary(): Uint8Array;
|
|
144
149
|
toObject(includeInstance?: boolean): RoomAddRequest.AsObject;
|
|
145
150
|
static toObject(includeInstance: boolean, msg: RoomAddRequest): RoomAddRequest.AsObject;
|
|
@@ -155,6 +160,7 @@ export namespace RoomAddRequest {
|
|
|
155
160
|
id: string,
|
|
156
161
|
contactId: string,
|
|
157
162
|
inviteOnly: boolean,
|
|
163
|
+
quoteIdsList: Array<string>,
|
|
158
164
|
}
|
|
159
165
|
}
|
|
160
166
|
|
|
@@ -148,7 +148,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
148
148
|
* @constructor
|
|
149
149
|
*/
|
|
150
150
|
proto.wechaty.puppet.RoomAddRequest = function(opt_data) {
|
|
151
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
151
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomAddRequest.repeatedFields_, null);
|
|
152
152
|
};
|
|
153
153
|
goog.inherits(proto.wechaty.puppet.RoomAddRequest, jspb.Message);
|
|
154
154
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -1609,6 +1609,13 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
|
|
|
1609
1609
|
|
|
1610
1610
|
|
|
1611
1611
|
|
|
1612
|
+
/**
|
|
1613
|
+
* List of repeated fields within this message type.
|
|
1614
|
+
* @private {!Array<number>}
|
|
1615
|
+
* @const
|
|
1616
|
+
*/
|
|
1617
|
+
proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4];
|
|
1618
|
+
|
|
1612
1619
|
|
|
1613
1620
|
|
|
1614
1621
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1642,7 +1649,8 @@ proto.wechaty.puppet.RoomAddRequest.toObject = function(includeInstance, msg) {
|
|
|
1642
1649
|
var f, obj = {
|
|
1643
1650
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1644
1651
|
contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1645
|
-
inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
1652
|
+
inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
1653
|
+
quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
1646
1654
|
};
|
|
1647
1655
|
|
|
1648
1656
|
if (includeInstance) {
|
|
@@ -1691,6 +1699,10 @@ proto.wechaty.puppet.RoomAddRequest.deserializeBinaryFromReader = function(msg,
|
|
|
1691
1699
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1692
1700
|
msg.setInviteOnly(value);
|
|
1693
1701
|
break;
|
|
1702
|
+
case 4:
|
|
1703
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1704
|
+
msg.addQuoteIds(value);
|
|
1705
|
+
break;
|
|
1694
1706
|
default:
|
|
1695
1707
|
reader.skipField();
|
|
1696
1708
|
break;
|
|
@@ -1741,6 +1753,13 @@ proto.wechaty.puppet.RoomAddRequest.serializeBinaryToWriter = function(message,
|
|
|
1741
1753
|
f
|
|
1742
1754
|
);
|
|
1743
1755
|
}
|
|
1756
|
+
f = message.getQuoteIdsList();
|
|
1757
|
+
if (f.length > 0) {
|
|
1758
|
+
writer.writeRepeatedString(
|
|
1759
|
+
4,
|
|
1760
|
+
f
|
|
1761
|
+
);
|
|
1762
|
+
}
|
|
1744
1763
|
};
|
|
1745
1764
|
|
|
1746
1765
|
|
|
@@ -1798,6 +1817,43 @@ proto.wechaty.puppet.RoomAddRequest.prototype.setInviteOnly = function(value) {
|
|
|
1798
1817
|
};
|
|
1799
1818
|
|
|
1800
1819
|
|
|
1820
|
+
/**
|
|
1821
|
+
* repeated string quote_ids = 4;
|
|
1822
|
+
* @return {!Array<string>}
|
|
1823
|
+
*/
|
|
1824
|
+
proto.wechaty.puppet.RoomAddRequest.prototype.getQuoteIdsList = function() {
|
|
1825
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* @param {!Array<string>} value
|
|
1831
|
+
* @return {!proto.wechaty.puppet.RoomAddRequest} returns this
|
|
1832
|
+
*/
|
|
1833
|
+
proto.wechaty.puppet.RoomAddRequest.prototype.setQuoteIdsList = function(value) {
|
|
1834
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* @param {string} value
|
|
1840
|
+
* @param {number=} opt_index
|
|
1841
|
+
* @return {!proto.wechaty.puppet.RoomAddRequest} returns this
|
|
1842
|
+
*/
|
|
1843
|
+
proto.wechaty.puppet.RoomAddRequest.prototype.addQuoteIds = function(value, opt_index) {
|
|
1844
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Clears the list making it empty but non-null.
|
|
1850
|
+
* @return {!proto.wechaty.puppet.RoomAddRequest} returns this
|
|
1851
|
+
*/
|
|
1852
|
+
proto.wechaty.puppet.RoomAddRequest.prototype.clearQuoteIdsList = function() {
|
|
1853
|
+
return this.setQuoteIdsList([]);
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
|
|
1801
1857
|
|
|
1802
1858
|
|
|
1803
1859
|
|
|
@@ -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.
|
|
12
|
+
version: 1.0.91
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -1712,6 +1712,14 @@ paths:
|
|
|
1712
1712
|
in: query
|
|
1713
1713
|
required: false
|
|
1714
1714
|
type: boolean
|
|
1715
|
+
- name: quoteIds
|
|
1716
|
+
description: 要附带的聊天消息 id 列表
|
|
1717
|
+
in: query
|
|
1718
|
+
required: false
|
|
1719
|
+
type: array
|
|
1720
|
+
items:
|
|
1721
|
+
type: string
|
|
1722
|
+
collectionFormat: multi
|
|
1715
1723
|
tags:
|
|
1716
1724
|
- Puppet
|
|
1717
1725
|
/rooms/{id}/announcement:
|
|
@@ -1929,6 +1937,30 @@ paths:
|
|
|
1929
1937
|
type: string
|
|
1930
1938
|
tags:
|
|
1931
1939
|
- Puppet
|
|
1940
|
+
/rooms/{id}/members/batch-payload:
|
|
1941
|
+
post:
|
|
1942
|
+
operationId: Puppet_BatchRoomMemberPayload
|
|
1943
|
+
responses:
|
|
1944
|
+
'200':
|
|
1945
|
+
description: A successful response.
|
|
1946
|
+
schema:
|
|
1947
|
+
$ref: '#/definitions/puppetBatchRoomMemberPayloadResponse'
|
|
1948
|
+
default:
|
|
1949
|
+
description: An unexpected error response.
|
|
1950
|
+
schema:
|
|
1951
|
+
$ref: '#/definitions/rpcStatus'
|
|
1952
|
+
parameters:
|
|
1953
|
+
- name: id
|
|
1954
|
+
in: path
|
|
1955
|
+
required: true
|
|
1956
|
+
type: string
|
|
1957
|
+
- name: body
|
|
1958
|
+
in: body
|
|
1959
|
+
required: true
|
|
1960
|
+
schema:
|
|
1961
|
+
$ref: '#/definitions/PuppetBatchRoomMemberPayloadBody'
|
|
1962
|
+
tags:
|
|
1963
|
+
- Puppet
|
|
1932
1964
|
/rooms/{id}/members/{memberId}:
|
|
1933
1965
|
get:
|
|
1934
1966
|
summary: '*'
|
|
@@ -2615,6 +2647,13 @@ paths:
|
|
|
2615
2647
|
tags:
|
|
2616
2648
|
- Puppet
|
|
2617
2649
|
definitions:
|
|
2650
|
+
PuppetBatchRoomMemberPayloadBody:
|
|
2651
|
+
type: object
|
|
2652
|
+
properties:
|
|
2653
|
+
memberIds:
|
|
2654
|
+
type: array
|
|
2655
|
+
items:
|
|
2656
|
+
type: string
|
|
2618
2657
|
PuppetContactAliasBody:
|
|
2619
2658
|
type: object
|
|
2620
2659
|
properties:
|
|
@@ -2834,6 +2873,14 @@ definitions:
|
|
|
2834
2873
|
type: boolean
|
|
2835
2874
|
puppetApplyRoomAntiSpamStrategyResponse:
|
|
2836
2875
|
type: object
|
|
2876
|
+
puppetBatchRoomMemberPayloadResponse:
|
|
2877
|
+
type: object
|
|
2878
|
+
properties:
|
|
2879
|
+
members:
|
|
2880
|
+
type: array
|
|
2881
|
+
items:
|
|
2882
|
+
type: object
|
|
2883
|
+
$ref: '#/definitions/puppetRoomMemberPayloadResponse'
|
|
2837
2884
|
puppetBroadcastStatus:
|
|
2838
2885
|
type: string
|
|
2839
2886
|
enum:
|