@juzi/wechaty-grpc 1.0.99 → 1.0.101
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/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +4 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +31 -1
- package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +790 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +8111 -1783
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +442 -5
- package/dist/cjs/out/wechaty/puppet.swagger.json +688 -6
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +153 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +297 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +171 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +360 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +127 -0
- package/dist/cjs/proto/wechaty/puppet.proto +54 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/src/package-json.js.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +45 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +4 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +31 -1
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +790 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +8111 -1783
- package/dist/esm/out/wechaty/puppet.openapi.yaml +442 -5
- package/dist/esm/out/wechaty/puppet.swagger.json +688 -6
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +153 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +297 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +171 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +360 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +127 -0
- package/dist/esm/proto/wechaty/puppet.proto +54 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/src/package-json.js.map +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +45 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +4 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +31 -1
- package/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/out/wechaty/puppet/event_pb.js +2 -1
- package/out/wechaty/puppet/message_pb.d.ts +790 -0
- package/out/wechaty/puppet/message_pb.js +8111 -1783
- package/out/wechaty/puppet.openapi.yaml +442 -5
- package/out/wechaty/puppet.swagger.json +688 -6
- package/out/wechaty/puppet_grpc_pb.d.ts +153 -0
- package/out/wechaty/puppet_grpc_pb.js +297 -0
- package/out/wechaty/puppet_pb_service.d.ts +171 -0
- package/out/wechaty/puppet_pb_service.js +360 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -469,6 +469,87 @@ type PuppetMessageSendText = {
|
|
|
469
469
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageSendTextResponse;
|
|
470
470
|
};
|
|
471
471
|
|
|
472
|
+
type PuppetMessageBatchSendText = {
|
|
473
|
+
readonly methodName: string;
|
|
474
|
+
readonly service: typeof Puppet;
|
|
475
|
+
readonly requestStream: false;
|
|
476
|
+
readonly responseStream: false;
|
|
477
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchSendTextRequest;
|
|
478
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchSendTextResponse;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
type PuppetMessageBatchSendFile = {
|
|
482
|
+
readonly methodName: string;
|
|
483
|
+
readonly service: typeof Puppet;
|
|
484
|
+
readonly requestStream: false;
|
|
485
|
+
readonly responseStream: false;
|
|
486
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchSendFileRequest;
|
|
487
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchSendFileResponse;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
type PuppetMessageBatchForward = {
|
|
491
|
+
readonly methodName: string;
|
|
492
|
+
readonly service: typeof Puppet;
|
|
493
|
+
readonly requestStream: false;
|
|
494
|
+
readonly responseStream: false;
|
|
495
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchForwardRequest;
|
|
496
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchForwardResponse;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
type PuppetMessageBatchSendContact = {
|
|
500
|
+
readonly methodName: string;
|
|
501
|
+
readonly service: typeof Puppet;
|
|
502
|
+
readonly requestStream: false;
|
|
503
|
+
readonly responseStream: false;
|
|
504
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchSendContactRequest;
|
|
505
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchSendContactResponse;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
type PuppetMessageBatchSendUrl = {
|
|
509
|
+
readonly methodName: string;
|
|
510
|
+
readonly service: typeof Puppet;
|
|
511
|
+
readonly requestStream: false;
|
|
512
|
+
readonly responseStream: false;
|
|
513
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchSendUrlRequest;
|
|
514
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchSendUrlResponse;
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
type PuppetMessageBatchSendMiniProgram = {
|
|
518
|
+
readonly methodName: string;
|
|
519
|
+
readonly service: typeof Puppet;
|
|
520
|
+
readonly requestStream: false;
|
|
521
|
+
readonly responseStream: false;
|
|
522
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchSendMiniProgramRequest;
|
|
523
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchSendMiniProgramResponse;
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
type PuppetMessageBatchSendLocation = {
|
|
527
|
+
readonly methodName: string;
|
|
528
|
+
readonly service: typeof Puppet;
|
|
529
|
+
readonly requestStream: false;
|
|
530
|
+
readonly responseStream: false;
|
|
531
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchSendLocationRequest;
|
|
532
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchSendLocationResponse;
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
type PuppetMessageBatchSendChannel = {
|
|
536
|
+
readonly methodName: string;
|
|
537
|
+
readonly service: typeof Puppet;
|
|
538
|
+
readonly requestStream: false;
|
|
539
|
+
readonly responseStream: false;
|
|
540
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchSendChannelRequest;
|
|
541
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchSendChannelResponse;
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
type PuppetMessageBatchSendChannelCard = {
|
|
545
|
+
readonly methodName: string;
|
|
546
|
+
readonly service: typeof Puppet;
|
|
547
|
+
readonly requestStream: false;
|
|
548
|
+
readonly responseStream: false;
|
|
549
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageBatchSendChannelCardRequest;
|
|
550
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageBatchSendChannelCardResponse;
|
|
551
|
+
};
|
|
552
|
+
|
|
472
553
|
type PuppetMessageSendMiniProgram = {
|
|
473
554
|
readonly methodName: string;
|
|
474
555
|
readonly service: typeof Puppet;
|
|
@@ -1097,6 +1178,15 @@ export class Puppet {
|
|
|
1097
1178
|
static readonly MessageLocation: PuppetMessageLocation;
|
|
1098
1179
|
static readonly MessageSendContact: PuppetMessageSendContact;
|
|
1099
1180
|
static readonly MessageSendText: PuppetMessageSendText;
|
|
1181
|
+
static readonly MessageBatchSendText: PuppetMessageBatchSendText;
|
|
1182
|
+
static readonly MessageBatchSendFile: PuppetMessageBatchSendFile;
|
|
1183
|
+
static readonly MessageBatchForward: PuppetMessageBatchForward;
|
|
1184
|
+
static readonly MessageBatchSendContact: PuppetMessageBatchSendContact;
|
|
1185
|
+
static readonly MessageBatchSendUrl: PuppetMessageBatchSendUrl;
|
|
1186
|
+
static readonly MessageBatchSendMiniProgram: PuppetMessageBatchSendMiniProgram;
|
|
1187
|
+
static readonly MessageBatchSendLocation: PuppetMessageBatchSendLocation;
|
|
1188
|
+
static readonly MessageBatchSendChannel: PuppetMessageBatchSendChannel;
|
|
1189
|
+
static readonly MessageBatchSendChannelCard: PuppetMessageBatchSendChannelCard;
|
|
1100
1190
|
static readonly MessageSendMiniProgram: PuppetMessageSendMiniProgram;
|
|
1101
1191
|
static readonly MessageSendUrl: PuppetMessageSendUrl;
|
|
1102
1192
|
static readonly MessageSendLocation: PuppetMessageSendLocation;
|
|
@@ -1637,6 +1727,87 @@ export class PuppetClient {
|
|
|
1637
1727
|
requestMessage: wechaty_puppet_message_pb.MessageSendTextRequest,
|
|
1638
1728
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendTextResponse|null) => void
|
|
1639
1729
|
): UnaryResponse;
|
|
1730
|
+
messageBatchSendText(
|
|
1731
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendTextRequest,
|
|
1732
|
+
metadata: grpc.Metadata,
|
|
1733
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendTextResponse|null) => void
|
|
1734
|
+
): UnaryResponse;
|
|
1735
|
+
messageBatchSendText(
|
|
1736
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendTextRequest,
|
|
1737
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendTextResponse|null) => void
|
|
1738
|
+
): UnaryResponse;
|
|
1739
|
+
messageBatchSendFile(
|
|
1740
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendFileRequest,
|
|
1741
|
+
metadata: grpc.Metadata,
|
|
1742
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendFileResponse|null) => void
|
|
1743
|
+
): UnaryResponse;
|
|
1744
|
+
messageBatchSendFile(
|
|
1745
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendFileRequest,
|
|
1746
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendFileResponse|null) => void
|
|
1747
|
+
): UnaryResponse;
|
|
1748
|
+
messageBatchForward(
|
|
1749
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchForwardRequest,
|
|
1750
|
+
metadata: grpc.Metadata,
|
|
1751
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchForwardResponse|null) => void
|
|
1752
|
+
): UnaryResponse;
|
|
1753
|
+
messageBatchForward(
|
|
1754
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchForwardRequest,
|
|
1755
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchForwardResponse|null) => void
|
|
1756
|
+
): UnaryResponse;
|
|
1757
|
+
messageBatchSendContact(
|
|
1758
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendContactRequest,
|
|
1759
|
+
metadata: grpc.Metadata,
|
|
1760
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendContactResponse|null) => void
|
|
1761
|
+
): UnaryResponse;
|
|
1762
|
+
messageBatchSendContact(
|
|
1763
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendContactRequest,
|
|
1764
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendContactResponse|null) => void
|
|
1765
|
+
): UnaryResponse;
|
|
1766
|
+
messageBatchSendUrl(
|
|
1767
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendUrlRequest,
|
|
1768
|
+
metadata: grpc.Metadata,
|
|
1769
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendUrlResponse|null) => void
|
|
1770
|
+
): UnaryResponse;
|
|
1771
|
+
messageBatchSendUrl(
|
|
1772
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendUrlRequest,
|
|
1773
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendUrlResponse|null) => void
|
|
1774
|
+
): UnaryResponse;
|
|
1775
|
+
messageBatchSendMiniProgram(
|
|
1776
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendMiniProgramRequest,
|
|
1777
|
+
metadata: grpc.Metadata,
|
|
1778
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendMiniProgramResponse|null) => void
|
|
1779
|
+
): UnaryResponse;
|
|
1780
|
+
messageBatchSendMiniProgram(
|
|
1781
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendMiniProgramRequest,
|
|
1782
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendMiniProgramResponse|null) => void
|
|
1783
|
+
): UnaryResponse;
|
|
1784
|
+
messageBatchSendLocation(
|
|
1785
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendLocationRequest,
|
|
1786
|
+
metadata: grpc.Metadata,
|
|
1787
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendLocationResponse|null) => void
|
|
1788
|
+
): UnaryResponse;
|
|
1789
|
+
messageBatchSendLocation(
|
|
1790
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendLocationRequest,
|
|
1791
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendLocationResponse|null) => void
|
|
1792
|
+
): UnaryResponse;
|
|
1793
|
+
messageBatchSendChannel(
|
|
1794
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendChannelRequest,
|
|
1795
|
+
metadata: grpc.Metadata,
|
|
1796
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendChannelResponse|null) => void
|
|
1797
|
+
): UnaryResponse;
|
|
1798
|
+
messageBatchSendChannel(
|
|
1799
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendChannelRequest,
|
|
1800
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendChannelResponse|null) => void
|
|
1801
|
+
): UnaryResponse;
|
|
1802
|
+
messageBatchSendChannelCard(
|
|
1803
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendChannelCardRequest,
|
|
1804
|
+
metadata: grpc.Metadata,
|
|
1805
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendChannelCardResponse|null) => void
|
|
1806
|
+
): UnaryResponse;
|
|
1807
|
+
messageBatchSendChannelCard(
|
|
1808
|
+
requestMessage: wechaty_puppet_message_pb.MessageBatchSendChannelCardRequest,
|
|
1809
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageBatchSendChannelCardResponse|null) => void
|
|
1810
|
+
): UnaryResponse;
|
|
1640
1811
|
messageSendMiniProgram(
|
|
1641
1812
|
requestMessage: wechaty_puppet_message_pb.MessageSendMiniProgramRequest,
|
|
1642
1813
|
metadata: grpc.Metadata,
|
|
@@ -475,6 +475,87 @@ Puppet.MessageSendText = {
|
|
|
475
475
|
responseType: wechaty_puppet_message_pb.MessageSendTextResponse
|
|
476
476
|
};
|
|
477
477
|
|
|
478
|
+
Puppet.MessageBatchSendText = {
|
|
479
|
+
methodName: "MessageBatchSendText",
|
|
480
|
+
service: Puppet,
|
|
481
|
+
requestStream: false,
|
|
482
|
+
responseStream: false,
|
|
483
|
+
requestType: wechaty_puppet_message_pb.MessageBatchSendTextRequest,
|
|
484
|
+
responseType: wechaty_puppet_message_pb.MessageBatchSendTextResponse
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
Puppet.MessageBatchSendFile = {
|
|
488
|
+
methodName: "MessageBatchSendFile",
|
|
489
|
+
service: Puppet,
|
|
490
|
+
requestStream: false,
|
|
491
|
+
responseStream: false,
|
|
492
|
+
requestType: wechaty_puppet_message_pb.MessageBatchSendFileRequest,
|
|
493
|
+
responseType: wechaty_puppet_message_pb.MessageBatchSendFileResponse
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
Puppet.MessageBatchForward = {
|
|
497
|
+
methodName: "MessageBatchForward",
|
|
498
|
+
service: Puppet,
|
|
499
|
+
requestStream: false,
|
|
500
|
+
responseStream: false,
|
|
501
|
+
requestType: wechaty_puppet_message_pb.MessageBatchForwardRequest,
|
|
502
|
+
responseType: wechaty_puppet_message_pb.MessageBatchForwardResponse
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
Puppet.MessageBatchSendContact = {
|
|
506
|
+
methodName: "MessageBatchSendContact",
|
|
507
|
+
service: Puppet,
|
|
508
|
+
requestStream: false,
|
|
509
|
+
responseStream: false,
|
|
510
|
+
requestType: wechaty_puppet_message_pb.MessageBatchSendContactRequest,
|
|
511
|
+
responseType: wechaty_puppet_message_pb.MessageBatchSendContactResponse
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
Puppet.MessageBatchSendUrl = {
|
|
515
|
+
methodName: "MessageBatchSendUrl",
|
|
516
|
+
service: Puppet,
|
|
517
|
+
requestStream: false,
|
|
518
|
+
responseStream: false,
|
|
519
|
+
requestType: wechaty_puppet_message_pb.MessageBatchSendUrlRequest,
|
|
520
|
+
responseType: wechaty_puppet_message_pb.MessageBatchSendUrlResponse
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
Puppet.MessageBatchSendMiniProgram = {
|
|
524
|
+
methodName: "MessageBatchSendMiniProgram",
|
|
525
|
+
service: Puppet,
|
|
526
|
+
requestStream: false,
|
|
527
|
+
responseStream: false,
|
|
528
|
+
requestType: wechaty_puppet_message_pb.MessageBatchSendMiniProgramRequest,
|
|
529
|
+
responseType: wechaty_puppet_message_pb.MessageBatchSendMiniProgramResponse
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
Puppet.MessageBatchSendLocation = {
|
|
533
|
+
methodName: "MessageBatchSendLocation",
|
|
534
|
+
service: Puppet,
|
|
535
|
+
requestStream: false,
|
|
536
|
+
responseStream: false,
|
|
537
|
+
requestType: wechaty_puppet_message_pb.MessageBatchSendLocationRequest,
|
|
538
|
+
responseType: wechaty_puppet_message_pb.MessageBatchSendLocationResponse
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
Puppet.MessageBatchSendChannel = {
|
|
542
|
+
methodName: "MessageBatchSendChannel",
|
|
543
|
+
service: Puppet,
|
|
544
|
+
requestStream: false,
|
|
545
|
+
responseStream: false,
|
|
546
|
+
requestType: wechaty_puppet_message_pb.MessageBatchSendChannelRequest,
|
|
547
|
+
responseType: wechaty_puppet_message_pb.MessageBatchSendChannelResponse
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
Puppet.MessageBatchSendChannelCard = {
|
|
551
|
+
methodName: "MessageBatchSendChannelCard",
|
|
552
|
+
service: Puppet,
|
|
553
|
+
requestStream: false,
|
|
554
|
+
responseStream: false,
|
|
555
|
+
requestType: wechaty_puppet_message_pb.MessageBatchSendChannelCardRequest,
|
|
556
|
+
responseType: wechaty_puppet_message_pb.MessageBatchSendChannelCardResponse
|
|
557
|
+
};
|
|
558
|
+
|
|
478
559
|
Puppet.MessageSendMiniProgram = {
|
|
479
560
|
methodName: "MessageSendMiniProgram",
|
|
480
561
|
service: Puppet,
|
|
@@ -2616,6 +2697,285 @@ PuppetClient.prototype.messageSendText = function messageSendText(requestMessage
|
|
|
2616
2697
|
};
|
|
2617
2698
|
};
|
|
2618
2699
|
|
|
2700
|
+
PuppetClient.prototype.messageBatchSendText = function messageBatchSendText(requestMessage, metadata, callback) {
|
|
2701
|
+
if (arguments.length === 2) {
|
|
2702
|
+
callback = arguments[1];
|
|
2703
|
+
}
|
|
2704
|
+
var client = grpc.unary(Puppet.MessageBatchSendText, {
|
|
2705
|
+
request: requestMessage,
|
|
2706
|
+
host: this.serviceHost,
|
|
2707
|
+
metadata: metadata,
|
|
2708
|
+
transport: this.options.transport,
|
|
2709
|
+
debug: this.options.debug,
|
|
2710
|
+
onEnd: function (response) {
|
|
2711
|
+
if (callback) {
|
|
2712
|
+
if (response.status !== grpc.Code.OK) {
|
|
2713
|
+
var err = new Error(response.statusMessage);
|
|
2714
|
+
err.code = response.status;
|
|
2715
|
+
err.metadata = response.trailers;
|
|
2716
|
+
callback(err, null);
|
|
2717
|
+
} else {
|
|
2718
|
+
callback(null, response.message);
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
});
|
|
2723
|
+
return {
|
|
2724
|
+
cancel: function () {
|
|
2725
|
+
callback = null;
|
|
2726
|
+
client.close();
|
|
2727
|
+
}
|
|
2728
|
+
};
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
PuppetClient.prototype.messageBatchSendFile = function messageBatchSendFile(requestMessage, metadata, callback) {
|
|
2732
|
+
if (arguments.length === 2) {
|
|
2733
|
+
callback = arguments[1];
|
|
2734
|
+
}
|
|
2735
|
+
var client = grpc.unary(Puppet.MessageBatchSendFile, {
|
|
2736
|
+
request: requestMessage,
|
|
2737
|
+
host: this.serviceHost,
|
|
2738
|
+
metadata: metadata,
|
|
2739
|
+
transport: this.options.transport,
|
|
2740
|
+
debug: this.options.debug,
|
|
2741
|
+
onEnd: function (response) {
|
|
2742
|
+
if (callback) {
|
|
2743
|
+
if (response.status !== grpc.Code.OK) {
|
|
2744
|
+
var err = new Error(response.statusMessage);
|
|
2745
|
+
err.code = response.status;
|
|
2746
|
+
err.metadata = response.trailers;
|
|
2747
|
+
callback(err, null);
|
|
2748
|
+
} else {
|
|
2749
|
+
callback(null, response.message);
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
});
|
|
2754
|
+
return {
|
|
2755
|
+
cancel: function () {
|
|
2756
|
+
callback = null;
|
|
2757
|
+
client.close();
|
|
2758
|
+
}
|
|
2759
|
+
};
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
PuppetClient.prototype.messageBatchForward = function messageBatchForward(requestMessage, metadata, callback) {
|
|
2763
|
+
if (arguments.length === 2) {
|
|
2764
|
+
callback = arguments[1];
|
|
2765
|
+
}
|
|
2766
|
+
var client = grpc.unary(Puppet.MessageBatchForward, {
|
|
2767
|
+
request: requestMessage,
|
|
2768
|
+
host: this.serviceHost,
|
|
2769
|
+
metadata: metadata,
|
|
2770
|
+
transport: this.options.transport,
|
|
2771
|
+
debug: this.options.debug,
|
|
2772
|
+
onEnd: function (response) {
|
|
2773
|
+
if (callback) {
|
|
2774
|
+
if (response.status !== grpc.Code.OK) {
|
|
2775
|
+
var err = new Error(response.statusMessage);
|
|
2776
|
+
err.code = response.status;
|
|
2777
|
+
err.metadata = response.trailers;
|
|
2778
|
+
callback(err, null);
|
|
2779
|
+
} else {
|
|
2780
|
+
callback(null, response.message);
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
});
|
|
2785
|
+
return {
|
|
2786
|
+
cancel: function () {
|
|
2787
|
+
callback = null;
|
|
2788
|
+
client.close();
|
|
2789
|
+
}
|
|
2790
|
+
};
|
|
2791
|
+
};
|
|
2792
|
+
|
|
2793
|
+
PuppetClient.prototype.messageBatchSendContact = function messageBatchSendContact(requestMessage, metadata, callback) {
|
|
2794
|
+
if (arguments.length === 2) {
|
|
2795
|
+
callback = arguments[1];
|
|
2796
|
+
}
|
|
2797
|
+
var client = grpc.unary(Puppet.MessageBatchSendContact, {
|
|
2798
|
+
request: requestMessage,
|
|
2799
|
+
host: this.serviceHost,
|
|
2800
|
+
metadata: metadata,
|
|
2801
|
+
transport: this.options.transport,
|
|
2802
|
+
debug: this.options.debug,
|
|
2803
|
+
onEnd: function (response) {
|
|
2804
|
+
if (callback) {
|
|
2805
|
+
if (response.status !== grpc.Code.OK) {
|
|
2806
|
+
var err = new Error(response.statusMessage);
|
|
2807
|
+
err.code = response.status;
|
|
2808
|
+
err.metadata = response.trailers;
|
|
2809
|
+
callback(err, null);
|
|
2810
|
+
} else {
|
|
2811
|
+
callback(null, response.message);
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
});
|
|
2816
|
+
return {
|
|
2817
|
+
cancel: function () {
|
|
2818
|
+
callback = null;
|
|
2819
|
+
client.close();
|
|
2820
|
+
}
|
|
2821
|
+
};
|
|
2822
|
+
};
|
|
2823
|
+
|
|
2824
|
+
PuppetClient.prototype.messageBatchSendUrl = function messageBatchSendUrl(requestMessage, metadata, callback) {
|
|
2825
|
+
if (arguments.length === 2) {
|
|
2826
|
+
callback = arguments[1];
|
|
2827
|
+
}
|
|
2828
|
+
var client = grpc.unary(Puppet.MessageBatchSendUrl, {
|
|
2829
|
+
request: requestMessage,
|
|
2830
|
+
host: this.serviceHost,
|
|
2831
|
+
metadata: metadata,
|
|
2832
|
+
transport: this.options.transport,
|
|
2833
|
+
debug: this.options.debug,
|
|
2834
|
+
onEnd: function (response) {
|
|
2835
|
+
if (callback) {
|
|
2836
|
+
if (response.status !== grpc.Code.OK) {
|
|
2837
|
+
var err = new Error(response.statusMessage);
|
|
2838
|
+
err.code = response.status;
|
|
2839
|
+
err.metadata = response.trailers;
|
|
2840
|
+
callback(err, null);
|
|
2841
|
+
} else {
|
|
2842
|
+
callback(null, response.message);
|
|
2843
|
+
}
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2846
|
+
});
|
|
2847
|
+
return {
|
|
2848
|
+
cancel: function () {
|
|
2849
|
+
callback = null;
|
|
2850
|
+
client.close();
|
|
2851
|
+
}
|
|
2852
|
+
};
|
|
2853
|
+
};
|
|
2854
|
+
|
|
2855
|
+
PuppetClient.prototype.messageBatchSendMiniProgram = function messageBatchSendMiniProgram(requestMessage, metadata, callback) {
|
|
2856
|
+
if (arguments.length === 2) {
|
|
2857
|
+
callback = arguments[1];
|
|
2858
|
+
}
|
|
2859
|
+
var client = grpc.unary(Puppet.MessageBatchSendMiniProgram, {
|
|
2860
|
+
request: requestMessage,
|
|
2861
|
+
host: this.serviceHost,
|
|
2862
|
+
metadata: metadata,
|
|
2863
|
+
transport: this.options.transport,
|
|
2864
|
+
debug: this.options.debug,
|
|
2865
|
+
onEnd: function (response) {
|
|
2866
|
+
if (callback) {
|
|
2867
|
+
if (response.status !== grpc.Code.OK) {
|
|
2868
|
+
var err = new Error(response.statusMessage);
|
|
2869
|
+
err.code = response.status;
|
|
2870
|
+
err.metadata = response.trailers;
|
|
2871
|
+
callback(err, null);
|
|
2872
|
+
} else {
|
|
2873
|
+
callback(null, response.message);
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
});
|
|
2878
|
+
return {
|
|
2879
|
+
cancel: function () {
|
|
2880
|
+
callback = null;
|
|
2881
|
+
client.close();
|
|
2882
|
+
}
|
|
2883
|
+
};
|
|
2884
|
+
};
|
|
2885
|
+
|
|
2886
|
+
PuppetClient.prototype.messageBatchSendLocation = function messageBatchSendLocation(requestMessage, metadata, callback) {
|
|
2887
|
+
if (arguments.length === 2) {
|
|
2888
|
+
callback = arguments[1];
|
|
2889
|
+
}
|
|
2890
|
+
var client = grpc.unary(Puppet.MessageBatchSendLocation, {
|
|
2891
|
+
request: requestMessage,
|
|
2892
|
+
host: this.serviceHost,
|
|
2893
|
+
metadata: metadata,
|
|
2894
|
+
transport: this.options.transport,
|
|
2895
|
+
debug: this.options.debug,
|
|
2896
|
+
onEnd: function (response) {
|
|
2897
|
+
if (callback) {
|
|
2898
|
+
if (response.status !== grpc.Code.OK) {
|
|
2899
|
+
var err = new Error(response.statusMessage);
|
|
2900
|
+
err.code = response.status;
|
|
2901
|
+
err.metadata = response.trailers;
|
|
2902
|
+
callback(err, null);
|
|
2903
|
+
} else {
|
|
2904
|
+
callback(null, response.message);
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2908
|
+
});
|
|
2909
|
+
return {
|
|
2910
|
+
cancel: function () {
|
|
2911
|
+
callback = null;
|
|
2912
|
+
client.close();
|
|
2913
|
+
}
|
|
2914
|
+
};
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2917
|
+
PuppetClient.prototype.messageBatchSendChannel = function messageBatchSendChannel(requestMessage, metadata, callback) {
|
|
2918
|
+
if (arguments.length === 2) {
|
|
2919
|
+
callback = arguments[1];
|
|
2920
|
+
}
|
|
2921
|
+
var client = grpc.unary(Puppet.MessageBatchSendChannel, {
|
|
2922
|
+
request: requestMessage,
|
|
2923
|
+
host: this.serviceHost,
|
|
2924
|
+
metadata: metadata,
|
|
2925
|
+
transport: this.options.transport,
|
|
2926
|
+
debug: this.options.debug,
|
|
2927
|
+
onEnd: function (response) {
|
|
2928
|
+
if (callback) {
|
|
2929
|
+
if (response.status !== grpc.Code.OK) {
|
|
2930
|
+
var err = new Error(response.statusMessage);
|
|
2931
|
+
err.code = response.status;
|
|
2932
|
+
err.metadata = response.trailers;
|
|
2933
|
+
callback(err, null);
|
|
2934
|
+
} else {
|
|
2935
|
+
callback(null, response.message);
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
});
|
|
2940
|
+
return {
|
|
2941
|
+
cancel: function () {
|
|
2942
|
+
callback = null;
|
|
2943
|
+
client.close();
|
|
2944
|
+
}
|
|
2945
|
+
};
|
|
2946
|
+
};
|
|
2947
|
+
|
|
2948
|
+
PuppetClient.prototype.messageBatchSendChannelCard = function messageBatchSendChannelCard(requestMessage, metadata, callback) {
|
|
2949
|
+
if (arguments.length === 2) {
|
|
2950
|
+
callback = arguments[1];
|
|
2951
|
+
}
|
|
2952
|
+
var client = grpc.unary(Puppet.MessageBatchSendChannelCard, {
|
|
2953
|
+
request: requestMessage,
|
|
2954
|
+
host: this.serviceHost,
|
|
2955
|
+
metadata: metadata,
|
|
2956
|
+
transport: this.options.transport,
|
|
2957
|
+
debug: this.options.debug,
|
|
2958
|
+
onEnd: function (response) {
|
|
2959
|
+
if (callback) {
|
|
2960
|
+
if (response.status !== grpc.Code.OK) {
|
|
2961
|
+
var err = new Error(response.statusMessage);
|
|
2962
|
+
err.code = response.status;
|
|
2963
|
+
err.metadata = response.trailers;
|
|
2964
|
+
callback(err, null);
|
|
2965
|
+
} else {
|
|
2966
|
+
callback(null, response.message);
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
});
|
|
2971
|
+
return {
|
|
2972
|
+
cancel: function () {
|
|
2973
|
+
callback = null;
|
|
2974
|
+
client.close();
|
|
2975
|
+
}
|
|
2976
|
+
};
|
|
2977
|
+
};
|
|
2978
|
+
|
|
2619
2979
|
PuppetClient.prototype.messageSendMiniProgram = function messageSendMiniProgram(requestMessage, metadata, callback) {
|
|
2620
2980
|
if (arguments.length === 2) {
|
|
2621
2981
|
callback = arguments[1];
|
|
@@ -209,6 +209,133 @@ message MessageSendTextResponse {
|
|
|
209
209
|
string id = 2;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
message MessageBatchSendTextRequest {
|
|
213
|
+
repeated string conversation_ids = 1;
|
|
214
|
+
string text = 2;
|
|
215
|
+
optional string batch_task_id = 3;
|
|
216
|
+
}
|
|
217
|
+
message MessageBatchSendTextResponse {
|
|
218
|
+
message Result {
|
|
219
|
+
string conversation_id = 1;
|
|
220
|
+
optional string id = 2;
|
|
221
|
+
optional string error = 3;
|
|
222
|
+
}
|
|
223
|
+
repeated Result results = 1;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
message MessageBatchSendFileRequest {
|
|
227
|
+
repeated string conversation_ids = 1;
|
|
228
|
+
string file_box = 2;
|
|
229
|
+
optional string batch_task_id = 3;
|
|
230
|
+
}
|
|
231
|
+
message MessageBatchSendFileResponse {
|
|
232
|
+
message Result {
|
|
233
|
+
string conversation_id = 1;
|
|
234
|
+
optional string id = 2;
|
|
235
|
+
optional string error = 3;
|
|
236
|
+
}
|
|
237
|
+
repeated Result results = 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message MessageBatchForwardRequest {
|
|
241
|
+
repeated string conversation_ids = 1;
|
|
242
|
+
string message_id = 2 [deprecated = true];
|
|
243
|
+
repeated string message_ids = 3;
|
|
244
|
+
optional string batch_task_id = 4;
|
|
245
|
+
}
|
|
246
|
+
message MessageBatchForwardResponse {
|
|
247
|
+
message Result {
|
|
248
|
+
string conversation_id = 1;
|
|
249
|
+
optional string id = 2;
|
|
250
|
+
optional string error = 3;
|
|
251
|
+
}
|
|
252
|
+
repeated Result results = 1;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
message MessageBatchSendContactRequest {
|
|
256
|
+
repeated string conversation_ids = 1;
|
|
257
|
+
string contact_id = 2;
|
|
258
|
+
optional string batch_task_id = 3;
|
|
259
|
+
}
|
|
260
|
+
message MessageBatchSendContactResponse {
|
|
261
|
+
message Result {
|
|
262
|
+
string conversation_id = 1;
|
|
263
|
+
optional string id = 2;
|
|
264
|
+
optional string error = 3;
|
|
265
|
+
}
|
|
266
|
+
repeated Result results = 1;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
message MessageBatchSendUrlRequest {
|
|
270
|
+
repeated string conversation_ids = 1;
|
|
271
|
+
UrlLinkPayload url_link = 2;
|
|
272
|
+
optional string batch_task_id = 3;
|
|
273
|
+
}
|
|
274
|
+
message MessageBatchSendUrlResponse {
|
|
275
|
+
message Result {
|
|
276
|
+
string conversation_id = 1;
|
|
277
|
+
optional string id = 2;
|
|
278
|
+
optional string error = 3;
|
|
279
|
+
}
|
|
280
|
+
repeated Result results = 1;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
message MessageBatchSendMiniProgramRequest {
|
|
284
|
+
repeated string conversation_ids = 1;
|
|
285
|
+
MiniProgramPayload mini_program = 2;
|
|
286
|
+
optional string batch_task_id = 3;
|
|
287
|
+
}
|
|
288
|
+
message MessageBatchSendMiniProgramResponse {
|
|
289
|
+
message Result {
|
|
290
|
+
string conversation_id = 1;
|
|
291
|
+
optional string id = 2;
|
|
292
|
+
optional string error = 3;
|
|
293
|
+
}
|
|
294
|
+
repeated Result results = 1;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
message MessageBatchSendLocationRequest {
|
|
298
|
+
repeated string conversation_ids = 1;
|
|
299
|
+
LocationPayload location = 2;
|
|
300
|
+
optional string batch_task_id = 3;
|
|
301
|
+
}
|
|
302
|
+
message MessageBatchSendLocationResponse {
|
|
303
|
+
message Result {
|
|
304
|
+
string conversation_id = 1;
|
|
305
|
+
optional string id = 2;
|
|
306
|
+
optional string error = 3;
|
|
307
|
+
}
|
|
308
|
+
repeated Result results = 1;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
message MessageBatchSendChannelRequest {
|
|
312
|
+
repeated string conversation_ids = 1;
|
|
313
|
+
ChannelPayload channel = 2;
|
|
314
|
+
optional string batch_task_id = 3;
|
|
315
|
+
}
|
|
316
|
+
message MessageBatchSendChannelResponse {
|
|
317
|
+
message Result {
|
|
318
|
+
string conversation_id = 1;
|
|
319
|
+
optional string id = 2;
|
|
320
|
+
optional string error = 3;
|
|
321
|
+
}
|
|
322
|
+
repeated Result results = 1;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
message MessageBatchSendChannelCardRequest {
|
|
326
|
+
repeated string conversation_ids = 1;
|
|
327
|
+
ChannelCardPayload channel_card = 2;
|
|
328
|
+
optional string batch_task_id = 3;
|
|
329
|
+
}
|
|
330
|
+
message MessageBatchSendChannelCardResponse {
|
|
331
|
+
message Result {
|
|
332
|
+
string conversation_id = 1;
|
|
333
|
+
optional string id = 2;
|
|
334
|
+
optional string error = 3;
|
|
335
|
+
}
|
|
336
|
+
repeated Result results = 1;
|
|
337
|
+
}
|
|
338
|
+
|
|
212
339
|
message MessageSendMiniProgramRequest {
|
|
213
340
|
string conversation_id = 1; // 对话id
|
|
214
341
|
/**
|