@juzi/wechaty-grpc 1.0.27 → 1.0.29

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 (70) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  3. package/dist/cjs/examples/promisify.d.ts +5 -5
  4. package/dist/cjs/examples/promisify.d.ts.map +1 -1
  5. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
  6. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
  7. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +6 -0
  8. package/dist/cjs/out/wechaty/puppet/message_pb.js +49 -1
  9. package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +38 -0
  10. package/dist/cjs/out/wechaty/puppet/moment_pb.js +301 -0
  11. package/dist/cjs/out/wechaty/puppet.openapi.yaml +249 -8
  12. package/dist/cjs/out/wechaty/puppet.swagger.json +323 -132
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +119 -0
  14. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +104 -0
  15. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +133 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.js +280 -0
  17. package/dist/cjs/proto/wechaty/puppet/message.proto +2 -0
  18. package/dist/cjs/proto/wechaty/puppet/moment.proto +6 -0
  19. package/dist/cjs/proto/wechaty/puppet.proto +56 -0
  20. package/dist/cjs/src/chunk-transformer.d.ts +1 -1
  21. package/dist/cjs/src/chunk-transformer.d.ts.map +1 -1
  22. package/dist/cjs/src/config.d.ts +1 -1
  23. package/dist/cjs/src/config.d.ts.map +1 -1
  24. package/dist/cjs/src/package-json.js +1 -1
  25. package/dist/cjs/tests/puppet-server-impl.d.ts +1 -1
  26. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  28. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  29. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  30. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  31. package/dist/esm/examples/promisify.d.ts +5 -5
  32. package/dist/esm/examples/promisify.d.ts.map +1 -1
  33. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
  34. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
  35. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +6 -0
  36. package/dist/esm/out/wechaty/puppet/message_pb.js +49 -1
  37. package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +38 -0
  38. package/dist/esm/out/wechaty/puppet/moment_pb.js +301 -0
  39. package/dist/esm/out/wechaty/puppet.openapi.yaml +249 -8
  40. package/dist/esm/out/wechaty/puppet.swagger.json +323 -132
  41. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +119 -0
  42. package/dist/esm/out/wechaty/puppet_grpc_pb.js +104 -0
  43. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +133 -0
  44. package/dist/esm/out/wechaty/puppet_pb_service.js +280 -0
  45. package/dist/esm/proto/wechaty/puppet/message.proto +2 -0
  46. package/dist/esm/proto/wechaty/puppet/moment.proto +6 -0
  47. package/dist/esm/proto/wechaty/puppet.proto +56 -0
  48. package/dist/esm/src/chunk-transformer.d.ts +1 -1
  49. package/dist/esm/src/chunk-transformer.d.ts.map +1 -1
  50. package/dist/esm/src/config.d.ts +1 -1
  51. package/dist/esm/src/config.d.ts.map +1 -1
  52. package/dist/esm/src/package-json.js +1 -1
  53. package/dist/esm/tests/puppet-server-impl.d.ts +1 -1
  54. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  55. package/dist/esm/tests/puppet-server-impl.js +5 -0
  56. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  57. package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
  58. package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
  59. package/out/wechaty/puppet/message_pb.d.ts +6 -0
  60. package/out/wechaty/puppet/message_pb.js +49 -1
  61. package/out/wechaty/puppet/moment_pb.d.ts +38 -0
  62. package/out/wechaty/puppet/moment_pb.js +301 -0
  63. package/out/wechaty/puppet.openapi.yaml +249 -8
  64. package/out/wechaty/puppet.swagger.json +323 -132
  65. package/out/wechaty/puppet_grpc_pb.d.ts +119 -0
  66. package/out/wechaty/puppet_grpc_pb.js +104 -0
  67. package/out/wechaty/puppet_pb_service.d.ts +133 -0
  68. package/out/wechaty/puppet_pb_service.js +280 -0
  69. package/package.json +1 -1
  70. package/src/package-json.ts +1 -1
@@ -23,6 +23,8 @@ goog.exportSymbol('proto.wechaty.puppet.MomentPublishRequest', null, global);
23
23
  goog.exportSymbol('proto.wechaty.puppet.MomentPublishResponse', null, global);
