@juzi/wechaty-grpc 1.0.91 → 1.0.93

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 (46) hide show
  1. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +44 -0
  2. package/dist/cjs/out/wechaty/puppet/contact_pb.js +360 -0
  3. package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +5 -5
  4. package/dist/cjs/out/wechaty/puppet/room-member_pb.js +9 -9
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +37 -2
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +57 -2
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  11. package/dist/cjs/proto/wechaty/puppet/contact.proto +8 -0
  12. package/dist/cjs/proto/wechaty/puppet/room-member.proto +1 -1
  13. package/dist/cjs/proto/wechaty/puppet.proto +7 -0
  14. package/dist/cjs/src/package-json.js +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  16. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +44 -0
  19. package/dist/esm/out/wechaty/puppet/contact_pb.js +360 -0
  20. package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +5 -5
  21. package/dist/esm/out/wechaty/puppet/room-member_pb.js +9 -9
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +37 -2
  23. package/dist/esm/out/wechaty/puppet.swagger.json +57 -2
  24. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  25. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  26. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  27. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  28. package/dist/esm/proto/wechaty/puppet/contact.proto +8 -0
  29. package/dist/esm/proto/wechaty/puppet/room-member.proto +1 -1
  30. package/dist/esm/proto/wechaty/puppet.proto +7 -0
  31. package/dist/esm/src/package-json.js +1 -1
  32. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  33. package/dist/esm/tests/puppet-server-impl.js +5 -0
  34. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  35. package/out/wechaty/puppet/contact_pb.d.ts +44 -0
  36. package/out/wechaty/puppet/contact_pb.js +360 -0
  37. package/out/wechaty/puppet/room-member_pb.d.ts +5 -5
  38. package/out/wechaty/puppet/room-member_pb.js +9 -9
  39. package/out/wechaty/puppet.openapi.yaml +37 -2
  40. package/out/wechaty/puppet.swagger.json +57 -2
  41. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  42. package/out/wechaty/puppet_grpc_pb.js +33 -0
  43. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  44. package/out/wechaty/puppet_pb_service.js +40 -0
  45. package/package.json +1 -1
  46. package/src/package-json.ts +1 -1
@@ -170,6 +170,50 @@ export namespace ContactPayloadResponse {
170
170
  }
171
171
  }
172
172
 
