@juzi/wechaty-grpc 1.0.52 → 1.0.54
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/wechaty/puppet/event_pb.d.ts +12 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +91 -2
- package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +37 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +55 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -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/event.proto +5 -1
- package/dist/cjs/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -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.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +5 -4
- package/dist/cjs/src/package-json.js.map +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/wechaty/puppet/event_pb.d.ts +12 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +91 -2
- package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/moment_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +37 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +55 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -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/event.proto +5 -1
- package/dist/esm/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -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.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +5 -4
- package/dist/esm/src/package-json.js.map +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/wechaty/puppet/event_pb.d.ts +12 -0
- package/out/wechaty/puppet/event_pb.js +91 -2
- package/out/wechaty/puppet/moment_pb.d.ts +36 -0
- package/out/wechaty/puppet/moment_pb.js +275 -0
- package/out/wechaty/puppet.openapi.yaml +37 -1
- package/out/wechaty/puppet.swagger.json +55 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +33 -0
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +5 -4
- package/src/package-json.ts +5 -4
|
@@ -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.MomentUnpublishRequest', null, global);
|
|
27
|
+
goog.exportSymbol('proto.wechaty.puppet.MomentUnpublishResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.MomentVisibleListRequest', null, global);
|
|
27
29
|
goog.exportSymbol('proto.wechaty.puppet.MomentVisibleListResponse', null, global);
|
|
28
30
|
/**
|
|
@@ -193,6 +195,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
193
195
|
*/
|
|
194
196
|
proto.wechaty.puppet.MomentVisibleListResponse.displayName = 'proto.wechaty.puppet.MomentVisibleListResponse';
|
|
195
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Generated by JsPbCodeGenerator.
|
|
200
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
201
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
202
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
203
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
204
|
+
* valid.
|
|
205
|
+
* @extends {jspb.Message}
|
|
206
|
+
* @constructor
|
|
207
|
+
*/
|
|
208
|
+
proto.wechaty.puppet.MomentUnpublishRequest = function(opt_data) {
|
|
209
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
210
|
+
};
|
|
211
|
+
goog.inherits(proto.wechaty.puppet.MomentUnpublishRequest, jspb.Message);
|
|
212
|
+
if (goog.DEBUG && !COMPILED) {
|
|
213
|
+
/**
|
|
214
|
+
* @public
|
|
215
|
+
* @override
|
|
216
|
+
*/
|
|
217
|
+
proto.wechaty.puppet.MomentUnpublishRequest.displayName = 'proto.wechaty.puppet.MomentUnpublishRequest';
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Generated by JsPbCodeGenerator.
|
|
221
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
222
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
223
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
224
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
225
|
+
* valid.
|
|
226
|
+
* @extends {jspb.Message}
|
|
227
|
+
* @constructor
|
|
228
|
+
*/
|
|
229
|
+
proto.wechaty.puppet.MomentUnpublishResponse = function(opt_data) {
|
|
230
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
231
|
+
};
|
|
232
|
+
goog.inherits(proto.wechaty.puppet.MomentUnpublishResponse, jspb.Message);
|
|
233
|
+
if (goog.DEBUG && !COMPILED) {
|
|
234
|
+
/**
|
|
235
|
+
* @public
|
|
236
|
+
* @override
|
|
237
|
+
*/
|
|
238
|
+
proto.wechaty.puppet.MomentUnpublishResponse.displayName = 'proto.wechaty.puppet.MomentUnpublishResponse';
|
|
239
|
+
}
|
|
196
240
|
|
|
197
241
|
|
|
198
242
|
|
|
@@ -1251,4 +1295,235 @@ proto.wechaty.puppet.MomentVisibleListResponse.prototype.clearContactIdsList = f
|
|
|
1251
1295
|
};
|
|
1252
1296
|
|
|
1253
1297
|
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1302
|
+
/**
|
|
1303
|
+
* Creates an object representation of this proto.
|
|
1304
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1305
|
+
* Optional fields that are not set will be set to undefined.
|
|
1306
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1307
|
+
* For the list of reserved names please see:
|
|
1308
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1309
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1310
|
+
* JSPB instance for transitional soy proto support:
|
|
1311
|
+
* http://goto/soy-param-migration
|
|
1312
|
+
* @return {!Object}
|
|
1313
|
+
*/
|
|
1314
|
+
proto.wechaty.puppet.MomentUnpublishRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1315
|
+
return proto.wechaty.puppet.MomentUnpublishRequest.toObject(opt_includeInstance, this);
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Static version of the {@see toObject} method.
|
|
1321
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1322
|
+
* the JSPB instance for transitional soy proto support:
|
|
1323
|
+
* http://goto/soy-param-migration
|
|
1324
|
+
* @param {!proto.wechaty.puppet.MomentUnpublishRequest} msg The msg instance to transform.
|
|
1325
|
+
* @return {!Object}
|
|
1326
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1327
|
+
*/
|
|
1328
|
+
proto.wechaty.puppet.MomentUnpublishRequest.toObject = function(includeInstance, msg) {
|
|
1329
|
+
var f, obj = {
|
|
1330
|
+
momentId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
if (includeInstance) {
|
|
1334
|
+
obj.$jspbMessageInstance = msg;
|
|
1335
|
+
}
|
|
1336
|
+
return obj;
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1343
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1344
|
+
* @return {!proto.wechaty.puppet.MomentUnpublishRequest}
|
|
1345
|
+
*/
|
|
1346
|
+
proto.wechaty.puppet.MomentUnpublishRequest.deserializeBinary = function(bytes) {
|
|
1347
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1348
|
+
var msg = new proto.wechaty.puppet.MomentUnpublishRequest;
|
|
1349
|
+
return proto.wechaty.puppet.MomentUnpublishRequest.deserializeBinaryFromReader(msg, reader);
|
|
1350
|
+
};
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1355
|
+
* given reader into the given message object.
|
|
1356
|
+
* @param {!proto.wechaty.puppet.MomentUnpublishRequest} msg The message object to deserialize into.
|
|
1357
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1358
|
+
* @return {!proto.wechaty.puppet.MomentUnpublishRequest}
|
|
1359
|
+
*/
|
|
1360
|
+
proto.wechaty.puppet.MomentUnpublishRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1361
|
+
while (reader.nextField()) {
|
|
1362
|
+
if (reader.isEndGroup()) {
|
|
1363
|
+
break;
|
|
1364
|
+
}
|
|
1365
|
+
var field = reader.getFieldNumber();
|
|
1366
|
+
switch (field) {
|
|
1367
|
+
case 1:
|
|
1368
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1369
|
+
msg.setMomentId(value);
|
|
1370
|
+
break;
|
|
1371
|
+
default:
|
|
1372
|
+
reader.skipField();
|
|
1373
|
+
break;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
return msg;
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1382
|
+
* @return {!Uint8Array}
|
|
1383
|
+
*/
|
|
1384
|
+
proto.wechaty.puppet.MomentUnpublishRequest.prototype.serializeBinary = function() {
|
|
1385
|
+
var writer = new jspb.BinaryWriter();
|
|
1386
|
+
proto.wechaty.puppet.MomentUnpublishRequest.serializeBinaryToWriter(this, writer);
|
|
1387
|
+
return writer.getResultBuffer();
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1393
|
+
* format), writing to the given BinaryWriter.
|
|
1394
|
+
* @param {!proto.wechaty.puppet.MomentUnpublishRequest} message
|
|
1395
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1396
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1397
|
+
*/
|
|
1398
|
+
proto.wechaty.puppet.MomentUnpublishRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1399
|
+
var f = undefined;
|
|
1400
|
+
f = message.getMomentId();
|
|
1401
|
+
if (f.length > 0) {
|
|
1402
|
+
writer.writeString(
|
|
1403
|
+
1,
|
|
1404
|
+
f
|
|
1405
|
+
);
|
|
1406
|
+
}
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* optional string moment_id = 1;
|
|
1412
|
+
* @return {string}
|
|
1413
|
+
*/
|
|
1414
|
+
proto.wechaty.puppet.MomentUnpublishRequest.prototype.getMomentId = function() {
|
|
1415
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* @param {string} value
|
|
1421
|
+
* @return {!proto.wechaty.puppet.MomentUnpublishRequest} returns this
|
|
1422
|
+
*/
|
|
1423
|
+
proto.wechaty.puppet.MomentUnpublishRequest.prototype.setMomentId = function(value) {
|
|
1424
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1432
|
+
/**
|
|
1433
|
+
* Creates an object representation of this proto.
|
|
1434
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1435
|
+
* Optional fields that are not set will be set to undefined.
|
|
1436
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1437
|
+
* For the list of reserved names please see:
|
|
1438
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1439
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1440
|
+
* JSPB instance for transitional soy proto support:
|
|
1441
|
+
* http://goto/soy-param-migration
|
|
1442
|
+
* @return {!Object}
|
|
1443
|
+
*/
|
|
1444
|
+
proto.wechaty.puppet.MomentUnpublishResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1445
|
+
return proto.wechaty.puppet.MomentUnpublishResponse.toObject(opt_includeInstance, this);
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Static version of the {@see toObject} method.
|
|
1451
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1452
|
+
* the JSPB instance for transitional soy proto support:
|
|
1453
|
+
* http://goto/soy-param-migration
|
|
1454
|
+
* @param {!proto.wechaty.puppet.MomentUnpublishResponse} msg The msg instance to transform.
|
|
1455
|
+
* @return {!Object}
|
|
1456
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1457
|
+
*/
|
|
1458
|
+
proto.wechaty.puppet.MomentUnpublishResponse.toObject = function(includeInstance, msg) {
|
|
1459
|
+
var f, obj = {
|
|
1460
|
+
|
|
1461
|
+
};
|
|
1462
|
+
|
|
1463
|
+
if (includeInstance) {
|
|
1464
|
+
obj.$jspbMessageInstance = msg;
|
|
1465
|
+
}
|
|
1466
|
+
return obj;
|
|
1467
|
+
};
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1473
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1474
|
+
* @return {!proto.wechaty.puppet.MomentUnpublishResponse}
|
|
1475
|
+
*/
|
|
1476
|
+
proto.wechaty.puppet.MomentUnpublishResponse.deserializeBinary = function(bytes) {
|
|
1477
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1478
|
+
var msg = new proto.wechaty.puppet.MomentUnpublishResponse;
|
|
1479
|
+
return proto.wechaty.puppet.MomentUnpublishResponse.deserializeBinaryFromReader(msg, reader);
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1485
|
+
* given reader into the given message object.
|
|
1486
|
+
* @param {!proto.wechaty.puppet.MomentUnpublishResponse} msg The message object to deserialize into.
|
|
1487
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1488
|
+
* @return {!proto.wechaty.puppet.MomentUnpublishResponse}
|
|
1489
|
+
*/
|
|
1490
|
+
proto.wechaty.puppet.MomentUnpublishResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1491
|
+
while (reader.nextField()) {
|
|
1492
|
+
if (reader.isEndGroup()) {
|
|
1493
|
+
break;
|
|
1494
|
+
}
|
|
1495
|
+
var field = reader.getFieldNumber();
|
|
1496
|
+
switch (field) {
|
|
1497
|
+
default:
|
|
1498
|
+
reader.skipField();
|
|
1499
|
+
break;
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
return msg;
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1508
|
+
* @return {!Uint8Array}
|
|
1509
|
+
*/
|
|
1510
|
+
proto.wechaty.puppet.MomentUnpublishResponse.prototype.serializeBinary = function() {
|
|
1511
|
+
var writer = new jspb.BinaryWriter();
|
|
1512
|
+
proto.wechaty.puppet.MomentUnpublishResponse.serializeBinaryToWriter(this, writer);
|
|
1513
|
+
return writer.getResultBuffer();
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1519
|
+
* format), writing to the given BinaryWriter.
|
|
1520
|
+
* @param {!proto.wechaty.puppet.MomentUnpublishResponse} message
|
|
1521
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1522
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1523
|
+
*/
|
|
1524
|
+
proto.wechaty.puppet.MomentUnpublishResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1525
|
+
var f = undefined;
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1528
|
+
|
|
1254
1529
|
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.54
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -774,6 +774,18 @@ paths:
|
|
|
774
774
|
description: An unexpected error response.
|
|
775
775
|
schema:
|
|
776
776
|
$ref: '#/definitions/rpcStatus'
|
|
777
|
+
parameters:
|
|
778
|
+
- name: seq
|
|
779
|
+
description: the seq of the last event
|
|
780
|
+
in: query
|
|
781
|
+
required: false
|
|
782
|
+
type: integer
|
|
783
|
+
format: int32
|
|
784
|
+
- name: accountId
|
|
785
|
+
description: the accountId of the last event
|
|
786
|
+
in: query
|
|
787
|
+
required: false
|
|
788
|
+
type: string
|
|
777
789
|
tags:
|
|
778
790
|
- Puppet
|
|
779
791
|
'/friendship/accept/{id}':
|
|
@@ -1303,6 +1315,25 @@ paths:
|
|
|
1303
1315
|
$ref: '#/definitions/rpcStatus'
|
|
1304
1316
|
tags:
|
|
1305
1317
|
- Puppet
|
|
1318
|
+
'/moment/{momentId}':
|
|
1319
|
+
delete:
|
|
1320
|
+
operationId: Puppet_MomentUnpublish
|
|
1321
|
+
responses:
|
|
1322
|
+
'200':
|
|
1323
|
+
description: A successful response.
|
|
1324
|
+
schema:
|
|
1325
|
+
$ref: '#/definitions/puppetMomentUnpublishResponse'
|
|
1326
|
+
default:
|
|
1327
|
+
description: An unexpected error response.
|
|
1328
|
+
schema:
|
|
1329
|
+
$ref: '#/definitions/rpcStatus'
|
|
1330
|
+
parameters:
|
|
1331
|
+
- name: momentId
|
|
1332
|
+
in: path
|
|
1333
|
+
required: true
|
|
1334
|
+
type: string
|
|
1335
|
+
tags:
|
|
1336
|
+
- Puppet
|
|
1306
1337
|
/post/like:
|
|
1307
1338
|
post:
|
|
1308
1339
|
operationId: Puppet_postTap
|
|
@@ -2477,6 +2508,9 @@ definitions:
|
|
|
2477
2508
|
type: string
|
|
2478
2509
|
description: 'JSON.stringify({ ... })'
|
|
2479
2510
|
title: 'TODO: Huan(202002) consider to use a PB Map?'
|
|
2511
|
+
seq:
|
|
2512
|
+
type: integer
|
|
2513
|
+
format: int32
|
|
2480
2514
|
puppetEventType:
|
|
2481
2515
|
type: string
|
|
2482
2516
|
enum:
|
|
@@ -2993,6 +3027,8 @@ definitions:
|
|
|
2993
3027
|
properties:
|
|
2994
3028
|
text:
|
|
2995
3029
|
type: string
|
|
3030
|
+
puppetMomentUnpublishResponse:
|
|
3031
|
+
type: object
|
|
2996
3032
|
puppetMomentVisibleListResponse:
|
|
2997
3033
|
type: object
|
|
2998
3034
|
properties:
|
|
@@ -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.54",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -1134,6 +1134,23 @@
|
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
},
|
|
1137
|
+
"parameters": [
|
|
1138
|
+
{
|
|
1139
|
+
"name": "seq",
|
|
1140
|
+
"description": "the seq of the last event",
|
|
1141
|
+
"in": "query",
|
|
1142
|
+
"required": false,
|
|
1143
|
+
"type": "integer",
|
|
1144
|
+
"format": "int32"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "accountId",
|
|
1148
|
+
"description": "the accountId of the last event",
|
|
1149
|
+
"in": "query",
|
|
1150
|
+
"required": false,
|
|
1151
|
+
"type": "string"
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1137
1154
|
"tags": [
|
|
1138
1155
|
"Puppet"
|
|
1139
1156
|
]
|
|
@@ -1927,6 +1944,36 @@
|
|
|
1927
1944
|
]
|
|
1928
1945
|
}
|
|
1929
1946
|
},
|
|
1947
|
+
"/moment/{momentId}": {
|
|
1948
|
+
"delete": {
|
|
1949
|
+
"operationId": "Puppet_MomentUnpublish",
|
|
1950
|
+
"responses": {
|
|
1951
|
+
"200": {
|
|
1952
|
+
"description": "A successful response.",
|
|
1953
|
+
"schema": {
|
|
1954
|
+
"$ref": "#/definitions/puppetMomentUnpublishResponse"
|
|
1955
|
+
}
|
|
1956
|
+
},
|
|
1957
|
+
"default": {
|
|
1958
|
+
"description": "An unexpected error response.",
|
|
1959
|
+
"schema": {
|
|
1960
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
},
|
|
1964
|
+
"parameters": [
|
|
1965
|
+
{
|
|
1966
|
+
"name": "momentId",
|
|
1967
|
+
"in": "path",
|
|
1968
|
+
"required": true,
|
|
1969
|
+
"type": "string"
|
|
1970
|
+
}
|
|
1971
|
+
],
|
|
1972
|
+
"tags": [
|
|
1973
|
+
"Puppet"
|
|
1974
|
+
]
|
|
1975
|
+
}
|
|
1976
|
+
},
|
|
1930
1977
|
"/post/like": {
|
|
1931
1978
|
"post": {
|
|
1932
1979
|
"operationId": "Puppet_postTap",
|
|
@@ -3639,6 +3686,10 @@
|
|
|
3639
3686
|
"type": "string",
|
|
3640
3687
|
"description": "JSON.stringify({ ... })",
|
|
3641
3688
|
"title": "TODO: Huan(202002) consider to use a PB Map?"
|
|
3689
|
+
},
|
|
3690
|
+
"seq": {
|
|
3691
|
+
"type": "integer",
|
|
3692
|
+
"format": "int32"
|
|
3642
3693
|
}
|
|
3643
3694
|
}
|
|
3644
3695
|
},
|
|
@@ -4232,6 +4283,9 @@
|
|
|
4232
4283
|
}
|
|
4233
4284
|
}
|
|
4234
4285
|
},
|
|
4286
|
+
"puppetMomentUnpublishResponse": {
|
|
4287
|
+
"type": "object"
|
|
4288
|
+
},
|
|
4235
4289
|
"puppetMomentVisibleListResponse": {
|
|
4236
4290
|
"type": "object",
|
|
4237
4291
|
"properties": {
|
|
@@ -100,6 +100,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
100
100
|
tagContactTagList: IPuppetService_ITagContactTagList;
|
|
101
101
|
tagTagContactList: IPuppetService_ITagTagContactList;
|
|
102
102
|
momentPublish: IPuppetService_ImomentPublish;
|
|
103
|
+
momentUnpublish: IPuppetService_IMomentUnpublish;
|
|
103
104
|
postTap: IPuppetService_IpostTap;
|
|
104
105
|
momentSignature: IPuppetService_ImomentSignature;
|
|
105
106
|
momentCoverage: IPuppetService_ImomentCoverage;
|
|
@@ -803,6 +804,15 @@ interface IPuppetService_ImomentPublish extends grpc.MethodDefinition<wechaty_pu
|
|
|
803
804
|
responseSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
804
805
|
responseDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
805
806
|
}
|
|
807
|
+
interface IPuppetService_IMomentUnpublish extends grpc.MethodDefinition<wechaty_puppet_moment_pb.MomentUnpublishRequest, wechaty_puppet_moment_pb.MomentUnpublishResponse> {
|
|
808
|
+
path: "/wechaty.Puppet/MomentUnpublish";
|
|
809
|
+
requestStream: false;
|
|
810
|
+
responseStream: false;
|
|
811
|
+
requestSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentUnpublishRequest>;
|
|
812
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentUnpublishRequest>;
|
|
813
|
+
responseSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentUnpublishResponse>;
|
|
814
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentUnpublishResponse>;
|
|
815
|
+
}
|
|
806
816
|
interface IPuppetService_IpostTap extends grpc.MethodDefinition<wechaty_puppet_post_pb.PostTapRequest, wechaty_puppet_post_pb.PostTapResponse> {
|
|
807
817
|
path: "/wechaty.Puppet/postTap";
|
|
808
818
|
requestStream: false;
|
|
@@ -956,6 +966,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
956
966
|
tagContactTagList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagContactTagListRequest, wechaty_puppet_tag_pb.TagContactTagListResponse>;
|
|
957
967
|
tagTagContactList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagContactListRequest, wechaty_puppet_tag_pb.TagTagContactListResponse>;
|
|
958
968
|
momentPublish: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentPublishRequest, wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
969
|
+
momentUnpublish: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentUnpublishRequest, wechaty_puppet_moment_pb.MomentUnpublishResponse>;
|
|
959
970
|
postTap: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostTapRequest, wechaty_puppet_post_pb.PostTapResponse>;
|
|
960
971
|
momentSignature: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentSignatureRequest, wechaty_puppet_moment_pb.MomentSignatureResponse>;
|
|
961
972
|
momentCoverage: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentCoverageRequest, wechaty_puppet_moment_pb.MomentCoverageResponse>;
|
|
@@ -1197,6 +1208,9 @@ export interface IPuppetClient {
|
|
|
1197
1208
|
momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1198
1209
|
momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1199
1210
|
momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1211
|
+
momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1212
|
+
momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1213
|
+
momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1200
1214
|
postTap(request: wechaty_puppet_post_pb.PostTapRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1201
1215
|
postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1202
1216
|
postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1455,6 +1469,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1455
1469
|
public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1456
1470
|
public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1457
1471
|
public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1472
|
+
public momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1473
|
+
public momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1474
|
+
public momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1458
1475
|
public postTap(request: wechaty_puppet_post_pb.PostTapRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1459
1476
|
public postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1460
1477
|
public postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1087,6 +1087,28 @@ function deserialize_wechaty_puppet_MomentSignatureResponse(buffer_arg) {
|
|
|
1087
1087
|
return wechaty_puppet_moment_pb.MomentSignatureResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
+
function serialize_wechaty_puppet_MomentUnpublishRequest(arg) {
|
|
1091
|
+
if (!(arg instanceof wechaty_puppet_moment_pb.MomentUnpublishRequest)) {
|
|
1092
|
+
throw new Error('Expected argument of type wechaty.puppet.MomentUnpublishRequest');
|
|
1093
|
+
}
|
|
1094
|
+
return Buffer.from(arg.serializeBinary());
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
function deserialize_wechaty_puppet_MomentUnpublishRequest(buffer_arg) {
|
|
1098
|
+
return wechaty_puppet_moment_pb.MomentUnpublishRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
function serialize_wechaty_puppet_MomentUnpublishResponse(arg) {
|
|
1102
|
+
if (!(arg instanceof wechaty_puppet_moment_pb.MomentUnpublishResponse)) {
|
|
1103
|
+
throw new Error('Expected argument of type wechaty.puppet.MomentUnpublishResponse');
|
|
1104
|
+
}
|
|
1105
|
+
return Buffer.from(arg.serializeBinary());
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
function deserialize_wechaty_puppet_MomentUnpublishResponse(buffer_arg) {
|
|
1109
|
+
return wechaty_puppet_moment_pb.MomentUnpublishResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1090
1112
|
function serialize_wechaty_puppet_MomentVisibleListRequest(arg) {
|
|
1091
1113
|
if (!(arg instanceof wechaty_puppet_moment_pb.MomentVisibleListRequest)) {
|
|
1092
1114
|
throw new Error('Expected argument of type wechaty.puppet.MomentVisibleListRequest');
|
|
@@ -2784,6 +2806,17 @@ momentPublish: {
|
|
|
2784
2806
|
responseSerialize: serialize_wechaty_puppet_MomentPublishResponse,
|
|
2785
2807
|
responseDeserialize: deserialize_wechaty_puppet_MomentPublishResponse,
|
|
2786
2808
|
},
|
|
2809
|
+
momentUnpublish: {
|
|
2810
|
+
path: '/wechaty.Puppet/MomentUnpublish',
|
|
2811
|
+
requestStream: false,
|
|
2812
|
+
responseStream: false,
|
|
2813
|
+
requestType: wechaty_puppet_moment_pb.MomentUnpublishRequest,
|
|
2814
|
+
responseType: wechaty_puppet_moment_pb.MomentUnpublishResponse,
|
|
2815
|
+
requestSerialize: serialize_wechaty_puppet_MomentUnpublishRequest,
|
|
2816
|
+
requestDeserialize: deserialize_wechaty_puppet_MomentUnpublishRequest,
|
|
2817
|
+
responseSerialize: serialize_wechaty_puppet_MomentUnpublishResponse,
|
|
2818
|
+
responseDeserialize: deserialize_wechaty_puppet_MomentUnpublishResponse,
|
|
2819
|
+
},
|
|
2787
2820
|
postTap: {
|
|
2788
2821
|
path: '/wechaty.Puppet/postTap',
|
|
2789
2822
|
requestStream: false,
|
|
@@ -710,6 +710,15 @@ type PuppetmomentPublish = {
|
|
|
710
710
|
readonly responseType: typeof wechaty_puppet_moment_pb.MomentPublishResponse;
|
|
711
711
|
};
|
|
712
712
|
|
|
713
|
+
type PuppetMomentUnpublish = {
|
|
714
|
+
readonly methodName: string;
|
|
715
|
+
readonly service: typeof Puppet;
|
|
716
|
+
readonly requestStream: false;
|
|
717
|
+
readonly responseStream: false;
|
|
718
|
+
readonly requestType: typeof wechaty_puppet_moment_pb.MomentUnpublishRequest;
|
|
719
|
+
readonly responseType: typeof wechaty_puppet_moment_pb.MomentUnpublishResponse;
|
|
720
|
+
};
|
|
721
|
+
|
|
713
722
|
type PuppetpostTap = {
|
|
714
723
|
readonly methodName: string;
|
|
715
724
|
readonly service: typeof Puppet;
|
|
@@ -861,6 +870,7 @@ export class Puppet {
|
|
|
861
870
|
static readonly TagContactTagList: PuppetTagContactTagList;
|
|
862
871
|
static readonly TagTagContactList: PuppetTagTagContactList;
|
|
863
872
|
static readonly momentPublish: PuppetmomentPublish;
|
|
873
|
+
static readonly MomentUnpublish: PuppetMomentUnpublish;
|
|
864
874
|
static readonly postTap: PuppetpostTap;
|
|
865
875
|
static readonly momentSignature: PuppetmomentSignature;
|
|
866
876
|
static readonly momentCoverage: PuppetmomentCoverage;
|
|
@@ -1588,6 +1598,15 @@ export class PuppetClient {
|
|
|
1588
1598
|
requestMessage: wechaty_puppet_moment_pb.MomentPublishRequest,
|
|
1589
1599
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentPublishResponse|null) => void
|
|
1590
1600
|
): UnaryResponse;
|
|
1601
|
+
momentUnpublish(
|
|
1602
|
+
requestMessage: wechaty_puppet_moment_pb.MomentUnpublishRequest,
|
|
1603
|
+
metadata: grpc.Metadata,
|
|
1604
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentUnpublishResponse|null) => void
|
|
1605
|
+
): UnaryResponse;
|
|
1606
|
+
momentUnpublish(
|
|
1607
|
+
requestMessage: wechaty_puppet_moment_pb.MomentUnpublishRequest,
|
|
1608
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentUnpublishResponse|null) => void
|
|
1609
|
+
): UnaryResponse;
|
|
1591
1610
|
postTap(
|
|
1592
1611
|
requestMessage: wechaty_puppet_post_pb.PostTapRequest,
|
|
1593
1612
|
metadata: grpc.Metadata,
|
|
@@ -716,6 +716,15 @@ Puppet.momentPublish = {
|
|
|
716
716
|
responseType: wechaty_puppet_moment_pb.MomentPublishResponse
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
+
Puppet.MomentUnpublish = {
|
|
720
|
+
methodName: "MomentUnpublish",
|
|
721
|
+
service: Puppet,
|
|
722
|
+
requestStream: false,
|
|
723
|
+
responseStream: false,
|
|
724
|
+
requestType: wechaty_puppet_moment_pb.MomentUnpublishRequest,
|
|
725
|
+
responseType: wechaty_puppet_moment_pb.MomentUnpublishResponse
|
|
726
|
+
};
|
|
727
|
+
|
|
719
728
|
Puppet.postTap = {
|
|
720
729
|
methodName: "postTap",
|
|
721
730
|
service: Puppet,
|
|
@@ -3190,6 +3199,37 @@ PuppetClient.prototype.momentPublish = function momentPublish(requestMessage, me
|
|
|
3190
3199
|
};
|
|
3191
3200
|
};
|
|
3192
3201
|
|
|
3202
|
+
PuppetClient.prototype.momentUnpublish = function momentUnpublish(requestMessage, metadata, callback) {
|
|
3203
|
+
if (arguments.length === 2) {
|
|
3204
|
+
callback = arguments[1];
|
|
3205
|
+
}
|
|
3206
|
+
var client = grpc.unary(Puppet.MomentUnpublish, {
|
|
3207
|
+
request: requestMessage,
|
|
3208
|
+
host: this.serviceHost,
|
|
3209
|
+
metadata: metadata,
|
|
3210
|
+
transport: this.options.transport,
|
|
3211
|
+
debug: this.options.debug,
|
|
3212
|
+
onEnd: function (response) {
|
|
3213
|
+
if (callback) {
|
|
3214
|
+
if (response.status !== grpc.Code.OK) {
|
|
3215
|
+
var err = new Error(response.statusMessage);
|
|
3216
|
+
err.code = response.status;
|
|
3217
|
+
err.metadata = response.trailers;
|
|
3218
|
+
callback(err, null);
|
|
3219
|
+
} else {
|
|
3220
|
+
callback(null, response.message);
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
});
|
|
3225
|
+
return {
|
|
3226
|
+
cancel: function () {
|
|
3227
|
+
callback = null;
|
|
3228
|
+
client.close();
|
|
3229
|
+
}
|
|
3230
|
+
};
|
|
3231
|
+
};
|
|
3232
|
+
|
|
3193
3233
|
PuppetClient.prototype.postTap = function postTap(requestMessage, metadata, callback) {
|
|
3194
3234
|
if (arguments.length === 2) {
|
|
3195
3235
|
callback = arguments[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juzi/wechaty-grpc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"description": "gRPC for Wechaty",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -58,7 +58,8 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@grpc/grpc-js": "^1.3.7",
|
|
60
60
|
"google-protobuf": "^3.18.0",
|
|
61
|
-
"stronger-typed-streams": "^0.2.0"
|
|
61
|
+
"stronger-typed-streams": "^0.2.0",
|
|
62
|
+
"typescript": "^4.7.3"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@chatie/eslint-config": "^0.14.1",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"@types/google-protobuf": "^3.15.5",
|
|
68
69
|
"@types/protobufjs": "^6.0.0",
|
|
69
70
|
"cross-env": "^7.0.3",
|
|
71
|
+
"esquery": "1.4.0",
|
|
70
72
|
"grpc_tools_node_protoc_ts": "^5.3.2",
|
|
71
73
|
"grpc-tools": "^1.11.2",
|
|
72
74
|
"grpcc": "^1.1.3",
|
|
@@ -75,8 +77,7 @@
|
|
|
75
77
|
"request": "^2.88.2",
|
|
76
78
|
"shx": "^0.3.3",
|
|
77
79
|
"ts-protoc-gen": "^0.15.0",
|
|
78
|
-
"tstest": "^0.7.3"
|
|
79
|
-
"esquery": "1.4.0"
|
|
80
|
+
"tstest": "^0.7.3"
|
|
80
81
|
},
|
|
81
82
|
"files": [
|
|
82
83
|
"bin/",
|