@juzi/wechaty-grpc 1.0.28 → 1.0.30
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/examples/promisify.d.ts +5 -5
- package/dist/cjs/examples/promisify.d.ts.map +1 -1
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +49 -1
- package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb.js +301 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +24 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +37 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +38 -0
- 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/message.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet.proto +14 -0
- package/dist/cjs/src/chunk-transformer.d.ts +1 -1
- package/dist/cjs/src/chunk-transformer.d.ts.map +1 -1
- package/dist/cjs/src/config.d.ts +1 -1
- package/dist/cjs/src/config.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts +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/examples/promisify.d.ts +5 -5
- package/dist/esm/examples/promisify.d.ts.map +1 -1
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +49 -1
- package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet/moment_pb.js +301 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +24 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +37 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +38 -0
- 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/message.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/esm/proto/wechaty/puppet.proto +14 -0
- package/dist/esm/src/chunk-transformer.d.ts +1 -1
- package/dist/esm/src/chunk-transformer.d.ts.map +1 -1
- package/dist/esm/src/config.d.ts +1 -1
- package/dist/esm/src/config.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts +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/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/out/wechaty/puppet/message_pb.js +49 -1
- package/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/out/wechaty/puppet/moment_pb.js +301 -0
- package/out/wechaty/puppet.openapi.yaml +24 -1
- package/out/wechaty/puppet.swagger.json +37 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +38 -0
- 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
|
@@ -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);
|
|
@@ -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.30
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -1114,6 +1114,20 @@ paths:
|
|
|
1114
1114
|
$ref: '#/definitions/puppetMomentSignatureRequest'
|
|
1115
1115
|
tags:
|
|
1116
1116
|
- Puppet
|
|
1117
|
+
/moment/visibleList:
|
|
1118
|
+
get:
|
|
1119
|
+
operationId: Puppet_MomentVisibleList
|
|
1120
|
+
responses:
|
|
1121
|
+
'200':
|
|
1122
|
+
description: A successful response.
|
|
1123
|
+
schema:
|
|
1124
|
+
$ref: '#/definitions/puppetMomentVisibleListResponse'
|
|
1125
|
+
default:
|
|
1126
|
+
description: An unexpected error response.
|
|
1127
|
+
schema:
|
|
1128
|
+
$ref: '#/definitions/rpcStatus'
|
|
1129
|
+
tags:
|
|
1130
|
+
- Puppet
|
|
1117
1131
|
/post/like:
|
|
1118
1132
|
post:
|
|
1119
1133
|
operationId: Puppet_postTap
|
|
@@ -2601,6 +2615,8 @@ definitions:
|
|
|
2601
2615
|
quoteId:
|
|
2602
2616
|
type: string
|
|
2603
2617
|
title: 被引用的消息id
|
|
2618
|
+
additionalInfo:
|
|
2619
|
+
type: string
|
|
2604
2620
|
puppetMessagePreviewResponse:
|
|
2605
2621
|
type: object
|
|
2606
2622
|
properties:
|
|
@@ -2846,6 +2862,13 @@ definitions:
|
|
|
2846
2862
|
properties:
|
|
2847
2863
|
text:
|
|
2848
2864
|
type: string
|
|
2865
|
+
puppetMomentVisibleListResponse:
|
|
2866
|
+
type: object
|
|
2867
|
+
properties:
|
|
2868
|
+
contactIds:
|
|
2869
|
+
type: array
|
|
2870
|
+
items:
|
|
2871
|
+
type: string
|
|
2849
2872
|
puppetPayloadType:
|
|
2850
2873
|
type: string
|
|
2851
2874
|
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.
|
|
6
|
+
"version": "1.0.30",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -1649,6 +1649,28 @@
|
|
|
1649
1649
|
]
|
|
1650
1650
|
}
|
|
1651
1651
|
},
|
|
1652
|
+
"/moment/visibleList": {
|
|
1653
|
+
"get": {
|
|
1654
|
+
"operationId": "Puppet_MomentVisibleList",
|
|
1655
|
+
"responses": {
|
|
1656
|
+
"200": {
|
|
1657
|
+
"description": "A successful response.",
|
|
1658
|
+
"schema": {
|
|
1659
|
+
"$ref": "#/definitions/puppetMomentVisibleListResponse"
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
"default": {
|
|
1663
|
+
"description": "An unexpected error response.",
|
|
1664
|
+
"schema": {
|
|
1665
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1669
|
+
"tags": [
|
|
1670
|
+
"Puppet"
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1652
1674
|
"/post/like": {
|
|
1653
1675
|
"post": {
|
|
1654
1676
|
"operationId": "Puppet_postTap",
|
|
@@ -3731,6 +3753,9 @@
|
|
|
3731
3753
|
"quoteId": {
|
|
3732
3754
|
"type": "string",
|
|
3733
3755
|
"title": "被引用的消息id"
|
|
3756
|
+
},
|
|
3757
|
+
"additionalInfo": {
|
|
3758
|
+
"type": "string"
|
|
3734
3759
|
}
|
|
3735
3760
|
}
|
|
3736
3761
|
},
|
|
@@ -4001,6 +4026,17 @@
|
|
|
4001
4026
|
}
|
|
4002
4027
|
}
|
|
4003
4028
|
},
|
|
4029
|
+
"puppetMomentVisibleListResponse": {
|
|
4030
|
+
"type": "object",
|
|
4031
|
+
"properties": {
|
|
4032
|
+
"contactIds": {
|
|
4033
|
+
"type": "array",
|
|
4034
|
+
"items": {
|
|
4035
|
+
"type": "string"
|
|
4036
|
+
}
|
|
4037
|
+
}
|
|
4038
|
+
}
|
|
4039
|
+
},
|
|
4004
4040
|
"puppetPayloadType": {
|
|
4005
4041
|
"type": "string",
|
|
4006
4042
|
"enum": [
|
|
@@ -103,6 +103,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
103
103
|
momentCoverage: IPuppetService_ImomentCoverage;
|
|
104
104
|
postPayload: IPuppetService_IpostPayload;
|
|
105
105
|
postPayloadSayable: IPuppetService_IpostPayloadSayable;
|
|
106
|
+
momentVisibleList: IPuppetService_IMomentVisibleList;
|
|
106
107
|
download: IPuppetService_IDownload;
|
|
107
108
|
upload: IPuppetService_IUpload;
|
|
108
109
|
}
|
|
@@ -818,6 +819,15 @@ interface IPuppetService_IpostPayloadSayable extends grpc.MethodDefinition<wecha
|
|
|
818
819
|
responseSerialize: grpc.serialize<wechaty_puppet_post_pb.PostPayloadSayableResponse>;
|
|
819
820
|
responseDeserialize: grpc.deserialize<wechaty_puppet_post_pb.PostPayloadSayableResponse>;
|
|
820
821
|
}
|
|
822
|
+
interface IPuppetService_IMomentVisibleList extends grpc.MethodDefinition<wechaty_puppet_moment_pb.MomentVisibleListRequest, wechaty_puppet_moment_pb.MomentVisibleListResponse> {
|
|
823
|
+
path: "/wechaty.Puppet/MomentVisibleList";
|
|
824
|
+
requestStream: false;
|
|
825
|
+
responseStream: false;
|
|
826
|
+
requestSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentVisibleListRequest>;
|
|
827
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentVisibleListRequest>;
|
|
828
|
+
responseSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentVisibleListResponse>;
|
|
829
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentVisibleListResponse>;
|
|
830
|
+
}
|
|
821
831
|
interface IPuppetService_IDownload extends grpc.MethodDefinition<wechaty_puppet_download_upload_pb.DownloadRequest, wechaty_puppet_download_upload_pb.DownloadResponse> {
|
|
822
832
|
path: "/wechaty.Puppet/Download";
|
|
823
833
|
requestStream: false;
|
|
@@ -919,6 +929,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
919
929
|
momentCoverage: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentCoverageRequest, wechaty_puppet_moment_pb.MomentCoverageResponse>;
|
|
920
930
|
postPayload: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostPayloadRequest, wechaty_puppet_post_pb.PostPayloadResponse>;
|
|
921
931
|
postPayloadSayable: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostPayloadSayableRequest, wechaty_puppet_post_pb.PostPayloadSayableResponse>;
|
|
932
|
+
momentVisibleList: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentVisibleListRequest, wechaty_puppet_moment_pb.MomentVisibleListResponse>;
|
|
922
933
|
download: grpc.handleServerStreamingCall<wechaty_puppet_download_upload_pb.DownloadRequest, wechaty_puppet_download_upload_pb.DownloadResponse>;
|
|
923
934
|
upload: grpc.handleClientStreamingCall<wechaty_puppet_download_upload_pb.UploadRequest, wechaty_puppet_download_upload_pb.UploadResponse>;
|
|
924
935
|
}
|
|
@@ -1159,6 +1170,9 @@ export interface IPuppetClient {
|
|
|
1159
1170
|
postPayloadSayable(request: wechaty_puppet_post_pb.PostPayloadSayableRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostPayloadSayableResponse) => void): grpc.ClientUnaryCall;
|
|
1160
1171
|
postPayloadSayable(request: wechaty_puppet_post_pb.PostPayloadSayableRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostPayloadSayableResponse) => void): grpc.ClientUnaryCall;
|
|
1161
1172
|
postPayloadSayable(request: wechaty_puppet_post_pb.PostPayloadSayableRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostPayloadSayableResponse) => void): grpc.ClientUnaryCall;
|
|
1173
|
+
momentVisibleList(request: wechaty_puppet_moment_pb.MomentVisibleListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentVisibleListResponse) => void): grpc.ClientUnaryCall;
|
|
1174
|
+
momentVisibleList(request: wechaty_puppet_moment_pb.MomentVisibleListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentVisibleListResponse) => void): grpc.ClientUnaryCall;
|
|
1175
|
+
momentVisibleList(request: wechaty_puppet_moment_pb.MomentVisibleListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentVisibleListResponse) => void): grpc.ClientUnaryCall;
|
|
1162
1176
|
download(request: wechaty_puppet_download_upload_pb.DownloadRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
|
|
1163
1177
|
download(request: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
|
|
1164
1178
|
upload(callback: (error: grpc.ServiceError | null, response: wechaty_puppet_download_upload_pb.UploadResponse) => void): grpc.ClientWritableStream<wechaty_puppet_download_upload_pb.UploadRequest>;
|
|
@@ -1404,6 +1418,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1404
1418
|
public postPayloadSayable(request: wechaty_puppet_post_pb.PostPayloadSayableRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostPayloadSayableResponse) => void): grpc.ClientUnaryCall;
|
|
1405
1419
|
public postPayloadSayable(request: wechaty_puppet_post_pb.PostPayloadSayableRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostPayloadSayableResponse) => void): grpc.ClientUnaryCall;
|
|
1406
1420
|
public postPayloadSayable(request: wechaty_puppet_post_pb.PostPayloadSayableRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostPayloadSayableResponse) => void): grpc.ClientUnaryCall;
|
|
1421
|
+
public momentVisibleList(request: wechaty_puppet_moment_pb.MomentVisibleListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentVisibleListResponse) => void): grpc.ClientUnaryCall;
|
|
1422
|
+
public momentVisibleList(request: wechaty_puppet_moment_pb.MomentVisibleListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentVisibleListResponse) => void): grpc.ClientUnaryCall;
|
|
1423
|
+
public momentVisibleList(request: wechaty_puppet_moment_pb.MomentVisibleListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentVisibleListResponse) => void): grpc.ClientUnaryCall;
|
|
1407
1424
|
public download(request: wechaty_puppet_download_upload_pb.DownloadRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
|
|
1408
1425
|
public download(request: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
|
|
1409
1426
|
public upload(callback: (error: grpc.ServiceError | null, response: wechaty_puppet_download_upload_pb.UploadResponse) => void): grpc.ClientWritableStream<wechaty_puppet_download_upload_pb.UploadRequest>;
|
|
@@ -1044,6 +1044,28 @@ function deserialize_wechaty_puppet_MomentSignatureResponse(buffer_arg) {
|
|
|
1044
1044
|
return wechaty_puppet_moment_pb.MomentSignatureResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
+
function serialize_wechaty_puppet_MomentVisibleListRequest(arg) {
|
|
1048
|
+
if (!(arg instanceof wechaty_puppet_moment_pb.MomentVisibleListRequest)) {
|
|
1049
|
+
throw new Error('Expected argument of type wechaty.puppet.MomentVisibleListRequest');
|
|
1050
|
+
}
|
|
1051
|
+
return Buffer.from(arg.serializeBinary());
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
function deserialize_wechaty_puppet_MomentVisibleListRequest(buffer_arg) {
|
|
1055
|
+
return wechaty_puppet_moment_pb.MomentVisibleListRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
function serialize_wechaty_puppet_MomentVisibleListResponse(arg) {
|
|
1059
|
+
if (!(arg instanceof wechaty_puppet_moment_pb.MomentVisibleListResponse)) {
|
|
1060
|
+
throw new Error('Expected argument of type wechaty.puppet.MomentVisibleListResponse');
|
|
1061
|
+
}
|
|
1062
|
+
return Buffer.from(arg.serializeBinary());
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
function deserialize_wechaty_puppet_MomentVisibleListResponse(buffer_arg) {
|
|
1066
|
+
return wechaty_puppet_moment_pb.MomentVisibleListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1047
1069
|
function serialize_wechaty_puppet_PostPayloadRequest(arg) {
|
|
1048
1070
|
if (!(arg instanceof wechaty_puppet_post_pb.PostPayloadRequest)) {
|
|
1049
1071
|
throw new Error('Expected argument of type wechaty.puppet.PostPayloadRequest');
|
|
@@ -2722,6 +2744,22 @@ momentPublish: {
|
|
|
2722
2744
|
responseDeserialize: deserialize_wechaty_puppet_PostPayloadSayableResponse,
|
|
2723
2745
|
},
|
|
2724
2746
|
// *
|
|
2747
|
+
//
|
|
2748
|
+
// Moment & Post With Correct Name
|
|
2749
|
+
//
|
|
2750
|
+
//
|
|
2751
|
+
momentVisibleList: {
|
|
2752
|
+
path: '/wechaty.Puppet/MomentVisibleList',
|
|
2753
|
+
requestStream: false,
|
|
2754
|
+
responseStream: false,
|
|
2755
|
+
requestType: wechaty_puppet_moment_pb.MomentVisibleListRequest,
|
|
2756
|
+
responseType: wechaty_puppet_moment_pb.MomentVisibleListResponse,
|
|
2757
|
+
requestSerialize: serialize_wechaty_puppet_MomentVisibleListRequest,
|
|
2758
|
+
requestDeserialize: deserialize_wechaty_puppet_MomentVisibleListRequest,
|
|
2759
|
+
responseSerialize: serialize_wechaty_puppet_MomentVisibleListResponse,
|
|
2760
|
+
responseDeserialize: deserialize_wechaty_puppet_MomentVisibleListResponse,
|
|
2761
|
+
},
|
|
2762
|
+
// *
|
|
2725
2763
|
// File/Blob download & upload
|
|
2726
2764
|
download: {
|
|
2727
2765
|
path: '/wechaty.Puppet/Download',
|
|
@@ -729,6 +729,15 @@ type PuppetpostPayloadSayable = {
|
|
|
729
729
|
readonly responseType: typeof wechaty_puppet_post_pb.PostPayloadSayableResponse;
|
|
730
730
|
};
|
|
731
731
|
|
|
732
|
+
type PuppetMomentVisibleList = {
|
|
733
|
+
readonly methodName: string;
|
|
734
|
+
readonly service: typeof Puppet;
|
|
735
|
+
readonly requestStream: false;
|
|
736
|
+
readonly responseStream: false;
|
|
737
|
+
readonly requestType: typeof wechaty_puppet_moment_pb.MomentVisibleListRequest;
|
|
738
|
+
readonly responseType: typeof wechaty_puppet_moment_pb.MomentVisibleListResponse;
|
|
739
|
+
};
|
|
740
|
+
|
|
732
741
|
type PuppetDownload = {
|
|
733
742
|
readonly methodName: string;
|
|
734
743
|
readonly service: typeof Puppet;
|
|
@@ -828,6 +837,7 @@ export class Puppet {
|
|
|
828
837
|
static readonly momentCoverage: PuppetmomentCoverage;
|
|
829
838
|
static readonly postPayload: PuppetpostPayload;
|
|
830
839
|
static readonly postPayloadSayable: PuppetpostPayloadSayable;
|
|
840
|
+
static readonly MomentVisibleList: PuppetMomentVisibleList;
|
|
831
841
|
static readonly Download: PuppetDownload;
|
|
832
842
|
static readonly Upload: PuppetUpload;
|
|
833
843
|
}
|
|
@@ -1543,6 +1553,15 @@ export class PuppetClient {
|
|
|
1543
1553
|
requestMessage: wechaty_puppet_post_pb.PostPayloadSayableRequest,
|
|
1544
1554
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadSayableResponse|null) => void
|
|
1545
1555
|
): UnaryResponse;
|
|
1556
|
+
momentVisibleList(
|
|
1557
|
+
requestMessage: wechaty_puppet_moment_pb.MomentVisibleListRequest,
|
|
1558
|
+
metadata: grpc.Metadata,
|
|
1559
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentVisibleListResponse|null) => void
|
|
1560
|
+
): UnaryResponse;
|
|
1561
|
+
momentVisibleList(
|
|
1562
|
+
requestMessage: wechaty_puppet_moment_pb.MomentVisibleListRequest,
|
|
1563
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentVisibleListResponse|null) => void
|
|
1564
|
+
): UnaryResponse;
|
|
1546
1565
|
download(requestMessage: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
|
|
1547
1566
|
upload(metadata?: grpc.Metadata): RequestStream<wechaty_puppet_download_upload_pb.UploadRequest>;
|
|
1548
1567
|
}
|
|
@@ -735,6 +735,15 @@ Puppet.postPayloadSayable = {
|
|
|
735
735
|
responseType: wechaty_puppet_post_pb.PostPayloadSayableResponse
|
|
736
736
|
};
|
|
737
737
|
|
|
738
|
+
Puppet.MomentVisibleList = {
|
|
739
|
+
methodName: "MomentVisibleList",
|
|
740
|
+
service: Puppet,
|
|
741
|
+
requestStream: false,
|
|
742
|
+
responseStream: false,
|
|
743
|
+
requestType: wechaty_puppet_moment_pb.MomentVisibleListRequest,
|
|
744
|
+
responseType: wechaty_puppet_moment_pb.MomentVisibleListResponse
|
|
745
|
+
};
|
|
746
|
+
|
|
738
747
|
Puppet.Download = {
|
|
739
748
|
methodName: "Download",
|
|
740
749
|
service: Puppet,
|
|
@@ -3243,6 +3252,37 @@ PuppetClient.prototype.postPayloadSayable = function postPayloadSayable(requestM
|
|
|
3243
3252
|
};
|
|
3244
3253
|
};
|
|
3245
3254
|
|
|
3255
|
+
PuppetClient.prototype.momentVisibleList = function momentVisibleList(requestMessage, metadata, callback) {
|
|
3256
|
+
if (arguments.length === 2) {
|
|
3257
|
+
callback = arguments[1];
|
|
3258
|
+
}
|
|
3259
|
+
var client = grpc.unary(Puppet.MomentVisibleList, {
|
|
3260
|
+
request: requestMessage,
|
|
3261
|
+
host: this.serviceHost,
|
|
3262
|
+
metadata: metadata,
|
|
3263
|
+
transport: this.options.transport,
|
|
3264
|
+
debug: this.options.debug,
|
|
3265
|
+
onEnd: function (response) {
|
|
3266
|
+
if (callback) {
|
|
3267
|
+
if (response.status !== grpc.Code.OK) {
|
|
3268
|
+
var err = new Error(response.statusMessage);
|
|
3269
|
+
err.code = response.status;
|
|
3270
|
+
err.metadata = response.trailers;
|
|
3271
|
+
callback(err, null);
|
|
3272
|
+
} else {
|
|
3273
|
+
callback(null, response.message);
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
});
|
|
3278
|
+
return {
|
|
3279
|
+
cancel: function () {
|
|
3280
|
+
callback = null;
|
|
3281
|
+
client.close();
|
|
3282
|
+
}
|
|
3283
|
+
};
|
|
3284
|
+
};
|
|
3285
|
+
|
|
3246
3286
|
PuppetClient.prototype.download = function download(requestMessage, metadata) {
|
|
3247
3287
|
var listeners = {
|
|
3248
3288
|
data: [],
|
|
@@ -62,6 +62,8 @@ message MessagePayloadResponse {
|
|
|
62
62
|
repeated string mention_ids = 9; // 群消息@人的id列表
|
|
63
63
|
google.protobuf.Timestamp receive_time = 10; // 收到消息时间
|
|
64
64
|
optional string quote_id = 11; // 被引用的消息id
|
|
65
|
+
|
|
66
|
+
optional string additional_info = 12;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
message MessageImageRequest {
|
|
@@ -635,6 +635,20 @@ service Puppet {
|
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* Moment & Post With Correct Name
|
|
642
|
+
*
|
|
643
|
+
*/
|
|
644
|
+
|
|
645
|
+
rpc MomentVisibleList (puppet.MomentVisibleListRequest) returns (puppet.MomentVisibleListResponse) {
|
|
646
|
+
option (google.api.http) = {
|
|
647
|
+
get: "/moment/visibleList"
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
|
|
638
652
|
/**
|
|
639
653
|
* File/Blob download & upload
|
|
640
654
|
*/
|