24
24
  goog.exportSymbol('proto.wechaty.puppet.MomentSignatureRequest', null, global);
25
25
  goog.exportSymbol('proto.wechaty.puppet.MomentSignatureResponse', null, global);
26
+ goog.exportSymbol('proto.wechaty.puppet.MomentVisibleListRequest', null, global);
27
+ goog.exportSymbol('proto.wechaty.puppet.MomentVisibleListResponse', null, global);
26
28
  /**
27
29
  * Generated by JsPbCodeGenerator.
28
30
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -149,6 +151,48 @@ if (goog.DEBUG && !COMPILED) {
149
151
  */
150
152
  proto.wechaty.puppet.MomentCoverageResponse.displayName = 'proto.wechaty.puppet.MomentCoverageResponse';
151
153
  }
154
+ /**
155
+ * Generated by JsPbCodeGenerator.
156
+ * @param {Array=} opt_data Optional initial data array, typically from a
157
+ * server response, or constructed directly in Javascript. The array is used
158
+ * in place and becomes part of the constructed object. It is not cloned.
159
+ * If no data is provided, the constructed object will be empty, but still
160
+ * valid.
161
+ * @extends {jspb.Message}
162
+ * @constructor
163
+ */
164
+ proto.wechaty.puppet.MomentVisibleListRequest = function(opt_data) {
165
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
166
+ };
167
+ goog.inherits(proto.wechaty.puppet.MomentVisibleListRequest, jspb.Message);
168
+ if (goog.DEBUG && !COMPILED) {
169
+ /**
170
+ * @public
171
+ * @override
172
+ */
173
+ proto.wechaty.puppet.MomentVisibleListRequest.displayName = 'proto.wechaty.puppet.MomentVisibleListRequest';
174
+ }
175
+ /**
176
+ * Generated by JsPbCodeGenerator.
177
+ * @param {Array=} opt_data Optional initial data array, typically from a
178
+ * server response, or constructed directly in Javascript. The array is used
179
+ * in place and becomes part of the constructed object. It is not cloned.
180
+ * If no data is provided, the constructed object will be empty, but still
181
+ * valid.
182
+ * @extends {jspb.Message}
183
+ * @constructor
184
+ */
185
+ proto.wechaty.puppet.MomentVisibleListResponse = function(opt_data) {
186
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.MomentVisibleListResponse.repeatedFields_, null);
187
+ };
188
+ goog.inherits(proto.wechaty.puppet.MomentVisibleListResponse, jspb.Message);
189
+ if (goog.DEBUG && !COMPILED) {
190
+ /**
191
+ * @public
192
+ * @override
193
+ */
194
+ proto.wechaty.puppet.MomentVisibleListResponse.displayName = 'proto.wechaty.puppet.MomentVisibleListResponse';
195
+ }
152
196
 
153
197
 
154
198
 
@@ -950,4 +994,261 @@ proto.wechaty.puppet.MomentCoverageResponse.prototype.setFileBox = function(valu
950
994
  };
951
995
 
952
996
 
