@juzi/wechaty-grpc 1.0.93 → 1.0.95
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/out/wechaty/puppet/channel-card_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
- package/dist/cjs/out/wechaty/puppet/channel-card_pb.js +320 -0
- package/dist/cjs/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/channel-card_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +56 -2
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +1708 -1025
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +85 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +130 -4
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/channel-card.proto +15 -0
- package/dist/cjs/proto/wechaty/puppet/chat-history.proto +3 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +39 -23
- package/dist/cjs/proto/wechaty/puppet.proto +11 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/channel-card_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
- package/dist/esm/out/wechaty/puppet/channel-card_pb.js +320 -0
- package/dist/esm/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/channel-card_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb.js +56 -2
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +1708 -1025
- package/dist/esm/out/wechaty/puppet.openapi.yaml +85 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +130 -4
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/channel-card.proto +15 -0
- package/dist/esm/proto/wechaty/puppet/chat-history.proto +3 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +39 -23
- package/dist/esm/proto/wechaty/puppet.proto +11 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/channel-card_grpc_pb.js +1 -0
- package/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
- package/out/wechaty/puppet/channel-card_pb.js +320 -0
- package/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/channel-card_pb_service.js +3 -0
- package/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
- package/out/wechaty/puppet/chat-history_pb.js +56 -2
- package/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/out/wechaty/puppet/message_pb.js +1708 -1025
- package/out/wechaty/puppet.openapi.yaml +85 -1
- package/out/wechaty/puppet.swagger.json +130 -4
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -403,6 +403,15 @@ Puppet.MessageChannel = {
|
|
|
403
403
|
responseType: wechaty_puppet_message_pb.MessageChannelResponse
|
|
404
404
|
};
|
|
405
405
|
|
|
406
|
+
Puppet.MessageChannelCard = {
|
|
407
|
+
methodName: "MessageChannelCard",
|
|
408
|
+
service: Puppet,
|
|
409
|
+
requestStream: false,
|
|
410
|
+
responseStream: false,
|
|
411
|
+
requestType: wechaty_puppet_message_pb.MessageChannelCardRequest,
|
|
412
|
+
responseType: wechaty_puppet_message_pb.MessageChannelCardResponse
|
|
413
|
+
};
|
|
414
|
+
|
|
406
415
|
Puppet.MessageCallRecord = {
|
|
407
416
|
methodName: "MessageCallRecord",
|
|
408
417
|
service: Puppet,
|
|
@@ -502,6 +511,15 @@ Puppet.MessageSendChannel = {
|
|
|
502
511
|
responseType: wechaty_puppet_message_pb.MessageSendChannelResponse
|
|
503
512
|
};
|
|
504
513
|
|
|
514
|
+
Puppet.MessageSendChannelCard = {
|
|
515
|
+
methodName: "MessageSendChannelCard",
|
|
516
|
+
service: Puppet,
|
|
517
|
+
requestStream: false,
|
|
518
|
+
responseStream: false,
|
|
519
|
+
requestType: wechaty_puppet_message_pb.MessageSendChannelCardRequest,
|
|
520
|
+
responseType: wechaty_puppet_message_pb.MessageSendChannelCardResponse
|
|
521
|
+
};
|
|
522
|
+
|
|
505
523
|
Puppet.MessageSendPost = {
|
|
506
524
|
methodName: "MessageSendPost",
|
|
507
525
|
service: Puppet,
|
|
@@ -2332,6 +2350,37 @@ PuppetClient.prototype.messageChannel = function messageChannel(requestMessage,
|
|
|
2332
2350
|
};
|
|
2333
2351
|
};
|
|
2334
2352
|
|
|
2353
|
+
PuppetClient.prototype.messageChannelCard = function messageChannelCard(requestMessage, metadata, callback) {
|
|
2354
|
+
if (arguments.length === 2) {
|
|
2355
|
+
callback = arguments[1];
|
|
2356
|
+
}
|
|
2357
|
+
var client = grpc.unary(Puppet.MessageChannelCard, {
|
|
2358
|
+
request: requestMessage,
|
|
2359
|
+
host: this.serviceHost,
|
|
2360
|
+
metadata: metadata,
|
|
2361
|
+
transport: this.options.transport,
|
|
2362
|
+
debug: this.options.debug,
|
|
2363
|
+
onEnd: function (response) {
|
|
2364
|
+
if (callback) {
|
|
2365
|
+
if (response.status !== grpc.Code.OK) {
|
|
2366
|
+
var err = new Error(response.statusMessage);
|
|
2367
|
+
err.code = response.status;
|
|
2368
|
+
err.metadata = response.trailers;
|
|
2369
|
+
callback(err, null);
|
|
2370
|
+
} else {
|
|
2371
|
+
callback(null, response.message);
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
});
|
|
2376
|
+
return {
|
|
2377
|
+
cancel: function () {
|
|
2378
|
+
callback = null;
|
|
2379
|
+
client.close();
|
|
2380
|
+
}
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2383
|
+
|
|
2335
2384
|
PuppetClient.prototype.messageCallRecord = function messageCallRecord(requestMessage, metadata, callback) {
|
|
2336
2385
|
if (arguments.length === 2) {
|
|
2337
2386
|
callback = arguments[1];
|
|
@@ -2673,6 +2722,37 @@ PuppetClient.prototype.messageSendChannel = function messageSendChannel(requestM
|
|
|
2673
2722
|
};
|
|
2674
2723
|
};
|
|
2675
2724
|
|
|
2725
|
+
PuppetClient.prototype.messageSendChannelCard = function messageSendChannelCard(requestMessage, metadata, callback) {
|
|
2726
|
+
if (arguments.length === 2) {
|
|
2727
|
+
callback = arguments[1];
|
|
2728
|
+
}
|
|
2729
|
+
var client = grpc.unary(Puppet.MessageSendChannelCard, {
|
|
2730
|
+
request: requestMessage,
|
|
2731
|
+
host: this.serviceHost,
|
|
2732
|
+
metadata: metadata,
|
|
2733
|
+
transport: this.options.transport,
|
|
2734
|
+
debug: this.options.debug,
|
|
2735
|
+
onEnd: function (response) {
|
|
2736
|
+
if (callback) {
|
|
2737
|
+
if (response.status !== grpc.Code.OK) {
|
|
2738
|
+
var err = new Error(response.statusMessage);
|
|
2739
|
+
err.code = response.status;
|
|
2740
|
+
err.metadata = response.trailers;
|
|
2741
|
+
callback(err, null);
|
|
2742
|
+
} else {
|
|
2743
|
+
callback(null, response.message);
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
});
|
|
2748
|
+
return {
|
|
2749
|
+
cancel: function () {
|
|
2750
|
+
callback = null;
|
|
2751
|
+
client.close();
|
|
2752
|
+
}
|
|
2753
|
+
};
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2676
2756
|
PuppetClient.prototype.messageSendPost = function messageSendPost(requestMessage, metadata, callback) {
|
|
2677
2757
|
if (arguments.length === 2) {
|
|
2678
2758
|
callback = arguments[1];
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED