@juzi/wechaty-grpc 1.0.90 → 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.
Files changed (41) hide show
  1. package/dist/cjs/out/google/api/health_check/v1/health_check_grpc_pb.js +1 -1
  2. package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +48 -0
  3. package/dist/cjs/out/wechaty/puppet/room-member_pb.js +390 -0
  4. package/dist/cjs/out/wechaty/puppet.openapi.yaml +40 -1
  5. package/dist/cjs/out/wechaty/puppet.swagger.json +62 -1
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +34 -1
  8. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  10. package/dist/cjs/proto/wechaty/puppet/room-member.proto +9 -0
  11. package/dist/cjs/proto/wechaty/puppet.proto +7 -0
  12. package/dist/cjs/src/package-json.js +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  14. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  15. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  16. package/dist/esm/out/google/api/health_check/v1/health_check_grpc_pb.js +1 -1
  17. package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +48 -0
  18. package/dist/esm/out/wechaty/puppet/room-member_pb.js +390 -0
  19. package/dist/esm/out/wechaty/puppet.openapi.yaml +40 -1
  20. package/dist/esm/out/wechaty/puppet.swagger.json +62 -1
  21. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  22. package/dist/esm/out/wechaty/puppet_grpc_pb.js +34 -1
  23. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  24. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  25. package/dist/esm/proto/wechaty/puppet/room-member.proto +9 -0
  26. package/dist/esm/proto/wechaty/puppet.proto +7 -0
  27. package/dist/esm/src/package-json.js +1 -1
  28. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  29. package/dist/esm/tests/puppet-server-impl.js +5 -0
  30. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  31. package/out/google/api/health_check/v1/health_check_grpc_pb.js +1 -1
  32. package/out/wechaty/puppet/room-member_pb.d.ts +48 -0
  33. package/out/wechaty/puppet/room-member_pb.js +390 -0
  34. package/out/wechaty/puppet.openapi.yaml +40 -1
  35. package/out/wechaty/puppet.swagger.json +62 -1
  36. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  37. package/out/wechaty/puppet_grpc_pb.js +34 -1
  38. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  39. package/out/wechaty/puppet_pb_service.js +40 -0
  40. package/package.json +1 -1
  41. package/src/package-json.ts +1 -1
@@ -87,4 +87,4 @@ watch: {
87
87
  },
88
88
  };
89
89
 
90
- exports.HealthClient = grpc.makeGenericClientConstructor(HealthService);
90
+ exports.HealthClient = grpc.makeGenericClientConstructor(HealthService, 'Health');
@@ -117,6 +117,54 @@ export namespace RoomMemberListResponse {
117
117
  }
118
118
  }
119
119
 