173
+ export class BatchContactPayloadRequest extends jspb.Message {
174
+ clearIdsList(): void;
175
+ getIdsList(): Array<string>;
176
+ setIdsList(value: Array<string>): void;
177
+ addIds(value: string, index?: number): string;
178
+
179
+ serializeBinary(): Uint8Array;
180
+ toObject(includeInstance?: boolean): BatchContactPayloadRequest.AsObject;
181
+ static toObject(includeInstance: boolean, msg: BatchContactPayloadRequest): BatchContactPayloadRequest.AsObject;
182
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
183
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
184
+ static serializeBinaryToWriter(message: BatchContactPayloadRequest, writer: jspb.BinaryWriter): void;
185
+ static deserializeBinary(bytes: Uint8Array): BatchContactPayloadRequest;
186
+ static deserializeBinaryFromReader(message: BatchContactPayloadRequest, reader: jspb.BinaryReader): BatchContactPayloadRequest;
187
+ }
188
+
189
+ export namespace BatchContactPayloadRequest {
190
+ export type AsObject = {
191
+ idsList: Array<string>,
192
+ }
193
+ }
194
+
195
+ export class BatchContactPayloadResponse extends jspb.Message {
196
+ clearContactPayloadsList(): void;
197
+ getContactPayloadsList(): Array<ContactPayloadResponse>;
198
+ setContactPayloadsList(value: Array<ContactPayloadResponse>): void;
199
+ addContactPayloads(value?: ContactPayloadResponse, index?: number): ContactPayloadResponse;
200
+
201
+ serializeBinary(): Uint8Array;
202
+ toObject(includeInstance?: boolean): BatchContactPayloadResponse.AsObject;
203
+ static toObject(includeInstance: boolean, msg: BatchContactPayloadResponse): BatchContactPayloadResponse.AsObject;
204
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
205
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
206
+ static serializeBinaryToWriter(message: BatchContactPayloadResponse, writer: jspb.BinaryWriter): void;
207
+ static deserializeBinary(bytes: Uint8Array): BatchContactPayloadResponse;
208
+ static deserializeBinaryFromReader(message: BatchContactPayloadResponse, reader: jspb.BinaryReader): BatchContactPayloadResponse;
209
+ }
210
+
211
+ export namespace BatchContactPayloadResponse {
212
+ export type AsObject = {
213
+ contactPayloadsList: Array<ContactPayloadResponse.AsObject>,
214
+ }
215
+ }
216
+
173
217
  export class ContactSelfQRCodeRequest extends jspb.Message {
174
218
  serializeBinary(): Uint8Array;
175
219
  toObject(includeInstance?: boolean): ContactSelfQRCodeRequest.AsObject;
@@ -17,6 +17,8 @@ var global = (function() { return this || window || global || self || Function('
17
17
 
18
18
  var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_wrappers_pb);
20
+ goog.exportSymbol('proto.wechaty.puppet.BatchContactPayloadRequest', null, global);
21
+ goog.exportSymbol('proto.wechaty.puppet.BatchContactPayloadResponse', null, global);
20
22
  goog.exportSymbol('proto.wechaty.puppet.ContactAliasRequest', null, global);
21
23
  goog.exportSymbol('proto.wechaty.puppet.ContactAliasResponse', null, global);
22
24
  goog.exportSymbol('proto.wechaty.puppet.ContactAvatarRequest', null, global);
@@ -133,6 +135,48 @@ if (goog.DEBUG && !COMPILED) {
133
135
  */
134
136
  proto.wechaty.puppet.ContactPayloadResponse.displayName = 'proto.wechaty.puppet.ContactPayloadResponse';
135
137
  }
138
+ /**
139
+ * Generated by JsPbCodeGenerator.
140
+ * @param {Array=} opt_data Optional initial data array, typically from a
141
+ * server response, or constructed directly in Javascript. The array is used
142
+ * in place and becomes part of the constructed object. It is not cloned.
143
+ * If no data is provided, the constructed object will be empty, but still
144
+ * valid.
145
+ * @extends {jspb.Message}
146
+ * @constructor
147
+ */
148
+ proto.wechaty.puppet.BatchContactPayloadRequest = function(opt_data) {
149
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchContactPayloadRequest.repeatedFields_, null);
150
+ };
151
+ goog.inherits(proto.wechaty.puppet.BatchContactPayloadRequest, jspb.Message);
152
+ if (goog.DEBUG && !COMPILED) {
153
+ /**
154
+ * @public
155
+ * @override
156
+ */
157
+ proto.wechaty.puppet.BatchContactPayloadRequest.displayName = 'proto.wechaty.puppet.BatchContactPayloadRequest';
158
+ }
159
+ /**
160
+ * Generated by JsPbCodeGenerator.
161
+ * @param {Array=} opt_data Optional initial data array, typically from a
162
+ * server response, or constructed directly in Javascript. The array is used
163
+ * in place and becomes part of the constructed object. It is not cloned.
164
+ * If no data is provided, the constructed object will be empty, but still
165
+ * valid.
166
+ * @extends {jspb.Message}
167
+ * @constructor
168
+ */
169
+ proto.wechaty.puppet.BatchContactPayloadResponse = function(opt_data) {
170
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchContactPayloadResponse.repeatedFields_, null);
171
+ };
172
+ goog.inherits(proto.wechaty.puppet.BatchContactPayloadResponse, jspb.Message);
173
+ if (goog.DEBUG && !COMPILED) {
174
+ /**
175
+ * @public
176
+ * @override
177
+ */
178
+ proto.wechaty.puppet.BatchContactPayloadResponse.displayName = 'proto.wechaty.puppet.BatchContactPayloadResponse';
179
+ }
136
180
  /**
137
181
  * Generated by JsPbCodeGenerator.
138
182
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1872,6 +1916,322 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.setAka = function(value) {
1872
1916
 
1873
1917
 
1874
1918
 
1919
+ /**
1920
+ * List of repeated fields within this message type.
1921
+ * @private {!Array<number>}
1922
+ * @const
1923
+ */
1924
+ proto.wechaty.puppet.BatchContactPayloadRequest.repeatedFields_ = [1];
1925
+
1926
+
1927
+
1928
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1929
+ /**
1930
+ * Creates an object representation of this proto.
1931
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1932
+ * Optional fields that are not set will be set to undefined.
1933
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1934
+ * For the list of reserved names please see:
1935
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1936
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1937
+ * JSPB instance for transitional soy proto support:
1938
+ * http://goto/soy-param-migration
1939
+ * @return {!Object}
1940
+ */
1941
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.toObject = function(opt_includeInstance) {
1942
+ return proto.wechaty.puppet.BatchContactPayloadRequest.toObject(opt_includeInstance, this);
1943
+ };
1944
+
1945
+
1946
+ /**
1947
+ * Static version of the {@see toObject} method.
1948
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1949
+ * the JSPB instance for transitional soy proto support:
1950
+ * http://goto/soy-param-migration
1951
+ * @param {!proto.wechaty.puppet.BatchContactPayloadRequest} msg The msg instance to transform.
1952
+ * @return {!Object}
1953
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1954
+ */
1955
+ proto.wechaty.puppet.BatchContactPayloadRequest.toObject = function(includeInstance, msg) {
1956
+ var f, obj = {
1957
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1958
+ };
1959
+
1960
+ if (includeInstance) {
1961
+ obj.$jspbMessageInstance = msg;
1962
+ }
1963
+ return obj;
1964
+ };
1965
+ }
1966
+
1967
+
1968
+ /**
1969
+ * Deserializes binary data (in protobuf wire format).
1970
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1971
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest}
1972
+ */
1973
+ proto.wechaty.puppet.BatchContactPayloadRequest.deserializeBinary = function(bytes) {
1974
+ var reader = new jspb.BinaryReader(bytes);
1975
+ var msg = new proto.wechaty.puppet.BatchContactPayloadRequest;
1976
+ return proto.wechaty.puppet.BatchContactPayloadRequest.deserializeBinaryFromReader(msg, reader);
1977
+ };
1978
+
1979
+
1980
+ /**
1981
+ * Deserializes binary data (in protobuf wire format) from the
1982
+ * given reader into the given message object.
1983
+ * @param {!proto.wechaty.puppet.BatchContactPayloadRequest} msg The message object to deserialize into.
1984
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1985
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest}
1986
+ */
1987
+ proto.wechaty.puppet.BatchContactPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
1988
+ while (reader.nextField()) {
1989
+ if (reader.isEndGroup()) {
1990
+ break;
1991
+ }
1992
+ var field = reader.getFieldNumber();
1993
+ switch (field) {
1994
+ case 1:
1995
+ var value = /** @type {string} */ (reader.readString());
1996
+ msg.addIds(value);
1997
+ break;
1998
+ default:
1999
+ reader.skipField();
2000
+ break;
2001
+ }
2002
+ }
2003
+ return msg;
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * Serializes the message to binary data (in protobuf wire format).
2009
+ * @return {!Uint8Array}
2010
+ */
2011
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.serializeBinary = function() {
2012
+ var writer = new jspb.BinaryWriter();
2013
+ proto.wechaty.puppet.BatchContactPayloadRequest.serializeBinaryToWriter(this, writer);
2014
+ return writer.getResultBuffer();
2015
+ };
2016
+
2017
+
2018
+ /**
2019
+ * Serializes the given message to binary data (in protobuf wire
2020
+ * format), writing to the given BinaryWriter.
2021
+ * @param {!proto.wechaty.puppet.BatchContactPayloadRequest} message
2022
+ * @param {!jspb.BinaryWriter} writer
2023
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2024
+ */
2025
+ proto.wechaty.puppet.BatchContactPayloadRequest.serializeBinaryToWriter = function(message, writer) {
2026
+ var f = undefined;
2027
+ f = message.getIdsList();
2028
+ if (f.length > 0) {
2029
+ writer.writeRepeatedString(
2030
+ 1,
2031
+ f
2032
+ );
2033
+ }
2034
+ };
2035
+
2036
+
2037
+ /**
2038
+ * repeated string ids = 1;
2039
+ * @return {!Array<string>}
2040
+ */
2041
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.getIdsList = function() {
2042
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2043
+ };
2044
+
2045
+
2046
+ /**
2047
+ * @param {!Array<string>} value
2048
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest} returns this
2049
+ */
2050
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.setIdsList = function(value) {
2051
+ return jspb.Message.setField(this, 1, value || []);
2052
+ };
2053
+
2054
+
2055
+ /**
2056
+ * @param {string} value
2057
+ * @param {number=} opt_index
2058
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest} returns this
2059
+ */
2060
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.addIds = function(value, opt_index) {
2061
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2062
+ };
2063
+
2064
+
2065
+ /**
2066
+ * Clears the list making it empty but non-null.
2067
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest} returns this
2068
+ */
2069
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.clearIdsList = function() {
2070
+ return this.setIdsList([]);
2071
+ };
2072
+
2073
+
2074
+
2075
+ /**
2076
+ * List of repeated fields within this message type.
2077
+ * @private {!Array<number>}
2078
+ * @const
2079
+ */
2080
+ proto.wechaty.puppet.BatchContactPayloadResponse.repeatedFields_ = [1];
2081
+
2082
+
2083
+
2084
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2085
+ /**
2086
+ * Creates an object representation of this proto.
2087
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2088
+ * Optional fields that are not set will be set to undefined.
2089
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2090
+ * For the list of reserved names please see:
2091
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2092
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2093
+ * JSPB instance for transitional soy proto support:
2094
+ * http://goto/soy-param-migration
2095
+ * @return {!Object}
2096
+ */
2097
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.toObject = function(opt_includeInstance) {
2098
+ return proto.wechaty.puppet.BatchContactPayloadResponse.toObject(opt_includeInstance, this);
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * Static version of the {@see toObject} method.
2104
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2105
+ * the JSPB instance for transitional soy proto support:
2106
+ * http://goto/soy-param-migration
2107
+ * @param {!proto.wechaty.puppet.BatchContactPayloadResponse} msg The msg instance to transform.
2108
+ * @return {!Object}
2109
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2110
+ */
2111
+ proto.wechaty.puppet.BatchContactPayloadResponse.toObject = function(includeInstance, msg) {
2112
+ var f, obj = {
2113
+ contactPayloadsList: jspb.Message.toObjectList(msg.getContactPayloadsList(),
2114
+ proto.wechaty.puppet.ContactPayloadResponse.toObject, includeInstance)
2115
+ };
2116
+
2117
+ if (includeInstance) {
2118
+ obj.$jspbMessageInstance = msg;
2119
+ }
2120
+ return obj;
2121
+ };
2122
+ }
2123
+
2124
+
2125
+ /**
2126
+ * Deserializes binary data (in protobuf wire format).
2127
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2128
+ * @return {!proto.wechaty.puppet.BatchContactPayloadResponse}
2129
+ */
2130
+ proto.wechaty.puppet.BatchContactPayloadResponse.deserializeBinary = function(bytes) {
2131
+ var reader = new jspb.BinaryReader(bytes);
2132
+ var msg = new proto.wechaty.puppet.BatchContactPayloadResponse;
2133
+ return proto.wechaty.puppet.BatchContactPayloadResponse.deserializeBinaryFromReader(msg, reader);
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * Deserializes binary data (in protobuf wire format) from the
2139
+ * given reader into the given message object.
2140
+ * @param {!proto.wechaty.puppet.BatchContactPayloadResponse} msg The message object to deserialize into.
2141
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2142
+ * @return {!proto.wechaty.puppet.BatchContactPayloadResponse}
2143
+ */
2144
+ proto.wechaty.puppet.BatchContactPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
2145
+ while (reader.nextField()) {
2146
+ if (reader.isEndGroup()) {
2147
+ break;
2148
+ }
2149
+ var field = reader.getFieldNumber();
2150
+ switch (field) {
2151
+ case 1:
2152
+ var value = new proto.wechaty.puppet.ContactPayloadResponse;
2153
+ reader.readMessage(value,proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader);
2154
+ msg.addContactPayloads(value);
2155
+ break;
2156
+ default:
2157
+ reader.skipField();
2158
+ break;
2159
+ }
2160
+ }
2161
+ return msg;
2162
+ };
2163
+
2164
+
2165
+ /**
2166
+ * Serializes the message to binary data (in protobuf wire format).
2167
+ * @return {!Uint8Array}
2168
+ */
2169
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.serializeBinary = function() {
2170
+ var writer = new jspb.BinaryWriter();
2171
+ proto.wechaty.puppet.BatchContactPayloadResponse.serializeBinaryToWriter(this, writer);
2172
+ return writer.getResultBuffer();
2173
+ };
2174
+
2175
+
2176
+ /**
2177
+ * Serializes the given message to binary data (in protobuf wire
2178
+ * format), writing to the given BinaryWriter.
2179
+ * @param {!proto.wechaty.puppet.BatchContactPayloadResponse} message
2180
+ * @param {!jspb.BinaryWriter} writer
2181
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2182
+ */
2183
+ proto.wechaty.puppet.BatchContactPayloadResponse.serializeBinaryToWriter = function(message, writer) {
2184
+ var f = undefined;
2185
+ f = message.getContactPayloadsList();
2186
+ if (f.length > 0) {
2187
+ writer.writeRepeatedMessage(
2188
+ 1,
2189
+ f,
2190
+ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter
2191
+ );
2192
+ }
2193
+ };
2194
+
2195
+
2196
+ /**
2197
+ * repeated ContactPayloadResponse contact_payloads = 1;
2198
+ * @return {!Array<!proto.wechaty.puppet.ContactPayloadResponse>}
2199
+ */
2200
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.getContactPayloadsList = function() {
2201
+ return /** @type{!Array<!proto.wechaty.puppet.ContactPayloadResponse>} */ (
2202
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.ContactPayloadResponse, 1));
2203
+ };
2204
+
2205
+
2206
+ /**
2207
+ * @param {!Array<!proto.wechaty.puppet.ContactPayloadResponse>} value
2208
+ * @return {!proto.wechaty.puppet.BatchContactPayloadResponse} returns this
2209
+ */
2210
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.setContactPayloadsList = function(value) {
2211
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2212
+ };
2213
+
2214
+
2215
+ /**
2216
+ * @param {!proto.wechaty.puppet.ContactPayloadResponse=} opt_value
2217
+ * @param {number=} opt_index
2218
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse}
2219
+ */
2220
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.addContactPayloads = function(opt_value, opt_index) {
2221
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.ContactPayloadResponse, opt_index);
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * Clears the list making it empty but non-null.
2227
+ * @return {!proto.wechaty.puppet.BatchContactPayloadResponse} returns this
2228
+ */
2229
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.clearContactPayloadsList = function() {
2230
+ return this.setContactPayloadsList([]);
2231
+ };
2232
+
2233
+
2234
+
1875
2235
 
