@juzi/wechaty-grpc 1.0.8 → 1.0.11

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.
Files changed (71) hide show
  1. package/dist/cjs/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  2. package/dist/cjs/out/wechaty/puppet/friendship_pb.js +3 -1
  3. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +430 -74
  4. package/dist/cjs/out/wechaty/puppet/tag_pb.js +3051 -318
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +244 -293
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +529 -596
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +154 -189
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +283 -357
  9. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  10. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  11. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +110 -149
  12. package/dist/cjs/out/wechaty/puppet_pb_service.js +66 -147
  13. package/dist/cjs/proto/wechaty/puppet/friendship.proto +2 -0
  14. package/dist/cjs/proto/wechaty/puppet/tag.proto +98 -29
  15. package/dist/cjs/proto/wechaty/puppet.proto +22 -43
  16. package/dist/cjs/src/package-json.js +1 -1
  17. package/dist/cjs/src/package-json.js.map +1 -1
  18. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.js +11 -21
  20. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  21. package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  22. package/dist/esm/out/wechaty/puppet/friendship_pb.js +3 -1
  23. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +430 -74
  24. package/dist/esm/out/wechaty/puppet/tag_pb.js +3051 -318
  25. package/dist/esm/out/wechaty/puppet.openapi.yaml +244 -293
  26. package/dist/esm/out/wechaty/puppet.swagger.json +529 -596
  27. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +154 -189
  28. package/dist/esm/out/wechaty/puppet_grpc_pb.js +283 -357
  29. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  30. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  31. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +110 -149
  32. package/dist/esm/out/wechaty/puppet_pb_service.js +66 -147
  33. package/dist/esm/proto/wechaty/puppet/friendship.proto +2 -0
  34. package/dist/esm/proto/wechaty/puppet/tag.proto +98 -29
  35. package/dist/esm/proto/wechaty/puppet.proto +22 -43
  36. package/dist/esm/src/package-json.js +1 -1
  37. package/dist/esm/src/package-json.js.map +1 -1
  38. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  39. package/dist/esm/tests/puppet-server-impl.js +11 -21
  40. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  41. package/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  42. package/out/wechaty/puppet/friendship_pb.js +3 -1
  43. package/out/wechaty/puppet/tag_pb.d.ts +430 -74
  44. package/out/wechaty/puppet/tag_pb.js +3051 -318
  45. package/out/wechaty/puppet.openapi.yaml +244 -293
  46. package/out/wechaty/puppet.swagger.json +529 -596
  47. package/out/wechaty/puppet_grpc_pb.d.ts +154 -189
  48. package/out/wechaty/puppet_grpc_pb.js +283 -357
  49. package/out/wechaty/puppet_pb.d.ts +0 -1
  50. package/out/wechaty/puppet_pb.js +0 -2
  51. package/out/wechaty/puppet_pb_service.d.ts +110 -149
  52. package/out/wechaty/puppet_pb_service.js +66 -147
  53. package/package.json +1 -1
  54. package/src/package-json.ts +1 -1
  55. package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  56. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  57. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  58. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  59. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  60. package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +0 -90
  61. package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  62. package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  63. package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  64. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  65. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  66. package/dist/esm/proto/wechaty/puppet/corp-tag.proto +0 -90
  67. package/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  68. package/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  69. package/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  70. package/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  71. 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.TagContactAdd = {
557
- methodName: "TagContactAdd",
555
+ Puppet.TagContactTagAdd = {
556
+ methodName: "TagContactTagAdd",
558
557
  service: Puppet,
559
558
  requestStream: false,
560
559
  responseStream: false,
561
- requestType: wechaty_puppet_tag_pb.TagContactAddRequest,
562
- responseType: wechaty_puppet_tag_pb.TagContactAddResponse
560
+ requestType: wechaty_puppet_tag_pb.TagContactTagAddRequest,
561
+ responseType: wechaty_puppet_tag_pb.TagContactTagAddResponse
563
562
  };
564
563
 
565
- Puppet.TagContactRemove = {
566
- methodName: "TagContactRemove",
564
+ Puppet.TagContactTagRemove = {
565
+ methodName: "TagContactTagRemove",
567
566
  service: Puppet,
568
567
  requestStream: false,
569
568
  responseStream: false,
570
- requestType: wechaty_puppet_tag_pb.TagContactRemoveRequest,
571
- responseType: wechaty_puppet_tag_pb.TagContactRemoveResponse
569
+ requestType: wechaty_puppet_tag_pb.TagContactTagRemoveRequest,
570
+ responseType: wechaty_puppet_tag_pb.TagContactTagRemoveResponse
572
571
  };
573
572
 
574
- Puppet.TagContactDelete = {
575
- methodName: "TagContactDelete",
573
+ Puppet.TagGroupAdd = {
574
+ methodName: "TagGroupAdd",
576
575
  service: Puppet,
577
576
  requestStream: false,
578
577
  responseStream: false,
579
- requestType: wechaty_puppet_tag_pb.TagContactDeleteRequest,
580
- responseType: wechaty_puppet_tag_pb.TagContactDeleteResponse
578
+ requestType: wechaty_puppet_tag_pb.TagGroupAddRequest,
579
+ responseType: wechaty_puppet_tag_pb.TagGroupAddResponse
581
580
  };
582
581
 
583
- Puppet.TagContactList = {
584
- methodName: "TagContactList",
582
+ Puppet.TagGroupDelete = {
583
+ methodName: "TagGroupDelete",
585
584
  service: Puppet,
586
585
  requestStream: false,
587
586
  responseStream: false,
588
- requestType: wechaty_puppet_tag_pb.TagContactListRequest,
589
- responseType: wechaty_puppet_tag_pb.TagContactListResponse
587
+ requestType: wechaty_puppet_tag_pb.TagGroupDeleteRequest,
588
+ responseType: wechaty_puppet_tag_pb.TagGroupDeleteResponse
590
589
  };
591
590
 
592
- Puppet.CorpTagContactTagAdd = {
593
- methodName: "CorpTagContactTagAdd",
591
+ Puppet.TagTagAdd = {
592
+ methodName: "TagTagAdd",
594
593
  service: Puppet,
595
594
  requestStream: false,
596
595
  responseStream: false,
597
- requestType: wechaty_puppet_corp_tag_pb.CorpTagContactTagAddRequest,
598
- responseType: wechaty_puppet_corp_tag_pb.CorpTagContactTagAddResponse
596
+ requestType: wechaty_puppet_tag_pb.TagTagAddRequest,
597
+ responseType: wechaty_puppet_tag_pb.TagTagAddResponse
599
598
  };
600
599
 
601
- Puppet.CorpTagContactTagRemove = {
602
- methodName: "CorpTagContactTagRemove",
600
+ Puppet.TagTagDelete = {
601
+ methodName: "TagTagDelete",
603
602
  service: Puppet,
604
603
  requestStream: false,
605
604
  responseStream: false,
606
- requestType: wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveRequest,
607
- responseType: wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveResponse
605
+ requestType: wechaty_puppet_tag_pb.TagTagDeleteRequest,
606
+ responseType: wechaty_puppet_tag_pb.TagTagDeleteResponse
608
607
  };
609
608
 
610
- Puppet.CorpTagGroupAdd = {
611
- methodName: "CorpTagGroupAdd",
609
+ Puppet.TagGroupList = {
610
+ methodName: "TagGroupList",
612
611
  service: Puppet,
613
612
  requestStream: false,
614
613
  responseStream: false,
615
- requestType: wechaty_puppet_corp_tag_pb.CorpTagGroupAddRequest,
616
- responseType: wechaty_puppet_corp_tag_pb.CorpTagGroupAddResponse
614
+ requestType: wechaty_puppet_tag_pb.TagGroupListRequest,
615
+ responseType: wechaty_puppet_tag_pb.TagGroupListResponse
617
616
  };
618
617
 
619
- Puppet.CorpTagGroupDelete = {
620
- methodName: "CorpTagGroupDelete",
618
+ Puppet.TagGroupTagList = {
619
+ methodName: "TagGroupTagList",
621
620
  service: Puppet,
622
621
  requestStream: false,
623
622
  responseStream: false,
624
- requestType: wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteRequest,
625
- responseType: wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteResponse
623
+ requestType: wechaty_puppet_tag_pb.TagGroupTagListRequest,
624
+ responseType: wechaty_puppet_tag_pb.TagGroupTagListResponse
626
625
  };
627
626
 
628
- Puppet.CorpTagTagAdd = {
629
- methodName: "CorpTagTagAdd",
627
+ Puppet.TagTagList = {
628
+ methodName: "TagTagList",
630
629
  service: Puppet,
631
630
  requestStream: false,
632
631
  responseStream: false,
633
- requestType: wechaty_puppet_corp_tag_pb.CorpTagTagAddRequest,
634
- responseType: wechaty_puppet_corp_tag_pb.CorpTagTagAddResponse
632
+ requestType: wechaty_puppet_tag_pb.TagTagListRequest,
633
+ responseType: wechaty_puppet_tag_pb.TagTagListResponse
635
634
  };
636
635
 
637
- Puppet.CorpTagTagDelete = {
638
- methodName: "CorpTagTagDelete",
636
+ Puppet.TagContactTagList = {
637
+ methodName: "TagContactTagList",
639
638
  service: Puppet,
640
639
  requestStream: false,
641
640
  responseStream: false,
642
- requestType: wechaty_puppet_corp_tag_pb.CorpTagTagDeleteRequest,
643
- responseType: wechaty_puppet_corp_tag_pb.CorpTagTagDeleteResponse
641
+ requestType: wechaty_puppet_tag_pb.TagContactTagListRequest,
642
+ responseType: wechaty_puppet_tag_pb.TagContactTagListResponse
644
643
  };
645
644
 
646
- Puppet.CorpTagGroupList = {
647
- methodName: "CorpTagGroupList",
645
+ Puppet.TagTagContactList = {
646
+ methodName: "TagTagContactList",
648
647
  service: Puppet,
649
648
  requestStream: false,
650
649
  responseStream: false,
651
- requestType: wechaty_puppet_corp_tag_pb.CorpTagGroupListRequest,
652
- responseType: wechaty_puppet_corp_tag_pb.CorpTagGroupListResponse
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.tagContactAdd = function tagContactAdd(requestMessage, metadata, callback) {
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.TagContactDelete, {
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.tagContactList = function tagContactList(requestMessage, metadata, callback) {
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.TagContactList, {
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.corpTagContactTagAdd = function corpTagContactTagAdd(requestMessage, metadata, callback) {
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.CorpTagContactTagAdd, {
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.corpTagContactTagRemove = function corpTagContactTagRemove(requestMessage, metadata, callback) {
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.CorpTagContactTagRemove, {
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.corpTagGroupAdd = function corpTagGroupAdd(requestMessage, metadata, callback) {
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.CorpTagGroupAdd, {
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.corpTagGroupDelete = function corpTagGroupDelete(requestMessage, metadata, callback) {
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.CorpTagGroupDelete, {
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.corpTagTagAdd = function corpTagTagAdd(requestMessage, metadata, callback) {
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.CorpTagTagAdd, {
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.corpTagTagDelete = function corpTagTagDelete(requestMessage, metadata, callback) {
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.CorpTagTagDelete, {
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.corpTagGroupList = function corpTagGroupList(requestMessage, metadata, callback) {
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.CorpTagGroupList, {
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.corpTagTagList = function corpTagTagList(requestMessage, metadata, callback) {
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.CorpTagTagList, {
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.corpTagContactTagList = function corpTagContactTagList(requestMessage, metadata, callback) {
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.CorpTagContactTagList, {
2856
+ var client = grpc.unary(Puppet.TagTagContactList, {
2938
2857
  request: requestMessage,
2939
2858
  host: this.serviceHost,
2940
2859
  metadata: metadata,
@@ -13,6 +13,8 @@ enum FriendshipType {
13
13
  FRIENDSHIP_TYPE_CONFIRM = 1;
14
14
  FRIENDSHIP_TYPE_RECEIVE = 2;
15
15
  FRIENDSHIP_TYPE_VERIFY = 3;
16
+ FRIENDSHIP_TYPE_DELETE = 4;
17
+ FRIENDSHIP_TYPE_REMOVED = 5;
16
18
  }
17
19
 
18
20
  enum FriendshipSceneType {
@@ -1,43 +1,112 @@
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
- * @deprecated
10
- * Huan(202109): will be removed after Dec 31, 2022
11
- * https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
12
- */
13
- import "google/protobuf/wrappers.proto";
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 TagGroupPayload {
21
+ string id = 1;
22
+ string name = 2;
23
+ }
24
+
25
+ message TagContactTagAddRequest {
26
+ string tag_group_id = 1;
27
+ string tag_id = 2;
28
+ string contact_id = 3;
29
+ }
30
+
31
+ message TagContactTagAddResponse {
32
+ }
33
+
34
+ message TagContactTagRemoveRequest {
35
+ string tag_group_id = 1;
36
+ string tag_id = 2;
37
+ string contact_id = 3;
38
+ }
39
+
40
+ message TagContactTagRemoveResponse {
41
+ }
42
+
43
+ message TagGroupAddRequest {
44
+ string tag_group_name = 1;
45
+ }
46
+
47
+ message TagGroupAddResponse {
48
+ TagGroupPayload payload = 1;
49
+ }
50
+
51
+ message TagGroupDeleteRequest {
52
+ string tag_group_id = 1;
53
+ }
54
+
55
+ message TagGroupDeleteResponse {
56
+ }
57
+
58
+ message TagTagAddRequest {
59
+ string tag_group_id = 1;
60
+ string tag_name = 2;
61
+ }
62
+
63
+ message TagTagAddResponse {
64
+ TagPayload payload = 1;
65
+ }
66
+
67
+ message TagTagDeleteRequest {
68
+ string tag_group_id = 1;
69
+ string tag_id = 2;
70
+ }
71
+
72
+ message TagTagDeleteResponse {
73
+ }
74
+
75
+ message TagGroupListRequest {
76
+ }
77
+
78
+ message TagGroupListResponse {
79
+ repeated TagGroupPayload payloads = 1;
80
+ }
81
+
82
+ message TagGroupTagListRequest {
83
+ string tag_group_id = 1;
84
+ }
14
85
 
15
- message TagContactAddRequest {
16
- string id = 1;
17
- string contact_id = 2;
86
+ message TagGroupTagListResponse {
87
+ repeated TagPayload payloads = 1;
18
88
  }
19
- message TagContactAddResponse {}
20
89
 
21
- message TagContactRemoveRequest {
22
- string id = 1;
23
- string contact_id = 2;
90
+ message TagTagListRequest {
24
91
  }
25
- message TagContactRemoveResponse {}
26
92
 
27
- message TagContactDeleteRequest {
28
- string id = 1;
93
+ message TagTagListResponse {
94
+ repeated TagPayload payloads = 1;
29
95
  }
30
- message TagContactDeleteResponse {}
31
96
 
32
- message TagContactListRequest {
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;
97
+ message TagContactTagListRequest {
98
+ string contact_id = 1;
40
99
  }
41
- message TagContactListResponse {
42
- repeated string ids = 1;
100
+
101
+ message TagContactTagListResponse {
102
+ repeated TagPayload payloads = 1;
103
+ }
104
+
105
+ message TagTagContactListRequest {
106
+ string tag_group_id = 1;
107
+ string tag_id = 2;
108
+ }
109
+
110
+ message TagTagContactListResponse {
111
+ repeated string payloads = 1;
43
112
  }
@@ -29,7 +29,6 @@ import "wechaty/puppet/room-member.proto";
29
29
  import "wechaty/puppet/room.proto";
30
30
  import "wechaty/puppet/tag.proto";
31
31
  import "wechaty/puppet/channel.proto";
32
- import "wechaty/puppet/corp-tag.proto";
33
32
 
34
33
 
35
34
  option java_package="io.github.wechaty.grpc";
@@ -486,90 +485,70 @@ service Puppet {
486
485
  * Tag
487
486
  *
488
487
  */
489
- rpc TagContactAdd (puppet.TagContactAddRequest) returns (puppet.TagContactAddResponse) {
490
- option (google.api.http) = {
491
- put: "/contacts/{contact_id}/tags/{id}"
492
- };
493
- }
494
- rpc TagContactRemove (puppet.TagContactRemoveRequest) returns (puppet.TagContactRemoveResponse) {
495
- option (google.api.http) = {
496
- delete: "/contacts/{contact_id}/tags/{id}"
497
- };
498
- }
499
488
 
500
- /**
501
- * Operate Sub-Collections
502
- * https://cloud.google.com/apis/design/design_patterns#list_sub-collections
503
- */
504
- rpc TagContactDelete (puppet.TagContactDeleteRequest) returns (puppet.TagContactDeleteResponse) {
489
+ rpc TagContactTagAdd (puppet.TagContactTagAddRequest) returns (puppet.TagContactTagAddResponse) {
505
490
  option (google.api.http) = {
506
- delete: "/contacts/-/tags/{id}"
491
+ put: "/contacts/{contact_id}/tag/tags/{tag_id}"
507
492
  };
508
493
  }
509
494
 
510
- rpc TagContactList (puppet.TagContactListRequest) returns (puppet.TagContactListResponse) {
495
+ rpc TagContactTagRemove (puppet.TagContactTagRemoveRequest) returns (puppet.TagContactTagRemoveResponse) {
511
496
  option (google.api.http) = {
512
- get: "/contacts/{contact_id}/tags"
497
+ delete: "/contacts/{contact_id}/tag/tags/{tag_id}"
513
498
  };
514
499
  }
515
500
 
516
- /**
517
- *
518
- * Corp-Tag
519
- *
520
- */
521
-
522
- rpc CorpTagContactTagAdd (puppet.CorpTagContactTagAddRequest) returns (puppet.CorpTagContactTagAddResponse) {
501
+ rpc TagGroupAdd (puppet.TagGroupAddRequest) returns (puppet.TagGroupAddResponse) {
523
502
  option (google.api.http) = {
524
- put: "/contacts/{contact_id}/corp-tag/tags/{corp_tag_id}"
503
+ put: "/tags/groups/{tag_group_name}"
525
504
  };
526
505
  }
527
506
 
528
- rpc CorpTagContactTagRemove (puppet.CorpTagContactTagRemoveRequest) returns (puppet.CorpTagContactTagRemoveResponse) {
507
+ rpc TagGroupDelete (puppet.TagGroupDeleteRequest) returns (puppet.TagGroupDeleteResponse) {
529
508
  option (google.api.http) = {
530
- delete: "/contacts/{contact_id}/corp-tag/tags/{corp_tag_id}"
509
+ delete: "/tags/groups/{tag_group_id}"
531
510
  };
532
511
  }
533
512
 
534
- rpc CorpTagGroupAdd (puppet.CorpTagGroupAddRequest) returns (puppet.CorpTagGroupAddResponse) {
513
+ rpc TagTagAdd (puppet.TagTagAddRequest) returns (puppet.TagTagAddResponse) {
535
514
  option (google.api.http) = {
536
- put: "/corp-tags/groups/{corp_tag_group_name}"
515
+ put: "/tags/groups/{tag_group_id}/tags/{tag_name}"
537
516
  };
538
517
  }
539
518
 
540
- rpc CorpTagGroupDelete (puppet.CorpTagGroupDeleteRequest) returns (puppet.CorpTagGroupDeleteResponse) {
519
+ rpc TagTagDelete (puppet.TagTagDeleteRequest) returns (puppet.TagTagDeleteResponse) {
541
520
  option (google.api.http) = {
542
- delete: "/corp-tags/groups/{corp_tag_group_id}"
521
+ delete: "/tags/groups/{tag_group_id}/tags/{tag_id}"
543
522
  };
544
523
  }
545
524
 
546
- rpc CorpTagTagAdd (puppet.CorpTagTagAddRequest) returns (puppet.CorpTagTagAddResponse) {
525
+ rpc TagGroupList (puppet.TagGroupListRequest) returns (puppet.TagGroupListResponse) {
547
526
  option (google.api.http) = {
548
- put: "/corp-tags/groups/{corp_tag_group_id}/tags/{corp_tag_name}"
527
+ get: "/tag/groups"
549
528
  };
550
529
  }
551
530
 
552
- rpc CorpTagTagDelete (puppet.CorpTagTagDeleteRequest) returns (puppet.CorpTagTagDeleteResponse) {
531
+ rpc TagGroupTagList (puppet.TagGroupTagListRequest) returns (puppet.TagGroupTagListResponse) {
553
532
  option (google.api.http) = {
554
- delete: "/corp-tags/groups/{corp_tag_group_id}/tags/{corp_tag_id}"
533
+ get: "/tag/groups/{tag_group_id}/tags"
555
534
  };
556
535
  }
557
536
 
558
- rpc CorpTagGroupList (puppet.CorpTagGroupListRequest) returns (puppet.CorpTagGroupListResponse) {
537
+ rpc TagTagList (puppet.TagTagListRequest) returns (puppet.TagTagListResponse) {
559
538
  option (google.api.http) = {
560
- get: "/corp-tag/groups"
539
+ get: "/tag/tags"
561
540
  };
562
541
  }
563
542
 
564
- rpc CorpTagTagList (puppet.CorpTagTagListRequest) returns (puppet.CorpTagTagListResponse) {
543
+ rpc TagContactTagList (puppet.TagContactTagListRequest) returns (puppet.TagContactTagListResponse) {
565
544
  option (google.api.http) = {
566
- get: "/corp-tag/groups/{corp_tag_group_id}"
545
+ get: "/contacts/{contact_id}/tag/tags"
567
546
  };
568
547
  }
569
548
 
570
- rpc CorpTagContactTagList (puppet.CorpTagContactTagListRequest) returns (puppet.CorpTagContactTagListResponse) {
549
+ rpc TagTagContactList (puppet.TagTagContactListRequest) returns (puppet.TagTagContactListResponse) {
571
550
  option (google.api.http) = {
572
- get: "/contacts/{contact_id}/corp-tag/tags"
551
+ get: "/tag/{tag_group_id}/{tag_id}/contacts"
573
552
  };
574
553
  }
575
554
  /**
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageJson = void 0;
4
4
  exports.packageJson = {
5
5
  "name": "@juzi/wechaty-grpc",
6
- "version": "1.0.8",
6
+ "version": "1.0.11",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"package-json.js","sourceRoot":"","sources":["../../../src/package-json.ts"],"names":[],"mappings":";;;AAIa,QAAA,WAAW,GAAgB;IACtC,MAAM,EAAE,oBAAoB;IAC5B,SAAS,EAAE,OAAO;IAClB,aAAa,EAAE,kBAAkB;IACjC,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,QAAQ,EAAE,uBAAuB;YACjC,SAAS,EAAE,uBAAuB;SACnC;KACF;IACD,SAAS,EAAE,yBAAyB;IACpC,SAAS,EAAE;QACT,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,KAAK;KACb;IACD,SAAS,EAAE;QACT,OAAO,EAAE,yBAAyB;QAClC,MAAM,EAAE,0DAA0D;QAClE,OAAO,EAAE,iCAAiC;QAC1C,eAAe,EAAE,8DAA8D;QAC/E,WAAW,EAAE,+BAA+B;QAC5C,UAAU,EAAE,uFAAuF;QACnG,UAAU,EAAE,uFAAuF;QACnG,SAAS,EAAE,oCAAoC;QAC/C,YAAY,EAAE,qBAAqB;QACnC,gBAAgB,EAAE,2CAA2C;QAC7D,gBAAgB,EAAE,4BAA4B;QAC9C,UAAU,EAAE,kCAAkC;QAC9C,MAAM,EAAE,wCAAwC;QAChD,SAAS,EAAE,0FAA0F;QACrG,SAAS,EAAE,gC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