120
+ export class BatchRoomMemberPayloadRequest extends jspb.Message {
121
+ getId(): string;
122
+ setId(value: string): void;
123
+
124
+ clearMemberIdsList(): void;
125
+ getMemberIdsList(): Array<string>;
126
+ setMemberIdsList(value: Array<string>): void;
127
+ addMemberIds(value: string, index?: number): string;
128
+
129
+ serializeBinary(): Uint8Array;
130
+ toObject(includeInstance?: boolean): BatchRoomMemberPayloadRequest.AsObject;
131
+ static toObject(includeInstance: boolean, msg: BatchRoomMemberPayloadRequest): BatchRoomMemberPayloadRequest.AsObject;
132
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
133
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
134
+ static serializeBinaryToWriter(message: BatchRoomMemberPayloadRequest, writer: jspb.BinaryWriter): void;
135
+ static deserializeBinary(bytes: Uint8Array): BatchRoomMemberPayloadRequest;
136
+ static deserializeBinaryFromReader(message: BatchRoomMemberPayloadRequest, reader: jspb.BinaryReader): BatchRoomMemberPayloadRequest;
137
+ }
138
+
139
+ export namespace BatchRoomMemberPayloadRequest {
140
+ export type AsObject = {
141
+ id: string,
142
+ memberIdsList: Array<string>,
143
+ }
144
+ }
145
+
146
+ export class BatchRoomMemberPayloadResponse extends jspb.Message {
147
+ clearMembersList(): void;
148
+ getMembersList(): Array<RoomMemberPayloadResponse>;
149
+ setMembersList(value: Array<RoomMemberPayloadResponse>): void;
150
+ addMembers(value?: RoomMemberPayloadResponse, index?: number): RoomMemberPayloadResponse;
151
+
152
+ serializeBinary(): Uint8Array;
153
+ toObject(includeInstance?: boolean): BatchRoomMemberPayloadResponse.AsObject;
154
+ static toObject(includeInstance: boolean, msg: BatchRoomMemberPayloadResponse): BatchRoomMemberPayloadResponse.AsObject;
155
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
156
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
157
+ static serializeBinaryToWriter(message: BatchRoomMemberPayloadResponse, writer: jspb.BinaryWriter): void;
158
+ static deserializeBinary(bytes: Uint8Array): BatchRoomMemberPayloadResponse;
159
+ static deserializeBinaryFromReader(message: BatchRoomMemberPayloadResponse, reader: jspb.BinaryReader): BatchRoomMemberPayloadResponse;
160
+ }
161
+
162
+ export namespace BatchRoomMemberPayloadResponse {
163
+ export type AsObject = {
164
+ membersList: Array<RoomMemberPayloadResponse.AsObject>,
165
+ }
166
+ }
167
+
120
168
  export interface RoomMemberJoinSceneTypeMap {
121
169
  ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN: 0;
122
170
  ROOM_MEMBER_JOIN_SCENE_TYPE_ADD: 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
  */
@@ -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.90
12
+ version: 1.0.91
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -1937,6 +1937,30 @@ paths:
1937
1937
  type: string
1938
1938
  tags:
1939
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
1940
1964
  /rooms/{id}/members/{memberId}:
1941
1965
  get:
1942
1966
  summary: '*'
@@ -2623,6 +2647,13 @@ paths:
2623
2647
  tags:
2624
2648
  - Puppet
2625
2649
  definitions:
2650
+ PuppetBatchRoomMemberPayloadBody:
2651
+ type: object
2652
+ properties:
2653
+ memberIds:
2654
+ type: array
2655
+ items:
2656
+ type: string
2626
2657
  PuppetContactAliasBody:
2627
2658
  type: object
2628
2659
  properties:
@@ -2842,6 +2873,14 @@ definitions:
2842
2873
  type: boolean
2843
2874
  puppetApplyRoomAntiSpamStrategyResponse:
2844
2875
  type: object
2876
+ puppetBatchRoomMemberPayloadResponse:
2877
+ type: object
2878
+ properties:
2879
+ members:
2880
+ type: array
2881
+ items:
2882
+ type: object
2883
+ $ref: '#/definitions/puppetRoomMemberPayloadResponse'
2845
2884
  puppetBroadcastStatus:
2846
2885
  type: string
2847
2886
  enum:
@@ -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.90",
6
+ "version": "1.0.91",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -2900,6 +2900,44 @@
2900
2900
  ]
2901
2901
  }
2902
2902
  },
2903
+ "/rooms/{id}/members/batch-payload": {
2904
+ "post": {
2905
+ "operationId": "Puppet_BatchRoomMemberPayload",
2906
+ "responses": {
2907
+ "200": {
2908
+ "description": "A successful response.",
2909
+ "schema": {
2910
+ "$ref": "#/definitions/puppetBatchRoomMemberPayloadResponse"
2911
+ }
2912
+ },
2913
+ "default": {
2914
+ "description": "An unexpected error response.",
2915
+ "schema": {
2916
+ "$ref": "#/definitions/rpcStatus"
2917
+ }
2918
+ }
2919
+ },
2920
+ "parameters": [
2921
+ {
2922
+ "name": "id",
2923
+ "in": "path",
2924
+ "required": true,
2925
+ "type": "string"
2926
+ },
2927
+ {
2928
+ "name": "body",
2929
+ "in": "body",
2930
+ "required": true,
2931
+ "schema": {
2932
+ "$ref": "#/definitions/PuppetBatchRoomMemberPayloadBody"
2933
+ }
2934
+ }
2935
+ ],
2936
+ "tags": [
2937
+ "Puppet"
2938
+ ]
2939
+ }
2940
+ },
2903
2941
  "/rooms/{id}/members/{memberId}": {
2904
2942
  "get": {
2905
2943
  "summary": "*",
@@ -3947,6 +3985,17 @@
3947
3985
  }
3948
3986
  },