1876
2236
 
1877
2237
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -144,10 +144,10 @@ export namespace BatchRoomMemberPayloadRequest {
144
144
  }
145
145
 
146
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;
147
+ clearMemberPayloadsList(): void;
148
+ getMemberPayloadsList(): Array<RoomMemberPayloadResponse>;
149
+ setMemberPayloadsList(value: Array<RoomMemberPayloadResponse>): void;
150
+ addMemberPayloads(value?: RoomMemberPayloadResponse, index?: number): RoomMemberPayloadResponse;
151
151
 
152
152
  serializeBinary(): Uint8Array;
153
153
  toObject(includeInstance?: boolean): BatchRoomMemberPayloadResponse.AsObject;
@@ -161,7 +161,7 @@ export class BatchRoomMemberPayloadResponse extends jspb.Message {
161
161
 
162
162
  export namespace BatchRoomMemberPayloadResponse {
163
163
  export type AsObject = {
164
- membersList: Array<RoomMemberPayloadResponse.AsObject>,
164
+ memberPayloadsList: Array<RoomMemberPayloadResponse.AsObject>,
165
165
  }
166
166
  }
167
167
 
@@ -1159,7 +1159,7 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.toObject = functio
1159
1159
  */
1160
1160
  proto.wechaty.puppet.BatchRoomMemberPayloadResponse.toObject = function(includeInstance, msg) {
1161
1161
  var f, obj = {
1162
- membersList: jspb.Message.toObjectList(msg.getMembersList(),
1162
+ memberPayloadsList: jspb.Message.toObjectList(msg.getMemberPayloadsList(),
1163
1163
  proto.wechaty.puppet.RoomMemberPayloadResponse.toObject, includeInstance)
1164
1164
  };
1165
1165
 
@@ -1200,7 +1200,7 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.deserializeBinaryFromReader
1200
1200
  case 1:
1201
1201
  var value = new proto.wechaty.puppet.RoomMemberPayloadResponse;
1202
1202
  reader.readMessage(value,proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader);
1203
- msg.addMembers(value);
1203
+ msg.addMemberPayloads(value);
1204
1204
  break;
1205
1205
  default:
1206
1206
  reader.skipField();
@@ -1231,7 +1231,7 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.serializeBinary =
1231
1231
  */
1232
1232
  proto.wechaty.puppet.BatchRoomMemberPayloadResponse.serializeBinaryToWriter = function(message, writer) {
1233
1233
  var f = undefined;
1234
- f = message.getMembersList();
1234
+ f = message.getMemberPayloadsList();
1235
1235
  if (f.length > 0) {
1236
1236
  writer.writeRepeatedMessage(
1237
1237
  1,
@@ -1243,10 +1243,10 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.serializeBinaryToWriter = fu
1243
1243
 
1244
1244
 
1245
1245
  /**
1246
- * repeated RoomMemberPayloadResponse members = 1;
1246
+ * repeated RoomMemberPayloadResponse member_payloads = 1;
1247
1247
  * @return {!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>}
1248
1248
  */
1249
- proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.getMembersList = function() {
1249
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.getMemberPayloadsList = function() {
1250
1250
  return /** @type{!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>} */ (
1251
1251
  jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.RoomMemberPayloadResponse, 1));
1252
1252
  };
@@ -1256,7 +1256,7 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.getMembersList = f
1256
1256
  * @param {!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>} value
1257
1257
  * @return {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} returns this
1258
1258
  */
1259
- proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.setMembersList = function(value) {
1259
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.setMemberPayloadsList = function(value) {
1260
1260
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
1261
1261
  };
1262
1262
 
@@ -1266,7 +1266,7 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.setMembersList = f
1266
1266
  * @param {number=} opt_index
1267
1267
  * @return {!proto.wechaty.puppet.RoomMemberPayloadResponse}
1268
1268
  */
1269
- proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.addMembers = function(opt_value, opt_index) {
1269
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.addMemberPayloads = function(opt_value, opt_index) {
1270
1270
  return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.RoomMemberPayloadResponse, opt_index);
1271
1271
  };
1272
1272
 
@@ -1275,8 +1275,8 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.addMembers = funct
1275
1275
  * Clears the list making it empty but non-null.
1276
1276
  * @return {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} returns this
1277
1277
  */
1278
- proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.clearMembersList = function() {
1279
- return this.setMembersList([]);
1278
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.clearMemberPayloadsList = function() {
1279
+ return this.setMemberPayloadsList([]);
1280
1280
  };
1281
1281
 
1282
1282
 
@@ -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.91
12
+ version: 1.0.93
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -105,6 +105,26 @@ paths:
105
105
  $ref: '#/definitions/rpcStatus'
106
106
  tags:
107
107
  - Puppet
108
+ /contacts/batch-payload:
109
+ post:
110
+ operationId: Puppet_BatchContactPayload
111
+ responses:
112
+ '200':
113
+ description: A successful response.
114
+ schema:
115
+ $ref: '#/definitions/puppetBatchContactPayloadResponse'
116
+ default:
117
+ description: An unexpected error response.
118
+ schema:
119
+ $ref: '#/definitions/rpcStatus'
120
+ parameters:
121
+ - name: body
122
+ in: body
123
+ required: true
124
+ schema:
125
+ $ref: '#/definitions/puppetBatchContactPayloadRequest'
126
+ tags:
127
+ - Puppet
108
128
  /contacts/self/aka/{aka}:
109
129
  put:
110
130
  operationId: Puppet_ContactSelfAka
@@ -2873,10 +2893,25 @@ definitions:
2873
2893
  type: boolean
2874
2894
  puppetApplyRoomAntiSpamStrategyResponse:
2875
2895
  type: object
2896
+ puppetBatchContactPayloadRequest:
2897
+ type: object
2898
+ properties:
2899
+ ids:
2900
+ type: array
2901
+ items:
2902
+ type: string
2903
+ puppetBatchContactPayloadResponse:
2904
+ type: object
2905
+ properties:
2906
+ contactPayloads:
2907
+ type: array
2908
+ items:
2909
+ type: object
2910
+ $ref: '#/definitions/puppetContactPayloadResponse'
2876
2911
  puppetBatchRoomMemberPayloadResponse:
2877
2912
  type: object
2878
2913
  properties:
2879
- members:
2914
+ memberPayloads:
2880
2915
  type: array
2881
2916
  items:
2882
2917
  type: object
@@ -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.91",
6
+ "version": "1.0.93",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -147,6 +147,38 @@
147
147
  ]
148
148
  }
149
149
  },
150
+ "/contacts/batch-payload": {
151
+ "post": {
152
+ "operationId": "Puppet_BatchContactPayload",
153
+ "responses": {
154
+ "200": {
155
+ "description": "A successful response.",
156
+ "schema": {
157
+ "$ref": "#/definitions/puppetBatchContactPayloadResponse"
158
+ }
159
+ },
160
+ "default": {
161
+ "description": "An unexpected error response.",
162
+ "schema": {
163
+ "$ref": "#/definitions/rpcStatus"
164
+ }
165
+ }
166
+ },
167
+ "parameters": [
168
+ {
169
+ "name": "body",
170
+ "in": "body",
171
+ "required": true,
172
+ "schema": {
173
+ "$ref": "#/definitions/puppetBatchContactPayloadRequest"
174
+ }
175
+ }
176
+ ],
177
+ "tags": [
178
+ "Puppet"
179
+ ]
180
+ }
181
+ },
150
182
  "/contacts/self/aka/{aka}": {
151
183
  "put": {
152
184
  "operationId": "Puppet_ContactSelfAka",
@@ -4292,10 +4324,33 @@
4292
4324
  "puppetApplyRoomAntiSpamStrategyResponse": {
4293
4325
  "type": "object"
4294
4326
  },
4327
+ "puppetBatchContactPayloadRequest": {
4328
+ "type": "object",
4329
+ "properties": {
4330
+ "ids": {
4331
+ "type": "array",
4332
+ "items": {
4333
+ "type": "string"
4334
+ }
4335
+ }
4336
+ }
4337
+ },
4338
+ "puppetBatchContactPayloadResponse": {
4339
+ "type": "object",
4340
+ "properties": {
4341
+ "contactPayloads": {
4342
+ "type": "array",
4343
+ "items": {
4344
+ "type": "object",
4345
+ "$ref": "#/definitions/puppetContactPayloadResponse"
4346
+ }
4347
+ }
4348
+ }
4349
+ },
4295
4350
  "puppetBatchRoomMemberPayloadResponse": {
4296
4351
  "type": "object",
4297
4352
  "properties": {
4298
- "members": {
4353
+ "memberPayloads": {
4299
4354
  "type": "array",
4300
4355
  "items": {
4301
4356
  "type": "object",