@juzi/wechaty-grpc 1.0.9 → 1.0.12
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/commonjs/generated/puppet.cjs.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet/friendship_pb.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet/friendship_pb.js +3 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +452 -76
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +3287 -352
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +323 -331
- package/dist/cjs/out/wechaty/puppet.swagger.json +573 -572
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +154 -189
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +283 -357
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +110 -149
- package/dist/cjs/out/wechaty/puppet_pb_service.js +66 -147
- package/dist/cjs/proto/wechaty/puppet/friendship.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
- package/dist/cjs/proto/wechaty/puppet/tag.proto +99 -29
- package/dist/cjs/proto/wechaty/puppet.proto +28 -43
- 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 +11 -21
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/friendship_pb.js +3 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +452 -76
- package/dist/esm/out/wechaty/puppet/tag_pb.js +3287 -352
- package/dist/esm/out/wechaty/puppet.openapi.yaml +323 -331
- package/dist/esm/out/wechaty/puppet.swagger.json +573 -572
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +154 -189
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +283 -357
- package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet_pb.js +0 -2
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +110 -149
- package/dist/esm/out/wechaty/puppet_pb_service.js +66 -147
- package/dist/esm/proto/wechaty/puppet/friendship.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
- package/dist/esm/proto/wechaty/puppet/tag.proto +99 -29
- package/dist/esm/proto/wechaty/puppet.proto +28 -43
- 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 +11 -21
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/friendship_pb.d.ts +2 -0
- package/out/wechaty/puppet/friendship_pb.js +3 -1
- package/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/out/wechaty/puppet/room_pb.js +58 -2
- package/out/wechaty/puppet/tag_pb.d.ts +452 -76
- package/out/wechaty/puppet/tag_pb.js +3287 -352
- package/out/wechaty/puppet.openapi.yaml +323 -331
- package/out/wechaty/puppet.swagger.json +573 -572
- package/out/wechaty/puppet_grpc_pb.d.ts +154 -189
- package/out/wechaty/puppet_grpc_pb.js +283 -357
- package/out/wechaty/puppet_pb.d.ts +0 -1
- package/out/wechaty/puppet_pb.js +0 -2
- package/out/wechaty/puppet_pb_service.d.ts +110 -149
- package/out/wechaty/puppet_pb_service.js +66 -147
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
- package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +0 -3315
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
- package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +0 -90
- package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
- package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
- package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +0 -3315
- package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
- package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
- package/dist/esm/proto/wechaty/puppet/corp-tag.proto +0 -90
- package/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
- package/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
- package/out/wechaty/puppet/corp-tag_pb.js +0 -3315
- package/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
- package/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
|
@@ -13,7 +13,6 @@ var wechaty_puppet_room_invitation_pb = require("../wechaty/puppet/room-invitati
|
|
|
13
13
|
var wechaty_puppet_room_member_pb = require("../wechaty/puppet/room-member_pb");
|
|
14
14
|
var wechaty_puppet_room_pb = require("../wechaty/puppet/room_pb");
|
|
15
15
|
var wechaty_puppet_tag_pb = require("../wechaty/puppet/tag_pb");
|
|
16
|
-
var wechaty_puppet_corp_tag_pb = require("../wechaty/puppet/corp-tag_pb");
|
|
17
16
|
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
18
17
|
|
|
19
18
|
var Puppet = (function () {
|
|
@@ -553,121 +552,103 @@ Puppet.RoomInvitationAccept = {
|
|
|
553
552
|
responseType: wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse
|
|
554
553
|
};
|
|
555
554
|
|
|
556
|
-
Puppet.
|
|
557
|
-
methodName: "
|
|
555
|
+
Puppet.TagContactTagAdd = {
|
|
556
|
+
methodName: "TagContactTagAdd",
|
|
558
557
|
service: Puppet,
|
|
559
558
|
requestStream: false,
|
|
560
559
|
responseStream: false,
|
|
561
|
-
requestType: wechaty_puppet_tag_pb.
|
|
562
|
-
responseType: wechaty_puppet_tag_pb.
|
|
560
|
+
requestType: wechaty_puppet_tag_pb.TagContactTagAddRequest,
|
|
561
|
+
responseType: wechaty_puppet_tag_pb.TagContactTagAddResponse
|
|
563
562
|
};
|
|
564
563
|
|
|
565
|
-
Puppet.
|
|
566
|
-
methodName: "
|
|
564
|
+
Puppet.TagContactTagRemove = {
|
|
565
|
+
methodName: "TagContactTagRemove",
|
|
567
566
|
service: Puppet,
|
|
568
567
|
requestStream: false,
|
|
569
568
|
responseStream: false,
|
|
570
|
-
requestType: wechaty_puppet_tag_pb.
|
|
571
|
-
responseType: wechaty_puppet_tag_pb.
|
|
569
|
+
requestType: wechaty_puppet_tag_pb.TagContactTagRemoveRequest,
|
|
570
|
+
responseType: wechaty_puppet_tag_pb.TagContactTagRemoveResponse
|
|
572
571
|
};
|
|
573
572
|
|
|
574
|
-
Puppet.
|
|
575
|
-
methodName: "
|
|
573
|
+
Puppet.TagGroupAdd = {
|
|
574
|
+
methodName: "TagGroupAdd",
|
|
576
575
|
service: Puppet,
|
|
577
576
|
requestStream: false,
|
|
578
577
|
responseStream: false,
|
|
579
|
-
requestType: wechaty_puppet_tag_pb.
|
|
580
|
-
responseType: wechaty_puppet_tag_pb.
|
|
578
|
+
requestType: wechaty_puppet_tag_pb.TagGroupAddRequest,
|
|
579
|
+
responseType: wechaty_puppet_tag_pb.TagGroupAddResponse
|
|
581
580
|
};
|
|
582
581
|
|
|
583
|
-
Puppet.
|
|
584
|
-
methodName: "
|
|
582
|
+
Puppet.TagGroupDelete = {
|
|
583
|
+
methodName: "TagGroupDelete",
|
|
585
584
|
service: Puppet,
|
|
586
585
|
requestStream: false,
|
|
587
586
|
responseStream: false,
|
|
588
|
-
requestType: wechaty_puppet_tag_pb.
|
|
589
|
-
responseType: wechaty_puppet_tag_pb.
|
|
587
|
+
requestType: wechaty_puppet_tag_pb.TagGroupDeleteRequest,
|
|
588
|
+
responseType: wechaty_puppet_tag_pb.TagGroupDeleteResponse
|
|
590
589
|
};
|
|
591
590
|
|
|
592
|
-
Puppet.
|
|
593
|
-
methodName: "
|
|
591
|
+
Puppet.TagTagAdd = {
|
|
592
|
+
methodName: "TagTagAdd",
|
|
594
593
|
service: Puppet,
|
|
595
594
|
requestStream: false,
|
|
596
595
|
responseStream: false,
|
|
597
|
-
requestType:
|
|
598
|
-
responseType:
|
|
596
|
+
requestType: wechaty_puppet_tag_pb.TagTagAddRequest,
|
|
597
|
+
responseType: wechaty_puppet_tag_pb.TagTagAddResponse
|
|
599
598
|
};
|
|
600
599
|
|
|
601
|
-
Puppet.
|
|
602
|
-
methodName: "
|
|
600
|
+
Puppet.TagTagDelete = {
|
|
601
|
+
methodName: "TagTagDelete",
|
|
603
602
|
service: Puppet,
|
|
604
603
|
requestStream: false,
|
|
605
604
|
responseStream: false,
|
|
606
|
-
requestType:
|
|
607
|
-
responseType:
|
|
605
|
+
requestType: wechaty_puppet_tag_pb.TagTagDeleteRequest,
|
|
606
|
+
responseType: wechaty_puppet_tag_pb.TagTagDeleteResponse
|
|
608
607
|
};
|
|
609
608
|
|
|
610
|
-
Puppet.
|
|
611
|
-
methodName: "
|
|
609
|
+
Puppet.TagGroupList = {
|
|
610
|
+
methodName: "TagGroupList",
|
|
612
611
|
service: Puppet,
|
|
613
612
|
requestStream: false,
|
|
614
613
|
responseStream: false,
|
|
615
|
-
requestType:
|
|
616
|
-
responseType:
|
|
614
|
+
requestType: wechaty_puppet_tag_pb.TagGroupListRequest,
|
|
615
|
+
responseType: wechaty_puppet_tag_pb.TagGroupListResponse
|
|
617
616
|
};
|
|
618
617
|
|
|
619
|
-
Puppet.
|
|
620
|
-
methodName: "
|
|
618
|
+
Puppet.TagGroupTagList = {
|
|
619
|
+
methodName: "TagGroupTagList",
|
|
621
620
|
service: Puppet,
|
|
622
621
|
requestStream: false,
|
|
623
622
|
responseStream: false,
|
|
624
|
-
requestType:
|
|
625
|
-
responseType:
|
|
623
|
+
requestType: wechaty_puppet_tag_pb.TagGroupTagListRequest,
|
|
624
|
+
responseType: wechaty_puppet_tag_pb.TagGroupTagListResponse
|
|
626
625
|
};
|
|
627
626
|
|
|
628
|
-
Puppet.
|
|
629
|
-
methodName: "
|
|
627
|
+
Puppet.TagTagList = {
|
|
628
|
+
methodName: "TagTagList",
|
|
630
629
|
service: Puppet,
|
|
631
630
|
requestStream: false,
|
|
632
631
|
responseStream: false,
|
|
633
|
-
requestType:
|
|
634
|
-
responseType:
|
|
632
|
+
requestType: wechaty_puppet_tag_pb.TagTagListRequest,
|
|
633
|
+
responseType: wechaty_puppet_tag_pb.TagTagListResponse
|
|
635
634
|
};
|
|
636
635
|
|
|
637
|
-
Puppet.
|
|
638
|
-
methodName: "
|
|
636
|
+
Puppet.TagContactTagList = {
|
|
637
|
+
methodName: "TagContactTagList",
|
|
639
638
|
service: Puppet,
|
|
640
639
|
requestStream: false,
|
|
641
640
|
responseStream: false,
|
|
642
|
-
requestType:
|
|
643
|
-
responseType:
|
|
641
|
+
requestType: wechaty_puppet_tag_pb.TagContactTagListRequest,
|
|
642
|
+
responseType: wechaty_puppet_tag_pb.TagContactTagListResponse
|
|
644
643
|
};
|
|
645
644
|
|
|
646
|
-
Puppet.
|
|
647
|
-
methodName: "
|
|
645
|
+
Puppet.TagTagContactList = {
|
|
646
|
+
methodName: "TagTagContactList",
|
|
648
647
|
service: Puppet,
|
|
649
648
|
requestStream: false,
|
|
650
649
|
responseStream: false,
|
|
651
|
-
requestType:
|
|
652
|
-
responseType:
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
Puppet.CorpTagTagList = {
|
|
656
|
-
methodName: "CorpTagTagList",
|
|
657
|
-
service: Puppet,
|
|
658
|
-
requestStream: false,
|
|
659
|
-
responseStream: false,
|
|
660
|
-
requestType: wechaty_puppet_corp_tag_pb.CorpTagTagListRequest,
|
|
661
|
-
responseType: wechaty_puppet_corp_tag_pb.CorpTagTagListResponse
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
Puppet.CorpTagContactTagList = {
|
|
665
|
-
methodName: "CorpTagContactTagList",
|
|
666
|
-
service: Puppet,
|
|
667
|
-
requestStream: false,
|
|
668
|
-
responseStream: false,
|
|
669
|
-
requestType: wechaty_puppet_corp_tag_pb.CorpTagContactTagListRequest,
|
|
670
|
-
responseType: wechaty_puppet_corp_tag_pb.CorpTagContactTagListResponse
|
|
650
|
+
requestType: wechaty_puppet_tag_pb.TagTagContactListRequest,
|
|
651
|
+
responseType: wechaty_puppet_tag_pb.TagTagContactListResponse
|
|
671
652
|
};
|
|
672
653
|
|
|
673
654
|
Puppet.Download = {
|
|
@@ -2558,73 +2539,11 @@ PuppetClient.prototype.roomInvitationAccept = function roomInvitationAccept(requ
|
|
|
2558
2539
|
};
|
|
2559
2540
|
};
|
|
2560
2541
|
|
|
2561
|
-
PuppetClient.prototype.
|
|
2562
|
-
if (arguments.length === 2) {
|
|
2563
|
-
callback = arguments[1];
|
|
2564
|
-
}
|
|
2565
|
-
var client = grpc.unary(Puppet.TagContactAdd, {
|
|
2566
|
-
request: requestMessage,
|
|
2567
|
-
host: this.serviceHost,
|
|
2568
|
-
metadata: metadata,
|
|
2569
|
-
transport: this.options.transport,
|
|
2570
|
-
debug: this.options.debug,
|
|
2571
|
-
onEnd: function (response) {
|
|
2572
|
-
if (callback) {
|
|
2573
|
-
if (response.status !== grpc.Code.OK) {
|
|
2574
|
-
var err = new Error(response.statusMessage);
|
|
2575
|
-
err.code = response.status;
|
|
2576
|
-
err.metadata = response.trailers;
|
|
2577
|
-
callback(err, null);
|
|
2578
|
-
} else {
|
|
2579
|
-
callback(null, response.message);
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
});
|
|
2584
|
-
return {
|
|
2585
|
-
cancel: function () {
|
|
2586
|
-
callback = null;
|
|
2587
|
-
client.close();
|
|
2588
|
-
}
|
|
2589
|
-
};
|
|
2590
|
-
};
|
|
2591
|
-
|
|
2592
|
-
PuppetClient.prototype.tagContactRemove = function tagContactRemove(requestMessage, metadata, callback) {
|
|
2593
|
-
if (arguments.length === 2) {
|
|
2594
|
-
callback = arguments[1];
|
|
2595
|
-
}
|
|
2596
|
-
var client = grpc.unary(Puppet.TagContactRemove, {
|
|
2597
|
-
request: requestMessage,
|
|
2598
|
-
host: this.serviceHost,
|
|
2599
|
-
metadata: metadata,
|
|
2600
|
-
transport: this.options.transport,
|
|
2601
|
-
debug: this.options.debug,
|
|
2602
|
-
onEnd: function (response) {
|
|
2603
|
-
if (callback) {
|
|
2604
|
-
if (response.status !== grpc.Code.OK) {
|
|
2605
|
-
var err = new Error(response.statusMessage);
|
|
2606
|
-
err.code = response.status;
|
|
2607
|
-
err.metadata = response.trailers;
|
|
2608
|
-
callback(err, null);
|
|
2609
|
-
} else {
|
|
2610
|
-
callback(null, response.message);
|
|
2611
|
-
}
|
|
2612
|
-
}
|
|
2613
|
-
}
|
|
2614
|
-
});
|
|
2615
|
-
return {
|
|
2616
|
-
cancel: function () {
|
|
2617
|
-
callback = null;
|
|
2618
|
-
client.close();
|
|
2619
|
-
}
|
|
2620
|
-
};
|
|
2621
|
-
};
|
|
2622
|
-
|
|
2623
|
-
PuppetClient.prototype.tagContactDelete = function tagContactDelete(requestMessage, metadata, callback) {
|
|
2542
|
+
PuppetClient.prototype.tagContactTagAdd = function tagContactTagAdd(requestMessage, metadata, callback) {
|
|
2624
2543
|
if (arguments.length === 2) {
|
|
2625
2544
|
callback = arguments[1];
|
|
2626
2545
|
}
|
|
2627
|
-
var client = grpc.unary(Puppet.
|
|
2546
|
+
var client = grpc.unary(Puppet.TagContactTagAdd, {
|
|
2628
2547
|
request: requestMessage,
|
|
2629
2548
|
host: this.serviceHost,
|
|
2630
2549
|
metadata: metadata,
|
|
@@ -2651,11 +2570,11 @@ PuppetClient.prototype.tagContactDelete = function tagContactDelete(requestMessa
|
|
|
2651
2570
|
};
|
|
2652
2571
|
};
|
|
2653
2572
|
|
|
2654
|
-
PuppetClient.prototype.
|
|
2573
|
+
PuppetClient.prototype.tagContactTagRemove = function tagContactTagRemove(requestMessage, metadata, callback) {
|
|
2655
2574
|
if (arguments.length === 2) {
|
|
2656
2575
|
callback = arguments[1];
|
|
2657
2576
|
}
|
|
2658
|
-
var client = grpc.unary(Puppet.
|
|
2577
|
+
var client = grpc.unary(Puppet.TagContactTagRemove, {
|
|
2659
2578
|
request: requestMessage,
|
|
2660
2579
|
host: this.serviceHost,
|
|
2661
2580
|
metadata: metadata,
|
|
@@ -2682,11 +2601,11 @@ PuppetClient.prototype.tagContactList = function tagContactList(requestMessage,
|
|
|
2682
2601
|
};
|
|
2683
2602
|
};
|
|
2684
2603
|
|
|
2685
|
-
PuppetClient.prototype.
|
|
2604
|
+
PuppetClient.prototype.tagGroupAdd = function tagGroupAdd(requestMessage, metadata, callback) {
|
|
2686
2605
|
if (arguments.length === 2) {
|
|
2687
2606
|
callback = arguments[1];
|
|
2688
2607
|
}
|
|
2689
|
-
var client = grpc.unary(Puppet.
|
|
2608
|
+
var client = grpc.unary(Puppet.TagGroupAdd, {
|
|
2690
2609
|
request: requestMessage,
|
|
2691
2610
|
host: this.serviceHost,
|
|
2692
2611
|
metadata: metadata,
|
|
@@ -2713,11 +2632,11 @@ PuppetClient.prototype.corpTagContactTagAdd = function corpTagContactTagAdd(requ
|
|
|
2713
2632
|
};
|
|
2714
2633
|
};
|
|
2715
2634
|
|
|
2716
|
-
PuppetClient.prototype.
|
|
2635
|
+
PuppetClient.prototype.tagGroupDelete = function tagGroupDelete(requestMessage, metadata, callback) {
|
|
2717
2636
|
if (arguments.length === 2) {
|
|
2718
2637
|
callback = arguments[1];
|
|
2719
2638
|
}
|
|
2720
|
-
var client = grpc.unary(Puppet.
|
|
2639
|
+
var client = grpc.unary(Puppet.TagGroupDelete, {
|
|
2721
2640
|
request: requestMessage,
|
|
2722
2641
|
host: this.serviceHost,
|
|
2723
2642
|
metadata: metadata,
|
|
@@ -2744,11 +2663,11 @@ PuppetClient.prototype.corpTagContactTagRemove = function corpTagContactTagRemov
|
|
|
2744
2663
|
};
|
|
2745
2664
|
};
|
|
2746
2665
|
|
|
2747
|
-
PuppetClient.prototype.
|
|
2666
|
+
PuppetClient.prototype.tagTagAdd = function tagTagAdd(requestMessage, metadata, callback) {
|
|
2748
2667
|
if (arguments.length === 2) {
|
|
2749
2668
|
callback = arguments[1];
|
|
2750
2669
|
}
|
|
2751
|
-
var client = grpc.unary(Puppet.
|
|
2670
|
+
var client = grpc.unary(Puppet.TagTagAdd, {
|
|
2752
2671
|
request: requestMessage,
|
|
2753
2672
|
host: this.serviceHost,
|
|
2754
2673
|
metadata: metadata,
|
|
@@ -2775,11 +2694,11 @@ PuppetClient.prototype.corpTagGroupAdd = function corpTagGroupAdd(requestMessage
|
|
|
2775
2694
|
};
|
|
2776
2695
|
};
|
|
2777
2696
|
|
|
2778
|
-
PuppetClient.prototype.
|
|
2697
|
+
PuppetClient.prototype.tagTagDelete = function tagTagDelete(requestMessage, metadata, callback) {
|
|
2779
2698
|
if (arguments.length === 2) {
|
|
2780
2699
|
callback = arguments[1];
|
|
2781
2700
|
}
|
|
2782
|
-
var client = grpc.unary(Puppet.
|
|
2701
|
+
var client = grpc.unary(Puppet.TagTagDelete, {
|
|
2783
2702
|
request: requestMessage,
|
|
2784
2703
|
host: this.serviceHost,
|
|
2785
2704
|
metadata: metadata,
|
|
@@ -2806,11 +2725,11 @@ PuppetClient.prototype.corpTagGroupDelete = function corpTagGroupDelete(requestM
|
|
|
2806
2725
|
};
|
|
2807
2726
|
};
|
|
2808
2727
|
|
|
2809
|
-
PuppetClient.prototype.
|
|
2728
|
+
PuppetClient.prototype.tagGroupList = function tagGroupList(requestMessage, metadata, callback) {
|
|
2810
2729
|
if (arguments.length === 2) {
|
|
2811
2730
|
callback = arguments[1];
|
|
2812
2731
|
}
|
|
2813
|
-
var client = grpc.unary(Puppet.
|
|
2732
|
+
var client = grpc.unary(Puppet.TagGroupList, {
|
|
2814
2733
|
request: requestMessage,
|
|
2815
2734
|
host: this.serviceHost,
|
|
2816
2735
|
metadata: metadata,
|
|
@@ -2837,11 +2756,11 @@ PuppetClient.prototype.corpTagTagAdd = function corpTagTagAdd(requestMessage, me
|
|
|
2837
2756
|
};
|
|
2838
2757
|
};
|
|
2839
2758
|
|
|
2840
|
-
PuppetClient.prototype.
|
|
2759
|
+
PuppetClient.prototype.tagGroupTagList = function tagGroupTagList(requestMessage, metadata, callback) {
|
|
2841
2760
|
if (arguments.length === 2) {
|
|
2842
2761
|
callback = arguments[1];
|
|
2843
2762
|
}
|
|
2844
|
-
var client = grpc.unary(Puppet.
|
|
2763
|
+
var client = grpc.unary(Puppet.TagGroupTagList, {
|
|
2845
2764
|
request: requestMessage,
|
|
2846
2765
|
host: this.serviceHost,
|
|
2847
2766
|
metadata: metadata,
|
|
@@ -2868,11 +2787,11 @@ PuppetClient.prototype.corpTagTagDelete = function corpTagTagDelete(requestMessa
|
|
|
2868
2787
|
};
|
|
2869
2788
|
};
|
|
2870
2789
|
|
|
2871
|
-
PuppetClient.prototype.
|
|
2790
|
+
PuppetClient.prototype.tagTagList = function tagTagList(requestMessage, metadata, callback) {
|
|
2872
2791
|
if (arguments.length === 2) {
|
|
2873
2792
|
callback = arguments[1];
|
|
2874
2793
|
}
|
|
2875
|
-
var client = grpc.unary(Puppet.
|
|
2794
|
+
var client = grpc.unary(Puppet.TagTagList, {
|
|
2876
2795
|
request: requestMessage,
|
|
2877
2796
|
host: this.serviceHost,
|
|
2878
2797
|
metadata: metadata,
|
|
@@ -2899,11 +2818,11 @@ PuppetClient.prototype.corpTagGroupList = function corpTagGroupList(requestMessa
|
|
|
2899
2818
|
};
|
|
2900
2819
|
};
|
|
2901
2820
|
|
|
2902
|
-
PuppetClient.prototype.
|
|
2821
|
+
PuppetClient.prototype.tagContactTagList = function tagContactTagList(requestMessage, metadata, callback) {
|
|
2903
2822
|
if (arguments.length === 2) {
|
|
2904
2823
|
callback = arguments[1];
|
|
2905
2824
|
}
|
|
2906
|
-
var client = grpc.unary(Puppet.
|
|
2825
|
+
var client = grpc.unary(Puppet.TagContactTagList, {
|
|
2907
2826
|
request: requestMessage,
|
|
2908
2827
|
host: this.serviceHost,
|
|
2909
2828
|
metadata: metadata,
|
|
@@ -2930,11 +2849,11 @@ PuppetClient.prototype.corpTagTagList = function corpTagTagList(requestMessage,
|
|
|
2930
2849
|
};
|
|
2931
2850
|
};
|
|
2932
2851
|
|
|
2933
|
-
PuppetClient.prototype.
|
|
2852
|
+
PuppetClient.prototype.tagTagContactList = function tagTagContactList(requestMessage, metadata, callback) {
|
|
2934
2853
|
if (arguments.length === 2) {
|
|
2935
2854
|
callback = arguments[1];
|
|
2936
2855
|
}
|
|
2937
|
-
var client = grpc.unary(Puppet.
|
|
2856
|
+
var client = grpc.unary(Puppet.TagTagContactList, {
|
|
2938
2857
|
request: requestMessage,
|
|
2939
2858
|
host: this.serviceHost,
|
|
2940
2859
|
metadata: metadata,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package wechaty.puppet;
|
|
3
3
|
|
|
4
|
-
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
-
option java_package="io.github.wechaty.grpc.puppet";
|
|
4
|
+
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package = "io.github.wechaty.grpc.puppet";
|
|
6
6
|
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
7
|
|
|
8
8
|
import "google/protobuf/wrappers.proto";
|
|
@@ -27,8 +27,8 @@ message RoomPayloadResponse {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
message RoomAddRequest {
|
|
30
|
-
string id
|
|
31
|
-
string contact_id
|
|
30
|
+
string id = 1;
|
|
31
|
+
string contact_id = 2;
|
|
32
32
|
bool invite_only = 3;
|
|
33
33
|
}
|
|
34
34
|
message RoomAddResponse {}
|
|
@@ -42,15 +42,16 @@ message RoomAvatarResponse {
|
|
|
42
42
|
|
|
43
43
|
message RoomCreateRequest {
|
|
44
44
|
repeated string contact_ids = 1;
|
|
45
|
-
string
|
|
45
|
+
string topic = 2;
|
|
46
46
|
}
|
|
47
47
|
message RoomCreateResponse {
|
|
48
48
|
string id = 1;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
message RoomDelRequest {
|
|
52
|
-
string
|
|
53
|
-
string
|
|
52
|
+
string id = 1;
|
|
53
|
+
string contact_id = 2 [deprecated = true]; // Deprecated, will be removed after bot updated
|
|
54
|
+
repeated string contact_ids = 3;
|
|
54
55
|
}
|
|
55
56
|
message RoomDelResponse {}
|
|
56
57
|
|
|
@@ -60,13 +61,13 @@ message RoomQuitRequest {
|
|
|
60
61
|
message RoomQuitResponse {}
|
|
61
62
|
|
|
62
63
|
message RoomTopicRequest {
|
|
63
|
-
string
|
|
64
|
+
string id = 1;
|
|
64
65
|
google.protobuf.StringValue topic_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
65
|
-
optional
|
|
66
|
+
optional string topic = 3;
|
|
66
67
|
}
|
|
67
68
|
message RoomTopicResponse {
|
|
68
69
|
google.protobuf.StringValue topic_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
69
|
-
string
|
|
70
|
+
string topic = 2;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
message RoomQRCodeRequest {
|
|
@@ -77,12 +78,12 @@ message RoomQRCodeResponse {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
message RoomAnnounceRequest {
|
|
80
|
-
string
|
|
81
|
+
string id = 1;
|
|
81
82
|
google.protobuf.StringValue text_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
82
|
-
optional
|
|
83
|
+
optional string text = 3;
|
|
83
84
|
}
|
|
84
85
|
message RoomAnnounceResponse {
|
|
85
86
|
google.protobuf.StringValue text_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
86
|
-
string
|
|
87
|
+
string text = 2;
|
|
87
88
|
}
|
|
88
89
|
|
|
@@ -1,43 +1,113 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package wechaty.puppet;
|
|
3
3
|
|
|
4
|
-
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
-
option java_package="io.github.wechaty.grpc.puppet";
|
|
4
|
+
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package = "io.github.wechaty.grpc.puppet";
|
|
6
6
|
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
enum TagType {
|
|
9
|
+
PERSONAL = 0;
|
|
10
|
+
CORPORATION = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message TagPayload {
|
|
14
|
+
string id = 1;
|
|
15
|
+
string name = 2;
|
|
16
|
+
string group_id = 3;
|
|
17
|
+
TagType type = 4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message TagIdentifier {
|
|
21
|
+
string id = 1;
|
|
22
|
+
string group_id = 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message TagGroupPayload {
|
|
26
|
+
string id = 1;
|
|
27
|
+
string name = 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message TagContactTagAddRequest {
|
|
31
|
+
repeated TagIdentifier tags = 1;
|
|
32
|
+
repeated string contact_ids = 2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message TagContactTagAddResponse {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message TagContactTagRemoveRequest {
|
|
39
|
+
repeated TagIdentifier tags = 1;
|
|
40
|
+
repeated string contact_ids = 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message TagContactTagRemoveResponse {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message TagGroupAddRequest {
|
|
47
|
+
string tag_group_name = 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message TagGroupAddResponse {
|
|
51
|
+
TagGroupPayload payload = 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message TagGroupDeleteRequest {
|
|
55
|
+
string tag_group_id = 1;
|
|
56
|
+
}
|
|
14
57
|
|
|
15
|
-
message
|
|
16
|
-
string id = 1;
|
|
17
|
-
string contact_id = 2;
|
|
58
|
+
message TagGroupDeleteResponse {
|
|
18
59
|
}
|
|
19
|
-
message TagContactAddResponse {}
|
|
20
60
|
|
|
21
|
-
message
|
|
22
|
-
string
|
|
23
|
-
string
|
|
61
|
+
message TagTagAddRequest {
|
|
62
|
+
string tag_name = 1;
|
|
63
|
+
string tag_group_id = 2;
|
|
24
64
|
}
|
|
25
|
-
message TagContactRemoveResponse {}
|
|
26
65
|
|
|
27
|
-
message
|
|
28
|
-
|
|
66
|
+
message TagTagAddResponse {
|
|
67
|
+
TagPayload payload = 1;
|
|
29
68
|
}
|
|
30
|
-
message TagContactDeleteResponse {}
|
|
31
69
|
|
|
32
|
-
message
|
|
33
|
-
|
|
34
|
-
* @deprecated:
|
|
35
|
-
* Huan(202109): Wrapper types must not be used going forward.
|
|
36
|
-
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
37
|
-
*/
|
|
38
|
-
google.protobuf.StringValue contact_id_string_value_deprecated = 1 [deprecated = true]; // Deprecated: will be removed after Dec 31, 2022
|
|
39
|
-
string contact_id = 2;
|
|
70
|
+
message TagTagDeleteRequest {
|
|
71
|
+
TagIdentifier tag = 1;
|
|
40
72
|
}
|
|
41
|
-
|
|
42
|
-
|
|
73
|
+
|
|
74
|
+
message TagTagDeleteResponse {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message TagGroupListRequest {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message TagGroupListResponse {
|
|
81
|
+
repeated TagGroupPayload payloads = 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message TagGroupTagListRequest {
|
|
85
|
+
string tag_group_id = 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message TagGroupTagListResponse {
|
|
89
|
+
repeated TagPayload payloads = 1;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message TagTagListRequest {
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message TagTagListResponse {
|
|
96
|
+
repeated TagPayload payloads = 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message TagContactTagListRequest {
|
|
100
|
+
string contact_id = 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message TagContactTagListResponse {
|
|
104
|
+
repeated TagPayload payloads = 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message TagTagContactListRequest {
|
|
108
|
+
TagIdentifier tag = 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message TagTagContactListResponse {
|
|
112
|
+
repeated string payloads = 1;
|
|
43
113
|
}
|