997
+
998
+
999
+
1000
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1001
+ /**
1002
+ * Creates an object representation of this proto.
1003
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1004
+ * Optional fields that are not set will be set to undefined.
1005
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1006
+ * For the list of reserved names please see:
1007
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1008
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1009
+ * JSPB instance for transitional soy proto support:
1010
+ * http://goto/soy-param-migration
1011
+ * @return {!Object}
1012
+ */
1013
+ proto.wechaty.puppet.MomentVisibleListRequest.prototype.toObject = function(opt_includeInstance) {
1014
+ return proto.wechaty.puppet.MomentVisibleListRequest.toObject(opt_includeInstance, this);
1015
+ };
1016
+
1017
+
1018
+ /**
1019
+ * Static version of the {@see toObject} method.
1020
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1021
+ * the JSPB instance for transitional soy proto support:
1022
+ * http://goto/soy-param-migration
1023
+ * @param {!proto.wechaty.puppet.MomentVisibleListRequest} msg The msg instance to transform.
1024
+ * @return {!Object}
1025
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1026
+ */
1027
+ proto.wechaty.puppet.MomentVisibleListRequest.toObject = function(includeInstance, msg) {
1028
+ var f, obj = {
1029
+
1030
+ };
1031
+
1032
+ if (includeInstance) {
1033
+ obj.$jspbMessageInstance = msg;
1034
+ }
1035
+ return obj;
1036
+ };
1037
+ }
1038
+
1039
+
1040
+ /**
1041
+ * Deserializes binary data (in protobuf wire format).
1042
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1043
+ * @return {!proto.wechaty.puppet.MomentVisibleListRequest}
1044
+ */
1045
+ proto.wechaty.puppet.MomentVisibleListRequest.deserializeBinary = function(bytes) {
1046
+ var reader = new jspb.BinaryReader(bytes);
1047
+ var msg = new proto.wechaty.puppet.MomentVisibleListRequest;
1048
+ return proto.wechaty.puppet.MomentVisibleListRequest.deserializeBinaryFromReader(msg, reader);
1049
+ };
1050
+
1051
+
1052
+ /**
1053
+ * Deserializes binary data (in protobuf wire format) from the
1054
+ * given reader into the given message object.
1055
+ * @param {!proto.wechaty.puppet.MomentVisibleListRequest} msg The message object to deserialize into.
1056
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1057
+ * @return {!proto.wechaty.puppet.MomentVisibleListRequest}
1058
+ */
1059
+ proto.wechaty.puppet.MomentVisibleListRequest.deserializeBinaryFromReader = function(msg, reader) {
1060
+ while (reader.nextField()) {
1061
+ if (reader.isEndGroup()) {
1062
+ break;
1063
+ }
1064
+ var field = reader.getFieldNumber();
1065
+ switch (field) {
1066
+ default:
1067
+ reader.skipField();
1068
+ break;
1069
+ }
1070
+ }
1071
+ return msg;
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * Serializes the message to binary data (in protobuf wire format).
1077
+ * @return {!Uint8Array}
1078
+ */
1079
+ proto.wechaty.puppet.MomentVisibleListRequest.prototype.serializeBinary = function() {
1080
+ var writer = new jspb.BinaryWriter();
1081
+ proto.wechaty.puppet.MomentVisibleListRequest.serializeBinaryToWriter(this, writer);
1082
+ return writer.getResultBuffer();
1083
+ };
1084
+
1085
+
1086
+ /**
1087
+ * Serializes the given message to binary data (in protobuf wire
1088
+ * format), writing to the given BinaryWriter.
1089
+ * @param {!proto.wechaty.puppet.MomentVisibleListRequest} message
1090
+ * @param {!jspb.BinaryWriter} writer
1091
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1092
+ */
1093
+ proto.wechaty.puppet.MomentVisibleListRequest.serializeBinaryToWriter = function(message, writer) {
1094
+ var f = undefined;
1095
+ };
1096
+
1097
+
1098
+
1099
+ /**
1100
+ * List of repeated fields within this message type.
1101
+ * @private {!Array<number>}
1102
+ * @const
1103
+ */
1104
+ proto.wechaty.puppet.MomentVisibleListResponse.repeatedFields_ = [1];
1105
+
1106
+
1107
+
1108
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1109
+ /**
1110
+ * Creates an object representation of this proto.
1111
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1112
+ * Optional fields that are not set will be set to undefined.
1113
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1114
+ * For the list of reserved names please see:
1115
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1116
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1117
+ * JSPB instance for transitional soy proto support:
1118
+ * http://goto/soy-param-migration
1119
+ * @return {!Object}
1120
+ */
1121
+ proto.wechaty.puppet.MomentVisibleListResponse.prototype.toObject = function(opt_includeInstance) {
1122
+ return proto.wechaty.puppet.MomentVisibleListResponse.toObject(opt_includeInstance, this);
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * Static version of the {@see toObject} method.
1128
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1129
+ * the JSPB instance for transitional soy proto support:
1130
+ * http://goto/soy-param-migration
1131
+ * @param {!proto.wechaty.puppet.MomentVisibleListResponse} msg The msg instance to transform.
1132
+ * @return {!Object}
1133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1134
+ */
1135
+ proto.wechaty.puppet.MomentVisibleListResponse.toObject = function(includeInstance, msg) {
1136
+ var f, obj = {
1137
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1138
+ };
1139
+
1140
+ if (includeInstance) {
1141
+ obj.$jspbMessageInstance = msg;
1142
+ }
1143
+ return obj;
1144
+ };
1145
+ }
1146
+
1147
+
1148
+ /**
1149
+ * Deserializes binary data (in protobuf wire format).
1150
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1151
+ * @return {!proto.wechaty.puppet.MomentVisibleListResponse}
1152
+ */
1153
+ proto.wechaty.puppet.MomentVisibleListResponse.deserializeBinary = function(bytes) {
1154
+ var reader = new jspb.BinaryReader(bytes);
1155
+ var msg = new proto.wechaty.puppet.MomentVisibleListResponse;
1156
+ return proto.wechaty.puppet.MomentVisibleListResponse.deserializeBinaryFromReader(msg, reader);
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * Deserializes binary data (in protobuf wire format) from the
1162
+ * given reader into the given message object.
1163
+ * @param {!proto.wechaty.puppet.MomentVisibleListResponse} msg The message object to deserialize into.
1164
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1165
+ * @return {!proto.wechaty.puppet.MomentVisibleListResponse}
1166
+ */
1167
+ proto.wechaty.puppet.MomentVisibleListResponse.deserializeBinaryFromReader = function(msg, reader) {
1168
+ while (reader.nextField()) {
1169
+ if (reader.isEndGroup()) {
1170
+ break;
1171
+ }
1172
+ var field = reader.getFieldNumber();
1173
+ switch (field) {
1174
+ case 1:
1175
+ var value = /** @type {string} */ (reader.readString());
1176
+ msg.addContactIds(value);
1177
+ break;
1178
+ default:
1179
+ reader.skipField();
1180
+ break;
1181
+ }
1182
+ }
1183
+ return msg;
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * Serializes the message to binary data (in protobuf wire format).
1189
+ * @return {!Uint8Array}
1190
+ */
1191
+ proto.wechaty.puppet.MomentVisibleListResponse.prototype.serializeBinary = function() {
1192
+ var writer = new jspb.BinaryWriter();
1193
+ proto.wechaty.puppet.MomentVisibleListResponse.serializeBinaryToWriter(this, writer);
1194
+ return writer.getResultBuffer();
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * Serializes the given message to binary data (in protobuf wire
1200
+ * format), writing to the given BinaryWriter.
1201
+ * @param {!proto.wechaty.puppet.MomentVisibleListResponse} message
1202
+ * @param {!jspb.BinaryWriter} writer
1203
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1204
+ */
1205
+ proto.wechaty.puppet.MomentVisibleListResponse.serializeBinaryToWriter = function(message, writer) {
1206
+ var f = undefined;
1207
+ f = message.getContactIdsList();
1208
+ if (f.length > 0) {
1209
+ writer.writeRepeatedString(
1210
+ 1,
1211
+ f
1212
+ );
1213
+ }
1214
+ };
1215
+
1216
+
1217
+ /**
1218
+ * repeated string contact_ids = 1;
1219
+ * @return {!Array<string>}
1220
+ */
1221
+ proto.wechaty.puppet.MomentVisibleListResponse.prototype.getContactIdsList = function() {
1222
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * @param {!Array<string>} value
1228
+ * @return {!proto.wechaty.puppet.MomentVisibleListResponse} returns this
1229
+ */
1230
+ proto.wechaty.puppet.MomentVisibleListResponse.prototype.setContactIdsList = function(value) {
1231
+ return jspb.Message.setField(this, 1, value || []);
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * @param {string} value
1237
+ * @param {number=} opt_index
1238
+ * @return {!proto.wechaty.puppet.MomentVisibleListResponse} returns this
1239
+ */
1240
+ proto.wechaty.puppet.MomentVisibleListResponse.prototype.addContactIds = function(value, opt_index) {
1241
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * Clears the list making it empty but non-null.
1247
+ * @return {!proto.wechaty.puppet.MomentVisibleListResponse} returns this
1248
+ */
1249
+ proto.wechaty.puppet.MomentVisibleListResponse.prototype.clearContactIdsList = function() {
1250
+ return this.setContactIdsList([]);
1251
+ };
1252
+
1253
+
953
1254
  goog.object.extend(exports, proto.wechaty.puppet);