3949
3987
  "definitions": {
3988
+ "PuppetBatchRoomMemberPayloadBody": {
3989
+ "type": "object",
3990
+ "properties": {
3991
+ "memberIds": {
3992
+ "type": "array",
3993
+ "items": {
3994
+ "type": "string"
3995
+ }
3996
+ }
3997
+ }
3998
+ },
3950
3999
  "PuppetContactAliasBody": {
3951
4000
  "type": "object",
3952
4001
  "properties": {
@@ -4243,6 +4292,18 @@
4243
4292
  "puppetApplyRoomAntiSpamStrategyResponse": {
4244
4293
  "type": "object"
4245
4294
  },
4295
+ "puppetBatchRoomMemberPayloadResponse": {
4296
+ "type": "object",
4297
+ "properties": {
4298
+ "members": {
4299
+ "type": "array",
4300
+ "items": {
4301
+ "type": "object",
4302
+ "$ref": "#/definitions/puppetRoomMemberPayloadResponse"
4303
+ }
4304
+ }
4305
+ }
4306
+ },
4246
4307
  "puppetBroadcastStatus": {
4247
4308
  "type": "string",
4248
4309
  "enum": [
@@ -100,6 +100,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
100
100
  roomDismiss: IPuppetService_IRoomDismiss;
101
101
  roomMemberPayload: IPuppetService_IRoomMemberPayload;
102
102
  roomMemberList: IPuppetService_IRoomMemberList;
103
+ batchRoomMemberPayload: IPuppetService_IBatchRoomMemberPayload;
103
104
  roomInvitationPayload: IPuppetService_IRoomInvitationPayload;
104
105
  roomInvitationAccept: IPuppetService_IRoomInvitationAccept;
105
106
  roomInvitationAcceptByQRCode: IPuppetService_IRoomInvitationAcceptByQRCode;
@@ -818,6 +819,15 @@ interface IPuppetService_IRoomMemberList extends grpc.MethodDefinition<wechaty_p
818
819
  responseSerialize: grpc.serialize<wechaty_puppet_room_member_pb.RoomMemberListResponse>;
819
820
  responseDeserialize: grpc.deserialize<wechaty_puppet_room_member_pb.RoomMemberListResponse>;
820
821
  }
822
+ interface IPuppetService_IBatchRoomMemberPayload extends grpc.MethodDefinition<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse> {
823
+ path: "/wechaty.Puppet/BatchRoomMemberPayload";
824
+ requestStream: false;
825
+ responseStream: false;
826
+ requestSerialize: grpc.serialize<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest>;
827
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest>;
828
+ responseSerialize: grpc.serialize<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse>;
829
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse>;
830
+ }
821
831
  interface IPuppetService_IRoomInvitationPayload extends grpc.MethodDefinition<wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse> {
822
832
  path: "/wechaty.Puppet/RoomInvitationPayload";
823
833
  requestStream: false;
@@ -1186,6 +1196,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
1186
1196
  roomDismiss: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomDismissRequest, wechaty_puppet_room_pb.RoomDismissResponse>;
1187
1197
  roomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse>;
1188
1198
  roomMemberList: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberListRequest, wechaty_puppet_room_member_pb.RoomMemberListResponse>;
1199
+ batchRoomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse>;
1189
1200
  roomInvitationPayload: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse>;
1190
1201
  roomInvitationAccept: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse>;
1191
1202
  roomInvitationAcceptByQRCode: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeRequest, wechaty_puppet_room_invitation_pb.RoomInvitationAcceptByQRCodeResponse>;
@@ -1448,6 +1459,9 @@ export interface IPuppetClient {
1448
1459
  roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1449
1460
  roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1450
1461
  roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1462
+ batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1463
+ batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1464
+ batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1451
1465
  roomInvitationPayload(request: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse) => void): grpc.ClientUnaryCall;
1452
1466
  roomInvitationPayload(request: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse) => void): grpc.ClientUnaryCall;
1453
1467
  roomInvitationPayload(request: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -1775,6 +1789,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1775
1789
  public roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1776
1790
  public roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1777
1791
  public roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1792
+ public batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1793
+ public batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1794
+ public batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1778
1795
  public roomInvitationPayload(request: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse) => void): grpc.ClientUnaryCall;
1779
1796
  public roomInvitationPayload(request: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse) => void): grpc.ClientUnaryCall;
1780
1797
  public roomInvitationPayload(request: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse) => void): grpc.ClientUnaryCall;